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>
9 #include "mt7623n.dtsi"
10 #include "mt6323.dtsi"
13 model = "Bananapi BPI-R2";
14 compatible = "bananapi,bpi-r2", "mediatek,mt7623";
21 stdout-path = "serial2:115200n8";
25 compatible = "hdmi-connector";
28 ddc-i2c-bus = <&hdmiddc0>;
31 hdmi_connector_in: endpoint {
32 remote-endpoint = <&hdmi0_out>;
39 proc-supply = <&mt6323_vproc_reg>;
43 proc-supply = <&mt6323_vproc_reg>;
47 proc-supply = <&mt6323_vproc_reg>;
51 proc-supply = <&mt6323_vproc_reg>;
55 reg_1p8v: regulator-1p8v {
56 compatible = "regulator-fixed";
57 regulator-name = "fixed-1.8V";
58 regulator-min-microvolt = <1800000>;
59 regulator-max-microvolt = <1800000>;
64 reg_3p3v: regulator-3p3v {
65 compatible = "regulator-fixed";
66 regulator-name = "fixed-3.3V";
67 regulator-min-microvolt = <3300000>;
68 regulator-max-microvolt = <3300000>;
73 reg_5v: regulator-5v {
74 compatible = "regulator-fixed";
75 regulator-name = "fixed-5V";
76 regulator-min-microvolt = <5000000>;
77 regulator-max-microvolt = <5000000>;
82 reg_vgpu: fixedregulator@0 {
83 compatible = "regulator-fixed";
84 regulator-name = "vdd_fixed_vgpu";
85 regulator-min-microvolt = <1150000>;
86 regulator-max-microvolt = <1150000>;
90 compatible = "gpio-keys";
91 pinctrl-names = "default";
92 pinctrl-0 = <&key_pins_a>;
97 gpios = <&pio 256 GPIO_ACTIVE_LOW>;
102 linux,code = <KEY_WPS_BUTTON>;
103 gpios = <&pio 257 GPIO_ACTIVE_HIGH>;
108 compatible = "gpio-leds";
109 pinctrl-names = "default";
110 pinctrl-0 = <&led_pins_a>;
113 label = "bpi-r2:pio:blue";
114 gpios = <&pio 240 GPIO_ACTIVE_LOW>;
115 default-state = "off";
119 label = "bpi-r2:pio:green";
120 gpios = <&pio 241 GPIO_ACTIVE_LOW>;
121 default-state = "off";
125 label = "bpi-r2:pio:red";
126 gpios = <&pio 239 GPIO_ACTIVE_LOW>;
127 default-state = "off";
132 device_type = "memory";
133 reg = <0 0x80000000 0 0x80000000>;
150 pinctrl-names = "default";
151 pinctrl-0 = <&cir_pins_a>;
163 #address-cells = <1>;
168 remote-endpoint = <&hdmi0_in>;
178 compatible = "mediatek,eth-mac";
190 #address-cells = <1>;
194 compatible = "mediatek,mt7530";
196 reset-gpios = <&pio 33 0>;
197 core-supply = <&mt6323_vpa_reg>;
198 io-supply = <&mt6323_vemc3v3_reg>;
201 #address-cells = <1>;
247 pinctrl-names = "default";
248 pinctrl-0 = <&hdmi_pins_a>;
252 #address-cells = <1>;
257 remote-endpoint = <&dpi0_out>;
263 hdmi0_out: endpoint {
264 remote-endpoint = <&hdmi_connector_in>;
271 pinctrl-names = "default";
272 pinctrl-0 = <&hdmi_ddc_pins_a>;
277 mediatek,ibias = <0xa>;
278 mediatek,ibias_up = <0x1c>;
283 pinctrl-names = "default";
284 pinctrl-0 = <&i2c0_pins_a>;
289 pinctrl-names = "default";
290 pinctrl-0 = <&i2c1_pins_a>;
295 mali-supply = <®_vgpu>;
300 pinctrl-names = "default", "state_uhs";
301 pinctrl-0 = <&mmc0_pins_default>;
302 pinctrl-1 = <&mmc0_pins_uhs>;
305 max-frequency = <50000000>;
307 vmmc-supply = <®_3p3v>;
308 vqmmc-supply = <®_1p8v>;
313 pinctrl-names = "default", "state_uhs";
314 pinctrl-0 = <&mmc1_pins_default>;
315 pinctrl-1 = <&mmc1_pins_uhs>;
318 max-frequency = <50000000>;
320 cd-gpios = <&pio 261 GPIO_ACTIVE_LOW>;
321 vmmc-supply = <®_3p3v>;
322 vqmmc-supply = <®_3p3v>;
330 label = "bpi-r2:isink:green";
331 default-state = "off";
336 label = "bpi-r2:isink:red";
337 default-state = "off";
342 label = "bpi-r2:isink:blue";
343 default-state = "off";
348 pinctrl-names = "default";
349 pinctrl-0 = <&pcie_default>;
370 pinctrl-names = "default";
371 pinctrl-0 = <&pwm_pins_a>;
376 pinctrl-names = "default";
377 pinctrl-0 = <&spi0_pins_a>;
382 pinctrl-names = "default";
383 pinctrl-0 = <&uart0_pins_a>;
388 pinctrl-names = "default";
389 pinctrl-0 = <&uart1_pins_a>;
394 pinctrl-names = "default";
395 pinctrl-0 = <&uart2_pins_a>;
400 vusb33-supply = <®_3p3v>;
401 vbus-supply = <®_5v>;
406 vusb33-supply = <®_3p3v>;
407 vbus-supply = <®_5v>;