summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/net/nfc/nxp,pn532.yaml
blob: 0509e0166345a1fe67d9127297612b1afd94a222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/net/nfc/nxp,pn532.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: NXP Semiconductors PN532 NFC controller

maintainers:
  - Krzysztof Kozlowski <krzk@kernel.org>

properties:
  compatible:
    oneOf:
      - const: nxp,pn532
      - description: Deprecated bindings
        enum:
          - nxp,pn532-i2c
          - nxp,pn533-i2c
        deprecated: true

  interrupts:
    description: Required if connected via I2C
    maxItems: 1

  reg:
    description: Required if connected via I2C
    maxItems: 1

required:
  - compatible

dependencies:
  interrupts: [ 'reg' ]

additionalProperties: false

examples:
  # PN532 on I2C bus
  - |
    #include <dt-bindings/interrupt-controller/irq.h>

    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        nfc@24 {
            compatible = "nxp,pn532";

            reg = <0x24>;

            interrupt-parent = <&gpio1>;
            interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
        };
    };

  # PN532 connected via UART
  - |
    serial@49042000 {
        reg = <0x49042000 0x400>;

        nfc {
            compatible = "nxp,pn532";
        };
    };