Re: WIP: UFS on apq8098

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/3/2018 8:53 AM, Marc Gonzalez wrote:
On 03/12/2018 16:47, Jeffrey Hugo wrote:

On 12/3/2018 8:27 AM, Jeffrey Hugo wrote:

On 12/3/2018 8:18 AM, Marc Gonzalez wrote:

+        ufsphy: phy@1da7000 {
+            compatible = "qcom,sdm845-qmp-ufs-phy";
+            reg = <0x1da7000 0x18c>;
+            #address-cells = <1>;
+            #size-cells = <1>;
+            ranges;
+            clock-names =
+                "ref_clk_src",
+                "ref_clk",
+                "ref_aux_clk";
+            clocks =
+                <&rpmcc 0>,
+                <&gcc GCC_UFS_CLKREF_CLK>,

Also, "GCC_UFS_CLKREF_CLK" is not defined in
include/dt-bindings/clock/qcom,gcc-msm8998.h which is probably the cause
of your -2 error listed above.

If it were undefined, dtc would have kicked me in the nads :-)

$ git grep GCC_UFS_CLKREF_CLK include
include/dt-bindings/clock/qcom,gcc-msm8996.h:#define GCC_UFS_CLKREF_CLK        215
include/dt-bindings/clock/qcom,gcc-msm8998.h:#define GCC_UFS_CLKREF_CLK        168

Not present in v4.20-rc5 nor linux-next. Did you add this yourself? If so, did you also update the driver?

include/dt-bindings/clock/qcom,gcc-sdm660.h:#define GCC_UFS_CLKREF_CLK          81

Documentation/devicetree/bindings/phy/qcom-qmp-phy.txt spells it out:
For "qcom,sdm845-qmp-ufs-phy", clock-names must contain "ref", "ref_aux".


--
Jeffrey Hugo
Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux