Skip to content

Instantly share code, notes, and snippets.

@naikrovek
Created January 31, 2018 19:41
Show Gist options
  • Save naikrovek/3649319999bd2cc0129e7a05567d0ed2 to your computer and use it in GitHub Desktop.
Save naikrovek/3649319999bd2cc0129e7a05567d0ed2 to your computer and use it in GitHub Desktop.
<?xml version='1.0' encoding='utf-8'?>
<PanelName>ADV7533</PanelName>
<PanelDescription>ADV7533 DSI2HDMI (1920x1080 24bpp)</PanelDescription>
<Group id='EDID Configuration'>
<ManufactureID>0xAF0D</ManufactureID>
<ProductCode>0x0011</ProductCode>
<SerialNumber>0x000000</SerialNumber>
<WeekofManufacture>0x09</WeekofManufacture>
<YearofManufacture>0x13</YearofManufacture>
<EDIDVersion>1</EDIDVersion>
<EDIDRevision>3</EDIDRevision>
<VideoInputDefinition>0x80</VideoInputDefinition>
<HorizontalScreenSize>0x16</HorizontalScreenSize>
<VerticalScreenSize>0x0D</VerticalScreenSize>
<DisplayTransferCharacteristics>0x78</DisplayTransferCharacteristics>
<FeatureSupport>0xA</FeatureSupport>
<Red.GreenBits>0xCF</Red.GreenBits>
<Blue.WhiteBits>0x45</Blue.WhiteBits>
<RedX>0x90</RedX>
<RedY>0x59</RedY>
<GreenX>0x57</GreenX>
<GreenY>0x95</GreenY>
<BlueX>0x29</BlueX>
<BlueY>0x1f</BlueY>
<WhiteX>0x50</WhiteX>
<WhiteY>0x54</WhiteY>
<EstablishedTimingsI>0x0</EstablishedTimingsI>
<EstablishedTimingsII>0x0</EstablishedTimingsII>
<ManufacturesTiming>0x0</ManufacturesTiming>
<StandardTimings1/>
<StandardTimings2/>
<StandardTimings3/>
<StandardTimings4/>
<StandardTimings5/>
<StandardTimings6/>
<StandardTimings7/>
<SignalTimingInterface/>
</Group>
<Group id='Active Timing'>
<HorizontalActive units='Dot Clocks'>1920</HorizontalActive>
<HorizontalFrontPorch units='Dot Clocks'>88</HorizontalFrontPorch>
<HorizontalBackPorch units='Dot Clocks'>148</HorizontalBackPorch>
<HorizontalSyncPulse units='Dot Clocks'>44</HorizontalSyncPulse>
<HorizontalSyncSkew units='Dot Clocks'>0</HorizontalSyncSkew>
<HorizontalLeftBorder units='Dot Clocks'>0</HorizontalLeftBorder>
<HorizontalRightBorder units='Dot Clocks'>0</HorizontalRightBorder>
<VerticalActive units='Dot Clocks'>1080</VerticalActive>
<VerticalFrontPorch units='Lines'>4</VerticalFrontPorch>
<VerticalBackPorch units='Lines'>36</VerticalBackPorch>
<VerticalSyncPulse units='Lines'>5</VerticalSyncPulse>
<VerticalSyncSkew units='Lines'>0</VerticalSyncSkew>
<VerticalTopBorder units='Lines'>0</VerticalTopBorder>
<VerticalBottomBorder units='Lines'>0</VerticalBottomBorder>
<InvertDataPolarity>False</InvertDataPolarity>
<InvertVsyncPolairty>False</InvertVsyncPolairty>
<InvertHsyncPolarity>False</InvertHsyncPolarity>
<BorderColor>0x0</BorderColor>
</Group>
<Group id='Display Interface'>
<InterfaceType units='QDI_DisplayConnectType'>8</InterfaceType>
<InterfaceColorFormat units='QDI_PixelFormatType'>3</InterfaceColorFormat>
</Group>
<Group id='DSI Interface'>
<DSIChannelId units='DSI_Channel_IDType'>1</DSIChannelId>
<DSIVirtualId units='DSI_Display_VCType'>0</DSIVirtualId>
<DSIColorFormat units='DSI_ColorFormatType'>36</DSIColorFormat>
<DSITrafficMode units='DSI_TrafficModeType'>0</DSITrafficMode>
<DSILanes units='integer'>4</DSILanes>
<DSIHsaHseAfterVsVe units='Bool'>False</DSIHsaHseAfterVsVe>
<DSILowPowerModeInHFP units='Bool'>False</DSILowPowerModeInHFP>
<DSILowPowerModeInHBP units='Bool'>False</DSILowPowerModeInHBP>
<DSILowPowerModeInHSA units='Bool'>False</DSILowPowerModeInHSA>
<DSILowPowerModeInBLLPEOF units='Bool'>False</DSILowPowerModeInBLLPEOF>
<DSILowPowerModeInBLLP units='Bool'>False</DSILowPowerModeInBLLP>
<DSIRefreshRate units='integer Q16.16'>0x3C0000</DSIRefreshRate>
<DSIPhyDCDCMode units='Bool'>False</DSIPhyDCDCMode>
</Group>
<DSII2CSlaveAddressList units='int'>0x39 0x3C</DSII2CSlaveAddressList>
<DSII2CI2CNumOfSlaves units='int'>0x2</DSII2CI2CNumOfSlaves>
<DSII2CFrequency units='int'>0x190</DSII2CFrequency>
<DSII2CGSBIPort units='int'>0x4</DSII2CGSBIPort>
<DisplayPlatformID>0x3</DisplayPlatformID>
<PanelID>0x0</PanelID>
<I2CInitSequence>
39 41 10
ff 05
39 d6 48
ff 05
3c 03 89
39 16 20
39 9a e0
39 ba 70
39 de 82
39 e4 c0
39 e5 80
3c 15 d0
3c 17 d0
3c 24 20
3c 57 11
39 af 06
39 40 80
39 4c 04
39 49 02
39 0d 40
3c 1c 40
39 17 02
3c 16 00
3c 27 CB
3c 28 89
3c 29 80
3c 2a 02
3c 2b c0
3c 2c 05
3c 2d 80
3c 2e 09
3c 2f 40
3c 30 46
3c 31 50
3c 32 00
3c 33 50
3c 34 00
3c 35 40
3c 36 02
3c 37 40
3c 27 CB
3c 27 8B
ff 05
3c 27 CB
ff 64
3c 55 00
3c 03 09
ff 05
3c 03 89
</I2CInitSequence>
@miroslavchakarov
Copy link

