All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
To: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Maxime Ripard
	<maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
	Dmitry Torokhov
	<dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org,
	Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Carlo Caione <carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
Subject: [PATCH v8 0/6] mfd: AXP20x: Add support for AXP202 and AXP209
Date: Tue, 23 Dec 2014 10:53:08 +0800	[thread overview]
Message-ID: <1419303194-3075-1-git-send-email-wens@csie.org> (raw)

Hi everyone,

This is v8 of the AXP20x PMIC patches. These are the remaining patches
of the original series: PEK (power button) input driver, binding docs,
and defconfig updates.

Mark raised some questions during v7 about the first patch, specifically
about the "x-powers,dcdc-workmode" property. I've expanded the regulator
parts of the DT bindings doc. Mark, if you could take a look and give us
your blessing?

Dmitry, you were OK with the input bits going through the MFD tree, is
that still the case?

If there are no more problems, maybe Lee could take patches 1~4, and
Maxime can take the defconfig patches through his tree.


Thanks
ChenYu


Changes since v7:

	- DT bindings
	  * Clarified the AXP's interrupt source
	  * Added explaination for "x-powers,dcdc-workmode" property
	  * Made regulator supply properties optional. They can be omitted
	    when the input is unregulated, as is the case when they are
	    connected to the IPSOUT output on the PMIC.
	  * Used real world example (Cubieboard2) for regulator nodes
	
	- Fixed paths for PEK sysfs entries.

	- PEK driver
	  * Made axp20x_pek_remove() in PEK driver static.
	  * Removed driver owner field.
	  * Wrapped some lines over 80 characters.


Original cover letter from v7:


During the merging of v6 several patches were left out. This v7 comprises
all the patches that are still pending.

//--

AXP209 and AXP202 are the PMUs (Power Management Unit) used by A10, A13
and A20 SoCs and developed by X-Powers, a sister company of Allwinner.
AXP20x comprises an adaptive USB-Compatible PWM charger, 2 BUCK DC-DC
converters, 5 LDOs, multiple 12-bit ADCs of voltage, current and temperature
as well as 4 configurable GPIOs.

This set of patches introduces the core driver and support for two different
subsystems:
        - Regulators
        - PEK (Power Enable Key)

Changes since v1:

        - Added a new standalone patch for defconfig

        - MFD core:
          * Removed axp,system-power-controller property

        - Bindings documentation:
          * Corrected description for dcdc-workmode property
          * Removed unused axp20x-pek compatible

        - Input misc PEK driver:
          * Fixed seconds in lower case

        - Regulators subsystem:
          * Fixed axp20x_set_suspend_voltage()
          * Switched to using multi-bit control for regulators
          * When "regulators" node is not found driver doesn't quit
          * Driver is now using devm_regulator_register()
          * Added module_platform_driver() instead of subsys_initcall()

        - DT:
          * Added new DTSI for AXP209
          * Added support for cubietruck and olinuxino-micro

Changes since v2:

        - Added a new patch for multi_v7_defconfig to enable MFD core
          and subsystems

        - DT:
          * Dropped axp,system-power-controller property from DTS
          * Moved compatible and interrupt-related properties from the
            DTSI file to the DTS board files

        - Regulators subsystem:
          * Deleted useless struct axp20x_regulators
          * Added a warning when out of specs values are used for the
            dcdc frequency

        - MFD core:
          * Fixed coding style
          * Removed IDs from device table for i2c

        - Bindings documentation:
          * Several corrections and fixes

Changes since v3:

        - Removed x-powers-axp209.dtsi file
        - Rewritten bindings document

        - MFD core:
          * Fixed casting
          * Better comments / documentation

        - Input misc PEK driver:
          * Timings are now expressed in ms and the sysfs appies the
            closest possible value
          * No more useless pretty-printing
          * Removed devm_request_threaded_irq in favour of
            devm_request_any_context_irq
          * Moved from input attributes to platform device attributes

        - Regulators subsystem:
          * Removed suspend mode (axp20x_set_suspend_voltage)
          * Added regulators input supply

        - DT:
          * DTs doesn't include anymore the dtsi
          * Added input supplies for regulators

