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 14c220d87807d5ab28a7f465fa17a497cfb6f069..55c5e1fdddc72ea8e73630ea3bb6a49b2d4cd051 100644 (file)
                                 <&clkmgr STRATIX10_SDMMC_CLK>;
                        clock-names = "biu", "ciu";
                        iommus = <&smmu 5>;
+                       altr,sysmgr-syscon = <&sysmgr 0x28 4>;
                        status = "disabled";
                };
 
index 48424e459f125aa0c82e3bbcd4c8314748eac7c3..19e7284b4cd5fae841f979bc4d253b0ef2ebb3a7 100644 (file)
        cap-mmc-highspeed;
        broken-cd;
        bus-width = <4>;
+       clk-phase-sd-hs = <0>, <135>;
 };
 
 &osc1 {
index 7bbec8aafa628d365c7dc7036d42c57015450255..849b46dd80982029085c315dbc11cfba187e6c6c 100644 (file)
                                 <&clkmgr AGILEX_SDMMC_CLK>;
                        clock-names = "biu", "ciu";
                        iommus = <&smmu 5>;
+                       altr,sysmgr-syscon = <&sysmgr 0x28 4>;
                        status = "disabled";
                };
 
index 26cd3c121757401f0697378248e0e6a89693c975..07c3f887661377808b364b21c128573484a1d2e1 100644 (file)
@@ -83,6 +83,7 @@
        cap-sd-highspeed;
        broken-cd;
        bus-width = <4>;
+       clk-phase-sd-hs = <0>, <135>;
 };
 
 &osc1 {
index 62c66e52b65628758e644d9b22038870db18a660..08c08857127067d2242ac3a88089fda9498d3811 100644 (file)
@@ -74,6 +74,7 @@
        cap-sd-highspeed;
        broken-cd;
        bus-width = <4>;
+       clk-phase-sd-hs = <0>, <135>;
 };
 
 &osc1 {