From d2cad2105c7b856bc3b53a5a6e239c0576d333a9 Mon Sep 17 00:00:00 2001 From: hjc Date: Fri, 7 Mar 2014 12:00:52 +0800 Subject: [PATCH] update rk3288 fpga dts file for display --- arch/arm/boot/dts/lcd-td043mgeal.dtsi | 57 +++++++++++++++++++++++++++ arch/arm/boot/dts/rk3288-fpga.dts | 15 +++++++ 2 files changed, 72 insertions(+) create mode 100755 arch/arm/boot/dts/lcd-td043mgeal.dtsi diff --git a/arch/arm/boot/dts/lcd-td043mgeal.dtsi b/arch/arm/boot/dts/lcd-td043mgeal.dtsi new file mode 100755 index 000000000000..b488cdc54257 --- /dev/null +++ b/arch/arm/boot/dts/lcd-td043mgeal.dtsi @@ -0,0 +1,57 @@ +/* + * RockChip. LCD_TD043MGEA1 FOR FPGA + * + */ + +/ { + disp_power_ctr: power_ctr { + rockchip,debug = <0>; + /* lcd_en:lcd_en { + rockchip,power_type = ; + gpios = <&gpio0 GPIO_B0 GPIO_ACTIVE_HIGH>; + rockchip,delay = <10>; + };*/ + + /* bl_en:bl_en { + rockchip,power_type = ; + gpios = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>; + rockchip,delay = <10>; + }; + + bl_ctr:bl_ctr { + rockchip,power_type = ; + gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>; + rockchip,delay = <10>; + }; + + lcd_rst:lcd_rst { + rockchip,power_type = ; + rockchip,delay = <5>; + };*/ + + }; + + disp_timings: display-timings { + native-mode = <&timing0>; + timing0: timing0 { + screen_type = ; + out_face = ; + clock-frequency = <27000000>; + hactive = <800>; + vactive = <480>; + hback-porch = <206>; + hfront-porch = <40>; + vback-porch = <25>; + vfront-porch = <10>; + hsync-len = <10>; + vsync-len = <10>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <0>; + pixelclk-active = <0>; + swap-rb = <0>; + swap-rg = <0>; + swap-gb = <0>; + }; + }; +}; diff --git a/arch/arm/boot/dts/rk3288-fpga.dts b/arch/arm/boot/dts/rk3288-fpga.dts index 6753ec8f3016..6a7639f89604 100755 --- a/arch/arm/boot/dts/rk3288-fpga.dts +++ b/arch/arm/boot/dts/rk3288-fpga.dts @@ -1,6 +1,7 @@ /dts-v1/; #include "rk3288.dtsi" +#include "lcd-td043mgeal.dtsi" / { compatible = "rockchip,rk3288-fpga"; @@ -87,3 +88,17 @@ }; }; + +&fb { + rockchip,disp-mode = ; +}; + +&lcdc0 { + status = "okay"; + power_ctr = <&disp_power_ctr>; + display-timings = <&disp_timings>; +}; + +&lcdc1 { + status = "okay"; +}; \ No newline at end of file -- 2.34.1