2 * Copyright 2013 Maxime Ripard
4 * Maxime Ripard <maxime.ripard@free-electrons.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 = "Cubietech Cubieboard2";
20 compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20";
24 pinctrl-names = "default";
25 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
26 vmmc-supply = <®_vcc3v3>;
28 cd-gpios = <&pio 7 1 0>; /* PH1 */
33 usbphy: phy@01c13400 {
34 usb1_vbus-supply = <®_usb1_vbus>;
35 usb2_vbus-supply = <®_usb2_vbus>;
48 target-supply = <®_ahci_5v>;
61 led_pins_cubieboard2: led_pins@0 {
62 allwinner,pins = "PH20", "PH21";
63 allwinner,function = "gpio_out";
64 allwinner,drive = <0>;
70 pinctrl-names = "default";
71 pinctrl-0 = <&ir0_pins_a>;
75 uart0: serial@01c28000 {
76 pinctrl-names = "default";
77 pinctrl-0 = <&uart0_pins_a>;
82 pinctrl-names = "default";
83 pinctrl-0 = <&i2c0_pins_a>;
87 compatible = "x-powers,axp209";
89 interrupt-parent = <&nmi_intc>;
93 #interrupt-cells = <1>;
98 pinctrl-names = "default";
99 pinctrl-0 = <&i2c1_pins_a>;
103 gmac: ethernet@01c50000 {
104 pinctrl-names = "default";
105 pinctrl-0 = <&gmac_pins_mii_a>;
110 phy1: ethernet-phy@1 {
117 compatible = "gpio-leds";
118 pinctrl-names = "default";
119 pinctrl-0 = <&led_pins_cubieboard2>;
122 label = "cubieboard2:blue:usr";
123 gpios = <&pio 7 21 0>;
127 label = "cubieboard2:green:usr";
128 gpios = <&pio 7 20 0>;
132 reg_ahci_5v: ahci-5v {
136 reg_usb1_vbus: usb1-vbus {
140 reg_usb2_vbus: usb2-vbus {