1 # SPDX-License-Identifier: GPL-2.0-only OR BSD 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/net/nfc/mar 4 $id: http://devicetree.org/schemas/net/nfc/marvell,nci.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Marvell International Ltd. NCI NFC cont 7 title: Marvell International Ltd. NCI NFC controller 8 8 9 maintainers: 9 maintainers: 10 - Krzysztof Kozlowski <krzk@kernel.org> 10 - Krzysztof Kozlowski <krzk@kernel.org> 11 11 12 properties: 12 properties: 13 compatible: 13 compatible: 14 enum: 14 enum: 15 - marvell,nfc-i2c 15 - marvell,nfc-i2c 16 - marvell,nfc-spi 16 - marvell,nfc-spi 17 - marvell,nfc-uart 17 - marvell,nfc-uart 18 18 19 hci-muxed: 19 hci-muxed: 20 type: boolean 20 type: boolean 21 description: | 21 description: | 22 Specifies that the chip is muxing NCI ov 22 Specifies that the chip is muxing NCI over HCI frames 23 23 24 interrupts: 24 interrupts: 25 maxItems: 1 25 maxItems: 1 26 26 27 reg: 27 reg: 28 maxItems: 1 28 maxItems: 1 29 29 30 reset-n-io: 30 reset-n-io: 31 $ref: /schemas/types.yaml#/definitions/pha 31 $ref: /schemas/types.yaml#/definitions/phandle-array 32 maxItems: 1 32 maxItems: 1 33 description: | 33 description: | 34 Output GPIO pin used to reset the chip ( 34 Output GPIO pin used to reset the chip (active low) 35 35 36 i2c-int-falling: 36 i2c-int-falling: 37 type: boolean 37 type: boolean 38 description: | 38 description: | 39 For I2C type of connection. Specifies th 39 For I2C type of connection. Specifies that the chip read event shall be 40 triggered on falling edge. 40 triggered on falling edge. 41 41 42 i2c-int-rising: 42 i2c-int-rising: 43 type: boolean 43 type: boolean 44 description: | 44 description: | 45 For I2C type of connection. Specifies t 45 For I2C type of connection. Specifies that the chip read event shall be 46 triggered on rising edge. 46 triggered on rising edge. 47 47 48 break-control: 48 break-control: 49 type: boolean 49 type: boolean 50 description: | 50 description: | 51 For UART type of connection. Specifies t 51 For UART type of connection. Specifies that the chip needs specific break 52 management. 52 management. 53 53 54 flow-control: 54 flow-control: 55 type: boolean 55 type: boolean 56 description: | 56 description: | 57 For UART type of connection. Specifies t 57 For UART type of connection. Specifies that the chip is using RTS/CTS. 58 58 59 spi-cpha: true 59 spi-cpha: true 60 spi-cpol: true 60 spi-cpol: true 61 61 62 required: 62 required: 63 - compatible 63 - compatible 64 64 65 allOf: 65 allOf: 66 - if: 66 - if: 67 properties: 67 properties: 68 compatible: 68 compatible: 69 contains: 69 contains: 70 const: marvell,nfc-i2c 70 const: marvell,nfc-i2c 71 then: 71 then: 72 properties: 72 properties: 73 break-control: false 73 break-control: false 74 flow-control: false 74 flow-control: false 75 spi-cpha: false 75 spi-cpha: false 76 spi-cpol: false 76 spi-cpol: false 77 spi-max-frequency: false 77 spi-max-frequency: false 78 required: 78 required: 79 - reg 79 - reg 80 80 81 - if: 81 - if: 82 properties: 82 properties: 83 compatible: 83 compatible: 84 contains: 84 contains: 85 const: marvell,nfc-spi 85 const: marvell,nfc-spi 86 then: 86 then: 87 $ref: /schemas/spi/spi-peripheral-props. 87 $ref: /schemas/spi/spi-peripheral-props.yaml# 88 properties: 88 properties: 89 break-control: false 89 break-control: false 90 flow-control: false 90 flow-control: false 91 i2c-int-falling: false 91 i2c-int-falling: false 92 i2c-int-rising: false 92 i2c-int-rising: false 93 required: 93 required: 94 - reg 94 - reg 95 95 96 - if: 96 - if: 97 properties: 97 properties: 98 compatible: 98 compatible: 99 contains: 99 contains: 100 const: marvell,nfc-uart 100 const: marvell,nfc-uart 101 then: 101 then: 102 properties: 102 properties: 103 i2c-int-falling: false 103 i2c-int-falling: false 104 i2c-int-rising: false 104 i2c-int-rising: false 105 interrupts: false 105 interrupts: false 106 spi-cpha: false 106 spi-cpha: false 107 spi-cpol: false 107 spi-cpol: false 108 spi-max-frequency: false 108 spi-max-frequency: false 109 reg: false 109 reg: false 110 110 111 unevaluatedProperties: false 111 unevaluatedProperties: false 112 112 113 examples: 113 examples: 114 - | 114 - | 115 #include <dt-bindings/gpio/gpio.h> 115 #include <dt-bindings/gpio/gpio.h> 116 #include <dt-bindings/interrupt-controller 116 #include <dt-bindings/interrupt-controller/irq.h> 117 117 118 i2c { 118 i2c { 119 #address-cells = <1>; 119 #address-cells = <1>; 120 #size-cells = <0>; 120 #size-cells = <0>; 121 121 122 nfc@8 { 122 nfc@8 { 123 compatible = "marvell,nfc-i2c"; 123 compatible = "marvell,nfc-i2c"; 124 reg = <0x8>; 124 reg = <0x8>; 125 125 126 interrupt-parent = <&gpio3>; 126 interrupt-parent = <&gpio3>; 127 interrupts = <21 IRQ_TYPE_EDGE_RIS 127 interrupts = <21 IRQ_TYPE_EDGE_RISING>; 128 128 129 i2c-int-rising; 129 i2c-int-rising; 130 130 131 reset-n-io = <&gpio3 19 GPIO_ACTIV 131 reset-n-io = <&gpio3 19 GPIO_ACTIVE_LOW>; 132 }; 132 }; 133 }; 133 }; 134 134 135 - | 135 - | 136 #include <dt-bindings/gpio/gpio.h> 136 #include <dt-bindings/gpio/gpio.h> 137 #include <dt-bindings/interrupt-controller 137 #include <dt-bindings/interrupt-controller/irq.h> 138 138 139 spi { 139 spi { 140 #address-cells = <1>; 140 #address-cells = <1>; 141 #size-cells = <0>; 141 #size-cells = <0>; 142 142 143 nfc@0 { 143 nfc@0 { 144 compatible = "marvell,nfc-spi"; 144 compatible = "marvell,nfc-spi"; 145 reg = <0>; 145 reg = <0>; 146 146 147 spi-max-frequency = <3000000>; 147 spi-max-frequency = <3000000>; 148 spi-cpha; 148 spi-cpha; 149 spi-cpol; 149 spi-cpol; 150 150 151 interrupt-parent = <&gpio1>; 151 interrupt-parent = <&gpio1>; 152 interrupts = <17 IRQ_TYPE_EDGE_RIS 152 interrupts = <17 IRQ_TYPE_EDGE_RISING>; 153 153 154 reset-n-io = <&gpio3 19 GPIO_ACTIV 154 reset-n-io = <&gpio3 19 GPIO_ACTIVE_LOW>; 155 }; 155 }; 156 }; 156 }; 157 157 158 - | 158 - | 159 #include <dt-bindings/gpio/gpio.h> 159 #include <dt-bindings/gpio/gpio.h> 160 160 161 uart { 161 uart { 162 nfc { 162 nfc { 163 compatible = "marvell,nfc-uart"; 163 compatible = "marvell,nfc-uart"; 164 164 165 reset-n-io = <&gpio3 16 GPIO_ACTIV 165 reset-n-io = <&gpio3 16 GPIO_ACTIVE_LOW>; 166 166 167 hci-muxed; 167 hci-muxed; 168 flow-control; 168 flow-control; 169 }; 169 }; 170 }; 170 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.