2 * Copyright 2017-2018 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>;
42 reg_1p8v: regulator-1p8v {
43 compatible = "regulator-fixed";
44 regulator-name = "fixed-1.8V";
45 regulator-min-microvolt = <1800000>;
46 regulator-max-microvolt = <1800000>;
51 reg_3p3v: regulator-3p3v {
52 compatible = "regulator-fixed";
53 regulator-name = "fixed-3.3V";
54 regulator-min-microvolt = <3300000>;
55 regulator-max-microvolt = <3300000>;
60 reg_5v: regulator-5v {
61 compatible = "regulator-fixed";
62 regulator-name = "fixed-5V";
63 regulator-min-microvolt = <5000000>;
64 regulator-max-microvolt = <5000000>;
70 compatible = "gpio-keys";
71 pinctrl-names = "default";
72 pinctrl-0 = <&key_pins_a>;
77 gpios = <&pio 256 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_WPS_BUTTON>;
83 gpios = <&pio 257 GPIO_ACTIVE_HIGH>;
88 compatible = "gpio-leds";
89 pinctrl-names = "default";
90 pinctrl-0 = <&led_pins_a>;
93 label = "bpi-r2:pio:blue";
94 gpios = <&pio 240 GPIO_ACTIVE_LOW>;
95 default-state = "off";
99 label = "bpi-r2:pio:green";
100 gpios = <&pio 241 GPIO_ACTIVE_LOW>;
101 default-state = "off";
105 label = "bpi-r2:pio:red";
106 gpios = <&pio 239 GPIO_ACTIVE_LOW>;
107 default-state = "off";
112 device_type = "memory";
113 reg = <0 0x80000000 0 0x80000000>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&cir_pins_a>;
135 compatible = "mediatek,eth-mac";
147 #address-cells = <1>;
151 compatible = "mediatek,mt7530";
153 reset-gpios = <&pio 33 0>;
154 core-supply = <&mt6323_vpa_reg>;
155 io-supply = <&mt6323_vemc3v3_reg>;
158 #address-cells = <1>;
203 pinctrl-names = "default";
204 pinctrl-0 = <&i2c0_pins_a>;
209 pinctrl-names = "default";
210 pinctrl-0 = <&i2c1_pins_a>;
215 pinctrl-names = "default", "state_uhs";
216 pinctrl-0 = <&mmc0_pins_default>;
217 pinctrl-1 = <&mmc0_pins_uhs>;
220 max-frequency = <50000000>;
222 vmmc-supply = <®_3p3v>;
223 vqmmc-supply = <®_1p8v>;
228 pinctrl-names = "default", "state_uhs";
229 pinctrl-0 = <&mmc1_pins_default>;
230 pinctrl-1 = <&mmc1_pins_uhs>;
233 max-frequency = <50000000>;
235 cd-gpios = <&pio 261 GPIO_ACTIVE_LOW>;
236 vmmc-supply = <®_3p3v>;
237 vqmmc-supply = <®_3p3v>;
245 label = "bpi-r2:isink:green";
246 default-state = "off";
251 label = "bpi-r2:isink:red";
252 default-state = "off";
257 label = "bpi-r2:isink:blue";
258 default-state = "off";
263 pinctrl-names = "default";
264 pinctrl-0 = <&pcie_default>;
285 pinctrl-names = "default";
286 pinctrl-0 = <&pwm_pins_a>;
291 pinctrl-names = "default";
292 pinctrl-0 = <&spi0_pins_a>;
297 pinctrl-names = "default";
298 pinctrl-0 = <&uart0_pins_a>;
303 pinctrl-names = "default";
304 pinctrl-0 = <&uart1_pins_a>;
309 pinctrl-names = "default";
310 pinctrl-0 = <&uart2_pins_a>;
315 vusb33-supply = <®_3p3v>;
316 vbus-supply = <®_5v>;
321 vusb33-supply = <®_3p3v>;
322 vbus-supply = <®_5v>;