rk3288 lcdc: add lcdc driver

This commit is contained in:
hjc
2014-03-07 11:59:34 +08:00
parent fe817a682b
commit 54ea9a46dd
5 changed files with 4746 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include "skeleton.dtsi"
#include "rk3288-pinctrl.dtsi"
#include <dt-bindings/rkfb/rk_fb.h>
/ {
compatible = "rockchip,rk3288";
@@ -14,6 +15,8 @@
i2c3 = &i2c3;
i2c4 = &i2c4;
i2c5 = &i2c5;
lcdc0 = &lcdc0;
lcdc1 = &lcdc1;
};
cpus {
@@ -203,6 +206,34 @@
pinctrl-1 = <&i2c5_gpio>;
status = "disabled";
};
fb: fb{
compatible = "rockchip,rk-fb";
rockchip,disp-mode = <DUAL>;
};
lcdc0:lcdc@ff940000 {
compatible = "rockchip,rk3288-lcdc";
rockchip,prop = <PRMRY>;
rochchip,pwr18 = <0>;
reg = <0xff940000 0x10000>;
interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
//pinctrl-names = "default", "gpio";
//pinctrl-0 = <&lcdc0_lcdc>;
//pinctrl-1 = <&lcdc0_gpio>;
status = "disabled";
};
lcdc1:lcdc@ff930000 {
compatible = "rockchip,rk3288-lcdc";
rockchip,prop = <EXTEND>;
rockchip,pwr18 = <0>;
reg = <0xff930000 0x10000>;
interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
pinctrl-names = "default", "gpio";
pinctrl-0 = <&lcdc0_lcdc>;
pinctrl-1 = <&lcdc0_gpio>;
status = "disabled";
};
adc: adc@ff100000 {
compatible = "rockchip,saradc";

View File

@@ -89,3 +89,18 @@ config LCDC1_IO_18V
help
LCDC1 io voltage is 1.8V if you say y here,the default voltage is 3.3V
config LCDC_RK3288
bool "rk3288 lcdc support"
depends on FB_ROCKCHIP
help
Driver for rk3288 lcdc.There are two lcd controllers on rk3288
config LCDC0_RK3288
bool "lcdc0 support"
depends on LCDC_RK3288
help
Support rk3288 lcdc0 if you say y here
config LCDC1_RK3288
bool "lcdc1 support"
depends on LCDC_RK3288
help
Support rk3288 lcdc1 if you say y here

View File

@@ -2,3 +2,4 @@ obj-$(CONFIG_LCDC_RK30) += rk30_lcdc.o
obj-$(CONFIG_LCDC_RK2928) += rk2928_lcdc.o
obj-$(CONFIG_LCDC_RK3066B) += rk3066b_lcdc.o
obj-$(CONFIG_LCDC_RK3188) += rk3188_lcdc.o
obj-$(CONFIG_LCDC_RK3288) += rk3288_lcdc.o

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff