Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1526354 > unrolled thread

[PATCHv2] arm64: dts: exynos: add the mshc_2 node for supporting T-Flash

Started byJaehoon Chung <jh80.chung@samsung.com>
First post2016-11-21 06:00 +0100
Last post2016-11-21 18:30 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCHv2] arm64: dts: exynos: add the mshc_2 node for supporting  T-Flash Jaehoon Chung <jh80.chung@samsung.com> - 2016-11-21 06:00 +0100
    Re: [PATCHv2] arm64: dts: exynos: add the mshc_2 node for supporting  T-Flash Krzysztof Kozlowski <krzk@kernel.org> - 2016-11-21 18:30 +0100

#1526354 — [PATCHv2] arm64: dts: exynos: add the mshc_2 node for supporting T-Flash

FromJaehoon Chung <jh80.chung@samsung.com>
Date2016-11-21 06:00 +0100
Subject[PATCHv2] arm64: dts: exynos: add the mshc_2 node for supporting T-Flash
Message-ID<sFORX-4Q0-1@gated-at.bofh.it>
Add the mshc_2 node for supporting T-flash.

And it needs to add the "mshc*" aliases. Because dwmmc driver should be
assigned to "ctrl_id" after parsing to "mshc".
If there is no aliases for mshc, then it might be set to the wrong
capabilities.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
Changelog on V2:
- Changed from 0 to GPIO_ACTIVE_HIGH

 arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
index ce41781..88cb6c1 100644
--- a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
+++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
@@ -45,6 +45,8 @@
 		spi2 = &spi_2;
 		spi3 = &spi_3;
 		spi4 = &spi_4;
+		mshc0 = &mshc_0;
+		mshc2 = &mshc_2;
 	};
 
 	chosen {
@@ -715,6 +717,23 @@
 	assigned-clock-rates = <800000000>;
 };
 
+&mshc_2 {
+	status = "okay";
+	num-slots = <1>;
+	cap-sd-highspeed;
+	disable-wp;
+	cd-gpios = <&gpa2 4 GPIO_ACTIVE_HIGH>;
+	cd-inverted;
+	card-detect-delay = <200>;
+	samsung,dw-mshc-ciu-div = <3>;
+	samsung,dw-mshc-sdr-timing = <0 4>;
+	samsung,dw-mshc-ddr-timing = <0 2>;
+	fifo-depth = <0x80>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus1 &sd2_bus4>;
+	bus-width = <4>;
+};
+
 &pinctrl_alive {
 	pinctrl-names = "default";
 	pinctrl-0 = <&initial_alive>;
-- 
2.10.1

[toc] | [next] | [standalone]


#1526944

FromKrzysztof Kozlowski <krzk@kernel.org>
Date2016-11-21 18:30 +0100
Message-ID<sG0zM-47r-13@gated-at.bofh.it>
In reply to#1526354
On Mon, Nov 21, 2016 at 01:58:39PM +0900, Jaehoon Chung wrote:
> Add the mshc_2 node for supporting T-flash.
> 
> And it needs to add the "mshc*" aliases. Because dwmmc driver should be
> assigned to "ctrl_id" after parsing to "mshc".
> If there is no aliases for mshc, then it might be set to the wrong
> capabilities.
> 
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> ---
> Changelog on V2:
> - Changed from 0 to GPIO_ACTIVE_HIGH


Thanks, applied.

Best regards,
Krzysztof

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web