2 * Copyright 2017 Sean Wang <sean.wang@mediatek.com>
4 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 #include <dt-bindings/input/input.h>
10 #include "mt6323.dtsi"
13 model = "Bananapi BPI-R2";
14 compatible = "bananapi,bpi-r2", "mediatek,mt7623";
21 stdout-path = "serial2:115200n8";
26 proc-supply = <&mt6323_vproc_reg>;
30 proc-supply = <&mt6323_vproc_reg>;
34 proc-supply = <&mt6323_vproc_reg>;
38 proc-supply = <&mt6323_vproc_reg>;
43 compatible = "gpio-keys";
44 pinctrl-names = "default";
45 pinctrl-0 = <&key_pins_a>;
50 gpios = <&pio 256 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_WPS_BUTTON>;
56 gpios = <&pio 257 GPIO_ACTIVE_HIGH>;
61 compatible = "gpio-leds";
62 pinctrl-names = "default";
63 pinctrl-0 = <&led_pins_a>;
66 label = "bpi-r2:pio:blue";
67 gpios = <&pio 241 GPIO_ACTIVE_HIGH>;
68 default-state = "off";
72 label = "bpi-r2:pio:green";
73 gpios = <&pio 240 GPIO_ACTIVE_HIGH>;
74 default-state = "off";
78 label = "bpi-r2:pio:red";
79 gpios = <&pio 239 GPIO_ACTIVE_HIGH>;
80 default-state = "off";
85 reg = <0 0x80000000 0 0x40000000>;
90 pinctrl-names = "default";
91 pinctrl-0 = <&cir_pins_a>;
103 compatible = "mediatek,eth-mac";
115 #address-cells = <1>;
119 compatible = "mediatek,mt7530";
120 #address-cells = <1>;
123 pinctrl-names = "default";
124 reset-gpios = <&pio 33 0>;
125 core-supply = <&mt6323_vpa_reg>;
126 io-supply = <&mt6323_vemc3v3_reg>;
129 #address-cells = <1>;
175 pinctrl-names = "default";
176 pinctrl-0 = <&i2c0_pins_a>;
181 pinctrl-names = "default";
182 pinctrl-0 = <&i2c1_pins_a>;
187 pinctrl-names = "default", "state_uhs";
188 pinctrl-0 = <&mmc0_pins_default>;
189 pinctrl-1 = <&mmc0_pins_uhs>;
192 max-frequency = <50000000>;
194 vmmc-supply = <&mt6323_vemc3v3_reg>;
195 vqmmc-supply = <&mt6323_vio18_reg>;
200 pinctrl-names = "default", "state_uhs";
201 pinctrl-0 = <&mmc1_pins_default>;
202 pinctrl-1 = <&mmc1_pins_uhs>;
205 max-frequency = <50000000>;
207 cd-gpios = <&pio 261 0>;
208 vmmc-supply = <&mt6323_vmch_reg>;
209 vqmmc-supply = <&mt6323_vio18_reg>;
215 pinmux = <MT7623_PIN_46_IR_FUNC_IR>;
222 pinmux = <MT7623_PIN_75_SDA0_FUNC_SDA0>,
223 <MT7623_PIN_76_SCL0_FUNC_SCL0>;
230 pinmux = <MT7623_PIN_57_SDA1_FUNC_SDA1>,
231 <MT7623_PIN_58_SCL1_FUNC_SCL1>;
238 pinmux = <MT7623_PIN_49_I2S0_DATA_FUNC_I2S0_DATA>,
239 <MT7623_PIN_72_I2S0_DATA_IN_FUNC_I2S0_DATA_IN>,
240 <MT7623_PIN_73_I2S0_LRCK_FUNC_I2S0_LRCK>,
241 <MT7623_PIN_74_I2S0_BCK_FUNC_I2S0_BCK>,
242 <MT7623_PIN_126_I2S0_MCLK_FUNC_I2S0_MCLK>;
243 drive-strength = <MTK_DRIVE_12mA>;
250 pinmux = <MT7623_PIN_33_I2S1_DATA_FUNC_I2S1_DATA>,
251 <MT7623_PIN_34_I2S1_DATA_IN_FUNC_I2S1_DATA_IN>,
252 <MT7623_PIN_35_I2S1_BCK_FUNC_I2S1_BCK>,
253 <MT7623_PIN_36_I2S1_LRCK_FUNC_I2S1_LRCK>,
254 <MT7623_PIN_37_I2S1_MCLK_FUNC_I2S1_MCLK>;
255 drive-strength = <MTK_DRIVE_12mA>;
262 pinmux = <MT7623_PIN_256_GPIO256_FUNC_GPIO256>,
263 <MT7623_PIN_257_GPIO257_FUNC_GPIO257> ;
270 pinmux = <MT7623_PIN_239_EXT_SDIO0_FUNC_GPIO239>,
271 <MT7623_PIN_240_EXT_XCS_FUNC_GPIO240>,
272 <MT7623_PIN_241_EXT_SCK_FUNC_GPIO241>;
276 mmc0_pins_default: mmc0default {
278 pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>,
279 <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>,
280 <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>,
281 <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>,
282 <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>,
283 <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>,
284 <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>,
285 <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>,
286 <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>;
292 pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>;
297 pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>;
302 mmc0_pins_uhs: mmc0 {
304 pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>,
305 <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>,
306 <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>,
307 <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>,
308 <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>,
309 <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>,
310 <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>,
311 <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>,
312 <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>;
314 drive-strength = <MTK_DRIVE_2mA>;
315 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
319 pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>;
320 drive-strength = <MTK_DRIVE_2mA>;
321 bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
325 pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>;
330 mmc1_pins_default: mmc1default {
332 pinmux = <MT7623_PIN_107_MSDC1_DAT0_FUNC_MSDC1_DAT0>,
333 <MT7623_PIN_108_MSDC1_DAT1_FUNC_MSDC1_DAT1>,
334 <MT7623_PIN_109_MSDC1_DAT2_FUNC_MSDC1_DAT2>,
335 <MT7623_PIN_110_MSDC1_DAT3_FUNC_MSDC1_DAT3>,
336 <MT7623_PIN_105_MSDC1_CMD_FUNC_MSDC1_CMD>;
338 drive-strength = <MTK_DRIVE_4mA>;
339 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
343 pinmux = <MT7623_PIN_106_MSDC1_CLK_FUNC_MSDC1_CLK>;
345 drive-strength = <MTK_DRIVE_4mA>;
349 pinmux = <MT7623_PIN_29_EINT7_FUNC_MSDC1_WP>;
355 pinmux = <MT7623_PIN_261_MSDC1_INS_FUNC_GPIO261>;
360 mmc1_pins_uhs: mmc1 {
362 pinmux = <MT7623_PIN_107_MSDC1_DAT0_FUNC_MSDC1_DAT0>,
363 <MT7623_PIN_108_MSDC1_DAT1_FUNC_MSDC1_DAT1>,
364 <MT7623_PIN_109_MSDC1_DAT2_FUNC_MSDC1_DAT2>,
365 <MT7623_PIN_110_MSDC1_DAT3_FUNC_MSDC1_DAT3>,
366 <MT7623_PIN_105_MSDC1_CMD_FUNC_MSDC1_CMD>;
368 drive-strength = <MTK_DRIVE_4mA>;
369 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
373 pinmux = <MT7623_PIN_106_MSDC1_CLK_FUNC_MSDC1_CLK>;
374 drive-strength = <MTK_DRIVE_4mA>;
375 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
381 pinmux = <MT7623_PIN_203_PWM0_FUNC_PWM0>,
382 <MT7623_PIN_204_PWM1_FUNC_PWM1>,
383 <MT7623_PIN_205_PWM2_FUNC_PWM2>,
384 <MT7623_PIN_206_PWM3_FUNC_PWM3>,
385 <MT7623_PIN_207_PWM4_FUNC_PWM4>;
391 pinmux = <MT7623_PIN_53_SPI0_CSN_FUNC_SPI0_CS>,
392 <MT7623_PIN_54_SPI0_CK_FUNC_SPI0_CK>,
393 <MT7623_PIN_55_SPI0_MI_FUNC_SPI0_MI>,
394 <MT7623_PIN_56_SPI0_MO_FUNC_SPI0_MO>;
399 uart0_pins_a: uart@0 {
401 pinmux = <MT7623_PIN_79_URXD0_FUNC_URXD0>,
402 <MT7623_PIN_80_UTXD0_FUNC_UTXD0>;
406 uart1_pins_a: uart@1 {
408 pinmux = <MT7623_PIN_81_URXD1_FUNC_URXD1>,
409 <MT7623_PIN_82_UTXD1_FUNC_UTXD1>;
415 pinctrl-names = "default";
416 pinctrl-0 = <&pwm_pins_a>;
423 compatible = "mediatek,mt6323-led";
424 #address-cells = <1>;
429 label = "bpi-r2:isink:green";
430 default-state = "off";
435 label = "bpi-r2:isink:red";
436 default-state = "off";
441 label = "bpi-r2:isink:blue";
442 default-state = "off";
449 pinctrl-names = "default";
450 pinctrl-0 = <&spi0_pins_a>;
455 pinctrl-names = "default";
456 pinctrl-0 = <&uart0_pins_a>;
461 pinctrl-names = "default";
462 pinctrl-0 = <&uart1_pins_a>;
471 vusb33-supply = <&mt6323_vusb_reg>;
476 vusb33-supply = <&mt6323_vusb_reg>;