1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device Tree Source for A20-SOM204-EVB Board
5 * Copyright (C) 2018 Olimex Ltd.
6 * Author: Stefan Mavrodiev <stefan@olimex.com>
10 #include "sun7i-a20.dtsi"
11 #include "sunxi-common-regulators.dtsi"
14 #include <dt-bindings/gpio/gpio.h>
15 #include <dt-bindings/interrupt-controller/irq.h>
16 #include <dt-bindings/pwm/pwm.h>
19 model = "Olimex A20-SOM204-EVB";
20 compatible = "olimex,a20-olimex-som204-evb", "allwinner,sun7i-a20";
28 ethernet1 = &rtl8723bs;
32 stdout-path = "serial0:115200n8";
36 compatible = "gpio-leds";
39 label = "a20-som204-evb:green:stat";
40 gpios = <&pio 8 0 GPIO_ACTIVE_HIGH>;
45 label = "a20-som204-evb:green:led1";
46 gpios = <&pio 8 10 GPIO_ACTIVE_HIGH>;
51 label = "a20-som204-evb:yellow:led2";
52 gpios = <&pio 8 11 GPIO_ACTIVE_HIGH>;
57 rtl_pwrseq: rtl_pwrseq {
58 compatible = "mmc-pwrseq-simple";
59 reset-gpios = <&pio 6 9 GPIO_ACTIVE_LOW>;
64 target-supply = <®_ahci_5v>;
73 cpu-supply = <®_dcdc2>;
85 pinctrl-names = "default";
86 pinctrl-0 = <&gmac_pins_rgmii_a>;
89 phy-supply = <®_vcc3v3>;
91 snps,reset-gpio = <&pio 0 17 GPIO_ACTIVE_HIGH>;
92 snps,reset-active-low;
93 snps,reset-delays-us = <0 10000 1000000>;
96 phy3: ethernet-phy@3 {
102 pinctrl-names = "default";
103 pinctrl-0 = <&i2c0_pins_a>;
108 interrupt-parent = <&nmi_intc>;
109 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
113 /* Exposed to UEXT1 */
115 pinctrl-names = "default";
116 pinctrl-0 = <&i2c1_pins_a>;
120 compatible = "atmel,24c16";
126 /* Exposed to UEXT2 */
128 pinctrl-names = "default";
129 pinctrl-0 = <&i2c2_pins_a>;
134 pinctrl-names = "default";
135 pinctrl-0 = <&ir0_rx_pins_a>;
140 pinctrl-names = "default";
141 pinctrl-0 = <&mmc0_pins_a>;
142 vmmc-supply = <®_vcc3v3>;
144 cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>;
150 pinctrl-names = "default";
151 pinctrl-0 = <&mmc3_pins_a>;
152 vmmc-supply = <®_vcc3v3>;
153 mmc-pwrseq = <&rtl_pwrseq>;
158 rtl8723bs: sdio_wifi@1 {
176 bt_uart_pins: bt_uart_pins@0 {
177 pins = "PG6", "PG7", "PG8";
182 #include "axp209.dtsi"
185 gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>;
191 regulator-min-microvolt = <1000000>;
192 regulator-max-microvolt = <1400000>;
193 regulator-name = "vdd-cpu";
198 regulator-min-microvolt = <1000000>;
199 regulator-max-microvolt = <1400000>;
200 regulator-name = "vdd-int-dll";
205 regulator-min-microvolt = <1300000>;
206 regulator-max-microvolt = <1300000>;
207 regulator-name = "vdd-rtc";
212 regulator-min-microvolt = <3000000>;
213 regulator-max-microvolt = <3000000>;
214 regulator-name = "avcc";
218 regulator-min-microvolt = <3300000>;
219 regulator-max-microvolt = <3300000>;
220 regulator-name = "vcc-pg";
224 gpio = <&pio 2 17 GPIO_ACTIVE_HIGH>;
236 /* Exposed to UEXT1 */
238 pinctrl-names = "default";
239 pinctrl-0 = <&spi1_pins_a>,
244 /* Exposed to UEXT2 */
246 pinctrl-names = "default";
247 pinctrl-0 = <&spi2_pins_a>,
253 pinctrl-names = "default";
254 pinctrl-0 = <&uart0_pins_a>;
258 /* Used for RTL8723BS bluetooth */
260 pinctrl-names = "default";
261 pinctrl-0 = <&bt_uart_pins>;
265 /* Exposed to UEXT1 */
267 pinctrl-names = "default";
268 pinctrl-0 = <&uart4_pins_a>;
272 /* Exposed to UEXT2 */
274 pinctrl-names = "default";
275 pinctrl-0 = <&uart7_pins_a>;
289 usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
290 usb0_vbus_det-gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
291 usb0_vbus_power-supply = <&usb_power_supply>;
292 usb0_vbus-supply = <®_usb0_vbus>;
293 usb1_vbus-supply = <®_usb1_vbus>;
294 usb2_vbus-supply = <®_usb2_vbus>;