@@ -11,10 +11,17 @@ Required properties:
PLL clock.
"altr,socfpga-gate-clk" - Clocks that directly feed peripherals and
can get gated.
+ "altr,socfpga-sdmmc-sdr-clk" - Clock that controls the SD/MMC SDR phase
+ shift settings for the SD/MMC
-- reg : shall be the control register offset from CLOCK_MANAGER's base for the clock.
+- reg : shall be one of the following:
+ * For the "altr,socfpga-sdmmc-sdr-clk" clock, reg will the register
+ offset that controls the SD/MMC SDR phase shift settings.
+ * For all of the other clocks, control register offset from
+ CLOCK_MANAGER's base for the clock.
- clocks : shall be the input parent clock phandle for the clock. This is
- either an oscillator or a pll output.
+ either an oscillator or a pll output. This is an optional field for
+ the "altr,socfpga-sdmmc-sdr-clk" clock.
- #clock-cells : from common clock binding, shall be set to 0.
Optional properties:
@@ -436,6 +436,12 @@
clocks = <&f2s_periph_ref_clk>, <&main_qspi_clk>, <&per_qspi_clk>;
clk-gate = <0xa0 11>;
};
+
+ sdr_mmc_clk: sdr_mmc_clk {
+ #clock-cells = <0>;
+ compatible = "altr,socfpga-sdmmc-sdr-clk";
+ reg = <0x108>;
+ };
};
};
@@ -469,6 +475,17 @@
cache-level = <2>;
};
+ mmc: dwmmc0@ff704000 {
+ compatible = "snps,dw-mshc";
+ reg = <0xff704000 0x1000>;
+ interrupts = <0 139 4>;
+ fifo-depth = <0x400>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clocks = <&l4_mp_clk>, <&sdmmc_clk>, <&sdr_mmc_clk>;
+ clock-names = "biu", "ciu", "sdr_mmc_clk";
+ };
+
/* Local timer */
timer@fffec600 {
compatible = "arm,cortex-a9-twd-timer";
@@ -523,7 +540,7 @@
};
sysmgr@ffd08000 {
- compatible = "altr,sys-mgr";
+ compatible = "altr,sys-mgr", "syscon";
reg = <0xffd08000 0x4000>;
};
};
@@ -27,6 +27,18 @@
};
};
+ dwmmc0@ff704000 {
+ num-slots = <1>;
+ supports-highspeed;
+ broken-cd;
+ samsung,dw-mshc-sdr-timing = <0 3>;
+
+ slot@0 {
+ reg = <0>;
+ bus-width = <4>;
+ };
+ };
+
serial0@ffc02000 {
clock-frequency = <100000000>;
};
@@ -28,6 +28,18 @@
};
};
+ dwmmc0@ff704000 {
+ num-slots = <1>;
+ supports-highspeed;
+ broken-cd;
+ samsung,dw-mshc-sdr-timing = <0 3>;
+
+ slot@0 {
+ reg = <0>;
+ bus-width = <4>;
+ };
+ };
+
ethernet@ff702000 {
phy-mode = "rgmii";
phy-addr = <0xffffffff>; /* probe for phy addr */
@@ -41,6 +41,18 @@
};
};
+ dwmmc0@ff704000 {
+ num-slots = <1>;
+ supports-highspeed;
+ broken-cd;
+ samsung,dw-mshc-sdr-timing = <0 3>;
+
+ slot@0 {
+ reg = <0>;
+ bus-width = <4>;
+ };
+ };
+
ethernet@ff700000 {
phy-mode = "gmii";
status = "okay";