[PATCH v8 0/2] power: act8945a: add charger driver for the sub-device of ACT8945A MFD

2016-02-04 Thread Wenyou Yang
_register() for power_supply_register(). 3./ Use module_platform_driver(), instead of subsys_initcall(). 4./ Substitute MODULE_LICENSE("GPL") for MODULE_LICENSE("GPL v2"). Wenyou Yang (2): power: act8945a: add charger driver for ACT8945A power: add documentation for A

[PATCH v10 0/2] mfd: act8945a: add Active-semi ACT8945A PMIC MFD driver

2016-02-04 Thread Wenyou Yang
it info to indicate the failure to add sub devices. - remove the unnecessary print out. - substitute MODULE_LICENSE("GPL") for MODULE_LICENSE("GPL v2"). - use more specific label in Example. - add pmic and charger nodes in Example. Wenyou Yang (2): mfd: act8945a: add Active-

[PATCH v10 1/2] mfd: act8945a: add Active-semi ACT8945A PMIC MFD driver

2016-02-04 Thread Wenyou Yang
This patch adds support for the Active-semi ACT8945A PMIC. It is a Multi Function Device with the following subdevices: - Regulator - Charger It is interfaced to the host controller using I2C interface, ACT8945A is a child device of the I2C. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.

[PATCH v5 1/2] regulator: act8945a: add regulator driver for ACT8945A

2016-02-04 Thread Wenyou Yang
This patch adds new regulator driver to support ACT8945A MFD chip's regulators. The ACT8945A has three step-down DC/DC converters and four low-dropout regulators. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v5: - remove the OF table. - due to the mfd cell .of_comp

[PATCH v5 0/2] regulator: act8945a: add regulator driver for the sub-device of ACT8945A MFD

2016-02-04 Thread Wenyou Yang
for MODULE_LICENSE("GPL v2"). - add Acked-by Rob Herring. Wenyou Yang (2): regulator: act8945a: add regulator driver for ACT8945A regulator: add documentation for ACT8945A's regulator DT bindings .../bindings/regulator/act8945a-regulator.txt | 80 ++ drivers/reg

[PATCH 0/4] ARM: at91: pm: add ULP1 mode support

2016-01-28 Thread Wenyou Yang
/390954.html Wenyou Yang (4): ARM: at91: pm: create a separate procedure for the ULP0 mode ARM: at91: pm: add ULP1 mode support ARM: at91: pm: configure PMC fast startup signals Documentation: atmel-at91: add DT bindings for fast startup .../devicetree/bindings/arm/atmel-pmc.txt

[PATCH 1/4] ARM: at91: pm: create a separate procedure for the ULP0 mode

2016-01-28 Thread Wenyou Yang
To make the code more legible and prepare to add the ULP1 mode support in the future, create a separate procedure for the ULP0 mode. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/pm_suspend.S | 65 --- 1 file chang

[PATCH 3/4] ARM: at91: pm: configure PMC fast startup signals

2016-01-28 Thread Wenyou Yang
mode should be configured via the DT. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/pm.c | 96 ++ include/linux/clk/at91_pmc.h | 32 ++ 2 files changed, 128 insertions(+) diff --git a/arch/arm/mac

[PATCH 2/4] ARM: at91: pm: add ULP1 mode support

2016-01-28 Thread Wenyou Yang
event is asserted, the embedded 12MHz RC oscillator restarts automatically. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/pm.c | 16 ++- arch/arm/mach-at91/pm.h |7 +++ arch/arm/mach-at91/pm_suspend.S

[PATCH 4/4] Documentation: atmel-at91: add DT bindings for fast startup

2016-01-28 Thread Wenyou Yang
Add DT bindings to configurate the PMC_FSMR and PMC_FSPR registers to trigger a fast restart signal to PMC. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- .../devicetree/bindings/arm/atmel-pmc.txt | 74 1 file changed, 74 insertions(+) diff

[PATCH v2 2/4] ARM: at91: pm: add ULP1 mode support

2016-02-03 Thread Wenyou Yang
event is asserted, the embedded 12MHz RC oscillator restarts automatically. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: - fix label pm_exit to ulp_exit. arch/arm/mach-at91/pm.c | 16 ++- arch/arm/mach-at91/pm.h |7 +++ arch/arm/mac

[PATCH v2 1/4] ARM: at91: pm: create a separate procedure for the ULP0 mode

2016-02-03 Thread Wenyou Yang
To make the code more legible and prepare to add the ULP1 mode support in the future, create a separate procedure for the ULP0 mode. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: None arch/arm/mach-at91/pm_suspend.S | 65 ---

