|
本帖最后由 james.zheng 于 2018-8-21 16:18 编辑
1.X3399 6.0的源码适配
通过修改对应路径下的x3399_marshmallow\kernel\arch\arm64\boot\dts\rockchip x3399-development-board.dts这个文件
&rk_screen {
assigned-clocks = <&cru PLL_VPLL>;
assigned-clock-rates = <245000000>;
/* #include "lcd-mipi-7inch-wy070ml.dtsi" */
#include "lcd-edp-ltl101dl03.dtsi" //这个是10.1的屏
/* #include "lcd-edp-lp079qx1.dtsi" */
};
//修改触摸10.1的屏
&i2c1 {
status = "okay";
/*gsl3680@40 {
compatible = "tchip,gsl3680";
reg = <0x40>;
touch-gpio = <&gpio1 20 IRQ_TYPE_EDGE_RISING>;
reset-gpio = <&gpio1 9 GPIO_ACTIVE_LOW>;
max-x = <1024>;
max-y = <600>;
};
*/
gt9xx: gt9xx@14 {
compatible = "goodix,gt9xx"; //这个是10.1的屏
reg = <0x14>;
touch-gpio = <&gpio1 20 IRQ_TYPE_EDGE_RISING>;
reset-gpio = <&gpio1 9 GPIO_ACTIVE_LOW>;
max-x = <2560>;
max-y = <1600>;
tp-size = <101>;
};
/*
gsl3673: gsl3673@40 {
compatible = "GSL,GSL3673";
reg = <0x40>;
screen_max_x = <1536>;
screen_max_y = <2048>;
irq_gpio_number = <&gpio1 20 IRQ_TYPE_LEVEL_LOW>;
rst_gpio_number = <&gpio1 9 GPIO_ACTIVE_HIGH>;
};
*/
};
//查看对应的6.1的源码有这三个文件
C:\Users\mamengyu\Desktop\X3399
而7.0的源码中没有此文件,请帮忙确认下7.0的源码如何适配10.1屏
|
|