Skip to content

Commit 5549d1e

Browse files
committed
Merge tag 'qcom-arm64-fixes-for-6.9-2' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux into arm/fixes
One more Qualcomm Arm64 DeviceTree fix for v6.9 On ths SA8155P automotive platform, the wrong gpio controller is defined for the SD-card detect pin, which depending on probe ordering of things cause ethernet to be broken. The card detect pin reference is corrected to solve this problem. * tag 'qcom-arm64-fixes-for-6.9-2' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux: arm64: dts: qcom: sa8155p-adp: fix SDHC2 CD pin configuration Link: https://lore.kernel.org/r/20240427153817.1430382-1-andersson@kernel.org Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents e845bcc + 819fe8c commit 5549d1e

1 file changed

Lines changed: 13 additions & 17 deletions

File tree

arch/arm64/boot/dts/qcom/sa8155p-adp.dts

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,16 @@
367367
};
368368
};
369369

370+
&pmm8155au_1_gpios {
371+
pmm8155au_1_sdc2_cd: sdc2-cd-default-state {
372+
pins = "gpio4";
373+
function = "normal";
374+
input-enable;
375+
bias-pull-up;
376+
power-source = <0>;
377+
};
378+
};
379+
370380
&qupv3_id_1 {
371381
status = "okay";
372382
};
@@ -384,10 +394,10 @@
384394
&sdhc_2 {
385395
status = "okay";
386396

387-
cd-gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
397+
cd-gpios = <&pmm8155au_1_gpios 4 GPIO_ACTIVE_LOW>;
388398
pinctrl-names = "default", "sleep";
389-
pinctrl-0 = <&sdc2_on>;
390-
pinctrl-1 = <&sdc2_off>;
399+
pinctrl-0 = <&sdc2_on &pmm8155au_1_sdc2_cd>;
400+
pinctrl-1 = <&sdc2_off &pmm8155au_1_sdc2_cd>;
391401
vqmmc-supply = <&vreg_l13c_2p96>; /* IO line power */
392402
vmmc-supply = <&vreg_l17a_2p96>; /* Card power line */
393403
bus-width = <4>;
@@ -505,13 +515,6 @@
505515
bias-pull-up; /* pull up */
506516
drive-strength = <16>; /* 16 MA */
507517
};
508-
509-
sd-cd-pins {
510-
pins = "gpio96";
511-
function = "gpio";
512-
bias-pull-up; /* pull up */
513-
drive-strength = <2>; /* 2 MA */
514-
};
515518
};
516519

517520
sdc2_off: sdc2-off-state {
@@ -532,13 +535,6 @@
532535
bias-pull-up; /* pull up */
533536
drive-strength = <2>; /* 2 MA */
534537
};
535-
536-
sd-cd-pins {
537-
pins = "gpio96";
538-
function = "gpio";
539-
bias-pull-up; /* pull up */
540-
drive-strength = <2>; /* 2 MA */
541-
};
542538
};
543539

544540
usb2phy_ac_en1_default: usb2phy-ac-en1-default-state {

0 commit comments

Comments
 (0)