diff mbox series

[V3] arm64: dts: qcom: qcs6490-rb3gen2: Add SD Card node

Message ID 20240919084826.1117-1-quic_sachgupt@quicinc.com (mailing list archive)
State Accepted
Commit c17818a429affa1bc7c755e67e236c628c4099aa
Headers show
Series [V3] arm64: dts: qcom: qcs6490-rb3gen2: Add SD Card node | expand

Commit Message

Sachin Gupta Sept. 19, 2024, 8:48 a.m. UTC
Add SD Card node for Qualcomm qcs6490-rb3gen2 Board.

Signed-off-by: Sachin Gupta <quic_sachgupt@quicinc.com>
---

Changes from v2:
 - Moved status "okay" at the last. (Thanks Dmitry)

Changes from v1:
 - Moving the pinctrl-related nodes below the PINCTRL comment and relocating
   the sd-cd node within the PINCTRL-related TLMM section. (Thanks Dmitry)
---
 arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 33 ++++++++++++++++++++
 1 file changed, 33 insertions(+)

Comments

Dmitry Baryshkov Sept. 19, 2024, 8:58 a.m. UTC | #1
On Thu, Sep 19, 2024 at 02:18:26PM GMT, Sachin Gupta wrote:
> Add SD Card node for Qualcomm qcs6490-rb3gen2 Board.
> 
> Signed-off-by: Sachin Gupta <quic_sachgupt@quicinc.com>
> ---
> 
> Changes from v2:
>  - Moved status "okay" at the last. (Thanks Dmitry)
> 
> Changes from v1:
>  - Moving the pinctrl-related nodes below the PINCTRL comment and relocating
>    the sd-cd node within the PINCTRL-related TLMM section. (Thanks Dmitry)
> ---
>  arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 33 ++++++++++++++++++++
>  1 file changed, 33 insertions(+)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Bjorn Andersson Oct. 7, 2024, 2:26 p.m. UTC | #2
On Thu, 19 Sep 2024 14:18:26 +0530, Sachin Gupta wrote:
> Add SD Card node for Qualcomm qcs6490-rb3gen2 Board.
> 
> 

Applied, thanks!

[1/1] arm64: dts: qcom: qcs6490-rb3gen2: Add SD Card node
      commit: c17818a429affa1bc7c755e67e236c628c4099aa

Best regards,
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
index 0d45662b8028..5d81fa2ce86a 100644
--- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
+++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
@@ -716,6 +716,18 @@ 
 	status = "okay";
 };
 
+&sdhc_2 {
+	pinctrl-0 = <&sdc2_clk>, <&sdc2_cmd>, <&sdc2_data>, <&sd_cd>;
+	pinctrl-1 = <&sdc2_clk_sleep>, <&sdc2_cmd_sleep>, <&sdc2_data_sleep>, <&sd_cd>;
+
+	vmmc-supply = <&vreg_l9c_2p96>;
+	vqmmc-supply = <&vreg_l6c_2p96>;
+
+	cd-gpios = <&tlmm 91 GPIO_ACTIVE_LOW>;
+
+	status = "okay";
+};
+
 &tlmm {
 	gpio-reserved-ranges = <32 2>, /* ADSP */
 			       <48 4>; /* NFC */
@@ -812,6 +824,21 @@ 
 	};
 };
 
+&sdc2_clk {
+	bias-disable;
+	drive-strength = <16>;
+};
+
+&sdc2_cmd {
+	bias-pull-up;
+	drive-strength = <10>;
+};
+
+&sdc2_data {
+	bias-pull-up;
+	drive-strength = <10>;
+};
+
 &tlmm {
 	lt9611_irq_pin: lt9611-irq-state {
 		pins = "gpio24";
@@ -819,4 +846,10 @@ 
 		drive-strength = <2>;
 		bias-disable;
 	};
+
+	sd_cd: sd-cd-state {
+		pins = "gpio91";
+		function = "gpio";
+		bias-pull-up;
+	};
 };