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>
This commit is contained in:
parent
f51203b253
commit
147c6163da
@ -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 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&backlight {
|
||||||
|
/* Note levels of 10 / 20% result in backlight off */
|
||||||
|
brightness-levels = <0 30 40 50 60 70 80 90 100>;
|
||||||
|
default-brightness-level = <6>;
|
||||||
|
};
|
||||||
|
|
||||||
&codec {
|
&codec {
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&codec_pa_pin>;
|
|
||||||
allwinner,pa-gpios = <&pio 6 3 GPIO_ACTIVE_HIGH>; /* PG3 */
|
allwinner,pa-gpios = <&pio 6 3 GPIO_ACTIVE_HIGH>; /* PG3 */
|
||||||
status = "okay";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&cpu0 {
|
&codec_pa_pin {
|
||||||
cpu-supply = <®_dcdc2>;
|
allwinner,pins = "PG3";
|
||||||
};
|
};
|
||||||
|
|
||||||
&ehci0 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c0 {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
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 @@
|
|||||||
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 = <®_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 = <®_vcc3v3>;
|
|
||||||
bus-width = <4>;
|
|
||||||
cd-gpios = <&pio 6 0 GPIO_ACTIVE_HIGH>; /* PG0 */
|
|
||||||
cd-inverted;
|
|
||||||
status = "okay";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc2 {
|
&mmc2 {
|
||||||
@ -170,39 +114,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&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 @@
|
|||||||
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";
|
|
||||||
};
|
|
||||||
|
|
||||||
®_dcdc2 {
|
|
||||||
regulator-always-on;
|
|
||||||
regulator-min-microvolt = <1000000>;
|
|
||||||
regulator-max-microvolt = <1500000>;
|
|
||||||
regulator-name = "vdd-cpu";
|
|
||||||
};
|
|
||||||
|
|
||||||
®_dcdc3 {
|
|
||||||
regulator-always-on;
|
|
||||||
regulator-min-microvolt = <1000000>;
|
|
||||||
regulator-max-microvolt = <1400000>;
|
|
||||||
regulator-name = "vdd-int-pll";
|
|
||||||
};
|
|
||||||
|
|
||||||
®_ldo1 {
|
|
||||||
regulator-name = "vdd-rtc";
|
|
||||||
};
|
|
||||||
|
|
||||||
®_ldo2 {
|
|
||||||
regulator-always-on;
|
|
||||||
regulator-min-microvolt = <3000000>;
|
|
||||||
regulator-max-microvolt = <3000000>;
|
|
||||||
regulator-name = "avcc";
|
|
||||||
};
|
|
||||||
|
|
||||||
®_ldo3 {
|
|
||||||
regulator-min-microvolt = <3300000>;
|
|
||||||
regulator-max-microvolt = <3300000>;
|
|
||||||
regulator-name = "vcc-wifi";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
®_usb0_vbus {
|
®_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 = <®_usb0_vbus>;
|
|
||||||
usb1_vbus-supply = <®_ldo3>;
|
|
||||||
status = "okay";
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user