九鼎创展论坛中文版English
登录 | 立即注册 设为首页收藏本站 切换到宽版
查看: 6977|回复: 2
打印 上一主题 下一主题

求X3399 10.1寸高清EDP液晶模组 源码编辑教程

[复制链接]
跳转到指定楼层
楼主
发表于 2018-3-13 16:19:42 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
不知道需要DTS里那里要改 包括触摸 液晶 framework需要修改吗
回复

使用道具 举报

沙发
发表于 2018-3-13 16:53:06 | 只看该作者
以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 };


回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|深圳市九鼎创展科技官方论坛 ( 粤ICP备11028681号-2  

GMT+8, 2024-4-19 12:54 , Processed in 0.017762 second(s), 16 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表