How to modify this code to use the DragonBoard with 1024x600 screen (7-inch)?
Thanks.

@fearedspark
Copy link

I modified it for a 800x480 screen, but I commented it to know what to modify in the I2C init section:

<?xml version='1.0' encoding='utf-8'?>
<PanelName>ADV7533</PanelName>
<PanelDescription>ADV7533 DSI2HDMI (800x480 24bpp)</PanelDescription>
<Group id='EDID Configuration'>
    <ManufactureID>0xAF0D</ManufactureID>
    <ProductCode>0x0011</ProductCode>
    <SerialNumber>0x000000</SerialNumber>
    <WeekofManufacture>0x09</WeekofManufacture>
    <YearofManufacture>0x13</YearofManufacture>
    <EDIDVersion>1</EDIDVersion>
    <EDIDRevision>3</EDIDRevision>
    <!-- Needs to be changed? -->
    <VideoInputDefinition>0x80</VideoInputDefinition>
    <HorizontalScreenSize>0x16</HorizontalScreenSize>
    <VerticalScreenSize>0x0D</VerticalScreenSize>
    <DisplayTransferCharacteristics>0x78</DisplayTransferCharacteristics>
    <FeatureSupport>0xA</FeatureSupport>
    <Red.GreenBits>0xCF</Red.GreenBits>
    <Blue.WhiteBits>0x45</Blue.WhiteBits>
    <RedX>0x90</RedX>
    <RedY>0x59</RedY>
    <GreenX>0x57</GreenX>
    <GreenY>0x95</GreenY>
    <BlueX>0x29</BlueX>
    <BlueY>0x1f</BlueY>
    <WhiteX>0x50</WhiteX>
    <WhiteY>0x54</WhiteY>
    <EstablishedTimingsI>0x0</EstablishedTimingsI>
    <EstablishedTimingsII>0x0</EstablishedTimingsII>
    <ManufacturesTiming>0x0</ManufacturesTiming>
    <StandardTimings1/>
    <StandardTimings2/>
    <StandardTimings3/>
    <StandardTimings4/>
    <StandardTimings5/>
    <StandardTimings6/>
    <StandardTimings7/>
    <SignalTimingInterface/>
</Group>
<Group id='Active Timing'>
    <HorizontalActive units='Dot Clocks'>800</HorizontalActive>
    <HorizontalFrontPorch units='Dot Clocks'>40</HorizontalFrontPorch>
    <HorizontalBackPorch units='Dot Clocks'>88</HorizontalBackPorch>
    <HorizontalSyncPulse units='Dot Clocks'>128</HorizontalSyncPulse>
    <HorizontalSyncSkew units='Dot Clocks'>0</HorizontalSyncSkew>
    <HorizontalLeftBorder units='Dot Clocks'>0</HorizontalLeftBorder>
    <HorizontalRightBorder units='Dot Clocks'>0</HorizontalRightBorder>
    <VerticalActive units='Dot Clocks'>480</VerticalActive>
    <VerticalFrontPorch units='Lines'>1</VerticalFrontPorch>
    <VerticalBackPorch units='Lines'>23</VerticalBackPorch>
    <VerticalSyncPulse units='Lines'>4</VerticalSyncPulse>
    <VerticalSyncSkew units='Lines'>0</VerticalSyncSkew>
    <VerticalTopBorder units='Lines'>0</VerticalTopBorder>
    <VerticalBottomBorder units='Lines'>0</VerticalBottomBorder>
    <InvertDataPolarity>False</InvertDataPolarity>
    <InvertVsyncPolairty>False</InvertVsyncPolairty>
    <InvertHsyncPolarity>False</InvertHsyncPolarity>
    <BorderColor>0x0</BorderColor>
