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,pn544.yaml# 58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68cc087a1SEmmanuel Vadot 78cc087a1SEmmanuel Vadottitle: NXP Semiconductors PN544 NFC Controller 88cc087a1SEmmanuel Vadot 98cc087a1SEmmanuel Vadotmaintainers: 10*c9ccf3a3SEmmanuel Vadot - Krzysztof Kozlowski <krzk@kernel.org> 118cc087a1SEmmanuel Vadot 128cc087a1SEmmanuel Vadotproperties: 138cc087a1SEmmanuel Vadot compatible: 148cc087a1SEmmanuel Vadot const: nxp,pn544-i2c 158cc087a1SEmmanuel Vadot 168cc087a1SEmmanuel Vadot reg: 178cc087a1SEmmanuel Vadot maxItems: 1 188cc087a1SEmmanuel Vadot 198cc087a1SEmmanuel Vadot interrupts: 208cc087a1SEmmanuel Vadot maxItems: 1 218cc087a1SEmmanuel Vadot 228cc087a1SEmmanuel Vadot enable-gpios: 238cc087a1SEmmanuel Vadot description: Output GPIO pin used for enabling/disabling the PN544 248cc087a1SEmmanuel Vadot maxItems: 1 258cc087a1SEmmanuel Vadot 268cc087a1SEmmanuel Vadot firmware-gpios: 278cc087a1SEmmanuel Vadot description: Output GPIO pin used to enter firmware download mode 288cc087a1SEmmanuel Vadot maxItems: 1 298cc087a1SEmmanuel Vadot 308cc087a1SEmmanuel Vadotrequired: 318cc087a1SEmmanuel Vadot - compatible 328cc087a1SEmmanuel Vadot - reg 338cc087a1SEmmanuel Vadot - interrupts 348cc087a1SEmmanuel Vadot - enable-gpios 358cc087a1SEmmanuel Vadot - firmware-gpios 368cc087a1SEmmanuel Vadot 378cc087a1SEmmanuel VadotadditionalProperties: false 388cc087a1SEmmanuel Vadot 398cc087a1SEmmanuel Vadotexamples: 408cc087a1SEmmanuel Vadot - | 418cc087a1SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 428cc087a1SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 438cc087a1SEmmanuel Vadot 448cc087a1SEmmanuel Vadot i2c { 458cc087a1SEmmanuel Vadot #address-cells = <1>; 468cc087a1SEmmanuel Vadot #size-cells = <0>; 478cc087a1SEmmanuel Vadot 488cc087a1SEmmanuel Vadot nfc@28 { 498cc087a1SEmmanuel Vadot compatible = "nxp,pn544-i2c"; 508cc087a1SEmmanuel Vadot reg = <0x28>; 518cc087a1SEmmanuel Vadot 528cc087a1SEmmanuel Vadot interrupt-parent = <&gpio1>; 538cc087a1SEmmanuel Vadot interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; 548cc087a1SEmmanuel Vadot 558cc087a1SEmmanuel Vadot enable-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>; 568cc087a1SEmmanuel Vadot firmware-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>; 578cc087a1SEmmanuel Vadot }; 588cc087a1SEmmanuel Vadot }; 59