blob: 27ca1a16ca91fb43bccb60d6bd3e18a6f454da82 [file] [log] [blame]
Maxime Ripard82abe522013-07-25 12:19:16 +02001/*
2 * Copyright 2013 Maxime Ripard
3 *
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
5 *
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:
9 *
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
12 */
13
14/dts-v1/;
Maxime Ripard71455702014-12-16 22:59:54 +010015#include "sun7i-a20.dtsi"
16#include "sunxi-common-regulators.dtsi"
Maxime Ripard82abe522013-07-25 12:19:16 +020017
Maxime Ripardbca12922014-12-16 22:59:55 +010018#include <dt-bindings/gpio/gpio.h>
19
Maxime Ripard82abe522013-07-25 12:19:16 +020020/ {
21 model = "Cubietech Cubieboard2";
22 compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20";
23
24 soc@01c00000 {
Hans de Goedec6211832014-05-02 17:57:28 +020025 mmc0: mmc@01c0f000 {
26 pinctrl-names = "default";
27 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
Hans de Goede0ed9eab2014-05-11 09:46:57 +020028 vmmc-supply = <&reg_vcc3v3>;
Hans de Goedec6211832014-05-02 17:57:28 +020029 bus-width = <4>;
Maxime Ripardbca12922014-12-16 22:59:55 +010030 cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
Hans de Goedec6211832014-05-02 17:57:28 +020031 cd-inverted;
32 status = "okay";
33 };
34
Roman Byshko52305e22014-03-01 20:26:35 +010035 usbphy: phy@01c13400 {
36 usb1_vbus-supply = <&reg_usb1_vbus>;
37 usb2_vbus-supply = <&reg_usb2_vbus>;
38 status = "okay";
39 };
40
41 ehci0: usb@01c14000 {
42 status = "okay";
43 };
44
45 ohci0: usb@01c14400 {
46 status = "okay";
47 };
48
Hans de Goede902febf2014-03-01 20:26:22 +010049 ahci: sata@01c18000 {
50 target-supply = <&reg_ahci_5v>;
51 status = "okay";
52 };
53
Roman Byshko52305e22014-03-01 20:26:35 +010054 ehci1: usb@01c1c000 {
55 status = "okay";
56 };
57
58 ohci1: usb@01c1c400 {
59 status = "okay";
60 };
61
Maxime Ripard82abe522013-07-25 12:19:16 +020062 pinctrl@01c20800 {
63 led_pins_cubieboard2: led_pins@0 {
64 allwinner,pins = "PH20", "PH21";
65 allwinner,function = "gpio_out";
66 allwinner,drive = <0>;
67 allwinner,pull = <0>;
68 };
69 };
70
Alexander Bersenev02564522014-06-09 00:08:13 +060071 ir0: ir@01c21800 {
72 pinctrl-names = "default";
73 pinctrl-0 = <&ir0_pins_a>;
74 status = "okay";
75 };
76
Maxime Ripard82abe522013-07-25 12:19:16 +020077 uart0: serial@01c28000 {
78 pinctrl-names = "default";
79 pinctrl-0 = <&uart0_pins_a>;
80 status = "okay";
81 };
Maxime Ripardce0106c2013-08-31 23:12:58 +020082
83 i2c0: i2c@01c2ac00 {
84 pinctrl-names = "default";
85 pinctrl-0 = <&i2c0_pins_a>;
86 status = "okay";
Carlo Caioneec0c9332014-06-30 23:57:53 +020087
88 axp209: pmic@34 {
89 compatible = "x-powers,axp209";
90 reg = <0x34>;
91 interrupt-parent = <&nmi_intc>;
92 interrupts = <0 8>;
93
94 interrupt-controller;
95 #interrupt-cells = <1>;
96 };
Maxime Ripardce0106c2013-08-31 23:12:58 +020097 };
98
99 i2c1: i2c@01c2b000 {
100 pinctrl-names = "default";
101 pinctrl-0 = <&i2c1_pins_a>;
102 status = "okay";
103 };
Chen-Yu Tsai5e718922014-02-10 18:35:52 +0800104
105 gmac: ethernet@01c50000 {
106 pinctrl-names = "default";
107 pinctrl-0 = <&gmac_pins_mii_a>;
108 phy = <&phy1>;
109 phy-mode = "mii";
110 status = "okay";
111
112 phy1: ethernet-phy@1 {
113 reg = <1>;
114 };
115 };
Maxime Ripard82abe522013-07-25 12:19:16 +0200116 };
117
118 leds {
119 compatible = "gpio-leds";
120 pinctrl-names = "default";
121 pinctrl-0 = <&led_pins_cubieboard2>;
122
123 blue {
124 label = "cubieboard2:blue:usr";
Maxime Ripardbca12922014-12-16 22:59:55 +0100125 gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>;
Maxime Ripard82abe522013-07-25 12:19:16 +0200126 };
127
128 green {
129 label = "cubieboard2:green:usr";
Maxime Ripardbca12922014-12-16 22:59:55 +0100130 gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>;
Maxime Ripard82abe522013-07-25 12:19:16 +0200131 };
132 };
Hans de Goede902febf2014-03-01 20:26:22 +0100133
134 reg_ahci_5v: ahci-5v {
135 status = "okay";
136 };
Roman Byshko52305e22014-03-01 20:26:35 +0100137
138 reg_usb1_vbus: usb1-vbus {
139 status = "okay";
140 };
141
142 reg_usb2_vbus: usb2-vbus {
143 status = "okay";
144 };
Maxime Ripard82abe522013-07-25 12:19:16 +0200145};