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


Groups > linux.kernel > #1326764 > unrolled thread

[PATCH] arm64: dts: apq8016-sbc: Add DT node for the uSD SDHC interface

Started byGeorgi Djakov <georgi.djakov@linaro.org>
First post2016-02-04 14:00 +0100
Last post2016-02-09 00:10 +0100
Articles 5 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] arm64: dts: apq8016-sbc: Add DT node for the uSD SDHC interface Georgi Djakov <georgi.djakov@linaro.org> - 2016-02-04 14:00 +0100
    Re: [PATCH] arm64: dts: apq8016-sbc: Add DT node for the uSD SDHC interface Kevin Hilman <khilman@baylibre.com> - 2016-02-04 23:10 +0100
      Re: [PATCH] arm64: dts: apq8016-sbc: Add DT node for the uSD SDHC interface Kevin Hilman <khilman@baylibre.com> - 2016-02-04 23:50 +0100
        Re: [PATCH] arm64: dts: apq8016-sbc: Add DT node for the uSD SDHC  interface Georgi Djakov <georgi.djakov@linaro.org> - 2016-02-05 18:50 +0100
          Re: [PATCH] arm64: dts: apq8016-sbc: Add DT node for the uSD SDHC interface Kevin Hilman <khilman@baylibre.com> - 2016-02-09 00:10 +0100

#1326764 — [PATCH] arm64: dts: apq8016-sbc: Add DT node for the uSD SDHC interface

FromGeorgi Djakov <georgi.djakov@linaro.org>
Date2016-02-04 14:00 +0100
Subject[PATCH] arm64: dts: apq8016-sbc: Add DT node for the uSD SDHC interface
Message-ID<qYrFU-jS-9@gated-at.bofh.it>
Add the necessary properties to enable the SD-card on db410c boards.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
---
 arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
index 6b4289dd2495..9a6c595a9b15 100644
--- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
+++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
@@ -139,6 +139,18 @@
 			pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
 			status = "okay";
 		};
+
+		sdhci@07864000 {
+			vmmc-supply = <&pm8916_l11>;
+			vqmmc-supply = <&pm8916_l12>;
+
+			pinctrl-names = "default", "sleep";
+			pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
+			pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
+
+			cd-gpios = <&msmgpio 38 0x1>;
+			status = "okay";
+		};
 	};
 };
 

[toc] | [next] | [standalone]


#1327226

FromKevin Hilman <khilman@baylibre.com>
Date2016-02-04 23:10 +0100
Message-ID<qYAgb-84a-21@gated-at.bofh.it>
In reply to#1326764
Georgi Djakov <georgi.djakov@linaro.org> writes:

> Add the necessary properties to enable the SD-card on db410c boards.
>
> Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>

I tried this with 2 different SD cards on my dragonboard 410c but it's
not detecting either card. 

Some relevant stuff from one of the boots, but definitely seems like
some voltage switching not going well:

[    1.450613] sdhci_msm 7864900.sdhci: Got CD GPIO
[    1.460379] sdhci_msm 7864900.sdhci: Failed getting OCR mask: 0
[    1.462862] l11: voltage operation not allowed
[    1.465097] sdhci_msm 7864900.sdhci: could not set regulator OCR (-1)
[    1.469684] mmc0: MAN_BKOPS_EN bit is not set
[    1.476456] l12: voltage operation not allowed
[    1.480527] mmc1: Switching to 3.3V signalling voltage failed
[    1.484909] l12: voltage operation not allowed
[    1.490674] mmc1: Switching to 1.8V signalling voltage failed
[    1.495058] l12: voltage operation not allowed
[    1.500817] mmc1: Switching to 1.2V signalling voltage failed
[    1.507342] mmc0: new HS200 MMC card at address 0001
[    1.515354] mmcblk0: mmc0:0001 DS2008 7.28 GiB 
[    1.520125] mmcblk0boot0: mmc0:0001 DS2008 partition 1 4.00 MiB
[    1.524369] mmcblk0boot1: mmc0:0001 DS2008 partition 2 4.00 MiB
[    1.530288] mmcblk0rpmb: mmc0:0001 DS2008 partition 3 4.00 MiB
[    1.533864] mmc1: SDHCI controller on 7864900.sdhci [7864900.sdhci] using ADMA 64-bit

