* [PATCH] arm64: dts: apq8016-sbc: Add DT node for the uSD SDHC interface
@ 2016-02-04 12:53 Georgi Djakov
2016-02-04 22:06 ` Kevin Hilman
0 siblings, 1 reply; 5+ messages in thread
From: Georgi Djakov @ 2016-02-04 12:53 UTC (permalink / raw)
To: andy.gross; +Cc: devicetree, linux-kernel, linux-arm-msm, georgi.djakov
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";
+ };
};
};
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: dts: apq8016-sbc: Add DT node for the uSD SDHC interface
2016-02-04 12:53 [PATCH] arm64: dts: apq8016-sbc: Add DT node for the uSD SDHC interface Georgi Djakov
@ 2016-02-04 22:06 ` Kevin Hilman
2016-02-04 22:44 ` Kevin Hilman
0 siblings, 1 reply; 5+ messages in thread
From: Kevin Hilman @ 2016-02-04 22:06 UTC (permalink / raw)
To: Georgi Djakov; +Cc: andy.gross, devicetree, linux-kernel, linux-arm-msm
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: dts: apq8016-sbc: Add DT node for the uSD SDHC interface
2016-02-04 22:06 ` Kevin Hilman
@ 2016-02-04 22:44 ` Kevin Hilman
2016-02-05 17:45 ` Georgi Djakov
0 siblings, 1 reply; 5+ messages in thread
From: Kevin Hilman @ 2016-02-04 22:44 UTC (permalink / raw)
To: Georgi Djakov; +Cc: Andy Gross, devicetree, lkml, linux-arm-msm
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: dts: apq8016-sbc: Add DT node for the uSD SDHC interface
2016-02-04 22:44 ` Kevin Hilman
@ 2016-02-05 17:45 ` Georgi Djakov
[not found] ` <56B4DFC5.7030700-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Georgi Djakov @ 2016-02-05 17:45 UTC (permalink / raw)
To: Kevin Hilman; +Cc: Andy Gross, devicetree, lkml, linux-arm-msm
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: dts: apq8016-sbc: Add DT node for the uSD SDHC interface
[not found] ` <56B4DFC5.7030700-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
@ 2016-02-08 23:02 ` Kevin Hilman
0 siblings, 0 replies; 5+ messages in thread
From: Kevin Hilman @ 2016-02-08 23:02 UTC (permalink / raw)
To: Georgi Djakov
Cc: Andy Gross, devicetree-u79uwXL29TY76Z2rM5mHXA, lkml,
linux-arm-msm-u79uwXL29TY76Z2rM5mHXA
Georgi Djakov <georgi.djakov-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> writes:
> On 02/05/2016 12:44 AM, Kevin Hilman wrote:
>> On Thu, Feb 4, 2016 at 2:06 PM, Kevin Hilman <khilman-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> wrote:
>>> Georgi Djakov <georgi.djakov-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> writes:
>>>
>>>> Add the necessary properties to enable the SD-card on db410c boards.
>>>>
>>>> Signed-off-by: Georgi Djakov <georgi.djakov-QSEj5FYQhm4dnm+yROfE0A@public.gmane.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-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
Thanks,
Kevin
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-02-08 23:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-04 12:53 [PATCH] arm64: dts: apq8016-sbc: Add DT node for the uSD SDHC interface Georgi Djakov
2016-02-04 22:06 ` Kevin Hilman
2016-02-04 22:44 ` Kevin Hilman
2016-02-05 17:45 ` Georgi Djakov
[not found] ` <56B4DFC5.7030700-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-02-08 23:02 ` Kevin Hilman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).