From e164959b426df800902fa268d6e59b08ccf897e0 Mon Sep 17 00:00:00 2001 From: Mitko Gamishev Date: Wed, 5 Feb 2020 15:00:25 +0200 Subject: [PATCH 118/153] arm:dts:sun5i-a13-olinuxino-micro add panel lcd-olinuxino-4.3 --- .../boot/dts/sun5i-a13-olinuxino-micro.dts | 62 ++++++++++++++++++- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/allwinner/sun5i-a13-olinuxino-micro.dts b/arch/arm/boot/dts/allwinner/sun5i-a13-olinuxino-micro.dts index bfe1075e6..32874f6a5 100644 --- a/arch/arm/boot/dts/allwinner/sun5i-a13-olinuxino-micro.dts +++ b/arch/arm/boot/dts/allwinner/sun5i-a13-olinuxino-micro.dts @@ -44,7 +44,7 @@ /dts-v1/; #include "sun5i-a13.dtsi" #include "sunxi-common-regulators.dtsi" - +#include #include / { @@ -70,6 +70,40 @@ led { default-state = "on"; }; }; + + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; + brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; + default-brightness-level = <8>; + + }; + + panel: panel { + compatible = "olimex,lcd-olinuxino-4.3"; + backlight = <&backlight>; + enable-gpios = <&pio 1 10 GPIO_ACTIVE_HIGH>; /* PB10 */ + pinctrl-names = "default"; + #address-cells = <1>; + #size-cells = <0>; + port { + panel_input: endpoint { + remote-endpoint = <&tcon0_out_lcd>; + }; + }; + + }; + + }; + + + +&be0 { + status = "okay"; +}; + +&codec { + status = "okay"; }; &ehci0 { @@ -117,10 +151,28 @@ ®_usb0_vbus { }; ®_usb1_vbus { - gpio = <&pio 6 11 GPIO_ACTIVE_HIGH>; + gpio = <&pio 2 19 GPIO_ACTIVE_HIGH>; status = "okay"; }; +&tcon0 { + pinctrl-names = "default"; + pinctrl-0 = <&lcd_rgb666_pins>; + status = "okay"; +}; +&tcon0_out { + tcon0_out_lcd: endpoint@0 { + reg = <0>; + remote-endpoint = <&panel_input>; + }; +}; + +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pin>; + status = "okay"; +}; + &uart1 { pinctrl-names = "default"; pinctrl-0 = <&uart1_pg_pins>; @@ -139,3 +191,9 @@ &usbphy { usb1_vbus-supply = <®_usb1_vbus>; status = "okay"; }; + +&rtp { + allwinner,ts-attached; + touchscreen-inverted-x; +}; + -- 2.35.3