Commit 07d20a64 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by David S. Miller
Browse files

dt-bindings: net: nfc: s3fwrn5: Convert to dtschema



Convert the Samsung S3FWRN5 NCI NFC controller bindings to dtschema.
This is conversion only so it includes properties with invalid prefixes
(s3fwrn5,en-gpios) which should be addressed later.

Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3fe6ab12
Loading
Loading
Loading
Loading
+0 −25
Original line number Diff line number Diff line
* Samsung S3FWRN5 NCI NFC Controller

Required properties:
- compatible: Should be "samsung,s3fwrn5-i2c".
- reg: address on the bus
- interrupts: GPIO interrupt to which the chip is connected
- s3fwrn5,en-gpios: Output GPIO pin used for enabling/disabling the chip
- s3fwrn5,fw-gpios: Output GPIO pin used to enter firmware mode and
  sleep/wakeup control

Example:

&hsi2c_4 {
	s3fwrn5@27 {
		compatible = "samsung,s3fwrn5-i2c";

		reg = <0x27>;

		interrupt-parent = <&gpa1>;
		interrupts = <3 0 0>;

		s3fwrn5,en-gpios = <&gpf1 4 0>;
		s3fwrn5,fw-gpios = <&gpj0 2 0>;
	};
};
+61 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/net/nfc/samsung,s3fwrn5.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Samsung S3FWRN5 NCI NFC Controller

maintainers:
  - Krzysztof Kozlowski <krzk@kernel.org>
  - Krzysztof Opasiak <k.opasiak@samsung.com>

properties:
  compatible:
    const: samsung,s3fwrn5-i2c

  interrupts:
    maxItems: 1

  reg:
    maxItems: 1

  s3fwrn5,en-gpios:
    maxItems: 1
    description:
      Output GPIO pin used for enabling/disabling the chip

  s3fwrn5,fw-gpios:
    maxItems: 1
    description:
      Output GPIO pin used to enter firmware mode and sleep/wakeup control

additionalProperties: false

required:
  - compatible
  - interrupts
  - reg
  - s3fwrn5,en-gpios
  - s3fwrn5,fw-gpios

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/interrupt-controller/irq.h>

    i2c4 {
        #address-cells = <1>;
        #size-cells = <0>;

        s3fwrn5@27 {
            compatible = "samsung,s3fwrn5-i2c";
            reg = <0x27>;

            interrupt-parent = <&gpa1>;
            interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;

            s3fwrn5,en-gpios = <&gpf1 4 GPIO_ACTIVE_HIGH>;
            s3fwrn5,fw-gpios = <&gpj0 2 GPIO_ACTIVE_HIGH>;
        };
    };
+1 −0
Original line number Diff line number Diff line
@@ -15296,6 +15296,7 @@ M: Robert Baldyga <r.baldyga@samsung.com>
M:	Krzysztof Opasiak <k.opasiak@samsung.com>
L:	linux-nfc@lists.01.org (moderated for non-subscribers)
S:	Supported
F:	Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml
F:	drivers/nfc/s3fwrn5
SAMSUNG S5C73M3 CAMERA DRIVER