九鼎创展论坛
标题:
求X3399 10.1寸高清EDP液晶模组 源码编辑教程
[打印本页]
作者:
yihao365
时间:
2018-3-13 16:19
标题:
求X3399 10.1寸高清EDP液晶模组 源码编辑教程
不知道需要DTS里那里要改 包括触摸 液晶 framework需要修改吗
作者:
lxz
时间:
2018-3-13 16:53
以x3399_marshmallow这个源码为例来说明:
进入kernel/arch/arm64/boot/dts/rockchip 这个目录
155 &rk_screen {
156 assigned-clocks = <&cru PLL_VPLL>;
157 assigned-clock-rates = <245000000>;
158 #include "lcd-mipi-7inch-wy070ml.dtsi"
159 /* #include "lcd-mipi-7inch-r69429.dtsi" */
160 /* #include "lcd-edp-ltl101dl03.dtsi" */
161 /* #include "lcd-edp-lp079qx1.dtsi" */
162 };
lcd-mipi-7inch-wy070ml.dtsi表示我们的7寸mipi屏幕
lcd-edp-ltl101dl03.dtsi表示10.1寸edp屏幕
155 &rk_screen {
156 assigned-clocks = <&cru PLL_VPLL>;
157 assigned-clock-rates = <245000000>;
158 /* #include "lcd-mipi-7inch-wy070ml.dtsi" */
159 /* #include "lcd-mipi-7inch-r69429.dtsi" */
160 #include "lcd-edp-ltl101dl03.dtsi"
161 /* #include "lcd-edp-lp079qx1.dtsi" */
162 };
这样就支持10.1寸edp屏幕了
120 &i2c1 {
121 status = "okay";
122
123 gsl3680@40 {
124 compatible = "tchip,gsl3680";
125 reg = <0x40>;
126 touch-gpio = <&gpio1 20 IRQ_TYPE_EDGE_RISING>;
127 reset-gpio = <&gpio1 9 GPIO_ACTIVE_LOW>;
128 max-x = <1024>;
129 max-y = <600>;
130 };
131
132 gt9xx: gt9xx@14 {
133 compatible = "goodix,gt9xx";
134 reg = <0x14>;
135 touch-gpio = <&gpio1 20 IRQ_TYPE_EDGE_RISING>;
136 reset-gpio = <&gpio1 9 GPIO_ACTIVE_LOW>;
137 max-x = <1200>;
138 max-y = <1920>;
139 tp-size = <101>;
140 status = "disabled";
141 };
142
143 /*
144 gsl3673: gsl3673@40 {
145 compatible = "GSL,GSL3673";
146 reg = <0x40>;
147 screen_max_x = <1536>;
148 screen_max_y = <2048>;
149 irq_gpio_number = <&gpio1 20 IRQ_TYPE_LEVEL_LOW>;
150 rst_gpio_number = <&gpio1 9 GPIO_ACTIVE_HIGH>;
151 };
152 */
153 };
此时使用的触摸是 gsl3680,而10.1edp对应的触摸是gt9xx的,因此修改为
120 &i2c1 {
121 status = "okay";
122
123 gsl3680@40 {
124 compatible = "tchip,gsl3680";
125 reg = <0x40>;
126 touch-gpio = <&gpio1 20 IRQ_TYPE_EDGE_RISING>;
127 reset-gpio = <&gpio1 9 GPIO_ACTIVE_LOW>;
128 max-x = <1024>;
129 max-y = <600>;
130 status = "disabled";
130 };
131
132 gt9xx: gt9xx@14 {
133 compatible = "goodix,gt9xx";
134 reg = <0x14>;
135 touch-gpio = <&gpio1 20 IRQ_TYPE_EDGE_RISING>;
136 reset-gpio = <&gpio1 9 GPIO_ACTIVE_LOW>;
137 max-x = <1200>;
138 max-y = <1920>;
139 tp-size = <101>;
140
141 };
142
143 /*
144 gsl3673: gsl3673@40 {
145 compatible = "GSL,GSL3673";
146 reg = <0x40>;
147 screen_max_x = <1536>;
148 screen_max_y = <2048>;
149 irq_gpio_number = <&gpio1 20 IRQ_TYPE_LEVEL_LOW>;
150 rst_gpio_number = <&gpio1 9 GPIO_ACTIVE_HIGH>;
151 };
152 */
153 };
欢迎光临 九鼎创展论坛 (http://bbs.9tripod.com/)
Powered by Discuz! X3.2