目前默认的固件不支持Rockchip 7.85寸eDP液晶屏模组,下载到最新源码后,需要修改DTS配置才能使用。 主要修改如下:
1、 rk3399pro-toybrick.dtsi中需要包含对该屏的支持。
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/display/drm_mipi_dsi.h>
#include <dt-bindings/sensor-dev.h>
#include <dt-bindings/pwm/pwm.h>
#include "rk3399pro.dtsi"
#include "rk3399-opp.dtsi"
#include "rk3399-vop-clk-set.dtsi"
#include "lcd-edp-for-toybrick.dtsi"
/ {
compatible = "rockchip,rk3399pro-toybrick", "rockchip,rk3399pro";
clkin_gmac: external-gmac-clock {
compatible = "fixed-clock";
clock-frequency = <125000000>;
clock-output-names = "clkin_gmac";
#clock-cells = <0>;
};
2、触控修改:
由于目前触控的rst脚没有上拉电阻,需要将IO口设置为内部上拉,才能对触控进行操作,否则一直处于Reset状态,I2C通讯不成功。修改文件 lcd-edp-for-toybrick.dtsi:
&pinctrl {
edp {
lcd_bl_en_h: lcd-bl-en-h {
rockchip,pins =
<4 RK_PD4 RK_FUNC_GPIO &pcfg_output_high>;
};
};
touch {
touch_int_d: touch-int-d {
rockchip,pins =
<1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>,
<2 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
原作者:JBS_AI
|