Skip to contentSkip to conversation

rockchip: rv1126: Migrate to OF_UPSTREAM

PATCH Superseded Anand Moon 2 participants 4 messages May 9, 2024

Subsystems (3)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Anand Moon

author
#0 lore raw

PATCH 1/1 rockchip: rv1126: Migrate to OF_UPSTREAM

Migrate RV1126 boards that exists in Linux v6.8 to use OF_UPSTREAM.

Following targets is not migrated to use OF_UPSTREAM:
- rv1126-edgeble-neu2 : Board is an industrial form factor IO board.
- sonoff-ihost-rv1126 : Gateway device designed to provide a Smart Home Hub.

---
Tested on neu2 edgable board.

---
 arch/arm/dts/Makefile                   |   3 -
 arch/arm/dts/rv1126-edgeble-neu2-io.dts | 112 -----
 arch/arm/dts/rv1126-edgeble-neu2.dtsi   | 345 -------------
 arch/arm/dts/rv1126-pinctrl.dtsi        | 341 -------------
 arch/arm/dts/rv1126-sonoff-ihost.dts    |  29 --
 arch/arm/dts/rv1126-sonoff-ihost.dtsi   | 404 ---------------
 arch/arm/dts/rv1126.dtsi                | 623 ------------------------
 arch/arm/mach-rockchip/Kconfig          |   1 +
 configs/neu2-io-rv1126_defconfig        |   2 +-
 configs/sonoff-ihost-rv1126_defconfig   |   2 +-
 10 files changed, 3 insertions(+), 1859 deletions(-)
 delete mode 100644 arch/arm/dts/rv1126-edgeble-neu2-io.dts
 delete mode 100644 arch/arm/dts/rv1126-edgeble-neu2.dtsi
 delete mode 100644 arch/arm/dts/rv1126-pinctrl.dtsi
 delete mode 100644 arch/arm/dts/rv1126-sonoff-ihost.dts
 delete mode 100644 arch/arm/dts/rv1126-sonoff-ihost.dtsi
 delete mode 100644 arch/arm/dts/rv1126.dtsi
arch/arm/dts/Makefile +0 -3
index 087645f354..79fc100dce 100644
@@ -97,9 +97,6 @@ dtb-$(CONFIG_ROCKCHIP_RK3368) += \
 	rk3368-geekbox.dtb \
 	rk3368-px5-evb.dtb \
 
-dtb-$(CONFIG_ROCKCHIP_RV1126) += \
-	rv1126-edgeble-neu2-io.dtb
-
 dtb-$(CONFIG_ARCH_S5P4418) += \
 	s5p4418-nanopi2.dtb
 
arch/arm/dts/rv1126-edgeble-neu2-io.dts deleted +0 -112

112 lines not on this page · raw message

arch/arm/dts/rv1126-edgeble-neu2.dtsi deleted +0 -345

345 lines not on this page · raw message

arch/arm/dts/rv1126-pinctrl.dtsi deleted +0 -341

341 lines not on this page · raw message

arch/arm/dts/rv1126-sonoff-ihost.dts deleted +0 -29
deleted file mode 100644
index 77386a48d8..0000000000
@@ -1,29 +0,0 @@
-// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
-/*
- * Copyright (c) 2020 Rockchip Electronics Co., Ltd.
- */
-
-/dts-v1/;
-#include "rv1126.dtsi"
-#include "rv1126-sonoff-ihost.dtsi"
-
-/ {
-	model = "Sonoff iHost 4G";
-	compatible = "itead,sonoff-ihost", "rockchip,rv1126";
-};
-
-&cpu0 {
-	cpu-supply = <&vdd_arm>;
-};
-
-&cpu1 {
-	cpu-supply = <&vdd_arm>;
-};
-
-&cpu2 {
-	cpu-supply = <&vdd_arm>;
-};
-
-&cpu3 {
-	cpu-supply = <&vdd_arm>;
-};
arch/arm/dts/rv1126-sonoff-ihost.dtsi deleted +0 -404

404 lines not on this page · raw message

arch/arm/dts/rv1126.dtsi deleted +0 -623

623 lines not on this page · raw message

arch/arm/mach-rockchip/Kconfig +1 -0
index ec3697f358..661e7fd1c9 100644
@@ -427,6 +427,7 @@ config ROCKCHIP_RV1126
 	imply SPL_ROCKCHIP_COMMON_BOARD
 	imply SPL_SERIAL
 	imply SPL_SYSCON
+	imply OF_UPSTREAM
 
 config ROCKCHIP_USB_UART
 	bool "Route uart output to usb pins"
