diff options
Diffstat (limited to 'arch/arm/boot/dts/sun7i-a20-cubieboard2.dts')
-rw-r--r-- | arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | 101 |
1 files changed, 84 insertions, 17 deletions
diff --git a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts index 53680983461a..c4ab6edb6f15 100644 --- a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts +++ b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | |||
@@ -3,17 +3,57 @@ | |||
3 | * | 3 | * |
4 | * Maxime Ripard <maxime.ripard@free-electrons.com> | 4 | * Maxime Ripard <maxime.ripard@free-electrons.com> |
5 | * | 5 | * |
6 | * The code contained herein is licensed under the GNU General Public | 6 | * This file is dual-licensed: you can use it either under the terms |
7 | * License. You may obtain a copy of the GNU General Public License | 7 | * of the GPL or the X11 license, at your option. Note that this dual |
8 | * Version 2 or later at the following locations: | 8 | * licensing only applies to this file, and not this project as a |
9 | * whole. | ||
9 | * | 10 | * |
10 | * http://www.opensource.org/licenses/gpl-license.html | 11 | * a) This file is free software; you can redistribute it and/or |
11 | * http://www.gnu.org/copyleft/gpl.html | 12 | * modify it under the terms of the GNU General Public License as |
13 | * published by the Free Software Foundation; either version 2 of the | ||
14 | * License, or (at your option) any later version. | ||
15 | * | ||
16 | * This file is distributed in the hope that it will be useful, | ||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * GNU General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU General Public | ||
22 | * License along with this file; if not, write to the Free | ||
23 | * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, | ||
24 | * MA 02110-1301 USA | ||
25 | * | ||
26 | * Or, alternatively, | ||
27 | * | ||
28 | * b) Permission is hereby granted, free of charge, to any person | ||
29 | * obtaining a copy of this software and associated documentation | ||
30 | * files (the "Software"), to deal in the Software without | ||
31 | * restriction, including without limitation the rights to use, | ||
32 | * copy, modify, merge, publish, distribute, sublicense, and/or | ||
33 | * sell copies of the Software, and to permit persons to whom the | ||
34 | * Software is furnished to do so, subject to the following | ||
35 | * conditions: | ||
36 | * | ||
37 | * The above copyright notice and this permission notice shall be | ||
38 | * included in all copies or substantial portions of the Software. | ||
39 | * | ||
40 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
41 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
42 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
43 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
44 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
45 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
46 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
47 | * OTHER DEALINGS IN THE SOFTWARE. | ||
12 | */ | 48 | */ |
13 | 49 | ||
14 | /dts-v1/; | 50 | /dts-v1/; |
15 | /include/ "sun7i-a20.dtsi" | 51 | #include "sun7i-a20.dtsi" |
16 | /include/ "sunxi-common-regulators.dtsi" | 52 | #include "sunxi-common-regulators.dtsi" |
53 | |||
54 | #include <dt-bindings/gpio/gpio.h> | ||
55 | #include <dt-bindings/interrupt-controller/irq.h> | ||
56 | #include <dt-bindings/pinctrl/sun4i-a10.h> | ||
17 | 57 | ||
18 | / { | 58 | / { |
19 | model = "Cubietech Cubieboard2"; | 59 | model = "Cubietech Cubieboard2"; |
@@ -25,7 +65,7 @@ | |||
25 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; | 65 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |
26 | vmmc-supply = <®_vcc3v3>; | 66 | vmmc-supply = <®_vcc3v3>; |
27 | bus-width = <4>; | 67 | bus-width = <4>; |
28 | cd-gpios = <&pio 7 1 0>; /* PH1 */ | 68 | cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ |
29 | cd-inverted; | 69 | cd-inverted; |
30 | status = "okay"; | 70 | status = "okay"; |
31 | }; | 71 | }; |
@@ -61,8 +101,8 @@ | |||
61 | led_pins_cubieboard2: led_pins@0 { | 101 | led_pins_cubieboard2: led_pins@0 { |
62 | allwinner,pins = "PH20", "PH21"; | 102 | allwinner,pins = "PH20", "PH21"; |
63 | allwinner,function = "gpio_out"; | 103 | allwinner,function = "gpio_out"; |
64 | allwinner,drive = <0>; | 104 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
65 | allwinner,pull = <0>; | 105 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
66 | }; | 106 | }; |
67 | }; | 107 | }; |
68 | 108 | ||
@@ -84,13 +124,9 @@ | |||
84 | status = "okay"; | 124 | status = "okay"; |
85 | 125 | ||
86 | axp209: pmic@34 { | 126 | axp209: pmic@34 { |
87 | compatible = "x-powers,axp209"; | ||
88 | reg = <0x34>; | 127 | reg = <0x34>; |
89 | interrupt-parent = <&nmi_intc>; | 128 | interrupt-parent = <&nmi_intc>; |
90 | interrupts = <0 8>; | 129 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
91 | |||
92 | interrupt-controller; | ||
93 | #interrupt-cells = <1>; | ||
94 | }; | 130 | }; |
95 | }; | 131 | }; |
96 | 132 | ||
@@ -120,12 +156,12 @@ | |||
120 | 156 | ||
121 | blue { | 157 | blue { |
122 | label = "cubieboard2:blue:usr"; | 158 | label = "cubieboard2:blue:usr"; |
123 | gpios = <&pio 7 21 0>; | 159 | gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; |
124 | }; | 160 | }; |
125 | 161 | ||
126 | green { | 162 | green { |
127 | label = "cubieboard2:green:usr"; | 163 | label = "cubieboard2:green:usr"; |
128 | gpios = <&pio 7 20 0>; | 164 | gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; |
129 | }; | 165 | }; |
130 | }; | 166 | }; |
131 | 167 | ||
@@ -141,3 +177,34 @@ | |||
141 | status = "okay"; | 177 | status = "okay"; |
142 | }; | 178 | }; |
143 | }; | 179 | }; |
180 | |||
181 | #include "axp209.dtsi" | ||
182 | |||
183 | &cpu0 { | ||
184 | cpu-supply = <®_dcdc2>; | ||
185 | }; | ||
186 | |||
187 | ®_dcdc2 { | ||
188 | regulator-always-on; | ||
189 | regulator-min-microvolt = <1000000>; | ||
190 | regulator-max-microvolt = <1450000>; | ||
191 | regulator-name = "vdd-cpu"; | ||
192 | }; | ||
193 | |||
194 | ®_dcdc3 { | ||
195 | regulator-always-on; | ||
196 | regulator-min-microvolt = <1000000>; | ||
197 | regulator-max-microvolt = <1400000>; | ||
198 | regulator-name = "vdd-int-dll"; | ||
199 | }; | ||
200 | |||
201 | ®_ldo1 { | ||
202 | regulator-name = "vdd-rtc"; | ||
203 | }; | ||
204 | |||
205 | ®_ldo2 { | ||
206 | regulator-always-on; | ||
207 | regulator-min-microvolt = <3000000>; | ||
208 | regulator-max-microvolt = <3000000>; | ||
209 | regulator-name = "avcc"; | ||
210 | }; | ||