arm64: zynqmp: dts: Update USB hub description
Subsystems (3)
Michal Simek
maintainercover arm64: zynqmp: dts: Update USB hub description
Hi,
this series update USB hub description available on Kria SOMs but using gpio-delay driver as reset provider with also defining power regulators.
Thanks,
Michal
Michal Simek (2):
dt-bindings: usb: microchip,usb5744: Allow post-init-providers
arm64: zynqmp: dts: Wire gpio-delay driver for USB hub reset
Shaikh Mohammed Suhan (1):
arm64: zynqmp: dts: Add USB hub supply regulators to SOMs
.../bindings/usb/microchip,usb5744.yaml | 3 +- .../boot/dts/xilinx/zynqmp-sck-kd-g-revA.dtso | 34 +++++++++++++-- .../boot/dts/xilinx/zynqmp-sck-kr-g-revA.dtso | 43 ++++++++++++++++--- .../boot/dts/xilinx/zynqmp-sck-kr-g-revB.dtso | 41 ++++++++++++++++-- .../boot/dts/xilinx/zynqmp-sck-kv-g-revA.dtso | 34 +++++++++++++-- .../boot/dts/xilinx/zynqmp-sck-kv-g-revB.dtso | 34 +++++++++++++-- 6 files changed, 170 insertions(+), 19 deletions(-)
---
Signature · 1 line
2.43.0
Michal Simek
maintainerPATCH 1/3 dt-bindings: usb: microchip,usb5744: Allow post-init-providers
The two peer hub nodes share one reset provider. Either peer can mark that provider as not required for its own initialization.
---
Documentation/devicetree/bindings/usb/microchip,usb5744.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/microchip,usb5744.yaml +2 -1
@@ -57,6 +57,7 @@ required: - reg allOf: + - $ref: /schemas/post-init-providers.yaml# - if: properties: compatible:
@@ -72,7 +73,7 @@ allOf: else: $ref: /schemas/usb/usb-device.yaml -additionalProperties: false +unevaluatedProperties: false examples: - |
Signature · 1 line
2.43.0
Michal Simek
maintainerPATCH 3/3 arm64: zynqmp: dts: Add USB hub supply regulators to SOMs
In reply to Michal SimekFrom: Shaikh Mohammed Suhan <[email protected]>
Add fixed supply regulators for the onboard USB hub (USB5744).
The USB hub requires two always-on power rails:
- vdd: 3.3V main supply
- vdd2: auxiliary supply
Model these rails as fixed regulators and reference them from the hub node to accurately describe the hardware.
---
.../boot/dts/xilinx/zynqmp-sck-kd-g-revA.dtso | 20 +++++++++++++++++ .../boot/dts/xilinx/zynqmp-sck-kr-g-revA.dtso | 22 +++++++++++++++++++ .../boot/dts/xilinx/zynqmp-sck-kr-g-revB.dtso | 22 +++++++++++++++++++ .../boot/dts/xilinx/zynqmp-sck-kv-g-revA.dtso | 20 +++++++++++++++++ .../boot/dts/xilinx/zynqmp-sck-kv-g-revB.dtso | 20 +++++++++++++++++ 5 files changed, 104 insertions(+)
arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dtso +20 -0
@@ -50,6 +50,24 @@ slg_delay: enable-delay { gpio-controller; gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>; }; + + vdd_usb_hub: regulator-vdd-usb-hub { + compatible = "regulator-fixed"; + regulator-name = "vdd_usb_hub"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + + vdd2_usb_hub: regulator-vdd2-usb-hub { + compatible = "regulator-fixed"; + regulator-name = "vdd2_usb_hub"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + regulator-boot-on; + }; }; &can0 {
@@ -123,6 +141,8 @@ hub_2_0: hub@1 { peer-hub = <&hub_3_0>; i2c-bus = <&hub>; reset-gpios = <&slg_delay 0 10000 10000>; + vdd-supply = <&vdd_usb_hub>; + vdd2-supply = <&vdd2_usb_hub>; }; /* 3.0 hub on port 2 */
arch/arm64/boot/dts/xilinx/zynqmp-sck-kr-g-revA.dtso +22 -0
@@ -86,6 +86,24 @@ slg_delay: enable-delay { gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>, <&slg7xl45106 4 GPIO_ACTIVE_LOW>; }; + + vdd_usb_hub: regulator-vdd-usb-hub { + compatible = "regulator-fixed"; + regulator-name = "vdd_usb_hub"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + + vdd2_usb_hub: regulator-vdd2-usb-hub { + compatible = "regulator-fixed"; + regulator-name = "vdd2_usb_hub"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + regulator-boot-on; + }; }; &i2c1 { /* I2C_SCK C26/C27 - MIO from SOM */
@@ -194,6 +212,8 @@ hub_2_0: hub@1 { peer-hub = <&hub_3_0>; i2c-bus = <&hub_1>; reset-gpios = <&slg_delay 0 10000 10000>; + vdd-supply = <&vdd_usb_hub>; + vdd2-supply = <&vdd2_usb_hub>; }; /* 3.0 hub on port 2 */
@@ -232,6 +252,8 @@ hub1_2_0: hub@1 { peer-hub = <&hub1_3_0>; i2c-bus = <&hub_2>; reset-gpios = <&slg_delay 1 10000 10000>; + vdd-supply = <&vdd_usb_hub>; + vdd2-supply = <&vdd2_usb_hub>; }; /* 3.0 hub on port 2 */
arch/arm64/boot/dts/xilinx/zynqmp-sck-kr-g-revB.dtso +22 -0
@@ -87,6 +87,24 @@ slg_delay: enable-delay { gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>, <&slg7xl45106 4 GPIO_ACTIVE_LOW>; }; + + vdd_usb_hub: regulator-vdd-usb-hub { + compatible = "regulator-fixed"; + regulator-name = "vdd_usb_hub"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + + vdd2_usb_hub: regulator-vdd2-usb-hub { + compatible = "regulator-fixed"; + regulator-name = "vdd2_usb_hub"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + regulator-boot-on; + }; }; &i2c1 { /* I2C_SCK C26/C27 - MIO from SOM */
@@ -195,6 +213,8 @@ hub_2_0: hub@1 { peer-hub = <&hub_3_0>; i2c-bus = <&hub_1>; reset-gpios = <&slg_delay 0 10000 10000>; + vdd-supply = <&vdd_usb_hub>; + vdd2-supply = <&vdd2_usb_hub>; }; /* 3.0 hub on port 2 */
@@ -233,6 +253,8 @@ hub1_2_0: hub@1 { peer-hub = <&hub1_3_0>; i2c-bus = <&hub_2>; reset-gpios = <&slg_delay 1 10000 10000>; + vdd-supply = <&vdd_usb_hub>; + vdd2-supply = <&vdd2_usb_hub>; }; /* 3.0 hub on port 2 */
arch/arm64/boot/dts/xilinx/zynqmp-sck-kv-g-revA.dtso +20 -0
@@ -85,6 +85,24 @@ slg_delay: enable-delay { gpio-controller; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; + + vdd_usb_hub: regulator-vdd-usb-hub { + compatible = "regulator-fixed"; + regulator-name = "vdd_usb_hub"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + + vdd2_usb_hub: regulator-vdd2-usb-hub { + compatible = "regulator-fixed"; + regulator-name = "vdd2_usb_hub"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + regulator-boot-on; + }; }; &i2c1 { /* I2C_SCK C23/C24 - MIO from SOM */
@@ -167,6 +185,8 @@ hub_2_0: hub@1 { reg = <1>; peer-hub = <&hub_3_0>; reset-gpios = <&slg_delay 0 10000 10000>; + vdd-supply = <&vdd_usb_hub>; + vdd2-supply = <&vdd2_usb_hub>; }; /* 3.0 hub on port 2 */
arch/arm64/boot/dts/xilinx/zynqmp-sck-kv-g-revB.dtso +20 -0
@@ -81,6 +81,24 @@ slg_delay: enable-delay { gpio-controller; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; + + vdd_usb_hub: regulator-vdd-usb-hub { + compatible = "regulator-fixed"; + regulator-name = "vdd_usb_hub"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + + vdd2_usb_hub: regulator-vdd2-usb-hub { + compatible = "regulator-fixed"; + regulator-name = "vdd2_usb_hub"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + regulator-boot-on; + }; }; &i2c1 { /* I2C_SCK C23/C24 - MIO from SOM */
@@ -154,6 +172,8 @@ hub_2_0: hub@1 { peer-hub = <&hub_3_0>; i2c-bus = <&hub>; reset-gpios = <&slg_delay 0 10000 10000>; + vdd-supply = <&vdd_usb_hub>; + vdd2-supply = <&vdd2_usb_hub>; }; /* 3.0 hub on port 2 */
Signature · 1 line
2.43.0
Michal Simek
maintainerPATCH 2/3 arm64: zynqmp: dts: Wire gpio-delay driver for USB hub reset
In reply to Michal SimekUSB hub requires longer delay to get out of the reset to work properly that's why use gpio-delay to ensure enough waiting time.
The USB 3.0 peer describes the same gpio-delay reset provider, but that provider is required only to initialize the USB 2.0 node. Mark it with post-init-providers so the USB 3.0 node, a child of the USB controller, does not pull that dependency back onto the controller.
---
There is dependency on:
https://patch.msgid.link/c552d657b81c55f0ac2ae78b8d8abbde5deaebdb.1795095853.git.michal.simek@amd.com
--- .../boot/dts/xilinx/zynqmp-sck-kd-g-revA.dtso | 14 ++++++++++--- .../boot/dts/xilinx/zynqmp-sck-kr-g-revA.dtso | 21 ++++++++++++++----- .../boot/dts/xilinx/zynqmp-sck-kr-g-revB.dtso | 19 +++++++++++++---- .../boot/dts/xilinx/zynqmp-sck-kv-g-revA.dtso | 14 ++++++++++--- .../boot/dts/xilinx/zynqmp-sck-kv-g-revB.dtso | 14 ++++++++++--- 5 files changed, 64 insertions(+), 18 deletions(-)
arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dtso +11 -3
@@ -3,7 +3,7 @@ * dts file for KD240 revA Carrier Card * * Copyright (C) 2021 - 2022, Xilinx, Inc. - * Copyright (C) 2022 - 2023, Advanced Micro Devices, Inc. + * Copyright (C) 2022 - 2026, Advanced Micro Devices, Inc. * * Michal Simek <[email protected]> */
@@ -43,6 +43,13 @@ clk_25_1: clock5 { /* u92/u91 - GEM3 */ #clock-cells = <0>; clock-frequency = <25000000>; }; + + slg_delay: enable-delay { + compatible = "gpio-delay"; + #gpio-cells = <3>; + gpio-controller; + gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>; + }; }; &can0 {
@@ -115,7 +122,7 @@ hub_2_0: hub@1 { reg = <1>; peer-hub = <&hub_3_0>; i2c-bus = <&hub>; - reset-gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>; + reset-gpios = <&slg_delay 0 10000 10000>; }; /* 3.0 hub on port 2 */
@@ -124,7 +131,8 @@ hub_3_0: hub@2 { reg = <2>; peer-hub = <&hub_2_0>; i2c-bus = <&hub>; - reset-gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>; + reset-gpios = <&slg_delay 0 10000 10000>; + post-init-providers = <&slg_delay>; }; };
arch/arm64/boot/dts/xilinx/zynqmp-sck-kr-g-revA.dtso +16 -5
@@ -2,7 +2,8 @@ /* * dts file for KR260 revA Carrier Card * - * (C) Copyright 2021, Xilinx, Inc. + * (C) Copyright 2021 - 2022, Xilinx, Inc. + * (C) Copyright 2022 - 2026, Advanced Micro Devices, Inc. * * Michal Simek <[email protected]> */
@@ -77,6 +78,14 @@ dpcon_in: endpoint { }; }; }; + + slg_delay: enable-delay { + compatible = "gpio-delay"; + #gpio-cells = <3>; + gpio-controller; + gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>, + <&slg7xl45106 4 GPIO_ACTIVE_LOW>; + }; }; &i2c1 { /* I2C_SCK C26/C27 - MIO from SOM */
@@ -184,7 +193,7 @@ hub_2_0: hub@1 { reg = <1>; peer-hub = <&hub_3_0>; i2c-bus = <&hub_1>; - reset-gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>; + reset-gpios = <&slg_delay 0 10000 10000>; }; /* 3.0 hub on port 2 */
@@ -193,7 +202,8 @@ hub_3_0: hub@2 { reg = <2>; peer-hub = <&hub_2_0>; i2c-bus = <&hub_1>; - reset-gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>; + reset-gpios = <&slg_delay 0 10000 10000>; + post-init-providers = <&slg_delay>; }; };
@@ -221,7 +231,7 @@ hub1_2_0: hub@1 { reg = <1>; peer-hub = <&hub1_3_0>; i2c-bus = <&hub_2>; - reset-gpios = <&slg7xl45106 4 GPIO_ACTIVE_LOW>; + reset-gpios = <&slg_delay 1 10000 10000>; }; /* 3.0 hub on port 2 */
@@ -230,7 +240,8 @@ hub1_3_0: hub@2 { reg = <2>; peer-hub = <&hub1_2_0>; i2c-bus = <&hub_2>; - reset-gpios = <&slg7xl45106 4 GPIO_ACTIVE_LOW>; + reset-gpios = <&slg_delay 1 10000 10000>; + post-init-providers = <&slg_delay>; }; };
arch/arm64/boot/dts/xilinx/zynqmp-sck-kr-g-revB.dtso +15 -4
@@ -3,6 +3,7 @@ * dts file for KR260 revB Carrier Card (A03 revision) * * (C) Copyright 2021 - 2022, Xilinx, Inc. + * (C) Copyright 2022 - 2026, Advanced Micro Devices, Inc. * * Michal Simek <[email protected]> */
@@ -78,6 +79,14 @@ dpcon_in: endpoint { }; }; }; + + slg_delay: enable-delay { + compatible = "gpio-delay"; + #gpio-cells = <3>; + gpio-controller; + gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>, + <&slg7xl45106 4 GPIO_ACTIVE_LOW>; + }; }; &i2c1 { /* I2C_SCK C26/C27 - MIO from SOM */
@@ -185,7 +194,7 @@ hub_2_0: hub@1 { reg = <1>; peer-hub = <&hub_3_0>; i2c-bus = <&hub_1>; - reset-gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>; + reset-gpios = <&slg_delay 0 10000 10000>; }; /* 3.0 hub on port 2 */
@@ -194,7 +203,8 @@ hub_3_0: hub@2 { reg = <2>; peer-hub = <&hub_2_0>; i2c-bus = <&hub_1>; - reset-gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>; + reset-gpios = <&slg_delay 0 10000 10000>; + post-init-providers = <&slg_delay>; }; };
@@ -222,7 +232,7 @@ hub1_2_0: hub@1 { reg = <1>; peer-hub = <&hub1_3_0>; i2c-bus = <&hub_2>; - reset-gpios = <&slg7xl45106 4 GPIO_ACTIVE_LOW>; + reset-gpios = <&slg_delay 1 10000 10000>; }; /* 3.0 hub on port 2 */
@@ -231,7 +241,8 @@ hub1_3_0: hub@2 { reg = <2>; peer-hub = <&hub1_2_0>; i2c-bus = <&hub_2>; - reset-gpios = <&slg7xl45106 4 GPIO_ACTIVE_LOW>; + reset-gpios = <&slg_delay 1 10000 10000>; + post-init-providers = <&slg_delay>; }; };
arch/arm64/boot/dts/xilinx/zynqmp-sck-kv-g-revA.dtso +11 -3
@@ -3,7 +3,7 @@ * dts file for KV260 revA Carrier Card * * (C) Copyright 2020 - 2022, Xilinx, Inc. - * (C) Copyright 2022 - 2023, Advanced Micro Devices, Inc. + * (C) Copyright 2022 - 2026, Advanced Micro Devices, Inc. * * SD level shifter: * "A" - A01 board un-modified (NXP)
@@ -78,6 +78,13 @@ dpcon_in: endpoint { }; }; }; + + slg_delay: enable-delay { + compatible = "gpio-delay"; + #gpio-cells = <3>; + gpio-controller; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; + }; }; &i2c1 { /* I2C_SCK C23/C24 - MIO from SOM */
@@ -159,7 +166,7 @@ hub_2_0: hub@1 { compatible = "usb424,2744"; reg = <1>; peer-hub = <&hub_3_0>; - reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>; + reset-gpios = <&slg_delay 0 10000 10000>; }; /* 3.0 hub on port 2 */
@@ -167,7 +174,8 @@ hub_3_0: hub@2 { compatible = "usb424,5744"; reg = <2>; peer-hub = <&hub_2_0>; - reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>; + reset-gpios = <&slg_delay 0 10000 10000>; + post-init-providers = <&slg_delay>; }; };
arch/arm64/boot/dts/xilinx/zynqmp-sck-kv-g-revB.dtso +11 -3
@@ -3,7 +3,7 @@ * dts file for KV260 revB Carrier Card * * (C) Copyright 2020 - 2022, Xilinx, Inc. - * (C) Copyright 2022 - 2023, Advanced Micro Devices, Inc. + * (C) Copyright 2022 - 2026, Advanced Micro Devices, Inc. * * Michal Simek <[email protected]> */
@@ -74,6 +74,13 @@ dpcon_in: endpoint { }; }; }; + + slg_delay: enable-delay { + compatible = "gpio-delay"; + #gpio-cells = <3>; + gpio-controller; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; + }; }; &i2c1 { /* I2C_SCK C23/C24 - MIO from SOM */
@@ -146,7 +153,7 @@ hub_2_0: hub@1 { reg = <1>; peer-hub = <&hub_3_0>; i2c-bus = <&hub>; - reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>; + reset-gpios = <&slg_delay 0 10000 10000>; }; /* 3.0 hub on port 2 */
@@ -155,7 +162,8 @@ hub_3_0: hub@2 { reg = <2>; peer-hub = <&hub_2_0>; i2c-bus = <&hub>; - reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>; + reset-gpios = <&slg_delay 0 10000 10000>; + post-init-providers = <&slg_delay>; }; };
Signature · 1 line
2.43.0