* [PATCH 4/5] ARM: ux500: fix I2C4 clock bit
@ 2013-10-18 9:05 Linus Walleij
[not found] ` <1382087123-31702-1-git-send-email-linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Linus Walleij @ 2013-10-18 9:05 UTC (permalink / raw)
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Lee Jones
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, Linus Walleij
The PCLK for I2C4 is controlled by bit 10 in the PCKEN registers
while the KCLK is controlled by bit 9 on the KCKEN, it's
one of these odd assymetric things. Correct the PCLK bit to 10.
Cc: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Signed-off-by: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
arch/arm/boot/dts/ste-dbx5x0.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/ste-dbx5x0.dtsi b/arch/arm/boot/dts/ste-dbx5x0.dtsi
index 5112f4c..b7d1738 100644
--- a/arch/arm/boot/dts/ste-dbx5x0.dtsi
+++ b/arch/arm/boot/dts/ste-dbx5x0.dtsi
@@ -694,7 +694,7 @@
clock-frequency = <400000>;
- clocks = <&prcc_kclk 1 9>, <&prcc_pclk 1 9>;
+ clocks = <&prcc_kclk 1 10>, <&prcc_pclk 1 9>;
clock-names = "i2cclk", "apb_pclk";
};
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <1382087123-31702-1-git-send-email-linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>]
* Re: [PATCH 4/5] ARM: ux500: fix I2C4 clock bit [not found] ` <1382087123-31702-1-git-send-email-linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> @ 2013-10-18 11:03 ` Lee Jones 2013-10-18 11:30 ` Linus Walleij 0 siblings, 1 reply; 3+ messages in thread From: Lee Jones @ 2013-10-18 11:03 UTC (permalink / raw) To: Linus Walleij Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA On Fri, 18 Oct 2013, Linus Walleij wrote: > The PCLK for I2C4 is controlled by bit 10 in the PCKEN registers > while the KCLK is controlled by bit 9 on the KCKEN, it's > one of these odd assymetric things. Correct the PCLK bit to 10. > > Cc: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> > Signed-off-by: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> > --- > arch/arm/boot/dts/ste-dbx5x0.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/ste-dbx5x0.dtsi b/arch/arm/boot/dts/ste-dbx5x0.dtsi > index 5112f4c..b7d1738 100644 > --- a/arch/arm/boot/dts/ste-dbx5x0.dtsi > +++ b/arch/arm/boot/dts/ste-dbx5x0.dtsi > @@ -694,7 +694,7 @@ > > clock-frequency = <400000>; > > - clocks = <&prcc_kclk 1 9>, <&prcc_pclk 1 9>; > + clocks = <&prcc_kclk 1 10>, <&prcc_pclk 1 9>; > clock-names = "i2cclk", "apb_pclk"; > }; > NACK: Bit 10 is MSP1 clk = clk_reg_prcc_kclk("p1_i2c4_kclk", "i2cclk", clkrst1_base, BIT(9), CLK_SET_RATE_GATE); clk_register_clkdev(clk, NULL, "nmk-i2c.4"); PRCC_KCLK_STORE(clk, 1, 9); clk = clk_reg_prcc_kclk("p1_msp3_kclk", "msp1clk", clkrst1_base, BIT(10), CLK_SET_RATE_GATE); clk_register_clkdev(clk, NULL, "msp3"); clk_register_clkdev(clk, NULL, "ux500-msp-i2s.3"); PRCC_KCLK_STORE(clk, 1, 10); -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 4/5] ARM: ux500: fix I2C4 clock bit 2013-10-18 11:03 ` Lee Jones @ 2013-10-18 11:30 ` Linus Walleij 0 siblings, 0 replies; 3+ messages in thread From: Linus Walleij @ 2013-10-18 11:30 UTC (permalink / raw) To: Lee Jones, Ulf Hansson Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Fri, Oct 18, 2013 at 1:03 PM, Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote: > On Fri, 18 Oct 2013, Linus Walleij wrote: > >> The PCLK for I2C4 is controlled by bit 10 in the PCKEN registers >> while the KCLK is controlled by bit 9 on the KCKEN, it's >> one of these odd assymetric things. Correct the PCLK bit to 10. >> >> Cc: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> >> Signed-off-by: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> >> --- >> arch/arm/boot/dts/ste-dbx5x0.dtsi | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/arm/boot/dts/ste-dbx5x0.dtsi b/arch/arm/boot/dts/ste-dbx5x0.dtsi >> index 5112f4c..b7d1738 100644 >> --- a/arch/arm/boot/dts/ste-dbx5x0.dtsi >> +++ b/arch/arm/boot/dts/ste-dbx5x0.dtsi >> @@ -694,7 +694,7 @@ >> >> clock-frequency = <400000>; >> >> - clocks = <&prcc_kclk 1 9>, <&prcc_pclk 1 9>; >> + clocks = <&prcc_kclk 1 10>, <&prcc_pclk 1 9>; >> clock-names = "i2cclk", "apb_pclk"; >> }; >> > > NACK: Bit 10 is MSP1 You mean MSP3? > clk = clk_reg_prcc_kclk("p1_i2c4_kclk", "i2cclk", > clkrst1_base, BIT(9), CLK_SET_RATE_GATE); > clk_register_clkdev(clk, NULL, "nmk-i2c.4"); > PRCC_KCLK_STORE(clk, 1, 9); > > clk = clk_reg_prcc_kclk("p1_msp3_kclk", "msp1clk", > clkrst1_base, BIT(10), CLK_SET_RATE_GATE); > clk_register_clkdev(clk, NULL, "msp3"); > clk_register_clkdev(clk, NULL, "ux500-msp-i2s.3"); > PRCC_KCLK_STORE(clk, 1, 10); This does not correspond to the datasheet, which says MSP3 is at bit 11. Oh that is *another* assymetric thing. I'll make a combined patch that fix both things and double-check with the older clock framework so we get this 100% right. Ulf: any hints? Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-18 11:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-18 9:05 [PATCH 4/5] ARM: ux500: fix I2C4 clock bit Linus Walleij
[not found] ` <1382087123-31702-1-git-send-email-linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2013-10-18 11:03 ` Lee Jones
2013-10-18 11:30 ` Linus Walleij
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox