xref: /openbmc/linux/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml (revision 07d20a643084f5cc96370c2490a07a517877dc0a)
1*07d20a64SKrzysztof Kozlowski# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*07d20a64SKrzysztof Kozlowski%YAML 1.2
3*07d20a64SKrzysztof Kozlowski---
4*07d20a64SKrzysztof Kozlowski$id: http://devicetree.org/schemas/net/nfc/samsung,s3fwrn5.yaml#
5*07d20a64SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
6*07d20a64SKrzysztof Kozlowski
7*07d20a64SKrzysztof Kozlowskititle: Samsung S3FWRN5 NCI NFC Controller
8*07d20a64SKrzysztof Kozlowski
9*07d20a64SKrzysztof Kozlowskimaintainers:
10*07d20a64SKrzysztof Kozlowski  - Krzysztof Kozlowski <krzk@kernel.org>
11*07d20a64SKrzysztof Kozlowski  - Krzysztof Opasiak <k.opasiak@samsung.com>
12*07d20a64SKrzysztof Kozlowski
13*07d20a64SKrzysztof Kozlowskiproperties:
14*07d20a64SKrzysztof Kozlowski  compatible:
15*07d20a64SKrzysztof Kozlowski    const: samsung,s3fwrn5-i2c
16*07d20a64SKrzysztof Kozlowski
17*07d20a64SKrzysztof Kozlowski  interrupts:
18*07d20a64SKrzysztof Kozlowski    maxItems: 1
19*07d20a64SKrzysztof Kozlowski
20*07d20a64SKrzysztof Kozlowski  reg:
21*07d20a64SKrzysztof Kozlowski    maxItems: 1
22*07d20a64SKrzysztof Kozlowski
23*07d20a64SKrzysztof Kozlowski  s3fwrn5,en-gpios:
24*07d20a64SKrzysztof Kozlowski    maxItems: 1
25*07d20a64SKrzysztof Kozlowski    description:
26*07d20a64SKrzysztof Kozlowski      Output GPIO pin used for enabling/disabling the chip
27*07d20a64SKrzysztof Kozlowski
28*07d20a64SKrzysztof Kozlowski  s3fwrn5,fw-gpios:
29*07d20a64SKrzysztof Kozlowski    maxItems: 1
30*07d20a64SKrzysztof Kozlowski    description:
31*07d20a64SKrzysztof Kozlowski      Output GPIO pin used to enter firmware mode and sleep/wakeup control
32*07d20a64SKrzysztof Kozlowski
33*07d20a64SKrzysztof KozlowskiadditionalProperties: false
34*07d20a64SKrzysztof Kozlowski
35*07d20a64SKrzysztof Kozlowskirequired:
36*07d20a64SKrzysztof Kozlowski  - compatible
37*07d20a64SKrzysztof Kozlowski  - interrupts
38*07d20a64SKrzysztof Kozlowski  - reg
39*07d20a64SKrzysztof Kozlowski  - s3fwrn5,en-gpios
40*07d20a64SKrzysztof Kozlowski  - s3fwrn5,fw-gpios
41*07d20a64SKrzysztof Kozlowski
42*07d20a64SKrzysztof Kozlowskiexamples:
43*07d20a64SKrzysztof Kozlowski  - |
44*07d20a64SKrzysztof Kozlowski    #include <dt-bindings/gpio/gpio.h>
45*07d20a64SKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/irq.h>
46*07d20a64SKrzysztof Kozlowski
47*07d20a64SKrzysztof Kozlowski    i2c4 {
48*07d20a64SKrzysztof Kozlowski        #address-cells = <1>;
49*07d20a64SKrzysztof Kozlowski        #size-cells = <0>;
50*07d20a64SKrzysztof Kozlowski
51*07d20a64SKrzysztof Kozlowski        s3fwrn5@27 {
52*07d20a64SKrzysztof Kozlowski            compatible = "samsung,s3fwrn5-i2c";
53*07d20a64SKrzysztof Kozlowski            reg = <0x27>;
54*07d20a64SKrzysztof Kozlowski
55*07d20a64SKrzysztof Kozlowski            interrupt-parent = <&gpa1>;
56*07d20a64SKrzysztof Kozlowski            interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
57*07d20a64SKrzysztof Kozlowski
58*07d20a64SKrzysztof Kozlowski            s3fwrn5,en-gpios = <&gpf1 4 GPIO_ACTIVE_HIGH>;
59*07d20a64SKrzysztof Kozlowski            s3fwrn5,fw-gpios = <&gpj0 2 GPIO_ACTIVE_HIGH>;
60*07d20a64SKrzysztof Kozlowski        };
61*07d20a64SKrzysztof Kozlowski    };
62