rp-t113-uboot.dts 和 rp-t113.dts 区别
./device/config/chips/t113/configs/evb1_auto/rp-t113-uboot.dts
./kernel/linux-5.4/arch/arm/boot/dts/rp-t113.dts
| 文件 | 使用阶段 | 主要作用 |
|---|---|---|
| rp-t113-uboot.dts | U-Boot阶段 | 初始化基础硬件(显示、GPIO、DRAM、MMC、串口等) |
| rp-t113.dts | Linux Kernel阶段 | 告诉Linux系统所有硬件设备和驱动如何加载 |
启动流程
BootROM
↓
Boot0
↓
U-Boot
↓
Linux Kernel
↓
Rootfs
无屏幕驱动配置
diff --git a/device/config/chips/t113/configs/evb1_auto/wf-lcd-mipi-10.1-1280-800.dtsi b/device/config/chips/t113/configs/evb1_auto/wf-lcd-mipi-10.1-1280-800.dtsi
index db2d35467e..78c6055fa2 100755
--- a/device/config/chips/t113/configs/evb1_auto/wf-lcd-mipi-10.1-1280-800.dtsi
+++ b/device/config/chips/t113/configs/evb1_auto/wf-lcd-mipi-10.1-1280-800.dtsi
@@ -39,11 +39,11 @@ chn_cfg_mode : Hardware DE channel allocation config. 0:single display with
in display.
----------------------------------------------------------------------------------*/
&disp {
- disp_init_enable = <1>;
+ disp_init_enable = <0>;
disp_mode = <0>;
- screen0_output_type = <1>;
- screen0_output_mode = <4>;
+ screen0_output_type = <0>;
+ screen0_output_mode = <0>;
screen1_output_type = <1>;
screen1_output_mode = <4>;
@@ -148,7 +148,7 @@ pull up or pull down(default 0), driver level(default 1), data>
;----------------------------------------------------------------------------------*/
&lcd0 {
- lcd_used = <1>;
+ lcd_used = <0>;
lcd_driver_name = "K080_IM2HYL802R_800X1280";
lcd_if = <4>; /* 2:ttl; 3:lvds; 4:dsi */
@@ -196,5 +196,5 @@ pull up or pull down(default 0), driver level(default 1), data>
};
&pwm7 {
- status = "okay";
+ status = "disabled";
};
diff --git a/kernel/linux-5.4/arch/arm/boot/dts/rp-t113.dts b/kernel/linux-5.4/arch/arm/boot/dts/rp-t113.dts
index 0bab97d93e..775941ee45 100755
--- a/kernel/linux-5.4/arch/arm/boot/dts/rp-t113.dts
+++ b/kernel/linux-5.4/arch/arm/boot/dts/rp-t113.dts
@@ -192,6 +192,10 @@
status = "disabled";
};
+&lcd0 {
+ lcd_used = <0>;
+};
+
&twi2 {
clock-frequency = <400000>;
pinctrl-0 = <&twi2_pins_a>;
diff --git a/kernel/linux-5.4/arch/arm/boot/dts/t113-board.dts b/kernel/linux-5.4/arch/arm/boot/dts/t113-board.dts
index 168feaf89c..7cc6e5e22a 100755
--- a/kernel/linux-5.4/arch/arm/boot/dts/t113-board.dts
+++ b/kernel/linux-5.4/arch/arm/boot/dts/t113-board.dts
@@ -531,11 +531,11 @@ chn_cfg_mode : Hardware DE channel allocation config. 0:single display with
in display.
----------------------------------------------------------------------------------*/
&disp {
- disp_init_enable = <1>;
+ disp_init_enable = <0>;
disp_mode = <0>;
- screen0_output_type = <1>;
- screen0_output_mode = <4>;
+ screen0_output_type = <0>;
+ screen0_output_mode = <0>;
screen1_output_type = <1>;
screen1_output_mode = <4>;
@@ -593,7 +593,7 @@ chn_cfg_mode : Hardware DE channel allocation config. 0:single display with
dac_type0 = <0>;
dac_src0 = <0>;
- status = "okay";
+ status = "disabled";
};
/*----------------------------------------------------------------------------------
@@ -655,7 +655,7 @@ pull up or pull down(default 0), driver level(default 1), data>
;For lvds0: use lvds0_pins_a and lvds0_pins_b instead
;----------------------------------------------------------------------------------*/
&lcd0 {
- lcd_used = <1>;
+ lcd_used = <0>;
lcd_driver_name = "K080_IM2HYL802R_800X1280";
lcd_if = <4>; /* 2:ttl; 3:lvds; 4:dsi */
@@ -999,7 +999,7 @@ tvd_row*tvd_column is the total tvd channel number to be used in multichannel mo
pinctrl-names = "active", "sleep";
pinctrl-0 = <&pwm7_pin_a>;
pinctrl-1 = <&pwm7_pin_b>;
- status = "okay";
+ status = "disabled";
};
0
次点赞