sm1: add slt panel config support [1/1]
authorshaochan.liu <shaochan.liu@amlogic.com>
Wed, 22 May 2019 07:41:15 +0000 (15:41 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Mon, 22 Jul 2019 02:06:57 +0000 (19:06 -0700)
PD#SWPL-8442

Problem:
need slt panel config(mipi2hdmi 720p) on basic board

Solution:
add slt panel config(mipi2hdmi 720p) on basic board

Verify:
sm1

Change-Id: Ia634216a5f0bc96f9a4838a2f0ec983bef8d0a3b
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
arch/arm/boot/dts/amlogic/mesonsm1_skt-panel.dtsi
arch/arm/boot/dts/amlogic/sm1_s905d3_skt.dts
arch/arm64/boot/dts/amlogic/mesonsm1_skt-panel.dtsi
arch/arm64/boot/dts/amlogic/sm1_s905d3_skt.dts

index 0a209ba..e47b54d 100644 (file)
                                        0xff 0 0 0>;
                        backlight_index = <0>;
                };
+               lcd_8{
+                       model_name = "SLT_720P";
+                       interface = "mipi";
+                       basic_setting = <1280 720 /*h_active, v_active*/
+                               1590 750 /*h_period, v_period*/
+                               8 /*lcd_bits*/
+                               16 9>; /*screen_widht, screen_height*/
+                       lcd_timing = <40 60 0 /*hs_width,hs_bp,hs_pol*/
+                               5 20 0>; /*vs_width,vs_bp,vs_pol*/
+                       clk_attr = <0 /*fr_adj_type(0=clock,1=htotal,2=vtotal)*/
+                               0 /*clk_ss_level*/
+                               1 /*clk_auto_generate*/
+                               74250000>; /*pixel_clk(unit in Hz)*/
+                       mipi_attr = <4 /*lane_num*/
+                               550 /*bit_rate_max(MHz)*/
+                               0 /*factor(*100, default 0 for auto)*/
+                               1 /*operation_mode_init(0=video, 1=command)*/
+                               0 /*operation_mode_display(0=video, 1=command)*/
+                               0 /*
+                                  *video_mode_type
+                                  *(0=sync_pulse,1=sync_event,2=burst)
+                                  */
+                               1 /*clk_always_hs(0=disable,1=enable)*/
+                               0>; /*phy_switch(0=auto,1=standard,2=slow)*/
+                               /* dsi_init: data_type, num, data... */
+                       dsi_init_on = <
+                               0x05 1 0x11
+                               0xff 200
+                               0x05 1 0x29
+                               0xff 20
+                               0xff 0xff>; /* ending flag */
+                       dsi_init_off = <
+                               0x05 1 0x28
+                               0xff 10
+                               0x05 1 0x10
+                               0xff 10
+                               0xff 0xff>; /* ending flag */
+                               /* extern_init: 0xff for invalid */
+                       extern_init = <0xff>;
+                               /* power step: type,index,value,delay(ms) */
+                       power_on_step = <
+                                       3 7 0 100
+                                       2 0 0 0
+                                       0xff 0 0 0>;
+                       power_off_step = <
+                                       2 0 0 0
+                                       0xff 0 0 0>;
+                       backlight_index = <0xff>;
+               };
        };
 
        lcd_extern{
                                0xff 200      /* delay 50ms */
                                0xff 0xff>; /*ending*/
                };
+               extern_7{
+                       index = <7>;
+                       extern_name = "ext_default";/*LT8912*/
+                       status = "okay";
+                       type = <0>; /* 0=i2c, 1=spi, 2=mipi */
+                       i2c_address = <0x48>; /*7bit i2c_addr*/
+                       i2c_second_address = <0x49>;
+                       cmd_size = <0xff>;
+                       init_on = <
+                               0xc0 2 0x08 0xff
+                               0xc0 2 0x09 0xff
+                               0xc0 2 0x0a 0xff
+                               0xc0 2 0x0b 0x7c
+                               0xc0 2 0x0c 0xff
+                               0xfd 1 10
+
+                               0xc0 2 0x31 0xa1
+                               0xc0 2 0x32 0xa1
+                               0xc0 2 0x33 0x03
+                               0xc0 2 0x37 0x00
+                               0xc0 2 0x38 0x22
+                               0xc0 2 0x60 0x82
+                               0xfd 1 10
+
+                               0xc0 2 0x39 0x45
+                               0xc0 2 0x3b 0x00
+                               0xfd 1 10
+
+                               0xc0 2 0x44 0x31
+                               0xc0 2 0x55 0x44
+                               0xc0 2 0x57 0x01
+                               0xc0 2 0x5a 0x02
+                               0xfd 1 10
+
+                               0xc0 2 0x3e 0xc6
+                               0xc0 2 0x41 0x7c
+                               0xfd 1 10
+
+                               0xc1 2 0x10 0x04
+                               0xc1 2 0x11 0x04
+                               0xc1 2 0x12 0x04
+                               0xc1 2 0x13 0x00
+                               0xc1 2 0x14 0x00
+                               0xc1 2 0x15 0x00
+                               0xc1 2 0x1a 0x03
+                               0xc1 2 0x1b 0x03
+                               0xfd 1 20
+
+                               0xc1 2 0x18 0x28
+                               0xc1 2 0x19 0x05
+                               0xc1 2 0x1c 0x00
+                               0xc1 2 0x1d 0x05
+                               0xc1 2 0x2f 0x0c
+                               0xc1 2 0x34 0x72
+                               0xc1 2 0x35 0x06
+                               0xc1 2 0x36 0xee
+                               0xc1 2 0x37 0x02
+                               0xc1 2 0x38 0x14
+                               0xc1 2 0x39 0x00
+                               0xc1 2 0x3a 0x05
+                               0xc1 2 0x3b 0x00
+                               0xc1 2 0x3c 0xdc
+                               0xc1 2 0x3d 0x00
+                               0xc1 2 0x3e 0x6e
+                               0xc1 2 0x3f 0x00
+                               0xfd 1 10
+
+                               0xc0 2 0x03 0x7f
+                               0xfd 1 200
+                               0xc0 2 0x03 0xff
+                               0xfd 1 200
+
+                               0xc1 2 0x4e 0x6A
+                               0xc1 2 0x4f 0x4D
+                               0xc1 2 0x50 0xF3
+                               0xc1 2 0x51 0x80
+                               0xc1 2 0x1f 0x90
+                               0xc1 2 0x20 0x01
+                               0xc1 2 0x21 0x68
+                               0xc1 2 0x22 0x01
+                               0xc1 2 0x23 0x5E
+                               0xc1 2 0x24 0x01
+                               0xc1 2 0x25 0x54
+                               0xc1 2 0x26 0x01
+                               0xc1 2 0x27 0x90
+                               0xc1 2 0x28 0x01
+                               0xc1 2 0x29 0x68
+                               0xc1 2 0x2a 0x01
+                               0xc1 2 0x2b 0x5E
+                               0xc1 2 0x2c 0x01
+                               0xc1 2 0x2d 0x54
+                               0xc1 2 0x2e 0x01
+                               0xc1 2 0x42 0x64
+                               0xc1 2 0x43 0x00
+                               0xc1 2 0x44 0x04
+                               0xc1 2 0x45 0x00
+                               0xc1 2 0x46 0x59
+                               0xc1 2 0x47 0x00
+                               0xc1 2 0x48 0xf2
+                               0xc1 2 0x49 0x06
+                               0xc1 2 0x4a 0x00
+                               0xc1 2 0x4b 0x72
+                               0xc1 2 0x4c 0x45
+                               0xc1 2 0x4d 0x00
+                               0xc1 2 0x52 0x08
+                               0xc1 2 0x53 0x00
+                               0xc1 2 0x54 0xb2
+                               0xc1 2 0x55 0x00
+                               0xc1 2 0x56 0xe4
+                               0xc1 2 0x57 0x0d
+                               0xc1 2 0x58 0x00
+                               0xc1 2 0x59 0xe4
+                               0xc1 2 0x5a 0x8a
+                               0xc1 2 0x5b 0x00
+                               0xc1 2 0x5c 0x34
+                               0xc1 2 0x1e 0x4f
+                               0xc1 2 0x51 0x00
+                               0xff 0>; /*ending*/
+                       init_off = <
+                               0xff 0>; /*ending*/
+               };
        };
 
        backlight{
index 939fbc0..9e2f3df 100644 (file)
        pinctrl-names="default";
        pinctrl-0=<&i2c2_master_pins2>;
        clock-frequency = <100000>;
+
+       lcd_extern_i2c0: lcd_extern_i2c@0 {
+               compatible = "lcd_ext, i2c";
+               dev_name = "i2c_LT8912";
+               reg = <0x48>;
+               status = "okay";
+       };
+
+       lcd_extern_i2c1: lcd_extern_i2c@1{
+               compatible = "lcd_ext, i2c";
+               dev_name = "i2c_LT8912";
+               reg = <0x49>;
+               status = "okay";
+       };
 };
 
 &i2c3 {
index 623f527..7fceb00 100644 (file)
                                        0xff 0 0 0>;
                        backlight_index = <0>;
                };
