|
发表于 2018-3-22 07:24:46
只看该作者
沙发
- /*
- * Copyright (C) 2018 Embodied
- * arch/arm/boot/dts/lcd-HX7027.dtsi
- * create date: 2018-03-19
- * lcd model: HX7027-FPC-F
- * resolution: 640X480
- */
- / {
- 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>;
- compatible = "rockchip,display-timings";
- //timeing0 set for hx7027
- timing0: timing0 {
- screen-type = <SCREEN_RGB>;
- out-face = <OUT_P888>;
- color-mode = <COLOR_RGB>;
- clock-frequency = <40000000>;
- hactive = <640>;
- vactive = <480>;
- hback-porch = <23>;
- hfront-porch = <23>;
- vback-porch = <3>;
- vfront-porch = <3>;
- hsync-len = <23>;
- vsync-len = <3>;
- hsync-active = <0>;
- vsync-active = <0>;
- de-active = <1>;
- pixelclk-active = <1>;
- swap-rb = <0>;
- swap-rg = <0>;
- swap-gb = <0>;
- };
- timing1: timing1 {
- screen-type = <SCREEN_RGB>;
- out-face = <OUT_P888>;
- color-mode = <COLOR_YCBCR>;
- clock-frequency = <148500000>;
- hactive = <1920>;
- vactive = <1080>;
- hback-porch = <148>;
- hfront-porch = <88>;
- vback-porch = <36>;
- vfront-porch = <4>;
- hsync-len = <44>;
- vsync-len = <5>;
- hsync-active = <1>;
- vsync-active = <1>;
- de-active = <0>;
- pixelclk-active = <0>;
- swap-rb = <0>;
- swap-rg = <0>;
- swap-gb = <0>;
- };
- timing2: timing2 {
- screen-type = <SCREEN_RGB>;
- out-face = <OUT_P888>;
- color-mode = <COLOR_YCBCR>;
- clock-frequency = <297000000>;
- hactive = <3840>;
- vactive = <2160>;
- hback-porch = <296>;
- hfront-porch = <176>;
- vback-porch = <72>;
- vfront-porch = <8>;
- hsync-len = <88>;
- vsync-len = <10>;
- hsync-active = <1>;
- vsync-active = <1>;
- de-active = <0>;
- pixelclk-active = <0>;
- swap-rb = <0>;
- swap-rg = <0>;
- swap-gb = <0>;
- };
- };
- };
复制代码 Firefly-rk3288-reload.dts 配置
- &fb {
- rockchip,disp-mode = <DUAL>;
- rockchip,uboot-logo-on = <0>;
- //rockchip,disp-policy = <DISPLAY_POLICY_BOX>;
- };
- &disp_timings {
- native-mode = <&timing0>;
- };
- &rk_screen {
- display-timings = <&disp_timings>;
- };
- /*lcdc0 as PRMRY(HDMI)*/
- &lcdc0 {
- status = "okay";
- rockchip,iommu-enabled = <1>;
- rockchip,prop = <PRMRY>;
- };
- &lcdc1 {
- status = "okay";
- rockchip,iommu-enabled = <1>;
- rockchip,prop = <EXTEND>;
- };
- &hdmi {
- status = "okay";
- rockchip,cec_enable = <0>;
- rockchip,hdcp_enable = <0>;
- rockchip,hdmi_audio_source = <1>;
- };
复制代码
|
|