e USB host
isn't enabled.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
---
arch/arm/boot/dts/sama5d36ek_cmp.dts | 51
arch/arm/boot/dts/sama5d3xcm_cmp.dtsi | 166
arch/arm/boot/dts/sama5d3xmb_cmp.dtsi | 230 ++
3 fi
e USB host
isn't enabled.
Signed-off-by: Wenyou Yang
---
arch/arm/boot/dts/sama5d36ek_cmp.dts | 51
arch/arm/boot/dts/sama5d3xcm_cmp.dtsi | 166
arch/arm/boot/dts/sama5d3xmb_cmp.dtsi | 230 ++
3 files changed, 447 insertions(+)
c
The reset value of RWC is 0, set RemoteWakeupConnected bit explicitly
before calling ohci_run, it also fixes the issue that the mass
storage stick connected wasn't suspended when the system suspend.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
---
drivers/usb/host/ohci-at91
The reset value of RWC is 0, set RemoteWakeupConnected bit explicitly
before calling ohci_run, it also fixes the issue that the mass
storage stick connected wasn't suspended when the system suspend.
Signed-off-by: Wenyou Yang
---
drivers/usb/host/ohci-at91.c | 9 ++---
1 file changed, 6
Use the descriptor-based interface to manipulate GPIOs, instead of
the legacy integer-based interface.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
---
Changes in v2:
- Retain the vbus_pin_active_low[] member and its manipulations.
drivers/usb/host/ohci-at91.c
Use the descriptor-based interface to manipulate GPIOs, instead of
the legacy integer-based interface.
Signed-off-by: Wenyou Yang
---
Changes in v2:
- Retain the vbus_pin_active_low[] member and its manipulations.
drivers/usb/host/ohci-at91.c | 121
Use the descriptor-based interface to manipulate GPIOs, instead of
the legacy integer-based interface.
In the meanwhile, remove unneeded vbus_pin_active_low[...] member.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
---
drivers/usb/host/ohci-at91.c
Use the descriptor-based interface to manipulate GPIOs, instead of
the legacy integer-based interface.
In the meanwhile, remove unneeded vbus_pin_active_low[...] member.
Signed-off-by: Wenyou Yang
---
drivers/usb/host/ohci-at91.c | 120 ++-
1 file
Use the descriptor-based interface to manipulate GPIOs, instead of
the legacy integer-based interface.
In the meanwhile, remove unneeded vbus_pin_active_low[...] member.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
---
drivers/usb/host/ohci-at91.c
Use the descriptor-based interface to manipulate GPIOs, instead of
the legacy integer-based interface.
In the meanwhile, remove unneeded vbus_pin_active_low[...] member.
Signed-off-by: Wenyou Yang
---
drivers/usb/host/ohci-at91.c | 120 ++-
1 file
Use the descriptor-based interface to manipulate GPIOs, instead of
the legacy integer-based interface.
In the meanwhile, remove unneeded vbus_pin_active_low[...] member.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
---
drivers/usb/host/ohci-at91.c
Use the descriptor-based interface to manipulate GPIOs, instead of
the legacy integer-based interface.
In the meanwhile, remove unneeded vbus_pin_active_low[...] member.
Signed-off-by: Wenyou Yang
---
drivers/usb/host/ohci-at91.c | 120 ++-
1 file
Add act8945a-charger as a sub-device node.
Use the "interrupts" property, instead of the "active-semi,irq_gpios"
to denote the act8945a chager's irq.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
---
Changes in v9:
- Not include seven patches which have been q
Since the act8945a-charger is regarded as a sub-device and it using
"interrupts" property, update the examples section.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
---
Changes in v9: None
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v4: None
Add act8945a-charger as a sub-device node.
Use the "interrupts" property, instead of the "active-semi,irq_gpios"
to denote the act8945a chager's irq.
Signed-off-by: Wenyou Yang
---
Changes in v9:
- Not include seven patches which have been queued or applied.
Changes
Since the act8945a-charger is regarded as a sub-device and it using
"interrupts" property, update the examples section.
Signed-off-by: Wenyou Yang
---
Changes in v9: None
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v4: None
Documentation/devicetree/bi
Add the power supply's current max property,
POWER_SUPPLY_PROP_CURRENT_MAX.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
---
Changes in v9:
- For "chglev-gpios", use devm_gpiod_get_optional(), instead of
devm_gpiod_get(), for simper and more reasonable
Add the power supply's current max property,
POWER_SUPPLY_PROP_CURRENT_MAX.
Signed-off-by: Wenyou Yang
---
Changes in v9:
- For "chglev-gpios", use devm_gpiod_get_optional(), instead of
devm_gpiod_get(), for simper and more reasonable.
Changes in v8:
- As the act8945a_charger i
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 v9:
- For "lbo-
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
---
Changes in v9:
- For "lbo-gpios", use devm_gpiod_ge
t;chglev-gpio".
- Remove unneeded semicolon.
Changes in v6:
- For "lbo-gpios", use gpiod API instead of old gpio API to handle.
- For "chglev-gpios", use gpiod API instead of old gpio API to handle.
Changes in v4:
- Change devname of devm_request_irq() from "lbo-detect
t;chglev-gpio".
- Remove unneeded semicolon.
Changes in v6:
- For "lbo-gpios", use gpiod API instead of old gpio API to handle.
- For "chglev-gpios", use gpiod API instead of old gpio API to handle.
Changes in v4:
- Change devname of devm_request_irq() from "lbo-detect
Add act8945a-charger as a sub-device node.
Use the "interrupts" property, instead of the "active-semi,irq_gpios"
to denote the act8945a chager's irq.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
---
Changes in v8:
- Add 4 new patches: 1/11, 2/11, 9/11, and 1
Add act8945a-charger as a sub-device node.
Use the "interrupts" property, instead of the "active-semi,irq_gpios"
to denote the act8945a chager's irq.
Signed-off-by: Wenyou Yang
---
Changes in v8:
- Add 4 new patches: 1/11, 2/11, 9/11, and 11/11.
Changes in v7: None
Changes
ible and examples.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
Acked-by: Rob Herring <r...@kernel.org>
---
Changes in v8:
- Since the act8945a-charger is regarded as a sub-device, update
the compatible decription and examples.
Changes in v7: None
Changes in v6: None
Changes
Since the act8945a-charger is regarded as a sub-device and it using
"interrupts" property, update the examples section.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
---
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Cha
ible and examples.
Signed-off-by: Wenyou Yang
Acked-by: Rob Herring
---
Changes in v8:
- Since the act8945a-charger is regarded as a sub-device, update
the compatible decription and examples.
Changes in v7: None
Changes in v6: None
Changes in v5:
- Add Acked-by tag.
Changes in v4:
- Up
Since the act8945a-charger is regarded as a sub-device and it using
"interrupts" property, update the examples section.
Signed-off-by: Wenyou Yang
---
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes i
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 v8:
- As the act8945a_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
---
Changes in v8:
- As the act8945a_charger is regarded as a sub-device
Add the power supply's current max property,
POWER_SUPPLY_PROP_CURRENT_MAX.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
---
Changes in v8:
- As the act8945a_charger is regarded as a sub-device, all
properties can be achieved from its own device node,
use devm_gpiod_get() pr
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 v8: None
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2
The power supply type property is varying as the external power
supply changes. It is not a constant.
Signed-off-by: Wenyou Yang
---
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/power/supply
Add the power supply's current max property,
POWER_SUPPLY_PROP_CURRENT_MAX.
Signed-off-by: Wenyou Yang
---
Changes in v8:
- As the act8945a_charger is regarded as a sub-device, all
properties can be achieved from its own device node,
use devm_gpiod_get() properly as well to get "c
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
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
---
Changes in v8: None
Changes in
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 v8:
- Achieve "interrupts" property from its own node directly.
Changes in v7:
- Fix
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
---
Changes in v8:
- Achieve "interrupts" property from its own node directly.
Changes in v7:
- Fix the wrong using devm_r
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
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
n.
- Update the doc/binding for using "interrupts" property.
Changes in v3:
- Remove unneeded semicolon to fix semicolon.cocci warning.
Changes in v2:
- Add missing ret declaration.
Wenyou Yang (11):
mfd: act8945a: Add .of_compatible for act8945a-charger
power: act8945a_charger
n.
- Update the doc/binding for using "interrupts" property.
Changes in v3:
- Remove unneeded semicolon to fix semicolon.cocci warning.
Changes in v2:
- Add missing ret declaration.
Wenyou Yang (11):
mfd: act8945a: Add .of_compatible for act8945a-charger
power: act8945a_charger
Since the act8945a_charger is regarded as a sub-device, all properties will
be assigned to its own device node. All properties can be achieved from its
own node, instead of from its parent device.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
---
Changes in v8: None
Changes in v7
To regard the act8945a-charger as a sub-device, add .of_compatible for
act8945a-charger cell.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
---
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2
To regard the act8945a-charger as a sub-device, add .of_compatible for
act8945a-charger cell.
Signed-off-by: Wenyou Yang
---
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/mfd/act8945a.c | 1
Since the act8945a_charger is regarded as a sub-device, all properties will
be assigned to its own device node. All properties can be achieved from its
own node, instead of from its parent device.
Signed-off-by: Wenyou Yang
---
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes
.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
Reviewed-by: Alexandre Belloni <alexandre.bell...@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.fe...@atmel.com>
---
Changes in v7:
- Rename ohci_at91_port_ctrl() to ohci_at91_port_suspend().
- Add check valid_port(wInd
.
Signed-off-by: Wenyou Yang
Reviewed-by: Alexandre Belloni
Acked-by: Nicolas Ferre
---
Changes in v7:
- Rename ohci_at91_port_ctrl() to ohci_at91_port_suspend().
- Add check valid_port(wIndex) before invoke
ohci_at91_port_suspend().
- Call ohci_at91_port_suspend() directly on suspend/resume
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
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
Acked-by: Rob Herring
---
Changes in v7: No
Add the power supply's current max property,
POWER_SUPPLY_PROP_CURRENT_MAX.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
---
Changes in v7:
- For "chglev-gpios", use gpiod_get() to fix devm_gpiod_get() wrong use
with parent device as *dev argument.
- Add the hand
Add the power supply's current max property,
POWER_SUPPLY_PROP_CURRENT_MAX.
Signed-off-by: Wenyou Yang
---
Changes in v7:
- For "chglev-gpios", use gpiod_get() to fix devm_gpiod_get() wrong use
with parent device as *dev argument.
- Add the handle -EPROBE_DEFER returned from
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 v7:
- For "lbo-
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
---
Changes in v7:
- For "lbo-gpios", use gpiod_ge
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 v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers
The power supply type property is varying as the external power
supply changes. It is not a constant.
Signed-off-by: Wenyou Yang
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/power/supply/act8945a_charger.c
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 v7:
- Fix the wrong using devm_request_irq() with with parent
device as *dev.
Changes in v6:
- Add .
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
---
Changes in v7:
- Fix the wrong using devm_request_irq() with with parent
device as *dev.
Changes in v6:
- Add .remove callback function.
- Fix
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
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>
---
Chang
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
---
Changes in v7:
- Fix the missing neg
ot;lbo-detect" to
"act8945a, lbo-detect".
- Fix wrong gpio assignment for chglev_pin.
- Update the doc/binding for using "interrupts" property.
Changes in v3:
- Remove unneeded semicolon to fix semicolon.cocci warning.
Changes in v2:
- Add missing ret declaration.
We
ot;lbo-detect" to
"act8945a, lbo-detect".
- Fix wrong gpio assignment for chglev_pin.
- Update the doc/binding for using "interrupts" property.
Changes in v3:
- Remove unneeded semicolon to fix semicolon.cocci warning.
Changes in v2:
- Add missing ret declaration.
We
.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
Reviewed-by: Alexandre Belloni <alexandre.bell...@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.fe...@atmel.com>
---
Changes in v6:
- Set all the suspend bits for all the ports in the OHCIICR register
at once, inste
.
Signed-off-by: Wenyou Yang
Reviewed-by: Alexandre Belloni
Acked-by: Nicolas Ferre
---
Changes in v6:
- Set all the suspend bits for all the ports in the OHCIICR register
at once, instead of port by port.
- Amend the commit log for clearer.
Changes in v5:
- Use the USB_PORT_FEAT_SUSPEND
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/
The power supply type property is varying as the external power
supply changes. It is not a constant.
Signed-off-by: Wenyou Yang
---
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/power/supply/act8945a_charger.c | 48
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
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
---
Changes in v6: None
Changes in v5: No
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
---
Changes in v6:
- For 'lbo-gpios', use gpiod API instead of old gpio
.
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 upda
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
.
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 upda
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
Acked-by: Rob Herring
---
Changes in v6: No
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
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
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 v6:
- Add .remove callback function.
- Fix the 'dev' argument of devm_request_irq() to pdev->dev.parent.
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
---
Changes in v6:
- Add .remove callback function.
- Fix the 'dev' argument of devm_request_irq() to pdev->dev.parent.
Changes in v5: None
Chan
Add the power supply's current max property,
POWER_SUPPLY_PROP_CURRENT_MAX.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>
---
Changes in v6:
- For 'chglev-gpios', use gpiod API instead of old gpio API to handle.
Changes in v5: None
Changes in v4:
- Fix wrong gpio assi
Add the power supply's current max property,
POWER_SUPPLY_PROP_CURRENT_MAX.
Signed-off-by: Wenyou Yang
---
Changes in v6:
- For 'chglev-gpios', use gpiod API instead of old gpio API to handle.
Changes in v5: None
Changes in v4:
- Fix wrong gpio assignment for chglev_pin.
Changes in v3: None
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
Add the power supply's current max property,
POWER_SUPPLY_PROP_CURRENT_MAX.
Signed-off-by: Wenyou Yang
---
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_charger.c | 79
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
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
Acked-by: Rob Herring
---
Changes in v5:
- Ad
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.
The power supply type property is varying as the external power
supply changes. It is not a constant.
Signed-off-by: Wenyou Yang
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/power/supply/act8945a_charger.c | 48
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"
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
---
Changes in v5: None
Changes in v4:
- Change devname
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
---
Changes in v5: None
Changes in v4:
- Use "interrupts" property, instead of "active-semi,lbo-gpios"
for irq.
Changes in v3
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
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
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
---
Changes in v5: None
Changes in v4: No
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
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 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
Add fast_restart node as a pmc's child node to support fast startup
signal configuration.
Signed-off-by: Wenyou Yang
---
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 the fast restart
node's
201 - 300 of 1274 matches
Mail list logo