Commit 36d07620 authored by Bongsu Jeon's avatar Bongsu Jeon Committed by Jakub Kicinski
Browse files

dt-bindings: net: nfc: s3fwrn5: Support a UART interface



Since S3FWRN82 NFC Chip, The UART interface can be used.
S3FWRN82 supports I2C and UART interface.

Signed-off-by: default avatarBongsu Jeon <bongsu.jeon@samsung.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 32e41702
Loading
Loading
Loading
Loading
+28 −3
Original line number Diff line number Diff line
@@ -12,7 +12,9 @@ maintainers:

properties:
  compatible:
    const: samsung,s3fwrn5-i2c
    enum:
      - samsung,s3fwrn5-i2c
      - samsung,s3fwrn82

  en-gpios:
    maxItems: 1
@@ -47,9 +49,18 @@ additionalProperties: false
required:
  - compatible
  - en-gpios
  - wake-gpios

allOf:
  - if:
      properties:
        compatible:
          contains:
            const: samsung,s3fwrn5-i2c
    then:
      required:
        - interrupts
        - reg
  - wake-gpios

examples:
  - |
@@ -71,3 +82,17 @@ examples:
            wake-gpios = <&gpj0 2 GPIO_ACTIVE_HIGH>;
        };
    };
  # UART example on Raspberry Pi
  - |
    uart0 {
        status = "okay";

        nfc {
            compatible = "samsung,s3fwrn82";

            en-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
            wake-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;

            status = "okay";
        };
    };