Skip to contentSkip to conversation

arm: dts: berlin: fix BG2Q sdhci clk

PATCH In review Jisheng Zhang 2 participants 4 messages Dec 7, 2015 – Dec 10, 2015 Device tree bindings

lore
Share & tools
lore
#0 lore raw

cover arm: dts: berlin: fix BG2Q sdhci clk

CLKID_SDIO is used as the 2nd optional clk for all sdhci hosts in BG2Q. We removed CLK_IGNORE_UNUSED from CLKID_SDIO's flag. These two patches fixes this clk issue.

Jisheng Zhang (2):
ARM: dts: berlin: correct BG2Q's sdhci2 2nd clock
ARM: dts: berlin: add 2nd clock for BG2Q sdhci0 and sdhci1

 arch/arm/boot/dts/berlin2q.dtsi | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
Signature · 1 line
2.6.2
#1 lore raw

PATCH 1/2 ARM: dts: berlin: correct BG2Q's sdhci2 2nd clock

The optional 2nd clock is CLKID_SDIO. We removed CLK_IGNORE_UNUSED from CLKID_SDIO's flag, so the sdhci2 doesn't work. This patch fixes this issue by correcting the sdhci2's 2nd clock.

---
 arch/arm/boot/dts/berlin2q.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/berlin2q.dtsi +1 -1
index 8ea177f..5b10129 100644
@@ -135,7 +135,7 @@
 			compatible = "mrvl,pxav3-mmc";
 			reg = <0xab1000 0x200>;
 			interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
-			clocks = <&chip_clk CLKID_NFC_ECC>, <&chip_clk CLKID_NFC>;
+			clocks = <&chip_clk CLKID_NFC_ECC>, <&chip_clk CLKID_SDIO>;
 			clock-names = "io", "core";
 			status = "disabled";
 		};
Signature · 1 line
2.6.2
#2 lore raw

PATCH 2/2 ARM: dts: berlin: add 2nd clock for BG2Q sdhci0 and sdhci1

In reply to Jisheng Zhang

We removed CLK_IGNORE_UNUSED from CLKID_SDIO's flag, so the sdhci0 and sdhci1 don't work. We fix this by adding the optional 2nd clock for BG2Q's sdhci0 and sdhci1. This patch brings another benefit: the 2nd clock can be disabled during runtime pm, so saves power a bit.

---
 arch/arm/boot/dts/berlin2q.dtsi | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
arch/arm/boot/dts/berlin2q.dtsi +4 -2
index 5b10129..fb1da99 100644
@@ -118,7 +118,8 @@
 		sdhci0: sdhci at ab0000 {
 			compatible = "mrvl,pxav3-mmc";
 			reg = <0xab0000 0x200>;
-			clocks = <&chip_clk CLKID_SDIO1XIN>;
+			clocks = <&chip_clk CLKID_SDIO1XIN>, <&chip_clk CLKID_SDIO>;
+			clock-names = "io", "core";
 			interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
 			status = "disabled";
 		};
@@ -126,7 +127,8 @@
 		sdhci1: sdhci at ab0800 {
 			compatible = "mrvl,pxav3-mmc";
 			reg = <0xab0800 0x200>;
-			clocks = <&chip_clk CLKID_SDIO1XIN>;
+			clocks = <&chip_clk CLKID_SDIO1XIN>, <&chip_clk CLKID_SDIO>;
+			clock-names = "io", "core";
 			interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
 			status = "disabled";
 		};
Signature · 1 line
2.6.2
#3 lore raw
In reply to Jisheng Zhang
Quoted 11 lines · Jisheng Zhang

CLKID_SDIO is used as the 2nd optional clk for all sdhci hosts in BG2Q. We removed CLK_IGNORE_UNUSED from CLKID_SDIO's flag. These two patches fixes this clk issue.

Jisheng Zhang (2):
ARM: dts: berlin: correct BG2Q's sdhci2 2nd clock
ARM: dts: berlin: add 2nd clock for BG2Q sdhci0 and sdhci1

 arch/arm/boot/dts/berlin2q.dtsi | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Series applied to berlin/fixes.

Thanks!

Sebastian