public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v8 0/3] riscv: dts: spacemit: Add PMIC regulators usb pcie
@ 2026-04-03 12:51 Han Gao
  2026-04-03 12:51 ` [PATCH v8 1/3] riscv: dts: spacemit: Enable i2c8 adapter for OrangePi RV2 Han Gao
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Han Gao @ 2026-04-03 12:51 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Yixun Lan, Chukun Pan
  Cc: devicetree, linux-riscv, spacemit, linux-kernel, Han Gao, Han Gao

Changes in v7:
 - patch 3:
   rename usb_dwc3 from vdd-supply to vbus-supply
 - Link to v7: https://lore.kernel.org/linux-riscv/cover.1775219669.git.gaohan@iscas.ac.cn

Changes in v6:
 - patch 1:
   reorder i2c8
 - patch 3:
   restore vcc5v0_usb30
   remove vin-supply from pcie_vcc3v3
   restore vpcie3v3-supply from pcie2
   update hub vdd-supply
 - Link to v6: https://lore.kernel.org/linux-riscv/cover.1775214644.git.gaohan@iscas.ac.cn/

Changes in v5:
 - patch 2:
   restore floating nodes and mark as 'not connected'
 - patch 3:
   remove vcc5v0_usb30
   reorder pcie_vcc3v3 and add vin-supply
   remove redundant vpcie3v3-supply from pcie2
   update hub vdd-supply based on Chukun's patch
 - Link to v5: https://lore.kernel.org/linux-riscv/cover.1775148159.git.gaohan@iscas.ac.cn/

Han Gao (3):
  riscv: dts: spacemit: Enable i2c8 adapter for OrangePi RV2
  riscv: dts: spacemit: Define the P1 PMIC regulators for OrangePi RV2
  riscv: dts: spacemit: Enable USB3.0/PCIe on OrangePi RV2

 .../boot/dts/spacemit/k1-orangepi-rv2.dts     | 218 ++++++++++++++++++
 1 file changed, 218 insertions(+)


base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
prerequisite-patch-id: ef6e9c7b5854d0c08066b72f9a7868db8c2140eb
prerequisite-patch-id: cfe3800f8c791ec4c63e070af9628e88e0fc31b9
prerequisite-patch-id: b76493e625ae257c8adcd67874178458420e4d47
prerequisite-patch-id: 88e01dc92c83bd88ddeb78891d3088209fed8d6b
prerequisite-patch-id: 60336d10ab8322c70596d0f046b6b5c54bb24b54
prerequisite-patch-id: 68c4d869548687dc115dd91e2ffb8f4c11482d86
prerequisite-patch-id: fdadcf964c2cb3406160edb579d99a8d5695f8e6
prerequisite-patch-id: 73b9e745338b0499b849fa4f7f9508987ab39a59
prerequisite-patch-id: cd26770c2160c3c31a406bd8a6b01ab666180ae0
prerequisite-patch-id: e5dfddc32cefae195692da8b80e19adf086e4ad7
prerequisite-patch-id: 7fd53cbe4977598f26148a4bb1cf692bbdb79a09
prerequisite-patch-id: 96ebac57bb29619b97fe95422206a685825618e9
prerequisite-patch-id: 00fac16b52f60383db3140e2885f3f7f8d14dd1a
prerequisite-patch-id: 3b7a60047b922c48e93599f621cb738856f42354
prerequisite-patch-id: 275c030b963be05dd1041451f539a130ce614277
prerequisite-patch-id: 93963424b0871e64276af0e0b2199b52e29b4603
prerequisite-patch-id: 8383188b1c01ed6280629faaa29c37d699ade241
prerequisite-patch-id: 5f8126b912b924d63d4a1e0c5eb42d212eb0d369
prerequisite-patch-id: e80af628a2e0b5f2eeb3cb1b5e7133d08bdd2c4e
prerequisite-patch-id: 0234a6dca15eb91f98a45a46604ce5b4935048a5
-- 
2.47.3


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v8 1/3] riscv: dts: spacemit: Enable i2c8 adapter for OrangePi RV2
  2026-04-03 12:51 [PATCH v8 0/3] riscv: dts: spacemit: Add PMIC regulators usb pcie Han Gao
@ 2026-04-03 12:51 ` Han Gao
  2026-04-03 12:51 ` [PATCH v8 2/3] riscv: dts: spacemit: Define the P1 PMIC regulators " Han Gao
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Han Gao @ 2026-04-03 12:51 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Yixun Lan, Chukun Pan
  Cc: devicetree, linux-riscv, spacemit, linux-kernel, Han Gao, Han Gao

The adapter is used to access the SpacemiT P1 PMIC present in this board.

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
---
 arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
index 7b7331cb3c72..57ec1cc32b03 100644
--- a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
+++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
@@ -87,6 +87,12 @@ &pdma {
 	status = "okay";
 };
 
+&i2c8 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c8_cfg>;
+	status = "okay";
+};
+
 &uart0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_2_cfg>;
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v8 2/3] riscv: dts: spacemit: Define the P1 PMIC regulators for OrangePi RV2
  2026-04-03 12:51 [PATCH v8 0/3] riscv: dts: spacemit: Add PMIC regulators usb pcie Han Gao
  2026-04-03 12:51 ` [PATCH v8 1/3] riscv: dts: spacemit: Enable i2c8 adapter for OrangePi RV2 Han Gao
