From 34292c5b8ab5477a8df5d81c0cf175eb3da54ae3 Mon Sep 17 00:00:00 2001 From: Guanzl Date: Sat, 14 Oct 2017 17:37:52 +0800 Subject: [PATCH] AIO:: kernel->add dual-lvds support:lcd-lc550eue-AIO.dtsi --- .../arch/arm/boot/dts/firefly-rk3288-AIO.dts | 5 +- .../arch/arm/boot/dts/lcd-lc550eue-AIO.dtsi | 92 +++++++++++++++++++ 2 files changed, 95 insertions(+), 2 deletions(-) create mode 100644 kernel/arch/arm/boot/dts/lcd-lc550eue-AIO.dtsi diff --git a/kernel/arch/arm/boot/dts/firefly-rk3288-AIO.dts b/kernel/arch/arm/boot/dts/firefly-rk3288-AIO.dts index 465b2c4a8d..fa881dc48a 100644 --- a/kernel/arch/arm/boot/dts/firefly-rk3288-AIO.dts +++ b/kernel/arch/arm/boot/dts/firefly-rk3288-AIO.dts @@ -1,8 +1,9 @@ /dts-v1/; #include "rk3288.dtsi" -#include "lcd-LP079Qx1-AIO.dtsi" -//#include "lcd-box-AIO.dtsi" +//#include "lcd-LP079Qx1-AIO.dtsi" +#include "lcd-box-AIO.dtsi" +//#include "lcd-lc550eue-AIO.dtsi" #include / { diff --git a/kernel/arch/arm/boot/dts/lcd-lc550eue-AIO.dtsi b/kernel/arch/arm/boot/dts/lcd-lc550eue-AIO.dtsi new file mode 100644 index 0000000000..a6d95505ce --- /dev/null +++ b/kernel/arch/arm/boot/dts/lcd-lc550eue-AIO.dtsi @@ -0,0 +1,92 @@ +/* + * RockChip. LCD_B101ew05 + * + */ + +/ { + + backlight { + compatible = "pwm-backlight"; + pwms = <&pwm1 0 10000>; + rockchip,pwm_id= <1>; + brightness-levels = ; + default-brightness-level = <128>; + //enable-gpios = <&gpio5 GPIO_C1 GPIO_ACTIVE_HIGH>; + }; + + disp_timings: display-timings { + native-mode = <&timing0>; + timing0: timing0 { + screen-type = ; + lvds-format = ; + out-face = ; + color-mode = ; + clock-frequency = <148000000>; + hactive = <1920>; + vactive = <1080>; + hback-porch = <90>; + hfront-porch = <42>; + vback-porch = <30>; + vfront-porch = <13>; + hsync-len = <8>; + vsync-len = <2>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <0>; + pixelclk-active = <0>; + swap-rb = <0>; + swap-rg = <0>; + swap-gb = <0>; + }; + }; +}; + +&disp_timings { + native-mode = <&timing0>; +}; + +&rk_screen { + display-timings = <&disp_timings>; +}; + +/*lcdc0 as PRMRY(HDMI)*/ +&lcdc0 { + status = "okay"; + rockchip,iommu-enabled = <1>; + rockchip,prop = ; + power_ctr: power_ctr { + rockchip,debug = <1>; + + lcd_en:lcd_en { + rockchip,power_type = ; + gpios = <&gpio7 GPIO_A3 GPIO_ACTIVE_HIGH>; + rockchip,delay = <10>; + }; + + bl_en:bl_en { + rockchip,power_type = ; + gpios = <&gpio5 GPIO_C1 GPIO_ACTIVE_HIGH>; + rockchip,delay = <10>; + }; + + /* + lcd_cs:lcd_cs { + rockchip,power_type = ; + gpios = <&gpio7 GPIO_A4 GPIO_ACTIVE_HIGH>; + rockchip,delay = <10>; + }; + + lcd_rst:lcd_rst { + rockchip,power_type = ; + gpios = <&gpio5 GPIO_C1 GPIO_ACTIVE_HIGH>; + rockchip,delay = <0>; + };*/ + }; +}; + +&lcdc1 { + status = "okay"; + rockchip,iommu-enabled = <1>; + rockchip,prop = ; +}; +