Skip to content

Commit e03efbc

Browse files
T-Xkhilman
authored andcommitted
ARM: dts: meson8b-odroidc1: add microSD support
The Odroid C1 features a microSD slot. This patch adds the necessary DT bindings to support it. Signed-off-by: Linus Lüssing <[email protected]> Signed-off-by: Kevin Hilman <[email protected]>
1 parent 7a6cc8b commit e03efbc

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed

arch/arm/boot/dts/meson8b-odroidc1.dts

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454

5555
aliases {
5656
serial0 = &uart_AO;
57+
mmc0 = &sd_card_slot;
5758
};
5859

5960
memory {
@@ -69,6 +70,37 @@
6970
default-state = "off";
7071
};
7172
};
73+
74+
tflash_vdd: regulator-tflash_vdd {
75+
/*
76+
* signal name from schematics: TFLASH_VDD_EN
77+
*/
78+
compatible = "regulator-fixed";
79+
80+
regulator-name = "TFLASH_VDD";
81+
regulator-min-microvolt = <3300000>;
82+
regulator-max-microvolt = <3300000>;
83+
84+
gpio = <&gpio GPIOY_12 GPIO_ACTIVE_HIGH>;
85+
enable-active-high;
86+
};
87+
88+
tf_io: gpio-regulator-tf_io {
89+
compatible = "regulator-gpio";
90+
91+
regulator-name = "TF_IO";
92+
regulator-min-microvolt = <1800000>;
93+
regulator-max-microvolt = <3300000>;
94+
95+
/*
96+
* signal name from schematics: TF_3V3N_1V8_EN
97+
*/
98+
gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
99+
gpios-states = <0>;
100+
101+
states = <3300000 0
102+
1800000 1>;
103+
};
72104
};
73105

74106
&uart_AO {
@@ -100,6 +132,32 @@
100132
status = "okay";
101133
};
102134

135+
&sdio {
136+
status = "okay";
137+
138+
pinctrl-0 = <&sd_b_pins>;
139+
pinctrl-names = "default";
140+
141+
/* SD card */
142+
sd_card_slot: slot@1 {
143+
compatible = "mmc-slot";
144+
reg = <1>;
145+
status = "okay";
146+
147+
bus-width = <4>;
148+
no-sdio;
149+
cap-mmc-highspeed;
150+
cap-sd-highspeed;
151+
disable-wp;
152+
153+
cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
154+
cd-inverted;
155+
156+
vmmc-supply = <&tflash_vdd>;
157+
vqmmc-supply = <&tf_io>;
158+
};
159+
};
160+
103161
&ethmac {
104162
status = "okay";
105163

arch/arm/boot/dts/meson8b.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,14 @@
206206
function = "ethernet";
207207
};
208208
};
209+
210+
sd_b_pins: sd-b {
211+
mux {
212+
groups = "sd_d0_b", "sd_d1_b", "sd_d2_b",
213+
"sd_d3_b", "sd_clk_b", "sd_cmd_b";
214+
function = "sd_b";
215+
};
216+
};
209217
};
210218
};
211219

0 commit comments

Comments
 (0)