[...]

[    1.614109] mmc1: error -110 whilst initialising SD card
[    1.716226] mmc1: Reset 0x1 never completed.
[    1.749438] random: udevd urandom read with 2 bits of entropy available
[    1.884756] l11: voltage operation not allowed
[    1.884787] sdhci_msm 7864900.sdhci: could not set regulator OCR (-1)
[    1.892888] l12: voltage operation not allowed
[    1.896335] mmc1: Switching to 3.3V signalling voltage failed
[    1.901712] l12: voltage operation not allowed
[    1.908095] mmc1: Switching to 1.8V signalling voltage failed
[    1.909095] l12: voltage operation not allowed
[    1.921811] mmc1: Switching to 1.2V signalling voltage failed
[    2.005997] mmc1: new high speed SDHC card at address 1234
[    2.014077] mmcblk1: mmc1:1234 SA08G 7.21 GiB 
[    2.021387] mmcblk1: error -110 sending status command, retrying
[    2.023544] mmcblk1: error -110 sending status command, retrying
[    2.028580] mmcblk1: error -110 sending status command, aborting
[    2.137791] mmc1: Reset 0x1 never completed.
[    2.255152] l11: voltage operation not allowed
[    2.255184] sdhci_msm 7864900.sdhci: could not set regulator OCR (-1)
[    2.261830] l12: voltage operation not allowed
[    2.264992] mmc1: Switching to 3.3V signalling voltage failed
[    2.277445] l12: voltage operation not allowed
[    2.277468] mmc1: Switching to 1.8V signalling voltage failed
[    2.284473] l12: voltage operation not allowed
[    2.288964] mmc1: Switching to 1.2V signalling voltage failed
[    2.346835] mmc1: tried to reset card
[    2.351026] mmcblk1: error -110 sending status command, retrying
[    2.353088] mmcblk1: error -110 sending status command, retrying
[    2.359550] mmcblk1: error -110 sending status command, aborting
[    2.362116] blk_update_request: I/O error, dev mmcblk1, sector 0
[    2.374049] Buffer I/O error on dev mmcblk1, logical block 0, async page read
[    2.381316] mmcblk1: error -110 sending status command, retrying
[    2.383455] mmcblk1: error -110 sending status command, retrying
[    2.391444] mmcblk1: error -110 sending status command, aborting
[    2.393162] blk_update_request: I/O error, dev mmcblk1, sector 0
[    2.401488] Buffer I/O error on dev mmcblk1, logical block 0, async page read
[    2.412265]  mmcblk1: unable to read partition table
[    2.420256] mmcblk1: error -110 sending status command, retrying
[    2.422410] mmcblk1: error -110 sending status command, retrying
[    2.427528] mmcblk1: error -110 sending status command, aborting
[    2.440903] blk_update_request: I/O error, dev mmcblk1, sector 15122304
[    2.445257] mmcblk1: error -110 sending status command, retrying
[    2.449248] mmcblk1: error -110 sending status command, retrying
[    2.459827] mmcblk1: error -110 sending status command, aborting
[    2.459863] blk_update_request: I/O error, dev mmcblk1, sector 15122304
[    2.471744] Buffer I/O error on dev mmcblk1, logical block 1890288, async page read


Kevin

[toc] | [prev] | [next] | [standalone]


#1327261