Changes since v4:

        - Removed regulator patches already applied / acked by Mark Brown

        - Input misc PEK driver:
          * Don't print anymore the "us" unit
          * Added cleanup for attributes when unbindind the device
          * Fixed error code returned when device_create_file() fails

        - DT:
          * Enable all the regulators on at boot-time
          * Removed min and max microvolts for all the regulators but DCDC2
          * Moved the axp_ipsout regulator outside the MFD node

        - MFD core:
          * The supply regulators are now specified in the MFD driver using
            regulator_bulk_register_supply_alias() and the .parent_supplies
            in the MFD cell

Changes since v5:
        - Added ACKs
        - Fixed compilation warning (reported by Hans De Goede)
        - Vendor-prefixes are now sorted
        - Removed DT patch


Carlo Caione (6):
  mfd: AXP20x: Add bindings documentation
  dt-bindings: add vendor-prefix for X-Powers
  input: misc: Add driver for AXP20x Power Enable Key
  input: misc: Add ABI docs for AXP20x PEK
  ARM: sunxi: Add AXP20x support in defconfig
  ARM: sunxi: Add AXP20x support multi_v7_defconfig

 .../ABI/testing/sysfs-driver-input-axp-pek         |  11 +
 Documentation/devicetree/bindings/mfd/axp20x.txt   |  97 +++++++
 .../devicetree/bindings/vendor-prefixes.txt        |   1 +
 arch/arm/configs/multi_v7_defconfig                |   3 +
 arch/arm/configs/sunxi_defconfig                   |   3 +
 drivers/input/misc/Kconfig                         |  11 +
 drivers/input/misc/Makefile                        |   1 +
 drivers/input/misc/axp20x-pek.c                    | 282 +++++++++++++++++++++
 8 files changed, 409 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-driver-input-axp-pek
 create mode 100644 Documentation/devicetree/bindings/mfd/axp20x.txt
 create mode 100644 drivers/input/misc/axp20x-pek.c

-- 
2.1.4

WARNING: multiple messages have this Message-ID (diff)
From: wens@csie.org (Chen-Yu Tsai)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v8 0/6] mfd: AXP20x: Add support for AXP202 and AXP209
Date: Tue, 23 Dec 2014 10:53:08 +0800	[thread overview]
Message-ID: <1419303194-3075-1-git-send-email-wens@csie.org> (raw)

Hi everyone,

This is v8 of the AXP20x PMIC patches. These are the remaining patches
of the original series: PEK (power button) input driver, binding docs,
and defconfig updates.

Mark raised some questions during v7 about the first patch, specifically
about the "x-powers,dcdc-workmode" property. I've expanded the regulator
parts of the DT bindings doc. Mark, if you could take a look and give us
your blessing?

Dmitry, you were OK with the input bits going through the MFD tree, is
that still the case?

If there are no more problems, maybe Lee could take patches 1~4, and
Maxime can take the defconfig patches through his tree.


Thanks
ChenYu


Changes since v7:

	- DT bindings
	  * Clarified the AXP's interrupt source
	  * Added explaination for "x-powers,dcdc-workmode" property
	  * Made regulator supply properties optional. They can be omitted
	    when the input is unregulated, as is the case when they are
	    connected to the IPSOUT output on the PMIC.
	  * Used real world example (Cubieboard2) for regulator nodes
	
	- Fixed paths for PEK sysfs entries.

	- PEK driver
	  * Made axp20x_pek_remove() in PEK driver static.
	  * Removed driver owner field.
	  * Wrapped some lines over 80 characters.


Original cover letter from v7:


During the merging of v6 several patches were left out. This v7 comprises
all the patches that are still pending.

//--

AXP209 and AXP202 are the PMUs (Power Management Unit) used by A10, A13
and A20 SoCs and developed by X-Powers, a sister company of Allwinner.
AXP20x comprises an adaptive USB-Compatible PWM charger, 2 BUCK DC-DC
converters, 5 LDOs, multiple 12-bit ADCs of voltage, current and temperature
as well as 4 configurable GPIOs.

