File tree Expand file tree Collapse file tree 2 files changed +66
-0
lines changed Expand file tree Collapse file tree 2 files changed +66
-0
lines changed Original file line number Diff line number Diff line change 5454
5555 aliases {
5656 serial0 = &uart_AO;
57+ mmc0 = &sd_card_slot;
5758 };
5859
5960 memory {
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 {
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ðmac {
104162 status = "okay";
105163
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments