10a7ce71fSopenharmony_ciroot { 20a7ce71fSopenharmony_ci module = "LCDKIT"; 30a7ce71fSopenharmony_ci lcdkit_config { 40a7ce71fSopenharmony_ci match_attr = "hdf_lcdkit_driver"; 50a7ce71fSopenharmony_ci active_panel = "Icn9700Config"; 60a7ce71fSopenharmony_ci Icn9700Config { 70a7ce71fSopenharmony_ci width = 480; /* width */ 80a7ce71fSopenharmony_ci height = 960; /* height */ 90a7ce71fSopenharmony_ci hbp = 20; /* horizontal back porch */ 100a7ce71fSopenharmony_ci hfp = 20; /* horizontal front porch */ 110a7ce71fSopenharmony_ci hsw = 10; /* horizontal sync width */ 120a7ce71fSopenharmony_ci vbp = 14; /* vertiacl back porch */ 130a7ce71fSopenharmony_ci vfp = 16; /* vertiacl front porch */ 140a7ce71fSopenharmony_ci vsw = 2; /* vertiacl sync width */ 150a7ce71fSopenharmony_ci frameRate = 60; /* frame rate */ 160a7ce71fSopenharmony_ci intfType = 0; /* 0 -- MIPI DSI */ 170a7ce71fSopenharmony_ci intfSync = 0; /* 0 -- OUTPUT_USER */ 180a7ce71fSopenharmony_ci dsiDev = 0; /* 0 -- dsi0 */ 190a7ce71fSopenharmony_ci dsiLane = 2; /* 2 -- 2 lane */ 200a7ce71fSopenharmony_ci mode = 1; /* 1 -- video mode */ 210a7ce71fSopenharmony_ci burstMode = 0; /* 0 -- video burst mode */ 220a7ce71fSopenharmony_ci pixelFmt = 2; /* 2 -- pixel format:rgb 24bit */ 230a7ce71fSopenharmony_ci blkType = 0; /* 0 -- pwm control, 1 -- mipi control */ 240a7ce71fSopenharmony_ci minLevel = 3; /* 3 -- min backlight level */ 250a7ce71fSopenharmony_ci maxLevel = 255; /* 255 -- max backlight level */ 260a7ce71fSopenharmony_ci defLevel = 102; /* 102 -- default backlight level */ 270a7ce71fSopenharmony_ci pwmDev = 1; /* 1 -- pwm1 */ 280a7ce71fSopenharmony_ci pwmPeriod = 100000; /* 100000 -- pwm period */ 290a7ce71fSopenharmony_ci panelOnCmd = [0x29, 0x00, 0x03, 0xF0, 0x5A, 0x5A, 300a7ce71fSopenharmony_ci 0x29, 0x00, 0x03, 0xF1, 0xA5, 0xA5, 310a7ce71fSopenharmony_ci 0x29, 0x00, 0x0C, 0xB3, 0x03, 0x03, 0x03, 0x07, 0x05, 0x0D, 0x0F, 0x11, 0x13, 0x09, 0x0B, 320a7ce71fSopenharmony_ci 0x29, 0x00, 0x0C, 0xB4, 0x03, 0x03, 0x03, 0x06, 0x04, 0x0C, 0x0E, 0x10, 0x12, 0x08, 0x0A, 330a7ce71fSopenharmony_ci 0x29, 0x00, 0x0D, 0xB0, 0x54, 0x32, 0x23, 0x45, 0x44, 0x44, 0x44, 0x44, 0x60, 0x00, 0x60, 0x1C, 340a7ce71fSopenharmony_ci 0x29, 0x00, 0x09, 0xB1, 0x32, 0x84, 0x02, 0x87, 0x12, 0x00, 0x50, 0x1C, 350a7ce71fSopenharmony_ci 0x29, 0x00, 0x04, 0xB2, 0x73, 0x09, 0x08, 360a7ce71fSopenharmony_ci 0x29, 0x00, 0x04, 0xB6, 0x5C, 0x5C, 0x05, 370a7ce71fSopenharmony_ci 0x29, 0x00, 0x06, 0xB8, 0x23, 0x41, 0x32, 0x30, 0x03, 380a7ce71fSopenharmony_ci 0x29, 0x00, 0x0B, 0xBC, 0xD2, 0x0E, 0x63, 0x63, 0x5A, 0x32, 0x22, 0x14, 0x22, 0x03, 390a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xb7, 0x41, 400a7ce71fSopenharmony_ci 0x29, 0x00, 0x07, 0xC1, 0x0c, 0x10, 0x04, 0x0c, 0x10, 0x04, 410a7ce71fSopenharmony_ci 0x29, 0x00, 0x03, 0xC2, 0x10, 0xE0, 420a7ce71fSopenharmony_ci 0x29, 0x00, 0x03, 0xC3, 0x22, 0x11, 430a7ce71fSopenharmony_ci 0x29, 0x00, 0x03, 0xD0, 0x07, 0xFF, 440a7ce71fSopenharmony_ci 0x29, 0x00, 0x05, 0xD2, 0x63, 0x0B, 0x08, 0x88, 450a7ce71fSopenharmony_ci 0x29, 0x00, 0x08, 0xC6, 0x08, 0x15, 0xFF, 0x10, 0x16, 0x80, 0x60, 460a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xc7, 0x04, 470a7ce71fSopenharmony_ci 0x29, 0x01, 0x27, 0xC8, 0x7C, 0x50, 0x3B, 0x2C, 0x25, 0x16, 0x1C, 0x08, 0x27, 0x2B, 0x2F, 0x52, 0x43, 0x4C, 0x40, 0x3D, 0x30, 0x1E, 0x06, 0x7C, 0x50, 0x3B, 0x2C, 0x25, 0x16, 0x1C, 0x08, 0x27, 0x2B, 0x2F, 0x52, 0x43, 0x4C, 0x40, 0x3D, 0x30, 0x1E, 0x06, 480a7ce71fSopenharmony_ci 0x05, 0x78, 0x01, 0x11, 490a7ce71fSopenharmony_ci 0x05, 0x78, 0x01, 0x29]; 500a7ce71fSopenharmony_ci panelOffCmd = [0x05, 0x14, 0x01, 0x28, 510a7ce71fSopenharmony_ci 0x05, 0x78, 0x01, 0x10]; 520a7ce71fSopenharmony_ci powerSetting = [0, 5, 0]; /* type: 0--gpio 1--regulator, number, voltage */ 530a7ce71fSopenharmony_ci powerOnSeq = [0, 5, 1, 5]; /* type: 0--gpio 1--regulator, number, opt, delay */ 540a7ce71fSopenharmony_ci powerOffSeq = [0, 5, 0, 5]; /* type: 0--gpio 1--regulator, number, opt, delay */ 550a7ce71fSopenharmony_ci } 560a7ce71fSopenharmony_ci Tg07aConfig { 570a7ce71fSopenharmony_ci width = 600; /* width */ 580a7ce71fSopenharmony_ci height = 1024; /* height */ 590a7ce71fSopenharmony_ci hbp = 60; /* horizontal back porch */ 600a7ce71fSopenharmony_ci hfp = 80; /* horizontal front porch */ 610a7ce71fSopenharmony_ci hsw = 1; /* horizontal sync width */ 620a7ce71fSopenharmony_ci vbp = 25; /* vertiacl back porch */ 630a7ce71fSopenharmony_ci vfp = 35; /* vertiacl front porch */ 640a7ce71fSopenharmony_ci vsw = 1; /* vertiacl sync width */ 650a7ce71fSopenharmony_ci frameRate = 60; /* frame rate */ 660a7ce71fSopenharmony_ci intfType = 0; /* 0 -- MIPI DSI */ 670a7ce71fSopenharmony_ci intfSync = 0; /* 0 -- OUTPUT_USER */ 680a7ce71fSopenharmony_ci dsiDev = 0; /* 0 -- dsi0 */ 690a7ce71fSopenharmony_ci dsiLane = 4; /* 4 -- 4 lane */ 700a7ce71fSopenharmony_ci mode = 1; /* 1 -- video mode */ 710a7ce71fSopenharmony_ci burstMode = 0; /* 0 -- video burst mode */ 720a7ce71fSopenharmony_ci pixelFmt = 2; /* 2 -- pixel format:rgb 24bit */ 730a7ce71fSopenharmony_ci blkType = 0; /* 0 -- pwm control, 1 -- mipi control */ 740a7ce71fSopenharmony_ci minLevel = 3; /* 3 -- min backlight level */ 750a7ce71fSopenharmony_ci maxLevel = 255; /* 255 -- max backlight level */ 760a7ce71fSopenharmony_ci defLevel = 102; /* 102 -- default backlight level */ 770a7ce71fSopenharmony_ci pwmDev = 0; /* 0 -- pwm0 */ 780a7ce71fSopenharmony_ci pwmPeriod = 100000; /* 100000 -- pwm period */ 790a7ce71fSopenharmony_ci panelOnCmd = [0x15, 0x00, 0x02, 0xB0, 0x5A, 800a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xB1, 0x00, 810a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x89, 0x01, 820a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x91, 0x17, 830a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xB1, 0x03, 840a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x2C, 0x28, 850a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x00, 0xDF, 860a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x01, 0xEF, 870a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x02, 0xF7, 880a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x03, 0xFB, 890a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x04, 0xFD, 900a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x05, 0x00, 910a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x06, 0x00, 920a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x07, 0x00, 930a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x08, 0x00, 940a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x09, 0x00, 950a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x0A, 0x01, 960a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x0B, 0x3B, 970a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x0C, 0x00, 980a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x0D, 0x00, 990a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x0E, 0x24, 1000a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x0F, 0x1C, 1010a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x10, 0xC9, 1020a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x11, 0x60, 1030a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x12, 0x70, 1040a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x13, 0x01, 1050a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x14, 0xE3, 1060a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x15, 0xFF, 1070a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x16, 0x3D, 1080a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x17, 0x0E, 1090a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x18, 0x01, 1100a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x19, 0x00, 1110a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x1A, 0x00, 1120a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x1B, 0xFC, 1130a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x1C, 0x0B, 1140a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x1D, 0xA0, 1150a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x1E, 0x03, 1160a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x1F, 0x04, 1170a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x20, 0x0C, 1180a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x21, 0x00, 1190a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x22, 0x04, 1200a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x23, 0x81, 1210a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x24, 0x1F, 1220a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x25, 0x10, 1230a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x26, 0x9B, 1240a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x2C, 0x2C, 1250a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x2D, 0x01, 1260a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x2E, 0x84, 1270a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x2F, 0x00, 1280a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x30, 0x02, 1290a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x31, 0x08, 1300a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x32, 0x01, 1310a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x33, 0x1C, 1320a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x34, 0x70, 1330a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x35, 0xFF, 1340a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x36, 0xFF, 1350a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x37, 0xFF, 1360a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x38, 0xFF, 1370a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x39, 0xFF, 1380a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x3A, 0x05, 1390a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x3B, 0x00, 1400a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x3C, 0x00, 1410a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x3D, 0x00, 1420a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x3E, 0x0F, 1430a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x3F, 0x84, 1440a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x40, 0x2A, 1450a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x41, 0x00, 1460a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x42, 0x01, 1470a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x43, 0x40, 1480a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x44, 0x05, 1490a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x45, 0xE8, 1500a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x46, 0x16, 1510a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x47, 0x00, 1520a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x48, 0x00, 1530a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x49, 0x88, 1540a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x4A, 0x08, 1550a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x4B, 0x05, 1560a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x4C, 0x03, 1570a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x4D, 0xD0, 1580a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x4E, 0x13, 1590a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x4F, 0xFF, 1600a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x50, 0x0A, 1610a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x51, 0x53, 1620a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x52, 0x26, 1630a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x53, 0x22, 1640a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x54, 0x09, 1650a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x55, 0x22, 1660a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x56, 0x00, 1670a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x57, 0x1C, 1680a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x58, 0x03, 1690a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x59, 0x3F, 1700a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x5A, 0x28, 1710a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x5B, 0x01, 1720a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x5C, 0xCC, 1730a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x5D, 0x21, 1740a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x5E, 0x04, 1750a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x5F, 0x13, 1760a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x60, 0x42, 1770a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x61, 0x08, 1780a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x62, 0x64, 1790a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x63, 0xEB, 1800a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x64, 0x10, 1810a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x65, 0xA8, 1820a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x66, 0x84, 1830a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x67, 0x8E, 1840a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x68, 0x29, 1850a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x69, 0x11, 1860a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x6A, 0x42, 1870a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x6B, 0x38, 1880a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x6C, 0x21, 1890a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x6D, 0x84, 1900a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x6E, 0x50, 1910a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x6F, 0xB6, 1920a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x70, 0x0E, 1930a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x71, 0xA1, 1940a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x72, 0xCE, 1950a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x73, 0xF8, 1960a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x74, 0xDA, 1970a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x75, 0x1A, 1980a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x76, 0x80, 1990a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x77, 0x00, 2000a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x78, 0x5F, 2010a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x79, 0xE0, 2020a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x7A, 0x01, 2030a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x7B, 0xFF, 2040a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x7C, 0xFF, 2050a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x7D, 0xFF, 2060a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x7E, 0xFF, 2070a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x7F, 0xFE, 2080a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xB1, 0x02, 2090a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x00, 0xFF, 2100a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x01, 0x01, 2110a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x02, 0x00, 2120a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x03, 0x00, 2130a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x04, 0x00, 2140a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x05, 0x00, 2150a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x06, 0x00, 2160a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x07, 0x00, 2170a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x08, 0xC0, 2180a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x09, 0x00, 2190a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x0A, 0x00, 2200a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x0B, 0x14, 2210a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x0C, 0xE6, 2220a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x0D, 0x0D, 2230a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x0F, 0x00, 2240a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x10, 0x79, 2250a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x11, 0xAD, 2260a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x12, 0xBE, 2270a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x13, 0xEE, 2280a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x14, 0x72, 2290a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x15, 0xDF, 2300a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x16, 0xE7, 2310a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x17, 0xDD, 2320a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x18, 0xCF, 2330a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x19, 0xF1, 2340a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x1A, 0x75, 2350a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x1B, 0x0E, 2360a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x1C, 0xFF, 2370a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x1D, 0xFF, 2380a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x1E, 0xFF, 2390a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x1F, 0xFF, 2400a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x20, 0xFF, 2410a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x21, 0xFF, 2420a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x22, 0xFF, 2430a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x23, 0xFF, 2440a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x24, 0xFF, 2450a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x25, 0xFF, 2460a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x26, 0xFF, 2470a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x27, 0x1F, 2480a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x28, 0xF0, 2490a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x29, 0xFF, 2500a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x2A, 0xFF, 2510a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x2B, 0xFF, 2520a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x2C, 0xFF, 2530a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x2D, 0x07, 2540a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x2F, 0xFF, 2550a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x30, 0x7F, 2560a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x31, 0x91, 2570a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x32, 0x00, 2580a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x33, 0x08, 2590a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x35, 0x7F, 2600a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x36, 0x05, 2610a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x38, 0x7F, 2620a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x3A, 0x80, 2630a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x3B, 0x01, 2640a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x3C, 0xC0, 2650a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x3D, 0x32, 2660a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x3E, 0x00, 2670a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x3F, 0x58, 2680a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x40, 0x06, 2690a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x41, 0x00, 2700a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x42, 0xCB, 2710a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x43, 0x00, 2720a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x44, 0x60, 2730a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x45, 0x09, 2740a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x46, 0x00, 2750a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x47, 0x00, 2760a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x48, 0x8B, 2770a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x49, 0xD2, 2780a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x4A, 0x01, 2790a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x4B, 0x00, 2800a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x4C, 0x10, 2810a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x4D, 0x40, 2820a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x4E, 0x0D, 2830a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x4F, 0x61, 2840a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x50, 0x3C, 2850a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x51, 0x7A, 2860a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x52, 0x34, 2870a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x53, 0x99, 2880a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x54, 0xA2, 2890a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x55, 0x03, 2900a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x56, 0x6C, 2910a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x57, 0x1A, 2920a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x58, 0x05, 2930a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x59, 0xF0, 2940a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x5A, 0xFB, 2950a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x5B, 0xFD, 2960a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x5C, 0x7E, 2970a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x5D, 0xBF, 2980a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x5E, 0x1F, 2990a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x5F, 0x00, 3000a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x60, 0xF0, 3010a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x61, 0xF3, 3020a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x62, 0xFB, 3030a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x63, 0xF9, 3040a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x64, 0xFD, 3050a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x65, 0x7E, 3060a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x66, 0x00, 3070a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x67, 0x00, 3080a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x68, 0x14, 3090a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x69, 0x89, 3100a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x6A, 0x70, 3110a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x6B, 0xFC, 3120a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x6C, 0xFC, 3130a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x6D, 0xFC, 3140a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x6E, 0xFC, 3150a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x6F, 0xFC, 3160a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x70, 0x7E, 3170a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x71, 0xBF, 3180a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x72, 0xDF, 3190a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x73, 0xCF, 3200a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x74, 0xCF, 3210a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x75, 0xCF, 3220a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x76, 0x0F, 3230a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x77, 0x00, 3240a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x78, 0x00, 3250a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x79, 0x00, 3260a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x7A, 0x7E, 3270a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x7B, 0x7E, 3280a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x7C, 0x7E, 3290a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x7D, 0x7E, 3300a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x7E, 0x7E, 3310a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x7F, 0xBF, 3320a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x0B, 0x04, 3330a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xB1, 0x03, 3340a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x2C, 0x2C, 3350a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xB1, 0x00, 3360a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0x89, 0x03, 3370a7ce71fSopenharmony_ci 0x05, 0x78, 0x01, 0x11, 3380a7ce71fSopenharmony_ci 0x05, 0x14, 0x01, 0x29, 3390a7ce71fSopenharmony_ci 0x15, 0x05, 0x02, 0x37, 0x01]; 3400a7ce71fSopenharmony_ci panelOffCmd = [0x05, 0x14, 0x01, 0x28, 3410a7ce71fSopenharmony_ci 0x05, 0x78, 0x01, 0x10]; 3420a7ce71fSopenharmony_ci powerSetting = [0, 5, 0]; /* type: 0--gpio 1--regulator, number, voltage */ 3430a7ce71fSopenharmony_ci powerOnSeq = [0, 5, 1, 5]; /* type: 0--gpio 1--regulator, number, opt, delay */ 3440a7ce71fSopenharmony_ci powerOffSeq = [0, 5, 0, 5]; /* type: 0--gpio 1--regulator, number, opt, delay */ 3450a7ce71fSopenharmony_ci } 3460a7ce71fSopenharmony_ci St7701Config { 3470a7ce71fSopenharmony_ci width = 480; /* width */ 3480a7ce71fSopenharmony_ci height = 800; /* height */ 3490a7ce71fSopenharmony_ci hbp = 50; /* horizontal back porch */ 3500a7ce71fSopenharmony_ci hfp = 50; /* horizontal front porch */ 3510a7ce71fSopenharmony_ci hsw = 10; /* horizontal sync width */ 3520a7ce71fSopenharmony_ci vbp = 20; /* vertiacl back porch */ 3530a7ce71fSopenharmony_ci vfp = 20; /* vertiacl front porch */ 3540a7ce71fSopenharmony_ci vsw = 4; /* vertiacl sync width */ 3550a7ce71fSopenharmony_ci frameRate = 60; /* frame rate */ 3560a7ce71fSopenharmony_ci intfType = 0; /* 0 -- MIPI DSI */ 3570a7ce71fSopenharmony_ci intfSync = 0; /* 0 -- OUTPUT_USER */ 3580a7ce71fSopenharmony_ci dsiDev = 0; /* 0 -- dsi0 */ 3590a7ce71fSopenharmony_ci dsiLane = 2; /* 2 -- 2 lane */ 3600a7ce71fSopenharmony_ci mode = 1; /* 1 -- video mode */ 3610a7ce71fSopenharmony_ci burstMode = 0; /* 0 -- video burst mode */ 3620a7ce71fSopenharmony_ci pixelFmt = 2; /* 2 -- pixel format:rgb 24bit */ 3630a7ce71fSopenharmony_ci blkType = 0; /* 0 -- pwm control, 1 -- mipi control */ 3640a7ce71fSopenharmony_ci minLevel = 3; /* 3 -- min backlight level */ 3650a7ce71fSopenharmony_ci maxLevel = 255; /* 255 -- max backlight level */ 3660a7ce71fSopenharmony_ci defLevel = 102; /* 102 -- default backlight level */ 3670a7ce71fSopenharmony_ci pwmDev = 1; /* 1 -- pwm1 */ 3680a7ce71fSopenharmony_ci pwmPeriod = 100000; /* 100000 -- pwm period */ 3690a7ce71fSopenharmony_ci panelOnCmd = [0x29, 0x00, 0x06, 0xFF, 0x77, 0x01, 0x00, 0x00, 0x13, 3700a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xEF, 0x08, 3710a7ce71fSopenharmony_ci 0x29, 0x00, 0x06, 0xFF, 0x77, 0x01, 0x00, 0x00, 0x10, 3720a7ce71fSopenharmony_ci 0x29, 0x00, 0x03, 0xC0, 0x63, 0x00, 3730a7ce71fSopenharmony_ci 0x29, 0x00, 0x03, 0xC1, 0x10, 0x02, 3740a7ce71fSopenharmony_ci 0x29, 0x00, 0x03, 0xC2, 0x01, 0x08, 3750a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xCC, 0x18, 3760a7ce71fSopenharmony_ci 0x29, 0x00, 0x11, 0xB0, 0x40, 0xC9, 0x8F, 0x0D, 0x11, 0x07, 0x02, 0x09, 0x09, 0x1F, 0x04, 0x50, 0x0F, 0xE4, 0x29, 0xDF, 3770a7ce71fSopenharmony_ci 0x29, 0x00, 0x11, 0xB1, 0x40, 0xCB, 0xD3, 0x11, 0x8F, 0x04, 0x00, 0x08, 0x07, 0x1C, 0x06, 0x53, 0x12, 0x63, 0xEB, 0xDF, 3780a7ce71fSopenharmony_ci 0x29, 0x00, 0x06, 0xFF, 0x77, 0x01, 0x00, 0x00, 0x11, 3790a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xB0, 0x65, 3800a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xB1, 0x34, 3810a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xB2, 0x87, 3820a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xB3, 0x80, 3830a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xB5, 0x49, 3840a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xB7, 0x85, 3850a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xB8, 0x20, 3860a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xB9, 0x10, 3870a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xC1, 0x78, 3880a7ce71fSopenharmony_ci 0x15, 0x00, 0x02, 0xC2, 0x78, 3890a7ce71fSopenharmony_ci 0x15, 0x64, 0x02, 0xD0, 0x88, 3900a7ce71fSopenharmony_ci 0x29, 0x01, 0x04, 0xE0, 0x00, 0x19, 0x02, 3910a7ce71fSopenharmony_ci 0x29, 0x00, 0x0C, 0xE1, 0x05, 0xA0, 0x07, 0xA0, 0x04, 0xA0, 0x06, 0xA0, 0x00, 0x44, 0x44, 3920a7ce71fSopenharmony_ci 0x29, 0x00, 0x0D, 0xE2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 3930a7ce71fSopenharmony_ci 0x29, 0x00, 0x05, 0xE3, 0x00, 0x00, 0x33, 0x33, 3940a7ce71fSopenharmony_ci 0x29, 0x00, 0x03, 0xE4, 0x44, 0x44, 3950a7ce71fSopenharmony_ci 0x29, 0x00, 0x11, 0xE5, 0x0D, 0x31, 0xC8, 0xAF, 0x0F, 0x33, 0xC8, 0xAF, 0x09, 0x2D, 0xC8, 0xAF, 0x0B, 0x2F, 0xC8, 0xAF, 3960a7ce71fSopenharmony_ci 0x29, 0x00, 0x05, 0xE6, 0x00, 0x00, 0x33, 0x33, 3970a7ce71fSopenharmony_ci 0x29, 0x00, 0x03, 0xE7, 0x44, 0x44, 3980a7ce71fSopenharmony_ci 0x29, 0x00, 0x11, 0xE8, 0x0C, 0x30, 0xC8, 0xAF, 0x0E, 0x32, 0xC8, 0xAF, 0x08, 0x2C, 0xC8, 0xAF, 0x0A, 0x2E, 0xC8, 0xAF, 3990a7ce71fSopenharmony_ci 0x29, 0x00, 0x08, 0xEB, 0x02, 0x00, 0xE4, 0xE4, 0x44, 0x00, 0x40, 4000a7ce71fSopenharmony_ci 0x29, 0x00, 0x03, 0xEC, 0x3C, 0x00, 4010a7ce71fSopenharmony_ci 0x29, 0x00, 0x11, 0xED, 0xAB, 0x89, 0x76, 0x54, 0x01, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x10, 0x45, 0x67, 0x98, 0xBA, 4020a7ce71fSopenharmony_ci 0x29, 0x00, 0x07, 0xEF, 0x08, 0x08, 0x08, 0x45, 0x3F, 0x54, 4030a7ce71fSopenharmony_ci 0x29, 0x00, 0x06, 0xFF, 0x77, 0x01, 0x00, 0x00, 0x00, 4040a7ce71fSopenharmony_ci 0x29, 0x00, 0x06, 0xFF, 0x77, 0x01, 0x00, 0x00, 0x13, 4050a7ce71fSopenharmony_ci 0x29, 0x78, 0x04, 0xE8, 0x00, 0x0E, 0x11, 4060a7ce71fSopenharmony_ci 0x29, 0x0A, 0x03, 0xE8, 0x00, 0x0C, 4070a7ce71fSopenharmony_ci 0x29, 0x0A, 0x03, 0xE8, 0x00, 0x00, 4080a7ce71fSopenharmony_ci 0x29, 0x0A, 0x06, 0xFF, 0x77, 0x01, 0x00, 0x00, 0x00, 4090a7ce71fSopenharmony_ci 0x05, 0x96, 0x01, 0x11, 4100a7ce71fSopenharmony_ci 0x05, 0x32, 0x01, 0x29]; 4110a7ce71fSopenharmony_ci panelOffCmd = [0x05, 0x14, 0x01, 0x28, 4120a7ce71fSopenharmony_ci 0x05, 0x78, 0x01, 0x10]; 4130a7ce71fSopenharmony_ci powerSetting = [0, 5, 0]; /* type: 0--gpio 1--regulator, number, voltage */ 4140a7ce71fSopenharmony_ci powerOnSeq = [0, 5, 1, 5]; /* type:: 0--gpio 1--regulator, number, opt, delay */ 4150a7ce71fSopenharmony_ci powerOffSeq = [0, 5, 0, 5]; /* type: 0--gpio 1--regulator, number, opt, delay */ 4160a7ce71fSopenharmony_ci } 4170a7ce71fSopenharmony_ci } 4180a7ce71fSopenharmony_ci 4190a7ce71fSopenharmony_ci backlightConfig { 4200a7ce71fSopenharmony_ci pwmBacklightConfig { 4210a7ce71fSopenharmony_ci match_attr = "pwm_bl_dev"; 4220a7ce71fSopenharmony_ci pwmDevNum = 1; 4230a7ce71fSopenharmony_ci pwmMaxPeriod = 100000; 4240a7ce71fSopenharmony_ci backlightDevName = "hdf_pwm"; 4250a7ce71fSopenharmony_ci minBrightness = 0; 4260a7ce71fSopenharmony_ci defBrightness = 127; 4270a7ce71fSopenharmony_ci maxBrightness = 255; 4280a7ce71fSopenharmony_ci } 4290a7ce71fSopenharmony_ci } 4300a7ce71fSopenharmony_ci} 431