dt-bindings: phy: Convert TI OMAP control and PIPE3 PHY to DT schema
v4 cover dt-bindings: phy: Convert TI OMAP control and PIPE3 PHY to DT schema
This series converts the old text-based DeviceTree bindings for TI OMAP Control PHY and TI PIPE3 PHY to modern JSON-schema (YAML) format.
---
Changes in v4:
- ti,phy-usb3: Limit phandle arrays for optional properties to one entry.
- ti,phy-usb3: Use lowercase hex for reg values in examples.
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Change maintainer to "Roger Quadros" for both YAML files.
- dts: Split node pattern updates into a separate patch and align node naming with standard conventions.
- ti,phy-usb3: Update node pattern to follow standard conventions.
- ti,phy-usb3: Refine the reg-names property and add constraints for optional phandle-array properties.
- ti,phy-usb3: Redefine "syscon-pllreset" dependency on the compatible "ti,phy-pipe3-sata" in a correct format.
- ti,control-phy-otghs: Update node pattern and adjust maxItems for reg and reg-names.
- ti,control-phy-otghs: Fix the conditional handling for the ti,control-phy-pcie compatible.
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- ti,control-phy-otghs: Update commit message to reflect the latest binding changes.
- ti,phy-usb3: Drop the obsolete "id" property from the schema.
- Both bindings: Update maintainers list, modify node pattern and improve node descriptions for clarity.
- ti,phy-usb3: Introduce new YAML schema with properly defined optional properties for the PIPE3 PHY.
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Charan Pedumuru (3):
arm: dts: ti: omap: align node patterns with established convention
dt-bindings: phy: ti,phy-usb3: convert to DT schema
dt-bindings: phy: ti,control-phy-otghs: convert to DT schema
.../bindings/phy/ti,control-phy-otghs.yaml | 99 +++++++++++++++ .../devicetree/bindings/phy/ti,phy-usb3.yaml | 138 +++++++++++++++++++++ Documentation/devicetree/bindings/phy/ti-phy.txt | 98 --------------- arch/arm/boot/dts/ti/omap/dra7-l4.dtsi | 4 +- arch/arm/boot/dts/ti/omap/omap4-l4.dtsi | 4 +- arch/arm/boot/dts/ti/omap/omap5-l4.dtsi | 2 +- 6 files changed, 242 insertions(+), 103 deletions(-)
---
base-commit: cc3aa43b44bdb43dfbac0fcb51c56594a11338a8
change-id: 20251231-ti-phy-58bb9e38cfc9
Best regards,
Signature · 1 line
Charan Pedumuru <[email protected]>
PATCH v4 1/3 arm: dts: ti: omap: align node patterns with established convention
Update OMAP DTS node patterns to match established conventions.
--- arch/arm/boot/dts/ti/omap/dra7-l4.dtsi | 4 ++-- arch/arm/boot/dts/ti/omap/omap4-l4.dtsi | 4 ++-- arch/arm/boot/dts/ti/omap/omap5-l4.dtsi | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
arch/arm/boot/dts/ti/omap/dra7-l4.dtsi +2 -2
@@ -328,7 +328,7 @@ ocp2scp@0 { ranges = <0 0 0x8000>; reg = <0x0 0x20>; - pcie1_phy: pciephy@4000 { + pcie1_phy: pcie-phy@4000 { compatible = "ti,phy-pipe3-pcie"; reg = <0x4000 0x80>, /* phy_rx */ <0x4400 0x64>; /* phy_tx */
@@ -348,7 +348,7 @@ pcie1_phy: pciephy@4000 { #phy-cells = <0>; }; - pcie2_phy: pciephy@5000 { + pcie2_phy: pcie-phy@5000 { compatible = "ti,phy-pipe3-pcie"; reg = <0x5000 0x80>, /* phy_rx */ <0x5400 0x64>; /* phy_tx */
arch/arm/boot/dts/ti/omap/omap4-l4.dtsi +2 -2
@@ -72,13 +72,13 @@ scm_conf: scm_conf@0 { #size-cells = <1>; }; - omap_control_usb2phy: control-phy@300 { + omap_control_usb2phy: phy@300 { compatible = "ti,control-phy-usb2"; reg = <0x300 0x4>; reg-names = "power"; }; - omap_control_usbotg: control-phy@33c { + omap_control_usbotg: phy@33c { compatible = "ti,control-phy-otghs"; reg = <0x33c 0x4>; reg-names = "otghs_control";
arch/arm/boot/dts/ti/omap/omap5-l4.dtsi +1 -1
@@ -472,7 +472,7 @@ usb2_phy: usb2phy@4000 { #phy-cells = <0>; }; - usb3_phy: usb3phy@4400 { + usb3_phy: usb3-phy@4400 { compatible = "ti,omap-usb3"; reg = <0x4400 0x80>, <0x4800 0x64>,
Signature · 1 line
2.52.0
PATCH v4 2/3 dt-bindings: phy: ti,phy-usb3: convert to DT schema
In reply to Charan PedumuruConvert TI PIPE3 PHY binding to DT schema.
Changes during conversion:
- Define a new pattern 'pcie-phy' to match nodes defined in DT.
- Drop obsolete "id" property from the schema.
--- .../devicetree/bindings/phy/ti,phy-usb3.yaml | 138 +++++++++++++++++++++ 1 file changed, 138 insertions(+)
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +138 -0
@@ -0,0 +1,138 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/ti,phy-usb3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI PIPE3 PHY Module + +maintainers: + - Roger Quadros <[email protected]> + +description: + The TI PIPE3 PHY is a high-speed SerDes (Serializer/Deserializer) + transceiver integrated in OMAP5, DRA7xx/AM57xx, and similar SoCs. + It supports multiple protocols (USB3, SATA, PCIe) using the PIPE3 + interface standard, which defines a common physical layer for + high-speed serial interfaces. + +properties: + $nodename: + pattern: "^(pcie-phy|usb3-phy|phy)@[0-9a-f]+$" + + compatible: + enum: + - ti,omap-usb3 + - ti,phy-pipe3-pcie + - ti,phy-pipe3-sata + - ti,phy-usb3 + + reg: + minItems: 2 + maxItems: 3 + + reg-names: + minItems: 2 + items: + - const: phy_rx + - const: phy_tx + - const: pll_ctrl + + "#phy-cells": + const: 0 + + clocks: + minItems: 2 + maxItems: 7 + + clock-names: + minItems: 2 + maxItems: 7 + items: + enum: [wkupclk, sysclk, refclk, dpll_ref, + dpll_ref_m2, phy-div, div-clk] + + syscon-phy-power: + $ref: /schemas/types.yaml#/definitions/phandle-array + maxItems: 1 + items: + items: + - description: Phandle to the system control module + - description: Register offset controlling PHY power + + syscon-pllreset: + $ref: /schemas/types.yaml#/definitions/phandle-array + maxItems: 1 + items: + items: + - description: Phandle to the system control module + - description: Register offset of CTRL_CORE_SMA_SW_0 + + syscon-pcs: + $ref: /schemas/types.yaml#/definitions/phandle-array + maxItems: 1 + items: + items: + - description: Phandle to the system control module + - description: Register offset for PCS delay programming + + ctrl-module: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle of control module for PHY power on. + deprecated: true + +allOf: + - if: + properties: + compatible: + contains: + const: ti,phy-pipe3-sata + then: + properties: + syscon-pllreset: true + else: + properties: + syscon-pllreset: false + +required: + - reg + - compatible + - reg-names + - "#phy-cells" + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + /* TI PIPE3 USB3 PHY */ + usb3-phy@4a084400 { + compatible = "ti,phy-usb3"; + reg = <0x4a084400 0x80>, + <0x4a084800 0x64>, + <0x4a084c00 0x40>; + reg-names = "phy_rx", "phy_tx", "pll_ctrl"; + #phy-cells = <0>; + clocks = <&usb_phy_cm_clk32k>, + <&sys_clkin>, + <&usb_otg_ss_refclk960m>; + clock-names = "wkupclk", "sysclk", "refclk"; + ctrl-module = <&omap_control_usb>; + }; + + - | + /* TI PIPE3 SATA PHY */ + phy@4a096000 { + compatible = "ti,phy-pipe3-sata"; + reg = <0x4a096000 0x80>, /* phy_rx */ + <0x4a096400 0x64>, /* phy_tx */ + <0x4a096800 0x40>; /* pll_ctrl */ + reg-names = "phy_rx", "phy_tx", "pll_ctrl"; + clocks = <&sys_clkin1>, <&sata_ref_clk>; + clock-names = "sysclk", "refclk"; + syscon-pllreset = <&scm_conf 0x3fc>; + #phy-cells = <0>; + }; +...
Signature · 1 line
2.52.0
PATCH v4 3/3 dt-bindings: phy: ti,control-phy-otghs: convert to DT schema
In reply to Charan PedumuruConvert TI OMAP Control PHY binding to DT schema.
--- .../bindings/phy/ti,control-phy-otghs.yaml | 99 ++++++++++++++++++++++ Documentation/devicetree/bindings/phy/ti-phy.txt | 98 --------------------- 2 files changed, 99 insertions(+), 98 deletions(-)
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +99 -0
@@ -0,0 +1,99 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/ti,control-phy-otghs.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI OMAP Control PHY Module + +maintainers: + - Roger Quadros <[email protected]> + +description: + The TI OMAP Control PHY module is a hardware block within the system + control module (SCM) of Texas Instruments OMAP SoCs. It provides + centralized control over power, configuration, and auxiliary features + for multiple on-chip PHYs. This module is essential for proper PHY + operation in power-constrained embedded systems. + +properties: + $nodename: + pattern: "^phy@[0-9a-f]+$" + + compatible: + enum: + - ti,control-phy-otghs + - ti,control-phy-pcie + - ti,control-phy-pipe3 + - ti,control-phy-usb2 + - ti,control-phy-usb2-am437 + - ti,control-phy-usb2-dra7 + + reg: + minItems: 1 + maxItems: 3 + + reg-names: + minItems: 1 + maxItems: 3 + items: + enum: [otghs_control, power, pcie_pcs, control_sma] + +allOf: + - if: + properties: + compatible: + contains: + enum: + - ti,control-phy-otghs + then: + properties: + reg-names: + const: otghs_control + + - if: + properties: + compatible: + contains: + enum: + - ti,control-phy-pcie + then: + properties: + reg: + minItems: 3 + + reg-names: + items: + - const: power + - const: pcie_pcs + - const: control_sma + + - if: + properties: + compatible: + contains: + enum: + - ti,control-phy-usb2 + - ti,control-phy-usb2-dra7 + - ti,control-phy-usb2-am437 + - ti,control-phy-pipe3 + then: + properties: + reg-names: + const: power + +required: + - reg + - compatible + - reg-names + +unevaluatedProperties: false + +examples: + - | + phy@4a00233c { + compatible = "ti,control-phy-otghs"; + reg = <0x4a00233c 0x4>; + reg-names = "otghs_control"; + }; +...
Documentation/devicetree/bindings/phy/ti-phy.txt deleted +0 -98
98 lines not on this page · raw message
Signature · 1 line
2.52.0
Re: [PATCH v4 2/3] dt-bindings: phy: ti,phy-usb3: convert to DT schema
In reply to Charan PedumuruQuoted 10 lines · Charan Pedumuru
Convert TI PIPE3 PHY binding to DT schema.
Changes during conversion:
- Define a new pattern 'pcie-phy' to match nodes defined in DT.
- Drop obsolete "id" property from the schema.Signed-off-by Charan Pedumuru <[email protected]>--- .../devicetree/bindings/phy/ti,phy-usb3.yaml | 138 +++++++++++++++++++++ 1 file changed, 138 insertions(+)
Re: (subset) [PATCH v4 0/3] dt-bindings: phy: Convert TI OMAP control and PIPE3 PHY to DT schema
In reply to Charan PedumuruQuoted 4 lines · Charan Pedumuru
This series converts the old text-based DeviceTree bindings for TI OMAP Control PHY and TI PIPE3 PHY to modern JSON-schema (YAML) format.
Applied, thanks!
[2/3] dt-bindings: phy: ti,phy-usb3: convert to DT schema
commit: 62c9ff8fc20d23c0dc36be1330734fdafb3e8585
[3/3] dt-bindings: phy: ti,control-phy-otghs: convert to DT schema
commit: 7878306d182a1750583a325a29e5ccab9ce0235bBest regards,
Signature · 1 line
~Vinod
Re: (subset) [PATCH v4 0/3] dt-bindings: phy: Convert TI OMAP control and PIPE3 PHY to DT schema
Quoted 7 lines · Vinod Koul
Quoted 4 lines · Charan Pedumuru
This series converts the old text-based DeviceTree bindings for TI OMAP Control PHY and TI PIPE3 PHY to modern JSON-schema (YAML) format.
Quoted 6 lines
Applied, thanks!
[2/3] dt-bindings: phy: ti,phy-usb3: convert to DT schema
commit: 62c9ff8fc20d23c0dc36be1330734fdafb3e8585 [3/3] dt-bindings: phy: ti,control-phy-otghs: convert to DT schema commit: 7878306d182a1750583a325a29e5ccab9ce0235b
Hi Vinod,
You missed to apply the first patch which has DT node pattern changes and now this dtb check fails in linux-next as these YAML patches use the updated node pattern. I got a report of errors from kernel test robot.
Quoted 2 lines
Best regards,
Signature · 2 lines
Best Regards, Charan.
Re: (subset) [PATCH v4 0/3] dt-bindings: phy: Convert TI OMAP control and PIPE3 PHY to DT schema
Hi Charan,
Quoted 15 lines · Charan Pedumuru
Quoted 7 lines · Vinod Koul
Quoted 4 lines · Charan Pedumuru
This series converts the old text-based DeviceTree bindings for TI OMAP Control PHY and TI PIPE3 PHY to modern JSON-schema (YAML) format.
Quoted 6 lines
Applied, thanks!
[2/3] dt-bindings: phy: ti,phy-usb3: convert to DT schema
commit: 62c9ff8fc20d23c0dc36be1330734fdafb3e8585 [3/3] dt-bindings: phy: ti,control-phy-otghs: convert to DT schema commit: 7878306d182a1750583a325a29e5ccab9ce0235b
Quoted 6 lines
Hi Vinod,
You missed to apply the first patch which has DT node pattern changes and now this dtb check fails in linux-next as these YAML patches use the updated node pattern. I got a report of errors from kernel test robot.
If there was any request formulated to Vinod to pick up patch 1, then I also missed it while reading this series.
Usually, dt-bindings patches are picked up by the subsystem maintainer while DTS patches are picked up by the platform maintainer. If you know that there is any dependency then it would greatly help if you could mention that upfront, or even specify how you expect the patches to be merged.
In this case, I expect the warnings will get eventually resolved when Kevin picks up patch 1.
To avoid warnings from being introduced in the first place, you could have
- requested all patches to be taken through a single tree (requires maintainer coordination with ACK from the other one, more complicated if the files touched are under heavy development)
- requested a stable tag from the first maintainer, to be pulled in the second tree
- send patch 1, wait for a merge window to pass, send patches 2-3
Re: (subset) [PATCH v4 0/3] dt-bindings: phy: Convert TI OMAP control and PIPE3 PHY to DT schema
Quoted 28 lines · Vladimir Oltean
Hi Charan,
Quoted 15 lines · Charan Pedumuru
Quoted 7 lines · Vinod Koul
Quoted 4 lines · Charan Pedumuru
This series converts the old text-based DeviceTree bindings for TI OMAP Control PHY and TI PIPE3 PHY to modern JSON-schema (YAML) format.
Quoted 6 lines
Applied, thanks!
[2/3] dt-bindings: phy: ti,phy-usb3: convert to DT schema
commit: 62c9ff8fc20d23c0dc36be1330734fdafb3e8585 [3/3] dt-bindings: phy: ti,control-phy-otghs: convert to DT schema commit: 7878306d182a1750583a325a29e5ccab9ce0235bQuoted 6 lines
Hi Vinod,
You missed to apply the first patch which has DT node pattern changes and now this dtb check fails in linux-next as these YAML patches use the updated node pattern. I got a report of errors from kernel test robot.
If there was any request formulated to Vinod to pick up patch 1, then I also missed it while reading this series.
Quoted 8 lines
Usually, dt-bindings patches are picked up by the subsystem maintainer while DTS patches are picked up by the platform maintainer. If you know that there is any dependency then it would greatly help if you could mention that upfront, or even specify how you expect the patches to be merged.
In this case, I expect the warnings will get eventually resolved when Kevin picks up patch 1.
Yes.
Quoted 9 lines
To avoid warnings from being introduced in the first place, you could have
- requested all patches to be taken through a single tree (requires maintainer coordination with ACK from the other one, more complicated if the files touched are under heavy development)
- requested a stable tag from the first maintainer, to be pulled in the second tree
- send patch 1, wait for a merge window to pass, send patches 2-3
Sure, next time I will follow this procedure. Thanks.
Signature · 2 lines
Best Regards, Charan.
Re: [PATCH v4 1/3] arm: dts: ti: omap: align node patterns with established convention
In reply to Charan PedumuruHi,
This patch from this series is still not yet picked to apply.
The dtb_check will throw errors to the YAMLs in this series if this clean up patch is not applied.
Quoted 65 lines · Charan Pedumuru
Update OMAP DTS node patterns to match established conventions.
Signed-off-by Charan Pedumuru <[email protected]>--- arch/arm/boot/dts/ti/omap/dra7-l4.dtsi | 4 ++-- arch/arm/boot/dts/ti/omap/omap4-l4.dtsi | 4 ++-- arch/arm/boot/dts/ti/omap/omap5-l4.dtsi | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)arch/arm/boot/dts/ti/omap/dra7-l4.dtsi +2
-2@@ -328,7 +328,7 @@ ocp2scp@0 { ranges = <0 0 0x8000>; reg = <0x0 0x20>; - pcie1_phy: pciephy@4000 { + pcie1_phy: pcie-phy@4000 { compatible = "ti,phy-pipe3-pcie"; reg = <0x4000 0x80>, /* phy_rx */ <0x4400 0x64>; /* phy_tx */@@ -348,7 +348,7 @@ pcie1_phy: pciephy@4000 { #phy-cells = <0>; }; - pcie2_phy: pciephy@5000 { + pcie2_phy: pcie-phy@5000 { compatible = "ti,phy-pipe3-pcie"; reg = <0x5000 0x80>, /* phy_rx */ <0x5400 0x64>; /* phy_tx */arch/arm/boot/dts/ti/omap/omap4-l4.dtsi +2
-2@@ -72,13 +72,13 @@ scm_conf: scm_conf@0 { #size-cells = <1>; }; - omap_control_usb2phy: control-phy@300 { + omap_control_usb2phy: phy@300 { compatible = "ti,control-phy-usb2"; reg = <0x300 0x4>; reg-names = "power"; }; - omap_control_usbotg: control-phy@33c { + omap_control_usbotg: phy@33c { compatible = "ti,control-phy-otghs"; reg = <0x33c 0x4>; reg-names = "otghs_control";arch/arm/boot/dts/ti/omap/omap5-l4.dtsi +1
-1@@ -472,7 +472,7 @@ usb2_phy: usb2phy@4000 { #phy-cells = <0>; }; - usb3_phy: usb3phy@4400 { + usb3_phy: usb3-phy@4400 { compatible = "ti,omap-usb3"; reg = <0x4400 0x80>, <0x4800 0x64>,
Signature · 2 lines
Best Regards, Charan.
Re: [PATCH v4 1/3] arm: dts: ti: omap: align node patterns with established convention
In reply to Charan PedumuruQuoted 3 lines · Charan Pedumuru
Update OMAP DTS node patterns to match established conventions.
Applied, thanks!
[1/3] arm: dts: ti: omap: align node patterns with established convention
commit: 7adefbf4dff31e016c0edc653b85823afff541fe
Best regards,
Signature · 1 line
Kevin Hilman <[email protected]>