Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/net/nfc/nxp,pn532.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: NXP Semiconductors PN532 NFC controller
0008 
0009 maintainers:
0010   - Krzysztof Kozlowski <krzk@kernel.org>
0011 
0012 properties:
0013   compatible:
0014     oneOf:
0015       - const: nxp,pn532
0016       - description: Deprecated bindings
0017         enum:
0018           - nxp,pn532-i2c
0019           - nxp,pn533-i2c
0020         deprecated: true
0021 
0022   interrupts:
0023     description: Required if connected via I2C
0024     maxItems: 1
0025 
0026   reg:
0027     description: Required if connected via I2C
0028     maxItems: 1
0029 
0030 required:
0031   - compatible
0032 
0033 dependencies:
0034   interrupts: [ 'reg' ]
0035 
0036 additionalProperties: false
0037 
0038 examples:
0039   # PN532 on I2C bus
0040   - |
0041     #include <dt-bindings/interrupt-controller/irq.h>
0042 
0043     i2c {
0044         #address-cells = <1>;
0045         #size-cells = <0>;
0046 
0047         nfc@24 {
0048             compatible = "nxp,pn532";
0049 
0050             reg = <0x24>;
0051 
0052             interrupt-parent = <&gpio1>;
0053             interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
0054         };
0055     };
0056 
0057   # PN532 connected via UART
0058   - |
0059     serial@49042000 {
0060         reg = <0x49042000 0x400>;
0061 
0062         nfc {
0063             compatible = "nxp,pn532";
0064         };
0065     };