TA的每日心情 | 衰 2018-11-30 11:03 |
---|
签到天数: 53 天 连续签到: 1 天 [LV.5]常住居民I
|
视壮rk3399商显主板 mipi屏和触摸
rk3399搭配1200*1920mipi屏和触摸
mipi屏dts配置
&dsi {
status = "okay";
panel {
compatible ="simple-panel-dsi";
reg = <0>;
backlight = <&backlight>;
enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
MIPI_DSI_MODE_VIDEO_SYNC_PULSE)>;
dsi,format = <MIPI_DSI_FMT_RGB888>;
dsi,lanes = <4>;
status = "okay";
display-timings {
native-mode = <&timing0>;
timing0: timing0 {
clock-frequency = <145500000>;
hactive = <1200>;
vactive = <1920>;
hback-porch = <66>;
hfront-porch = <64>;
vback-porch = <10>;
vfront-porch = <16>;
hsync-len = <10>;
vsync-len = <3>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
};
};
触摸屏dts配置:
gt9xx@5d {
status = "okay";
compatible = "videostrong,gt9xx";
reg = <0x5d>;
touch-gpio = <&gpio1 20 IRQ_TYPE_EDGE_RISING>;
reset-gpio = <&gpio1 22 GPIO_ACTIVE_LOW>;
tp-size=<911>;
// max-x = <1024>;
// max-y = <600>;
max-x = <1200>;
max-y = <1920>;
};
|
|