This set of patches introduces the core driver and support for two different
subsystems:
        - Regulators
        - PEK (Power Enable Key)

Changes since v1:

        - Added a new standalone patch for defconfig

        - MFD core:
          * Removed axp,system-power-controller property

        - Bindings documentation:
          * Corrected description for dcdc-workmode property
          * Removed unused axp20x-pek compatible

        - Input misc PEK driver:
          * Fixed seconds in lower case

        - Regulators subsystem:
          * Fixed axp20x_set_suspend_voltage()
          * Switched to using multi-bit control for regulators
          * When "regulators" node is not found driver doesn't quit
          * Driver is now using devm_regulator_register()
          * Added module_platform_driver() instead of subsys_initcall()

        - DT:
          * Added new DTSI for AXP209
          * Added support for cubietruck and olinuxino-micro

Changes since v2:

        - Added a new patch for multi_v7_defconfig to enable MFD core
          and subsystems

        - DT:
          * Dropped axp,system-power-controller property from DTS
          * Moved compatible and interrupt-related properties from the
            DTSI file to the DTS board files

        - Regulators subsystem:
          * Deleted useless struct axp20x_regulators
          * Added a warning when out of specs values are used for the
            dcdc frequency

        - MFD core:
          * Fixed coding style
          * Removed IDs from device table for i2c

        - Bindings documentation:
          * Several corrections and fixes

Changes since v3:

        - Removed x-powers-axp209.dtsi file
        - Rewritten bindings document

        - MFD core:
          * Fixed casting
          * Better comments / documentation

        - Input misc PEK driver:
          * Timings are now expressed in ms and the sysfs appies the
            closest possible value
          * No more useless pretty-printing
          * Removed devm_request_threaded_irq in favour of
            devm_request_any_context_irq
          * Moved from input attributes to platform device attributes

        - Regulators subsystem:
          * Removed suspend mode (axp20x_set_suspend_voltage)
          * Added regulators input supply

        - DT:
          * DTs doesn't include anymore the dtsi
          * Added input supplies for regulators

Changes since v4:

        - Removed regulator patches already applied / acked by Mark Brown

        - Input misc PEK driver:
          * Don't print anymore the "us" unit
          * Added cleanup for attributes when unbindind the device
          * Fixed error code returned when device_create_file() fails

        - DT:
          * Enable all the regulators on at boot-time
          * Removed min and max microvolts for all the regulators but DCDC2
          * Moved the axp_ipsout regulator outside the MFD node

        - MFD core:
          * The supply regulators are now specified in the MFD driver using
            regulator_bulk_register_supply_alias() and the .parent_supplies
            in the MFD cell

Changes since v5:
        - Added ACKs
        - Fixed compilation warning (reported by Hans De Goede)
        - Vendor-prefixes are now sorted
        - Removed DT patch


Carlo Caione (6):
  mfd: AXP20x: Add bindings documentation
  dt-bindings: add vendor-prefix for X-Powers
  input: misc: Add driver for AXP20x Power Enable Key
  input: misc: Add ABI docs for AXP20x PEK
  ARM: sunxi: Add AXP20x support in defconfig
  ARM: sunxi: Add AXP20x support multi_v7_defconfig

 .../ABI/testing/sysfs-driver-input-axp-pek         |  11 +
 Documentation/devicetree/bindings/mfd/axp20x.txt   |  97 +++++++
 .../devicetree/bindings/vendor-prefixes.txt        |   1 +
 arch/arm/configs/multi_v7_defconfig                |   3 +
 arch/arm/configs/sunxi_defconfig                   |   3 +
 drivers/input/misc/Kconfig                         |  11 +
 drivers/input/misc/Makefile                        |   1 +
 drivers/input/misc/axp20x-pek.c                    | 282 +++++++++++++++++++++
 8 files changed, 409 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-driver-input-axp-pek
 create mode 100644 Documentation/devicetree/bindings/mfd/axp20x.txt
 create mode 100644 drivers/input/misc/axp20x-pek.c

