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,nci.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: NXP Semiconductors NCI NFC controller
0008 
0009 maintainers:
0010   - Krzysztof Kozlowski <krzk@kernel.org>
0011 
0012 properties:
0013   compatible:
0014     oneOf:
0015       - const: nxp,nxp-nci-i2c
0016       - items:
0017           - const: nxp,pn547
0018           - const: nxp,nxp-nci-i2c
0019 
0020   enable-gpios:
0021     description: Output GPIO pin used for enabling/disabling the controller
0022 
0023   firmware-gpios:
0024     description: Output GPIO pin used to enter firmware download mode
0025 
0026   interrupts:
0027     maxItems: 1
0028 
0029   reg:
0030     maxItems: 1
0031 
0032 required:
0033   - compatible
0034   - enable-gpios
0035   - interrupts
0036   - reg
0037 
0038 additionalProperties: false
0039 
0040 examples:
0041   - |
0042     #include <dt-bindings/gpio/gpio.h>
0043     #include <dt-bindings/interrupt-controller/irq.h>
0044 
0045     i2c {
0046         #address-cells = <1>;
0047         #size-cells = <0>;
0048 
0049         nfc@29 {
0050             compatible = "nxp,nxp-nci-i2c";
0051 
0052             reg = <0x29>;
0053 
0054             interrupt-parent = <&gpio1>;
0055             interrupts = <29 IRQ_TYPE_LEVEL_HIGH>;
0056 
0057             enable-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
0058             firmware-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
0059         };
0060     };