* [PATCH v6 0/2] Initial support for XPowers AXP288 PMIC
@ 2014-09-25 11:15 Jacob Pan
[not found] ` <1411643739-21205-1-git-send-email-jacob.jun.pan-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Jacob Pan @ 2014-09-25 11:15 UTC (permalink / raw)
To: IIO, LKML, DEVICE TREE, Jonathan Cameron, Lee Jones
Cc: Carlo Caione, Srinivas Pandruvada, Aaron Lu, Alan Cox,
Jean Delvare, Samuel Ortiz, Liam Girdwood, Mark Brown,
Grant Likely, Greg Kroah-Hartman, Rob Herring, Lars-Peter Clausen,
Hartmut Knaack, Fugang Duan, Arnd Bergmann, Zubair Lutfullah,
Sebastian Reichel, Johannes Thumshirn, Philippe Reynes,
Angelo Compagnucci, Doug Anderson, Ramakrishna Pallala
X-Powers AXP288 is a customized PMIC found on some Intel Baytrail-CR platforms.
It comes with sub-functions such as USB charging, fuel gauge, ADC, and many LDO
and BUCK channels.
By extending the existing AXP20x driver, this patchset adds basic support
for AXP288 PMIC with ADC as one MFD cell device driver.
Currently, the PMIC driver in this patchset does not support platform data
enumeration. But when ACPI _DSD and unified device properties become available,
cell devices with platform data will be added.
This patch does not use intel_soc_pmic core for i2c and regmap handling in that
axp288 shares similar programming interface with other X-Power PMICs supported in
axp20x.c. Therefore, extending axp20x.c to include axp288 makes more sense.
Changes
v6: - change axp20x_match_device() flow to give more specific error
messages.
- remove unnecessary cast
v5: - excluded iio documentation patch, already applied to iio.git
- restructured axp288_adc read_raw code to make it more readable
- renamed adc_enable to adc_set_state and add comment about why adc
has to be always on and there is no disable function.
- axp20x use const as needed for regmap structures
v4: - removed rename patch, use Kconfig description to list supported devices
- misc clean up in ADC code, use regmap_bulk_read and improve error
handling, etc.
- remove IIO ADC scale, treat raw data as processed since the unit is
already in IIO expected milliamps.
v3: - put all file rename changes in 1/5
- add iio documentation for in_current_raw/scale
- removed global variables in axp2xx
- removed pm callbacks from GPADC
- removed ACPI opregion cell device
- added scales to ADC current and voltage
- removed ADC thermal sensor from sysfs, kernel internal use only
v2:
- use format -M for 1/4
- minor tweak based on Maxime's review
Jacob Pan (2):
mfd/axp20x: extend axp20x to support axp288 pmic
iio/adc: add support for axp288 adc
drivers/iio/adc/Kconfig | 8 +
drivers/iio/adc/Makefile | 1 +
drivers/iio/adc/axp288_adc.c | 253 ++++++++++++++++++++++++++++++
drivers/mfd/Kconfig | 3 +-
drivers/mfd/axp20x.c | 361 ++++++++++++++++++++++++++++++++++++-------
include/linux/mfd/axp20x.h | 59 +++++++
6 files changed, 629 insertions(+), 56 deletions(-)
create mode 100644 drivers/iio/adc/axp288_adc.c
--
1.9.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v6 0/2] Initial support for XPowers AXP288 PMIC
[not found] ` <1411643739-21205-1-git-send-email-jacob.jun.pan-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
@ 2014-09-25 18:30 ` Jacob Pan
2014-09-26 7:17 ` Lee Jones
0 siblings, 1 reply; 3+ messages in thread
From: Jacob Pan @ 2014-09-25 18:30 UTC (permalink / raw)
To: Jacob Pan
Cc: IIO, LKML, DEVICE TREE, Jonathan Cameron, Lee Jones, Carlo Caione,
Srinivas Pandruvada, Aaron Lu, Alan Cox, Jean Delvare,
Samuel Ortiz, Liam Girdwood, Mark Brown, Grant Likely,
Greg Kroah-Hartman, Rob Herring, Lars-Peter Clausen,
Hartmut Knaack, Fugang Duan, Arnd Bergmann, Zubair Lutfullah,
Sebastian Reichel, Johannes Thumshirn
Hi Lee/Jonathan,
Can you consider taking this for 3.18 if there are no other issues?
Thanks,
Jacob
On Thu, 25 Sep 2014 04:15:39 -0700
Jacob Pan <jacob.jun.pan-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> wrote:
> X-Powers AXP288 is a customized PMIC found on some Intel Baytrail-CR
> platforms. It comes with sub-functions such as USB charging, fuel
> gauge, ADC, and many LDO and BUCK channels.
>
> By extending the existing AXP20x driver, this patchset adds basic
> support for AXP288 PMIC with ADC as one MFD cell device driver.
>
> Currently, the PMIC driver in this patchset does not support platform
> data enumeration. But when ACPI _DSD and unified device properties
> become available, cell devices with platform data will be added.
>
> This patch does not use intel_soc_pmic core for i2c and regmap
> handling in that axp288 shares similar programming interface with
> other X-Power PMICs supported in axp20x.c. Therefore, extending
> axp20x.c to include axp288 makes more sense.
>
> Changes
> v6: - change axp20x_match_device() flow to give more specific
> error messages.
> - remove unnecessary cast
>
> v5: - excluded iio documentation patch, already applied to
> iio.git
> - restructured axp288_adc read_raw code to make it more
> readable
> - renamed adc_enable to adc_set_state and add comment about
> why adc has to be always on and there is no disable function.
> - axp20x use const as needed for regmap structures
>
> v4: - removed rename patch, use Kconfig description to list
> supported devices
> - misc clean up in ADC code, use regmap_bulk_read and
> improve error handling, etc.
> - remove IIO ADC scale, treat raw data as processed since the
> unit is already in IIO expected milliamps.
>
> v3: - put all file rename changes in 1/5
> - add iio documentation for in_current_raw/scale
> - removed global variables in axp2xx
> - removed pm callbacks from GPADC
> - removed ACPI opregion cell device
> - added scales to ADC current and voltage
> - removed ADC thermal sensor from sysfs, kernel internal use
> only
>
> v2:
> - use format -M for 1/4
> - minor tweak based on Maxime's review
>
>
> Jacob Pan (2):
> mfd/axp20x: extend axp20x to support axp288 pmic
> iio/adc: add support for axp288 adc
>
> drivers/iio/adc/Kconfig | 8 +
> drivers/iio/adc/Makefile | 1 +
> drivers/iio/adc/axp288_adc.c | 253 ++++++++++++++++++++++++++++++
> drivers/mfd/Kconfig | 3 +-
> drivers/mfd/axp20x.c | 361
> ++++++++++++++++++++++++++++++++++++-------
> include/linux/mfd/axp20x.h | 59 +++++++ 6 files changed, 629
> insertions(+), 56 deletions(-) create mode 100644
> drivers/iio/adc/axp288_adc.c
>
[Jacob Pan]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v6 0/2] Initial support for XPowers AXP288 PMIC
2014-09-25 18:30 ` Jacob Pan
@ 2014-09-26 7:17 ` Lee Jones
0 siblings, 0 replies; 3+ messages in thread
From: Lee Jones @ 2014-09-26 7:17 UTC (permalink / raw)
To: Jacob Pan
Cc: IIO, LKML, DEVICE TREE, Jonathan Cameron, Carlo Caione,
Srinivas Pandruvada, Aaron Lu, Alan Cox, Jean Delvare,
Samuel Ortiz, Liam Girdwood, Mark Brown, Grant Likely,
Greg Kroah-Hartman, Rob Herring, Lars-Peter Clausen,
Hartmut Knaack, Fugang Duan, Arnd Bergmann, Zubair Lutfullah,
Sebastian Reichel, Johannes Thumshirn, Philippe Reynes
> Can you consider taking this for 3.18 if there are no other issues?
I'm afraid not. Linus is opening the v3.18 merge-window early this
cycle, so I have stopped applying patches. This will be re-considered
for v3.19.
> On Thu, 25 Sep 2014 04:15:39 -0700
> Jacob Pan <jacob.jun.pan@linux.intel.com> wrote:
>
> > X-Powers AXP288 is a customized PMIC found on some Intel Baytrail-CR
> > platforms. It comes with sub-functions such as USB charging, fuel
> > gauge, ADC, and many LDO and BUCK channels.
> >
> > By extending the existing AXP20x driver, this patchset adds basic
> > support for AXP288 PMIC with ADC as one MFD cell device driver.
> >
> > Currently, the PMIC driver in this patchset does not support platform
> > data enumeration. But when ACPI _DSD and unified device properties
> > become available, cell devices with platform data will be added.
> >
> > This patch does not use intel_soc_pmic core for i2c and regmap
> > handling in that axp288 shares similar programming interface with
> > other X-Power PMICs supported in axp20x.c. Therefore, extending
> > axp20x.c to include axp288 makes more sense.
> >
> > Changes
> > v6: - change axp20x_match_device() flow to give more specific
> > error messages.
> > - remove unnecessary cast
> >
> > v5: - excluded iio documentation patch, already applied to
> > iio.git
> > - restructured axp288_adc read_raw code to make it more
> > readable
> > - renamed adc_enable to adc_set_state and add comment about
> > why adc has to be always on and there is no disable function.
> > - axp20x use const as needed for regmap structures
> >
> > v4: - removed rename patch, use Kconfig description to list
> > supported devices
> > - misc clean up in ADC code, use regmap_bulk_read and
> > improve error handling, etc.
> > - remove IIO ADC scale, treat raw data as processed since the
> > unit is already in IIO expected milliamps.
> >
> > v3: - put all file rename changes in 1/5
> > - add iio documentation for in_current_raw/scale
> > - removed global variables in axp2xx
> > - removed pm callbacks from GPADC
> > - removed ACPI opregion cell device
> > - added scales to ADC current and voltage
> > - removed ADC thermal sensor from sysfs, kernel internal use
> > only
> >
> > v2:
> > - use format -M for 1/4
> > - minor tweak based on Maxime's review
> >
> >
> > Jacob Pan (2):
> > mfd/axp20x: extend axp20x to support axp288 pmic
> > iio/adc: add support for axp288 adc
> >
> > drivers/iio/adc/Kconfig | 8 +
> > drivers/iio/adc/Makefile | 1 +
> > drivers/iio/adc/axp288_adc.c | 253 ++++++++++++++++++++++++++++++
> > drivers/mfd/Kconfig | 3 +-
> > drivers/mfd/axp20x.c | 361
> > ++++++++++++++++++++++++++++++++++++-------
> > include/linux/mfd/axp20x.h | 59 +++++++ 6 files changed, 629
> > insertions(+), 56 deletions(-) create mode 100644
> > drivers/iio/adc/axp288_adc.c
> >
>
> [Jacob Pan]
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-09-26 7:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-25 11:15 [PATCH v6 0/2] Initial support for XPowers AXP288 PMIC Jacob Pan
[not found] ` <1411643739-21205-1-git-send-email-jacob.jun.pan-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2014-09-25 18:30 ` Jacob Pan
2014-09-26 7:17 ` Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).