-- 
2.1.4

             reply	other threads:[~2014-12-23  2:53 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-23  2:53 Chen-Yu Tsai [this message]
2014-12-23  2:53 ` [PATCH v8 0/6] mfd: AXP20x: Add support for AXP202 and AXP209 Chen-Yu Tsai
     [not found] ` <1419303194-3075-1-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
2014-12-23  2:53   ` [PATCH v8 1/6] mfd: AXP20x: Add bindings documentation Chen-Yu Tsai
2014-12-23  2:53     ` Chen-Yu Tsai
     [not found]     ` <1419303194-3075-2-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
2015-01-11  2:02       ` Chen-Yu Tsai
2015-01-11  2:02         ` Chen-Yu Tsai
2015-01-19  9:37       ` Lee Jones
2015-01-19  9:37         ` Lee Jones
2015-01-19 10:02         ` Chen-Yu Tsai
2015-01-19 10:02           ` [linux-sunxi] " Chen-Yu Tsai
2014-12-23  2:53   ` [PATCH v8 2/6] dt-bindings: add vendor-prefix for X-Powers Chen-Yu Tsai
2014-12-23  2:53     ` Chen-Yu Tsai
     [not found]     ` <1419303194-3075-3-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
2015-01-19  9:38       ` Lee Jones
2015-01-19  9:38         ` Lee Jones
2014-12-23  2:53   ` [PATCH v8 3/6] input: misc: Add driver for AXP20x Power Enable Key Chen-Yu Tsai
2014-12-23  2:53     ` Chen-Yu Tsai
     [not found]     ` <1419303194-3075-4-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
2014-12-29 23:16       ` Dmitry Torokhov
2014-12-29 23:16         ` Dmitry Torokhov
2014-12-30  7:25         ` Chen-Yu Tsai
2014-12-30  7:25           ` Chen-Yu Tsai
2014-12-23  2:53   ` [PATCH v8 4/6] input: misc: Add ABI docs for AXP20x PEK Chen-Yu Tsai
2014-12-23  2:53     ` Chen-Yu Tsai
     [not found]     ` <1419303194-3075-5-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
2015-01-15 16:00       ` Chen-Yu Tsai
2015-01-15 16:00         ` Chen-Yu Tsai
     [not found]         ` <CAGb2v64AvP+niDrFU-vGGsXUoKD_kv34DqEPRFUZ0fiyeWiz9A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-15 17:39           ` Dmitry Torokhov
2015-01-15 17:39             ` Dmitry Torokhov
2015-01-16  1:01             ` Chen-Yu Tsai
2015-01-16  1:01               ` Chen-Yu Tsai
2014-12-23  2:53   ` [PATCH v8 5/6] ARM: sunxi: Add AXP20x support in defconfig Chen-Yu Tsai
2014-12-23  2:53     ` Chen-Yu Tsai
     [not found]     ` <1419303194-3075-6-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
2015-01-06 16:33       ` Maxime Ripard
2015-01-06 16:33         ` Maxime Ripard
2014-12-23  2:53   ` [PATCH v8 6/6] ARM: sunxi: Add AXP20x support multi_v7_defconfig Chen-Yu Tsai
2014-12-23  2:53     ` Chen-Yu Tsai
     [not found]     ` <1419303194-3075-7-git-send-email-wens-jdAy2FN1RRM@public.gmane.org>
2015-01-06 16:34       ` Maxime Ripard
2015-01-06 16:34         ` Maxime Ripard
2014-12-24 11:00   ` [PATCH v8 0/6] mfd: AXP20x: Add support for AXP202 and AXP209 Carlo Caione
2014-12-24 11:00     ` [linux-sunxi] " Carlo Caione
2015-01-16  1:08   ` Chen-Yu Tsai
2015-01-16  1:08     ` Chen-Yu Tsai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1419303194-3075-1-git-send-email-wens@csie.org \
    --to=wens-jday2fn1rrm@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org \
    --cc=dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    --cc=maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.