aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Lüssing <linus.luessing@c0d3.blue>2018-03-17 16:11:14 -0400
committerKevin Hilman <khilman@baylibre.com>2018-03-20 17:32:31 -0400
commite03efbce6bebf55111ec8e22e2f545f72aff6cfd (patch)
tree412435ad6b07f47a70e56f428b54c6b5fed9b010
parent7a6cc8be3938c322964065312d57439a92584488 (diff)
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 <linus.luessing@c0d3.blue> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
-rw-r--r--arch/arm/boot/dts/meson8b-odroidc1.dts58
-rw-r--r--arch/arm/boot/dts/meson8b.dtsi8
2 files changed, 66 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts
index d5e83051bb54..3a5603d95b70 100644
--- a/arch/arm/boot/dts/meson8b-odroidc1.dts
+++ b/arch/arm/boot/dts/meson8b-odroidc1.dts
@@ -54,6 +54,7 @@
54 54
55 aliases { 55 aliases {
56 serial0 = &uart_AO; 56 serial0 = &uart_AO;
57 mmc0 = &sd_card_slot;
57 }; 58 };
58 59
59 memory { 60 memory {
@@ -69,6 +70,37 @@
69 default-state = "off"; 70 default-state = "off";
70 }; 71 };
71 }; 72 };
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 };
72}; 104};
73 105
74&uart_AO { 106&uart_AO {
@@ -100,6 +132,32 @@
100 status = "okay"; 132 status = "okay";
101}; 133};
102 134
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
103&ethmac { 161&ethmac {
104 status = "okay"; 162 status = "okay";
105 163
diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi
index 5f7841b2d163..f9eceab4e3db 100644
--- a/arch/arm/boot/dts/meson8b.dtsi
+++ b/arch/arm/boot/dts/meson8b.dtsi
@@ -206,6 +206,14 @@
206 function = "ethernet"; 206 function = "ethernet";
207 }; 207 };
208 }; 208 };
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 };
209 }; 217 };
210}; 218};
211 219