This patch add support for Bananapi S070WV20-CT16 DSI panel to
BPI-M2U board.

DSI panel connected via board DSI port with,
- DCDC1 as VCC-DSI supply
- PH18 gpio for lcd enable pin
- PD17 gpio for lcd reset pin
- PD16 gpio for backlight enable pin

Signed-off-by: Jagan Teki <ja...@amarulasolutions.com>
---
Changes for v3:
- none

 .../boot/dts/sun8i-r40-bananapi-m2-ultra.dts  | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts 
b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
index 42d62d1ba1dc..99f84e6f15ce 100644
--- a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
+++ b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
@@ -45,6 +45,7 @@
 #include "sun8i-r40.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pwm/pwm.h>
 
 / {
        model = "Banana Pi BPI-M2-Ultra";
@@ -55,6 +56,14 @@
                serial0 = &uart0;
        };
 
+       backlight: backlight {
+               compatible = "pwm-backlight";
+               pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
+               brightness-levels = <1 2 4 8 16 32 64 128 255>;
+               default-brightness-level = <2>;
+               enable-gpios = <&pio 7 16 GPIO_ACTIVE_HIGH>; /* LCD-BL-EN: PH16 
*/
+       };
+
        chosen {
                stdout-path = "serial0:115200n8";
        };
@@ -117,6 +126,24 @@
        status = "okay";
 };
 
+&dphy {
+       status = "okay";
+};
+
+&dsi {
+       vcc-dsi-supply = <&reg_dcdc1>;          /* VCC-DSI */
+       status = "okay";
+
+       panel@0 {
+               compatible = "bananapi,s070wv20-ct16-icn6211";
+               reg = <0>;
+               enable-gpio = <&pio 7 18 GPIO_ACTIVE_HIGH>; /* LCD-PWR-EN: PH18 
*/
+               reset-gpios = <&pio 7 17 GPIO_ACTIVE_HIGH>; /* LCD-RST: PH17 */
+               vdd-supply = <&reg_dcdc1>;
+               backlight = <&backlight>;
+       };
+};
+
 &ehci1 {
        status = "okay";
 };
@@ -209,6 +236,12 @@
        vcc-pg-supply = <&reg_dldo1>;
 };
 
+&pwm {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pwm0_pin>;
+       status = "okay";
+};
+
 &reg_aldo2 {
        regulator-min-microvolt = <2500000>;
        regulator-max-microvolt = <2500000>;
@@ -295,6 +328,10 @@
        regulator-name = "vdd1v2-sata";
 };
 
+&tcon_lcd0 {
+       status = "okay";
+};
+
 &tcon_tv0 {
        status = "okay";
 };
-- 
2.18.0.321.gffc6fa0e3

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/linux-sunxi/20191231130528.20669-10-jagan%40amarulasolutions.com.

Reply via email to