2 * Copyright (c) 2016 MediaTek Inc.
3 * Author: John Crispin <blogic@openwrt.org>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
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.
17 #include "_mt7623.dtsi"
18 #include <dt-bindings/gpio/gpio.h>
21 model = "MediaTek MT7623 eMMC reference board";
22 compatible = "mediatek,mt7623-rfb-emmc", "mediatek,mt7623";
26 bootargs = "earlyprintk block2mtd.block2mtd=/dev/mmcblk0,65536,eMMC,5 mtdparts=eMMC:256k(mbr)ro,512k(uboot)ro,256k(config)ro,256k(factory)ro,32M(kernel),32M(recovery),1024M(rootfs),2048M(usrdata),-(bmtpool) rootfstype=squashfs,jffs2";
30 reg = <0 0x80000000 0 0x20000000>;
33 usb_p1_vbus: regulator@0 {
34 compatible = "regulator-fixed";
35 regulator-name = "usb_vbus";
36 regulator-min-microvolt = <5000000>;
37 regulator-max-microvolt = <5000000>;
38 gpio = <&pio 135 GPIO_ACTIVE_HIGH>;
43 compatible = "mediatek,mt7530";
48 dsa,mii-bus = <&mdio0>;
50 pinctrl-names = "default";
51 pinctrl-0 = <ð_default>;
53 core-supply = <&mt6323_vpa_reg>;
54 io-supply = <&mt6323_vemc3v3_reg>;
99 proc-supply = <&mt6323_vproc_reg>;
103 proc-supply = <&mt6323_vproc_reg>;
107 proc-supply = <&mt6323_vproc_reg>;
111 proc-supply = <&mt6323_vproc_reg>;
116 compatible = "mediatek,mt6323";
117 interrupt-parent = <&pio>;
118 interrupts = <150 IRQ_TYPE_LEVEL_HIGH>;
119 interrupt-controller;
120 #interrupt-cells = <2>;
122 mt6323regulator: mt6323regulator{
123 compatible = "mediatek,mt6323-regulator";
125 mt6323_vproc_reg: buck_vproc{
126 regulator-name = "vproc";
127 regulator-min-microvolt = < 700000>;
128 regulator-max-microvolt = <1350000>;
129 regulator-ramp-delay = <12500>;
134 mt6323_vsys_reg: buck_vsys{
135 regulator-name = "vsys";
136 regulator-min-microvolt = <1400000>;
137 regulator-max-microvolt = <2987500>;
138 regulator-ramp-delay = <25000>;
143 mt6323_vpa_reg: buck_vpa{
144 regulator-name = "vpa";
145 regulator-min-microvolt = < 500000>;
146 regulator-max-microvolt = <3650000>;
149 mt6323_vtcxo_reg: ldo_vtcxo{
150 regulator-name = "vtcxo";
151 regulator-min-microvolt = <2800000>;
152 regulator-max-microvolt = <2800000>;
153 regulator-enable-ramp-delay = <90>;
158 mt6323_vcn28_reg: ldo_vcn28{
159 regulator-name = "vcn28";
160 regulator-min-microvolt = <2800000>;
161 regulator-max-microvolt = <2800000>;
162 regulator-enable-ramp-delay = <185>;
165 mt6323_vcn33_bt_reg: ldo_vcn33_bt{
166 regulator-name = "vcn33_bt";
167 regulator-min-microvolt = <3300000>;
168 regulator-max-microvolt = <3600000>;
169 regulator-enable-ramp-delay = <185>;
172 mt6323_vcn33_wifi_reg: ldo_vcn33_wifi{
173 regulator-name = "vcn33_wifi";
174 regulator-min-microvolt = <3300000>;
175 regulator-max-microvolt = <3600000>;
176 regulator-enable-ramp-delay = <185>;
179 mt6323_va_reg: ldo_va{
180 regulator-name = "va";
181 regulator-min-microvolt = <2800000>;
182 regulator-max-microvolt = <2800000>;
183 regulator-enable-ramp-delay = <216>;
188 mt6323_vcama_reg: ldo_vcama{
189 regulator-name = "vcama";
190 regulator-min-microvolt = <1500000>;
191 regulator-max-microvolt = <2800000>;
192 regulator-enable-ramp-delay = <216>;
195 mt6323_vio28_reg: ldo_vio28{
196 regulator-name = "vio28";
197 regulator-min-microvolt = <2800000>;
198 regulator-max-microvolt = <2800000>;
199 regulator-enable-ramp-delay = <216>;
204 mt6323_vusb_reg: ldo_vusb{
205 regulator-name = "vusb";
206 regulator-min-microvolt = <3300000>;
207 regulator-max-microvolt = <3300000>;
208 regulator-enable-ramp-delay = <216>;
212 mt6323_vmc_reg: ldo_vmc{
213 regulator-name = "vmc";
214 regulator-min-microvolt = <1800000>;
215 regulator-max-microvolt = <3300000>;
216 regulator-enable-ramp-delay = <36>;
220 mt6323_vmch_reg: ldo_vmch{
221 regulator-name = "vmch";
222 regulator-min-microvolt = <3000000>;
223 regulator-max-microvolt = <3300000>;
224 regulator-enable-ramp-delay = <36>;
228 mt6323_vemc3v3_reg: ldo_vemc3v3{
229 regulator-name = "vemc3v3";
230 regulator-min-microvolt = <3000000>;
231 regulator-max-microvolt = <3300000>;
232 regulator-enable-ramp-delay = <36>;
236 mt6323_vgp1_reg: ldo_vgp1{
237 regulator-name = "vgp1";
238 regulator-min-microvolt = <1200000>;
239 regulator-max-microvolt = <3300000>;
240 regulator-enable-ramp-delay = <216>;
243 mt6323_vgp2_reg: ldo_vgp2{
244 regulator-name = "vgp2";
245 regulator-min-microvolt = <1200000>;
246 regulator-max-microvolt = <3000000>;
247 regulator-enable-ramp-delay = <216>;
250 mt6323_vgp3_reg: ldo_vgp3{
251 regulator-name = "vgp3";
252 regulator-min-microvolt = <1200000>;
253 regulator-max-microvolt = <1800000>;
254 regulator-enable-ramp-delay = <216>;
257 mt6323_vcn18_reg: ldo_vcn18{
258 regulator-name = "vcn18";
259 regulator-min-microvolt = <1800000>;
260 regulator-max-microvolt = <1800000>;
261 regulator-enable-ramp-delay = <216>;
264 mt6323_vsim1_reg: ldo_vsim1{
265 regulator-name = "vsim1";
266 regulator-min-microvolt = <1800000>;
267 regulator-max-microvolt = <3000000>;
268 regulator-enable-ramp-delay = <216>;
271 mt6323_vsim2_reg: ldo_vsim2{
272 regulator-name = "vsim2";
273 regulator-min-microvolt = <1800000>;
274 regulator-max-microvolt = <3000000>;
275 regulator-enable-ramp-delay = <216>;
278 mt6323_vrtc_reg: ldo_vrtc{
279 regulator-name = "vrtc";
280 regulator-min-microvolt = <2800000>;
281 regulator-max-microvolt = <2800000>;
286 mt6323_vcamaf_reg: ldo_vcamaf{
287 regulator-name = "vcamaf";
288 regulator-min-microvolt = <1200000>;
289 regulator-max-microvolt = <3300000>;
290 regulator-enable-ramp-delay = <216>;
293 mt6323_vibr_reg: ldo_vibr{
294 regulator-name = "vibr";
295 regulator-min-microvolt = <1200000>;
296 regulator-max-microvolt = <3300000>;
297 regulator-enable-ramp-delay = <36>;
300 mt6323_vrf18_reg: ldo_vrf18{
301 regulator-name = "vrf18";
302 regulator-min-microvolt = <1825000>;
303 regulator-max-microvolt = <1825000>;
304 regulator-enable-ramp-delay = <187>;
307 mt6323_vm_reg: ldo_vm{
308 regulator-name = "vm";
309 regulator-min-microvolt = <1200000>;
310 regulator-max-microvolt = <1800000>;
311 regulator-enable-ramp-delay = <216>;
316 mt6323_vio18_reg: ldo_vio18{
317 regulator-name = "vio18";
318 regulator-min-microvolt = <1800000>;
319 regulator-max-microvolt = <1800000>;
320 regulator-enable-ramp-delay = <216>;
325 mt6323_vcamd_reg: ldo_vcamd{
326 regulator-name = "vcamd";
327 regulator-min-microvolt = <1200000>;
328 regulator-max-microvolt = <1800000>;
329 regulator-enable-ramp-delay = <216>;
332 mt6323_vcamio_reg: ldo_vcamio{
333 regulator-name = "vcamio";
334 regulator-min-microvolt = <1800000>;
335 regulator-max-microvolt = <1800000>;
336 regulator-enable-ramp-delay = <216>;
348 pinctrl-names = "default", "state_uhs";
349 pinctrl-0 = <&mmc0_pins_default>;
350 pinctrl-1 = <&mmc0_pins_uhs>;
352 max-frequency = <50000000>;
354 vmmc-supply = <&mt6323_vemc3v3_reg>;
355 vqmmc-supply = <&mt6323_vio18_reg>;
361 pinctrl-names = "default", "state_uhs";
362 pinctrl-0 = <&mmc1_pins_default>;
363 pinctrl-1 = <&mmc1_pins_uhs>;
365 max-frequency = <50000000>;
368 // cd-gpios = <&pio 132 0>;
369 vmmc-supply = <&mt6323_vmch_reg>;
370 vqmmc-supply = <&mt6323_vmc_reg>;
374 mmc0_pins_default: mmc0default {
376 pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>,
377 <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>,
378 <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>,
379 <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>,
380 <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>,
381 <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>,
382 <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>,
383 <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>,
384 <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>;
390 pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>;
395 pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>;
400 mmc0_pins_uhs: mmc0 {
402 pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>,
403 <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>,
404 <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>,
405 <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>,
406 <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>,
407 <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>,
408 <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>,
409 <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>,
410 <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>;
412 drive-strength = <MTK_DRIVE_2mA>;
413 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
417 pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>;
418 drive-strength = <MTK_DRIVE_2mA>;
419 bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
423 pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>;
428 mmc1_pins_default: mmc1default {
430 pinmux = <MT7623_PIN_107_MSDC1_DAT0_FUNC_MSDC1_DAT0>,
431 <MT7623_PIN_108_MSDC1_DAT1_FUNC_MSDC1_DAT1>,
432 <MT7623_PIN_109_MSDC1_DAT2_FUNC_MSDC1_DAT2>,
433 <MT7623_PIN_110_MSDC1_DAT3_FUNC_MSDC1_DAT3>,
434 <MT7623_PIN_105_MSDC1_CMD_FUNC_MSDC1_CMD>;
436 drive-strength = <MTK_DRIVE_4mA>;
437 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
441 pinmux = <MT7623_PIN_106_MSDC1_CLK_FUNC_MSDC1_CLK>;
443 drive-strength = <MTK_DRIVE_4mA>;
447 // pinmux = <MT8173_PIN_132_I2S0_DATA1_FUNC_GPIO132>;
452 mmc1_pins_uhs: mmc1 {
454 pinmux = <MT7623_PIN_107_MSDC1_DAT0_FUNC_MSDC1_DAT0>,
455 <MT7623_PIN_108_MSDC1_DAT1_FUNC_MSDC1_DAT1>,
456 <MT7623_PIN_109_MSDC1_DAT2_FUNC_MSDC1_DAT2>,
457 <MT7623_PIN_110_MSDC1_DAT3_FUNC_MSDC1_DAT3>,
458 <MT7623_PIN_105_MSDC1_CMD_FUNC_MSDC1_CMD>;
460 drive-strength = <MTK_DRIVE_4mA>;
461 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
465 pinmux = <MT7623_PIN_106_MSDC1_CLK_FUNC_MSDC1_CLK>;
466 drive-strength = <MTK_DRIVE_4mA>;
467 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
473 pinmux = <MT7623_PIN_275_G2_MDC_FUNC_MDC>,
474 <MT7623_PIN_276_G2_MDIO_FUNC_MDIO>,
475 <MT7623_PIN_262_G2_TXEN_FUNC_G2_TXEN>,
476 <MT7623_PIN_263_G2_TXD3_FUNC_G2_TXD3>,
477 <MT7623_PIN_264_G2_TXD2_FUNC_G2_TXD2>,
478 <MT7623_PIN_265_G2_TXD1_FUNC_G2_TXD1>,
479 <MT7623_PIN_266_G2_TXD0_FUNC_G2_TXD0>,
480 <MT7623_PIN_267_G2_TXCLK_FUNC_G2_TXC>,
481 <MT7623_PIN_268_G2_RXCLK_FUNC_G2_RXC>,
482 <MT7623_PIN_269_G2_RXD0_FUNC_G2_RXD0>,
483 <MT7623_PIN_270_G2_RXD1_FUNC_G2_RXD1>,
484 <MT7623_PIN_271_G2_RXD2_FUNC_G2_RXD2>,
485 <MT7623_PIN_272_G2_RXD3_FUNC_G2_RXD3>,
486 <MT7623_PIN_274_G2_RXDV_FUNC_G2_RXDV>;
490 pinmux = <MT7623_PIN_15_GPIO15_FUNC_GPIO15>;
497 pinmux = <MT7623_PIN_204_PWM1_FUNC_PWM1>;
501 pinmux = <MT7623_PIN_205_PWM2_FUNC_PWM2>;
507 vusb33-supply = <&mt6323_vusb_reg>;
508 vbus-supply = <&usb_p1_vbus>;
525 mac-address = [00 11 22 33 44 56];
530 mac-address = [00 11 22 33 44 55];
533 phy-handle = <&phy5>;
537 phy5: ethernet-phy@5 {
539 phy-mode = "rgmii-rxid";
544 pinctrl-names = "default";
545 pinctrl-0 = <&pwm_pins>;