From: Aswath Govindraju <a-govindraju@ti.com>
To: Rob Herring <robh@kernel.org>
Cc: Sekhar Nori <nsekhar@ti.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Roger Quadros <rogerq@ti.com>, <linux-usb@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [EXTERNAL] Re: [PATCH] dt-bindings: usb: Add new compatible string for AM64 SoC
Date: Thu, 10 Dec 2020 10:57:18 +0530 [thread overview]
Message-ID: <dec457d6-5dc2-0823-e405-f5c2d7d555f6@ti.com> (raw)
In-Reply-To: <20201209193417.GB807821@robh.at.kernel.org>
Hi Robert,
On 10/12/20 1:04 am, Rob Herring wrote:
> On Wed, Dec 09, 2020 at 10:27:32PM +0530, Aswath Govindraju wrote:
>> Add compatible string in j721e-usb binding file as similar USB subsystem
>> is present in AM64.
>>
>> Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
>> Acked-by: Roger Quadros <rogerq@ti.com>
>> ---
>> Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml | 7 +++++--
>> 1 file changed, 5 insertions(+), 2 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml b/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml
>> index 388245b91a55..05d976bb06d0 100644
>> --- a/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml
>> +++ b/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml
>> @@ -11,8 +11,11 @@ maintainers:
>>
>> properties:
>> compatible:
>> - items:
>> - - const: ti,j721e-usb
>> + anyOf:
>> + - items:
>> + - const: ti,j721e-usb
>> + - items:
>> + - const: ti,am64-usb
>
> Use 'enum'.
>
Thank you for the comments.
I used anyOf to mention that the compatible strings can be either used
separately or together in the DT files after referring [1].
Using enum brought in constraints such as if one compatible string is
used the other cannot be used.
The error that I made was use of '\t' at the start of the lines. I will
correct it and send a respin.
[1]https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/example-schema.yaml
Thanks,
Aswath
>>
>> reg:
>> description: module registers
>> --
>> 2.17.1
>>
next prev parent reply other threads:[~2020-12-10 5:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-09 16:57 [PATCH] dt-bindings: gpio: Add compatible string for AM64 SoC Aswath Govindraju
2020-12-09 16:57 ` [PATCH] dt-bindings: usb: Add new " Aswath Govindraju
2020-12-09 19:33 ` Rob Herring
2020-12-09 19:34 ` Rob Herring
2020-12-10 5:27 ` Aswath Govindraju [this message]
2020-12-09 16:57 ` [PATCH] dt-bindings: i2c: Add " Aswath Govindraju
2020-12-10 2:49 ` Rob Herring
2020-12-10 2:49 ` [PATCH] dt-bindings: gpio: " Rob Herring
2021-01-06 10:19 ` Bartosz Golaszewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dec457d6-5dc2-0823-e405-f5c2d7d555f6@ti.com \
--to=a-govindraju@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=nsekhar@ti.com \
--cc=robh@kernel.org \
--cc=rogerq@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox