Skip to contentSkip to conversation

ARM: pxa: magician: Rework HTC Magician support

PATCH Superseded Petr Cvek 2 participants 4 messages Aug 17, 2015 – Sep 7, 2015 LED

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Petr Cvek

author
#0 lore raw

v2 cover ARM: pxa: magician: Rework HTC Magician support

This patchset will clean, fix and finally add multiple PXA devices to HTC Magician machine. Also it adds leds-pasic3 driver to LED subsystem. This driver require changes into htc-pasic3 structures, which are used exclusively by magician.c code.

Petr Cvek (21):
ARM: pxa: magician: Fix Kconfig for magician to always include
htc-egpio
ARM: pxa: magician: Fix indentation and whitespaces
ARM: pxa: magician: Fix comments, debug functions and print strings
ARM: pxa: magician: Add, fix and init (new) GPIOs
ARM: pxa: magician: Add support for ADS7846 touchscreen
ARM: pxa: magician: Add normal and power I2C definition
ARM: pxa: magician: Fix IrDA pdata and redundant GPIO request
ARM: pxa: magician: Add StrataFlash Vpp GPIO and alternative driver
ARM: pxa: magician: Add OV9640 camera support
ARM: pxa: magician: Add UDA1380 sound support
ARM: pxa: magician: Add MAX1586 Vcore regulator support
ARM: pxa: magician: Add PXA27x UDC support
ARM: pxa: magician: Fix charging source and add NiCd backup charging
ARM: pxa: magician: Fix PXA USB OHCI port enable flags
ARM: pxa: magician: Fix PWM backlight regulator
ARM: pxa: magician: Add support for alternative LCD backlight
ARM: pxa: magician: Remove (temporarily) pasic3 LED support
mfd: htc-pasic3: Prepare driver for leds-pasic3
leds: leds-pasic3: Add support for PASIC3 LED controller
ARM: pxa: magician: Re-add pdata for new leds-pasic3 driver
ARM: pxa: magician: Move platform_add_devices() to the end of
magician_init()

 arch/arm/mach-pxa/Kconfig                 |    1 +
 arch/arm/mach-pxa/include/mach/magician.h |   39 +-
 arch/arm/mach-pxa/magician.c              | 1153 ++++++++++++++++++++++-------
 drivers/leds/Kconfig                      |    9 +
 drivers/leds/Makefile                     |    1 +
 drivers/leds/leds-pasic3.c                |  232 ++++++
 drivers/mfd/htc-pasic3.c                  |   54 +-
 include/linux/mfd/htc-pasic3.h            |   85 ++-
 8 files changed, 1255 insertions(+), 319 deletions(-)
 create mode 100644 drivers/leds/leds-pasic3.c
Signature · 1 line
1.7.12.1
author
#1 lore raw

v2 cover ARM: pxa: magician: Rework HTC Magician support

Dne 17.8.2015 v 23:55 Petr Cvek napsal(a):

Quoted 21 lines

This patchset will clean, fix and finally add multiple PXA devices to HTC Magician machine. Also it adds leds-pasic3 driver to LED subsystem. This driver require changes into htc-pasic3 structures, which are used exclusively by magician.c code.

Petr Cvek (21):
ARM: pxa: magician: Fix Kconfig for magician to always include
htc-egpio
ARM: pxa: magician: Fix indentation and whitespaces
ARM: pxa: magician: Fix comments, debug functions and print strings
ARM: pxa: magician: Add, fix and init (new) GPIOs
ARM: pxa: magician: Add support for ADS7846 touchscreen
ARM: pxa: magician: Add normal and power I2C definition
ARM: pxa: magician: Fix IrDA pdata and redundant GPIO request
ARM: pxa: magician: Add StrataFlash Vpp GPIO and alternative driver
ARM: pxa: magician: Add OV9640 camera support
ARM: pxa: magician: Add UDA1380 sound support
ARM: pxa: magician: Add MAX1586 Vcore regulator support
ARM: pxa: magician: Add PXA27x UDC support
ARM: pxa: magician: Fix charging source and add NiCd backup charging
ARM: pxa: magician: Fix PXA USB OHCI port enable flags

Quoted 8 lines

ARM: pxa: magician: Fix PWM backlight regulator
ARM: pxa: magician: Add support for alternative LCD backlight
ARM: pxa: magician: Remove (temporarily) pasic3 LED support
mfd: htc-pasic3: Prepare driver for leds-pasic3
leds: leds-pasic3: Add support for PASIC3 LED controller
ARM: pxa: magician: Re-add pdata for new leds-pasic3 driver
ARM: pxa: magician: Move platform_add_devices() to the end of
magician_init()

