2 * Copyright 2014 Zoltan HERPAI
3 * Zoltan HERPAI <wigyori@uid0.hu>
5 * The code contained herein is licensed under the GNU General Public
6 * License. You may obtain a copy of the GNU General Public License
7 * Version 2 or later at the following locations:
9 * http://www.opensource.org/licenses/gpl-license.html
10 * http://www.gnu.org/copyleft/gpl.html
14 /include/ "sun7i-a20.dtsi"
15 /include/ "sunxi-common-regulators.dtsi"
16 #include <dt-bindings/gpio/gpio.h>
17 #include <dt-bindings/input/input.h>
20 model = "LinkSprite pcDuino3";
21 compatible = "linksprite,pcduino3", "allwinner,sun7i-a20";
29 pinctrl-names = "default";
30 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
31 vmmc-supply = <®_vcc3v3>;
33 cd-gpios = <&pio 7 1 0>; /* PH1 */
38 usbphy: phy@01c13400 {
39 usb1_vbus-supply = <®_usb1_vbus>;
40 usb2_vbus-supply = <®_usb2_vbus>;
53 target-supply = <®_ahci_5v>;
66 ahci_pwr_pin_a: ahci_pwr_pin@0 {
67 allwinner,pins = "PH2";
70 led_pins_pcduino3: led_pins@0 {
71 allwinner,pins = "PH15", "PH16";
72 allwinner,function = "gpio_out";
73 allwinner,drive = <0>;
77 key_pins_pcduino3: key_pins@0 {
78 allwinner,pins = "PH17", "PH18", "PH19";
79 allwinner,function = "gpio_in";
80 allwinner,drive = <0>;
86 pinctrl-names = "default";
87 pinctrl-0 = <&ir0_pins_a>;
91 uart0: serial@01c28000 {
92 pinctrl-names = "default";
93 pinctrl-0 = <&uart0_pins_a>;
98 pinctrl-names = "default";
99 pinctrl-0 = <&i2c0_pins_a>;
103 compatible = "x-powers,axp209";
105 interrupt-parent = <&nmi_intc>;
108 interrupt-controller;
109 #interrupt-cells = <1>;
113 gmac: ethernet@01c50000 {
114 pinctrl-names = "default";
115 pinctrl-0 = <&gmac_pins_mii_a>;
120 phy1: ethernet-phy@1 {
127 compatible = "gpio-leds";
128 pinctrl-names = "default";
129 pinctrl-0 = <&led_pins_pcduino3>;
132 label = "pcduino3:green:tx";
133 gpios = <&pio 7 15 GPIO_ACTIVE_LOW>;
137 label = "pcduino3:green:rx";
138 gpios = <&pio 7 16 GPIO_ACTIVE_LOW>;
143 compatible = "gpio-keys";
144 pinctrl-names = "default";
145 pinctrl-0 = <&key_pins_pcduino3>;
146 #address-cells = <1>;
150 linux,code = <KEY_BACK>;
151 gpios = <&pio 7 17 GPIO_ACTIVE_LOW>;
155 linux,code = <KEY_HOME>;
156 gpios = <&pio 7 18 GPIO_ACTIVE_LOW>;
160 linux,code = <KEY_MENU>;
161 gpios = <&pio 7 19 GPIO_ACTIVE_LOW>;
165 reg_usb1_vbus: usb1-vbus {
169 reg_usb2_vbus: usb2-vbus {
173 reg_ahci_5v: ahci-5v {