</Group>
<Group id='Display Interface'>
    <InterfaceType units='QDI_DisplayConnectType'>8</InterfaceType>
    <InterfaceColorFormat units='QDI_PixelFormatType'>3</InterfaceColorFormat>
</Group>
<Group id='DSI Interface'>
    <DSIChannelId units='DSI_Channel_IDType'>1</DSIChannelId>
    <DSIVirtualId units='DSI_Display_VCType'>0</DSIVirtualId>
    <DSIColorFormat units='DSI_ColorFormatType'>36</DSIColorFormat>
    <DSITrafficMode units='DSI_TrafficModeType'>0</DSITrafficMode>
    <DSILanes units='integer'>3</DSILanes>
    <DSIHsaHseAfterVsVe units='Bool'>False</DSIHsaHseAfterVsVe>
    <DSILowPowerModeInHFP units='Bool'>False</DSILowPowerModeInHFP>
    <DSILowPowerModeInHBP units='Bool'>False</DSILowPowerModeInHBP>
    <DSILowPowerModeInHSA units='Bool'>False</DSILowPowerModeInHSA>
    <DSILowPowerModeInBLLPEOF units='Bool'>False</DSILowPowerModeInBLLPEOF>
    <DSILowPowerModeInBLLP units='Bool'>False</DSILowPowerModeInBLLP>
    <DSIRefreshRate units='integer Q16.16'>0x3C0000</DSIRefreshRate>
    <DSIPhyDCDCMode units='Bool'>False</DSIPhyDCDCMode>
</Group>
<!-- I2C: -->
<!--   - 0x39: CEC Fixed Register -->
<!--   - 0x3c: CEC Regmap Configuration -->
<DSII2CSlaveAddressList units='int'>0x39 0x3C</DSII2CSlaveAddressList>
<DSII2CI2CNumOfSlaves units='int'>0x2</DSII2CI2CNumOfSlaves>
<DSII2CFrequency units='int'>0x190</DSII2CFrequency>
<DSII2CGSBIPort units='int'>0x4</DSII2CGSBIPort>
<DisplayPlatformID>0x3</DisplayPlatformID>
<PanelID>0x2D0</PanelID>
<I2CInitSequence>
    39 41 10 
    ff 05    <!-- Wait 5 ms? -->
    39 d6 48 <!-- HPD Override -->
    ff 05    <!-- Wait 5 ms? -->
    3c 03 89 <!-- Enable HDMI -->
    39 16 20 <!-- Main config: -->
    39 9a e0
    39 ba 70
    39 de 82
    39 e4 c0
    39 e5 80
    3c 15 d0
    3c 17 d0
    3c 24 20
    3c 57 11
    39 af 06 <!-- CEC Config: -->
    39 40 80
    39 4c 04
    39 49 02
    39 0d 40
    3c 1c 30 <!-- Number of DSI lanes << 4 -->
    39 17 02
    3c 16 00 <!-- Pixel clock divider -->
    3c 27 cb <!-- Disable timing generator -->
    3c 28 42 <!-- hTotal >> 4 -->
    3c 29 00 <!-- (hTotal << 4) & 0xFF -->
    3c 2a 08 <!-- hSyncPulse >> 4 -->
    3c 2b 00 <!-- (hSyncPulse << 4) & 0xFF -->
    3c 2c 02 <!-- hFrontPorch >> 4 -->
    3c 2d 80 <!-- (hFrontPorch << 4) & 0xFF -->
    3c 2e 05 <!-- hBackPorch >> 4 -->
    3c 2f 80 <!-- (hBackPorch >> 4) & 0xFF -->
    3c 30 1f <!-- vtotal >> 4 -->
    3c 31 c0 <!-- (vtotal << 4) & 0xFF -->
    3c 32 00 <!-- vSyncPulse >> 4 -->
    3c 33 40 <!-- (vSyncPulse << 4) & 0xFF -->
    3c 34 00 <!-- vFrontPorch >> 4 -->
    3c 35 10 <!-- (vFrontPorch << 4) & 0xFF -->
    3c 36 01 <!-- vBackPorch >> 4 -->
    3c 37 70 <!-- (vBackPorch >> 4) & 0xFF -->
    3c 27 CB <!-- Reset timing generator -->
    3c 27 8B <!-- * -->
    ff 05    <!-- Wait 5 ms? -->
    3c 27 CB <!-- * -->
    ff 64    <!-- Wait 100 ms? -->
    3c 55 00 <!-- Disable test mode -->
    3c 03 09
    ff 05    <!-- Wait 5 ms? -->
    3c 03 89 <!-- Enable HDMI -->
</I2CInitSequence>

@mickel52
Copy link

Please help me make panelcfg.xml file for LCD waveshare 1024 600 screen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment