rockchip: rv1126: Migrate to OF_UPSTREAM
Subsystems (3)
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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.Cc Tim Lunn <[email protected]>Cc Jagan Teki <[email protected]>Signed-off-by Anand Moon <[email protected]>---
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
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.Cc Tim Lunn <[email protected]>Cc Jagan Teki <[email protected]>Signed-off-by Anand Moon <[email protected]>---
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.hSide 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
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.Cc Tim Lunn <[email protected]>Cc Jagan Teki <[email protected]>Signed-off-by Anand Moon <[email protected]>---
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.dtsiFollowing 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.hI 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,
JonasThanks
-Anand