arm64: dts: qcom: sm8350-mtp: enable UFS nodes
authorVinod Koul <vkoul@kernel.org>
Thu, 4 Feb 2021 17:09:06 +0000 (22:39 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 12 Mar 2021 02:22:40 +0000 (20:22 -0600)
Enabled the UFS node found in SM8350-MTP platform, also add the
regulators associated with UFS HC and UFS phy to these nodes.

Signed-off-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20210204170907.63545-6-vkoul@kernel.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/sm8350-mtp.dts

index a2baa1a..2675afb 100644 (file)
@@ -5,6 +5,7 @@
 
 /dts-v1/;
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
 #include "sm8350.dtsi"
 
        status = "okay";
 };
 
+&ufs_mem_hc {
+       status = "okay";
+
+       reset-gpios = <&tlmm 203 GPIO_ACTIVE_LOW>;
+
+       vcc-supply = <&vreg_l7b_2p96>;
+       vcc-max-microamp = <800000>;
+       vccq-supply = <&vreg_l9b_1p2>;
+       vccq-max-microamp = <900000>;
+};
+
+&ufs_mem_phy {
+       status = "okay";
+
+       vdda-phy-supply = <&vreg_l5b_0p88>;
+       vdda-max-microamp = <91600>;
+       vdda-pll-supply = <&vreg_l6b_1p2>;
+       vdda-pll-max-microamp = <19000>;
+};
+
 &usb_1 {
        status = "okay";
 };