]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
ARM: sunxi: DT: Convert the DTs to use the GIC headers
[mirror_ubuntu-artful-kernel.git] / arch / arm / boot / dts / sun7i-a20-cubieboard2.dts
CommitLineData
82abe529
MR
1/*
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/;
71455701
MR
15#include "sun7i-a20.dtsi"
16#include "sunxi-common-regulators.dtsi"
82abe529 17
bca12924 18#include <dt-bindings/gpio/gpio.h>
092a0c3b 19#include <dt-bindings/pinctrl/sun4i-a10.h>
bca12924 20
82abe529
MR
21/ {
22 model = "Cubietech Cubieboard2";
23 compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20";
24
25 soc@01c00000 {
c621183c
HG
26 mmc0: mmc@01c0f000 {
27 pinctrl-names = "default";
28 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
0ed9eab3 29 vmmc-supply = <&reg_vcc3v3>;
c621183c 30 bus-width = <4>;
bca12924 31 cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
c621183c
HG
32 cd-inverted;
33 status = "okay";
34 };
35
52305e24
RB
36 usbphy: phy@01c13400 {
37 usb1_vbus-supply = <&reg_usb1_vbus>;
38 usb2_vbus-supply = <&reg_usb2_vbus>;
39 status = "okay";
40 };
41
42 ehci0: usb@01c14000 {
43 status = "okay";
44 };
45
46 ohci0: usb@01c14400 {
47 status = "okay";
48 };
49
902febf9
HG
50 ahci: sata@01c18000 {
51 target-supply = <&reg_ahci_5v>;
52 status = "okay";
53 };
54
52305e24
RB
55 ehci1: usb@01c1c000 {
56 status = "okay";
57 };
58
59 ohci1: usb@01c1c400 {
60 status = "okay";
61 };
62
82abe529
MR
63 pinctrl@01c20800 {
64 led_pins_cubieboard2: led_pins@0 {
65 allwinner,pins = "PH20", "PH21";
66 allwinner,function = "gpio_out";
092a0c3b
MR
67 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
68 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
82abe529
MR
69 };
70 };
71
0256452e
AB
72 ir0: ir@01c21800 {
73 pinctrl-names = "default";
74 pinctrl-0 = <&ir0_pins_a>;
75 status = "okay";
76 };
77
82abe529
MR
78 uart0: serial@01c28000 {
79 pinctrl-names = "default";
80 pinctrl-0 = <&uart0_pins_a>;
81 status = "okay";
82 };
ce0106c5
MR
83
84 i2c0: i2c@01c2ac00 {
85 pinctrl-names = "default";
86 pinctrl-0 = <&i2c0_pins_a>;
87 status = "okay";
ec0c933d
CC
88
89 axp209: pmic@34 {
90 compatible = "x-powers,axp209";
91 reg = <0x34>;
92 interrupt-parent = <&nmi_intc>;
93 interrupts = <0 8>;
94
95 interrupt-controller;
96 #interrupt-cells = <1>;
97 };
ce0106c5
MR
98 };
99
100 i2c1: i2c@01c2b000 {
101 pinctrl-names = "default";
102 pinctrl-0 = <&i2c1_pins_a>;
103 status = "okay";
104 };
5e71892f
CYT
105
106 gmac: ethernet@01c50000 {
107 pinctrl-names = "default";
108 pinctrl-0 = <&gmac_pins_mii_a>;
109 phy = <&phy1>;
110 phy-mode = "mii";
111 status = "okay";
112
113 phy1: ethernet-phy@1 {
114 reg = <1>;
115 };
116 };
82abe529
MR
117 };
118
119 leds {
120 compatible = "gpio-leds";
121 pinctrl-names = "default";
122 pinctrl-0 = <&led_pins_cubieboard2>;
123
124 blue {
125 label = "cubieboard2:blue:usr";
bca12924 126 gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>;
82abe529
MR
127 };
128
129 green {
130 label = "cubieboard2:green:usr";
bca12924 131 gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>;
82abe529
MR
132 };
133 };
902febf9
HG
134
135 reg_ahci_5v: ahci-5v {
136 status = "okay";
137 };
52305e24
RB
138
139 reg_usb1_vbus: usb1-vbus {
140 status = "okay";
141 };
142
143 reg_usb2_vbus: usb2-vbus {
144 status = "okay";
145 };
82abe529 146};