configs/neu2-io-rv1126_defconfig +1 -1
index dc27b9e6fe..2a4c9b45a0 100644
@@ -5,7 +5,7 @@ CONFIG_COUNTER_FREQUENCY=24000000
 CONFIG_SYS_ARCH_TIMER=y
 CONFIG_ARCH_ROCKCHIP=y
 CONFIG_NR_DRAM_BANKS=1
-CONFIG_DEFAULT_DEVICE_TREE="rv1126-edgeble-neu2-io"
+CONFIG_DEFAULT_DEVICE_TREE="rockchip/rv1126-edgeble-neu2-io"
 CONFIG_SYS_MONITOR_LEN=614400
 CONFIG_ROCKCHIP_RV1126=y
 CONFIG_TARGET_RV1126_NEU2=y
configs/sonoff-ihost-rv1126_defconfig +1 -1
index dfc71b1397..4890644c7e 100644
@@ -5,7 +5,7 @@ CONFIG_COUNTER_FREQUENCY=24000000
 CONFIG_SYS_ARCH_TIMER=y
 CONFIG_ARCH_ROCKCHIP=y
 CONFIG_NR_DRAM_BANKS=2
-CONFIG_DEFAULT_DEVICE_TREE="rv1126-sonoff-ihost"
+CONFIG_DEFAULT_DEVICE_TREE="rockchip/rv1126-sonoff-ihost"
 CONFIG_SYS_MONITOR_LEN=614400
 CONFIG_ROCKCHIP_RV1126=y
 CONFIG_TARGET_RV1126_SONOFF_IHOST=y
Signature · 1 line
2.44.0
#1 lore raw

Hi,

Quoted 3 lines · Anand Moon

Migrate RV1126 boards that exists in Linux v6.8 to use OF_UPSTREAM.

Following targets is not migrated to use OF_UPSTREAM:

At first I got a little bit confused about the "not migrated", but see now that these are the boards that is migrated.

Quoted 20 lines

- rv1126-edgeble-neu2 : Board is an industrial form factor IO board.
- sonoff-ihost-rv1126 : Gateway device designed to provide a Smart Home Hub.

---
Tested on neu2 edgable board.

---
 arch/arm/dts/Makefile                   |   3 -
 arch/arm/dts/rv1126-edgeble-neu2-io.dts | 112 -----
 arch/arm/dts/rv1126-edgeble-neu2.dtsi   | 345 -------------
 arch/arm/dts/rv1126-pinctrl.dtsi        | 341 -------------
 arch/arm/dts/rv1126-sonoff-ihost.dts    |  29 --
 arch/arm/dts/rv1126-sonoff-ihost.dtsi   | 404 ---------------
 arch/arm/dts/rv1126.dtsi                | 623 ------------------------
 arch/arm/mach-rockchip/Kconfig          |   1 +
 configs/neu2-io-rv1126_defconfig        |   2 +-
Quoted 8 lines
 configs/sonoff-ihost-rv1126_defconfig   |   2 +-
 10 files changed, 3 insertions(+), 1859 deletions(-)
 delete mode 100644 arch/arm/dts/rv1126-edgeble-neu2-io.dts
 delete mode 100644 arch/arm/dts/rv1126-edgeble-neu2.dtsi
 delete mode 100644 arch/arm/dts/rv1126-pinctrl.dtsi
 delete mode 100644 arch/arm/dts/rv1126-sonoff-ihost.dts
 delete mode 100644 arch/arm/dts/rv1126-sonoff-ihost.dtsi
 delete mode 100644 arch/arm/dts/rv1126.dtsi

Following should also be removed:
- include/dt-bindings/clock/rockchip,rv1126-cru.h
- include/dt-bindings/power/rockchip,rv1126-power.h

Side note, following is remaining after the rv1108 migration and should probably also be removed:
- include/dt-bindings/clock/rv1108-cru.h

Regards,
Jonas

author
#2 lore raw

Hi Jonas

Quoted 8 lines · Jonas Karlman

Hi,

Quoted 3 lines · Anand Moon

Migrate RV1126 boards that exists in Linux v6.8 to use OF_UPSTREAM.

Following targets is not migrated to use OF_UPSTREAM:

Ok, will update the commit message in the future.

Quoted 32 lines

At first I got a little bit confused about the "not migrated", but see now that these are the boards that is migrated.

Quoted 20 lines

- rv1126-edgeble-neu2 : Board is an industrial form factor IO board.
- sonoff-ihost-rv1126 : Gateway device designed to provide a Smart Home Hub.

---
Tested on neu2 edgable board.

