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 = <&can_ph_pins>;
90 cpu-supply = <®_dcdc2>;
106 pinctrl-names = "default";
107 pinctrl-0 = <&gmac_rgmii_pins>;
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>;
137 interrupt-parent = <&nmi_intc>;
138 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
142 /* Exposed to UEXT1 */
147 compatible = "atmel,24c16";
153 /* Exposed to UEXT2 */
159 pinctrl-names = "default";
160 pinctrl-0 = <&ir0_rx_pin>;
165 vmmc-supply = <®_vcc3v3>;
167 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>;
172 vmmc-supply = <®_vcc3v3>;
173 mmc-pwrseq = <&rtl_pwrseq>;
178 rtl8723bs: sdio_wifi@1 {
196 uart3_rts_pin: uart3-rts-pin {
202 #include "axp209.dtsi"
208 &battery_power_supply {
213 gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>;
219 regulator-min-microvolt = <1000000>;
220 regulator-max-microvolt = <1400000>;
221 regulator-name = "vdd-cpu";
226 regulator-min-microvolt = <1000000>;
227 regulator-max-microvolt = <1400000>;
228 regulator-name = "vdd-int-dll";
233 regulator-min-microvolt = <1300000>;
234 regulator-max-microvolt = <1300000>;
235 regulator-name = "vdd-rtc";
240 regulator-min-microvolt = <3000000>;
241 regulator-max-microvolt = <3000000>;
242 regulator-name = "avcc";
246 regulator-min-microvolt = <3300000>;
247 regulator-max-microvolt = <3300000>;
248 regulator-name = "vcc-pg";
252 gpio = <&pio 2 17 GPIO_ACTIVE_HIGH>;
264 /* Exposed to UEXT1 */
266 pinctrl-names = "default";
267 pinctrl-0 = <&spi1_pi_pins>,
272 /* Exposed to UEXT2 */
274 pinctrl-names = "default";
275 pinctrl-0 = <&spi2_pc_pins>,
281 pinctrl-names = "default";
282 pinctrl-0 = <&uart0_pb_pins>;
286 /* Used for RTL8723BS bluetooth */
288 pinctrl-names = "default";
289 pinctrl-0 = <&uart3_pg_pins>, <&uart3_rts_pin>;
293 /* Exposed to UEXT1 */
295 pinctrl-names = "default";
296 pinctrl-0 = <&uart4_pg_pins>;
300 /* Exposed to UEXT2 */
302 pinctrl-names = "default";
303 pinctrl-0 = <&uart7_pi_pins>;
317 usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
318 usb0_vbus_det-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
319 usb0_vbus_power-supply = <&usb_power_supply>;
320 usb0_vbus-supply = <®_usb0_vbus>;
321 usb1_vbus-supply = <®_usb1_vbus>;
322 usb2_vbus-supply = <®_usb2_vbus>;