1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright 2021 Conley Lee
4 * Conley Lee <conleylee@foxmail.com>
8 #include "sun7i-a20.dtsi"
9 #include "sunxi-common-regulators.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/interrupt-controller/irq.h>
15 model = "HAOYU Electronics Marsboard A20";
16 compatible = "haoyu,a20-marsboard", "allwinner,sun7i-a20";
23 stdout-path = "serial0:115200n8";
27 compatible = "hdmi-connector";
31 hdmi_con_in: endpoint {
32 remote-endpoint = <&hdmi_out_con>;
39 target-supply = <®_ahci_5v>;
48 cpu-supply = <®_dcdc2>;
64 pinctrl-names = "default";
65 pinctrl-0 = <&gmac_mii_pins>, <&gmac_txerr>;
76 hdmi_out_con: endpoint {
77 remote-endpoint = <&hdmi_con_in>;
86 interrupt-parent = <&nmi_intc>;
87 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
92 vmmc-supply = <®_vcc3v3>;
94 cd-gpios = <&pio 7 10 GPIO_ACTIVE_LOW>; /* PH10 */
99 phy0: ethernet-phy@0 {
117 gmac_txerr: gmac-txerr-pin {
127 #include "axp209.dtsi"
135 regulator-min-microvolt = <1000000>;
136 regulator-max-microvolt = <1450000>;
137 regulator-name = "vdd-cpu";
142 regulator-min-microvolt = <1000000>;
143 regulator-max-microvolt = <1400000>;
144 regulator-name = "vdd-int-dll";
148 regulator-name = "vdd-rtc";
153 regulator-min-microvolt = <3000000>;
154 regulator-max-microvolt = <3000000>;
155 regulator-name = "avcc";
167 pinctrl-names = "default";
168 pinctrl-0 = <&uart0_pb_pins>;
178 usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */
179 usb1_vbus-supply = <®_usb1_vbus>;
180 usb2_vbus-supply = <®_usb2_vbus>;