FromKevin Hilman <khilman@baylibre.com>
Date2016-02-04 23:50 +0100
Message-ID<qYAST-8lI-31@gated-at.bofh.it>
In reply to#1327226
On Thu, Feb 4, 2016 at 2:06 PM, Kevin Hilman <khilman@baylibre.com> wrote:
> Georgi Djakov <georgi.djakov@linaro.org> writes:
>
>> Add the necessary properties to enable the SD-card on db410c boards.
>>
>> Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
>
> I tried this with 2 different SD cards on my dragonboard 410c but it's
> not detecting either card.

To be more precise, I tried this patch on v4.5-rc1 and today's
linux-next using the default defconfig + CONFIG_MMC_SDHCI_MSM=y, and
see the same voltage errors on both.

Kevin

[toc] | [prev] | [next] | [standalone]


#1327971 — Re: [PATCH] arm64: dts: apq8016-sbc: Add DT node for the uSD SDHC interface

FromGeorgi Djakov <georgi.djakov@linaro.org>
Date2016-02-05 18:50 +0100
SubjectRe: [PATCH] arm64: dts: apq8016-sbc: Add DT node for the uSD SDHC interface
Message-ID<qYSG7-3jH-19@gated-at.bofh.it>
In reply to#1327261
On 02/05/2016 12:44 AM, Kevin Hilman wrote:
> On Thu, Feb 4, 2016 at 2:06 PM, Kevin Hilman <khilman@baylibre.com> wrote:
>> Georgi Djakov <georgi.djakov@linaro.org> writes:
>>
>>> Add the necessary properties to enable the SD-card on db410c boards.
>>>
>>> Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
>>
>> I tried this with 2 different SD cards on my dragonboard 410c but it's
>> not detecting either card.
> 
> To be more precise, I tried this patch on v4.5-rc1 and today's
> linux-next using the default defconfig + CONFIG_MMC_SDHCI_MSM=y, and
> see the same voltage errors on both.
>

Hi Kevin, thanks for trying this. I got the same with v4.5-rc2, but
this is expected as it depends on the another recently merged patch
in linux-next. Perhaps I should have mentioned this in the commit
message.

Anyway, just checked with next-20160205 and it works for me - tested
with 3 different cards. Not sure why it does not work for you.
Could you please check if you have the following patch in your tree:

4fbdc4e6adbc arm64: dts: apq8016-sbc: add regulators support
$ git tag --contains 4fbdc4e6adbc
next-20160201
next-20160202
next-20160203
next-20160204
next-20160205

BR,
Georgi

[toc] | [prev] | [next] | [standalone]


#1329676

FromKevin Hilman <khilman@baylibre.com>
Date2016-02-09 00:10 +0100
Message-ID<r036q-3wa-15@gated-at.bofh.it>
In reply to#1327971
Georgi Djakov <georgi.djakov@linaro.org> writes:

> On 02/05/2016 12:44 AM, Kevin Hilman wrote:
>> On Thu, Feb 4, 2016 at 2:06 PM, Kevin Hilman <khilman@baylibre.com> wrote:
>>> Georgi Djakov <georgi.djakov@linaro.org> writes:
>>>
>>>> Add the necessary properties to enable the SD-card on db410c boards.
>>>>
>>>> Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
>>>
>>> I tried this with 2 different SD cards on my dragonboard 410c but it's
>>> not detecting either card.
>> 
>> To be more precise, I tried this patch on v4.5-rc1 and today's
>> linux-next using the default defconfig + CONFIG_MMC_SDHCI_MSM=y, and
>> see the same voltage errors on both.
>>
>
> Hi Kevin, thanks for trying this. I got the same with v4.5-rc2, but
> this is expected as it depends on the another recently merged patch
> in linux-next. Perhaps I should have mentioned this in the commit
> message.
>
> Anyway, just checked with next-20160205 and it works for me - tested
> with 3 different cards. Not sure why it does not work for you.
> Could you please check if you have the following patch in your tree:

I re-tested with next-20160205 and it seems to work fine.

Feel free to add

Tested-by: Kevin Hilman <khilman@baylibre.com>

Thanks,

Kevin

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web