mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
rk312x dts: add fb/screen/lcdc/lvds dt node
This commit is contained in:
@@ -18,4 +18,17 @@
|
||||
fiq-debugger {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&fb {
|
||||
rockchip,disp-mode = <ONE_DUAL>;
|
||||
};
|
||||
|
||||
&rk_screen {
|
||||
display-timings = <&disp_timings>;
|
||||
};
|
||||
|
||||
&lcdc {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
@@ -71,6 +71,28 @@
|
||||
};
|
||||
};
|
||||
|
||||
&fb {
|
||||
rockchip,disp-mode = <ONE_DUAL>;
|
||||
rockchip,uboot-logo-on = <0>;
|
||||
};
|
||||
|
||||
&rk_screen {
|
||||
//display-timings = <&disp_timings>;
|
||||
};
|
||||
|
||||
&lcdc {
|
||||
status = "okay";
|
||||
|
||||
power_ctr: power_ctr {
|
||||
rockchip,debug = <0>;
|
||||
lcd_en: lcd_en {
|
||||
rockchip,power_type = <GPIO>;
|
||||
gpios = <&gpio1 GPIO_B3 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,delay = <10>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/include/ "rk818.dtsi"
|
||||
&rk818 {
|
||||
gpios =<&gpio1 GPIO_B1 GPIO_ACTIVE_HIGH>,<&gpio1 GPIO_A1 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -792,6 +792,28 @@
|
||||
|
||||
};
|
||||
|
||||
gpio2_lcdc0 {
|
||||
lcdc0_lcdc:lcdc0-lcdc {
|
||||
rockchip,pins =
|
||||
<LCDC0_DCLK>,
|
||||
<LCDC0_DEN>,
|
||||
<LCDC0_HSYNC>,
|
||||
<LCDC0_VSYNC>;
|
||||
rockchip,pull = <VALUE_PULL_DISABLE>;
|
||||
rockchip,drive = <VALUE_DRV_DEFAULT>;
|
||||
};
|
||||
|
||||
lcdc0_gpio:lcdc0-gpio {
|
||||
rockchip,pins =
|
||||
<FUNC_TO_GPIO(LCDC0_DCLK)>,
|
||||
<FUNC_TO_GPIO(LCDC0_DEN)>,
|
||||
<FUNC_TO_GPIO(LCDC0_HSYNC)>,
|
||||
<FUNC_TO_GPIO(LCDC0_VSYNC)>;
|
||||
rockchip,pull = <VALUE_PULL_DISABLE>;
|
||||
rockchip,drive = <VALUE_DRV_DEFAULT>;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
//to add
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <dt-bindings/suspend/rockchip-pm.h>
|
||||
#include <dt-bindings/sensor-dev.h>
|
||||
#include <dt-bindings/clock/rk_system_status.h>
|
||||
#include <dt-bindings/rkfb/rk_fb.h>
|
||||
|
||||
#include "skeleton.dtsi"
|
||||
#include "rk312x-clocks.dtsi"
|
||||
@@ -19,6 +20,7 @@
|
||||
i2c1 = &i2c1;
|
||||
i2c2 = &i2c2;
|
||||
i2c3 = &i2c3;
|
||||
lcdc = &lcdc;
|
||||
// spi0 = &spi0;
|
||||
};
|
||||
|
||||
@@ -539,6 +541,36 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
fb: fb{
|
||||
compatible = "rockchip,rk-fb";
|
||||
rockchip,disp-mode = <ONE_DUAL>;
|
||||
};
|
||||
|
||||
rk_screen: rk_screen{
|
||||
compatible = "rockchip,screen";
|
||||
};
|
||||
|
||||
lvds: lvds@20038000 {
|
||||
compatible = "rockchip,rk31xx-lvds";
|
||||
reg = <0x20038000 0x4000>;
|
||||
clocks = <&clk_gates5 0>;
|
||||
clock-names = "pclk_lvds";
|
||||
};
|
||||
|
||||
lcdc: lcdc@1010e000 {
|
||||
compatible = "rockchip,rk312x-lcdc";
|
||||
rockchip,prop = <PRMRY>;
|
||||
reg = <0x1010e000 0x2000>;
|
||||
interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
|
||||
pinctrl-names = "default", "gpio";
|
||||
pinctrl-0 = <&lcdc0_lcdc>;
|
||||
pinctrl-1 = <&lcdc0_gpio>;
|
||||
clocks = <&clk_gates6 0>, <&dclk_lcdc0>, <&clk_gates6 1>, <&sclk_lcdc0>;
|
||||
clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc", "sclk";
|
||||
rockchip,iommu-enabled = <1>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
vpu: vpu_service@10104000 {
|
||||
compatible = "vpu_service";
|
||||
reg = <0x10104000 0x800>;
|
||||
|
||||
Reference in New Issue
Block a user