2 * Copyright 2018 Kristian Evensen <kristian.evensen@gmail.com>
4 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 #include <dt-bindings/input/input.h>
12 compatible = "unielec,u7623-02-emmc", "mediatek,mt7623";
19 bootargs = "root=/dev/mmcblk0p2 rootfstype=squashfs,f2fs console=ttyS0,115200 blkdevparts=mmcblk0:3M@6M(recovery),256M@9M(root)";
20 stdout-path = "serial2:115200n8";
25 proc-supply = <&mt6323_vproc_reg>;
29 proc-supply = <&mt6323_vproc_reg>;
33 proc-supply = <&mt6323_vproc_reg>;
37 proc-supply = <&mt6323_vproc_reg>;
41 reg_1p8v: regulator-1p8v {
42 compatible = "regulator-fixed";
43 regulator-name = "fixed-1.8V";
44 regulator-min-microvolt = <1800000>;
45 regulator-max-microvolt = <1800000>;
50 reg_3p3v: regulator-3p3v {
51 compatible = "regulator-fixed";
52 regulator-name = "fixed-3.3V";
53 regulator-min-microvolt = <3300000>;
54 regulator-max-microvolt = <3300000>;
59 reg_5v: regulator-5v {
60 compatible = "regulator-fixed";
61 regulator-name = "fixed-5V";
62 regulator-min-microvolt = <5000000>;
63 regulator-max-microvolt = <5000000>;
69 compatible = "gpio-keys";
70 pinctrl-names = "default";
71 pinctrl-0 = <&key_pins_a>;
75 linux,code = <KEY_RESTART>;
76 gpios = <&pio 256 GPIO_ACTIVE_LOW>;
81 compatible = "gpio-leds";
82 pinctrl-names = "default";
83 pinctrl-0 = <&led_pins_unielec>;
86 label = "u7623-01:green:led3";
87 gpios = <&pio 14 GPIO_ACTIVE_LOW>;
91 label = "u7623-01:green:led4";
92 gpios = <&pio 15 GPIO_ACTIVE_LOW>;
105 compatible = "mediatek,eth-mac";
117 #address-cells = <1>;
121 compatible = "mediatek,mt7530";
127 compatible = "mediatek,mt7530";
128 #address-cells = <1>;
131 pinctrl-names = "default";
133 resets = <ðsys 2>;
135 core-supply = <&mt6323_vpa_reg>;
136 io-supply = <&mt6323_vemc3v3_reg>;
138 dsa,mii-bus = <&mdio>;
141 #address-cells = <1>;
190 pinctrl-names = "default", "state_uhs";
191 pinctrl-0 = <&mmc0_pins_default>;
192 pinctrl-1 = <&mmc0_pins_uhs>;
195 max-frequency = <50000000>;
197 vmmc-supply = <®_3p3v>;
198 vqmmc-supply = <®_1p8v>;
203 key_pins_a: keys-alt {
205 pinmux = <MT7623_PIN_256_GPIO256_FUNC_GPIO256>,
206 <MT7623_PIN_257_GPIO257_FUNC_GPIO257>;
211 led_pins_unielec: leds-unielec {
213 pinmux = <MT7623_PIN_14_GPIO14_FUNC_GPIO14>,
214 <MT7623_PIN_15_GPIO15_FUNC_GPIO15>;
218 mmc0_pins_default: mmc0default {
220 pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>,
221 <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>,
222 <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>,
223 <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>,
224 <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>,
225 <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>,
226 <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>,
227 <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>,
228 <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>;
234 pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>;
239 pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>;
244 mmc0_pins_uhs: mmc0 {
246 pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>,
247 <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>,
248 <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>,
249 <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>,
250 <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>,
251 <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>,
252 <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>,
253 <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>,
254 <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>;
256 drive-strength = <MTK_DRIVE_2mA>;
257 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
261 pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>;
262 drive-strength = <MTK_DRIVE_2mA>;
263 bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
267 pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>;
272 pcie_default: pcie_pin_default {
274 pinmux = <MT7623_PIN_208_AUD_EXT_CK1_FUNC_PCIE0_PERST_N>,
275 <MT7623_PIN_209_AUD_EXT_CK2_FUNC_PCIE1_PERST_N>;
282 pinctrl-names = "default";
283 pinctrl-0 = <&pwm_pins_a>;
290 compatible = "mediatek,mt6323-led";
291 #address-cells = <1>;
303 pinctrl-names = "default";
304 pinctrl-0 = <&uart2_pins_b>;
309 vusb33-supply = <®_3p3v>;
310 vbus-supply = <®_3p3v>;
320 mediatek,phy-switch = <&hifsys>;
324 pinctrl-names = "default";
325 pinctrl-0 = <&pcie_default>;