Skip to content

Title: iPad mini 2 (J85 / s5l8960x): touchscreen SPI + PMU rail numbering (D2089) #26

Backlog

Description

@herminePuce

Hi! I'm trying to get the touchscreen working on an iPad mini 2 (iPad4,4, J85) with your Linux tree (7.3.0-rc1). Here is what I found, in case it helps others, and I have one question.

Touch node (ADT): multi-touch,j85 is a child of spi1 (0x20A084000, IRQ 137, CS = GPIO 0x47). Reset = GPIO 0x17, interrupt = GPIO 15, clock = pwmC(). Power: function-power_ana = pmuL(0x20d), function-power_ldo = pmuL(0x211).

SPI: spi1 is not the Samsung s3c64xx block. Its registers match drivers/spi/spi-apple.c (CTRL 0x00, CFG 0x04, STATUS 0x08, PIN 0x0c, TXDATA 0x10, RXDATA 0x20, CLKDIV 0x30, RXCNT 0x34, TXCNT 0x4c). On A7, STATUS uses different bits: 0x30 after RUN, 0x70 after 1 byte, 0x130 after 4 bytes (bits 6-8 look like a byte counter). FIFOSTAT and IF_XFER stay 0 and no IRQ fires, so spi-apple.c times out (-110).

PMU: pmu,d2089 at I2C 0x3c on bus 0, 16-bit register addresses. I dumped 0x000-0x7ff: structured blocks at 0x100-0x1d5 (0x20 bytes each), 0x300+8n (looks like per-rail settings, ~20 entries), 0x400-0x4ef and 0x600-0x623. The whole 0x200-0x2ff range reads as zero.

Question: how are the pmuL(0x2xx) numbers mapped to PMU registers? Is 0x200+n a write-only enable register for rail n, with the voltage in the 0x300+8n entry? Does anyone have the D2089 register map or the minimal sequence to enable the touch rails? I don't want to write blindly to the PMU.

Thanks!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions