xref: /freebsd/sys/contrib/device-tree/Bindings/net/nfc/samsung,s3fwrn5.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
16be33864SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
26be33864SEmmanuel Vadot%YAML 1.2
36be33864SEmmanuel Vadot---
46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/net/nfc/samsung,s3fwrn5.yaml#
56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
66be33864SEmmanuel Vadot
76be33864SEmmanuel Vadottitle: Samsung S3FWRN5 NCI NFC Controller
86be33864SEmmanuel Vadot
96be33864SEmmanuel Vadotmaintainers:
106be33864SEmmanuel Vadot  - Krzysztof Kozlowski <krzk@kernel.org>
116be33864SEmmanuel Vadot
126be33864SEmmanuel Vadotproperties:
136be33864SEmmanuel Vadot  compatible:
145def4c47SEmmanuel Vadot    enum:
155def4c47SEmmanuel Vadot      - samsung,s3fwrn5-i2c
165def4c47SEmmanuel Vadot      - samsung,s3fwrn82
176be33864SEmmanuel Vadot
186be33864SEmmanuel Vadot  en-gpios:
196be33864SEmmanuel Vadot    maxItems: 1
206be33864SEmmanuel Vadot    description:
216be33864SEmmanuel Vadot      Output GPIO pin used for enabling/disabling the chip
226be33864SEmmanuel Vadot
236be33864SEmmanuel Vadot  interrupts:
246be33864SEmmanuel Vadot    maxItems: 1
256be33864SEmmanuel Vadot
266be33864SEmmanuel Vadot  reg:
276be33864SEmmanuel Vadot    maxItems: 1
286be33864SEmmanuel Vadot
295956d97fSEmmanuel Vadot  clocks:
305956d97fSEmmanuel Vadot    maxItems: 1
315956d97fSEmmanuel Vadot
326be33864SEmmanuel Vadot  wake-gpios:
336be33864SEmmanuel Vadot    maxItems: 1
346be33864SEmmanuel Vadot    description:
356be33864SEmmanuel Vadot      Output GPIO pin used to enter firmware mode and sleep/wakeup control
366be33864SEmmanuel Vadot
376be33864SEmmanuel Vadot  s3fwrn5,en-gpios:
386be33864SEmmanuel Vadot    maxItems: 1
396be33864SEmmanuel Vadot    deprecated: true
406be33864SEmmanuel Vadot    description:
416be33864SEmmanuel Vadot      Use en-gpios
426be33864SEmmanuel Vadot
436be33864SEmmanuel Vadot  s3fwrn5,fw-gpios:
446be33864SEmmanuel Vadot    maxItems: 1
456be33864SEmmanuel Vadot    deprecated: true
466be33864SEmmanuel Vadot    description:
476be33864SEmmanuel Vadot      Use wake-gpios
486be33864SEmmanuel Vadot
496be33864SEmmanuel VadotadditionalProperties: false
506be33864SEmmanuel Vadot
516be33864SEmmanuel Vadotrequired:
526be33864SEmmanuel Vadot  - compatible
536be33864SEmmanuel Vadot  - en-gpios
545def4c47SEmmanuel Vadot  - wake-gpios
555def4c47SEmmanuel Vadot
565def4c47SEmmanuel VadotallOf:
575def4c47SEmmanuel Vadot  - if:
585def4c47SEmmanuel Vadot      properties:
595def4c47SEmmanuel Vadot        compatible:
605def4c47SEmmanuel Vadot          contains:
615def4c47SEmmanuel Vadot            const: samsung,s3fwrn5-i2c
625def4c47SEmmanuel Vadot    then:
635def4c47SEmmanuel Vadot      required:
646be33864SEmmanuel Vadot        - interrupts
656be33864SEmmanuel Vadot        - reg
666be33864SEmmanuel Vadot
676be33864SEmmanuel Vadotexamples:
686be33864SEmmanuel Vadot  - |
696be33864SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
706be33864SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
716be33864SEmmanuel Vadot
72*fac71e4eSEmmanuel Vadot    i2c {
736be33864SEmmanuel Vadot        #address-cells = <1>;
746be33864SEmmanuel Vadot        #size-cells = <0>;
756be33864SEmmanuel Vadot
766be33864SEmmanuel Vadot        s3fwrn5@27 {
776be33864SEmmanuel Vadot            compatible = "samsung,s3fwrn5-i2c";
786be33864SEmmanuel Vadot            reg = <0x27>;
796be33864SEmmanuel Vadot
806be33864SEmmanuel Vadot            interrupt-parent = <&gpa1>;
815def4c47SEmmanuel Vadot            interrupts = <3 IRQ_TYPE_EDGE_RISING>;
826be33864SEmmanuel Vadot
836be33864SEmmanuel Vadot            en-gpios = <&gpf1 4 GPIO_ACTIVE_HIGH>;
846be33864SEmmanuel Vadot            wake-gpios = <&gpj0 2 GPIO_ACTIVE_HIGH>;
855956d97fSEmmanuel Vadot
865956d97fSEmmanuel Vadot            clocks = <&rpmcc 20>;
876be33864SEmmanuel Vadot        };
886be33864SEmmanuel Vadot    };
895def4c47SEmmanuel Vadot  # UART example on Raspberry Pi
905def4c47SEmmanuel Vadot  - |
915def4c47SEmmanuel Vadot    uart0 {
925def4c47SEmmanuel Vadot        nfc {
935def4c47SEmmanuel Vadot            compatible = "samsung,s3fwrn82";
945def4c47SEmmanuel Vadot
955def4c47SEmmanuel Vadot            en-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
965def4c47SEmmanuel Vadot            wake-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
975def4c47SEmmanuel Vadot
985def4c47SEmmanuel Vadot        };
995def4c47SEmmanuel Vadot    };
100