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