Used onboard HUB to reset and add power to hub
Subsystems (3)
v4 cover Used onboard HUB to reset and add power to hub
Amlogic board use gpio-hog to reset the USB hub. so using onboard hub we could reset the USB hub and also enable power to the USB hub.
v4: rebased on linux-next
Fixed some small changes like the subject.
Dropped the merge patches.
v3: Fix some small changes in $subject
address the input from Neil
fix the vialab device tree binding as per Krzysztof inputs.
[2] https://lore.kernel.org/all/[email protected]
v2: Odroid C1 / C2 : usb hub reset working as expected.
Odroid N2 : dropped usb hub changes, since my board USB hub
is hitting regression.
Odroid C4 : Fix the device tree binding and used peer-hub for
usb2.0 and usb3.0 hub.
[1] https://lore.kernel.org/all/[email protected]
v1: Odroid C1 / C2 : were not working as expected.
Odroid N2 : used single USB 3.0 hub reset. Odroid C4 : used single USB 3.0 hub reset.
[0] https://patchwork.kernel.org/project/linux-amlogic/list/?series=707292
Any inputs for these changes ?
Thanks
-Anand
Anand Moon (4):
ARM: dts: amlogic: Drop superfluous dr_mode in usb node on odroid C1
arm64: dts: amlogic: Drop superfluous dr_mode in usb node on odroid c2
arm64: dts: meson: move usb-hub node under dwc3 node on Odroid C4
dt-bindings: usb: Fix properties for VL817 hub controller
.../devicetree/bindings/usb/vialab,vl817.yaml | 18 ++++---- arch/arm/boot/dts/meson8b-odroidc1.dts | 1 - .../boot/dts/amlogic/meson-gxbb-odroidc2.dts | 1 - .../boot/dts/amlogic/meson-sm1-odroid-c4.dts | 41 +++++++++---------- 4 files changed, 30 insertions(+), 31 deletions(-)
Signature · 7 lines
2.38.1 _______________________________________________ linux-amlogic mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-amlogic
PATCH RESEND v4 1/4 ARM: dts: amlogic: Drop superfluous dr_mode in usb node on odroid C1
Drop superfluous dr_mode="host" as it is the default in meson.dtsi
--- arch/arm/boot/dts/meson8b-odroidc1.dts | 1 - 1 file changed, 1 deletion(-)
arch/arm/boot/dts/meson8b-odroidc1.dts +0 -1
@@ -368,7 +368,6 @@ &usb1_phy { }; &usb1 { - dr_mode = "host"; #address-cells = <1>; #size-cells = <0>; status = "okay";
Signature · 1 line
2.38.1
PATCH RESEND v4 2/4 arm64: dts: amlogic: Drop superfluous dr_mode in usb node on odroid c2
In reply to Anand MoonDrop superfluous dr_mode="host" as it is the default in meson-gxbb.dtsi
--- arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 1 - 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +0 -1
@@ -399,7 +399,6 @@ &usb0 { }; &usb1 { - dr_mode = "host"; #address-cells = <1>; #size-cells = <0>; status = "okay";
Signature · 1 line
2.38.1
PATCH RESEND v4 3/4 arm64: dts: meson: move usb-hub node under dwc3 node on Odroid C4
In reply to Anand MoonMove the usb-hub node under dwc3 node and drop superfluous dr_mode as it is the default in meson-g12-common.dtsi.
--- .../boot/dts/amlogic/meson-sm1-odroid-c4.dts | 41 +++++++++---------- 1 file changed, 20 insertions(+), 21 deletions(-)
arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts +20 -21
@@ -26,30 +26,29 @@ led-blue { sound { model = "ODROID-C4"; }; +}; +&dwc3 { /* USB hub supports both USB 2.0 and USB 3.0 root hub */ - usb-hub { - dr_mode = "host"; - #address-cells = <1>; - #size-cells = <0>; - - /* 2.0 hub on port 1 */ - hub_2_0: hub@1 { - compatible = "usb2109,2817"; - reg = <1>; - peer-hub = <&hub_3_0>; - reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; - vdd-supply = <&vcc_5v>; - }; + #address-cells = <1>; + #size-cells = <0>; + + /* 2.0 hub on port 1 */ + hub_2_0: hub@1 { + compatible = "usb2109,2817"; + reg = <1>; + peer-hub = <&hub_3_0>; + reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; + vdd-supply = <&vcc_5v>; + }; - /* 3.1 hub on port 4 */ - hub_3_0: hub@2 { - compatible = "usb2109,817"; - reg = <2>; - peer-hub = <&hub_2_0>; - reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; - vdd-supply = <&vcc_5v>; - }; + /* 3.1 hub on port 4 */ + hub_3_0: hub@2 { + compatible = "usb2109,817"; + reg = <2>; + peer-hub = <&hub_2_0>; + reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; + vdd-supply = <&vcc_5v>; }; };
Signature · 1 line
2.38.1
PATCH RESEND v4 4/4 dt-bindings: usb: Fix properties for VL817 hub controller
In reply to Anand MoonCleanup by removing unneeded quotes from refs and add maxItems to reset-gpios and fix the required list.
--- .../devicetree/bindings/usb/vialab,vl817.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-)
Documentation/devicetree/bindings/usb/vialab,vl817.yaml +10 -8
@@ -14,29 +14,32 @@ allOf: properties: compatible: - items: - - enum: - - usb2109,2817 - - usb2109,817 + enum: + - usb2109,2817 + - usb2109,817 reg: true reset-gpios: - description: GPIO controlling the RESET# pin. + maxItems: 1 + description: + GPIO controlling the RESET# pin. vdd-supply: description: phandle to the regulator that provides power to the hub. peer-hub: - $ref: '/schemas/types.yaml#/definitions/phandle' + $ref: /schemas/types.yaml#/definitions/phandle description: phandle to the peer hub on the controller. required: - - peer-hub - compatible - reg + - reset-gpios + - vdd-supply + - peer-hub additionalProperties: false
@@ -45,7 +48,6 @@ examples: #include <dt-bindings/gpio/gpio.h> usb { - dr_mode = "host"; #address-cells = <1>; #size-cells = <0>;
Signature · 1 line
2.38.1
Re: [PATCH RESEND linux-next v4 4/4] dt-bindings: usb: Fix properties for VL817 hub controller
Quoted 5 lines · Anand Moon
Cleanup by removing unneeded quotes from refs and add maxItems to reset-gpios and fix the required list.
Fixes 31360c28dfdd ("dt-bindings: usb: Add binding for Via lab VL817 hub controller")Reviewed-by Krzysztof Kozlowski <[email protected]>
NAK.
You ignored my feedback. Please help me understand how my tag appeared here.
Best regards,
Krzysztof
Re: [PATCH RESEND linux-next v4 4/4] dt-bindings: usb: Fix properties for VL817 hub controller
Hi Krzysztof,
Quoted 5 lines · Krzysztof Kozlowski
Quoted 3 lines · Anand Moon
Cleanup by removing unneeded quotes from refs and add maxItems to reset-gpios and fix the required list.
Quoted 7 lines
Quoted 2 lines
Fixes 31360c28dfdd ("dt-bindings: usb: Add binding for Via lab VL817 hub controller")Reviewed-by Krzysztof Kozlowski <[email protected]>NAK.
You ignored my feedback. Please help me understand how my tag appeared here.
I have followed your feedback and modified the below patch I thought you review these changes see below.
[0] https://lore.kernel.org/all/[email protected]/
Quoted 3 lines
Best regards,
Krzysztof
Thanks
-Anand
_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic
Re: [PATCH RESEND linux-next v4 4/4] dt-bindings: usb: Fix properties for VL817 hub controller
Quoted 12 lines · Anand Moon
Hi Krzysztof,
Quoted 8 lines · Krzysztof Kozlowski
Quoted 5 lines · Anand Moon
Cleanup by removing unneeded quotes from refs and add maxItems to reset-gpios and fix the required list.
Fixes 31360c28dfdd ("dt-bindings: usb: Add binding for Via lab VL817 hub controller")Reviewed-by Krzysztof Kozlowski <[email protected]>
Quoted 8 lines
Quoted 4 lines
NAK.
You ignored my feedback. Please help me understand how my tag appeared here.
I have followed your feedback and modified the below patch I thought you review these changes see below.
This was entirely different patch. You cannot take reviews from something else and apply to other patch.
Best regards,
Krzysztof
Re: [PATCH RESEND linux-next v4 4/4] dt-bindings: usb: Fix properties for VL817 hub controller
Hi Krzysztof,
Quoted 21 lines · Krzysztof Kozlowski
Quoted 19 lines · Anand Moon
Hi Krzysztof,
Quoted 5 lines · Krzysztof Kozlowski
Quoted 3 lines · Anand Moon
Cleanup by removing unneeded quotes from refs and add maxItems to reset-gpios and fix the required list.
Quoted 7 lines
Quoted 2 lines
Fixes 31360c28dfdd ("dt-bindings: usb: Add binding for Via lab VL817 hub controller")Reviewed-by Krzysztof Kozlowski <[email protected]>NAK.
You ignored my feedback. Please help me understand how my tag appeared here.
I have followed your feedback and modified the below patch I thought you review these changes see below.
Quoted 8 lines
Quoted 1 line
This was entirely different patch. You cannot take reviews from something else and apply to other patch.
Best regards,
Krzysztof
ok, I will keep this in my mind.
Thanks
-Anand
_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic