From: David Lechner <david@lechnology.com>
To: "Rob Herring (Arm)" <robh@kernel.org>,
Vinod Koul <vkoul@kernel.org>,
Kishon Vijay Abraham I <kishon@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: phy: Convert ti,da830-usb-phy to DT schema
Date: Mon, 9 Jun 2025 09:46:31 -0500 [thread overview]
Message-ID: <04b5b857-4996-4278-8fab-7eb816b1febe@lechnology.com> (raw)
In-Reply-To: <20250607212638.744524-1-robh@kernel.org>
On 6/7/25 4:26 PM, Rob Herring (Arm) wrote:
> Convert the TI DA830 USB PHY binding to DT schema format. Add "clocks"
> and "clock-names" which are already in use.
>
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> ---
...
> diff --git a/Documentation/devicetree/bindings/phy/ti,da830-usb-phy.yaml b/Documentation/devicetree/bindings/phy/ti,da830-usb-phy.yaml
> new file mode 100644
> index 000000000000..e18746f80982
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/phy/ti,da830-usb-phy.yaml
> @@ -0,0 +1,49 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/phy/ti,da830-usb-phy.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: TI DA8xx/OMAP-L1xx/AM18xx USB PHY
> +
> +maintainers:
> + - David Lechner <david@lechnology.com>
> +
> +description: >
> + This device controls the PHY for both the USB 1.1 OHCI and USB 2.0 OTG
> + controllers on DA8xx SoCs. Consumers of this device should use index 0 for
> + the USB 2.0 phy device and index 1 for the USB 1.1 phy device.
Probably doesn't matter much, but we could move the description
of the #phy-cells to that property.
> +
> + It also requires a "syscon" node with compatible = "ti,da830-cfgchip", "syscon"
> + to access the CFGCHIP2 register.
> +
> +properties:
> + compatible:
> + items:
> + - const: ti,da830-usb-phy
> +
> + '#phy-cells':
> + const: 1
> +
> + clocks:
> + maxItems: 2
> +
> + clock-names:
> + items:
> + - const: usb0_clk48
> + - const: usb1_clk48
> +
> +required:
> + - compatible
> + - '#phy-cells'
Probably should make clocks and clock-names required.
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + usb-phy {
> + compatible = "ti,da830-usb-phy";
> + #phy-cells = <1>;
> + clocks = <&usb_phy_clk 0>, <&usb_phy_clk 1>;
> + clock-names = "usb0_clk48", "usb1_clk48";
> + };
prev parent reply other threads:[~2025-06-09 15:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-07 21:26 Rob Herring (Arm)
2025-06-09 14:46 ` David Lechner [this message]
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=04b5b857-4996-4278-8fab-7eb816b1febe@lechnology.com \
--to=david@lechnology.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kishon@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=robh@kernel.org \
--cc=vkoul@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
all inboxes | Powered by JetHome®