diff options
Diffstat (limited to 'arch/arm/boot/dts/sun4i-a10-cubieboard.dts')
-rw-r--r-- | arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 58 |
1 files changed, 47 insertions, 11 deletions
diff --git a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts index 6a310da53f18..4260c2b47607 100644 --- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts +++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts | |||
@@ -47,8 +47,11 @@ | |||
47 | */ | 47 | */ |
48 | 48 | ||
49 | /dts-v1/; | 49 | /dts-v1/; |
50 | /include/ "sun4i-a10.dtsi" | 50 | #include "sun4i-a10.dtsi" |
51 | /include/ "sunxi-common-regulators.dtsi" | 51 | #include "sunxi-common-regulators.dtsi" |
52 | |||
53 | #include <dt-bindings/gpio/gpio.h> | ||
54 | #include <dt-bindings/pinctrl/sun4i-a10.h> | ||
52 | 55 | ||
53 | / { | 56 | / { |
54 | model = "Cubietech Cubieboard"; | 57 | model = "Cubietech Cubieboard"; |
@@ -75,7 +78,7 @@ | |||
75 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; | 78 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |
76 | vmmc-supply = <®_vcc3v3>; | 79 | vmmc-supply = <®_vcc3v3>; |
77 | bus-width = <4>; | 80 | bus-width = <4>; |
78 | cd-gpios = <&pio 7 1 0>; /* PH1 */ | 81 | cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ |
79 | cd-inverted; | 82 | cd-inverted; |
80 | status = "okay"; | 83 | status = "okay"; |
81 | }; | 84 | }; |
@@ -111,8 +114,8 @@ | |||
111 | led_pins_cubieboard: led_pins@0 { | 114 | led_pins_cubieboard: led_pins@0 { |
112 | allwinner,pins = "PH20", "PH21"; | 115 | allwinner,pins = "PH20", "PH21"; |
113 | allwinner,function = "gpio_out"; | 116 | allwinner,function = "gpio_out"; |
114 | allwinner,drive = <1>; | 117 | allwinner,drive = <SUN4I_PINCTRL_20_MA>; |
115 | allwinner,pull = <0>; | 118 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
116 | }; | 119 | }; |
117 | }; | 120 | }; |
118 | 121 | ||
@@ -134,12 +137,8 @@ | |||
134 | status = "okay"; | 137 | status = "okay"; |
135 | 138 | ||
136 | axp209: pmic@34 { | 139 | axp209: pmic@34 { |
137 | compatible = "x-powers,axp209"; | ||
138 | reg = <0x34>; | 140 | reg = <0x34>; |
139 | interrupts = <0>; | 141 | interrupts = <0>; |
140 | |||
141 | interrupt-controller; | ||
142 | #interrupt-cells = <1>; | ||
143 | }; | 142 | }; |
144 | }; | 143 | }; |
145 | 144 | ||
@@ -148,6 +147,12 @@ | |||
148 | pinctrl-0 = <&i2c1_pins_a>; | 147 | pinctrl-0 = <&i2c1_pins_a>; |
149 | status = "okay"; | 148 | status = "okay"; |
150 | }; | 149 | }; |
150 | |||
151 | spi0: spi@01c05000 { | ||
152 | pinctrl-names = "default"; | ||
153 | pinctrl-0 = <&spi0_pins_a>; | ||
154 | status = "okay"; | ||
155 | }; | ||
151 | }; | 156 | }; |
152 | 157 | ||
153 | leds { | 158 | leds { |
@@ -157,12 +162,12 @@ | |||
157 | 162 | ||
158 | blue { | 163 | blue { |
159 | label = "cubieboard:blue:usr"; | 164 | label = "cubieboard:blue:usr"; |
160 | gpios = <&pio 7 21 0>; /* LED1 */ | 165 | gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; /* LED1 */ |
161 | }; | 166 | }; |
162 | 167 | ||
163 | green { | 168 | green { |
164 | label = "cubieboard:green:usr"; | 169 | label = "cubieboard:green:usr"; |
165 | gpios = <&pio 7 20 0>; /* LED2 */ | 170 | gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; /* LED2 */ |
166 | linux,default-trigger = "heartbeat"; | 171 | linux,default-trigger = "heartbeat"; |
167 | }; | 172 | }; |
168 | }; | 173 | }; |
@@ -179,3 +184,34 @@ | |||
179 | status = "okay"; | 184 | status = "okay"; |
180 | }; | 185 | }; |
181 | }; | 186 | }; |
187 | |||
188 | #include "axp209.dtsi" | ||
189 | |||
190 | &cpu0 { | ||
191 | cpu-supply = <®_dcdc2>; | ||
192 | }; | ||
193 | |||
194 | ®_dcdc2 { | ||
195 | regulator-always-on; | ||
196 | regulator-min-microvolt = <1000000>; | ||
197 | regulator-max-microvolt = <1450000>; | ||
198 | regulator-name = "vdd-cpu"; | ||
199 | }; | ||
200 | |||
201 | ®_dcdc3 { | ||
202 | regulator-always-on; | ||
203 | regulator-min-microvolt = <1000000>; | ||
204 | regulator-max-microvolt = <1400000>; | ||
205 | regulator-name = "vdd-int-dll"; | ||
206 | }; | ||
207 | |||
208 | ®_ldo1 { | ||
209 | regulator-name = "vdd-rtc"; | ||
210 | }; | ||
211 | |||
212 | ®_ldo2 { | ||
213 | regulator-always-on; | ||
214 | regulator-min-microvolt = <3000000>; | ||
215 | regulator-max-microvolt = <3000000>; | ||
216 | regulator-name = "avcc"; | ||
217 | }; | ||