diff options
author | Emmanuel Vadot <manu@FreeBSD.org> | 2022-08-10 12:25:35 +0000 |
---|---|---|
committer | Emmanuel Vadot <manu@FreeBSD.org> | 2022-08-10 12:25:35 +0000 |
commit | dec44e532c3bba72c68af7337d74712dd9540aee (patch) | |
tree | e6765e5fa7dba1526e5cc5fd089d6a3233e713a4 /Bindings/net/nfc/nxp,pn532.yaml | |
parent | 1769b8f3a9ff2d1e1505e0a66027a5493fe30c52 (diff) |
Import device-tree files from Linux 5.16vendor/device-tree/5.16
Diffstat (limited to 'Bindings/net/nfc/nxp,pn532.yaml')
-rw-r--r-- | Bindings/net/nfc/nxp,pn532.yaml | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/Bindings/net/nfc/nxp,pn532.yaml b/Bindings/net/nfc/nxp,pn532.yaml new file mode 100644 index 000000000000..d8ba5a18db98 --- /dev/null +++ b/Bindings/net/nfc/nxp,pn532.yaml @@ -0,0 +1,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 <krzysztof.kozlowski@canonical.com> + +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"; + }; + }; |