xref: /linux/Documentation/devicetree/bindings/net/nfc/nxp,pn532.yaml (revision 3079bfdbda6cc776b4fba4556258966753a6d840)
14cc0246cSKrzysztof Kozlowski# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
24cc0246cSKrzysztof Kozlowski%YAML 1.2
34cc0246cSKrzysztof Kozlowski---
44cc0246cSKrzysztof Kozlowski$id: http://devicetree.org/schemas/net/nfc/nxp,pn532.yaml#
54cc0246cSKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
64cc0246cSKrzysztof Kozlowski
74cc0246cSKrzysztof Kozlowskititle: NXP Semiconductors PN532 NFC controller
84cc0246cSKrzysztof Kozlowski
94cc0246cSKrzysztof Kozlowskimaintainers:
108a1e6bb3SKrzysztof Kozlowski  - Krzysztof Kozlowski <krzk@kernel.org>
114cc0246cSKrzysztof Kozlowski
124cc0246cSKrzysztof Kozlowskiproperties:
134cc0246cSKrzysztof Kozlowski  compatible:
144cc0246cSKrzysztof Kozlowski    oneOf:
154cc0246cSKrzysztof Kozlowski      - const: nxp,pn532
164cc0246cSKrzysztof Kozlowski      - description: Deprecated bindings
174cc0246cSKrzysztof Kozlowski        enum:
184cc0246cSKrzysztof Kozlowski          - nxp,pn532-i2c
194cc0246cSKrzysztof Kozlowski          - nxp,pn533-i2c
204cc0246cSKrzysztof Kozlowski        deprecated: true
214cc0246cSKrzysztof Kozlowski
224cc0246cSKrzysztof Kozlowski  interrupts:
234cc0246cSKrzysztof Kozlowski    description: Required if connected via I2C
244cc0246cSKrzysztof Kozlowski    maxItems: 1
254cc0246cSKrzysztof Kozlowski
264cc0246cSKrzysztof Kozlowski  reg:
274cc0246cSKrzysztof Kozlowski    description: Required if connected via I2C
284cc0246cSKrzysztof Kozlowski    maxItems: 1
294cc0246cSKrzysztof Kozlowski
304cc0246cSKrzysztof Kozlowskirequired:
314cc0246cSKrzysztof Kozlowski  - compatible
324cc0246cSKrzysztof Kozlowski
334cc0246cSKrzysztof Kozlowskidependencies:
34*3079bfdbSRob Herring  interrupts: [ reg ]
354cc0246cSKrzysztof Kozlowski
364cc0246cSKrzysztof KozlowskiadditionalProperties: false
374cc0246cSKrzysztof Kozlowski
384cc0246cSKrzysztof Kozlowskiexamples:
394cc0246cSKrzysztof Kozlowski  # PN532 on I2C bus
404cc0246cSKrzysztof Kozlowski  - |
414cc0246cSKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/irq.h>
424cc0246cSKrzysztof Kozlowski
434cc0246cSKrzysztof Kozlowski    i2c {
444cc0246cSKrzysztof Kozlowski        #address-cells = <1>;
454cc0246cSKrzysztof Kozlowski        #size-cells = <0>;
464cc0246cSKrzysztof Kozlowski
474cc0246cSKrzysztof Kozlowski        nfc@24 {
484cc0246cSKrzysztof Kozlowski            compatible = "nxp,pn532";
494cc0246cSKrzysztof Kozlowski
504cc0246cSKrzysztof Kozlowski            reg = <0x24>;
514cc0246cSKrzysztof Kozlowski
524cc0246cSKrzysztof Kozlowski            interrupt-parent = <&gpio1>;
534cc0246cSKrzysztof Kozlowski            interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
544cc0246cSKrzysztof Kozlowski        };
554cc0246cSKrzysztof Kozlowski    };
564cc0246cSKrzysztof Kozlowski
574cc0246cSKrzysztof Kozlowski  # PN532 connected via UART
584cc0246cSKrzysztof Kozlowski  - |
594cc0246cSKrzysztof Kozlowski    serial@49042000 {
604cc0246cSKrzysztof Kozlowski        reg = <0x49042000 0x400>;
614cc0246cSKrzysztof Kozlowski
624cc0246cSKrzysztof Kozlowski        nfc {
634cc0246cSKrzysztof Kozlowski            compatible = "nxp,pn532";
644cc0246cSKrzysztof Kozlowski        };
654cc0246cSKrzysztof Kozlowski    };
66