2 * Copyright 2013 Wills Wang
4 * Wills Wang <wills.wang.open@gmail.com>
6 * The code contained herein is licensed under the GNU General Public
7 * License. You may obtain a copy of the GNU General Public License
8 * Version 2 or later at the following locations:
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
15 /include/ "sun7i-a20.dtsi"
16 /include/ "sunxi-common-regulators.dtsi"
19 model = "Merrii A20 Hummingbird";
20 compatible = "merrii,a20-hummingbird", "allwinner,sun7i-a20";
32 pinctrl-names = "default";
33 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
34 vmmc-supply = <®_vcc3v0>;
36 cd-gpios = <&pio 7 1 0>; /* PH1 */
42 pinctrl-names = "default";
43 pinctrl-0 = <&mmc3_pins_a>;
44 vmmc-supply = <®_mmc3_vdd>;
50 usbphy: phy@01c13400 {
51 usb1_vbus-supply = <®_usb1_vbus>;
52 usb2_vbus-supply = <®_usb2_vbus>;
65 target-supply = <®_ahci_5v>;
77 pio: pinctrl@01c20800 {
78 ahci_pwr_pin_a20_hummingbird: ahci_pwr_pin@0 {
79 allwinner,pins = "PH15";
80 allwinner,function = "gpio_out";
81 allwinner,drive = <0>;
85 usb1_vbus_pin_a20_hummingbird: usb1_vbus_pin@0 {
86 allwinner,pins = "PH2";
87 allwinner,function = "gpio_out";
88 allwinner,drive = <0>;
92 mmc3_vdd_pin_a20_hummingbird: mmc3_vdd_pin@0 {
93 allwinner,pins = "PH9";
94 allwinner,function = "gpio_out";
95 allwinner,drive = <0>;
99 gmac_vdd_pin_a20_hummingbird: gmac_vdd_pin@0 {
100 allwinner,pins = "PH16";
101 allwinner,function = "gpio_out";
102 allwinner,drive = <0>;
103 allwinner,pull = <0>;
108 pinctrl-names = "default";
109 pinctrl-0 = <&pwm0_pins_a>;
114 pinctrl-names = "default";
115 pinctrl-0 = <&ir0_pins_a>;
119 uart0: serial@01c28000 {
120 pinctrl-names = "default";
121 pinctrl-0 = <&uart0_pins_a>;
125 uart2: serial@01c28800 {
126 pinctrl-names = "default";
127 pinctrl-0 = <&uart2_pins_a>;
131 uart3: serial@01c28c00 {
132 pinctrl-names = "default";
133 pinctrl-0 = <&uart3_pins_a>;
137 uart4: serial@01c29000 {
138 pinctrl-names = "default";
139 pinctrl-0 = <&uart4_pins_a>;
143 uart5: serial@01c29400 {
144 pinctrl-names = "default";
145 pinctrl-0 = <&uart5_pins_a>;
150 pinctrl-names = "default";
151 pinctrl-0 = <&i2c0_pins_a>;
155 compatible = "x-powers,axp209";
157 interrupt-parent = <&nmi_intc>;
159 interrupt-controller;
160 #interrupt-cells = <1>;
165 pinctrl-names = "default";
166 pinctrl-0 = <&i2c1_pins_a>;
171 pinctrl-names = "default";
172 pinctrl-0 = <&i2c2_pins_a>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&i2c3_pins_a>;
183 pinctrl-names = "default";
184 pinctrl-0 = <&spi2_pins_b>;
188 gmac: ethernet@01c50000 {
189 pinctrl-names = "default";
190 pinctrl-0 = <&gmac_pins_rgmii_a>;
193 phy-supply = <®_gmac_vdd>;
194 /* phy reset config */
195 snps,reset-gpio = <&pio 0 17 0>; /* PA17 */
196 snps,reset-active-low;
197 /* wait 1s after reset, otherwise fail to read phy id */
198 snps,reset-delays-us = <0 10000 1000000>;
201 phy1: ethernet-phy@1 {
207 reg_ahci_5v: ahci-5v {
208 pinctrl-0 = <&ahci_pwr_pin_a20_hummingbird>;
209 gpio = <&pio 7 15 0>; /* PH15 */
213 reg_usb1_vbus: usb1-vbus {
214 pinctrl-0 = <&usb1_vbus_pin_a20_hummingbird>;
215 gpio = <&pio 7 2 0>; /* PH2 */
219 reg_usb2_vbus: usb2-vbus {
223 reg_mmc3_vdd: mmc3_vdd {
224 compatible = "regulator-fixed";
225 pinctrl-names = "default";
226 pinctrl-0 = <&mmc3_vdd_pin_a20_hummingbird>;
227 regulator-name = "mmc3_vdd";
228 regulator-min-microvolt = <3000000>;
229 regulator-max-microvolt = <3000000>;
231 gpio = <&pio 7 9 0>; /* PH9 */
234 reg_gmac_vdd: gmac_vdd {
235 compatible = "regulator-fixed";
236 pinctrl-names = "default";
237 pinctrl-0 = <&gmac_vdd_pin_a20_hummingbird>;
238 regulator-name = "gmac_vdd";
239 regulator-min-microvolt = <3000000>;
240 regulator-max-microvolt = <3000000>;
242 gpio = <&pio 7 16 0>; /* PH16 */