Patches for EGPIO, charging, LCD, MAX1586 and UDC are required to use Magician at all or else there will be no connectivity for debug console, very fast accu discharge, no working LCD and/or no rootfs from MMC/SD.

Petr

#2 lore raw

v2 cover ARM: pxa: magician: Rework HTC Magician support

In reply to Petr Cvek
Quoted 21 lines · Petr Cvek

This patchset will clean, fix and finally add multiple PXA devices to HTC Magician machine. Also it adds leds-pasic3 driver to LED subsystem. This driver require changes into htc-pasic3 structures, which are used exclusively by magician.c code.

Petr Cvek (21):
ARM: pxa: magician: Fix Kconfig for magician to always include
htc-egpio
ARM: pxa: magician: Fix indentation and whitespaces
ARM: pxa: magician: Fix comments, debug functions and print strings
ARM: pxa: magician: Add, fix and init (new) GPIOs
ARM: pxa: magician: Add support for ADS7846 touchscreen
ARM: pxa: magician: Add normal and power I2C definition
ARM: pxa: magician: Fix IrDA pdata and redundant GPIO request
ARM: pxa: magician: Add StrataFlash Vpp GPIO and alternative driver
ARM: pxa: magician: Add OV9640 camera support
ARM: pxa: magician: Add UDA1380 sound support
ARM: pxa: magician: Add MAX1586 Vcore regulator support
ARM: pxa: magician: Add PXA27x UDC support
ARM: pxa: magician: Fix charging source and add NiCd backup charging
ARM: pxa: magician: Fix PXA USB OHCI port enable flags

Quoted 8 lines

ARM: pxa: magician: Fix PWM backlight regulator
ARM: pxa: magician: Add support for alternative LCD backlight
ARM: pxa: magician: Remove (temporarily) pasic3 LED support
mfd: htc-pasic3: Prepare driver for leds-pasic3
leds: leds-pasic3: Add support for PASIC3 LED controller
ARM: pxa: magician: Re-add pdata for new leds-pasic3 driver
ARM: pxa: magician: Move platform_add_devices() to the end of
magician_init()

Hi Petr,

If you want several of these patches targeted at v4.3, I need to know which ones (in arch/arm/mach-pxa) are pure fixes without which magician is broken.

And a confirmation from Philip on this list would make my life easier.

Cheers.

Signature · 1 line
Robert
author
#3 lore raw

v2 cover ARM: pxa: magician: Rework HTC Magician support

Dne 5.9.2015 v 12:10 Robert Jarzmik napsal(a):

Quoted 32 lines
Quoted 21 lines · Petr Cvek

This patchset will clean, fix and finally add multiple PXA devices to HTC Magician machine. Also it adds leds-pasic3 driver to LED subsystem. This driver require changes into htc-pasic3 structures, which are used exclusively by magician.c code.

Petr Cvek (21):
ARM: pxa: magician: Fix Kconfig for magician to always include
htc-egpio
ARM: pxa: magician: Fix indentation and whitespaces
ARM: pxa: magician: Fix comments, debug functions and print strings
ARM: pxa: magician: Add, fix and init (new) GPIOs
ARM: pxa: magician: Add support for ADS7846 touchscreen
ARM: pxa: magician: Add normal and power I2C definition
ARM: pxa: magician: Fix IrDA pdata and redundant GPIO request
ARM: pxa: magician: Add StrataFlash Vpp GPIO and alternative driver
ARM: pxa: magician: Add OV9640 camera support
ARM: pxa: magician: Add UDA1380 sound support
ARM: pxa: magician: Add MAX1586 Vcore regulator support
ARM: pxa: magician: Add PXA27x UDC support
ARM: pxa: magician: Fix charging source and add NiCd backup charging
ARM: pxa: magician: Fix PXA USB OHCI port enable flags

Quoted 8 lines

ARM: pxa: magician: Fix PWM backlight regulator
ARM: pxa: magician: Add support for alternative LCD backlight
ARM: pxa: magician: Remove (temporarily) pasic3 LED support
mfd: htc-pasic3: Prepare driver for leds-pasic3
leds: leds-pasic3: Add support for PASIC3 LED controller
ARM: pxa: magician: Re-add pdata for new leds-pasic3 driver
ARM: pxa: magician: Move platform_add_devices() to the end of
magician_init()

Quoted 7 lines

Hi Petr,

If you want several of these patches targeted at v4.3, I need to know which ones (in arch/arm/mach-pxa) are pure fixes without which magician is broken.

And a confirmation from Philip on this list would make my life easier.

Sorry for delay, I was offline for few days and I have got frozen on creating rootfs suitable for NOR flash.

I will send next patchset soon (this week I hope).

If it misses this devel window, it is OK to me (I'm no hurry :-D).

Best regards,
Petr

Quoted 2 lines

Cheers.