@ 2026-04-03 12:51 ` Han Gao
  2026-04-03 12:51 ` [PATCH v8 3/3] riscv: dts: spacemit: Enable USB3.0/PCIe on " Han Gao
  2026-04-04 20:16 ` [PATCH v8 0/3] riscv: dts: spacemit: Add PMIC regulators usb pcie Vincent Legoll
  3 siblings, 0 replies; 5+ messages in thread
From: Han Gao @ 2026-04-03 12:51 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Yixun Lan, Chukun Pan
  Cc: devicetree, linux-riscv, spacemit, linux-kernel, Han Gao, Han Gao

Define the DC power input and the 4v power as fixed regulator supplies.

Define the SpacemiT P1 PMIC voltage regulators and their constraints.

Co-developed-by: Chukun Pan <amadeus@jmu.edu.cn>
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
---
 .../boot/dts/spacemit/k1-orangepi-rv2.dts     | 131 ++++++++++++++++++
 1 file changed, 131 insertions(+)

diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
index 57ec1cc32b03..f7a1dadaa95f 100644
--- a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
+++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
@@ -23,6 +23,25 @@ chosen {
 		stdout-path = "serial0";
 	};
 
+	vcc_5v0: regulator-vcc-5v0 {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc_5v0";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+	};
+
+	vcc4v0: regulator-vcc4v0 {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc4v0";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <4000000>;
+		regulator-max-microvolt = <4000000>;
+		vin-supply = <&vcc_5v0>;
+	};
+
 	leds {
 		compatible = "gpio-leds";
 
@@ -91,6 +110,118 @@ &i2c8 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&i2c8_cfg>;
 	status = "okay";
+
+	pmic@41 {
+		compatible = "spacemit,p1";
+		reg = <0x41>;
+		interrupts = <64>;
+		vin1-supply = <&vcc4v0>;
+		vin2-supply = <&vcc4v0>;
+		vin3-supply = <&vcc4v0>;
+		vin4-supply = <&vcc4v0>;
+		vin5-supply = <&vcc4v0>;
+		vin6-supply = <&vcc4v0>;
+		aldoin-supply = <&vcc4v0>;
+		dldoin1-supply = <&buck5>;
+		dldoin2-supply = <&buck5>;
+
+		regulators {
+			buck1 {
+				regulator-min-microvolt = <500000>;
+				regulator-max-microvolt = <3450000>;
+				regulator-ramp-delay = <5000>;
+				regulator-always-on;
+			};
+
+			buck2 {
+				regulator-min-microvolt = <500000>;
+				regulator-max-microvolt = <3450000>;
+				regulator-ramp-delay = <5000>;
+				regulator-always-on;
+			};
+
+			buck3_1v8: buck3 {
+				regulator-min-microvolt = <500000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-ramp-delay = <5000>;
+				regulator-always-on;
+			};
+
+			buck4_3v3: buck4 {
+				regulator-min-microvolt = <500000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-ramp-delay = <5000>;
+				regulator-always-on;
+			};
+
+			buck5: buck5 {
+				regulator-min-microvolt = <500000>;
+				regulator-max-microvolt = <3450000>;
+				regulator-ramp-delay = <5000>;
+				regulator-always-on;
+			};
+
+			buck6 {
+				regulator-min-microvolt = <500000>;
+				regulator-max-microvolt = <3450000>;
+				regulator-ramp-delay = <5000>;
+				regulator-always-on;
+			};
+
+			aldo1 {
+				regulator-min-microvolt = <500000>;
+				regulator-max-microvolt = <3400000>;
+				regulator-boot-on;
+			};
+
+			aldo2 {
+				/* not connected */
+			};
+
+			aldo3 {
+				/* not connected */
+			};
+
+			aldo4 {
+				/* not connected */
+			};
+
+			dldo1 {
+				regulator-min-microvolt = <500000>;
+				regulator-max-microvolt = <3400000>;
+				regulator-boot-on;
+			};
+
+			dldo2 {
+				/* not connected */
+			};
+
+			dldo3 {
+				/* not connected */
+			};
+
+			dldo4 {
+				regulator-min-microvolt = <500000>;
+				regulator-max-microvolt = <3400000>;
+				regulator-always-on;
+			};
+
+			dldo5 {
+				regulator-min-microvolt = <500000>;
+				regulator-max-microvolt = <3400000>;
+			};
+
+			dldo6 {
+				regulator-min-microvolt = <500000>;
+				regulator-max-microvolt = <3400000>;
+				regulator-always-on;
+			};
+
+			dldo7 {
+				/* not connected */
+			};
+		};
+	};
 };
 
 &uart0 {
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v8 3/3] riscv: dts: spacemit: Enable USB3.0/PCIe on OrangePi RV2
  2026-04-03 12:51 [PATCH v8 0/3] riscv: dts: spacemit: Add PMIC regulators usb pcie Han Gao
  2026-04-03 12:51 ` [PATCH v8 1/3] riscv: dts: spacemit: Enable i2c8 adapter for OrangePi RV2 Han Gao
  2026-04-03 12:51 ` [PATCH v8 2/3] riscv: dts: spacemit: Define the P1 PMIC regulators " Han Gao
@ 2026-04-03 12:51 ` Han Gao
  2026-04-04 20:16 ` [PATCH v8 0/3] riscv: dts: spacemit: Add PMIC regulators usb pcie Vincent Legoll
  3 siblings, 0 replies; 5+ messages in thread
From: Han Gao @ 2026-04-03 12:51 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Yixun Lan, Chukun Pan
  Cc: devicetree, linux-riscv, spacemit, linux-kernel, Han Gao, Han Gao

Enable the DWC3 USB 3.0 controller and its associated usbphy2 on the
OrangePi RV2 board.

The board utilizes a Genesys Logic GL3523 USB3.0 hub.

Define a 3.3v fixed voltage regulator for PCIe and enable PCIe and
PHY-related Device Tree nodes for the OrangePi RV2.

Co-developed-by: Chukun Pan <amadeus@jmu.edu.cn>
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
---
 .../boot/dts/spacemit/k1-orangepi-rv2.dts     | 81 +++++++++++++++++++
 1 file changed, 81 insertions(+)

diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
index f7a1dadaa95f..5b331bf987db 100644
--- a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
+++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
@@ -23,6 +23,15 @@ chosen {
 		stdout-path = "serial0";
 	};
 
+	pcie_vcc3v3: regulator-pcie-vcc3v3 {
+		compatible = "regulator-fixed";
+		enable-active-high;
+		gpios = <&gpio K1_GPIO(116) GPIO_ACTIVE_HIGH>;
+		regulator-name = "pcie_vcc3v3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+	};
+
 	vcc_5v0: regulator-vcc-5v0 {
 		compatible = "regulator-fixed";
 		regulator-name = "vcc_5v0";
@@ -42,6 +51,16 @@ vcc4v0: regulator-vcc4v0 {
 		vin-supply = <&vcc_5v0>;
 	};
 
+	vcc5v0_usb30: regulator-vcc5v0-usb30 {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc5v0_usb30";
+		enable-active-high;
+		gpios = <&gpio K1_GPIO(123) GPIO_ACTIVE_HIGH>;
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		vin-supply = <&vcc_5v0>;
+	};
+
 	leds {
 		compatible = "gpio-leds";
 
@@ -54,6 +73,10 @@ led1 {
 	};
 };
 
+&combo_phy {
+	status = "okay";
+};
+
 &eth0 {
 	phy-handle = <&rgmii0>;
 	phy-mode = "rgmii-id";
@@ -224,8 +247,66 @@ dldo7 {
 	};
 };
 
+&pcie1_phy {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pcie1_3_cfg>;
+	status = "okay";
+};
+
+&pcie1_port {
+	phys = <&pcie1_phy>;
+	vpcie3v3-supply = <&pcie_vcc3v3>;
+};
+
+&pcie1 {
+	vpcie3v3-supply = <&pcie_vcc3v3>;
+	status = "okay";
+};
+
+&pcie2_phy {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pcie2_4_cfg>;
+	status = "okay";
+};
+
+&pcie2_port {
+	phys = <&pcie2_phy>;
+	vpcie3v3-supply = <&pcie_vcc3v3>;
+};
+
+&pcie2 {
+	vpcie3v3-supply = <&pcie_vcc3v3>;
+	status = "okay";
+};
+
 &uart0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_2_cfg>;
 	status = "okay";
 };
+
+&usbphy2 {
+	status = "okay";
+};
+
+&usb_dwc3 {
+	dr_mode = "host";
+	#address-cells = <1>;
+	#size-cells = <0>;
+	vbus-supply = <&vcc5v0_usb30>;
+	status = "okay";
+
+	hub_2_0: hub@1 {
+		compatible = "usb5e3,610";
+		reg = <0x1>;
+		peer-hub = <&hub_3_0>;
+		vdd-supply = <&vcc_5v0>;
+	};
+
+	hub_3_0: hub@2 {
+		compatible = "usb5e3,620";
+		reg = <0x2>;
+		peer-hub = <&hub_2_0>;
+		vdd-supply = <&vcc_5v0>;
+	};
+};
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v8 0/3] riscv: dts: spacemit: Add PMIC regulators usb pcie
  2026-04-03 12:51 [PATCH v8 0/3] riscv: dts: spacemit: Add PMIC regulators usb pcie Han Gao
                   ` (2 preceding siblings ...)
  2026-04-03 12:51 ` [PATCH v8 3/3] riscv: dts: spacemit: Enable USB3.0/PCIe on " Han Gao
@ 2026-04-04 20:16 ` Vincent Legoll
  3 siblings, 0 replies; 5+ messages in thread
