~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/net/nfc/marvell,nci.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

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

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php