2014-10-20 11:37:13

by Pramod Gurav

[permalink] [raw]
Subject: [PATCH] ARM: DT: apq8064: Add Support for SD Card Detect for ifc6410 board

This changes muxes in gpio26 pin to function as gpio and adds support
for sd card detect for apq8064 based IFC6410 board.

Cc: Rob Herring <[email protected]>
Cc: Pawel Moll <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Kumar Gala <[email protected]>
Cc: Russell King <[email protected]>
Cc: Srinivas Kandagatla <[email protected]>

Signed-off-by: Pramod Gurav <[email protected]>

---
arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 11 +++++++++++
1 file changed, 11 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
index b396c83..bf6262f 100644
--- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
+++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
@@ -12,6 +12,14 @@
function = "gsbi1";
};
};
+
+ card_detect: card_detect {
+ mux {
+ pins = "gpio26";
+ function = "gpio";
+ bias-disable;
+ };
+ };
};

gsbi@12440000 {
@@ -49,6 +57,9 @@
/* External micro SD card */
sdcc3: sdcc@12180000 {
status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&card_detect>;
+ cd-gpios = <&tlmm_pinmux 26 1>;
};
/* WLAN */
sdcc4: sdcc@121c0000 {
--
1.7.9.5


2014-10-20 11:43:27

by Pramod Gurav

[permalink] [raw]
Subject: Re: [PATCH] ARM: DT: apq8064: Add Support for SD Card Detect for ifc6410 board

+linux-arm-msm

On Monday 20 October 2014 05:09 PM, Pramod Gurav wrote:
> This changes muxes in gpio26 pin to function as gpio and adds support
> for sd card detect for apq8064 based IFC6410 board.
>
> Cc: Rob Herring <[email protected]>
> Cc: Pawel Moll <[email protected]>
> Cc: Mark Rutland <[email protected]>
> Cc: Ian Campbell <[email protected]>
> Cc: Kumar Gala <[email protected]>
> Cc: Russell King <[email protected]>
> Cc: Srinivas Kandagatla <[email protected]>
>
> Signed-off-by: Pramod Gurav <[email protected]>
>
> ---
> arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
> index b396c83..bf6262f 100644
> --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
> +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
> @@ -12,6 +12,14 @@
> function = "gsbi1";
> };
> };
> +
> + card_detect: card_detect {
> + mux {
> + pins = "gpio26";
> + function = "gpio";
> + bias-disable;
> + };
> + };
> };
>
> gsbi@12440000 {
> @@ -49,6 +57,9 @@
> /* External micro SD card */
> sdcc3: sdcc@12180000 {
> status = "okay";
> + pinctrl-names = "default";
> + pinctrl-0 = <&card_detect>;
> + cd-gpios = <&tlmm_pinmux 26 1>;
> };
> /* WLAN */
> sdcc4: sdcc@121c0000 {
>

2014-10-20 14:38:55

by Stanimir Varbanov

[permalink] [raw]
Subject: Re: [PATCH] ARM: DT: apq8064: Add Support for SD Card Detect for ifc6410 board

On 10/20/2014 02:46 PM, Pramod Gurav wrote:
> +linux-arm-msm
>
> On Monday 20 October 2014 05:09 PM, Pramod Gurav wrote:
>> This changes muxes in gpio26 pin to function as gpio and adds support
>> for sd card detect for apq8064 based IFC6410 board.
>>
>> Cc: Rob Herring <[email protected]>
>> Cc: Pawel Moll <[email protected]>
>> Cc: Mark Rutland <[email protected]>
>> Cc: Ian Campbell <[email protected]>
>> Cc: Kumar Gala <[email protected]>
>> Cc: Russell King <[email protected]>
>> Cc: Srinivas Kandagatla <[email protected]>
>>
>> Signed-off-by: Pramod Gurav <[email protected]>
>>
>> ---
>> arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 11 +++++++++++
>> 1 file changed, 11 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
>> index b396c83..bf6262f 100644
>> --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
>> +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
>> @@ -12,6 +12,14 @@
>> function = "gsbi1";
>> };
>> };
>> +
>> + card_detect: card_detect {
>> + mux {
>> + pins = "gpio26";
>> + function = "gpio";
>> + bias-disable;
>> + };
>> + };
>> };
>>
>> gsbi@12440000 {
>> @@ -49,6 +57,9 @@
>> /* External micro SD card */
>> sdcc3: sdcc@12180000 {
>> status = "okay";
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&card_detect>;
>> + cd-gpios = <&tlmm_pinmux 26 1>;

pls use the defines in gpio.h.

<&tlmm_pinmux 26 GPIO_ACTIVE_LOW>;

--
regards,
Stan