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 = "hdmi-connector";
40 hdmi_con_in: endpoint {
41 remote-endpoint = <&hdmi_out_con>;
47 compatible = "gpio-leds";
50 label = "a20-som204-evb:green:stat";
51 gpios = <&pio 8 0 GPIO_ACTIVE_HIGH>;
56 label = "a20-som204-evb:green:led1";
57 gpios = <&pio 8 10 GPIO_ACTIVE_HIGH>;
62 label = "a20-som204-evb:yellow:led2";
63 gpios = <&pio 8 11 GPIO_ACTIVE_HIGH>;
68 rtl_pwrseq: rtl_pwrseq {
69 compatible = "mmc-pwrseq-simple";
70 reset-gpios = <&pio 6 9 GPIO_ACTIVE_LOW>;
75 target-supply = <®_ahci_5v>;
80 pinctrl-names = "default";
81 pinctrl-0 = <&can0_pins_a>;
90 cpu-supply = <®_dcdc2>;
106 pinctrl-names = "default";
107 pinctrl-0 = <&gmac_pins_rgmii_a>;
110 phy-supply = <®_vcc3v3>;
112 snps,reset-gpio = <&pio 0 17 GPIO_ACTIVE_HIGH>;
113 snps,reset-active-low;
114 snps,reset-delays-us = <0 10000 1000000>;
117 phy3: ethernet-phy@3 {
127 hdmi_out_con: endpoint {
128 remote-endpoint = <&hdmi_con_in>;
133 pinctrl-names = "default";
134 pinctrl-0 = <&i2c0_pins_a>;
139 interrupt-parent = <&nmi_intc>;
140 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
144 /* Exposed to UEXT1 */
146 pinctrl-names = "default";
147 pinctrl-0 = <&i2c1_pins_a>;
151 compatible = "atmel,24c16";
157 /* Exposed to UEXT2 */
159 pinctrl-names = "default";
160 pinctrl-0 = <&i2c2_pins_a>;
165 pinctrl-names = "default";
166 pinctrl-0 = <&ir0_rx_pins_a>;
171 pinctrl-names = "default";
172 pinctrl-0 = <&mmc0_pins_a>;
173 vmmc-supply = <®_vcc3v3>;
175 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>;
180 pinctrl-names = "default";
181 pinctrl-0 = <&mmc3_pins_a>;
182 vmmc-supply = <®_vcc3v3>;
183 mmc-pwrseq = <&rtl_pwrseq>;
188 rtl8723bs: sdio_wifi@1 {
206 bt_uart_pins: bt_uart_pins@0 {
207 pins = "PG6", "PG7", "PG8";
212 #include "axp209.dtsi"
218 &battery_power_supply {
223 gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>;
229 regulator-min-microvolt = <1000000>;
230 regulator-max-microvolt = <1400000>;
231 regulator-name = "vdd-cpu";
236 regulator-min-microvolt = <1000000>;
237 regulator-max-microvolt = <1400000>;
238 regulator-name = "vdd-int-dll";
243 regulator-min-microvolt = <1300000>;
244 regulator-max-microvolt = <1300000>;
245 regulator-name = "vdd-rtc";
250 regulator-min-microvolt = <3000000>;
251 regulator-max-microvolt = <3000000>;
252 regulator-name = "avcc";
256 regulator-min-microvolt = <3300000>;
257 regulator-max-microvolt = <3300000>;
258 regulator-name = "vcc-pg";
262 gpio = <&pio 2 17 GPIO_ACTIVE_HIGH>;
274 /* Exposed to UEXT1 */
276 pinctrl-names = "default";
277 pinctrl-0 = <&spi1_pins_a>,
282 /* Exposed to UEXT2 */
284 pinctrl-names = "default";
285 pinctrl-0 = <&spi2_pins_a>,
291 pinctrl-names = "default";
292 pinctrl-0 = <&uart0_pins_a>;
296 /* Used for RTL8723BS bluetooth */
298 pinctrl-names = "default";
299 pinctrl-0 = <&bt_uart_pins>;
303 /* Exposed to UEXT1 */
305 pinctrl-names = "default";
306 pinctrl-0 = <&uart4_pins_a>;
310 /* Exposed to UEXT2 */
312 pinctrl-names = "default";
313 pinctrl-0 = <&uart7_pins_a>;
327 usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
328 usb0_vbus_det-gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
329 usb0_vbus_power-supply = <&usb_power_supply>;
330 usb0_vbus-supply = <®_usb0_vbus>;
331 usb1_vbus-supply = <®_usb1_vbus>;
332 usb2_vbus-supply = <®_usb2_vbus>;