]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sm7125-xiaomi-common: Add reset-gpios for ufs_mem_hc
authorDanila Tikhonov <danila@jiaxyga.com>
Wed, 31 Jul 2024 18:24:12 +0000 (21:24 +0300)
committerBjorn Andersson <andersson@kernel.org>
Thu, 15 Aug 2024 02:48:17 +0000 (21:48 -0500)
The SC7180/SM7125 SoCs have a special pin for UFS reset. Generally, this
pin is the same for all devices on the same SoC because it is hardcoded
in the pinctrl driver. Therefore, it might seem appropriate to add this
pin configuration in sc7180.dtsi. However, this pin is defined in the
device-specific DTS files instead of the SoC-level DTS files in all
Qualcomm DTS. To maintain consistency with this approach, we will follow
the same style.

Add reset-gpios to ufs_mem_hc.

Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
Link: https://lore.kernel.org/r/20240731182412.27966-1-danila@jiaxyga.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm7125-xiaomi-common.dtsi

index 29289fa41b1344c002e31920ef2dd230eef1bc67..b9cff60efe6fc07811d01f927ac3e4145e5e6961 100644 (file)
 };
 
 &ufs_mem_hc {
+       reset-gpios = <&tlmm 119 GPIO_ACTIVE_LOW>;
+
        vcc-supply = <&vreg_l19a_3p0>;
        vcc-max-microamp = <600000>;
        vccq2-supply = <&vreg_l12a_1p8>;