From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8439487111875378522==" MIME-Version: 1.0 From: krzk@kernel.org To: linux-nfc@lists.01.org Subject: [linux-nfc] Re: [PATCH net-next 1/2] dt-bindings: net: nfc: s3fwrn5: Support a UART interface Date: Mon, 23 Nov 2020 09:01:23 +0100 Message-ID: <20201123080123.GA5656@kozik-lap> In-Reply-To: 20201123075526epcms2p59410a8ba942f8942f53a593d9df764d0@epcms2p5 --===============8439487111875378522== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Mon, Nov 23, 2020@04:55:26PM +0900, Bongsu Jeon wrote: > Since S3FWRN82 NFC Chip, The UART interface can be used. > S3FWRN82 supports I2C and UART interface. > = > Signed-off-by: Bongsu Jeon > --- > .../bindings/net/nfc/samsung,s3fwrn5.yaml | 28 +++++++++++++++++-- > 1 file changed, 26 insertions(+), 2 deletions(-) > = > diff --git a/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.ya= ml b/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml > index cb0b8a560282..37b3e5ae5681 100644 > --- a/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml > +++ b/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml > @@ -13,6 +13,7 @@ maintainers: > properties: > compatible: > const: samsung,s3fwrn5-i2c > + const: samsung,s3fwrn82-uart This does not work, you need to use enum. Did you run@least dt_bindings_check? The compatible should be just "samsung,s3fwrn82". I think it was a mistake in the first s3fwrn5 submission to add a interface to compatible. > = > en-gpios: > maxItems: 1 > @@ -47,10 +48,19 @@ additionalProperties: false > required: > - compatible > - en-gpios > - - interrupts > - - reg > - wake-gpios > = > +allOf: > + - if: > + properties: > + compatible: > + contains: > + const: samsung,s3fwrn5-i2c > + then: > + required: > + - interrupts > + - reg > + > examples: > - | > #include > @@ -71,3 +81,17 @@ examples: > wake-gpios =3D <&gpj0 2 GPIO_ACTIVE_HIGH>; > }; > }; > + # UART example on Raspberry Pi > + - | > + &uart0 { > + status =3D "okay"; > + > + s3fwrn82_uart { Just "bluetooth" to follow Devicetree specification. Best regards, Krzysztof --===============8439487111875378522==--