![]() |
常見的USB轉串口驅動有cp201x,pl2303進入kernel,配置menuconfig #make ARCH=arm menuconfig 選中 Device Drivers > USB support > USB Serial Converter support下面的 <*> USB CP210x family of UART Bridge Controllers <*> USB Prolific 2303 Single Port Serial Driver 重新編譯內核 make ARCH=arm rk3288-evb-android-rk808-mipi.img -j8 燒錄內核固件,上電運行,查看驅動是否加載成功 ls /dev/ttyUSB0 此時可以看到dev目錄下出現設備節點ttyUSB0.驅動加載成功。 |
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>; }; |
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>; }; |