Skip to content

Commit fcfbb8d

Browse files
Yangtao Liwens
authored andcommitted
arm64: allwinner: a100: Add MMC related nodes
The A100 has 3 MMC controllers, one of them being especially targeted to eMMC. Let's add nodes on dts. Signed-off-by: Yangtao Li <frank@allwinnertech.com> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Cody Eksal <masterr3c0rd@epochal.quest> Link: https://patch.msgid.link/20241031070232.1793078-10-masterr3c0rd@epochal.quest Signed-off-by: Chen-Yu Tsai <wens@csie.org>
1 parent c3cc9b0 commit fcfbb8d

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,83 @@
169169
interrupt-controller;
170170
#interrupt-cells = <3>;
171171

172+
mmc0_pins: mmc0-pins {
173+
pins = "PF0", "PF1", "PF2", "PF3",
174+
"PF4", "PF5";
175+
function = "mmc0";
176+
drive-strength = <30>;
177+
bias-pull-up;
178+
};
179+
180+
/omit-if-no-ref/
181+
mmc1_pins: mmc1-pins {
182+
pins = "PG0", "PG1", "PG2", "PG3",
183+
"PG4", "PG5";
184+
function = "mmc1";
185+
drive-strength = <30>;
186+
bias-pull-up;
187+
};
188+
189+
mmc2_pins: mmc2-pins {
190+
pins = "PC0", "PC1", "PC5", "PC6",
191+
"PC8", "PC9", "PC10", "PC11",
192+
"PC13", "PC14", "PC15", "PC16";
193+
function = "mmc2";
194+
drive-strength = <30>;
195+
bias-pull-up;
196+
};
197+
172198
uart0_pb_pins: uart0-pb-pins {
173199
pins = "PB9", "PB10";
174200
function = "uart0";
175201
};
176202
};
177203

204+
mmc0: mmc@4020000 {
205+
compatible = "allwinner,sun50i-a100-mmc";
206+
reg = <0x04020000 0x1000>;
207+
clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
208+
clock-names = "ahb", "mmc";
209+
resets = <&ccu RST_BUS_MMC0>;
210+
reset-names = "ahb";
211+
interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
212+
pinctrl-names = "default";
213+
pinctrl-0 = <&mmc0_pins>;
214+
status = "disabled";
215+
#address-cells = <1>;
216+
#size-cells = <0>;
217+
};
218+
219+
mmc1: mmc@4021000 {
220+
compatible = "allwinner,sun50i-a100-mmc";
221+
reg = <0x04021000 0x1000>;
222+
clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
223+
clock-names = "ahb", "mmc";
224+
resets = <&ccu RST_BUS_MMC1>;
225+
reset-names = "ahb";
226+
interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
227+
pinctrl-names = "default";
228+
pinctrl-0 = <&mmc1_pins>;
229+
status = "disabled";
230+
#address-cells = <1>;
231+
#size-cells = <0>;
232+
};
233+
234+
mmc2: mmc@4022000 {
235+
compatible = "allwinner,sun50i-a100-emmc";
236+
reg = <0x04022000 0x1000>;
237+
clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
238+
clock-names = "ahb", "mmc";
239+
resets = <&ccu RST_BUS_MMC2>;
240+
reset-names = "ahb";
241+
interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
242+
pinctrl-names = "default";
243+
pinctrl-0 = <&mmc2_pins>;
244+
status = "disabled";
245+
#address-cells = <1>;
246+
#size-cells = <0>;
247+
};
248+
178249
uart0: serial@5000000 {
179250
compatible = "snps,dw-apb-uart";
180251
reg = <0x05000000 0x400>;

0 commit comments

Comments
 (0)