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/nxp,nci.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: NXP Semiconductors NCI NFC controller 8 9maintainers: 10 - Krzysztof Kozlowski <krzk@kernel.org> 11 12properties: 13 compatible: 14 oneOf: 15 - const: nxp,nxp-nci-i2c 16 - items: 17 - enum: 18 - nxp,nq310 19 - nxp,pn547 20 - nxp,pn553 21 - const: nxp,nxp-nci-i2c 22 23 enable-gpios: 24 description: Output GPIO pin used for enabling/disabling the controller 25 26 firmware-gpios: 27 description: Output GPIO pin used to enter firmware download mode 28 29 interrupts: 30 maxItems: 1 31 32 reg: 33 maxItems: 1 34 35required: 36 - compatible 37 - enable-gpios 38 - interrupts 39 - reg 40 41additionalProperties: false 42 43examples: 44 - | 45 #include <dt-bindings/gpio/gpio.h> 46 #include <dt-bindings/interrupt-controller/irq.h> 47 48 i2c { 49 #address-cells = <1>; 50 #size-cells = <0>; 51 52 nfc@29 { 53 compatible = "nxp,nxp-nci-i2c"; 54 55 reg = <0x29>; 56 57 interrupt-parent = <&gpio1>; 58 interrupts = <29 IRQ_TYPE_LEVEL_HIGH>; 59 60 enable-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>; 61 firmware-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>; 62 }; 63 }; 64