mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
rk3288 lcdc: add lcdc driver
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
3112
drivers/video/rockchip/lcdc/rk3288_lcdc.c
Executable file
3112
drivers/video/rockchip/lcdc/rk3288_lcdc.c
Executable file
File diff suppressed because it is too large
Load Diff
1587
drivers/video/rockchip/lcdc/rk3288_lcdc.h
Executable file
1587
drivers/video/rockchip/lcdc/rk3288_lcdc.h
Executable file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user