aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-07-08 12:05:48 -0400
committerMaxime Ripard <maxime.ripard@free-electrons.com>2016-07-18 05:39:47 -0400
commit147c6163daaa2bfda117bb662f5206fc2cc97118 (patch)
treeae2a77dfade7ed50c2bbac19dc5bfb7c8e0fffc0
parentf51203b253f26d679d52403d4077ec52d2ec2e17 (diff)
ARM: dts: sun5i: Use sun5i-reference-design-tablet.dtsi for utoo p66 dts
This results in a nice cleanup for this dts file. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r--arch/arm/boot/dts/sun5i-a13-utoo-p66.dts180
1 files changed, 21 insertions, 159 deletions
diff --git a/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts b/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts
index fa9ddfdcfe96..a8b0bcc04514 100644
--- a/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts
+++ b/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts
@@ -42,24 +42,20 @@
42 42
43/dts-v1/; 43/dts-v1/;
44#include "sun5i-a13.dtsi" 44#include "sun5i-a13.dtsi"
45#include "sunxi-common-regulators.dtsi" 45#include "sun5i-reference-design-tablet.dtsi"
46#include <dt-bindings/gpio/gpio.h>
47#include <dt-bindings/input/input.h>
48#include <dt-bindings/interrupt-controller/irq.h> 46#include <dt-bindings/interrupt-controller/irq.h>
49#include <dt-bindings/pinctrl/sun4i-a10.h>
50#include <dt-bindings/pwm/pwm.h>
51 47
52/ { 48/ {
53 model = "Utoo P66"; 49 model = "Utoo P66";
54 compatible = "utoo,p66", "allwinner,sun5i-a13"; 50 compatible = "utoo,p66", "allwinner,sun5i-a13";
55 51
56 backlight: backlight { 52 /* The P66 uses the uart pins as gpios */
57 compatible = "pwm-backlight"; 53 aliases {
58 pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; 54 /delete-property/serial0;
59 /* Note levels of 10 / 20% result in backlight off */ 55 };
60 brightness-levels = <0 30 40 50 60 70 80 90 100>; 56
61 default-brightness-level = <6>; 57 chosen {
62 /* TODO: backlight uses axp gpio1 as enable pin */ 58 /delete-property/stdout-path;
63 }; 59 };
64 60
65 i2c_lcd: i2c@0 { 61 i2c_lcd: i2c@0 {
@@ -73,39 +69,21 @@
73 }; 69 };
74}; 70};
75 71
76&codec { 72&backlight {
77 pinctrl-names = "default"; 73 /* Note levels of 10 / 20% result in backlight off */
78 pinctrl-0 = <&codec_pa_pin>; 74 brightness-levels = <0 30 40 50 60 70 80 90 100>;
79 allwinner,pa-gpios = <&pio 6 3 GPIO_ACTIVE_HIGH>; /* PG3 */ 75 default-brightness-level = <6>;
80 status = "okay";
81};
82
83&cpu0 {
84 cpu-supply = <&reg_dcdc2>;
85}; 76};
86 77
87&ehci0 { 78&codec {
88 status = "okay"; 79 allwinner,pa-gpios = <&pio 6 3 GPIO_ACTIVE_HIGH>; /* PG3 */
89}; 80};
90 81
91&i2c0 { 82&codec_pa_pin {
92 pinctrl-names = "default"; 83 allwinner,pins = "PG3";
93 pinctrl-0 = <&i2c0_pins_a>;
94 status = "okay";
95
96 axp209: pmic@34 {
97 reg = <0x34>;
98 interrupts = <0>;
99 };
100}; 84};
101 85
102#include "axp209.dtsi"
103
104&i2c1 { 86&i2c1 {
105 pinctrl-names = "default";
106 pinctrl-0 = <&i2c1_pins_a>;
107 status = "okay";
108
109 icn8318: touchscreen@40 { 87 icn8318: touchscreen@40 {
110 compatible = "chipone,icn8318"; 88 compatible = "chipone,icn8318";
111 reg = <0x40>; 89 reg = <0x40>;
@@ -119,40 +97,6 @@
119 touchscreen-inverted-x; 97 touchscreen-inverted-x;
120 touchscreen-swapped-x-y; 98 touchscreen-swapped-x-y;
121 }; 99 };
122
123 pcf8563: rtc@51 {
124 compatible = "nxp,pcf8563";
125 reg = <0x51>;
126 };
127};
128
129&lradc {
130 vref-supply = <&reg_ldo2>;
131 status = "okay";
132
133 button@200 {
134 label = "Volume Up";
135 linux,code = <KEY_VOLUMEUP>;
136 channel = <0>;
137 voltage = <200000>;
138 };
139
140 button@400 {
141 label = "Volume Down";
142 linux,code = <KEY_VOLUMEDOWN>;
143 channel = <0>;
144 voltage = <400000>;
145 };
146};
147
148&mmc0 {
149 pinctrl-names = "default";
150 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_p66>;
151 vmmc-supply = <&reg_vcc3v3>;
152 bus-width = <4>;
153 cd-gpios = <&pio 6 0 GPIO_ACTIVE_HIGH>; /* PG0 */
154 cd-inverted;
155 status = "okay";
156}; 100};
157 101
158&mmc2 { 102&mmc2 {
@@ -170,39 +114,7 @@
170 }; 114 };
171}; 115};
172 116
173&otg_sram {
174 status = "okay";
175};
176
177&pio { 117&pio {
178 codec_pa_pin: codec_pa_pin@0 {
179 allwinner,pins = "PG3";
180 allwinner,function = "gpio_out";
181 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
182 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
183 };
184
185 mmc0_cd_pin_p66: mmc0_cd_pin@0 {
186 allwinner,pins = "PG0";
187 allwinner,function = "gpio_in";
188 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
189 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
190 };
191
192 usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
193 allwinner,pins = "PG1";
194 allwinner,function = "gpio_in";
195 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
196 allwinner,pull = <SUN4I_PINCTRL_PULL_DOWN>;
197 };
198
199 usb0_id_detect_pin: usb0_id_detect_pin@0 {
200 allwinner,pins = "PG2";
201 allwinner,function = "gpio_in";
202 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
203 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
204 };
205
206 i2c_lcd_pins: i2c_lcd_pin@0 { 118 i2c_lcd_pins: i2c_lcd_pin@0 {
207 allwinner,pins = "PG10", "PG12"; 119 allwinner,pins = "PG10", "PG12";
208 allwinner,function = "gpio_out"; 120 allwinner,function = "gpio_out";
@@ -217,67 +129,17 @@
217 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; 129 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
218 }; 130 };
219 131
220 usb0_vbus_pin_a: usb0_vbus_pin@0 {
221 allwinner,pins = "PB4";
222 allwinner,function = "gpio_out";
223 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
224 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
225 };
226};
227
228&pwm {
229 pinctrl-names = "default";
230 pinctrl-0 = <&pwm0_pins>;
231 status = "okay";
232};
233
234&reg_dcdc2 {
235 regulator-always-on;
236 regulator-min-microvolt = <1000000>;
237 regulator-max-microvolt = <1500000>;
238 regulator-name = "vdd-cpu";
239};
240
241&reg_dcdc3 {
242 regulator-always-on;
243 regulator-min-microvolt = <1000000>;
244 regulator-max-microvolt = <1400000>;
245 regulator-name = "vdd-int-pll";
246};
247
248&reg_ldo1 {
249 regulator-name = "vdd-rtc";
250};
251
252&reg_ldo2 {
253 regulator-always-on;
254 regulator-min-microvolt = <3000000>;
255 regulator-max-microvolt = <3000000>;
256 regulator-name = "avcc";
257};
258
259&reg_ldo3 {
260 regulator-min-microvolt = <3300000>;
261 regulator-max-microvolt = <3300000>;
262 regulator-name = "vcc-wifi";
263}; 132};
264 133
265&reg_usb0_vbus { 134&reg_usb0_vbus {
266 gpio = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */ 135 gpio = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */
267 status = "okay";
268}; 136};
269 137
270&usb_otg { 138&uart1 {
271 dr_mode = "otg"; 139 /* The P66 uses the uart pins as gpios */
272 status = "okay"; 140 status = "disabled";
273}; 141};
274 142
275&usbphy { 143&usb0_vbus_pin_a {
276 pinctrl-names = "default"; 144 allwinner,pins = "PB4";
277 pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
278 usb0_id_det-gpio = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */
279 usb0_vbus_det-gpio = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */
280 usb0_vbus-supply = <&reg_usb0_vbus>;
281 usb1_vbus-supply = <&reg_ldo3>;
282 status = "okay";
283}; 145};