arm64: dts: msm8996: Add UFS PHY reset controller
authorEvan Green <evgreen@chromium.org>
Thu, 21 Mar 2019 17:17:57 +0000 (10:17 -0700)
committerAndy Gross <agross@kernel.org>
Thu, 30 May 2019 02:31:08 +0000 (21:31 -0500)
Add the reset controller for the UFS controller, and wire it up
so that the UFS PHY can initialize itself without relying on
implicit sequencing between the two drivers.

Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Evan Green <evgreen@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <agross@kernel.org>
arch/arm64/boot/dts/qcom/msm8996.dtsi

index c4e7fde9d88ed9e5393564cdae323589400fd52a..0f234bef90ee85984f929bff5320106de1e8df31 100644 (file)
                        clock-names = "ref_clk_src", "ref_clk";
                        clocks = <&rpmcc RPM_SMD_LN_BB_CLK>,
                                 <&gcc GCC_UFS_CLKREF_CLK>;
+                       resets = <&ufshc 0>;
                        status = "disabled";
                };
 
-               ufshc@624000 {
+               ufshc: ufshc@624000 {
                        compatible = "qcom,ufshc";
                        reg = <0x624000 0x2500>;
                        interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>;
                                <0 0>;
 
                        lanes-per-direction = <1>;
+                       #reset-cells = <1>;
                        status = "disabled";
 
                        ufs_variant {