_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
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-
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.
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
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
/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
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
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
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
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
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
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 ---
/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
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
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
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>
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:
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
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
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.
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
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
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
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
_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
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
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.
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
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
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").
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.
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
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
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.
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:
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>
---
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
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
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
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 +++
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
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
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
.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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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 -
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
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
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
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
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
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
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
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
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
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
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:
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.
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.
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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:
-
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"
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.
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
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/
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
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
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
401 - 500 of 1274 matches
Mail list logo