mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
move screen power control to board dts,because it's board specifc
This commit is contained in:
@@ -1,35 +1,9 @@
|
||||
/*
|
||||
* RockChip. LCD_B101ew05
|
||||
* RockChip. DisplayPort screen LP097QX1
|
||||
*
|
||||
*/
|
||||
|
||||
/ {
|
||||
disp_power_ctr: power_ctr {
|
||||
rockchip,debug = <0>;
|
||||
/*lcd_en:lcd_en {
|
||||
rockchip,power_type = <GPIO>;
|
||||
gpios = <&gpio0 GPIO_B0 1>;
|
||||
rockchip,delay = <10>;
|
||||
};
|
||||
|
||||
bl_en:bl_en {
|
||||
rockchip,power_type = <GPIO>;
|
||||
gpios = <&gpio0 GPIO_A2 1>;
|
||||
rockchip,delay = <10>;
|
||||
};
|
||||
|
||||
bl_ctr:bl_ctr {
|
||||
rockchip,power_type = <GPIO>;
|
||||
gpios = <&gpio3 GPIO_D6 1>;
|
||||
rockchip,delay = <10>;
|
||||
};
|
||||
|
||||
lcd_rst:lcd_rst {
|
||||
rockchip,power_type = <REGULATOR>;
|
||||
rockchip,delay = <5>;
|
||||
};*/
|
||||
|
||||
};
|
||||
|
||||
disp_timings: display-timings {
|
||||
native-mode = <&timing0>;
|
||||
|
||||
@@ -4,37 +4,11 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
disp_power_ctr: power_ctr {
|
||||
rockchip,debug = <0>;
|
||||
lcd_en:lcd_en {
|
||||
rockchip,power_type = <GPIO>;
|
||||
gpios = <&gpio0 GPIO_B0 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,delay = <10>;
|
||||
};
|
||||
|
||||
/* bl_en:bl_en {
|
||||
rockchip,power_type = <GPIO>;
|
||||
gpios = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,delay = <10>;
|
||||
};
|
||||
|
||||
bl_ctr:bl_ctr {
|
||||
rockchip,power_type = <GPIO>;
|
||||
gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,delay = <10>;
|
||||
};
|
||||
|
||||
lcd_rst:lcd_rst {
|
||||
rockchip,power_type = <REGULATOR>;
|
||||
rockchip,delay = <5>;
|
||||
};*/
|
||||
|
||||
};
|
||||
|
||||
disp_timings: display-timings {
|
||||
native-mode = <&timing0>;
|
||||
timing0: timing0 {
|
||||
screen-ype = <SCREEN_LVDS>;
|
||||
screen-type = <SCREEN_LVDS>;
|
||||
lvds-format = <LVDS_8BIT_2>;
|
||||
out-face = <OUT_D888_P666>;
|
||||
clock-frequency = <71000000>;
|
||||
|
||||
@@ -1,50 +1,24 @@
|
||||
/*
|
||||
* RockChip. LCD_TD043MGEA1 FOR FPGA
|
||||
* RockChip. LCD_TD043MGEA1 FOR FPGA
|
||||
*
|
||||
*/
|
||||
|
||||
/ {
|
||||
disp_power_ctr: power_ctr {
|
||||
rockchip,debug = <0>;
|
||||
lcd_en:lcd_en {
|
||||
rockchip,power_type = <GPIO>;
|
||||
gpios = <&gpio0 GPIO_B0 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,delay = <10>;
|
||||
};
|
||||
|
||||
/* bl_en:bl_en {
|
||||
rockchip,power_type = <GPIO>;
|
||||
gpios = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,delay = <10>;
|
||||
};
|
||||
|
||||
bl_ctr:bl_ctr {
|
||||
rockchip,power_type = <GPIO>;
|
||||
gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,delay = <10>;
|
||||
};
|
||||
|
||||
lcd_rst:lcd_rst {
|
||||
rockchip,power_type = <REGULATOR>;
|
||||
rockchip,delay = <5>;
|
||||
};*/
|
||||
|
||||
};
|
||||
|
||||
disp_timings: display-timings {
|
||||
native-mode = <&timing0>;
|
||||
timing0: timing0 {
|
||||
screen-type = <SCREEN_RGB>;
|
||||
out-face = <OUT_P888>;
|
||||
clock-frequency = <27000000>;
|
||||
hactive = <800>;
|
||||
vactive = <480>;
|
||||
hback-porch = <206>;
|
||||
hfront-porch = <40>;
|
||||
vback-porch = <25>;
|
||||
vfront-porch = <10>;
|
||||
out-face = <OUT_P888>;
|
||||
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>;
|
||||
vsync-len = <10>;
|
||||
hsync-active = <0>;
|
||||
vsync-active = <0>;
|
||||
de-active = <0>;
|
||||
|
||||
@@ -230,7 +230,6 @@
|
||||
|
||||
&lcdc0 {
|
||||
status = "okay";
|
||||
power_ctr = <&disp_power_ctr>;
|
||||
};
|
||||
|
||||
&lcdc1 {
|
||||
|
||||
@@ -247,7 +247,32 @@
|
||||
|
||||
&lcdc0 {
|
||||
status = "okay";
|
||||
power_ctr = <&disp_power_ctr>;
|
||||
power_ctr: power_ctr {
|
||||
rockchip,debug = <0>;
|
||||
lcd_en:lcd_en {
|
||||
rockchip,power_type = <GPIO>;
|
||||
gpios = <&gpio0 GPIO_B0 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,delay = <10>;
|
||||
};
|
||||
|
||||
/* bl_en:bl_en {
|
||||
rockchip,power_type = <GPIO>;
|
||||
gpios = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,delay = <10>;
|
||||
};
|
||||
|
||||
bl_ctr:bl_ctr {
|
||||
rockchip,power_type = <GPIO>;
|
||||
gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,delay = <10>;
|
||||
};
|
||||
|
||||
lcd_rst:lcd_rst {
|
||||
rockchip,power_type = <REGULATOR>;
|
||||
rockchip,delay = <5>;
|
||||
};*/
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
&lcdc1 {
|
||||
|
||||
Reference in New Issue
Block a user