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/nxp 4 $id: http://devicetree.org/schemas/net/nfc/nxp,nci.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: NXP Semiconductors NCI NFC controller 7 title: NXP Semiconductors 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 oneOf: 14 oneOf: 15 - const: nxp,nxp-nci-i2c 15 - const: nxp,nxp-nci-i2c 16 - items: 16 - items: 17 - enum: 17 - enum: 18 - nxp,nq310 18 - nxp,nq310 19 - nxp,pn547 19 - nxp,pn547 20 - const: nxp,nxp-nci-i2c 20 - const: nxp,nxp-nci-i2c 21 21 22 enable-gpios: 22 enable-gpios: 23 description: Output GPIO pin used for enab 23 description: Output GPIO pin used for enabling/disabling the controller 24 24 25 firmware-gpios: 25 firmware-gpios: 26 description: Output GPIO pin used to enter 26 description: Output GPIO pin used to enter firmware download mode 27 27 28 interrupts: 28 interrupts: 29 maxItems: 1 29 maxItems: 1 30 30 31 reg: 31 reg: 32 maxItems: 1 32 maxItems: 1 33 33 34 required: 34 required: 35 - compatible 35 - compatible 36 - enable-gpios 36 - enable-gpios 37 - interrupts 37 - interrupts 38 - reg 38 - reg 39 39 40 additionalProperties: false 40 additionalProperties: false 41 41 42 examples: 42 examples: 43 - | 43 - | 44 #include <dt-bindings/gpio/gpio.h> 44 #include <dt-bindings/gpio/gpio.h> 45 #include <dt-bindings/interrupt-controller 45 #include <dt-bindings/interrupt-controller/irq.h> 46 46 47 i2c { 47 i2c { 48 #address-cells = <1>; 48 #address-cells = <1>; 49 #size-cells = <0>; 49 #size-cells = <0>; 50 50 51 nfc@29 { 51 nfc@29 { 52 compatible = "nxp,nxp-nci-i2c"; 52 compatible = "nxp,nxp-nci-i2c"; 53 53 54 reg = <0x29>; 54 reg = <0x29>; 55 55 56 interrupt-parent = <&gpio1>; 56 interrupt-parent = <&gpio1>; 57 interrupts = <29 IRQ_TYPE_LEVEL_HI 57 interrupts = <29 IRQ_TYPE_LEVEL_HIGH>; 58 58 59 enable-gpios = <&gpio0 30 GPIO_ACT 59 enable-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>; 60 firmware-gpios = <&gpio0 31 GPIO_A 60 firmware-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>; 61 }; 61 }; 62 }; 62 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.