Close

The LCD works!

A project log for Put a Raspberry Pi CM4 into an original iPad

Open up a 2010 iPad, remove its logic board, and fabricate a new board based around the Raspberry Pi CM4.

EvanEvan 10/07/2022 at 07:414 Comments

After finding and fixing a few silly mistakes, I finally got the LCD working:

The iPad's LCD displaying glxgears, backlit by a makeshift backlight — the circuitry for driving the built-in backlight had a mistake that I haven't fixed yet, documented in this project log.

The issues I discovered that I had to fix were:

  1. The registers for HFP, HBP, and Hsync pulse width are 8 bits on the sn65dsi83, but I was trying to set several of these to values above 255. This was causing them to wrap around, meaning my horizontal line frequency was different than I wanted. I had to adjust these values to be <=255.
  2. I recalled that someone had told me that 4 lanes of DSI doesn't seem to work with the sn65 (at least with the current version of the Linux driver). I had most recently been testing with 4 lanes, so I was getting no LVDS output. Switching to 3 lanes (and adjusting the desired LVDS clock speed downwards so that the DSI clock would be under 500MHz) got the sn65 producing LVDS signals that seemed to work.
  3. The LVDS connector on the other side of my board had come off. At some point I had tried swapping out the sn65 IC for a fresh one, thinking I might have burned out the LVDS outputs by shorting them to the inconveniently adjacent 1.8V supply pins. During this rework process, the solder on the LVDS connector must have gotten hot enough to melt (it is essentially right behind the sn65).

I'm fortunate that the LCD doesn't seem to mind if I use a different timing configuration than is specified in its datasheet.

Next steps:

Once I do those things, this should be a functional tablet! Mostly. There's still the whole software thing to deal with. And I need to figure out how to either use the iPad's original wifi/BT chip or connect the CM4's antenna port to one of the iPad's own antennas. Also I'd like to test the NVMe slot. Oh, and I haven't tested the audio codec+speaker amplifier on this revision of the board, I think.

But still! Tangible progress!

Discussions

Hpag wrote 10/14/2022 at 12:11 point

Amazing! I would love to see a desktop environment running on that screen.

  Are you sure? yes | no

kelvinA wrote 10/08/2022 at 14:07 point

Nice to see progresss

  Are you sure? yes | no

Hassla wrote 10/07/2022 at 23:30 point

Friggin awesome, keep up the good work!

  Are you sure? yes | no

Evan wrote 10/07/2022 at 23:46 point

Thanks!

  Are you sure? yes | no