Skip to contentSkip to conversation

rockchip: rv1126: Migrate to OF_UPSTREAM

PATCH New Anand Moon 1 participant 1 message May 14, 2024

Subsystems (5)
lore
Share & tools
lore

Anand Moon

author
#0 lore raw

PATCH v4 1/1 rockchip: rv1126: Migrate to OF_UPSTREAM

From: Anand Moon <[email protected]>

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

Following targets is 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.

---
v4: re-submited wit modified From tag
fix the typo in the signed-off

v3: change the Signed off to edgeble id.
collcted Reviewd-By and Tested-By

v2: remove the dt-bindings for clock and power
fix the typo in commit message

---
 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 +-
 .../dt-bindings/clock/rockchip,rv1126-cru.h   | 632 ------------------
 .../dt-bindings/power/rockchip,rv1126-power.h |  35 -
 12 files changed, 3 insertions(+), 2526 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
 delete mode 100644 include/dt-bindings/clock/rockchip,rv1126-cru.h
 delete mode 100644 include/dt-bindings/power/rockchip,rv1126-power.h
arch/arm/dts/Makefile +0 -3
index a5c82ebf7a..f77a80b7dd 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
include/dt-bindings/clock/rockchip,rv1126-cru.h deleted +0 -632

632 lines not on this page · raw message

include/dt-bindings/power/rockchip,rv1126-power.h deleted +0 -35
deleted file mode 100644
index 38a68e000d..0000000000
@@ -1,35 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-
-#ifndef __DT_BINDINGS_POWER_RV1126_POWER_H__
-#define __DT_BINDINGS_POWER_RV1126_POWER_H__
-
-/* VD_CORE */
-#define RV1126_PD_CPU_0		0
-#define RV1126_PD_CPU_1		1
-#define RV1126_PD_CPU_2		2
-#define RV1126_PD_CPU_3		3
-#define RV1126_PD_CORE_ALIVE	4
-
-/* VD_PMU */
-#define RV1126_PD_PMU		5
-#define RV1126_PD_PMU_ALIVE	6
-
-/* VD_NPU */
-#define RV1126_PD_NPU		7
-
-/* VD_VEPU */
-#define RV1126_PD_VEPU		8
-
-/* VD_LOGIC */
-#define RV1126_PD_VI		9
-#define RV1126_PD_VO		10
-#define RV1126_PD_ISPP		11
-#define RV1126_PD_VDPU		12
-#define RV1126_PD_CRYPTO	13
-#define RV1126_PD_DDR		14
-#define RV1126_PD_NVM		15
-#define RV1126_PD_SDIO		16
-#define RV1126_PD_USB		17
-#define RV1126_PD_LOGIC_ALIVE	18
-
-#endif
Signature · 1 line
2.44.0