|
RK3399 只使用DSI1接LCD如何修改DTS
发表于 2019-7-29 16:56:07
浏览:9244
|
回复:5
打印
只看该作者
[复制链接]
楼主
&backlight {
status = "okay";
pwms = <&pwm1 0 25000 0>;
};
&pwm1 {
status = "okay";
};
&dsi{
status = "disabled";
};
&dsi1{
status = "okay";
dsi_panel: panel {
compatible ="simple-panel-dsi";
reg = <0>;
//ddc-i2c-bu
//power-supply = <&vcc_lcd>;
//pinctrl-0 = <&lcd_panel_reset &lcd_panel_enable>;
backlight = <&backlight>;
/*
enable-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;*/
//dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST /*| MIPI_DSI_MODE_VIDEO_SYNC_PULSE*/)>;
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |MIPI_DSI_MODE_LPM)>;
dsi,format = <MIPI_DSI_FMT_RGB888>;
/* bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;*/
dsi,lanes = <4>;
dsi,channel = <0>;
enable-delay-ms = <10>;
reset-delay-ms = <50>;
stb-delay-ms = <10>;
cs-delay-ms = <10>;
prepare-delay-ms = <50>;
init-delay-ms = <50>;
disable-delay-ms = <50>;
unprepare-delay-ms = <50>;
/*enable-delay-ms = <35>;
prepare-delay-ms = <6>;*/
/*
delay,power = <10>;
delay,reset = <250>;
delay,unreset = <0>;
delay,unpower = <0>;
*/
/*unprepare-delay-ms = <0>;
disable-delay-ms = <20>;*/
size,width = <120>;
size,height = <170>;
status = "okay";
panel-init-sequence = [
39 05 04 B9 FF 83 94
39 00 11 BA 13 82 00 16 C5 00 10 FF 0F 24 03 21 24 25 20 08
39 00 12 B1 01 00 04 C4 03 12 F1 24 2C 3F 3F 47 02 00 E6 E2 A6
39 00 07 B2 00 C8 0E 30 00 81
39 00 20 B4 80 04 32 10 08 54 15 0F 22 10 08 47 43 44 0A 4B 43 44 02 55 55 02 06 44 06 5F 0A 6B 70 05 08
39 00 02 B6 45
//39 00 37 D5 00 00 00 00 0A 00 01 22 00 22 00 77 54 CB A9 76 54 32 10 AA BB 11 88 88 88 88 88 88 88 76 88 88 54 CB A9 76 54 32 10 AA BB 11 88 88 88 88 88 88 88 76 88 88 3C 01
39 00 37 D5 00 00 00 00 0A 00 01 22 00 22 66 11 01 01 23 45 67 9A BC AA BB 45 88 88 88 88 88 88 88 67 88 88 08 81 29 83 88 08 48 81 85 28 68 83 87 88 48 85 00 00 00 00 3C 01
15 00 02 CC 09
39 00 05 BF 06 02 10 04
39 00 05 C7 00 10 00 10
39 00 2B E0 00 08 0e 30 34 3F 1c 39 06 0c 0E 11 14 12 14 11 18 00 18 0e 30 34 3F 1c 39 06 0C 0E 11 14 12 14 11 18 0B 17 07 12 0B 17 07 12
39 00 03 C0 0C 17
39 00 03 C6 08 08
15 00 02 D4 32
05 c8 01 11
05 14 01 29
//05 20 01 29
//05 96 01 11
];
panel-exit-sequence = [
05 05 01 28
05 78 01 10
];
power_ctr: power_ctr {
rockchip,debug = <0>;
lcd_en: lcd-en {
gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&lcd_panel_enable>;
rockchip,delay = <10>;
};
lcd_rst: lcd-rst {
gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&lcd_panel_reset>;
rockchip,delay = <6>;
};
};
disp_timings: display-timings {
native-mode = <&timing0>;
timing0: timing0 {
clock-frequency = <85000000>;
hactive = <800>;
vactive = <1280>;
hsync-len = <36>; //20
hback-porch = <118>; //48
hfront-porch = <118>; //16
vsync-len = <4>; //10
vback-porch = <12>; //3
vfront-porch = <15>; //5
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
};
};
/*
&mipi_dphy {
rockchip,dsi-panel = <&dsi_panel>;
status = "okay";
};*/
&hdmi_dp_sound {
status = "okay";
};
&route_hdmi {
status = "okay";
logo,mode = "center";
};
&cdn_dp {
status = "disabled";
extcon = <&fusb0>;
phys = <&tcphy0_dp>;
};
&hdmi_in_vopl {
status = "disabled";
};
&dp_in_vopb {
status = "disabled";
};
&wdt {
status = "disabled";
};
&i2c1 {
status = "okay";
rt5640: rt5640@1c {
#sound-dai-cells = <1>;
};
tc358749x: tc358749x@0f {
compatible = "toshiba,tc358749x";
#sound-dai-cells = <0>;
reg = <0x0f>;
power-gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
int-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&hdmiin_gpios>;
status = "okay";
};
};
&i2s0 {
status = "disabled";
};
&i2s2 {
status = "okay";
};
&vopb {
assigned-clocks = <&cru DCLK_VOP0_DIV>;
assigned-clock-parents = <&cru PLL_CPLL>;
};
&vopl {
assigned-clocks = <&cru DCLK_VOP1_DIV>;
assigned-clock-parents = <&cru PLL_VPLL>;
};
&route_dsi {
status = "disabled";
};
&dsi_in_vopb {
status = "disabled";
};
&dsi_in_vopl {
status = "disabled";
};
&route_dsi1 {
status = "okay";
logo,mode = "center";
};
&dsi1_in_vopb {
status = "okay";
};
&dsi1_in_vopl {
status = "disabled";
};&pinctrl {
lcd-panel {
lcd_panel_reset: lcd-panel-reset {
rockchip,pins = <4 29 RK_FUNC_GPIO &pcfg_pull_down>;
};
lcd_panel_enable: lcd-panel-enable {
rockchip,pins = <1 1 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
sdmmc-pwrseq {
sdcard_enable_h: sdcard-enable-h {
rockchip,pins =
<1 20 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
pcie {
pcie_drv: pcie-drv {
rockchip,pins =
<0 13 RK_FUNC_GPIO &pcfg_pull_none>;
};
pcie_3g_drv: pcie-3g-drv {
rockchip,pins =
<2 6 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
hdmiin {
hdmiin_gpios: hdmiin_gpios {
rockchip,pins =
<2 3 RK_FUNC_GPIO &pcfg_pull_none>,
<0 2 RK_FUNC_GPIO &pcfg_pull_none>,
<2 28 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
leds {
led_power: led-power {
rockchip,pins = <2 7 RK_FUNC_GPIO &pcfg_pull_none>;
};
led_user: led-user {
rockchip,pins = <2 2 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
|
|