* [PATCH v2 0/4] spacemit: k1-bananapi-f3: Fix the power source of USB3 nodes
@ 2026-05-02 5:18 Anand Moon
2026-05-02 5:18 ` [PATCH v2 1/4] riscv: dts: spacemit: k1-bananapi-f3: Add vcc5v0_sys regulator for Banana Pi F3 Anand Moon
` (3 more replies)
0 siblings, 4 replies; 17+ messages in thread
From: Anand Moon @ 2026-05-02 5:18 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Yixun Lan,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list:RISC-V ARCHITECTURE,
open list:RISC-V SPACEMIT SoC Support, open list
Following changes fix the power source of USB 3 and pcie on K1-Bananapi-F3
development board.
Bananapi F3 schematics.
[1] https://drive.google.com/file/d/19iLJ5xnCB_oK8VeQjkPGjzAn39WYyylv/view (page 24)
v1: https://lore.kernel.org/all/20260325081700.1502-1-linux.amoon@gmail.com/
v2: Add pcie vin for pcie regulator.
To verify check regulator_summary for more details
$ cat /sys/kernel/debug/regulator/regulator_summary
dc_in_12v 3 2 0 unknown 12000mV 0mA 12000mV 12000mV
vcc_4v 1 0 0 unknown 4000mV 0mA 4000mV 4000mV
vcc5v0_sys 4 3 0 unknown 5000mV 0mA 5000mV 5000mV
PCIE_VCC3V3 3 2 0 unknown 3300mV 0mA 3300mV 3300mV
ca800000.pcie-vpcie3v3 1 0mA 0mV 0mV
ca400000.pcie-vpcie3v3 1 0mA 0mV 0mV
5V_VBUS 2 1 0 unknown 5000mV 0mA 5000mV 5000mV
c0a00000.usb:hub@1-vdd 1 0mA 0mV 0mV
VCC5V0_HUB 2 1 0 unknown 5000mV 0mA 5000mV 5000mV
c0a00000.usb-vbus 1 0mA 0mV 0mV
Thanks
-Anand
Anand Moon (4):
riscv: dts: spacemit: k1-bananapi-f3: Add vcc5v0_sys regulator for
Banana Pi F3
riscv: dts: spacemit: k1-bananapi-f3: Update USB regulator on onboard
usb and label
riscv: dts: spacemit: k1-bananapi-f3: Correct USB hub power hierarchy
riscv: dts: spacemit: k1-bananapi-f3: Add vin-supply for PCIe 3.3V
regulator
.../boot/dts/spacemit/k1-bananapi-f3.dts | 25 +++++++++++++++----
1 file changed, 20 insertions(+), 5 deletions(-)
base-commit: f1a5e78a55ebf2b05777fd5eb738038ddae609d6
--
2.50.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 17+ messages in thread* [PATCH v2 1/4] riscv: dts: spacemit: k1-bananapi-f3: Add vcc5v0_sys regulator for Banana Pi F3 2026-05-02 5:18 [PATCH v2 0/4] spacemit: k1-bananapi-f3: Fix the power source of USB3 nodes Anand Moon @ 2026-05-02 5:18 ` Anand Moon 2026-05-07 2:45 ` Yixun Lan 2026-05-02 5:18 ` [PATCH v2 2/4] riscv: dts: spacemit: k1-bananapi-f3: Update USB regulator on onboard usb and label Anand Moon ` (2 subsequent siblings) 3 siblings, 1 reply; 17+ messages in thread From: Anand Moon @ 2026-05-02 5:18 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yixun Lan, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list:RISC-V SPACEMIT SoC Support, open list:RISC-V SPACEMIT SoC Support, open list Cc: Han Gao, Chukun Pan, Ze Huang Define the system 5V fixed regulator (vcc5v0_sys) supplied by the DC input. As per the schematics, vcc5v0_sys is the input power source for the VCC5V0_HUB and 5V_VBUS reglators. Update these regulators to correctly reference vcc5v0_sys as their parent (vin-supply). Cc: Han Gao <gaohan@iscas.ac.cn> Cc: Ze Huang <huang.ze@linux.dev> Cc: Chukun Pan <amadeus@jmu.edu.cn> Signed-off-by: Anand Moon <linux.amoon@gmail.com> --- arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts index 5790d927b93d..9727ecdd9f6b 100644 --- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts +++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts @@ -50,6 +50,16 @@ reg_dc_in: regulator-dc-in-12v { regulator-always-on; }; + reg_vcc5v0_sys: regulator-vcc5v0-sys { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_sys"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + regulator-always-on; + vin-supply = <®_dc_in>; + }; + reg_vcc_4v: regulator-vcc-4v { compatible = "regulator-fixed"; regulator-name = "vcc_4v"; @@ -66,6 +76,7 @@ regulator-usb3-vbus-5v { regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; regulator-always-on; + vin-supply = <®_vcc5v0_sys>; gpio = <&gpio K1_GPIO(97) GPIO_ACTIVE_HIGH>; enable-active-high; }; @@ -75,6 +86,7 @@ usb3_hub_5v: regulator-usb3-hub-5v { regulator-name = "USB30_HUB"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; + vin-supply = <®_vcc5v0_sys>; gpio = <&gpio K1_GPIO(123) GPIO_ACTIVE_HIGH>; enable-active-high; }; -- 2.50.1 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: [PATCH v2 1/4] riscv: dts: spacemit: k1-bananapi-f3: Add vcc5v0_sys regulator for Banana Pi F3 2026-05-02 5:18 ` [PATCH v2 1/4] riscv: dts: spacemit: k1-bananapi-f3: Add vcc5v0_sys regulator for Banana Pi F3 Anand Moon @ 2026-05-07 2:45 ` Yixun Lan 2026-05-08 7:36 ` Anand Moon 0 siblings, 1 reply; 17+ messages in thread From: Yixun Lan @ 2026-05-07 2:45 UTC (permalink / raw) To: Anand Moon Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list:RISC-V SPACEMIT SoC Support, open list:RISC-V SPACEMIT SoC Support, open list, Han Gao, Ze Huang, Chukun Pan Hi Anand, On 10:48 Sat 02 May , Anand Moon wrote: > Define the system 5V fixed regulator (vcc5v0_sys) supplied by the > DC input. As per the schematics, vcc5v0_sys is the input power source > for the VCC5V0_HUB and 5V_VBUS reglators. Update these regulators > to correctly reference vcc5v0_sys as their parent (vin-supply). > > Cc: Han Gao <gaohan@iscas.ac.cn> > Cc: Ze Huang <huang.ze@linux.dev> > Cc: Chukun Pan <amadeus@jmu.edu.cn> > Signed-off-by: Anand Moon <linux.amoon@gmail.com> > --- > arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > index 5790d927b93d..9727ecdd9f6b 100644 > --- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > +++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > @@ -50,6 +50,16 @@ reg_dc_in: regulator-dc-in-12v { > regulator-always-on; > }; > > + reg_vcc5v0_sys: regulator-vcc5v0-sys { This will fall into the catogery of "non-controllable & serve no devices" see similar comment for 'reg_dc_in' which raised by Krzysztof https://lore.kernel.org/all/6530526f-59ca-4753-a068-46c62a1a1fed@kernel.org/ or should I ask, what's the real problem if regulator has no vin-supply? Any probe failure or something bad happen? (besides /sys/../regulator_summay) > + compatible = "regulator-fixed"; > + regulator-name = "vcc5v0_sys"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + regulator-boot-on; > + regulator-always-on; > + vin-supply = <®_dc_in>; > + }; > + > reg_vcc_4v: regulator-vcc-4v { > compatible = "regulator-fixed"; > regulator-name = "vcc_4v"; > @@ -66,6 +76,7 @@ regulator-usb3-vbus-5v { > regulator-min-microvolt = <5000000>; > regulator-max-microvolt = <5000000>; > regulator-always-on; > + vin-supply = <®_vcc5v0_sys>; > gpio = <&gpio K1_GPIO(97) GPIO_ACTIVE_HIGH>; > enable-active-high; > }; > @@ -75,6 +86,7 @@ usb3_hub_5v: regulator-usb3-hub-5v { > regulator-name = "USB30_HUB"; > regulator-min-microvolt = <5000000>; > regulator-max-microvolt = <5000000>; > + vin-supply = <®_vcc5v0_sys>; > gpio = <&gpio K1_GPIO(123) GPIO_ACTIVE_HIGH>; > enable-active-high; > }; > -- > 2.50.1 > -- Yixun Lan (dlan) _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v2 1/4] riscv: dts: spacemit: k1-bananapi-f3: Add vcc5v0_sys regulator for Banana Pi F3 2026-05-07 2:45 ` Yixun Lan @ 2026-05-08 7:36 ` Anand Moon 2026-05-09 12:18 ` Yixun Lan 0 siblings, 1 reply; 17+ messages in thread From: Anand Moon @ 2026-05-08 7:36 UTC (permalink / raw) To: Yixun Lan Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list:RISC-V SPACEMIT SoC Support, open list:RISC-V SPACEMIT SoC Support, open list, Han Gao, Ze Huang, Chukun Pan Hi Yixun, Thanks for your review comments. On Thu, 7 May 2026 at 08:15, Yixun Lan <dlan@kernel.org> wrote: > > Hi Anand, > > On 10:48 Sat 02 May , Anand Moon wrote: > > Define the system 5V fixed regulator (vcc5v0_sys) supplied by the > > DC input. As per the schematics, vcc5v0_sys is the input power source > > for the VCC5V0_HUB and 5V_VBUS reglators. Update these regulators > > to correctly reference vcc5v0_sys as their parent (vin-supply). > > > > Cc: Han Gao <gaohan@iscas.ac.cn> > > Cc: Ze Huang <huang.ze@linux.dev> > > Cc: Chukun Pan <amadeus@jmu.edu.cn> > > Signed-off-by: Anand Moon <linux.amoon@gmail.com> > > --- > > arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 12 ++++++++++++ > > 1 file changed, 12 insertions(+) > > > > diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > index 5790d927b93d..9727ecdd9f6b 100644 > > --- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > +++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > @@ -50,6 +50,16 @@ reg_dc_in: regulator-dc-in-12v { > > regulator-always-on; > > }; > > > > + reg_vcc5v0_sys: regulator-vcc5v0-sys { > This will fall into the catogery of "non-controllable & serve no devices" > see similar comment for 'reg_dc_in' which raised by Krzysztof > > https://lore.kernel.org/all/6530526f-59ca-4753-a068-46c62a1a1fed@kernel.org/ > > or should I ask, what's the real problem if regulator has no vin-supply? If the device tree is not configured with the correct power source it will affect performance. > Any probe failure or something bad happen? (besides /sys/../regulator_summay) Not really; the regulator summary just confirms the PMIC used the correct power source. with te device ip blocks. Bananapi F3 schematics. [1] https://drive.google.com/file/d/19iLJ5xnCB_oK8VeQjkPGjzAn39WYyylv/view (page 24) Please check the shematics VCC5V0_SYS page 4 VCC5V0_SYS->USB_VCC5V0->HDMI_VCC5V0->FAN_VCC5V0->VCC3V3_SYS Please check the shematics VCC5V0_SYS page 24 VCC5V0_SYS input for VCC5V0_HUB and 5V_VBUS give the USB hub, which is enabled by USB3_PWREN (gpio pin)> Plese check power tree page 4 USBVBUS->SY8386J UXXX -> PCIE_VCC3V3 for pcie vin source So, this series tries to fix the vin source for USB 3.0 and PCIe nodes. Thanks -Anand > > > + compatible = "regulator-fixed"; > > + regulator-name = "vcc5v0_sys"; > > + regulator-min-microvolt = <5000000>; > > + regulator-max-microvolt = <5000000>; > > + regulator-boot-on; > > + regulator-always-on; > > + vin-supply = <®_dc_in>; > > + }; > > + > > reg_vcc_4v: regulator-vcc-4v { > > compatible = "regulator-fixed"; > > regulator-name = "vcc_4v"; > > @@ -66,6 +76,7 @@ regulator-usb3-vbus-5v { > > regulator-min-microvolt = <5000000>; > > regulator-max-microvolt = <5000000>; > > regulator-always-on; > > + vin-supply = <®_vcc5v0_sys>; > > gpio = <&gpio K1_GPIO(97) GPIO_ACTIVE_HIGH>; > > enable-active-high; > > }; > > @@ -75,6 +86,7 @@ usb3_hub_5v: regulator-usb3-hub-5v { > > regulator-name = "USB30_HUB"; > > regulator-min-microvolt = <5000000>; > > regulator-max-microvolt = <5000000>; > > + vin-supply = <®_vcc5v0_sys>; > > gpio = <&gpio K1_GPIO(123) GPIO_ACTIVE_HIGH>; > > enable-active-high; > > }; > > -- > > 2.50.1 > > > > -- > Yixun Lan (dlan) _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v2 1/4] riscv: dts: spacemit: k1-bananapi-f3: Add vcc5v0_sys regulator for Banana Pi F3 2026-05-08 7:36 ` Anand Moon @ 2026-05-09 12:18 ` Yixun Lan 2026-05-09 15:18 ` Anand Moon 0 siblings, 1 reply; 17+ messages in thread From: Yixun Lan @ 2026-05-09 12:18 UTC (permalink / raw) To: Anand Moon Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list:RISC-V SPACEMIT SoC Support, open list:RISC-V SPACEMIT SoC Support, open list, Han Gao, Ze Huang, Chukun Pan Hi Anand, On 13:06 Fri 08 May , Anand Moon wrote: > Hi Yixun, > > Thanks for your review comments. > > On Thu, 7 May 2026 at 08:15, Yixun Lan <dlan@kernel.org> wrote: > > > > Hi Anand, > > > > On 10:48 Sat 02 May , Anand Moon wrote: > > > Define the system 5V fixed regulator (vcc5v0_sys) supplied by the > > > DC input. As per the schematics, vcc5v0_sys is the input power source > > > for the VCC5V0_HUB and 5V_VBUS reglators. Update these regulators > > > to correctly reference vcc5v0_sys as their parent (vin-supply). > > > > > > Cc: Han Gao <gaohan@iscas.ac.cn> > > > Cc: Ze Huang <huang.ze@linux.dev> > > > Cc: Chukun Pan <amadeus@jmu.edu.cn> > > > Signed-off-by: Anand Moon <linux.amoon@gmail.com> > > > --- > > > arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 12 ++++++++++++ > > > 1 file changed, 12 insertions(+) > > > > > > diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > > index 5790d927b93d..9727ecdd9f6b 100644 > > > --- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > > +++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > > @@ -50,6 +50,16 @@ reg_dc_in: regulator-dc-in-12v { > > > regulator-always-on; > > > }; > > > > > > + reg_vcc5v0_sys: regulator-vcc5v0-sys { > > This will fall into the catogery of "non-controllable & serve no devices" > > see similar comment for 'reg_dc_in' which raised by Krzysztof > > > > https://lore.kernel.org/all/6530526f-59ca-4753-a068-46c62a1a1fed@kernel.org/ > > > > or should I ask, what's the real problem if regulator has no vin-supply? > > If the device tree is not configured with the correct power source it > will affect performance. > Please elaborate, or provide enough evidence to prove this, because the conclusion you gave here contradicts with what Krzysztof pointed out > > Any probe failure or something bad happen? (besides /sys/../regulator_summay) > > Not really; the regulator summary just confirms the PMIC used the > correct power source. > with te device ip blocks. > then I see it's unnecessary to add this > Bananapi F3 schematics. > [1] https://drive.google.com/file/d/19iLJ5xnCB_oK8VeQjkPGjzAn39WYyylv/view > (page 24) > > Please check the shematics VCC5V0_SYS page 4 > VCC5V0_SYS->USB_VCC5V0->HDMI_VCC5V0->FAN_VCC5V0->VCC3V3_SYS > > Please check the shematics VCC5V0_SYS page 24 > VCC5V0_SYS input for VCC5V0_HUB and 5V_VBUS give the USB hub, > which is enabled by USB3_PWREN (gpio pin)> > > Plese check power tree page 4 > USBVBUS->SY8386J UXXX -> PCIE_VCC3V3 for pcie vin source > > So, this series tries to fix the vin source for USB 3.0 and PCIe nodes. > This is not what I ask.. -- Yixun Lan (dlan) _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v2 1/4] riscv: dts: spacemit: k1-bananapi-f3: Add vcc5v0_sys regulator for Banana Pi F3 2026-05-09 12:18 ` Yixun Lan @ 2026-05-09 15:18 ` Anand Moon 2026-05-11 6:53 ` Yixun Lan 0 siblings, 1 reply; 17+ messages in thread From: Anand Moon @ 2026-05-09 15:18 UTC (permalink / raw) To: Yixun Lan Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list:RISC-V SPACEMIT SoC Support, open list:RISC-V SPACEMIT SoC Support, open list, Han Gao, Ze Huang, Chukun Pan Hi Yixun, On Sat, 9 May 2026 at 17:48, Yixun Lan <dlan@kernel.org> wrote: > > Hi Anand, > > On 13:06 Fri 08 May , Anand Moon wrote: > > Hi Yixun, > > > > Thanks for your review comments. > > > > On Thu, 7 May 2026 at 08:15, Yixun Lan <dlan@kernel.org> wrote: > > > > > > Hi Anand, > > > > > > On 10:48 Sat 02 May , Anand Moon wrote: > > > > Define the system 5V fixed regulator (vcc5v0_sys) supplied by the > > > > DC input. As per the schematics, vcc5v0_sys is the input power source > > > > for the VCC5V0_HUB and 5V_VBUS reglators. Update these regulators > > > > to correctly reference vcc5v0_sys as their parent (vin-supply). > > > > > > > > Cc: Han Gao <gaohan@iscas.ac.cn> > > > > Cc: Ze Huang <huang.ze@linux.dev> > > > > Cc: Chukun Pan <amadeus@jmu.edu.cn> > > > > Signed-off-by: Anand Moon <linux.amoon@gmail.com> > > > > --- > > > > arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 12 ++++++++++++ > > > > 1 file changed, 12 insertions(+) > > > > > > > > diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > > > index 5790d927b93d..9727ecdd9f6b 100644 > > > > --- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > > > +++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > > > @@ -50,6 +50,16 @@ reg_dc_in: regulator-dc-in-12v { > > > > regulator-always-on; > > > > }; > > > > > > > > + reg_vcc5v0_sys: regulator-vcc5v0-sys { > > > This will fall into the catogery of "non-controllable & serve no devices" > > > see similar comment for 'reg_dc_in' which raised by Krzysztof > > > > > > https://lore.kernel.org/all/6530526f-59ca-4753-a068-46c62a1a1fed@kernel.org/ > > > > > > or should I ask, what's the real problem if regulator has no vin-supply? > > > > If the device tree is not configured with the correct power source it > > will affect performance. > > > Please elaborate, or provide enough evidence to prove this, because the > conclusion you gave here contradicts with what Krzysztof pointed out I don’t have the schematic for that board, so I skipped replying. Please refer to the POWER TREE diagram, which provides a clear visualization of the power sources. This board accepts two primary power sources: a 12 V DC input and USB Type‑C power. From the schematic’s power tree (page 4): Type‑C → DC_IN→ SY8386J (Uxxx) → PI PMIC According to the block diagram, the SY8386J regulator IC is responsible for generating the VCC5V0_SYS rail VCC4V0_SYS (see page 13). USBVBUS → SY8386J → VCC5V0_SYS USBVBUS → SY8386J → VCC4V0_SYS USBVBUS ( TypeC port) --> DC_IN--> 12V In this design, the SY8386J operates as a step‑down converter, supplying both VCC4V0_SYS and VCC5V0_SYS rails and P! PMIC. SY8386 is a high-efficiency synchronous step-down DC/DC regulator capable of delivering up to 6A with wide input voltage support and multiple protection features. Datasheet [1] https://datasheet4u.com/download_new.php?id=1604744 I have tried to elaborate as clearly as I can. > > > > Any probe failure or something bad happen? (besides /sys/../regulator_summay) > > > > Not really; the regulator summary just confirms the PMIC used the > > correct power source. > > with te device ip blocks. > > > then I see it's unnecessary to add this > > > Bananapi F3 schematics. > > [1] https://drive.google.com/file/d/19iLJ5xnCB_oK8VeQjkPGjzAn39WYyylv/view > > (page 24) > > > > Please check the shematics VCC5V0_SYS page 4 > > VCC5V0_SYS->USB_VCC5V0->HDMI_VCC5V0->FAN_VCC5V0->VCC3V3_SYS > > > > Please check the shematics VCC5V0_SYS page 24 > > VCC5V0_SYS input for VCC5V0_HUB and 5V_VBUS give the USB hub, > > which is enabled by USB3_PWREN (gpio pin)> > > > > Plese check power tree page 4 > > USBVBUS->SY8386J UXXX -> PCIE_VCC3V3 for pcie vin source > > > > So, this series tries to fix the vin source for USB 3.0 and PCIe nodes. > > > This is not what I ask.. Opps, I tried, but I wasn’t able to clearly elaborate on how the power sources are distributed across the various peripherals. > > -- > Yixun Lan (dlan) Thanks -Anand _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v2 1/4] riscv: dts: spacemit: k1-bananapi-f3: Add vcc5v0_sys regulator for Banana Pi F3 2026-05-09 15:18 ` Anand Moon @ 2026-05-11 6:53 ` Yixun Lan 2026-05-11 9:53 ` Anand Moon 0 siblings, 1 reply; 17+ messages in thread From: Yixun Lan @ 2026-05-11 6:53 UTC (permalink / raw) To: Anand Moon Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list:RISC-V SPACEMIT SoC Support, open list:RISC-V SPACEMIT SoC Support, open list, Han Gao, Ze Huang, Chukun Pan Hi Anand, On 20:48 Sat 09 May , Anand Moon wrote: > Hi Yixun, > > On Sat, 9 May 2026 at 17:48, Yixun Lan <dlan@kernel.org> wrote: > > > > Hi Anand, > > > > On 13:06 Fri 08 May , Anand Moon wrote: > > > Hi Yixun, > > > > > > Thanks for your review comments. > > > > > > On Thu, 7 May 2026 at 08:15, Yixun Lan <dlan@kernel.org> wrote: > > > > > > > > Hi Anand, > > > > > > > > On 10:48 Sat 02 May , Anand Moon wrote: > > > > > Define the system 5V fixed regulator (vcc5v0_sys) supplied by the > > > > > DC input. As per the schematics, vcc5v0_sys is the input power source > > > > > for the VCC5V0_HUB and 5V_VBUS reglators. Update these regulators > > > > > to correctly reference vcc5v0_sys as their parent (vin-supply). > > > > > > > > > > Cc: Han Gao <gaohan@iscas.ac.cn> > > > > > Cc: Ze Huang <huang.ze@linux.dev> > > > > > Cc: Chukun Pan <amadeus@jmu.edu.cn> > > > > > Signed-off-by: Anand Moon <linux.amoon@gmail.com> > > > > > --- > > > > > arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 12 ++++++++++++ > > > > > 1 file changed, 12 insertions(+) > > > > > > > > > > diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > > > > index 5790d927b93d..9727ecdd9f6b 100644 > > > > > --- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > > > > +++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > > > > @@ -50,6 +50,16 @@ reg_dc_in: regulator-dc-in-12v { > > > > > regulator-always-on; > > > > > }; > > > > > > > > > > + reg_vcc5v0_sys: regulator-vcc5v0-sys { > > > > This will fall into the catogery of "non-controllable & serve no devices" > > > > see similar comment for 'reg_dc_in' which raised by Krzysztof > > > > > > > > https://lore.kernel.org/all/6530526f-59ca-4753-a068-46c62a1a1fed@kernel.org/ > > > > > > > > or should I ask, what's the real problem if regulator has no vin-supply? > > > > > > If the device tree is not configured with the correct power source it > > > will affect performance. > > > > > Please elaborate, or provide enough evidence to prove this, because the > > conclusion you gave here contradicts with what Krzysztof pointed out > I don’t have the schematic for that board, so I skipped replying. > No, you didn't answer my question, I was asking why "affect performance", and you just gave me the opposite conclusion Let me elaborate, the reg_vcc5v0_sys is a regulator which has no software or GPIO control, so no need software control from kernel/driver perspective, which also mean it will be automatically enabled from hardware perspective once the board power up - "non-controllable" in Krzysztof's reply the reg_vcc5v0_sys currently only serve as vin for other regulator which is not a device (e.g not USB, PCIe, eMMC..) - "serve no devices" in Krzysztof's reply.. and by introducing reg_vcc5v0_sys, kernel driver need to do additional work to go through probe procedure and register the regulator device, consumer depend on it need to wait, this will hurt performance, slow down system boot and even consume more memory.. By dropping reg_vcc5v0_sys, it will result as a stripped power source tree, this is only downside I can see, but doesn't really hurt.. > Please refer to the POWER TREE diagram, which provides a clear > visualization of the power sources. > > This board accepts two primary power sources: a 12 V DC input and USB > Type‑C power. > From the schematic’s power tree (page 4): > > Type‑C → DC_IN→ SY8386J (Uxxx) → PI PMIC > > According to the block diagram, the SY8386J regulator IC is > responsible for generating the VCC5V0_SYS rail VCC4V0_SYS (see page > 13). > > USBVBUS → SY8386J → VCC5V0_SYS > USBVBUS → SY8386J → VCC4V0_SYS > > USBVBUS ( TypeC port) --> DC_IN--> 12V > > In this design, the SY8386J operates as a step‑down converter, supplying > both VCC4V0_SYS and VCC5V0_SYS rails and P! PMIC. > > SY8386 is a high-efficiency synchronous step-down DC/DC regulator > capable of delivering up to 6A with wide input voltage support and multiple > protection features. > Datasheet [1] https://datasheet4u.com/download_new.php?id=1604744 so right, SY8386 is a passive device which need no software control, non-controllable.. > > I have tried to elaborate as clearly as I can. > > > > > > Any probe failure or something bad happen? (besides /sys/../regulator_summay) > > > > > > Not really; the regulator summary just confirms the PMIC used the > > > correct power source. > > > with te device ip blocks. > > > > > then I see it's unnecessary to add this > > > > > Bananapi F3 schematics. > > > [1] https://drive.google.com/file/d/19iLJ5xnCB_oK8VeQjkPGjzAn39WYyylv/view > > > (page 24) > > > > > > Please check the shematics VCC5V0_SYS page 4 > > > VCC5V0_SYS->USB_VCC5V0->HDMI_VCC5V0->FAN_VCC5V0->VCC3V3_SYS > > > > > > Please check the shematics VCC5V0_SYS page 24 > > > VCC5V0_SYS input for VCC5V0_HUB and 5V_VBUS give the USB hub, > > > which is enabled by USB3_PWREN (gpio pin)> > > > > > > Plese check power tree page 4 > > > USBVBUS->SY8386J UXXX -> PCIE_VCC3V3 for pcie vin source > > > > > > So, this series tries to fix the vin source for USB 3.0 and PCIe nodes. > > > > > This is not what I ask.. > Opps, I tried, but I wasn’t able to clearly elaborate on how the power sources > are distributed across the various peripherals. Hope I make it clear this time.. -- Yixun Lan (dlan) _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v2 1/4] riscv: dts: spacemit: k1-bananapi-f3: Add vcc5v0_sys regulator for Banana Pi F3 2026-05-11 6:53 ` Yixun Lan @ 2026-05-11 9:53 ` Anand Moon 0 siblings, 0 replies; 17+ messages in thread From: Anand Moon @ 2026-05-11 9:53 UTC (permalink / raw) To: Yixun Lan Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list:RISC-V SPACEMIT SoC Support, open list:RISC-V SPACEMIT SoC Support, open list, Han Gao, Ze Huang, Chukun Pan Hi Yixun, On Mon, 11 May 2026 at 12:23, Yixun Lan <dlan@kernel.org> wrote: > > Hi Anand, > > On 20:48 Sat 09 May , Anand Moon wrote: > > Hi Yixun, > > > > On Sat, 9 May 2026 at 17:48, Yixun Lan <dlan@kernel.org> wrote: > > > > > > Hi Anand, > > > > > > On 13:06 Fri 08 May , Anand Moon wrote: > > > > Hi Yixun, > > > > > > > > Thanks for your review comments. > > > > > > > > On Thu, 7 May 2026 at 08:15, Yixun Lan <dlan@kernel.org> wrote: > > > > > > > > > > Hi Anand, > > > > > > > > > > On 10:48 Sat 02 May , Anand Moon wrote: > > > > > > Define the system 5V fixed regulator (vcc5v0_sys) supplied by the > > > > > > DC input. As per the schematics, vcc5v0_sys is the input power source > > > > > > for the VCC5V0_HUB and 5V_VBUS reglators. Update these regulators > > > > > > to correctly reference vcc5v0_sys as their parent (vin-supply). > > > > > > > > > > > > Cc: Han Gao <gaohan@iscas.ac.cn> > > > > > > Cc: Ze Huang <huang.ze@linux.dev> > > > > > > Cc: Chukun Pan <amadeus@jmu.edu.cn> > > > > > > Signed-off-by: Anand Moon <linux.amoon@gmail.com> > > > > > > --- > > > > > > arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 12 ++++++++++++ > > > > > > 1 file changed, 12 insertions(+) > > > > > > > > > > > > diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > > > > > index 5790d927b93d..9727ecdd9f6b 100644 > > > > > > --- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > > > > > +++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > > > > > > @@ -50,6 +50,16 @@ reg_dc_in: regulator-dc-in-12v { > > > > > > regulator-always-on; > > > > > > }; > > > > > > > > > > > > + reg_vcc5v0_sys: regulator-vcc5v0-sys { > > > > > This will fall into the catogery of "non-controllable & serve no devices" > > > > > see similar comment for 'reg_dc_in' which raised by Krzysztof > > > > > > > > > > https://lore.kernel.org/all/6530526f-59ca-4753-a068-46c62a1a1fed@kernel.org/ > > > > > > > > > > or should I ask, what's the real problem if regulator has no vin-supply? > > > > > > > > If the device tree is not configured with the correct power source it > > > > will affect performance. > > > > > > > Please elaborate, or provide enough evidence to prove this, because the > > > conclusion you gave here contradicts with what Krzysztof pointed out > > I don’t have the schematic for that board, so I skipped replying. > > > No, you didn't answer my question, I was asking why "affect performance", > and you just gave me the opposite conclusion > I tried to justify my changes according to the schematic I understood. > Let me elaborate, the reg_vcc5v0_sys is a regulator that has no software > or GPIO control, so no need software control from the kernel/driver perspective, > which also mean it will be automatically enabled from hardware perspective > once the board power up - "non-controllable" in Krzysztof's reply > > the reg_vcc5v0_sys currently only serve as vin for other regulator which > is not a device (e.g not USB, PCIe, eMMC..) - "serve no devices" in > Krzysztof's reply.. > Many development boards follow a similar regulator structure, with fixed regulators assigned to USB, PCIe, and other internal subsystems. This design is consistent with the semantics diagram, so I’m not introducing anything new. > and by introducing reg_vcc5v0_sys, kernel driver need to do additional > work to go through probe procedure and register the regulator device, > consumer depend on it need to wait, this will hurt performance, slow > down system boot and even consume more memory.. > No, it simply defines the power hierarchy to ensure that each device receives the appropriate power source. > By dropping reg_vcc5v0_sys, it will result as a stripped power source > tree, this is only downside I can see, but doesn't really hurt.. > No issue. If my changes are breaking your development board, please drop this. > > Please refer to the POWER TREE diagram, which provides a clear > > visualization of the power sources. > > > > This board accepts two primary power sources: a 12 V DC input and USB > > Type‑C power. > > From the schematic’s power tree (page 4): > > > > Type‑C → DC_IN→ SY8386J (Uxxx) → PI PMIC > > > > According to the block diagram, the SY8386J regulator IC is > > responsible for generating the VCC5V0_SYS rail VCC4V0_SYS (see page > > 13). > > > > USBVBUS → SY8386J → VCC5V0_SYS > > USBVBUS → SY8386J → VCC4V0_SYS > > > > USBVBUS ( TypeC port) --> DC_IN--> 12V > > > > In this design, the SY8386J operates as a step‑down converter, supplying > > both VCC4V0_SYS and VCC5V0_SYS rails and P! PMIC. > > > > SY8386 is a high-efficiency synchronous step-down DC/DC regulator > > capable of delivering up to 6A with wide input voltage support and multiple > > protection features. > > Datasheet [1] https://datasheet4u.com/download_new.php?id=1604744 > so right, SY8386 is a passive device which need no software control, > non-controllable.. > Not all regulators are software-controlled. If the K1 P1 power management IC provides 5 V rails, these can be utilized to supply internal peripherals > > > > I have tried to elaborate as clearly as I can. > > > > > > > > Any probe failure or something bad happen? (besides /sys/../regulator_summay) > > > > > > > > Not really; the regulator summary just confirms the PMIC used the > > > > correct power source. > > > > with te device ip blocks. > > > > > > > then I see it's unnecessary to add this > > > > > > > Bananapi F3 schematics. > > > > [1] https://drive.google.com/file/d/19iLJ5xnCB_oK8VeQjkPGjzAn39WYyylv/view > > > > (page 24) > > > > > > > > Please check the shematics VCC5V0_SYS page 4 > > > > VCC5V0_SYS->USB_VCC5V0->HDMI_VCC5V0->FAN_VCC5V0->VCC3V3_SYS > > > > > > > > Please check the shematics VCC5V0_SYS page 24 > > > > VCC5V0_SYS input for VCC5V0_HUB and 5V_VBUS give the USB hub, > > > > which is enabled by USB3_PWREN (gpio pin)> > > > > > > > > Plese check power tree page 4 > > > > USBVBUS->SY8386J UXXX -> PCIE_VCC3V3 for pcie vin source > > > > > > > > So, this series tries to fix the vin source for USB 3.0 and PCIe nodes. > > > > > > > This is not what I ask.. > > Opps, I tried, but I wasn’t able to clearly elaborate on how the power sources > > are distributed across the various peripherals. > > Hope I make it clear this time.. I tried to elaborate, but wasn’t successful. > > -- > Yixun Lan (dlan) Thanks -Anand _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH v2 2/4] riscv: dts: spacemit: k1-bananapi-f3: Update USB regulator on onboard usb and label 2026-05-02 5:18 [PATCH v2 0/4] spacemit: k1-bananapi-f3: Fix the power source of USB3 nodes Anand Moon 2026-05-02 5:18 ` [PATCH v2 1/4] riscv: dts: spacemit: k1-bananapi-f3: Add vcc5v0_sys regulator for Banana Pi F3 Anand Moon @ 2026-05-02 5:18 ` Anand Moon 2026-05-07 6:40 ` Chukun Pan 2026-05-02 5:18 ` [PATCH v2 3/4] riscv: dts: spacemit: k1-bananapi-f3: Correct USB hub power hierarchy Anand Moon 2026-05-02 5:18 ` Anand Moon 3 siblings, 1 reply; 17+ messages in thread From: Anand Moon @ 2026-05-02 5:18 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yixun Lan, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list:RISC-V SPACEMIT SoC Support, open list:RISC-V SPACEMIT SoC Support, open list Cc: Han Gao, Chukun Pan, Ze Huang Update the USB regulator labels to align with the board schematics and power hierarchy. This change renames the regulator to reg_5v_vbus and its name to 5V_VBUS. Additionally, it fixes the vdd-supply references for both the USB 2.0 and 3.0 hub nodes to ensure they correctly point to the 5V_VBUS input source as per the board schematics. Cc: Han Gao <gaohan@iscas.ac.cn> Cc: Ze Huang <huang.ze@linux.dev> Cc: Chukun Pan <amadeus@jmu.edu.cn> Signed-off-by: Anand Moon <linux.amoon@gmail.com> --- arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts index 9727ecdd9f6b..c35f4763c800 100644 --- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts +++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts @@ -70,9 +70,9 @@ reg_vcc_4v: regulator-vcc-4v { vin-supply = <®_dc_in>; }; - regulator-usb3-vbus-5v { + reg_5v_vbus: regulator-usb3-vbus-5v { compatible = "regulator-fixed"; - regulator-name = "USB30_VBUS"; + regulator-name = "5V_VBUS"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; regulator-always-on; @@ -366,7 +366,7 @@ &usb_dwc3 { hub_2_0: hub@1 { compatible = "usb2109,2817"; reg = <0x1>; - vdd-supply = <&usb3_hub_5v>; + vdd-supply = <®_5v_vbus>; peer-hub = <&hub_3_0>; reset-gpios = <&gpio K1_GPIO(124) GPIO_ACTIVE_LOW>; }; @@ -374,7 +374,7 @@ hub_2_0: hub@1 { hub_3_0: hub@2 { compatible = "usb2109,817"; reg = <0x2>; - vdd-supply = <&usb3_hub_5v>; + vdd-supply = <®_5v_vbus>; peer-hub = <&hub_2_0>; reset-gpios = <&gpio K1_GPIO(124) GPIO_ACTIVE_LOW>; }; -- 2.50.1 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: [PATCH v2 2/4] riscv: dts: spacemit: k1-bananapi-f3: Update USB regulator on onboard usb and label 2026-05-02 5:18 ` [PATCH v2 2/4] riscv: dts: spacemit: k1-bananapi-f3: Update USB regulator on onboard usb and label Anand Moon @ 2026-05-07 6:40 ` Chukun Pan 2026-05-08 7:36 ` Anand Moon 0 siblings, 1 reply; 17+ messages in thread From: Chukun Pan @ 2026-05-07 6:40 UTC (permalink / raw) To: linux.amoon Cc: alex, amadeus, aou, conor+dt, devicetree, dlan, gaohan, huang.ze, krzk+dt, linux-kernel, linux-riscv, palmer, pjw, robh, spacemit Hi, > @@ -366,7 +366,7 @@ &usb_dwc3 { > hub_2_0: hub@1 { > compatible = "usb2109,2817"; > reg = <0x1>; > - vdd-supply = <&usb3_hub_5v>; > + vdd-supply = <®_5v_vbus>; > peer-hub = <&hub_3_0>; > reset-gpios = <&gpio K1_GPIO(124) GPIO_ACTIVE_LOW>; > }; > @@ -374,7 +374,7 @@ hub_2_0: hub@1 { > hub_3_0: hub@2 { > compatible = "usb2109,817"; > reg = <0x2>; > - vdd-supply = <&usb3_hub_5v>; > + vdd-supply = <®_5v_vbus>; > peer-hub = <&hub_2_0>; > reset-gpios = <&gpio K1_GPIO(124) GPIO_ACTIVE_LOW>; > }; This is incorrect. The hub is powered by vcc5v0_hub. According to the schematic, 5v_vbus provides the VBUS for the USB3 ports. _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v2 2/4] riscv: dts: spacemit: k1-bananapi-f3: Update USB regulator on onboard usb and label 2026-05-07 6:40 ` Chukun Pan @ 2026-05-08 7:36 ` Anand Moon 0 siblings, 0 replies; 17+ messages in thread From: Anand Moon @ 2026-05-08 7:36 UTC (permalink / raw) To: Chukun Pan Cc: alex, aou, conor+dt, devicetree, dlan, gaohan, huang.ze, krzk+dt, linux-kernel, linux-riscv, palmer, pjw, robh, spacemit Hi Chukun, Thanks for your review comments. On Thu, 7 May 2026 at 12:10, Chukun Pan <amadeus@jmu.edu.cn> wrote: > > Hi, > > > @@ -366,7 +366,7 @@ &usb_dwc3 { > > hub_2_0: hub@1 { > > compatible = "usb2109,2817"; > > reg = <0x1>; > > - vdd-supply = <&usb3_hub_5v>; > > + vdd-supply = <®_5v_vbus>; > > peer-hub = <&hub_3_0>; > > reset-gpios = <&gpio K1_GPIO(124) GPIO_ACTIVE_LOW>; > > }; > > @@ -374,7 +374,7 @@ hub_2_0: hub@1 { > > hub_3_0: hub@2 { > > compatible = "usb2109,817"; > > reg = <0x2>; > > - vdd-supply = <&usb3_hub_5v>; > > + vdd-supply = <®_5v_vbus>; > > peer-hub = <&hub_2_0>; > > reset-gpios = <&gpio K1_GPIO(124) GPIO_ACTIVE_LOW>; > > }; > > This is incorrect. The hub is powered by vcc5v0_hub. According > to the schematic, 5v_vbus provides the VBUS for the USB3 ports. As per the schematics USB3_PWREN (GPIO97) pin is used to power the USB hub ports 5V_VBUS, please check this again. VCC5V0_SYS -> USB3_PWREN -> 5V_VBUS 5V_VBUS is used to power all the USB3_TypeA_Dual ports. Thanks -Anand _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH v2 3/4] riscv: dts: spacemit: k1-bananapi-f3: Correct USB hub power hierarchy 2026-05-02 5:18 [PATCH v2 0/4] spacemit: k1-bananapi-f3: Fix the power source of USB3 nodes Anand Moon 2026-05-02 5:18 ` [PATCH v2 1/4] riscv: dts: spacemit: k1-bananapi-f3: Add vcc5v0_sys regulator for Banana Pi F3 Anand Moon 2026-05-02 5:18 ` [PATCH v2 2/4] riscv: dts: spacemit: k1-bananapi-f3: Update USB regulator on onboard usb and label Anand Moon @ 2026-05-02 5:18 ` Anand Moon 2026-05-07 6:50 ` Chukun Pan 2026-05-07 6:50 ` [PATCH v2 4/4] riscv: dts: spacemit: k1-bananapi-f3: Add vin-supply for PCIe 3.3V regulator Chukun Pan 2026-05-02 5:18 ` Anand Moon 3 siblings, 2 replies; 17+ messages in thread From: Anand Moon @ 2026-05-02 5:18 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yixun Lan, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list:RISC-V SPACEMIT SoC Support, open list:RISC-V SPACEMIT SoC Support, open list Cc: Han Gao, Chukun Pan, Ze Huang Link the usb3_hub_5v regulator to the USB controller’s vbus-supply to ensure the USB 3.0 stack is properly powered as per the schematics. In addition, align the USB hub regulator with the board schematics by renaming it to VCC5V0_HUB and marking it as regulator-always-on to maintain power stability. Cc: Han Gao <gaohan@iscas.ac.cn> Cc: Ze Huang <huang.ze@linux.dev> Cc: Chukun Pan <amadeus@jmu.edu.cn> Signed-off-by: Anand Moon <linux.amoon@gmail.com> --- arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts index c35f4763c800..3dbdf53b6d8e 100644 --- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts +++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts @@ -83,9 +83,10 @@ reg_5v_vbus: regulator-usb3-vbus-5v { usb3_hub_5v: regulator-usb3-hub-5v { compatible = "regulator-fixed"; - regulator-name = "USB30_HUB"; + regulator-name = "VCC5V0_HUB"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; + regulator-always-on; vin-supply = <®_vcc5v0_sys>; gpio = <&gpio K1_GPIO(123) GPIO_ACTIVE_HIGH>; enable-active-high; @@ -361,6 +362,7 @@ &usb_dwc3 { dr_mode = "host"; #address-cells = <1>; #size-cells = <0>; + vbus-supply = <&usb3_hub_5v>; status = "okay"; hub_2_0: hub@1 { -- 2.50.1 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: [PATCH v2 3/4] riscv: dts: spacemit: k1-bananapi-f3: Correct USB hub power hierarchy 2026-05-02 5:18 ` [PATCH v2 3/4] riscv: dts: spacemit: k1-bananapi-f3: Correct USB hub power hierarchy Anand Moon @ 2026-05-07 6:50 ` Chukun Pan 2026-05-08 7:38 ` Anand Moon 2026-05-07 6:50 ` [PATCH v2 4/4] riscv: dts: spacemit: k1-bananapi-f3: Add vin-supply for PCIe 3.3V regulator Chukun Pan 1 sibling, 1 reply; 17+ messages in thread From: Chukun Pan @ 2026-05-07 6:50 UTC (permalink / raw) To: linux.amoon Cc: alex, amadeus, aou, conor+dt, devicetree, dlan, gaohan, huang.ze, krzk+dt, linux-kernel, linux-riscv, palmer, pjw, robh, spacemit Hi, > usb3_hub_5v: regulator-usb3-hub-5v { > compatible = "regulator-fixed"; > - regulator-name = "USB30_HUB"; > + regulator-name = "VCC5V0_HUB"; Suggested changes: vcc5v0_hub: regulator-vcc5v0-hub { compatible = "regulator-fixed"; regulator-name = "vcc5v0_hub"; > regulator-min-microvolt = <5000000>; > regulator-max-microvolt = <5000000>; > + regulator-always-on; Why always on? > @@ -361,6 +362,7 @@ &usb_dwc3 { > dr_mode = "host"; > #address-cells = <1>; > #size-cells = <0>; > + vbus-supply = <&usb3_hub_5v>; > status = "okay"; This is incorrect. See the previous reply. _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v2 3/4] riscv: dts: spacemit: k1-bananapi-f3: Correct USB hub power hierarchy 2026-05-07 6:50 ` Chukun Pan @ 2026-05-08 7:38 ` Anand Moon 0 siblings, 0 replies; 17+ messages in thread From: Anand Moon @ 2026-05-08 7:38 UTC (permalink / raw) To: Chukun Pan Cc: alex, aou, conor+dt, devicetree, dlan, gaohan, huang.ze, krzk+dt, linux-kernel, linux-riscv, palmer, pjw, robh, spacemit Hi Chukun, Thanks for your review comments. On Thu, 7 May 2026 at 12:20, Chukun Pan <amadeus@jmu.edu.cn> wrote: > > Hi, > > > usb3_hub_5v: regulator-usb3-hub-5v { > > compatible = "regulator-fixed"; > > - regulator-name = "USB30_HUB"; > > + regulator-name = "VCC5V0_HUB"; > > Suggested changes: > vcc5v0_hub: regulator-vcc5v0-hub { > compatible = "regulator-fixed"; > regulator-name = "vcc5v0_hub"; > Ok will update this if there is a positive response. > > regulator-min-microvolt = <5000000>; > > regulator-max-microvolt = <5000000>; > > + regulator-always-on; > > Why always on? The driver side does not manage enabling / disabling this regulator. > > > @@ -361,6 +362,7 @@ &usb_dwc3 { > > dr_mode = "host"; > > #address-cells = <1>; > > #size-cells = <0>; > > + vbus-supply = <&usb3_hub_5v>; > > status = "okay"; > > This is incorrect. See the previous reply. I replied in the previous email. Thanks -Anand _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v2 4/4] riscv: dts: spacemit: k1-bananapi-f3: Add vin-supply for PCIe 3.3V regulator 2026-05-02 5:18 ` [PATCH v2 3/4] riscv: dts: spacemit: k1-bananapi-f3: Correct USB hub power hierarchy Anand Moon 2026-05-07 6:50 ` Chukun Pan @ 2026-05-07 6:50 ` Chukun Pan 1 sibling, 0 replies; 17+ messages in thread From: Chukun Pan @ 2026-05-07 6:50 UTC (permalink / raw) To: linux.amoon Cc: alex, amadeus, aou, conor+dt, devicetree, dlan, gaohan, huang.ze, krzk+dt, linux-kernel, linux-riscv, palmer, pjw, robh, spacemit Hi, > @@ -39,6 +39,7 @@ pcie_vcc_3v3: regulator-pcie-vcc3v3 { > regulator-min-microvolt = <3300000>; > regulator-max-microvolt = <3300000>; > regulator-always-on; > + vin-supply = <®_vcc5v0_sys>; > }; This is incorrect. pcie_vcc3v3 is driven by usbvbus (dc_in). _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH v2 4/4] riscv: dts: spacemit: k1-bananapi-f3: Add vin-supply for PCIe 3.3V regulator 2026-05-02 5:18 [PATCH v2 0/4] spacemit: k1-bananapi-f3: Fix the power source of USB3 nodes Anand Moon ` (2 preceding siblings ...) 2026-05-02 5:18 ` [PATCH v2 3/4] riscv: dts: spacemit: k1-bananapi-f3: Correct USB hub power hierarchy Anand Moon @ 2026-05-02 5:18 ` Anand Moon 2026-05-08 7:43 ` Anand Moon 3 siblings, 1 reply; 17+ messages in thread From: Anand Moon @ 2026-05-02 5:18 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yixun Lan, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list:RISC-V SPACEMIT SoC Support, open list:RISC-V SPACEMIT SoC Support, open list Cc: Han Gao, Chukun Pan, Ze Huang The PCIe 3.3V fixed regulator node (pcie_vcc_3v3) lacked a parent supply reference. Wire it to the 5V system rail (reg_vcc5v0_sys) via the vin-supply property to reflect the actual board power tree. This ensures correct regulator hierarchy in DTS and allows drivers to resolve supply dependencies cleanly during probe. Cc: Han Gao <gaohan@iscas.ac.cn> Cc: Ze Huang <huang.ze@linux.dev> Cc: Chukun Pan <amadeus@jmu.edu.cn> Signed-off-by: Anand Moon <linux.amoon@gmail.com> --- v2: new patch in this series. --- arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts index 3dbdf53b6d8e..6c06480ba100 100644 --- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts +++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts @@ -39,6 +39,7 @@ pcie_vcc_3v3: regulator-pcie-vcc3v3 { regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; + vin-supply = <®_vcc5v0_sys>; }; reg_dc_in: regulator-dc-in-12v { -- 2.50.1 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: [PATCH v2 4/4] riscv: dts: spacemit: k1-bananapi-f3: Add vin-supply for PCIe 3.3V regulator 2026-05-02 5:18 ` Anand Moon @ 2026-05-08 7:43 ` Anand Moon 0 siblings, 0 replies; 17+ messages in thread From: Anand Moon @ 2026-05-08 7:43 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yixun Lan, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, open list:RISC-V SPACEMIT SoC Support, open list:RISC-V SPACEMIT SoC Support, open list Cc: Han Gao, Ze Huang, Chukun Pan Hi All, On Sat, 2 May 2026 at 10:49, Anand Moon <linux.amoon@gmail.com> wrote: > > The PCIe 3.3V fixed regulator node (pcie_vcc_3v3) lacked a parent > supply reference. Wire it to the 5V system rail (reg_vcc5v0_sys) > via the vin-supply property to reflect the actual board power tree. > This ensures correct regulator hierarchy in DTS and allows drivers > to resolve supply dependencies cleanly during probe. > Plese check power tree page 4 USBVBUS->SY8386J UXXX -> PCIE_VCC3V3 for pcie vin source USBVBUS is power source from the typec port. Thanks -Anand > Cc: Han Gao <gaohan@iscas.ac.cn> > Cc: Ze Huang <huang.ze@linux.dev> > Cc: Chukun Pan <amadeus@jmu.edu.cn> > Signed-off-by: Anand Moon <linux.amoon@gmail.com> > --- > v2: new patch in this series. > --- > arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > index 3dbdf53b6d8e..6c06480ba100 100644 > --- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > +++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts > @@ -39,6 +39,7 @@ pcie_vcc_3v3: regulator-pcie-vcc3v3 { > regulator-min-microvolt = <3300000>; > regulator-max-microvolt = <3300000>; > regulator-always-on; > + vin-supply = <®_vcc5v0_sys>; > }; > > reg_dc_in: regulator-dc-in-12v { > -- > 2.50.1 > _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv ^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2026-05-11 9:54 UTC | newest] Thread overview: 17+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-05-02 5:18 [PATCH v2 0/4] spacemit: k1-bananapi-f3: Fix the power source of USB3 nodes Anand Moon 2026-05-02 5:18 ` [PATCH v2 1/4] riscv: dts: spacemit: k1-bananapi-f3: Add vcc5v0_sys regulator for Banana Pi F3 Anand Moon 2026-05-07 2:45 ` Yixun Lan 2026-05-08 7:36 ` Anand Moon 2026-05-09 12:18 ` Yixun Lan 2026-05-09 15:18 ` Anand Moon 2026-05-11 6:53 ` Yixun Lan 2026-05-11 9:53 ` Anand Moon 2026-05-02 5:18 ` [PATCH v2 2/4] riscv: dts: spacemit: k1-bananapi-f3: Update USB regulator on onboard usb and label Anand Moon 2026-05-07 6:40 ` Chukun Pan 2026-05-08 7:36 ` Anand Moon 2026-05-02 5:18 ` [PATCH v2 3/4] riscv: dts: spacemit: k1-bananapi-f3: Correct USB hub power hierarchy Anand Moon 2026-05-07 6:50 ` Chukun Pan 2026-05-08 7:38 ` Anand Moon 2026-05-07 6:50 ` [PATCH v2 4/4] riscv: dts: spacemit: k1-bananapi-f3: Add vin-supply for PCIe 3.3V regulator Chukun Pan 2026-05-02 5:18 ` Anand Moon 2026-05-08 7:43 ` Anand Moon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox