dt-bindings: phy: Convert TI OMAP control and PIPE3 PHY to DT schema
Subsystems (2)
v2 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 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 (2):
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 | 94 +++++++++++++++ .../devicetree/bindings/phy/ti,phy-usb3.yaml | 127 +++++++++++++++++++++ Documentation/devicetree/bindings/phy/ti-phy.txt | 98 ---------------- 3 files changed, 221 insertions(+), 98 deletions(-)
---
base-commit: cc3aa43b44bdb43dfbac0fcb51c56594a11338a8
change-id: 20251231-ti-phy-58bb9e38cfc9
Best regards,
Signature · 1 line
Charan Pedumuru <[email protected]>
PATCH v2 1/2 dt-bindings: phy: ti,phy-usb3: convert to DT schema
Convert TI PIPE3 PHY binding to DT schema.
Changes during conversion:
- Define a new pattern 'pciephy' to match nodes defined in DT.
- Drop obsolete "id" property from the schema.
--- .../devicetree/bindings/phy/ti,phy-usb3.yaml | 127 +++++++++++++++++++++ 1 file changed, 127 insertions(+)
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +127 -0
@@ -0,0 +1,127 @@ +# 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: + - Kishon Vijay Abraham I <[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: "^(pciephy|usb3phy|phy)(@[0-9a-f]+)?$" + + compatible: + enum: + - ti,phy-usb3 + - ti,phy-pipe3-sata + - ti,phy-pipe3-pcie + - ti,omap-usb3 + + reg: + minItems: 2 + maxItems: 3 + + reg-names: + minItems: 2 + maxItems: 3 + items: + enum: + - phy_rx + - phy_tx + - 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 + description: + Phandle/offset pair to system control module register for PHY + power on/off. + + syscon-pllreset: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Phandle/offset pair to CTRL_CORE_SMA_SW_0 register containing + SATA_PLL_SOFT_RESET bit (SATA PHY only). + + syscon-pcs: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Phandle/offset pair to system control module for writing PCS delay value. + + ctrl-module: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle of control module for PHY power on. + deprecated: true + +dependencies: + syscon-pllreset: + properties: + compatible: + contains: + const: ti,phy-pipe3-sata + +required: + - reg + - compatible + - reg-names + - "#phy-cells" + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + /* TI PIPE3 USB3 PHY */ + usb3phy@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
Vinod Koul
maintainerRe: [PATCH v2 1/2] dt-bindings: phy: ti,phy-usb3: convert to DT schema
Quoted 16 lines · Charan Pedumuru
Convert TI PIPE3 PHY binding to DT schema.
Changes during conversion:
- Define a new pattern 'pciephy' 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 | 127 +++++++++++++++++++++ 1 file changed, 127 insertions(+)Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +0
-0
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml line 10
Quoted 10 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +10
-0@@ -0,0 +1,127 @@ +# 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: + - Kishon Vijay Abraham I <[email protected]>
That is not correct, please check the current people on TI for this.
Quoted 120 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +117
-0+ +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: "^(pciephy|usb3phy|phy)(@[0-9a-f]+)?$" + + compatible: + enum: + - ti,phy-usb3 + - ti,phy-pipe3-sata + - ti,phy-pipe3-pcie + - ti,omap-usb3 + + reg: + minItems: 2 + maxItems: 3 + + reg-names: + minItems: 2 + maxItems: 3 + items: + enum: + - phy_rx + - phy_tx + - 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 + description: + Phandle/offset pair to system control module register for PHY + power on/off. + + syscon-pllreset: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Phandle/offset pair to CTRL_CORE_SMA_SW_0 register containing + SATA_PLL_SOFT_RESET bit (SATA PHY only). + + syscon-pcs: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Phandle/offset pair to system control module for writing PCS delay value. + + ctrl-module: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle of control module for PHY power on. + deprecated: true + +dependencies: + syscon-pllreset: + properties: + compatible: + contains: + const: ti,phy-pipe3-sata + +required: + - reg + - compatible + - reg-names + - "#phy-cells" + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + /* TI PIPE3 USB3 PHY */ + usb3phy@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 · 2 lines
-- 2.52.0
Signature · 1 line
~Vinod
Re: [PATCH v2 1/2] dt-bindings: phy: ti,phy-usb3: convert to DT schema
Quoted 21 lines · Vinod Koul
Quoted 20 lines · Charan Pedumuru
Convert TI PIPE3 PHY binding to DT schema.
Changes during conversion:
- Define a new pattern 'pciephy' 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 | 127 +++++++++++++++++++++ 1 file changed, 127 insertions(+)Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +4
-0@@ -0,0 +1,127 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/ti,phy-usb3.yaml#
Quoted 8 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml line 10
Quoted 6 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +6
-0+$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI PIPE3 PHY Module + +maintainers: + - Kishon Vijay Abraham I <[email protected]>That is not correct, please check the current people on TI for this.
I checked the driver author and MAINTAINERS, I couldn't find anyone. No one seems to have updated the MAINTAINER.
Quoted 122 lines
Quoted 121 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +117
-0+ +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: "^(pciephy|usb3phy|phy)(@[0-9a-f]+)?$" + + compatible: + enum: + - ti,phy-usb3 + - ti,phy-pipe3-sata + - ti,phy-pipe3-pcie + - ti,omap-usb3 + + reg: + minItems: 2 + maxItems: 3 + + reg-names: + minItems: 2 + maxItems: 3 + items: + enum: + - phy_rx + - phy_tx + - 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 + description: + Phandle/offset pair to system control module register for PHY + power on/off. + + syscon-pllreset: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Phandle/offset pair to CTRL_CORE_SMA_SW_0 register containing + SATA_PLL_SOFT_RESET bit (SATA PHY only). + + syscon-pcs: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Phandle/offset pair to system control module for writing PCS delay value. + + ctrl-module: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle of control module for PHY power on. + deprecated: true + +dependencies: + syscon-pllreset: + properties: + compatible: + contains: + const: ti,phy-pipe3-sata + +required: + - reg + - compatible + - reg-names + - "#phy-cells" + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + /* TI PIPE3 USB3 PHY */ + usb3phy@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 · 2 lines
-- 2.52.0
Signature · 2 lines
Best Regards, Charan.
Vinod Koul
maintainerRe: [PATCH v2 1/2] dt-bindings: phy: ti,phy-usb3: convert to DT schema
Quoted 33 lines · Charan Pedumuru
Quoted 21 lines · Vinod Koul
Quoted 20 lines · Charan Pedumuru
Convert TI PIPE3 PHY binding to DT schema.
Changes during conversion:
- Define a new pattern 'pciephy' 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 | 127 +++++++++++++++++++++ 1 file changed, 127 insertions(+)Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +4
-0@@ -0,0 +1,127 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/ti,phy-usb3.yaml#Quoted 8 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml line 10
Quoted 6 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +6
-0+$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI PIPE3 PHY Module + +maintainers: + - Kishon Vijay Abraham I <[email protected]>That is not correct, please check the current people on TI for this.
Quoted 2 lines
I checked the driver author and
MAINTAINERS, I couldn't find anyone. No one seems to have updated the MAINTAINER.
Please chekc in git log about recent contributions from TI people
Signature · 1 line
~Vinod
Rob Herring
maintainerRe: [PATCH v2 1/2] dt-bindings: phy: ti,phy-usb3: convert to DT schema
In reply to Charan PedumuruQuoted 27 lines · Charan Pedumuru
Convert TI PIPE3 PHY binding to DT schema.
Changes during conversion:
- Define a new pattern 'pciephy' 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 | 127 +++++++++++++++++++++ 1 file changed, 127 insertions(+)Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +11
-0@@ -0,0 +1,127 @@ +# 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: + - Kishon Vijay Abraham I <[email protected]> +
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml line 21
Quoted 10 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +10
-0+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: "^(pciephy|usb3phy|phy)(@[0-9a-f]+)?$"
Again, don't define your own patterns. Either update the .dts files to use the established patterns (pcie-phy, usb3-phy, phy) or leave it undefined here.
Plus the unit-address is not optional as 'reg' is not optional...
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml line 28
Quoted 7 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +7
-0+ + compatible: + enum: + - ti,phy-usb3 + - ti,phy-pipe3-sata + - ti,phy-pipe3-pcie + - ti,omap-usb3
Alphabetical order please.
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml line 41
Quoted 13 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +13
-0+ + reg: + minItems: 2 + maxItems: 3 + + reg-names: + minItems: 2 + maxItems: 3 + items: + enum: + - phy_rx + - phy_tx + - pll_ctrl
Do this really need to be any order? Looks to me like this works for all users in tree:
minItems: 2
items:
- const: phy_rx
- const: phy_tx
- const: pll_ctrl
Quoted 10 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +10
-0+ + "#phy-cells": + const: 0 + + clocks: + minItems: 2 + maxItems: 7 + + clock-names: + minItems: 2
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml line 61
Quoted 10 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +10
-0+ 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 + description: + Phandle/offset pair to system control module register for PHY + power on/off.
Needs constrants on the size:
items:
- items:
- description: phandle to ...
- description: offset of ...
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml line 67
Quoted 6 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +6
-0+ + syscon-pllreset: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Phandle/offset pair to CTRL_CORE_SMA_SW_0 register containing + SATA_PLL_SOFT_RESET bit (SATA PHY only).
Same here.
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml line 72
Quoted 5 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +5
-0+ + syscon-pcs: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Phandle/offset pair to system control module for writing PCS delay value.
Same here.
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml line 85
Quoted 13 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +13
-0+ + ctrl-module: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle of control module for PHY power on. + deprecated: true + +dependencies: + syscon-pllreset: + properties: + compatible: + contains: + const: ti,phy-pipe3-sata
Usually we express this the other way around:
if:
properties:
compatible:
contains:
const: ti,phy-pipe3-sata
then:
required:
- syscon-pllreset
else:
properties:
syscon-pllreset: false
But that's slightly different as syscon-pllreset is optional for ti,phy-pipe3-sata in your case. Seems like it should be required if ti,phy-pipe3-sata?
Quoted 46 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +42
-0+ +required: + - reg + - compatible + - reg-names + - "#phy-cells" + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + /* TI PIPE3 USB3 PHY */ + usb3phy@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 · 2 lines
-- 2.52.0
Re: [PATCH v2 1/2] dt-bindings: phy: ti,phy-usb3: convert to DT schema
Quoted 34 lines · Rob Herring
Quoted 33 lines · Charan Pedumuru
Convert TI PIPE3 PHY binding to DT schema.
Changes during conversion:
- Define a new pattern 'pciephy' 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 | 127 +++++++++++++++++++++ 1 file changed, 127 insertions(+)Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +17
-0@@ -0,0 +1,127 @@ +# 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: + - Kishon Vijay Abraham I <[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.
Quoted 8 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml line 21
Quoted 4 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +4
-0+ +properties: + $nodename: + pattern: "^(pciephy|usb3phy|phy)(@[0-9a-f]+)?$"Again, don't define your own patterns. Either update the .dts files to use the established patterns (pcie-phy, usb3-phy, phy) or leave it undefined here.
Sure, I will try to update them in dts.
Quoted 2 lines
Plus the unit-address is not optional as 'reg' is not optional...
Okay.
Quoted 10 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml line 28
Quoted 8 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +7
-0+ + compatible: + enum: + - ti,phy-usb3 + - ti,phy-pipe3-sata + - ti,phy-pipe3-pcie + - ti,omap-usb3Alphabetical order please.
Sure.
Quoted 18 lines
Quoted 4 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +3
-0+ + reg: + minItems: 2Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml line 41
Quoted 10 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +10
-0+ maxItems: 3 + + reg-names: + minItems: 2 + maxItems: 3 + items: + enum: + - phy_rx + - phy_tx + - pll_ctrlDo this really need to be any order? Looks to me like this works for all users in tree:
Quoted 5 lines
minItems: 2
items:
- const:phy_rx
- const:phy_tx
- const:pll_ctrl
This will work, I tested it now.
Quoted 24 lines
Quoted 11 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +10
-0+ + "#phy-cells": + const: 0 + + clocks: + minItems: 2 + maxItems: 7 + + clock-names: + minItems: 2Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml line 61
Quoted 10 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +10
-0+ 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 + description: + Phandle/offset pair to system control module register for PHY + power on/off.Needs constrants on the size:
Quoted 4 lines
items:
- items:
- description: phandle to ...
- description: offset of ...
Sure, I will change for the other properties too.
Quoted 46 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml line 67
Quoted 7 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +6
-0+ + syscon-pllreset: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Phandle/offset pair to CTRL_CORE_SMA_SW_0 register containing + SATA_PLL_SOFT_RESET bit (SATA PHY only).Same here.
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml line 72
Quoted 5 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +5
-0+ + syscon-pcs: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Phandle/offset pair to system control module for writing PCS delay value.Same here.
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml line 85
Quoted 13 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +13
-0+ + ctrl-module: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle of control module for PHY power on. + deprecated: true + +dependencies: + syscon-pllreset: + properties: + compatible: + contains: + const: ti,phy-pipe3-sataUsually we express this the other way around:
if:
properties:
compatible:
contains:
const: ti,phy-pipe3-sata
then:
required:
- syscon-pllreset
else:
properties:
syscon-pllreset: false
Quoted 3 lines
But that's slightly different as syscon-pllreset is optional for ti,phy-pipe3-sata in your case. Seems like it should be required if ti,phy-pipe3-sata?
I checked the DTS, it is not a required property. So, I will not change the format.
Quoted 48 lines
Quoted 48 lines
Documentation/devicetree/bindings/phy/ti,phy-usb3.yaml new file +42
-0+ +required: + - reg + - compatible + - reg-names + - "#phy-cells" + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + /* TI PIPE3 USB3 PHY */ + usb3phy@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 · 2 lines
-- 2.52.0
Signature · 2 lines
Best Regards, Charan.
PATCH v2 2/2 dt-bindings: phy: ti,control-phy-otghs: convert to DT schema
In reply to Charan PedumuruConvert TI OMAP Control PHY binding to DT schema. Changes during conversion:
- Define a new pattern 'control-phy' to match nodes defined in DT.
--- .../bindings/phy/ti,control-phy-otghs.yaml | 94 +++++++++++++++++++++ Documentation/devicetree/bindings/phy/ti-phy.txt | 98 ---------------------- 2 files changed, 94 insertions(+), 98 deletions(-)
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +94 -0
@@ -0,0 +1,94 @@ +# 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: + - Kishon Vijay Abraham I <[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: "^control-phy(@[0-9a-f]+)?$" + + compatible: + enum: + - ti,control-phy-otghs + - ti,control-phy-usb2 + - ti,control-phy-pipe3 + - ti,control-phy-pcie + - ti,control-phy-usb2-dra7 + - ti,control-phy-usb2-am437 + + reg: + minItems: 1 + maxItems: 4 + + reg-names: + minItems: 1 + maxItems: 4 + 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-names: + items: + - enum: [power, pcie_pcs, 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: + - | + control-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
Rob Herring
maintainerRe: [PATCH v2 2/2] dt-bindings: phy: ti,control-phy-otghs: convert to DT schema
Quoted 27 lines · Charan Pedumuru
Convert TI OMAP Control PHY binding to DT schema. Changes during conversion:
- Define a new pattern 'control-phy' to match nodes defined in DT.Signed-off-by Charan Pedumuru <[email protected]>--- .../bindings/phy/ti,control-phy-otghs.yaml | 94 +++++++++++++++++++++ Documentation/devicetree/bindings/phy/ti-phy.txt | 98 ---------------------- 2 files changed, 94 insertions(+), 98 deletions(-)Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +11
-0@@ -0,0 +1,94 @@ +# 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: + - Kishon Vijay Abraham I <[email protected]> +
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml line 21
Quoted 10 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +10
-0+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: "^control-phy(@[0-9a-f]+)?$"
Drop. Non-standard.
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml line 30
Quoted 9 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +9
-0+ + compatible: + enum: + - ti,control-phy-otghs + - ti,control-phy-usb2 + - ti,control-phy-pipe3 + - ti,control-phy-pcie + - ti,control-phy-usb2-dra7 + - ti,control-phy-usb2-am437
Alphabetical order
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml line 34
Quoted 4 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +4
-0+ + reg: + minItems: 1 + maxItems: 4
With the constraints below, there is no case that allows 4 entries.
Quoted 15 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +15
-0+ + reg-names: + minItems: 1 + maxItems: 4 + items: + enum: [otghs_control, power, pcie_pcs, control_sma] + +allOf: + - if: + properties: + compatible: + contains: + enum: + - ti,control-phy-otghs + then:
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml line 59
Quoted 10 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +10
-0+ properties: + reg-names: + const: otghs_control + + - if: + properties: + compatible: + contains: + enum: + - ti,control-phy-pcie
There's no .dts with this compatible. Do you really need this compatible or can drop it?
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml line 64
Quoted 5 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +5
-0+ then: + properties: + reg-names: + items: + - enum: [power, pcie_pcs, control_sma]
It's really 1 entry of 3 possible names?
Quoted 15 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +15
-0+ + - 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 +
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml line 89
Quoted 10 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +10
-0+required: + - reg + - compatible + - reg-names + +unevaluatedProperties: false + +examples: + - | + control-phy@4a00233c {
phy@...
Quoted 113 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +5
-0+ compatible = "ti,control-phy-otghs"; + reg = <0x4a00233c 0x4>; + reg-names = "otghs_control"; + }; +...Documentation/devicetree/bindings/phy/ti-phy.txt deleted +0
-98@@ -1,98 +0,0 @@ -TI PHY: DT DOCUMENTATION FOR PHYs in TI PLATFORMs - -OMAP CONTROL PHY - -Required properties: - - compatible: Should be one of - "ti,control-phy-otghs" - if it has otghs_control mailbox register as on OMAP4. - "ti,control-phy-usb2" - if it has Power down bit in control_dev_conf register - e.g. USB2_PHY on OMAP5. - "ti,control-phy-pipe3" - if it has DPLL and individual Rx & Tx power control - e.g. USB3 PHY and SATA PHY on OMAP5. - "ti,control-phy-pcie" - for pcie to support external clock for pcie and to - set PCS delay value. - e.g. PCIE PHY in DRA7x - "ti,control-phy-usb2-dra7" - if it has power down register like USB2 PHY on - DRA7 platform. - "ti,control-phy-usb2-am437" - if it has power down register like USB2 PHY on - AM437 platform. - - reg : register ranges as listed in the reg-names property - - reg-names: "otghs_control" for control-phy-otghs - "power", "pcie_pcs" and "control_sma" for control-phy-pcie - "power" for all other types - -omap_control_usb: omap-control-usb@4a002300 { - compatible = "ti,control-phy-otghs"; - reg = <0x4a00233c 0x4>; - reg-names = "otghs_control"; -}; - -TI PIPE3 PHY - -Required properties: - - compatible: Should be "ti,phy-usb3", "ti,phy-pipe3-sata" or - "ti,phy-pipe3-pcie. "ti,omap-usb3" is deprecated. - - reg : Address and length of the register set for the device. - - reg-names: The names of the register addresses corresponding to the registers - filled in "reg". - - #phy-cells: determine the number of cells that should be given in the - phandle while referencing this phy. - - clocks: a list of phandles and clock-specifier pairs, one for each entry in - clock-names. - - clock-names: should include: - * "wkupclk" - wakeup clock. - * "sysclk" - system clock. - * "refclk" - reference clock. - * "dpll_ref" - external dpll ref clk - * "dpll_ref_m2" - external dpll ref clk - * "phy-div" - divider for apll - * "div-clk" - apll clock - -Optional properties: - - id: If there are multiple instance of the same type, in order to - differentiate between each instance "id" can be used (e.g., multi-lane PCIe - PHY). If "id" is not provided, it is set to default value of '1'. - - syscon-pllreset: Handle to system control region that contains the - CTRL_CORE_SMA_SW_0 register and register offset to the CTRL_CORE_SMA_SW_0 - register that contains the SATA_PLL_SOFT_RESET bit. Only valid for sata_phy. - - syscon-pcs : phandle/offset pair. Phandle to the system control module and the - register offset to write the PCS delay value. - -Deprecated properties: - - ctrl-module : phandle of the control module used by PHY driver to power on - the PHY. - -Recommended properties: - - syscon-phy-power : phandle/offset pair. Phandle to the system control - module and the register offset to power on/off the PHY. - -This is usually a subnode of ocp2scp to which it is connected. - -usb3phy@4a084400 { - compatible = "ti,phy-usb3"; - reg = <0x4a084400 0x80>, - <0x4a084800 0x64>, - <0x4a084c00 0x40>; - reg-names = "phy_rx", "phy_tx", "pll_ctrl"; - ctrl-module = <&omap_control_usb>; - #phy-cells = <0>; - clocks = <&usb_phy_cm_clk32k>, - <&sys_clkin>, - <&usb_otg_ss_refclk960m>; - clock-names = "wkupclk", - "sysclk", - "refclk"; -}; - -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"; - ctrl-module = <&omap_control_sata>; - clocks = <&sys_clkin1>, <&sata_ref_clk>; - clock-names = "sysclk", "refclk"; - syscon-pllreset = <&scm_conf 0x3fc>; - #phy-cells = <0>; -};Signature · 2 lines
-- 2.52.0
Re: [PATCH v2 2/2] dt-bindings: phy: ti,control-phy-otghs: convert to DT schema
Quoted 32 lines · Rob Herring
Quoted 31 lines · Charan Pedumuru
Convert TI OMAP Control PHY binding to DT schema. Changes during conversion:
- Define a new pattern 'control-phy' to match nodes defined in DT.Signed-off-by Charan Pedumuru <[email protected]>--- .../bindings/phy/ti,control-phy-otghs.yaml | 94 +++++++++++++++++++++ Documentation/devicetree/bindings/phy/ti-phy.txt | 98 ---------------------- 2 files changed, 94 insertions(+), 98 deletions(-)Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +15
-0@@ -0,0 +1,94 @@ +# 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: + - Kishon Vijay Abraham I <[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
Quoted 8 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml line 21
Quoted 6 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +6
-0+ for multiple on-chip PHYs. This module is essential for proper PHY + operation in power-constrained embedded systems. + +properties: + $nodename: + pattern: "^control-phy(@[0-9a-f]+)?$"Drop. Non-standard.
Sure, I will change it to phy and will modify in dts too.
Quoted 11 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml line 30
Quoted 10 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +9
-0+ + compatible: + enum: + - ti,control-phy-otghs + - ti,control-phy-usb2 + - ti,control-phy-pipe3 + - ti,control-phy-pcie + - ti,control-phy-usb2-dra7 + - ti,control-phy-usb2-am437
Quoted 1 line
Alphabetical order
Okay.
Quoted 7 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml line 34
Quoted 5 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +4
-0+ + reg: + minItems: 1 + maxItems: 4With the constraints below, there is no case that allows 4 entries.
Yeah, I will make it 3.
Quoted 5 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml line 38
Quoted 5 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +4
-0+ + reg-names: + minItems: 1 + maxItems: 4
I will make it 3 here too
Quoted 16 lines
Quoted 16 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +16
-0+ 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:
Quoted 8 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml line 59
Quoted 5 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +5
-0+ properties: + compatible: + contains: + enum: + - ti,control-phy-pcieThere's no .dts with this compatible. Do you really need this compatible or can drop it?
Yeah, currently there is no such compatible, I was following the old binding, I could remove if it's necessary.
Quoted 8 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml line 64
Quoted 6 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +5
-0+ then: + properties: + reg-names: + items: + - enum: [power, pcie_pcs, control_sma]It's really 1 entry of 3 possible names?
I think it should be direct 3 entries as per the binding, shouldn't be an enum, I will change it.
Quoted 142 lines
Quoted 16 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +15
-0+ + - 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 +Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml line 89
Quoted 10 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +10
-0+required: + - reg + - compatible + - reg-names + +unevaluatedProperties: false + +examples: + - | + control-phy@4a00233c {phy@...
Quoted 113 lines
Documentation/devicetree/bindings/phy/ti,control-phy-otghs.yaml new file +5
-0+ compatible = "ti,control-phy-otghs"; + reg = <0x4a00233c 0x4>; + reg-names = "otghs_control"; + }; +...Documentation/devicetree/bindings/phy/ti-phy.txt deleted +0
-98@@ -1,98 +0,0 @@ -TI PHY: DT DOCUMENTATION FOR PHYs in TI PLATFORMs - -OMAP CONTROL PHY - -Required properties: - - compatible: Should be one of - "ti,control-phy-otghs" - if it has otghs_control mailbox register as on OMAP4. - "ti,control-phy-usb2" - if it has Power down bit in control_dev_conf register - e.g. USB2_PHY on OMAP5. - "ti,control-phy-pipe3" - if it has DPLL and individual Rx & Tx power control - e.g. USB3 PHY and SATA PHY on OMAP5. - "ti,control-phy-pcie" - for pcie to support external clock for pcie and to - set PCS delay value. - e.g. PCIE PHY in DRA7x - "ti,control-phy-usb2-dra7" - if it has power down register like USB2 PHY on - DRA7 platform. - "ti,control-phy-usb2-am437" - if it has power down register like USB2 PHY on - AM437 platform. - - reg : register ranges as listed in the reg-names property - - reg-names: "otghs_control" for control-phy-otghs - "power", "pcie_pcs" and "control_sma" for control-phy-pcie - "power" for all other types - -omap_control_usb: omap-control-usb@4a002300 { - compatible = "ti,control-phy-otghs"; - reg = <0x4a00233c 0x4>; - reg-names = "otghs_control"; -}; - -TI PIPE3 PHY - -Required properties: - - compatible: Should be "ti,phy-usb3", "ti,phy-pipe3-sata" or - "ti,phy-pipe3-pcie. "ti,omap-usb3" is deprecated. - - reg : Address and length of the register set for the device. - - reg-names: The names of the register addresses corresponding to the registers - filled in "reg". - - #phy-cells: determine the number of cells that should be given in the - phandle while referencing this phy. - - clocks: a list of phandles and clock-specifier pairs, one for each entry in - clock-names. - - clock-names: should include: - * "wkupclk" - wakeup clock. - * "sysclk" - system clock. - * "refclk" - reference clock. - * "dpll_ref" - external dpll ref clk - * "dpll_ref_m2" - external dpll ref clk - * "phy-div" - divider for apll - * "div-clk" - apll clock - -Optional properties: - - id: If there are multiple instance of the same type, in order to - differentiate between each instance "id" can be used (e.g., multi-lane PCIe - PHY). If "id" is not provided, it is set to default value of '1'. - - syscon-pllreset: Handle to system control region that contains the - CTRL_CORE_SMA_SW_0 register and register offset to the CTRL_CORE_SMA_SW_0 - register that contains the SATA_PLL_SOFT_RESET bit. Only valid for sata_phy. - - syscon-pcs : phandle/offset pair. Phandle to the system control module and the - register offset to write the PCS delay value. - -Deprecated properties: - - ctrl-module : phandle of the control module used by PHY driver to power on - the PHY. - -Recommended properties: - - syscon-phy-power : phandle/offset pair. Phandle to the system control - module and the register offset to power on/off the PHY. - -This is usually a subnode of ocp2scp to which it is connected. - -usb3phy@4a084400 { - compatible = "ti,phy-usb3"; - reg = <0x4a084400 0x80>, - <0x4a084800 0x64>, - <0x4a084c00 0x40>; - reg-names = "phy_rx", "phy_tx", "pll_ctrl"; - ctrl-module = <&omap_control_usb>; - #phy-cells = <0>; - clocks = <&usb_phy_cm_clk32k>, - <&sys_clkin>, - <&usb_otg_ss_refclk960m>; - clock-names = "wkupclk", - "sysclk", - "refclk"; -}; - -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"; - ctrl-module = <&omap_control_sata>; - clocks = <&sys_clkin1>, <&sata_ref_clk>; - clock-names = "sysclk", "refclk"; - syscon-pllreset = <&scm_conf 0x3fc>; - #phy-cells = <0>; -};Signature · 2 lines
-- 2.52.0
Signature · 2 lines
Best Regards, Charan.