From: Vincent Legoll @ 2026-04-04 20:16 UTC (permalink / raw)
  To: Han Gao
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Yixun Lan, Chukun Pan,
	linux-riscv, spacemit, linux-kernel, Han Gao, Han Gao

[-- Attachment #1: Type: text/plain, Size: 247 bytes --]

Hello Han Gao,


I tested this series applied on top of next-20260403.

It booted properly with rootfs on SATA SSD via USB3 adapter.

So you can add:

Tested-by: Vincent Legoll <legoll@online.fr> # OrangePi-RV2

Find the dmesg attached.

Regards

[-- Attachment #2: dmesg-next-20260403+usb.txt --]
[-- Type: text/plain, Size: 17265 bytes --]

[    0.000000] Booting Linux on hartid 0
[    0.000000] Linux version 7.0.0-rc6-next-20260403-00003-g5f56e5402644 (vince@ryzen) (riscv64-linux-musl-gcc (GCC) 14.2.1 20250405, GNU ld (GNU Binutils) 2.44) #9 SMP PREEMPT Sat Apr  4 19:49:18 CEST 2026
[    0.000000] Machine model: OrangePi RV2
[    0.000000] SBI specification v1.0 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10003
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] efi: UEFI not found.
[    0.000000] OF: reserved mem: 0x000000007f000000..0x000000007fffffff (16384 KiB) map non-reusable framebuffer@7f000000
[    0.000000] OF: reserved mem: 0x0000000000000000..0x000000000007ffff (512 KiB) nomap non-reusable mmode_resv0@0
[    0.000000] SBI HSM extension detected
[    0.000000] riscv: base ISA extensions acdfimv
[    0.000000] riscv: ELF capabilities acdfimv
[    0.000000] Ticket spinlock: enabled
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000007ffff]
[    0.000000]   node   0: [mem 0x0000000000080000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] percpu: Embedded 31 pages/cpu s86744 r8192 d32040 u126976
[    0.000000] pcpu-alloc: s86744 r8192 d32040 u126976 alloc=31*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [0] 6 [0] 7 
[    0.000000] Kernel command line: console=ttyS0,115200 root=PARTUUID=064ce04b-82f2-4d4b-9378-8cb956ade3f6 rw rootwait
[    0.000000] printk: log buffer data + meta data: 131072 + 458752 = 589824 bytes
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 2MB
[    0.000000] software IO TLB: area num 8.
[    0.000000] software IO TLB: mapped [mem 0x000000007b800000-0x000000007ba00000] (2MB)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 524288
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: 	RCU event tracing is enabled.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=8.
[    0.000000] 	Trampoline variant of Tasks RCU enabled.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=8
[    0.000000] RCU Tasks: Setting shift to 3 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=8.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] riscv: providing IPIs using SBI IPI extension
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000001] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000008] riscv-timer: Timer interrupt in S-mode is available via sstc extension
[    0.000264] Console: colour dummy device 80x25
[    0.000313] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000324] pid_max: default: 32768 minimum: 301
[    0.000711] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000724] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.001023] VFS: Finished mounting rootfs on nullfs
[    0.003119] riscv: ELF compat mode unsupported
[    0.003137] ASID allocator using 16 bits (65536 entries)
[    0.003256] rcu: Hierarchical SRCU implementation.
[    0.003260] rcu: 	Max phase no-delay instances is 1000.
[    0.003466] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.003599] EFI services will not be available.
[    0.003990] smp: Bringing up secondary CPUs ...
[    0.008690] smp: Brought up 1 node, 8 CPUs
[    0.009375] Memory: 1994164K/2097152K available (10610K kernel code, 5373K rwdata, 4096K rodata, 2403K init, 391K bss, 96976K reserved, 0K cma-reserved)
[    0.010522] devtmpfs: initialized
[    0.015179] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.015214] posixtimers hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.015310] futex hash table entries: 2048 (131072 bytes on 1 NUMA nodes, total 128 KiB, linear).
[    0.016048] DMI: not present or invalid.
[    0.016476] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.016815] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.016852] audit: initializing netlink subsys (disabled)
[    0.017209] audit: type=2000 audit(0.016:1): state=initialized audit_enabled=0 res=1
[    0.017525] thermal_sys: Registered thermal governor 'step_wise'
[    0.017595] cpuidle: using governor menu
[    0.040170] cpu2: Ratio of byte access time to unaligned word access is 2.47, unaligned accesses are fast
[    0.040178] cpu1: Ratio of byte access time to unaligned word access is 2.38, unaligned accesses are fast
[    0.040178] cpu3: Ratio of byte access time to unaligned word access is 2.43, unaligned accesses are fast
[    0.040178] cpu4: Ratio of byte access time to unaligned word access is 1.68, unaligned accesses are fast
[    0.040178] cpu6: Ratio of byte access time to unaligned word access is 1.64, unaligned accesses are fast
[    0.040178] cpu7: Ratio of byte access time to unaligned word access is 1.67, unaligned accesses are fast
[    0.040178] cpu5: Ratio of byte access time to unaligned word access is 1.68, unaligned accesses are fast
[    0.064211] cpu0: Ratio of byte access time to unaligned word access is 10.56, unaligned accesses are fast
[    0.072786] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.072797] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.072802] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.072804] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[    0.073369] ACPI: Interpreter disabled.
[    0.073617] iommu: Default domain type: Translated
[    0.073622] iommu: DMA domain TLB invalidation policy: strict mode
[    0.085318] SCSI subsystem initialized
[    0.085677] libata version 3.00 loaded.
[    0.085838] usbcore: registered new interface driver usbfs
[    0.085866] usbcore: registered new interface driver hub
[    0.085899] usbcore: registered new device driver usb
[    0.087308] vgaarb: loaded
[    0.087675] clocksource: Switched to clocksource riscv_clocksource
[    0.088286] pnp: PnP ACPI: disabled
[    0.095069] NET: Registered PF_INET protocol family
[    0.095254] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.097271] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.097320] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.097332] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.097426] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[    0.098188] TCP: Hash tables configured (established 16384 bind 16384)
[    0.098345] UDP hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.098634] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.098670] PCI: CLS 0 bytes, default 64
[    0.100008] workingset: timestamp_bits=46 (anon: 42) max_order=19 bucket_order=0 (anon: 0)
[    0.100572] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    0.100796] io scheduler mq-deadline registered
[    0.100804] io scheduler kyber registered
[    0.100843] io scheduler bfq registered
[    0.105482] riscv-plic: interrupt-controller@e0000000: mapped 160 interrupts with 8 handlers for 16 contexts.
[    0.152509] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.160621] loop: module loaded
[    0.163315] usbcore: registered new interface driver rtl8150
[    0.163340] usbcore: registered new device driver r8152-cfgselector
[    0.163368] usbcore: registered new interface driver r8152
[    0.164512] usbcore: registered new interface driver uas
[    0.164547] usbcore: registered new interface driver usb-storage
[    0.164815] mousedev: PS/2 mouse device common for all mice
[    0.166195] usbcore: registered new interface driver usbhid
[    0.166202] usbhid: USB HID core driver
[    0.166466] riscv-pmu-sbi: SBI PMU extension is available
[    0.166495] riscv-pmu-sbi: 16 firmware and 18 hardware counters
[    0.167243] NET: Registered PF_PACKET protocol family
[    0.167286] Key type dns_resolver registered
[    0.192865] printk: legacy console [ttyS0] disabled
[    0.193228] d4017000.serial: ttyS0 at MMIO 0xd4017000 (irq = 14, base_baud = 921600) is a XScale
[    0.193274] printk: legacy console [ttyS0] enabled
[    1.235023] /soc/i2c@d401d800/pmic@41: Fixed dependency cycle(s) with /soc/i2c@d401d800/pmic@41/regulators/buck5
[    1.259538] spacemit-p1-rtc spacemit-p1-rtc.1.auto: registered as rtc0
[    1.264785] spacemit-p1-rtc spacemit-p1-rtc.1.auto: setting system clock to 2026-04-04T19:55:04 UTC (1775332504)
[    1.275606] spacemit-k1-pcie ca400000.pcie: host bridge /soc/pcie-bus/pcie@ca400000 ranges:
[    1.275639] spacemit-k1-pcie ca800000.pcie: host bridge /soc/pcie-bus/pcie@ca800000 ranges:
[    1.277100] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    1.277124] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 1
[    1.277263] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220fe6d hci version 0x110 quirks 0x0000808000000010
[    1.277310] xhci-hcd xhci-hcd.2.auto: irq 19, io mem 0xc0a00000
[    1.277434] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    1.277444] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 2
[    1.277454] xhci-hcd xhci-hcd.2.auto: Host supports USB 3.0 SuperSpeed
[    1.278166] hub 1-0:1.0: USB hub found
[    1.278199] hub 1-0:1.0: 1 port detected
[    1.278528] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.278978] hub 2-0:1.0: USB hub found
[    1.279005] hub 2-0:1.0: 1 port detected
[    1.279780] clk: Disabling unused clocks
[    1.281917] spacemit-k1-pcie ca400000.pcie:       IO 0x009f002000..0x009f101fff -> 0x0000000000
[    1.290220] spacemit-k1-pcie ca800000.pcie:       IO 0x00b7002000..0x00b7101fff -> 0x0000000000
[    1.295664] spacemit-k1-pcie ca400000.pcie:      MEM 0x0090000000..0x009effffff -> 0x0090000000
[    1.303375] spacemit-k1-pcie ca800000.pcie:      MEM 0x00a0000000..0x00afffffff -> 0x00a0000000
[    1.400206] spacemit-k1-pcie ca800000.pcie:      MEM 0x00b0000000..0x00b6ffffff -> 0x00b0000000
[    1.415564] spacemit-k1-pcie ca400000.pcie: iATU: unroll T, 8 ob, 8 ib, align 4K, limit 4G
[    1.511859] spacemit-k1-pcie ca800000.pcie: iATU: unroll T, 8 ob, 8 ib, align 4K, limit 4G
[    1.531692] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    1.725720] hub 1-1:1.0: USB hub found
[    1.727054] hub 1-1:1.0: 4 ports detected
[    1.791832] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
[    1.837692] hub 2-1:1.0: USB hub found
[    1.839111] hub 2-1:1.0: 4 ports detected
[    2.123755] usb 2-1.2: new SuperSpeed USB device number 3 using xhci-hcd
[    2.148818] scsi host0: uas
[    2.153435] scsi 0:0:0:0: Direct-Access     CT240BX5 00SSD1           0    PQ: 0 ANSI: 6
[    2.379698] spacemit-k1-pcie ca400000.pcie: Device found, but not active
[    2.384004] spacemit-k1-pcie ca400000.pcie: PCI host bridge to bus 0001:00
[    2.390640] pci_bus 0001:00: root bus resource [bus 00-ff]
[    2.396095] pci_bus 0001:00: root bus resource [io  0x0000-0xfffff]
[    2.402343] pci_bus 0001:00: root bus resource [mem 0x90000000-0x9effffff]
[    2.409271] pci 0001:00:00.0: [201f:0001] type 01 class 0x060400 PCIe Root Port
[    2.416523] pci 0001:00:00.0: BAR 0 [mem 0x00000000-0x000fffff]
[    2.422397] pci 0001:00:00.0: BAR 1 [mem 0x00000000-0x000fffff]
[    2.428299] pci 0001:00:00.0: PCI bridge to [bus 01-ff]
[    2.433511] pci 0001:00:00.0:   bridge window [io  0x0000-0x0fff]
[    2.439584] pci 0001:00:00.0:   bridge window [mem 0x00000000-0x000fffff]
[    2.446358] pci 0001:00:00.0:   bridge window [mem 0x00000000-0x000fffff 64bit pref]
[    2.454126] pci 0001:00:00.0: supports D1
[    2.458073] pci 0001:00:00.0: PME# supported from D0 D1 D3hot D3cold
[    2.465922] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
[    2.471038] pci 0001:00:00.0: BAR 0 [mem 0x90000000-0x900fffff]: assigned
[    2.477801] pci 0001:00:00.0: BAR 1 [mem 0x90100000-0x901fffff]: assigned
[    2.477811] spacemit-k1-pcie ca800000.pcie: Device found, but not active
[    2.484557] pci 0001:00:00.0: PCI bridge to [bus 01]
[    2.491335] spacemit-k1-pcie ca800000.pcie: PCI host bridge to bus 0002:00
[    2.496188] pci_bus 0001:00: resource 4 [io  0x0000-0xfffff]
[    2.503045] pci_bus 0002:00: root bus resource [bus 00-ff]
[    2.508679] pci_bus 0001:00: resource 5 [mem 0x90000000-0x9effffff]
[    2.520402] pci_bus 0002:00: root bus resource [io  0x100000-0x1fffff] (bus address [0x0000-0xfffff])
[    2.529603] pci_bus 0002:00: root bus resource [mem 0xa0000000-0xafffffff pref]
[    2.536893] pci_bus 0002:00: root bus resource [mem 0xb0000000-0xb6ffffff]
[    2.543815] pci 0002:00:00.0: [1e5d:3003] type 01 class 0x060400 PCIe Root Port
[    2.551060] pci 0002:00:00.0: BAR 0 [mem 0x00000000-0x000fffff]
[    2.556946] pci 0002:00:00.0: BAR 1 [mem 0x00000000-0x000fffff]
[    2.562849] pci 0002:00:00.0: PCI bridge to [bus 01-ff]
[    2.568060] pci 0002:00:00.0:   bridge window [io  0x100000-0x100fff]
[    2.574480] pci 0002:00:00.0:   bridge window [mem 0x00000000-0x000fffff]
[    2.581256] pci 0002:00:00.0:   bridge window [mem 0x00000000-0x000fffff 64bit pref]
[    2.589019] pci 0002:00:00.0: supports D1
[    2.592970] pci 0002:00:00.0: PME# supported from D0 D1 D3hot D3cold
[    2.602023] pci_bus 0002:01: busn_res: [bus 01-ff] end is updated to 01
[    2.606009] pci 0002:00:00.0: BAR 0 [mem 0xb0000000-0xb00fffff]: assigned
[    2.606276] pcieport 0001:00:00.0: PME: Signaling with IRQ 22
[    2.612763] pci 0002:00:00.0: BAR 1 [mem 0xb0100000-0xb01fffff]: assigned
[    2.625285] pci 0002:00:00.0: PCI bridge to [bus 01]
[    2.630216] pci_bus 0002:00: resource 4 [io  0x100000-0x1fffff]
[    2.636116] pci_bus 0002:00: resource 5 [mem 0xa0000000-0xafffffff pref]
[    2.642794] pci_bus 0002:00: resource 6 [mem 0xb0000000-0xb6ffffff]
[    2.649299] pcieport 0002:00:00.0: PME: Signaling with IRQ 23
[   31.711978] aldo1: disabling
[   31.713774] dldo1: disabling
[   33.771697] sd 0:0:0:0: [sda] tag#15 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN 
[   33.777058] sd 0:0:0:0: [sda] tag#15 CDB: opcode=0x9e, sa=0x10 9e 10 00 00 00 00 00 00 00 00 00 00 00 20 00 00
[   33.803709] scsi host0: uas_eh_host_reset_handler start
[   33.875960] usb 2-1.2: reset SuperSpeed USB device number 3 using xhci-hcd
[   33.897897] scsi host0: uas_eh_host_reset_handler success
[   33.924114] sd 0:0:0:0: [sda] 468862128 512-byte logical blocks: (240 GB/224 GiB)
[   33.929089] sd 0:0:0:0: [sda] Write Protect is off
[   33.933733] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[   33.933969] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   33.987822] sd 0:0:0:0: [sda] Preferred minimum I/O size 512 bytes
[   33.991349] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes
[   34.013834]  sda: sda1 sda2
[   34.014403] sd 0:0:0:0: [sda] Attached SCSI disk
[   34.093579] EXT4-fs (sda2): recovery complete
[   34.096282] EXT4-fs (sda2): mounted filesystem 1c6416d7-3949-4642-8160-7b0bf57d2414 r/w with ordered data mode. Quota mode: disabled.
[   34.107399] VFS: Mounted root (ext4 filesystem) on device 8:2.
[   34.113770] devtmpfs: mounted
[   34.116243] VFS: Pivoted into new rootfs
[   34.120680] Freeing unused kernel image (initmem) memory: 2400K
[   34.125943] Run /sbin/init as init process
[   34.129958]   with arguments:
[   34.129962]     /sbin/init
[   34.129966]   with environment:
[   34.129970]     HOME=/
[   34.129973]     TERM=linux
[   34.256321] udevd[154]: starting version 3.2.14
[   35.763700] random: crng init done
[   35.780241] udevd[155]: starting eudev-3.2.14
[   36.052412] EXT4-fs (sda2): re-mounted 1c6416d7-3949-4642-8160-7b0bf57d2414 ro.
[   36.164561] EXT4-fs (sda2): re-mounted 1c6416d7-3949-4642-8160-7b0bf57d2414 r/w.
[   36.271940] YT8531 Gigabit Ethernet cac80000.ethernet:01: attached PHY driver (mii_bus:phy_addr=cac80000.ethernet:01, irq=POLL)
[   36.304572] k1_emac cac80000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   36.335323] udevd[230]: starting version 3.2.14
[   36.353655] udevd[230]: starting eudev-3.2.14

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-04-04 20:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-03 12:51 [PATCH v8 0/3] riscv: dts: spacemit: Add PMIC regulators usb pcie Han Gao
2026-04-03 12:51 ` [PATCH v8 1/3] riscv: dts: spacemit: Enable i2c8 adapter for OrangePi RV2 Han Gao
2026-04-03 12:51 ` [PATCH v8 2/3] riscv: dts: spacemit: Define the P1 PMIC regulators " Han Gao
2026-04-03 12:51 ` [PATCH v8 3/3] riscv: dts: spacemit: Enable USB3.0/PCIe on " Han Gao
2026-04-04 20:16 ` [PATCH v8 0/3] riscv: dts: spacemit: Add PMIC regulators usb pcie Vincent Legoll

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox