1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
3 * Copyright 2018 Kristian Evensen <kristian.evensen@gmail.com>
6 #include <dt-bindings/input/input.h>
11 compatible = "unielec,u7623-02-emmc", "mediatek,mt7623";
18 bootargs = "root=/dev/mmcblk0p2 rootfstype=squashfs,f2fs console=ttyS0,115200 blkdevparts=mmcblk0:3M@6M(recovery),256M@9M(root)";
19 stdout-path = "serial2:115200n8";
24 proc-supply = <&mt6323_vproc_reg>;
28 proc-supply = <&mt6323_vproc_reg>;
32 proc-supply = <&mt6323_vproc_reg>;
36 proc-supply = <&mt6323_vproc_reg>;
40 reg_1p8v: regulator-1p8v {
41 compatible = "regulator-fixed";
42 regulator-name = "fixed-1.8V";
43 regulator-min-microvolt = <1800000>;
44 regulator-max-microvolt = <1800000>;
49 reg_3p3v: regulator-3p3v {
50 compatible = "regulator-fixed";
51 regulator-name = "fixed-3.3V";
52 regulator-min-microvolt = <3300000>;
53 regulator-max-microvolt = <3300000>;
58 reg_5v: regulator-5v {
59 compatible = "regulator-fixed";
60 regulator-name = "fixed-5V";
61 regulator-min-microvolt = <5000000>;
62 regulator-max-microvolt = <5000000>;
68 compatible = "gpio-keys";
69 pinctrl-names = "default";
70 pinctrl-0 = <&key_pins_a>;
74 linux,code = <KEY_RESTART>;
75 gpios = <&pio 256 GPIO_ACTIVE_LOW>;
80 compatible = "gpio-leds";
81 pinctrl-names = "default";
82 pinctrl-0 = <&led_pins_unielec>;
85 label = "u7623-01:green:led3";
86 gpios = <&pio 14 GPIO_ACTIVE_LOW>;
90 label = "u7623-01:green:led4";
91 gpios = <&pio 15 GPIO_ACTIVE_LOW>;
104 compatible = "mediatek,eth-mac";
116 #address-cells = <1>;
120 compatible = "mediatek,mt7530";
126 compatible = "mediatek,mt7530";
127 #address-cells = <1>;
130 pinctrl-names = "default";
132 resets = <ðsys 2>;
134 core-supply = <&mt6323_vpa_reg>;
135 io-supply = <&mt6323_vemc3v3_reg>;
137 dsa,mii-bus = <&mdio>;
140 #address-cells = <1>;
189 pinctrl-names = "default", "state_uhs";
190 pinctrl-0 = <&mmc0_pins_default>;
191 pinctrl-1 = <&mmc0_pins_uhs>;
194 max-frequency = <50000000>;
196 vmmc-supply = <®_3p3v>;
197 vqmmc-supply = <®_1p8v>;
202 key_pins_a: keys-alt {
204 pinmux = <MT7623_PIN_256_GPIO256_FUNC_GPIO256>,
205 <MT7623_PIN_257_GPIO257_FUNC_GPIO257>;
210 led_pins_unielec: leds-unielec {
212 pinmux = <MT7623_PIN_14_GPIO14_FUNC_GPIO14>,
213 <MT7623_PIN_15_GPIO15_FUNC_GPIO15>;
217 mmc0_pins_default: mmc0default {
219 pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>,
220 <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>,
221 <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>,
222 <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>,
223 <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>,
224 <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>,
225 <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>,
226 <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>,
227 <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>;
233 pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>;
238 pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>;
243 mmc0_pins_uhs: mmc0 {
245 pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>,
246 <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>,
247 <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>,
248 <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>,
249 <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>,
250 <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>,
251 <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>,
252 <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>,
253 <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>;
255 drive-strength = <MTK_DRIVE_2mA>;
256 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
260 pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>;
261 drive-strength = <MTK_DRIVE_2mA>;
262 bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
266 pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>;
271 pcie_default: pcie_pin_default {
273 pinmux = <MT7623_PIN_208_AUD_EXT_CK1_FUNC_PCIE0_PERST_N>,
274 <MT7623_PIN_209_AUD_EXT_CK2_FUNC_PCIE1_PERST_N>;
281 pinctrl-names = "default";
282 pinctrl-0 = <&pwm_pins_a>;
289 compatible = "mediatek,mt6323-led";
290 #address-cells = <1>;
302 pinctrl-names = "default";
303 pinctrl-0 = <&uart2_pins_b>;
308 vusb33-supply = <®_3p3v>;
309 vbus-supply = <®_3p3v>;
319 mediatek,phy-switch = <&hifsys>;
323 pinctrl-names = "default";
324 pinctrl-0 = <&pcie_default>;