Re: [PATCH 1/2] leds: cpcap: new driver

From: Tony Lindgren
Date: Mon Mar 06 2017 - 18:43:48 EST


Hi,

* Pavel Machek <pavel@xxxxxx> [170306 14:13]:
> > Motorola CPCAP is a PMIC found in multiple smartphones.
> > This driver adds support for the chip's LED controllers.
> > It has explicit support for all controllers used by the
> > Droid 4. Since no datasheets are available the other
> > available controllers are not supported until somebody
> > verified, that the register layout matches.
>
> This of course leads me to two questions:
>
> 1) Where can I get Droid 4?

There's plenty of them available used for a few tens of $/â
on ebay as it was a popular phone on Verizon network in the
US. It works fine on 3G networks outside the U.S, 4G probably
only works in the US.

> 2) How well is it supported?

Basic things like UART, MMC, eMMC, WLAN, I2C, SPI, HDMI,
clocks, PMIC and regulators work with lots of other dts
configured devices heading into tomorrow's Linux next in my
dts branch omap-for-v4.12/dt-droid4. LCD related patches have
been posted but are not yet in next.

Things that currently don't work are ADC, USB, charging,
audio and modems. The modems are on OHCI/EHCI, audio is on the
PMIC similar to the twl4030. I'm slowly working on a driver for
ADC/USB/charging with few more issues to sort out. I do have
ADC/USB/charging working with my current hacks though.

I've posted some notes at:

http://muru.com/linux/d4/

And Sebastian has information in his blog including a device
status matrix at:

http://elektranox.org/droid4/

Cheers,

Tony