Commit 147c6163 authored by Hans de Goede's avatar Hans de Goede Committed by Maxime Ripard

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: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent f51203b2
...@@ -42,24 +42,20 @@ ...@@ -42,24 +42,20 @@
/dts-v1/; /dts-v1/;
#include "sun5i-a13.dtsi" #include "sun5i-a13.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sun5i-reference-design-tablet.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/sun4i-a10.h>
#include <dt-bindings/pwm/pwm.h>
/ { / {
model = "Utoo P66"; model = "Utoo P66";
compatible = "utoo,p66", "allwinner,sun5i-a13"; compatible = "utoo,p66", "allwinner,sun5i-a13";
backlight: backlight { /* The P66 uses the uart pins as gpios */
compatible = "pwm-backlight"; aliases {
pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; /delete-property/serial0;
/* Note levels of 10 / 20% result in backlight off */ };
brightness-levels = <0 30 40 50 60 70 80 90 100>;
default-brightness-level = <6>; chosen {
/* TODO: backlight uses axp gpio1 as enable pin */ /delete-property/stdout-path;
}; };
i2c_lcd: i2c@0 { i2c_lcd: i2c@0 {
...@@ -73,39 +69,21 @@ i2c_lcd: i2c@0 { ...@@ -73,39 +69,21 @@ i2c_lcd: i2c@0 {
}; };
}; };
&codec { &backlight {
pinctrl-names = "default"; /* Note levels of 10 / 20% result in backlight off */
pinctrl-0 = <&codec_pa_pin>; brightness-levels = <0 30 40 50 60 70 80 90 100>;
allwinner,pa-gpios = <&pio 6 3 GPIO_ACTIVE_HIGH>; /* PG3 */ default-brightness-level = <6>;
status = "okay";
};
&cpu0 {
cpu-supply = <&reg_dcdc2>;
}; };
&ehci0 { &codec {
status = "okay"; allwinner,pa-gpios = <&pio 6 3 GPIO_ACTIVE_HIGH>; /* PG3 */
}; };
&i2c0 { &codec_pa_pin {
pinctrl-names = "default"; allwinner,pins = "PG3";
pinctrl-0 = <&i2c0_pins_a>;
status = "okay";
axp209: pmic@34 {
reg = <0x34>;
interrupts = <0>;
};
}; };
#include "axp209.dtsi"
&i2c1 { &i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins_a>;
status = "okay";
icn8318: touchscreen@40 { icn8318: touchscreen@40 {
compatible = "chipone,icn8318"; compatible = "chipone,icn8318";
reg = <0x40>; reg = <0x40>;
...@@ -119,40 +97,6 @@ icn8318: touchscreen@40 { ...@@ -119,40 +97,6 @@ icn8318: touchscreen@40 {
touchscreen-inverted-x; touchscreen-inverted-x;
touchscreen-swapped-x-y; touchscreen-swapped-x-y;
}; };
pcf8563: rtc@51 {
compatible = "nxp,pcf8563";
reg = <0x51>;
};
};
&lradc {
vref-supply = <&reg_ldo2>;
status = "okay";
button@200 {
label = "Volume Up";
linux,code = <KEY_VOLUMEUP>;
channel = <0>;
voltage = <200000>;
};
button@400 {
label = "Volume Down";
linux,code = <KEY_VOLUMEDOWN>;
channel = <0>;
voltage = <400000>;
};
};
&mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_p66>;
vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>;
cd-gpios = <&pio 6 0 GPIO_ACTIVE_HIGH>; /* PG0 */
cd-inverted;
status = "okay";
}; };
&mmc2 { &mmc2 {
...@@ -170,39 +114,7 @@ mmccard: mmccard@0 { ...@@ -170,39 +114,7 @@ mmccard: mmccard@0 {
}; };
}; };
&otg_sram {
status = "okay";
};
&pio { &pio {
codec_pa_pin: codec_pa_pin@0 {
allwinner,pins = "PG3";
allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
mmc0_cd_pin_p66: mmc0_cd_pin@0 {
allwinner,pins = "PG0";
allwinner,function = "gpio_in";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
};
usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
allwinner,pins = "PG1";
allwinner,function = "gpio_in";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_PULL_DOWN>;
};
usb0_id_detect_pin: usb0_id_detect_pin@0 {
allwinner,pins = "PG2";
allwinner,function = "gpio_in";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
};
i2c_lcd_pins: i2c_lcd_pin@0 { i2c_lcd_pins: i2c_lcd_pin@0 {
allwinner,pins = "PG10", "PG12"; allwinner,pins = "PG10", "PG12";
allwinner,function = "gpio_out"; allwinner,function = "gpio_out";
...@@ -217,67 +129,17 @@ ts_wake_pin_p66: ts_wake_pin@0 { ...@@ -217,67 +129,17 @@ ts_wake_pin_p66: ts_wake_pin@0 {
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
}; };
usb0_vbus_pin_a: usb0_vbus_pin@0 {
allwinner,pins = "PB4";
allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
};
&pwm {
pinctrl-names = "default";
pinctrl-0 = <&pwm0_pins>;
status = "okay";
};
&reg_dcdc2 {
regulator-always-on;
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <1500000>;
regulator-name = "vdd-cpu";
};
&reg_dcdc3 {
regulator-always-on;
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <1400000>;
regulator-name = "vdd-int-pll";
};
&reg_ldo1 {
regulator-name = "vdd-rtc";
};
&reg_ldo2 {
regulator-always-on;
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;
regulator-name = "avcc";
};
&reg_ldo3 {
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-name = "vcc-wifi";
}; };
&reg_usb0_vbus { &reg_usb0_vbus {
gpio = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */ gpio = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */
status = "okay";
}; };
&usb_otg { &uart1 {
dr_mode = "otg"; /* The P66 uses the uart pins as gpios */
status = "okay"; status = "disabled";
}; };
&usbphy { &usb0_vbus_pin_a {
pinctrl-names = "default"; allwinner,pins = "PB4";
pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
usb0_id_det-gpio = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */
usb0_vbus_det-gpio = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */
usb0_vbus-supply = <&reg_usb0_vbus>;
usb1_vbus-supply = <&reg_ldo3>;
status = "okay";
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment