Skip to contentSkip to conversation

correct ids for clk_testout

PATCH In review Eddie Cai 2 participants 6 messages Apr 25, 2017 – May 17, 2017

Subsystems (3)
lore
Share & tools
lore

Eddie Cai

author
#0 lore raw

v2 cover correct ids for clk_testout

we use clk_testout1 and clk_testout2 for camera. e.g. mipi 24M mclk. the ids of clk_testout1 and clk_testout2 is wrong. it's time to correct it.

Eddie Cai (2):
clk: rockchip: add ids for camera
clk: rockchip: fix the incorrect ids

 drivers/clk/rockchip/clk-rk3399.c      | 4 ++--
 include/dt-bindings/clock/rk3399-cru.h | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH v2 1/2 clk: rockchip: add ids for camera

we use SCLK_TESTCLKOUT1 and SCLK_TESTCLKOUT2 for camera, so add those ids.

---
 include/dt-bindings/clock/rk3399-cru.h | 2 ++
 1 file changed, 2 insertions(+)
include/dt-bindings/clock/rk3399-cru.h +2 -0
index 220a60f..22cb1df 100644
@@ -132,6 +132,8 @@
 #define SCLK_RMII_SRC			166
 #define SCLK_PCIEPHY_REF100M		167
 #define SCLK_DDRC			168
+#define SCLK_TESTCLKOUT1		169
+#define SCLK_TESTCLKOUT2		170
 
 #define DCLK_VOP0			180
 #define DCLK_VOP1			181
Signature · 1 line
1.9.1
author
#3 lore raw

PATCH v2 2/2 clk: rockchip: fix the incorrect ids

In reply to Eddie Cai

the ids of clk_testout1 and clk_testout2 is incorrect now. let's correct it

---
 drivers/clk/rockchip/clk-rk3399.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/rockchip/clk-rk3399.c +2 -2
index 73121b14..f3656ba 100644
@@ -1066,13 +1066,13 @@ enum rk3399_pmu_plls {
 	/* cif_testout */
 	MUX(0, "clk_testout1_pll_src", mux_pll_src_cpll_gpll_npll_p, 0,
 			RK3399_CLKSEL_CON(38), 6, 2, MFLAGS),
-	COMPOSITE(0, "clk_testout1", mux_clk_testout1_p, 0,
+	COMPOSITE(SCLK_TESTCLKOUT1, "clk_testout1", mux_clk_testout1_p, 0,
 			RK3399_CLKSEL_CON(38), 5, 1, MFLAGS, 0, 5, DFLAGS,
 			RK3399_CLKGATE_CON(13), 14, GFLAGS),
 
 	MUX(0, "clk_testout2_pll_src", mux_pll_src_cpll_gpll_npll_p, 0,
 			RK3399_CLKSEL_CON(38), 14, 2, MFLAGS),
-	COMPOSITE(0, "clk_testout2", mux_clk_testout2_p, 0,
+	COMPOSITE(SCLK_TESTCLKOUT2, "clk_testout2", mux_clk_testout2_p, 0,
 			RK3399_CLKSEL_CON(38), 13, 1, MFLAGS, 8, 5, DFLAGS,
 			RK3399_CLKGATE_CON(13), 15, GFLAGS),
 
Signature · 1 line
1.9.1
maintainer
#5 lore raw
In reply to Eddie Cai

Hi Eddie,

Am Dienstag, 25. April 2017, 14:41:08 CEST schrieb Eddie Cai:

Quoted 2 lines

we use clk_testout1 and clk_testout2 for camera. e.g. mipi 24M mclk. the ids of clk_testout1 and clk_testout2 is wrong. it's time to correct it.

Just to say, patches look good - thanks for explaining what the clocks are going to be used for.

I'll apply them after 4.12-rc1 is released (in roughly 2.5 weeks), due to needing a stable base for the clock-ids.

Heiko

maintainer
#4 lore raw

Re: [PATCH V2 2/2] clk: rockchip: fix the incorrect ids

In reply to Eddie Cai

Am Dienstag, 25. April 2017, 14:41:10 CEST schrieb Eddie Cai:

Quoted 3 lines

the ids of clk_testout1 and clk_testout2 is incorrect now. let's correct it

applied for 4.13, after fixing the subject up a bit [the old ids are not incorrect, there simply weren't any assigned to the testclks yet :-) ]

Thanks
Heiko