{"id":212,"date":"2013-06-23T18:07:44","date_gmt":"2013-06-23T23:07:44","guid":{"rendered":"http:\/\/mikesmods.com\/mm-wp\/?p=212"},"modified":"2013-07-26T02:37:12","modified_gmt":"2013-07-26T07:37:12","slug":"hacking-the-macbook-pro-retina-lcd-part-1","status":"publish","type":"post","link":"http:\/\/mikesmods.com\/mm-wp\/?p=212","title":{"rendered":"Hacking the Macbook Pro Retina LCD, Part 1: First Looks"},"content":{"rendered":"<p>Since starting work on the iPad 3 LCD, I have become fascinated with Retina displays.\u00a0 It&#8217;s crazy that you can pick up a panel that would until recently have cost hundreds or thousands for 60 bucks.\u00a0 Mass production is a beautiful thing sometimes.\u00a0 I may not be a Mac, but Apple gets my thanks for dragging the market out of the 1080p rut.<\/p>\n<p>The only major issue with the iPad display is it&#8217;s less than ten inches diagonal.\u00a0 That&#8217;s very small for everyday use.\u00a0 They&#8217;re a nice portable size, but they&#8217;d look silly sitting on your desk as your primary monitor.\u00a0 Of course Apple makes a couple more Retina products which are better suited to everyday use.\u00a0 The largest of these is the display from the 15&#8243; Macbook Pro Retina.<\/p>\n<p>I believe my panel is from a Late 2012 Macbook Pro Retina 15&#8243; unit. It is the LG version, model number LP154WT1(SJ)(A1).\u00a0 I bought two of them on eBay for pretty cheap as semi-damaged top assembly pulls from complete laptops.\u00a0 I ordered them about a week apart so only the first one has yet arrived.\u00a0 The unit arrived with a screwdriver crunch in the controller PCB and the internal copper planes are visible, so hopefully it works without shorting.\u00a0 Also the righthand cables were cut and there are two 3\/8&#8243; long quite deep scratches in one area.\u00a0 Well, I guess you get what you pay for.<\/p>\n<h4>First looks<\/h4>\n<div id=\"attachment_214\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_Retina_15_LCD.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-214\" class=\"size-medium wp-image-214\" alt=\"Macbook LCD assembly.\" src=\"http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_Retina_15_LCD-300x193.png\" width=\"300\" height=\"193\" srcset=\"http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_Retina_15_LCD-300x193.png 300w, http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_Retina_15_LCD-1024x661.png 1024w, http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_Retina_15_LCD-624x402.png 624w, http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_Retina_15_LCD.png 1600w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-214\" class=\"wp-caption-text\">Macbook Pro 15&#8243; Retina LCD assembly.<\/p><\/div>\n<p>This really is a neat looking display.\u00a0 The glass spans practically edge to edge (although the active area is around a half inch inset inside that, more on top to accomodate the camera).\u00a0 According to the <a title=\"iFixit teardown of the Macbook Pro Retina LCD\" href=\"http:\/\/www.ifixit.com\/Teardown\/MacBook+Pro+Retina+Display+Teardown\/9493\/1\" target=\"_blank\">iFixit teardown<\/a>, this assembly is only 7mm thick in the center with a panel glass thickness of 1.5mm.\u00a0 That&#8217;s mighty tiny, but also not as impressive as it at first sounds as the bare glass doesn&#8217;t include the backlight and diffuser that a normal LCD has &#8211; that&#8217;s part of the full display assembly.\u00a0 This is very important to note if you take up this project by purchasing one of the myriad bare-panel units on eBay &#8211; you&#8217;ll need to supply your own backlight, polarizer films and diffusers.\u00a0 This can get quite pricey and\/or labor intensive.<\/p>\n<p>The bottom of the LCD houses a black PCB which most people identify as an inverter, but this is in actuality the LCD control electronics and has no control over the backlight (more on this later).\u00a0 Inverter, in this case, is a misnomer anyway since the backlight is LED, and inverter topology backlight drivers are only applicable to CCFLs.\u00a0 But I digress.<\/p>\n<p>The top of the LCD controller board is very sparse.\u00a0 Normally the WiFi\/Bluetooth antenna array would be screwed to the top of this, so its lack of components was likely planned in order to prevent mechanical interference.\u00a0 What are present are two connectors, labeled CNT1 and CNT2.<\/p>\n<div id=\"attachment_215\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_LCD_Conns.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-215\" class=\"size-medium wp-image-215\" alt=\"Connectors on the Macbook LCD assembly.\" src=\"http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_LCD_Conns-300x231.png\" width=\"300\" height=\"231\" srcset=\"http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_LCD_Conns-300x231.png 300w, http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_LCD_Conns-1024x791.png 1024w, http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_LCD_Conns-624x482.png 624w, http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_LCD_Conns.png 1205w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-215\" class=\"wp-caption-text\">Connectors on the Macbook LCD assembly.<\/p><\/div>\n<p>CNT2 is a 12-position dual row 0.4mm pitch board-to-board mezzanine connector with approximately 0.8mm stack height.\u00a0 I can&#8217;t seem to find the exact connector, but they are similar to Molex SlimStack connectors. CNT1 is the main LCD power and data connector, and is a 30-pin I-PEX Cabline connector.<\/p>\n<p>The LCD controller is held in place by a screw at either end and two adhesive pads in the middle.\u00a0 In a complete assembly it would also be held in place by several additional screws which also affix the antenna array and the hinge cover, but these components were not present in the unit I purchased.\u00a0 Removing the screws and unsticking the adhesive pads, the guts of the controller are revealed.\u00a0 There are two metal shields covering the majority of the circuitry.<\/p>\n<div id=\"attachment_216\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_LCD_PCB_Backside.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-216\" class=\"size-medium wp-image-216\" alt=\"Detail of the backside of the Macbook LCD PCB.\" src=\"http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_LCD_PCB_Backside-300x274.png\" width=\"300\" height=\"274\" srcset=\"http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_LCD_PCB_Backside-300x274.png 300w, http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_LCD_PCB_Backside-624x571.png 624w, http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_LCD_PCB_Backside.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-216\" class=\"wp-caption-text\">Detail of the backside of the Macbook LCD PCB.\u00a0 The metal shield covers have been removed.<\/p><\/div>\n<p>Some of the ICs that are found:<\/p>\n<ul>\n<li>Parade Technologies DP635 LCD Timing Controller<\/li>\n<li>Integrated Memory Logic IML9660 Programmable LCD Calibrator<\/li>\n<li>Silicon Mitus SM4031 Display Power Management IC<\/li>\n<li>GD=EC 71L, 10-lead 3x3mm DFN (I believe this to be a Richtek DC-DC converter <del>though I can&#8217;t yet prove it<\/del> <a title=\"Hacking the Macbook Pro Retina LCD, Part 1.2\" href=\"http:\/\/mikesmods.com\/mm-wp\/?p=261\">Proved it<\/a>, it&#8217;s a Richtek RT8035)<\/li>\n<li>416R 8215, 8-lead 2x3mm DFN (I currently believe this to be an i2c EEPROM; there are SCL\/SDA and WP testpoints nearby)<\/li>\n<\/ul>\n<p>Naturally none of these things have datasheets available (EDIT: except for the RT8035!), but that&#8217;s okay, we really shouldn&#8217;t need them.\u00a0 This should be a self-sufficient display unit, which we should be able to feed power and DisplayPort to and it should just work with no further investigation.\u00a0 Hopefully.<\/p>\n<h4>Reverse-engineering the connectors<\/h4>\n<p>Unlike the iPad, I have been unable to locate a schematic for the Macbook Pro that explains the pinout of the connector.\u00a0 But from looking at how the iPad connector is built, and from investigating some more prominent features of the panel with a multimeter and a keen eye, it is possible to get quite far in the determination of the pinout.<\/p>\n<p>Let&#8217;s begin with connector CNT2.\u00a0 We know that CNT2 goes to the display&#8217;s single backlight LED array from the iFixit teardown.\u00a0 This also tells us that there are 48 white LEDs in the array.\u00a0 This will become relevant in a moment.<\/p>\n<p>On the main PCB, suspiciously nearby behind CNT2, is a 1206 ceramic capacitor, C103 (around 1.8-2.2uF, measured at 1.9uF).\u00a0 A bit of probing tells us that one end of the capacitor is tied to the gold-plated mounting pads for the screws, which is bound to be GND.\u00a0 The other end is tied to pins 5 and 6 (assuming pin 1 in upper right and pins numbered 1-6 top to bottom on right, 7-12 on left).\u00a0 Thus we can assume that pins 5 and 6 are the anode(s) of the LED array.\u00a0 More probing reveals that the two pins are also tied together in the mate connector, so we will assume that it is a single anode design.<\/p>\n<p>Remember there are 48 LEDs in the array.\u00a0 The vast majority of LED drivers can only drive arrays that have equal numbers of LEDs in them.\u00a0 There are 10 remaining unknown pins on the backlight connector, but this is not an even divisor of 48.\u00a0 It is therefore quite likely for some of the pins to be no-connects, and for the LEDs to be split into series strings of 48, 24, 16, 12, 8, or 6 LEDs depending on the number of cathode connections present.\u00a0 It is difficult to determine the cathode connections at this point, so we change focus.<\/p>\n<p>Let&#8217;s take a look at CNT1.\u00a0 We can assume that if this display is in fact eDP as everyone says, this connector is required to have the following:<\/p>\n<ul>\n<li>4 lanes \/ 8 pins DisplayPort data (high resolution displays such as this will use all 4 lanes)<\/li>\n<li>2 pins Aux channel<\/li>\n<li>1 pin Hot Plug Detect<\/li>\n<li>At least one +V pin (probably several)<\/li>\n<li>At least one ground (probably several)<\/li>\n<li>Backlight control &#8211; either:\n<ul>\n<li>anode and cathode connections from an off-board LED driver, or<\/li>\n<li>PWM, power and enable signals for an on-board LED driver<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>As a shot in the dark, I probed the connector to determine whether it happened to contain connections to the LED anodes as previously discovered, and sure enough, pin 1 was connected.\u00a0 Followup probing revealed that pins 3-8 were connected to pins 12-7 of CNT2.\u00a0 So it is apparent that the backlight driver for this panel is housed off-board, and that there are six driven strings that make up the backlight.\u00a0 This means there are 8 white LEDs per string, and if they consume around 3.2-3.4V apiece (common for white LEDs), the strings need to be driven with 25.6-27.2V each.\u00a0 We&#8217;ll file this knowledge away for a while.<\/p>\n<p>We know that the mount\/screw pads should always be GND, so this is where we turn next.\u00a0 Probing the connector for continuity to a mount pad, we find that pins 13, 16, 19, 22, 25, 26, and 27 are GND.\u00a0 This arrangement provides some further insight:\u00a0 There are three GND pads at the righthand side, which are likely the main power GND connections.\u00a0 Also every third pad is a GND for a long period.\u00a0 It is very common to separate high-speed signal lines with a GND connection, so we can guess that the four DisplayPort lanes can be found between the remaining GNDs.\u00a0 We&#8217;ll confirm that in a moment.<\/p>\n<p>We now know where power GND is located, and there are three unknown pads adjacent which are very likely to be +V.\u00a0 This can be verified easily, as there is a 3A\/32V fuse (F1) on the rear of the panel.\u00a0 As there are no other fuses present nearby, we can assume that this is the fuse for the power input, and measuring continuity between it and the connector yields that much as expected, the last three pins (28, 29, and 30) are +V.\u00a0 We don&#8217;t have a way of knowing yet how much +V is, but at least we know where it is.<\/p>\n<p>It is assumed that pins 14-15, 17-18, 20-21, and 23-24 are the DisplayPort lanes, but we don&#8217;t know for sure.\u00a0 For this, I unwrapped one end of the I-PEX cable that runs through the hinge to look at how the wires were arranged.\u00a0 A twisted pair or coaxial line would certainly mean high-speed data.\u00a0 As predicted, removing the (very well adhered) black adhesive cloth and desoldering some of the connector casing revealed four coaxial pairs on the pins in question.\u00a0 The connector also showed that the righthand pin of each pair has an insulated coating whereas the lefthand does not.\u00a0 I arbitrarily assume that the insulated wire is data+, and the uninsulated is data-, but verification of this is needed.<\/p>\n<div id=\"attachment_217\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_IPEX_Cable.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-217\" class=\"size-medium wp-image-217\" alt=\"Macbook Pro 15&quot; Retina LCD cable, slightly disassembled.\" src=\"http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_IPEX_Cable-300x194.png\" width=\"300\" height=\"194\" srcset=\"http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_IPEX_Cable-300x194.png 300w, http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_IPEX_Cable-1024x663.png 1024w, http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_IPEX_Cable-624x404.png 624w, http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_IPEX_Cable.png 1350w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-217\" class=\"wp-caption-text\">Macbook Pro 15&#8243; Retina LCD cable, slightly disassembled.<\/p><\/div>\n<p>There are now five unaccounted-for pins in the connector.\u00a0 One is pin 2, in the middle of the LED anodes and cathodes; we can assume that this pin is no-connect as no wire appears to be populated in the cable.\u00a0 The remaining four (pins 9, 10, 11, and 12) must map to three remaining required pins: AUX+, AUX-, and Hot Plug Detect.\u00a0 It is unknown what the fourth pin is for, but it is wired in the connector.\u00a0 It will be difficult or impossible to figure out which is which with simple probing.\u00a0 It will similarly be difficult or impossible to determine the order of the DisplayPort lanes.\u00a0 At this point there is no additional investigation that can be done prior to applying power to the panel.<\/p>\n<h4>Next steps<\/h4>\n<p>The I-PEX cable assembly is built through the hinge of the MacBook.\u00a0 As such they are very expensive to buy individually, so I don&#8217;t want to damage or cut the cable, and even if I did, soldering the very, very small 40AWG wires would be a nightmare.\u00a0 I am therefore designing a very simple board that breaks out the connector to pin headers.\u00a0 On the same board I will also place a mini DisplayPort connector connected to pin headers, so I can use jumper wires to test different pin configurations very quickly and easily to determine the complete and correct pinout.\u00a0 I do not plan to offer the documents for this PCB because it will only be useful for one test, and after I figure out the pinout I will be spinning a proper board with properly-routed matched-impedance connections.\u00a0 So stay tuned for that.<\/p>\n<div id=\"attachment_218\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_Test_Board.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-218\" class=\"size-medium wp-image-218\" alt=\"Macbook LCD test board, design in progress.\" src=\"http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_Test_Board-300x242.png\" width=\"300\" height=\"242\" srcset=\"http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_Test_Board-300x242.png 300w, http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_Test_Board-624x504.png 624w, http:\/\/mikesmods.com\/mm-wp\/wp-content\/uploads\/2013\/06\/Macbook_Test_Board.png 903w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-218\" class=\"wp-caption-text\">Macbook LCD test board, design in progress.<\/p><\/div>\n<p>More on this when more is discovered.<\/p>\n<p><a title=\"Hacking the Macbook Pro Retina LCD, Part 1.1\" href=\"http:\/\/mikesmods.com\/mm-wp\/?p=231\">Next post in this series &gt;&gt;<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since starting work on the iPad 3 LCD, I have become fascinated with Retina displays.\u00a0 It&#8217;s crazy that you can pick up a panel that would until recently have cost hundreds or thousands for 60 bucks.\u00a0 Mass production is a beautiful thing sometimes.\u00a0 I may not be a Mac, but Apple gets my thanks for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/mikesmods.com\/mm-wp\/index.php?rest_route=\/wp\/v2\/posts\/212"}],"collection":[{"href":"http:\/\/mikesmods.com\/mm-wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mikesmods.com\/mm-wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mikesmods.com\/mm-wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/mikesmods.com\/mm-wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=212"}],"version-history":[{"count":12,"href":"http:\/\/mikesmods.com\/mm-wp\/index.php?rest_route=\/wp\/v2\/posts\/212\/revisions"}],"predecessor-version":[{"id":291,"href":"http:\/\/mikesmods.com\/mm-wp\/index.php?rest_route=\/wp\/v2\/posts\/212\/revisions\/291"}],"wp:attachment":[{"href":"http:\/\/mikesmods.com\/mm-wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mikesmods.com\/mm-wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=212"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mikesmods.com\/mm-wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}