+               lcd_8{
+                       model_name = "SLT_720P";
+                       interface = "mipi";
+                       basic_setting = <1280 720 /*h_active, v_active*/
+                               1590 750 /*h_period, v_period*/
+                               8 /*lcd_bits*/
+                               16 9>; /*screen_widht, screen_height*/
+                       lcd_timing = <40 60 0 /*hs_width,hs_bp,hs_pol*/
+                               5 20 0>; /*vs_width,vs_bp,vs_pol*/
+                       clk_attr = <0 /*fr_adj_type(0=clock,1=htotal,2=vtotal)*/
+                               0 /*clk_ss_level*/
+                               1 /*clk_auto_generate*/
+                               74250000>; /*pixel_clk(unit in Hz)*/
+                       mipi_attr = <4 /*lane_num*/
+                               550 /*bit_rate_max(MHz)*/
+                               0 /*factor(*100, default 0 for auto)*/
+                               1 /*operation_mode_init(0=video, 1=command)*/
+                               0 /*operation_mode_display(0=video, 1=command)*/
+                               0 /*
+                                  *video_mode_type
+                                  *(0=sync_pulse,1=sync_event,2=burst)
+                                  */
+                               1 /*clk_always_hs(0=disable,1=enable)*/
+                               0>; /*phy_switch(0=auto,1=standard,2=slow)*/
+                               /* dsi_init: data_type, num, data... */
+                       dsi_init_on = <
+                               0x05 1 0x11
+                               0xff 200
+                               0x05 1 0x29
+                               0xff 20
+                               0xff 0xff>; /* ending flag */
+                       dsi_init_off = <
+                               0x05 1 0x28
+                               0xff 10
+                               0x05 1 0x10
+                               0xff 10
+                               0xff 0xff>; /* ending flag */
+                               /* extern_init: 0xff for invalid */
+                       extern_init = <0xff>;
+                               /* power step: type,index,value,delay(ms) */
+                       power_on_step = <
+                                       3 7 0 100
+                                       2 0 0 0
+                                       0xff 0 0 0>;
+                       power_off_step = <
+                                       2 0 0 0
+                                       0xff 0 0 0>;
+                       backlight_index = <0xff>;
+               };
        };
 
        lcd_extern{
                                0xff 200      /* delay 50ms */
                                0xff 0xff>; /*ending*/
                };
+               extern_7{
+                       index = <7>;
+                       extern_name = "ext_default";/*LT8912*/
+                       status = "okay";
+                       type = <0>; /* 0=i2c, 1=spi, 2=mipi */
+                       i2c_address = <0x48>; /*7bit i2c_addr*/
+                       i2c_second_address = <0x49>;
+                       cmd_size = <0xff>;
+                       init_on = <
+                               0xc0 2 0x08 0xff
+                               0xc0 2 0x09 0xff
+                               0xc0 2 0x0a 0xff
+                               0xc0 2 0x0b 0x7c
+                               0xc0 2 0x0c 0xff
+                               0xfd 1 10
+
+                               0xc0 2 0x31 0xa1
+                               0xc0 2 0x32 0xa1
+                               0xc0 2 0x33 0x03
+                               0xc0 2 0x37 0x00
+                               0xc0 2 0x38 0x22
+                               0xc0 2 0x60 0x82
+                               0xfd 1 10
+
+                               0xc0 2 0x39 0x45
+                               0xc0 2 0x3b 0x00
+                               0xfd 1 10
+
+                               0xc0 2 0x44 0x31
+                               0xc0 2 0x55 0x44
+                               0xc0 2 0x57 0x01
+                               0xc0 2 0x5a 0x02
+                               0xfd 1 10
+
+                               0xc0 2 0x3e 0xc6
+                               0xc0 2 0x41 0x7c
+                               0xfd 1 10
+
+                               0xc1 2 0x10 0x04
+                               0xc1 2 0x11 0x04
+                               0xc1 2 0x12 0x04
+                               0xc1 2 0x13 0x00
+                               0xc1 2 0x14 0x00
+                               0xc1 2 0x15 0x00
+                               0xc1 2 0x1a 0x03
+                               0xc1 2 0x1b 0x03
+                               0xfd 1 20
+
+                               0xc1 2 0x18 0x28
+                               0xc1 2 0x19 0x05
+                               0xc1 2 0x1c 0x00
+                               0xc1 2 0x1d 0x05
+                               0xc1 2 0x2f 0x0c
+                               0xc1 2 0x34 0x72
+                               0xc1 2 0x35 0x06
+                               0xc1 2 0x36 0xee
+                               0xc1 2 0x37 0x02
+                               0xc1 2 0x38 0x14
+                               0xc1 2 0x39 0x00
+                               0xc1 2 0x3a 0x05
+                               0xc1 2 0x3b 0x00
+                               0xc1 2 0x3c 0xdc
+                               0xc1 2 0x3d 0x00
+                               0xc1 2 0x3e 0x6e
+                               0xc1 2 0x3f 0x00
+                               0xfd 1 10
+
+                               0xc0 2 0x03 0x7f
+                               0xfd 1 200
+                               0xc0 2 0x03 0xff
+                               0xfd 1 200
+
+                               0xc1 2 0x4e 0x6A
+                               0xc1 2 0x4f 0x4D
+                               0xc1 2 0x50 0xF3
+                               0xc1 2 0x51 0x80
+                               0xc1 2 0x1f 0x90
+                               0xc1 2 0x20 0x01
+                               0xc1 2 0x21 0x68
+                               0xc1 2 0x22 0x01
+                               0xc1 2 0x23 0x5E
+                               0xc1 2 0x24 0x01
+                               0xc1 2 0x25 0x54
+                               0xc1 2 0x26 0x01
+                               0xc1 2 0x27 0x90
+                               0xc1 2 0x28 0x01
+                               0xc1 2 0x29 0x68
+                               0xc1 2 0x2a 0x01
+                               0xc1 2 0x2b 0x5E
+                               0xc1 2 0x2c 0x01
+                               0xc1 2 0x2d 0x54
+                               0xc1 2 0x2e 0x01
+                               0xc1 2 0x42 0x64
+                               0xc1 2 0x43 0x00
+                               0xc1 2 0x44 0x04
+                               0xc1 2 0x45 0x00
+                               0xc1 2 0x46 0x59
+                               0xc1 2 0x47 0x00
+                               0xc1 2 0x48 0xf2
+                               0xc1 2 0x49 0x06
+                               0xc1 2 0x4a 0x00
+                               0xc1 2 0x4b 0x72
+                               0xc1 2 0x4c 0x45
+                               0xc1 2 0x4d 0x00
+                               0xc1 2 0x52 0x08
+                               0xc1 2 0x53 0x00
+                               0xc1 2 0x54 0xb2
+                               0xc1 2 0x55 0x00
+                               0xc1 2 0x56 0xe4
+                               0xc1 2 0x57 0x0d
+                               0xc1 2 0x58 0x00
+                               0xc1 2 0x59 0xe4
+                               0xc1 2 0x5a 0x8a
+                               0xc1 2 0x5b 0x00
+                               0xc1 2 0x5c 0x34
+                               0xc1 2 0x1e 0x4f
+                               0xc1 2 0x51 0x00
+                               0xff 0>; /*ending*/
+                       init_off = <
+                               0xff 0>; /*ending*/
+               };
        };
 
        backlight{
index 4fe3c20..5e5c8d1 100644 (file)
        pinctrl-names="default";
        pinctrl-0=<&i2c2_master_pins2>;
        clock-frequency = <100000>;
+
+       lcd_extern_i2c0: lcd_extern_i2c@0 {
+               compatible = "lcd_ext, i2c";
+               dev_name = "i2c_LT8912";
+               reg = <0x48>;
+               status = "okay";
+       };
+
+       lcd_extern_i2c1: lcd_extern_i2c@1{
+               compatible = "lcd_ext, i2c";
+               dev_name = "i2c_LT8912";
+               reg = <0x49>;
+               status = "okay";
+       };
 };
 
 &i2c3 {