brintos

brintos / linux-shallow public Read only

0
0
Text · 1.3 KiB · 6924aff Raw
63 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---4$id: http://devicetree.org/schemas/net/nfc/nxp,nci.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: NXP Semiconductors NCI NFC controller8 9maintainers:10  - Krzysztof Kozlowski <krzk@kernel.org>11 12properties:13  compatible:14    oneOf:15      - const: nxp,nxp-nci-i2c16      - items:17          - enum:18              - nxp,nq31019              - nxp,pn54720          - const: nxp,nxp-nci-i2c21 22  enable-gpios:23    description: Output GPIO pin used for enabling/disabling the controller24 25  firmware-gpios:26    description: Output GPIO pin used to enter firmware download mode27 28  interrupts:29    maxItems: 130 31  reg:32    maxItems: 133 34required:35  - compatible36  - enable-gpios37  - interrupts38  - reg39 40additionalProperties: false41 42examples:43  - |44    #include <dt-bindings/gpio/gpio.h>45    #include <dt-bindings/interrupt-controller/irq.h>46 47    i2c {48        #address-cells = <1>;49        #size-cells = <0>;50 51        nfc@29 {52            compatible = "nxp,nxp-nci-i2c";53 54            reg = <0x29>;55 56            interrupt-parent = <&gpio1>;57            interrupts = <29 IRQ_TYPE_LEVEL_HIGH>;58 59            enable-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;60            firmware-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;61        };62    };63