ARM: dts: Add missing clock/pin-control entries for I2S0 on Exynos4
Subsystems (2)
PATCH 1/1 ARM: dts: Add missing clock/pin-control entries for I2S0 on Exynos4
I2S driver uses 3 clocks under different conditions. Added two missing clocks.
Additionally updated pin-control property for this node.
---
Based on next-20140606.
Tested on Exynos4210-based Origen boards with private patches for codec/machine driver.
arch/arm/boot/dts/exynos4.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
arch/arm/boot/dts/exynos4.dtsi +6 -2
@@ -55,11 +55,15 @@ i2s0: i2s@03830000 { compatible = "samsung,s5pv210-i2s"; reg = <0x03830000 0x100>; - clocks = <&clock_audss EXYNOS_I2S_BUS>; - clock-names = "iis"; + clocks = <&clock_audss EXYNOS_I2S_BUS>, + <&clock_audss EXYNOS_I2S_BUS>, + <&clock_audss EXYNOS_SCLK_I2S>; + clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; dmas = <&pdma0 12>, <&pdma0 11>, <&pdma0 10>; dma-names = "tx", "rx", "tx-sec"; samsung,idma-addr = <0x03000000>; + pinctrl-0 = <&i2s0_bus>; + pinctrl-names = "default"; status = "disabled"; };
Signature · 1 line
1.7.9.5
Hi Tushar,
Quoted 26 lines · Tushar Behera
I2S driver uses 3 clocks under different conditions. Added two missing clocks.
Additionally updated pin-control property for this node.
Signed-off-by Tushar Behera <[email protected]>---
Based on next-20140606.Tested on Exynos4210-based Origen boards with private patches for codec/machine driver.
arch/arm/boot/dts/exynos4.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)arch/arm/boot/dts/exynos4.dtsi +1
-2@@ -55,11 +55,15 @@ i2s0: i2s@03830000 { compatible = "samsung,s5pv210-i2s"; reg = <0x03830000 0x100>; - clocks = <&clock_audss EXYNOS_I2S_BUS>; - clock-names = "iis"; + clocks = <&clock_audss EXYNOS_I2S_BUS>,
arch/arm/boot/dts/exynos4.dtsi line 68
Quoted 10 lines
arch/arm/boot/dts/exynos4.dtsi +5
-0+ <&clock_audss EXYNOS_I2S_BUS>, + <&clock_audss EXYNOS_SCLK_I2S>; + clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; dmas = <&pdma0 12>, <&pdma0 11>, <&pdma0 10>; dma-names = "tx", "rx", "tx-sec"; samsung,idma-addr = <0x03000000>; + pinctrl-0 = <&i2s0_bus>; + pinctrl-names = "default"; status = "disabled"; };
I assumed those properties you're adding here belong to board or to SoC type specific dts. It doesn't hurt ot have it like this, but what do you think about moving this to arch/arm/boot/dts/ exynos4210(4x12).dtsi ? For instance pinctrl definitions are in SoC specific dts.
--
Thanks,
Sylwester
Quoted 37 lines · Sylwester Nawrocki
Hi Tushar,
Quoted 34 lines · Tushar Behera
I2S driver uses 3 clocks under different conditions. Added two missing clocks.
Additionally updated pin-control property for this node.
Signed-off-by Tushar Behera <[email protected]>---
Based on next-20140606.Tested on Exynos4210-based Origen boards with private patches for codec/machine driver.
arch/arm/boot/dts/exynos4.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)arch/arm/boot/dts/exynos4.dtsi +6
-2@@ -55,11 +55,15 @@ i2s0: i2s@03830000 { compatible = "samsung,s5pv210-i2s"; reg = <0x03830000 0x100>; - clocks = <&clock_audss EXYNOS_I2S_BUS>; - clock-names = "iis"; + clocks = <&clock_audss EXYNOS_I2S_BUS>, + <&clock_audss EXYNOS_I2S_BUS>, + <&clock_audss EXYNOS_SCLK_I2S>; + clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; dmas = <&pdma0 12>, <&pdma0 11>, <&pdma0 10>; dma-names = "tx", "rx", "tx-sec"; samsung,idma-addr = <0x03000000>; + pinctrl-0 = <&i2s0_bus>; + pinctrl-names = "default";
Quoted 9 lines
arch/arm/boot/dts/exynos4.dtsi line 68
Quoted 2 lines
arch/arm/boot/dts/exynos4.dtsi +0
-0status = "disabled"; };I assumed those properties you're adding here belong to board or to SoC type specific dts. It doesn't hurt ot have it like this, but what do you think about moving this to
arch/arm/boot/dts/exynos4210(4x12).dtsi ? For instance pinctrl definitions are in SoC specific dts.
IMHO, the clock entries belong here as the audss clock provider essentially remains same for all Exynos4 based systems.
As for pin-control entry, I believe we can move them to respective SoC dtsi files.
Does that sound okay to you?
Quoted 8 lines
--
Thanks,
Sylwester
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Tushar Behera
Quoted 7 lines · Tushar Behera
IMHO, the clock entries belong here as the audss clock provider essentially remains same for all Exynos4 based systems.
As for pin-control entry, I believe we can move them to respective SoC dtsi files.
Does that sound okay to you?
I guess that's fine, I tend to agree with you about the clocks.
--
Thanks,
Sylwester
Quoted 11 lines · Sylwester Nawrocki
Quoted 7 lines · Tushar Behera
IMHO, the clock entries belong here as the audss clock provider essentially remains same for all Exynos4 based systems.
As for pin-control entry, I believe we can move them to respective SoC dtsi files.
Does that sound okay to you?
I guess that's fine, I tend to agree with you about the clocks.
As I was going ahead with the implementation, it felt like repetition with the same code. Would it be acceptable to you if we go ahead with the earlier approach of adding both clock and pin-control entry to exynos4.dtsi?
I can see i2c_n and spi_n adding pin-control entries in exynos4.dtsi itself.
Quoted 4 lines
--
Thanks,
Sylwester
Signature · 1 line
Tushar Behera
Quoted 10 lines · Tushar Behera
Quoted 9 lines · Sylwester Nawrocki
Quoted 9 lines · Tushar Behera
Quoted 7 lines
Quoted 7 lines
IMHO, the clock entries belong here as the audss clock provider essentially remains same for all Exynos4 based systems.
As for pin-control entry, I believe we can move them to respective SoC dtsi files.
Does that sound okay to you?
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
I guess that's fine, I tend to agree with you about the clocks.
As I was going ahead with the implementation, it felt like repetition with the same code. Would it be acceptable to you if we go ahead with the earlier approach of adding both clock and pin-control entry to
exynos4.dtsi?I can see
i2c_nandspi_nadding pin-control entries inexynos4.dtsiitself.
OK, I don't mind, I'll leave it up to the maintainers.
--
Regards,
Sylwester
Quoted 18 lines · Sylwester Nawrocki
Quoted 17 lines · Tushar Behera
Quoted 11 lines · Sylwester Nawrocki
Quoted 11 lines · Tushar Behera
Quoted 7 lines
Quoted 7 lines
IMHO, the clock entries belong here as the audss clock provider essentially remains same for all Exynos4 based systems.
As for pin-control entry, I believe we can move them to respective SoC dtsi files.
Does that sound okay to you?
I guess that's fine, I tend to agree with you about the clocks.
As I was going ahead with the implementation, it felt like repetition with the same code. Would it be acceptable to you if we go ahead with the earlier approach of adding both clock and pin-control entry to
exynos4.dtsi?
Quoted 7 lines
Quoted 1 line
I can see
i2c_nandspi_nadding pin-control entries inexynos4.dtsiitself.OK, I don't mind, I'll leave it up to the maintainers.
--
Regards,
Sylwester
Kukjin,
Any comments on this? If not, I will resend this patch based on v3.16-rc1.
Signature · 1 line
Tushar Behera
Hi Tushar, Sylwester,
Quoted 24 lines · Tushar Behera
Quoted 22 lines · Sylwester Nawrocki
Quoted 10 lines · Tushar Behera
Quoted 9 lines · Sylwester Nawrocki
Quoted 9 lines · Tushar Behera
Quoted 7 lines
Quoted 7 lines
IMHO, the clock entries belong here as the audss clock provider essentially remains same for all Exynos4 based systems.
As for pin-control entry, I believe we can move them to respective SoC dtsi files.
Does that sound okay to you?
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
I guess that's fine, I tend to agree with you about the clocks.
As I was going ahead with the implementation, it felt like repetition with the same code. Would it be acceptable to you if we go ahead with the earlier approach of adding both clock and pin-control entry to
exynos4.dtsi?I can see
i2c_nandspi_nadding pin-control entries inexynos4.dtsiitself.OK, I don't mind, I'll leave it up to the maintainers.
Quoted 8 lines
Quoted 3 lines
--
Regards,
SylwesterKukjin,
Any comments on this? If not, I will resend this patch based on v3.16-rc1.
I'd just keep them all in exynos4.dtsi if they are all the same. I don't see any reason why those names should ever change to something platform specific.
Best regards,
Tomasz