Skip to contentSkip to conversation

rockchip: rk3288: use includes from dts/upstream

PATCH In review Johan Jonker 2 participants 2 messages Dec 9, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rockchip: rk3288: use includes from dts/upstream

The clock and power DT includes for rk3288 are now available in the dts/upstream directory, so remove the ones that are now redundant. Remove the use of non existent SCLK_MAC_PLL id in the clock driver.

---

Changed:
This patch does not include the removal of a clock binding as was proposed in an earlier serie elsewhere.
For better fit with my other patch serie for binding removal.

http://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/

---
 drivers/clk/rockchip/clk_rk3288.c        |   8 +-
 include/dt-bindings/clock/rk3288-cru.h   | 381 -----------------------
 include/dt-bindings/power/rk3288-power.h |  32 --
 3 files changed, 4 insertions(+), 417 deletions(-)
 delete mode 100644 include/dt-bindings/clock/rk3288-cru.h
 delete mode 100644 include/dt-bindings/power/rk3288-power.h
drivers/clk/rockchip/clk_rk3288.c +4 -4
index 43c44fadbe7a..a4ff1c41abb8 100644
@@ -903,11 +903,11 @@ static int __maybe_unused rk3288_gmac_set_parent(struct clk *clk, struct clk *pa
 	int ret;
 
 	/*
-	 * If the requested parent is in the same clock-controller and
-	 * the id is SCLK_MAC_PLL ("mac_pll_src"), switch to the internal
-	 * clock.
+	 * If the requested parent is in the same clock-controller the
+	 * likely parent is the unexported SCLK_MAC_PLL ("mac_pll_src"),
+	 * switch to the internal clock.
 	 */
-	if ((parent->dev == clk->dev) && (parent->id == SCLK_MAC_PLL)) {
+	if (parent->dev == clk->dev) {
 		debug("%s: switching GAMC to SCLK_MAC_PLL\n", __func__);
 		rk_clrsetreg(&cru->cru_clksel_con[21], RMII_EXTCLK_MASK, 0);
 		return 0;
include/dt-bindings/clock/rk3288-cru.h deleted +0 -381

381 lines not on this page · raw message

include/dt-bindings/power/rk3288-power.h deleted +0 -32
deleted file mode 100644
index f710b56ccd81..000000000000
@@ -1,32 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef __DT_BINDINGS_POWER_RK3288_POWER_H__
-#define __DT_BINDINGS_POWER_RK3288_POWER_H__
-
-/**
- * RK3288 Power Domain and Voltage Domain Summary.
- */
-
-/* VD_CORE */
-#define RK3288_PD_A17_0		0
-#define RK3288_PD_A17_1		1
-#define RK3288_PD_A17_2		2
-#define RK3288_PD_A17_3		3
-#define RK3288_PD_SCU		4
-#define RK3288_PD_DEBUG		5
-#define RK3288_PD_MEM		6
-
-/* VD_LOGIC */
-#define RK3288_PD_BUS		7
-#define RK3288_PD_PERI		8
-#define RK3288_PD_VIO		9
-#define RK3288_PD_ALIVE		10
-#define RK3288_PD_HEVC		11
-#define RK3288_PD_VIDEO		12
-
-/* VD_GPU */
-#define RK3288_PD_GPU		13
-
-/* VD_PMU */
-#define RK3288_PD_PMU		14
-
-#endif

--
2.39.5

#1 lore raw

Hi Johan,

Quoted 15 lines · Johan Jonker

The clock and power DT includes for rk3288 are now available in the dts/upstream directory, so remove the ones that are now redundant. Remove the use of non existent SCLK_MAC_PLL id in the clock driver.

---

Changed:
This patch does not include the removal of a clock binding as was proposed in an earlier serie elsewhere.
For better fit with my other patch serie for binding removal.

http://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/

Quoted 8 lines
---
 drivers/clk/rockchip/clk_rk3288.c        |   8 +-
 include/dt-bindings/clock/rk3288-cru.h   | 381 -----------------------
 include/dt-bindings/power/rk3288-power.h |  32 --
 3 files changed, 4 insertions(+), 417 deletions(-)
 delete mode 100644 include/dt-bindings/clock/rk3288-cru.h
 delete mode 100644 include/dt-bindings/power/rk3288-power.h

[snip]

This cleanup is already handled in the following series:

rockchip: rk3288: Include files from dts/upstream
https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/

Regards,
Jonas