[PATCH v2 0/4] ARM: at91: pm: add ULP1 mode support

2016-02-03 Thread Wenyou Yang
/390954.html Changes in v2: - fix label pm_exit to ulp_exit. - shorten the pmc-fast-startup property's name. - use the value property, instead of bool property for high or low triggered. - change the property name and property description. Wenyou Yang (4): ARM: at91: pm: create a separate

[PATCH v2 3/4] ARM: at91: pm: configure PMC fast startup signals

2016-02-03 Thread Wenyou Yang
mode should be configured via the DT. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: - shorten the pmc-fast-startup property's name. - use the value property, instead of bool property for high or low triggered. arch/arm/mach-at91/pm.c

[PATCH v2 4/4] Documentation: atmel-pmc: add DT bindings for fast startup

2016-02-03 Thread Wenyou Yang
Add DT bindings to configurate the PMC_FSMR and PMC_FSPR registers to trigger a fast restart signal to PMC. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: - change the property name and property description. .../devicetree/bindings/arm/atmel-pmc.txt

[PATCH v2 2/2] ARM: at91: sama5/dts: move hsmc_clk out of nfc node

2016-02-22 Thread Wenyou Yang
From: Josh Wu <josh...@atmel.com> For SAMA5D3, SAMA5D4 SoC family, as PMECC is a part of HSMC, PMECC needs the HSMC clock, so move out hsmc_clk from the nfc node to the nand node. Signed-off-by: Josh Wu <josh...@atmel.com> Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>

[PATCH v3] mtd: atmel_nand: move the hsmc_clk from nfc node to nand node

2016-02-22 Thread Wenyou Yang
and. Signed-off-by: Josh Wu <josh...@atmel.com> Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: - add "atmel,sama5d3-nand" compatiable string for SAMA5D3's nand. - revert the mail address of Josh's Signed-off to the original. Changes in v2:

[PATCH v2 1/2] ARM: at91: sama5d3/dts: add compatiable string for nand

2016-02-22 Thread Wenyou Yang
From: Josh Wu <josh...@atmel.com> As introducing a new "atmel,sama5d3-nand" compatible string for SAMA5D3's nand node, apply it for SAMA5D3 SoC. Signed-off-by: Josh Wu <josh...@atmel.com> Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: None ar

[PATCH v2 0/2] ARM: at91: sama5/dts: move hsmc_clk out of nfc node

2016-02-22 Thread Wenyou Yang
For SAMA5D3, SAMA5D4 SoC family, PMECC needs the HSMC clock, so move out hsmc_clk from the nfc node to the nand node. Also, change the SAMA5D3 nand node's compatible string to "atmel,sama5d3-nand". Changes in v2: - add a patch to change SAMA5D3 nand node's compatible string to

[PATCH v7 1/2] mfd: act8945a: add Active-semi ACT8945A PMIC MFD driver

2016-01-21 Thread Wenyou Yang
This patch adds support for the Active-semi ACT8945A PMIC. It is a Multi Function Device with the following subdevices: - Regulator - Charger It is interfaced to the host controller using I2C interface, ACT8945A is a child device of the I2C. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.

[PATCH v7 2/2] mfd: add documentation for ACT8945A DT bindings

2016-01-21 Thread Wenyou Yang
The Active-semi ACT8945A PMIC is a Multi-Function Device, it has two subdevices: - Regulator - Charger This patch adds documentation for ACT8945A DT bindings. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Acked-by: Rob Herring <r...@kernel.org> --- Changes in v7: None C

[PATCH v7 0/2] mfd: act8945a: add Active-semi ACT8945A PMIC MFD driver

2016-01-21 Thread Wenyou Yang
substitute MODULE_LICENSE("GPL") for MODULE_LICENSE("GPL v2"). - use more specific label in Example. - add pmic and charger nodes in Example. Wenyou Yang (2): mfd: act8945a: add Active-semi ACT8945A PMIC MFD driver mfd: add documentation for ACT8945A DT bindings Documen

[PATCH v7 2/2] power: add documentation for ACT8945A's charger DT bindings

2016-01-21 Thread Wenyou Yang
This patch adds documentation for the DT bindings of the charger subdevice of ACT8945A MFD. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Reviewed-by: Krzysztof Kozlowski <k.kozlow...@samsung.com> --- Changes in v7: None Changes in v6: None Changes in v5: - collect Revi

[PATCH v7 1/2] power: act8945a: add charger driver for ACT8945A

