arm64: dts: socfpga: Add clk-phase-sd-hs property to the sdmmc node
authorDinh Nguyen <dinguyen@kernel.org>
Fri, 16 Sep 2022 01:45:37 +0000 (20:45 -0500)
committerDinh Nguyen <dinguyen@kernel.org>
Fri, 18 Nov 2022 17:13:49 +0000 (11:13 -0600)
The sdmmc controller's CIU(Card Interface Unit) clock's phase can be
adjusted through the register in the system manager. Add the binding
"altr,sysmgr-syscon" to the SDMMC node for the driver to access the
system manager. Add the "clk-phase-sd-hs" property in the SDMMC node to
designate the smpsel and drvsel properties for the CIU clock.

Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts
arch/arm64/boot/dts/intel/socfpga_agilex.dtsi
arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts
arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts

index 14c220d..55c5e1f 100644 (file)
                                 <&clkmgr STRATIX10_SDMMC_CLK>;
                        clock-names = "biu", "ciu";
                        iommus = <&smmu 5>;
+                       altr,sysmgr-syscon = <&sysmgr 0x28 4>;
                        status = "disabled";
                };
 
index 48424e4..19e7284 100644 (file)
        cap-mmc-highspeed;
        broken-cd;
        bus-width = <4>;
+       clk-phase-sd-hs = <0>, <135>;
 };
 
 &osc1 {
index 7bbec8a..849b46d 100644 (file)
                                 <&clkmgr AGILEX_SDMMC_CLK>;
                        clock-names = "biu", "ciu";
                        iommus = <&smmu 5>;
+                       altr,sysmgr-syscon = <&sysmgr 0x28 4>;
                        status = "disabled";
                };
 
index 26cd3c1..07c3f88 100644 (file)
@@ -83,6 +83,7 @@
        cap-sd-highspeed;
        broken-cd;
        bus-width = <4>;
+       clk-phase-sd-hs = <0>, <135>;
 };
 
 &osc1 {
index 62c66e5..08c0885 100644 (file)
@@ -74,6 +74,7 @@
        cap-sd-highspeed;
        broken-cd;
        bus-width = <4>;
+       clk-phase-sd-hs = <0>, <135>;
 };
 
 &osc1 {