18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 28cc087a1SEmmanuel Vadot%YAML 1.2 38cc087a1SEmmanuel Vadot--- 48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/net/nfc/nxp,nci.yaml# 58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68cc087a1SEmmanuel Vadot 78cc087a1SEmmanuel Vadottitle: NXP Semiconductors NCI NFC controller 88cc087a1SEmmanuel Vadot 98cc087a1SEmmanuel Vadotmaintainers: 10c9ccf3a3SEmmanuel Vadot - Krzysztof Kozlowski <krzk@kernel.org> 118cc087a1SEmmanuel Vadot 128cc087a1SEmmanuel Vadotproperties: 138cc087a1SEmmanuel Vadot compatible: 148cc087a1SEmmanuel Vadot oneOf: 158cc087a1SEmmanuel Vadot - const: nxp,nxp-nci-i2c 168cc087a1SEmmanuel Vadot - items: 17*8bab661aSEmmanuel Vadot - enum: 18*8bab661aSEmmanuel Vadot - nxp,nq310 19*8bab661aSEmmanuel Vadot - nxp,pn547 208cc087a1SEmmanuel Vadot - const: nxp,nxp-nci-i2c 218cc087a1SEmmanuel Vadot 228cc087a1SEmmanuel Vadot enable-gpios: 238cc087a1SEmmanuel Vadot description: Output GPIO pin used for enabling/disabling the controller 248cc087a1SEmmanuel Vadot 258cc087a1SEmmanuel Vadot firmware-gpios: 268cc087a1SEmmanuel Vadot description: Output GPIO pin used to enter firmware download mode 278cc087a1SEmmanuel Vadot 288cc087a1SEmmanuel Vadot interrupts: 298cc087a1SEmmanuel Vadot maxItems: 1 308cc087a1SEmmanuel Vadot 318cc087a1SEmmanuel Vadot reg: 328cc087a1SEmmanuel Vadot maxItems: 1 338cc087a1SEmmanuel Vadot 348cc087a1SEmmanuel Vadotrequired: 358cc087a1SEmmanuel Vadot - compatible 368cc087a1SEmmanuel Vadot - enable-gpios 378cc087a1SEmmanuel Vadot - interrupts 388cc087a1SEmmanuel Vadot - reg 398cc087a1SEmmanuel Vadot 408cc087a1SEmmanuel VadotadditionalProperties: false 418cc087a1SEmmanuel Vadot 428cc087a1SEmmanuel Vadotexamples: 438cc087a1SEmmanuel Vadot - | 448cc087a1SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 458cc087a1SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 468cc087a1SEmmanuel Vadot 478cc087a1SEmmanuel Vadot i2c { 488cc087a1SEmmanuel Vadot #address-cells = <1>; 498cc087a1SEmmanuel Vadot #size-cells = <0>; 508cc087a1SEmmanuel Vadot 518cc087a1SEmmanuel Vadot nfc@29 { 528cc087a1SEmmanuel Vadot compatible = "nxp,nxp-nci-i2c"; 538cc087a1SEmmanuel Vadot 548cc087a1SEmmanuel Vadot reg = <0x29>; 558cc087a1SEmmanuel Vadot 568cc087a1SEmmanuel Vadot interrupt-parent = <&gpio1>; 578cc087a1SEmmanuel Vadot interrupts = <29 IRQ_TYPE_LEVEL_HIGH>; 588cc087a1SEmmanuel Vadot 598cc087a1SEmmanuel Vadot enable-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>; 608cc087a1SEmmanuel Vadot firmware-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>; 618cc087a1SEmmanuel Vadot }; 628cc087a1SEmmanuel Vadot }; 63