1/*
2 * Copyright (C) 2014-2015 Altera Corporation <www.altera.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 */
17
18/dts-v1/;
19#include "socfpga_arria10_socdk.dtsi"
20
21&mmc {
22	u-boot,dm-pre-reloc;
23	status = "okay";
24	num-slots = <1>;
25	cap-sd-highspeed;
26	broken-cd;
27	bus-width = <4>;
28};
29
30&eccmgr {
31	sdmmca-ecc@ff8c2c00 {
32		compatible = "altr,socfpga-sdmmc-ecc";
33		reg = <0xff8c2c00 0x400>;
34		altr,ecc-parent = <&mmc>;
35		interrupts = <15 IRQ_TYPE_LEVEL_HIGH>,
36			     <47 IRQ_TYPE_LEVEL_HIGH>,
37			     <16 IRQ_TYPE_LEVEL_HIGH>,
38			     <48 IRQ_TYPE_LEVEL_HIGH>;
39	};
40};
41
42/* Clock available early */
43&main_sdmmc_clk {
44	u-boot,dm-pre-reloc;
45};
46
47&peri_sdmmc_clk {
48	u-boot,dm-pre-reloc;
49};
50
51&sdmmc_free_clk {
52	u-boot,dm-pre-reloc;
53};
54
55&sdmmc_clk {
56	u-boot,dm-pre-reloc;
57};
58