Customize LCD
#1
Hi everyone

I'd like to change the setting value (resolution, format, porch, etc..) of DSI.

Therefore, do the following procedure.

1. edit /boot/uEnv.txt
 add disp_screen0=lcd

2. edit /boot/pine64/sun50i-a64-pine64-plus.dtb 
Code:
       lcd0@01c0c000 {
           compatible = "allwinner,sunxi-lcd0";
           pinctrl-names = "active", "sleep";
           status = "okay";
           device_type = "lcd0";
           lcd_used = <0x0>;
           lcd_driver_name = "mb709_mipi";
           lcd_backlight = <0x32>;
           lcd_if = <0x4>;
           lcd_x = <0x216>;
           lcd_y = <0x4B0>;
           lcd_width = <0x0>;
           lcd_height = <0x0>;
           lcd_dclk_freq = <0x37>;
           lcd_pwm_used = <0x1>;
           lcd_pwm_ch = <0x10>;
           lcd_pwm_freq = <0xc350>;
           lcd_pwm_pol = <0x1>;
           lcd_pwm_max_limit = <0xfa>;
           lcd_hbp = <0x78>;
           lcd_ht = <0x604>;
           lcd_hspw = <0x14>;
           lcd_vbp = <0x17>;
           lcd_vt = <0x27b>;
           lcd_vspw = <0x2>;
           lcd_dsi_if = <0x2>;
           lcd_dsi_lane = <0x4>;
           lcd_dsi_format = <0x0>;
           lcd_dsi_eotp = <0x0>;
           lcd_dsi_vc = <0x0>;
           lcd_dsi_te = <0x0>;
           lcd_frm = <0x0>;
           lcd_gamma_en = <0x0>;
           lcd_bright_curve_en = <0x0>;
           lcd_cmap_en = <0x0>;
           lcd_bl_en = <0x30 0x7 0xa 0x1 0x0 0xffffffff 0x1>;
           lcd_bl_en_power = "none";
           lcd_power = "vcc-mipi";
           lcd_fix_power = "vcc-dsi-33";
           lcd_gpio_0 = <0x30 0x3 0x18 0x1 0x0 0xffffffff 0x1>;
       };

The modified part is lcd_x and lcd_y.

3. reboot

When rebooted, a kernel panic has occurred.

Is there a mistake in the procedure?

Thank you.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to customize DSI RGB format r.tanaka 0 1,694 08-28-2018, 04:40 AM
Last Post: r.tanaka

Forum Jump:


Users browsing this thread: 1 Guest(s)