From: Charan Pedumuru <charan.pedumuru@gmail.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Claudiu Beznea <claudiu.beznea@tuxon.dev>,
Herve Codina <herve.codina@bootlin.com>,
Nicolas Ferre <nicolas.ferre@microchip.com>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/5] dt-bindings: usb: generic-ohci: add AT91RM9200 OHCI binding support
Date: Fri, 13 Mar 2026 12:04:52 +0530 [thread overview]
Message-ID: <648da83c-79c5-4936-939d-690e7af1f95e@gmail.com> (raw)
In-Reply-To: <1d49a4f4-8694-470f-82e2-6021772fc821@kernel.org>
On 08-03-2026 14:58, Krzysztof Kozlowski wrote:
> On 08/03/2026 10:23, Krzysztof Kozlowski wrote:
>> On Sat, Mar 07, 2026 at 09:16:19AM +0000, Charan Pedumuru wrote:
>>> Add binding support for the Atmel AT91RM9200 OHCI USB host controller
>>> to the generic OHCI schema.
>>>
>>> Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com>
>
> Also:
>
> A nit, subject: drop second/last, redundant "binding support". The
> "dt-bindings" prefix is already stating that these are bindings.
> See also:
> https://elixir.bootlin.com/linux/v6.17-rc3/source/Documentation/devicetree/bindings/submitting-patches.rst#L18
>
> And you cannot add support for bindings. The DT schema or some kernel
> Makefile gave that support, not this file.
Okay, I will change that.
>
>
>>> ---
>>> .../devicetree/bindings/usb/generic-ohci.yaml | 33 ++++++++++++++++++++++
>>> 1 file changed, 33 insertions(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/usb/generic-ohci.yaml b/Documentation/devicetree/bindings/usb/generic-ohci.yaml
>>> index 961cbf85eeb5..a8a94b9c1fee 100644
>>> --- a/Documentation/devicetree/bindings/usb/generic-ohci.yaml
>>> +++ b/Documentation/devicetree/bindings/usb/generic-ohci.yaml
>>> @@ -55,6 +55,7 @@ properties:
>>> - ti,ohci-omap3
>>> - items:
>>> - enum:
>>> + - atmel,at91rm9200-ohci
>>> - cavium,octeon-6335-ohci
>>> - nintendo,hollywood-usb-ohci
>>> - nxp,ohci-nxp
>>> @@ -137,6 +138,16 @@ properties:
>>> The associated ISP1301 device. Necessary for the UDC controller for
>>> connecting to the USB physical layer.
>>>
>>> + atmel,vbus-gpio:
>>
>> gpio is deprecated. All bindings use gpios. Also, pins do not use vendor
>> prefixes.
>>
>>
>>> + description: GPIO used to control or sense the USB VBUS power.
>>> + minItems: 1
>>> + maxItems: 3
>>
>> Why is this flexible? There is only one VBUS, no? Which pin is it
>> exactly on this device?
>>
>>> +
>>> + atmel,oc-gpio:
>>> + description: GPIO used to signal USB overcurrent condition.
>>> + minItems: 1
>>> + maxItems: 3
>>
>> Same question here - how is the pin called in the schematics?
>>
>>> +
>>> required:
>>> - compatible
>>> - reg
>>> @@ -144,6 +155,28 @@ required:
>>>
>>> allOf:
>>> - $ref: usb-hcd.yaml
>>> + - if:
>>> + properties:
>>> + compatible:
>>> + contains:
>>> + const: atmel,at91rm9200-ohci
>>> + then:
>>> + properties:
>>> + clock-names:
>>> + items:
>>> + - const: ohci_clk
>>> + - const: hclk
>>> + - const: uhpck
>>> +
>>> + required:
>>> + - clocks
>>> + - clock-names
>>
>> There is already if:then:else covering clocks, so this makes multiple
>> clauses being applied to same device. That's not really readable.
>> Unfortunately that's a bit of a mess from existing binding. This can be
>> solved by moving this to separate schema, especially that you want to
>> add some specific properties to this device.
>
> I guess Rob was fine with this, so let's keep it in this file.
Yes, it should be defined here as the fallback compatible is already defined in this existing YAML.
>
> Best regards,
> Krzysztof
--
Best Regards,
Charan.
next prev parent reply other threads:[~2026-03-13 6:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-07 9:16 [PATCH v3 0/5] dt-bindings: usb: atmel: convert Atmel USB controller bindings to YAML Charan Pedumuru
2026-03-07 9:16 ` [PATCH v3 1/5] arm: dts: at91: remove unused #address-cells/#size-cells from sam9x60 udc node Charan Pedumuru
2026-03-08 16:06 ` Claudiu Beznea
2026-03-07 9:16 ` [PATCH v3 2/5] dt-bindings: usb: generic-ohci: add AT91RM9200 OHCI binding support Charan Pedumuru
2026-03-08 9:23 ` Krzysztof Kozlowski
2026-03-08 9:28 ` Krzysztof Kozlowski
2026-03-13 6:34 ` Charan Pedumuru [this message]
2026-03-13 6:31 ` Charan Pedumuru
2026-03-07 9:16 ` [PATCH v3 3/5] dt-bindings: usb: generic-ehci: fix schema structure and add at91sam9g45 constraints Charan Pedumuru
2026-03-07 9:16 ` [PATCH v3 4/5] dt-bindings: usb: atmel,at91rm9200-udc: convert to DT schema Charan Pedumuru
2026-03-08 9:27 ` Krzysztof Kozlowski
2026-03-13 6:55 ` Charan Pedumuru
2026-03-07 9:16 ` [PATCH v3 5/5] dt-bindings: usb: atmel,at91sam9rl-udc: " Charan Pedumuru
2026-03-08 9:29 ` Krzysztof Kozlowski
2026-03-13 13:29 ` Charan Pedumuru
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=648da83c-79c5-4936-939d-690e7af1f95e@gmail.com \
--to=charan.pedumuru@gmail.com \
--cc=alexandre.belloni@bootlin.com \
--cc=claudiu.beznea@tuxon.dev \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=herve.codina@bootlin.com \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=nicolas.ferre@microchip.com \
--cc=robh@kernel.org \
/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