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>;
108 phy-handle = <&phy3>;
110 phy-supply = <®_vcc3v3>;
119 hdmi_out_con: endpoint {
120 remote-endpoint = <&hdmi_con_in>;
129 interrupt-parent = <&nmi_intc>;
130 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
134 /* Exposed to UEXT1 */
139 compatible = "atmel,24c16";
145 /* Exposed to UEXT2 */
151 pinctrl-names = "default";
152 pinctrl-0 = <&ir0_rx_pin>;
157 phy3: ethernet-phy@3 {
159 reset-gpios = <&pio 0 17 GPIO_ACTIVE_LOW>; /* PA17 */
160 reset-assert-us = <10000>;
161 /* wait 1s after reset, otherwise fail to read phy id */
162 reset-deassert-us = <1000000>;
167 vmmc-supply = <®_vcc3v3>;
169 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>;
174 vmmc-supply = <®_vcc3v3>;
175 mmc-pwrseq = <&rtl_pwrseq>;
180 rtl8723bs: sdio_wifi@1 {
198 uart3_rts_pin: uart3-rts-pin {
204 #include "axp209.dtsi"
210 &battery_power_supply {
215 gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>;
221 regulator-min-microvolt = <1000000>;
222 regulator-max-microvolt = <1400000>;
223 regulator-name = "vdd-cpu";
228 regulator-min-microvolt = <1000000>;
229 regulator-max-microvolt = <1400000>;
230 regulator-name = "vdd-int-dll";
235 regulator-min-microvolt = <1300000>;
236 regulator-max-microvolt = <1300000>;
237 regulator-name = "vdd-rtc";
242 regulator-min-microvolt = <3000000>;
243 regulator-max-microvolt = <3000000>;
244 regulator-name = "avcc";
248 regulator-min-microvolt = <3300000>;
249 regulator-max-microvolt = <3300000>;
250 regulator-name = "vcc-pg";
254 gpio = <&pio 2 17 GPIO_ACTIVE_HIGH>;
266 /* Exposed to UEXT1 */
268 pinctrl-names = "default";
269 pinctrl-0 = <&spi1_pi_pins>,
274 /* Exposed to UEXT2 */
276 pinctrl-names = "default";
277 pinctrl-0 = <&spi2_pc_pins>,
283 pinctrl-names = "default";
284 pinctrl-0 = <&uart0_pb_pins>;
288 /* Used for RTL8723BS bluetooth */
290 pinctrl-names = "default";
291 pinctrl-0 = <&uart3_pg_pins>, <&uart3_rts_pin>;
295 /* Exposed to UEXT1 */
297 pinctrl-names = "default";
298 pinctrl-0 = <&uart4_pg_pins>;
302 /* Exposed to UEXT2 */
304 pinctrl-names = "default";
305 pinctrl-0 = <&uart7_pi_pins>;
319 usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
320 usb0_vbus_det-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
321 usb0_vbus_power-supply = <&usb_power_supply>;
322 usb0_vbus-supply = <®_usb0_vbus>;
323 usb1_vbus-supply = <®_usb1_vbus>;
324 usb2_vbus-supply = <®_usb2_vbus>;