---
 arch/arm/dts/Makefile                   |   3 -
 arch/arm/dts/rv1126-edgeble-neu2-io.dts | 112 -----
 arch/arm/dts/rv1126-edgeble-neu2.dtsi   | 345 -------------
 arch/arm/dts/rv1126-pinctrl.dtsi        | 341 -------------
 arch/arm/dts/rv1126-sonoff-ihost.dts    |  29 --
 arch/arm/dts/rv1126-sonoff-ihost.dtsi   | 404 ---------------
 arch/arm/dts/rv1126.dtsi                | 623 ------------------------
 arch/arm/mach-rockchip/Kconfig          |   1 +
 configs/neu2-io-rv1126_defconfig        |   2 +-
Quoted 8 lines
 configs/sonoff-ihost-rv1126_defconfig   |   2 +-
 10 files changed, 3 insertions(+), 1859 deletions(-)
 delete mode 100644 arch/arm/dts/rv1126-edgeble-neu2-io.dts
 delete mode 100644 arch/arm/dts/rv1126-edgeble-neu2.dtsi
 delete mode 100644 arch/arm/dts/rv1126-pinctrl.dtsi
 delete mode 100644 arch/arm/dts/rv1126-sonoff-ihost.dts
 delete mode 100644 arch/arm/dts/rv1126-sonoff-ihost.dtsi
 delete mode 100644 arch/arm/dts/rv1126.dtsi
Quoted 8 lines

Following should also be removed:
- include/dt-bindings/clock/rockchip,rv1126-cru.h
- include/dt-bindings/power/rockchip,rv1126-power.h

Side note, following is remaining after the rv1108 migration and should probably also be removed:
- include/dt-bindings/clock/rv1108-cru.h

I will check if any drivers are using this if not I will remove them. will address this in V2.

Quoted 2 lines

Regards,
Jonas

Thanks
-Anand

#3 lore raw

Hi Anand,

Quoted 50 lines · Anand Moon

Hi Jonas

Quoted 8 lines · Jonas Karlman

Hi,

Quoted 3 lines · Anand Moon

Migrate RV1126 boards that exists in Linux v6.8 to use OF_UPSTREAM.

Following targets is not migrated to use OF_UPSTREAM:

Ok, will update the commit message in the future.

Quoted 36 lines

At first I got a little bit confused about the "not migrated", but see now that these are the boards that is migrated.

Quoted 20 lines

- rv1126-edgeble-neu2 : Board is an industrial form factor IO board.
- sonoff-ihost-rv1126 : Gateway device designed to provide a Smart Home Hub.

---
Tested on neu2 edgable board.

---
 arch/arm/dts/Makefile                   |   3 -
 arch/arm/dts/rv1126-edgeble-neu2-io.dts | 112 -----
 arch/arm/dts/rv1126-edgeble-neu2.dtsi   | 345 -------------
 arch/arm/dts/rv1126-pinctrl.dtsi        | 341 -------------
 arch/arm/dts/rv1126-sonoff-ihost.dts    |  29 --
 arch/arm/dts/rv1126-sonoff-ihost.dtsi   | 404 ---------------
 arch/arm/dts/rv1126.dtsi                | 623 ------------------------
 arch/arm/mach-rockchip/Kconfig          |   1 +
 configs/neu2-io-rv1126_defconfig        |   2 +-
Quoted 8 lines
 configs/sonoff-ihost-rv1126_defconfig   |   2 +-
 10 files changed, 3 insertions(+), 1859 deletions(-)
 delete mode 100644 arch/arm/dts/rv1126-edgeble-neu2-io.dts
 delete mode 100644 arch/arm/dts/rv1126-edgeble-neu2.dtsi
 delete mode 100644 arch/arm/dts/rv1126-pinctrl.dtsi
 delete mode 100644 arch/arm/dts/rv1126-sonoff-ihost.dts
 delete mode 100644 arch/arm/dts/rv1126-sonoff-ihost.dtsi
 delete mode 100644 arch/arm/dts/rv1126.dtsi

Following should also be removed:
- include/dt-bindings/clock/rockchip,rv1126-cru.h
- include/dt-bindings/power/rockchip,rv1126-power.h

Quoted 7 lines
Quoted 4 lines

Side note, following is remaining after the rv1108 migration and should probably also be removed:
- include/dt-bindings/clock/rv1108-cru.h

I will check if any drivers are using this if not I will remove them. will address this in V2.

After migration to OF_UPSTREAM any related dt-bindings include must be removed from include/dt-bindings/ or the upstream include files cannot be included from dts/upstream/include/dt-bindings/.

Fabio just sent a fix for rv1108-cru.h, thanks!

Please remove the two rv1126 include/dt-bindings/ files in v2.

Regards,
Jonas

Quoted 6 lines
Quoted 3 lines

Regards,
Jonas

Thanks
-Anand