ARM64: dts: add display node for rk3368 tb
authorHuang Jiachai <hjc@rock-chips.com>
Thu, 3 Dec 2015 07:06:56 +0000 (15:06 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 9 Dec 2015 01:29:56 +0000 (09:29 +0800)
Change-Id: I574d6773598abe81b55760c438c34ef911660406
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3368-tb.dts
arch/arm64/boot/dts/rockchip/rk3368.dtsi

index fc164573fa87bfeccd9d61527c4dc737e100e6fc..ab70d9eba52a4dcc4828c869347cde4f743baf0d 100644 (file)
 &uart2 {
        status = "okay";
 };
+
+&fb {
+       rockchip,disp-mode = <NO_DUAL>;
+       rockchip,uboot-logo-on = <0>;
+};
+
+&rk_screen {
+       /*#include <dt-bindings/display/screen-timing/lcd-b101ew05.dtsi>*/
+       #include <dt-bindings/display/screen-timing/lcd-F402.dtsi>
+};
+
+&lcdc {
+       status = "okay";
+       backlight = <&backlight>;
+       rockchip,mirror = <NO_MIRROR>;
+       rockchip,cabc_mode = <0>;
+       rockchip,fb-win-map = <FB_DEFAULT_ORDER>;
+       power_ctr: power_ctr {
+               rockchip,debug = <0>;
+               lcd_en:lcd_en {
+                       rockchip,power_type = <GPIO>;
+                       gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;/*GPIO_C6 = 22*/
+                       rockchip,delay = <10>;
+               };
+
+               lcd_cs:lcd_cs {
+                       rockchip,power_type = <GPIO>;
+                       gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;/*GPIO_C5 = 21*/
+                       rockchip,delay = <10>;
+               };
+
+               /*lcd_rst:lcd_rst {
+                       rockchip,power_type = <GPIO>;
+                       gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
+                       rockchip,delay = <5>;
+               };*/
+       };
+};
+
+&lvds {
+       status = "disabled";
+       pinctrl-names = "lcdc", "sleep";
+       pinctrl-0 = <&lcdc_lcdc>;
+       pinctrl-1 = <&lcdc_gpio>;
+};
index ac49a12b919131a22dc1214852a9b1fd717c1b8d..e494eb768e5f31949895ffebdd923d18e39bec95 100644 (file)
@@ -45,6 +45,7 @@
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/pinctrl/rockchip.h>
+#include <dt-bindings/display/rk_fb.h>
 
 / {
        compatible = "rockchip,rk3368";
@@ -67,6 +68,7 @@
                spi0 = &spi0;
                spi1 = &spi1;
                spi2 = &spi2;
+               lcdc = &lcdc;
        };
 
        cpus {
                                rockchip,pins = <3 29 RK_FUNC_3 &pcfg_pull_none>;
                        };
                };
+
+               lcdc {
+                       lcdc_lcdc: lcdc-lcdc {
+                               rockchip,pins =
+                                               <0 14 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D10
+                                               <0 15 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D11
+                                               <0 16 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D12
+                                               <0 17 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D13
+                                               <0 18 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D14
+                                               <0 18 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D15
+                                               <0 20 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D16
+                                               <0 21 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D17
+                                               <0 22 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D18
+                                               <0 23 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D19
+                                               <0 24 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D20
+                                               <0 25 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D21
+                                               <0 26 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D22
+                                               <0 27 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D23
+                                               <0 31 RK_FUNC_1 &pcfg_pull_none>,//DCLK
+                                               <0 30 RK_FUNC_1 &pcfg_pull_none>,//DEN
+                                               <0 28 RK_FUNC_1 &pcfg_pull_none>,//HSYNC
+                                               <0 29 RK_FUNC_1 &pcfg_pull_none>;//VSYN
+                       };
+
+                       lcdc_gpio: lcdc-gpio {
+                               rockchip,pins =
+                                               <0 14 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D10
+                                               <0 15 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D11
+                                               <0 16 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D12
+                                               <0 17 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D13
+                                               <0 18 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D14
+                                               <0 19 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D15
+                                               <0 20 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D16
+                                               <0 21 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D17
+                                               <0 22 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D18
+                                               <0 23 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D19
+                                               <0 24 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D20
+                                               <0 25 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D21
+                                               <0 26 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D22
+                                               <0 27 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D23
+                                               <0 31 RK_FUNC_GPIO &pcfg_pull_none>,//DCLK
+                                               <0 30 RK_FUNC_GPIO &pcfg_pull_none>,//DEN
+                                               <0 28 RK_FUNC_GPIO &pcfg_pull_none>,//HSYNC
+                                               <0 29 RK_FUNC_GPIO &pcfg_pull_none>;//VSYN
+                       };
+               };
+       };
+
+       fb: fb {
+               compatible = "rockchip,rk-fb";
+               rockchip,disp-mode = <NO_DUAL>;
+       };
+
+       rk_screen: rk_screen {
+               compatible = "rockchip,screen";
+       };
+
+       lcdc: lcdc@ff930000 {
+               compatible = "rockchip,rk3368-lcdc";
+               rockchip,grf = <&grf>;
+               rockchip,pmugrf = <&pmugrf>;
+               rockchip,cru = <&cru>;
+               rockchip,prop = <PRMRY>;
+               rockchip,pwr18 = <0>;
+               rockchip,iommu-enabled = <1>;
+               reg = <0x0 0xff930000 0x0 0x10000>;
+               interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
+               status = "disabled";
+               clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>;
+               clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
+               /*power-domains = <&power PD_VIO>;*/
+               resets = <&cru SRST_LCDC0_AXI>, <&cru SRST_LCDC0_AHB>, <&cru SRST_LCDC0_DCLK>;
+               reset-names = "axi", "ahb", "dclk";
+       };
+
+       lvds: lvds@ff968000 {
+               compatible = "rockchip,rk3368-lvds";
+               rockchip,grf = <&grf>;
+               reg = <0x0 0xff968000 0x0 0x4000>, <0x0 0xff9600a0 0x0 0x20>;
+               reg-names = "mipi_lvds_phy", "mipi_lvds_ctl";
+               clocks = <&cru PCLK_DPHYTX0>, <&cru PCLK_MIPI_DSI0>;
+               clock-names = "pclk_lvds", "pclk_lvds_ctl";
+               /*power-domains = <&power PD_VIO>;*/
+               status = "disabled";
+       };
+
+       edp: edp@ff970000 {
+               compatible = "rockchip,rk32-edp";
+               reg = <0x0 0xff970000 0x0 0x4000>;
+               rockchip,grf = <&grf>;
+               interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&cru SCLK_EDP>, <&cru SCLK_EDP_24M>, <&cru PCLK_EDP_CTRL>;
+               clock-names = "clk_edp", "clk_edp_24m", "pclk_edp";
+               /*power-domains = <&power PD_VIO>;*/
+               resets = <&cru SRST_EDP_24M>, <&cru SRST_EDP>;
+               reset-names = "edp_24m", "edp_apb";
        };
 
        iep_mmu {