2016-01-21 Thread Wenyou Yang
62 @@ +/* + * Power supply driver for the Active-semi ACT8945A PMIC + * + * Copyright (C) 2015 Atmel Corporation + * + * Author: Wenyou Yang <wenyou.y...@atmel.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General

[PATCH v7 0/2] power: act8945a: add charger driver for the sub-device of ACT8945A MFD

2016-01-21 Thread Wenyou Yang
_register() for power_supply_register(). 3./ Use module_platform_driver(), instead of subsys_initcall(). 4./ Substitute MODULE_LICENSE("GPL") for MODULE_LICENSE("GPL v2"). Wenyou Yang (2): power: act8945a: add charger driver for ACT8945A power: add documentation for A

[PATCH v8 0/2] mfd: act8945a: add Active-semi ACT8945A PMIC MFD driver

2016-01-26 Thread Wenyou Yang
ead of '-1'. - use more explicit info to indicate the failure to add sub devices. - remove the unnecessary print out. - substitute MODULE_LICENSE("GPL") for MODULE_LICENSE("GPL v2"). - use more specific label in Example. - add pmic and charger nodes in Example. Wenyou Yan

[PATCH v8 1/2] mfd: act8945a: add Active-semi ACT8945A PMIC MFD driver

2016-01-26 Thread Wenyou Yang
This patch adds support for the Active-semi ACT8945A PMIC. It is a Multi Function Device with the following subdevices: - Regulator - Charger It is interfaced to the host controller using I2C interface, ACT8945A is a child device of the I2C. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.

[PATCH v8 2/2] mfd: add documentation for ACT8945A DT bindings

2016-01-26 Thread Wenyou Yang
The Active-semi ACT8945A PMIC is a Multi-Function Device, it has two subdevices: - Regulator - Charger This patch adds documentation for ACT8945A DT bindings. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Acked-by: Rob Herring <r...@kernel.org> Acked-by: Lee Jones <lee.j

[PATCH v4 1/2] regulator: act8945a: add regulator driver for ACT8945A

2016-01-26 Thread Wenyou Yang
This patch adds new regulator driver to support ACT8945A MFD chip's regulators. The ACT8945A has three step-down DC/DC converters and four low-dropout regulators. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v4: - change the name "act8945a-pmic" to &qu

[PATCH v4 0/2] regulator: act8945a: add regulator driver for the sub-device of ACT8945A MFD

2016-01-26 Thread Wenyou Yang
e of_property_read_bool() for of_get_property(). - due to removing the member of stuct act8945a_dev, dev. - remove the unnecessary print out. - use module_platform_driver(), instead of subsys_initcall(). - substitute MODULE_LICENSE("GPL") for MODULE_LICENSE("GPL v2").

[PATCH v4 2/2] regulator: add documentation for ACT8945A's regulator DT bindings

2016-01-26 Thread Wenyou Yang
This patch adds documentation for the DT bindings of the regulator subdevice of ACT8945A MFD. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Acked-by: Rob Herring <r...@kernel.org> --- Changes in v4: None Changes in v3: None Changes in v2: - add Acked-by Rob Herring.

[PATCH v9 0/2] mfd: act8945a: add Active-semi ACT8945A PMIC MFD driver

2016-01-27 Thread Wenyou Yang
ULE_LICENSE("GPL v2"). - use more specific label in Example. - add pmic and charger nodes in Example. Wenyou Yang (2): mfd: act8945a: add Active-semi ACT8945A PMIC MFD driver mfd: add documentation for ACT8945A DT bindings Documentation/devicetree/bindings/mfd/act8945a.txt | 82

[PATCH v9 2/2] mfd: add documentation for ACT8945A DT bindings

2016-01-27 Thread Wenyou Yang
The Active-semi ACT8945A PMIC is a Multi-Function Device, it has two subdevices: - Regulator - Charger This patch adds documentation for ACT8945A DT bindings. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Acked-by: Rob Herring <r...@kernel.org> Acked-by: Lee Jones <lee.j

[PATCH v9 1/2] mfd: act8945a: add Active-semi ACT8945A PMIC MFD driver

2016-01-27 Thread Wenyou Yang
This patch adds support for the Active-semi ACT8945A PMIC. It is a Multi Function Device with the following subdevices: - Regulator - Charger It is interfaced to the host controller using I2C interface, ACT8945A is a child device of the I2C. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.

[PATCH] mtd: atmel_nand: move the hsmc_clk from nfc node to nand node

2016-02-16 Thread Wenyou Yang
e HSMC clock. then, it will make the PMECC fail to work. So the solution is to move the HSMC clock out of NFC to nand node. When nand driver probed, it will check whether the chip has HSMC, if yes then it will require a HSMC clock. Signed-off-by: Josh Wu <josh...@atmel.com> Signed-off-by:

[PATCH] ARM: at91: sama5/dts: move hsmc_clk out of nfc node

2016-02-16 Thread Wenyou Yang
From: Josh Wu <josh...@atmel.com> In sama5d3, sama5d4 chips, pmecc will use the hsmc clock. As pmecc is part of HSMC. So move out hsmc_clk from nfc node to nand node. Signed-off-by: Josh Wu <rainyfeel...@outlook.com> Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> ---

[PATCH v2] mtd: atmel_nand: move the hsmc_clk from nfc node to nand node

2016-02-17 Thread Wenyou Yang
e HSMC clock. then, it will make the PMECC fail to work. So the solution is to move the HSMC clock out of NFC to nand node. When nand driver probed, it will check whether the chip has HSMC, if yes then it will require a HSMC clock. Signed-off-by: Josh Wu <rainyfeel...@outlook.com> Signed-of

[PATCH v3 0/4] ARM: at91: pm: add ULP1 mode support

2016-02-14 Thread Wenyou Yang
or low triggered. - change the property name and property description. Wenyou Yang (4): ARM: at91: pm: create a separate procedure for the ULP0 mode ARM: at91: pm: add ULP1 mode support ARM: at91: pm: configure PMC fast startup signals Documentation: atmel-pmc: add DT bindings for fast startup

[PATCH v3 1/4] ARM: at91: pm: create a separate procedure for the ULP0 mode

2016-02-14 Thread Wenyou Yang
To make the code more legible and prepare to add the ULP1 mode support in the future, create a separate procedure for the ULP0 mode. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: None Changes in v2: None arch/arm/mach-at91/pm_suspend.S

[PATCH v3 2/4] ARM: at91: pm: add ULP1 mode support

2016-02-14 Thread Wenyou Yang
event is asserted, the embedded 12MHz RC oscillator restarts automatically. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: None Changes in v2: - fix label pm_exit to ulp_exit. arch/arm/mach-at91/pm.c | 16 ++- arch/arm/mach-at91/pm.h |7 +++

[PATCH v3 3/4] ARM: at91: pm: configure PMC fast startup signals

2016-02-14 Thread Wenyou Yang
mode should be configured via the DT. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: - use 0 and 1, not string, to define the trigger active polarity. Changes in v2: - shorten the pmc-fast-startup property's name. - use the value property, instead of bool pr

[PATCH v3 4/4] Documentation: atmel-pmc: add DT bindings for fast startup

2016-02-14 Thread Wenyou Yang
Add DT bindings to configurate the PMC_FSMR and PMC_FSPR registers to trigger a fast restart signal to PMC. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Document: binding --- Changes in v3: - update the property description. Changes in v2: - change the property name and pr

[PATCH v9 0/2] power: act8945a: add charger driver for the sub-device of ACT8945A MFD

2016-02-15 Thread Wenyou Yang
es in v2: 1./ Substitute of_property_read_bool() for of_get_property(). 2./ Substitute devm_power_supply_register() for power_supply_register(). 3./ Use module_platform_driver(), instead of subsys_initcall(). 4./ Substitute MODULE_LICENSE("GPL") for MODULE_LICENSE("GPL v2"). Wenyou

[PATCH v9 1/2] power: act8945a: add charger driver for ACT8945A

2016-02-15 Thread Wenyou Yang
.b5c00e4 --- /dev/null +++ b/drivers/power/act8945a_charger.c @@ -0,0 +1,359 @@ +/* + * Power supply driver for the Active-semi ACT8945A PMIC + * + * Copyright (C) 2015 Atmel Corporation + * + * Author: Wenyou Yang <wenyou.y...@atmel.com> + * + * This program is free software; you can redi

[PATCH v9 2/2] power: add documentation for ACT8945A's charger DT bindings

2016-02-15 Thread Wenyou Yang
This patch adds documentation for the DT bindings of the charger subdevice of ACT8945A MFD. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Reviewed-by: Krzysztof Kozlowski <k.kozlow...@samsung.com> --- Changes in v9: None Changes in v8: - due the mfd cell .of_compatible rem

[PATCH v5 2/5] ARM: at91: pm: add ULP1 mode support

2016-03-16 Thread Wenyou Yang
event is asserted, the embedded 12MHz RC oscillator restarts automatically. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - fix label pm_exit to ulp_exit. arch/arm/mach-at91/pm.c | 16 ++- ar

[PATCH v5 1/5] ARM: at91: pm: create a separate procedure for the ULP0 mode

2016-03-16 Thread Wenyou Yang
To make the code more legible and prepare to add the ULP1 mode support in the future, create a separate procedure for the ULP0 mode. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mac

[PATCH v5 0/5] ARM: at91: pm: add ULP1 mode support

2016-03-16 Thread Wenyou Yang
the property name and property description. Wenyou Yang (5): ARM: at91: pm: create a separate procedure for the ULP0 mode ARM: at91: pm: add ULP1 mode support ARM: at91: pm: configure PMC fast startup signals Documentation: atmel-pmc: add DT bindings for fast startup ARM: at91/dt: sama5d2_xplained

[PATCH v5 5/5] ARM: at91/dt: sama5d2_xplained: add fast_restart node

2016-03-16 Thread Wenyou Yang
Add fast_restart node as a pmc's child node to support fast startup signal configuration. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v5: - due to the DT property expression change, update the fast restart node's property. Changes in v4: - add fast_restar

[PATCH v5 3/5] ARM: at91: pm: configure PMC fast startup signals

2016-03-16 Thread Wenyou Yang
mode should be configured via the DT. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v5: - to improve the scalability, rework the DT expression part, use the child nodes to describe the wake-up input and its active level. Changes in v4: None Changes in v3: - use 0

[PATCH v5 4/5] Documentation: atmel-pmc: add DT bindings for fast startup

2016-03-16 Thread Wenyou Yang
Add DT bindings to configurate the PMC_FSMR and PMC_FSPR registers to trigger a fast restart signal to PMC. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Acked-by: Rob Herring <robh...@kernel.org> --- Changes in v5: - due to the DT property expression change, update the binding

[PATCH v4 0/5] ARM: at91: pm: add ULP1 mode support

2016-03-07 Thread Wenyou Yang
and property description. Wenyou Yang (5): ARM: at91: pm: create a separate procedure for the ULP0 mode ARM: at91: pm: add ULP1 mode support ARM: at91: pm: configure PMC fast startup signals Documentation: atmel-pmc: add DT bindings for fast startup ARM: at91/dt: sama5d2_xplained: add fast_restart

[PATCH v4 2/5] ARM: at91: pm: add ULP1 mode support

2016-03-07 Thread Wenyou Yang
event is asserted, the embedded 12MHz RC oscillator restarts automatically. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v4: None Changes in v3: None Changes in v2: - fix label pm_exit to ulp_exit. arch/arm/mach-at91/pm.c | 16 ++- arch/arm/mach-at9

[PATCH v4 3/5] ARM: at91: pm: configure PMC fast startup signals

2016-03-07 Thread Wenyou Yang
mode should be configured via the DT. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v4: None Changes in v3: - use 0 and 1, not string, to define the trigger active polarity. Changes in v2: - shorten the pmc-fast-startup property's name. - use the value property, i

[PATCH v4 4/5] Documentation: atmel-pmc: add DT bindings for fast startup

2016-03-07 Thread Wenyou Yang
Add DT bindings to configurate the PMC_FSMR and PMC_FSPR registers to trigger a fast restart signal to PMC. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Acked-by: Rob Herring <robh...@kernel.org> --- Changes in v4: - add Acked-by tag. Changes in v3: - update the property

[PATCH v4 5/5] ARM: at91/dt: sama5d2_xplained: add fast_restart node

2016-03-07 Thread Wenyou Yang
Add fast_restart node as a pmc's child node to support fast startup signal configuration. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v4: - add fast_restart node to the DT file. Changes in v3: None Changes in v2: None arch/arm/boot/dts/at91-sama5d2_xplained.dts

[PATCH v4 1/5] ARM: at91: pm: create a separate procedure for the ULP0 mode

2016-03-07 Thread Wenyou Yang
To make the code more legible and prepare to add the ULP1 mode support in the future, create a separate procedure for the ULP0 mode. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-at91/pm_suspend.S

[PATCH] usb: ohci-at91: Suspend the ports while USB suspending

2016-05-11 Thread Wenyou Yang
-by: Wenyou Yang <wenyou.y...@atmel.com> --- drivers/usb/host/ohci-at91.c | 63 1 file changed, 63 insertions(+) diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index d177372..ce898e0 100644 --- a/drivers/usb/host/ohci-at91.c

[PATCH 0/2] mtd: atmel_nand: remove compatible "atmel,sama5d4-nfc"

2016-05-09 Thread Wenyou Yang
It is a datasheet bug, for current SoCs, the RB_EDGE3(i.e. bit 27) of HSMC_SR register does not exist, the RB_EDGE0 (i.e. bit 24) is the ready/busy line edge status bit. So the compatible "atmel,sama5d4-nfc" is unneeded. Wenyou Yang (2): Revert "mtd: atmel_nand: Support v

[PATCH 1/2] Revert "mtd: atmel_nand: Support variable RB_EDGE interrupts"

2016-05-09 Thread Wenyou Yang
This reverts commit 5ddc7bd43ccc ("mtd: atmel_nand: Support variable RB_EDGE interrupts") Because for current SoCs, the RB_EDGE3(i.e. bit 27) of HSMC_SR register does not exist, the RB_EDGE0 (i.e. bit 24) is the ready/busy line edge status bit. It is a datasheet bug. Signed-off-by: W

[PATCH 2/2] ARM: at91/dt: use "atmel,sama5d3-nfc" compatible for nfc

2016-05-09 Thread Wenyou Yang
Due to the compatible "atmel,sama5d4-nfc" removal, use "atmel,sama5d3-nfc" for the sama5d2's nfc node. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/boot/dts/sama5d2.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/bo

[PATCH v3 4/7] power: act8945a_charger: Fix the power supply type

2016-07-28 Thread Wenyou Yang
The power supply type property is varying as the external power supply changes. It is not a constant. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: None Changes in v2: None drivers/power/act8945a_charger.c | 48 1 file c

[PATCH v3 5/7] power: act8945a_charger: Add capacity level property

2016-07-28 Thread Wenyou Yang
Add the power supply capacity level property, it corresponds to POWER_SUPPLY_CAPACITY_LEVEL_*. It also utilizes the precision voltage detector function module to catch the low battery voltage. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: None Changes in v2

[PATCH v3 3/7] power: act8945a_charger: Add status change update support

2016-07-28 Thread Wenyou Yang
temperature goes out of or into the valid range. - the PRECHARGE time-out occurs. - the total charge time-out occurs. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: None Changes in v2: None drivers/power/act8945a_charger.c | 78 -

[PATCH v3 2/7] power: act8945a_charger: Improve

2016-07-28 Thread Wenyou Yang
When get the property, first check the charger state machine, then check the status bit to decide what value is assigned to the corresponding property. Retain the SUSCHG bit of REG 0x71 when configure the timers to avoid losting the charger suspending info after boot. Signed-off-by: Wenyou Yang

[PATCH v3 1/7] power: act8945a_charger: Remove "battery_temperature"

2016-07-28 Thread Wenyou Yang
Remove "battery_temperature" member, it is redundant, it is the hardware's responsibility to handle TH pin properly. It is unnecessary to use the dt property to check if there is a battery temperature monitor or not. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Cha

[PATCH v3 0/7] power: act8945a_charger: Improvements

2016-07-28 Thread Wenyou Yang
semicolon.cocci warning. Changes in v2: - Add missing ret declaration. Wenyou Yang (7): power: act8945a_charger: Remove "battery_temperature" power: act8945a_charger: Improve power: act8945a_charger: Add status change update support power: act8945a_charger: Fix the power s

[PATCH v3 7/7] doc: bindings: act8945a-charger: Update properties

2016-07-28 Thread Wenyou Yang
Due the driver improvements, update the properties, - Remove "active-semi,check-battery-temperature" property. - Add the properties, "active-semi,irq_gpio" and "active-semi,lbo-gpios". Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Cha

[PATCH v3 6/7] power: act8945a_charger: Add max current property

2016-07-28 Thread Wenyou Yang
Add the power supply's current max property, POWER_SUPPLY_PROP_CURRENT_MAX. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: None Changes in v2: None drivers/power/act8945a_charger.c | 79 +++- 1 file changed, 77 insertions

[PATCH v5] usb: ohci-at91: Forcibly suspend ports while USB suspend

2016-08-03 Thread Wenyou Yang
control is by setting the SUSPEND_A/B/C fields of SFR_OHCIICR(OHCI Interrupt Configuration Register) in the SFR while OHCI USB suspend. This setting operation must be done before the USB clock disabled, clear them after the USB clock enabled. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Re

[PATCH v2] net: phy: micrel: Add specific suspend

2016-08-05 Thread Wenyou Yang
Disable all interrupts when suspend, they will be enabled when resume. Otherwise, the suspend/resume process will be blocked occasionally. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Acked-by: Nicolas Ferre <nicolas.fe...@atmel.com> --- Changes in v2: - Use fairly ge

[PATCH v4 3/7] power: act8945a_charger: Add status change update support

2016-08-08 Thread Wenyou Yang
temperature goes out of or into the valid range. - the PRECHARGE time-out occurs. - the total charge time-out occurs. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v4: - Use "interrupts" property, instead of "active-semi,lbo-gpios" for irq. Changes

[PATCH v4 5/7] power: act8945a_charger: Add capacity level property

2016-08-08 Thread Wenyou Yang
Add the power supply capacity level property, it corresponds to POWER_SUPPLY_CAPACITY_LEVEL_*. It also utilizes the precision voltage detector function module to catch the low battery voltage. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v4: - Change d

[PATCH v4 2/7] power: act8945a_charger: Improve

2016-08-08 Thread Wenyou Yang
When get the property, first check the charger state machine, then check the status bit to decide what value is assigned to the corresponding property. Retain the SUSCHG bit of REG 0x71 when configure the timers to avoid losting the charger suspending info after boot. Signed-off-by: Wenyou Yang

[PATCH v4 7/7] doc: bindings: act8945a-charger: Update properties

2016-08-08 Thread Wenyou Yang
Due the driver improvements, update the properties, - Remove "active-semi,check-battery-temperature" property. - Add the properties, "active-semi,irq_gpio" and "active-semi,lbo-gpios". Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v4:

[PATCH v4 6/7] power: act8945a_charger: Add max current property

2016-08-08 Thread Wenyou Yang
Add the power supply's current max property, POWER_SUPPLY_PROP_CURRENT_MAX. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v4: - Fix wrong gpio assignment for chglev_pin. Changes in v3: None Changes in v2: None drivers/power/act8945a_charger.

[PATCH v4 4/7] power: act8945a_charger: Fix the power supply type

2016-08-08 Thread Wenyou Yang
The power supply type property is varying as the external power supply changes. It is not a constant. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/power/act8945a_charger.

[PATCH v4 0/7] power: act8945a_charger: Improvements

2016-08-08 Thread Wenyou Yang
erty. Changes in v3: - Remove unneeded semicolon to fix semicolon.cocci warning. Changes in v2: - Add missing ret declaration. Wenyou Yang (7): power: act8945a_charger: Remove "battery_temperature" power: act8945a_charger: Improve power: act8945a_charger: Add status change update

[PATCH v4 1/7] power: act8945a_charger: Remove "battery_temperature"

2016-08-08 Thread Wenyou Yang
Remove "battery_temperature" member, it is redundant, it is the hardware's responsibility to handle TH pin properly. It is unnecessary to use the dt property to check if there is a battery temperature monitor or not. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Cha

[PATCH v6 3/6] ARM: at91: pm: Add ULP1 mode support

2016-08-08 Thread Wenyou Yang
is asserted, the embedded 12MHz RC oscillator restarts automatically. The ULP1 (Ultra Low-power mode 1) is introduced by SAMA5D2. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v6: - Add specific sama5d2_pm_init() for SAMA5D2, which supports ULP1. It is

[PATCH v6 5/6] Documentation: atmel-pmc: Add DT bindings for fast startup

2016-08-08 Thread Wenyou Yang
Add DT bindings to configurate the PMC_FSMR and PMC_FSPR registers to trigger a fast restart signal to PMC. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Acked-by: Rob Herring <robh...@kernel.org> --- Changes in v6: None Changes in v5: - due to the DT property expression ch

[PATCH v6 4/6] ARM: at91: pm: Configure PMC fast startup signals

2016-08-08 Thread Wenyou Yang
mode should be configured via the DT. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v6: None Changes in v5: - to improve the scalability, rework the DT expression part, use the child nodes to describe the wake-up input and its active level. Changes in v4: None C

[PATCH v6 2/6] ARM: at91: pm: Create a procedure for the ULP0 mode

2016-08-08 Thread Wenyou Yang
To make the code more legible and prepare to add the ULP1 mode support in the future, create a separate procedure for the ULP0 mode. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Acked-by: Alexandre Belloni <alexandre.bell...@free-electrons.com> --- Changes in v6: - Add

[PATCH v6 1/6] ARM: at91: sama5: Add a new DT_MACHINE for SAMA5D2

2016-08-08 Thread Wenyou Yang
To support the SAMA5D2 specific pm_init function, add a new DT_MACHINE for SAMA5D2. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-at91/sama5.

[PATCH v6 6/6] ARM: at91/dt: sama5d2_xplained: Add fast_restart node

2016-08-08 Thread Wenyou Yang
Add fast_restart node as a pmc's child node to support fast startup signal configuration. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v6: - Add a new patch to support a new DT_MACHINE for SAMA5D2. Changes in v5: - due to the DT property expression change, update th

[PATCH v6 0/6] ARM: at91: pm: add ULP1 mode support

2016-08-08 Thread Wenyou Yang
the value property, instead of bool property for high or low triggered. - change the property name and property description. Wenyou Yang (6): ARM: at91: sama5: Add a new DT_MACHINE for SAMA5D2 ARM: at91: pm: Create a procedure for the ULP0 mode ARM: at91: pm: Add ULP1 mode support ARM: at91

[PATCH v1] net: phy: micrel: Add specific suspend

2016-08-03 Thread Wenyou Yang
Disable all interrupts when suspend, they will be enabled when resume. Otherwise, the suspend/resume process will be blocked occasionally. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Acked-by: Nicolas Ferre <nicolas.fe...@atmel.com> --- drivers/net/phy/m

[PATCH] ARM: defconfig/at91: Add Bosch M_CAN driver

2016-07-04 Thread Wenyou Yang
Add CONFIG_CAN_M_CAN=y option to enable Bosch M_CAN device driver. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/configs/sama5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig index 9

[PATCH v5 1/7] power: act8945a_charger: Remove "battery_temperature"

2016-08-16 Thread Wenyou Yang
Remove "battery_temperature" member, it is redundant, it is the hardware's responsibility to handle TH pin properly. It is unnecessary to use the dt property to check if there is a battery temperature monitor or not. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Cha

[PATCH v5 0/7] power: act8945a_charger: Improvements

2016-08-16 Thread Wenyou Yang
or using "interrupts" property. Changes in v3: - Remove unneeded semicolon to fix semicolon.cocci warning. Changes in v2: - Add missing ret declaration. Wenyou Yang (7): power: act8945a_charger: Remove "battery_temperature" power: act8945a_charger: Improve power

[PATCH v5 6/7] power: act8945a_charger: Add max current property

2016-08-16 Thread Wenyou Yang
Add the power supply's current max property, POWER_SUPPLY_PROP_CURRENT_MAX. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v5: None Changes in v4: - Fix wrong gpio assignment for chglev_pin. Changes in v3: None Changes in v2: None drivers/power/supply/act8945a_cha

[PATCH v5 7/7] doc: bindings: act8945a-charger: Update properties

2016-08-16 Thread Wenyou Yang
Due the driver improvements, update the properties, - Remove "active-semi,check-battery-temperature" property. - Add the properties, "active-semi,irq_gpio" and "active-semi,lbo-gpios". Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Acked-by: Rob He

[PATCH v5 5/7] power: act8945a_charger: Add capacity level property

2016-08-16 Thread Wenyou Yang
Add the power supply capacity level property, it corresponds to POWER_SUPPLY_CAPACITY_LEVEL_*. It also utilizes the precision voltage detector function module to catch the low battery voltage. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v5: None Changes in v4: -

[PATCH v5 3/7] power: act8945a_charger: Add status change update support

2016-08-16 Thread Wenyou Yang
temperature goes out of or into the valid range. - the PRECHARGE time-out occurs. - the total charge time-out occurs. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v5: None Changes in v4: - Use "interrupts" property, instead of "active-semi,lbo-gpios"

[PATCH v5 4/7] power: act8945a_charger: Fix the power supply type

2016-08-16 Thread Wenyou Yang
The power supply type property is varying as the external power supply changes. It is not a constant. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/power/supply/act8945a_charger.

[PATCH v5 2/7] power: act8945a_charger: Improve

2016-08-16 Thread Wenyou Yang
When get the property, first check the charger state machine, then check the status bit to decide what value is assigned to the corresponding property. Retain the SUSCHG bit of REG 0x71 when configure the timers to avoid losting the charger suspending info after boot. Signed-off-by: Wenyou Yang

[PATCH v6 4/7] power: act8945a_charger: Fix the power supply type

2016-08-18 Thread Wenyou Yang
The power supply type property is varying as the external power supply changes. It is not a constant. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/power/

[PATCH v6 1/7] power: act8945a_charger: Remove "battery_temperature"

2016-08-18 Thread Wenyou Yang
Remove "battery_temperature" member, it is redundant, it is the hardware's responsibility to handle TH pin properly. It is unnecessary to use the dt property to check if there is a battery temperature monitor or not. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Cha

[PATCH v6 5/7] power: act8945a_charger: Add capacity level property

2016-08-18 Thread Wenyou Yang
Add the power supply capacity level property, it corresponds to POWER_SUPPLY_CAPACITY_LEVEL_*. It also utilizes the precision voltage detector function module to catch the low battery voltage. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v6: - For 'lbo-gpios', use

[PATCH v6 2/7] power: act8945a_charger: Improve

2016-08-18 Thread Wenyou Yang
When get the property, first check the charger state machine, then check the status bit to decide what value is assigned to the corresponding property. Retain the SUSCHG bit of REG 0x71 when configure the timers to avoid losting the charger suspending info after boot. Signed-off-by: Wenyou Yang

<    1   2   3   4   5   6   7   8   9   10   >