[PATCH v1] ARM: at91/dt: add dts file for sama5d36ek CMP board

2016-10-25 Thread Wenyou Yang
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

[PATCH v1] ARM: at91/dt: add dts file for sama5d36ek CMP board

2016-10-25 Thread Wenyou Yang
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

[PATCH v1] usb: ohci-at91: Set RemoteWakeupConnected bit explicitly.

2016-09-29 Thread Wenyou Yang
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

[PATCH v1] usb: ohci-at91: Set RemoteWakeupConnected bit explicitly.

2016-09-29 Thread Wenyou Yang
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

[PATCH v2] usb: ohci-at91: Use descriptor-based gpio APIs

2016-09-29 Thread Wenyou Yang
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

[PATCH v2] usb: ohci-at91: Use descriptor-based gpio APIs

2016-09-29 Thread Wenyou Yang
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

[RESEND PATCH v1] usb: ohci-at91: Use descriptor-based gpio APIs

2016-09-28 Thread Wenyou Yang
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

[RESEND PATCH v1] usb: ohci-at91: Use descriptor-based gpio APIs

2016-09-28 Thread Wenyou Yang
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

[PATCH v1] usb: ohci-at91: Use descriptor-based gpio APIs

2016-09-28 Thread Wenyou Yang
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

[PATCH v1] usb: ohci-at91: Use descriptor-based gpio APIs

2016-09-28 Thread Wenyou Yang
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

[PATCH v1] usb: ohci-at91: Use descriptor-based gpio APIs

2016-09-28 Thread Wenyou Yang
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

[PATCH v1] usb: ohci-at91: Use descriptor-based gpio APIs

2016-09-28 Thread Wenyou Yang
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

[PATCH v9 4/4] ARM: at91/dt: sama5d2_xplained: Add act8945a-charger node.

2016-09-01 Thread Wenyou Yang
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

[PATCH v9 3/4] doc: bindings: mfd: act8945a: Update the example

2016-09-01 Thread Wenyou Yang
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

[PATCH v9 4/4] ARM: at91/dt: sama5d2_xplained: Add act8945a-charger node.

2016-09-01 Thread Wenyou Yang
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

[PATCH v9 3/4] doc: bindings: mfd: act8945a: Update the example

2016-09-01 Thread Wenyou Yang
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

[PATCH v9 2/4] power: act8945a_charger: Add max current property

2016-09-01 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 v9: - For "chglev-gpios", use devm_gpiod_get_optional(), instead of devm_gpiod_get(), for simper and more reasonable

[PATCH v9 2/4] power: act8945a_charger: Add max current property

2016-09-01 Thread Wenyou Yang
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

[PATCH v9 1/4] power: act8945a_charger: Add capacity level property

2016-09-01 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 v9: - For "lbo-

[PATCH v9 1/4] power: act8945a_charger: Add capacity level property

2016-09-01 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 --- Changes in v9: - For "lbo-gpios", use devm_gpiod_ge

[PATCH v9 0/4] power: act8945a_charger: Improvements

2016-09-01 Thread Wenyou Yang
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

[PATCH v9 0/4] power: act8945a_charger: Improvements

2016-09-01 Thread Wenyou Yang
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

[PATCH v8 11/11] ARM: at91/dt: sama5d2_xplained: Add act8945a-charger node.

2016-08-25 Thread Wenyou Yang
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

[PATCH v8 11/11] ARM: at91/dt: sama5d2_xplained: Add act8945a-charger node.

2016-08-25 Thread Wenyou Yang
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

[PATCH v8 10/11] doc: bindings: power: act8945a-charger: Update properties.

2016-08-25 Thread Wenyou Yang
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

[PATCH v8 09/11] doc: bindings: mfd: act8945a: Update the example

2016-08-25 Thread Wenyou Yang
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

[PATCH v8 10/11] doc: bindings: power: act8945a-charger: Update properties.

2016-08-25 Thread Wenyou Yang
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

[PATCH v8 09/11] doc: bindings: mfd: act8945a: Update the example

2016-08-25 Thread Wenyou Yang
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

[PATCH v8 07/11] power: act8945a_charger: Add capacity level property

2016-08-25 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 v8: - As the act8945a_c

[PATCH v8 07/11] power: act8945a_charger: Add capacity level property

2016-08-25 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 --- Changes in v8: - As the act8945a_charger is regarded as a sub-device

[PATCH v8 08/11] power: act8945a_charger: Add max current property

2016-08-25 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 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

[PATCH v8 06/11] power: act8945a_charger: Fix the power supply type

2016-08-25 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 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

[PATCH v8 06/11] power: act8945a_charger: Fix the power supply type

2016-08-25 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 --- 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

[PATCH v8 08/11] power: act8945a_charger: Add max current property

2016-08-25 Thread Wenyou Yang
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

[PATCH v8 03/11] power: act8945a_charger: Remove "battery_temperature"

2016-08-25 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 v8 03/11] power: act8945a_charger: Remove "battery_temperature"

2016-08-25 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 --- Changes in v8: None Changes in

[PATCH v8 05/11] power: act8945a_charger: Add status change update support

2016-08-25 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 v8: - Achieve "interrupts" property from its own node directly. Changes in v7: - Fix

[PATCH v8 05/11] power: act8945a_charger: Add status change update support

2016-08-25 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 --- Changes in v8: - Achieve "interrupts" property from its own node directly. Changes in v7: - Fix the wrong using devm_r

[PATCH v8 04/11] power: act8945a_charger: Improve

2016-08-25 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 v8 04/11] power: act8945a_charger: Improve

2016-08-25 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 v8 00/11] power: act8945a_charger: Improvements

2016-08-25 Thread 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

[PATCH v8 00/11] power: act8945a_charger: Improvements

2016-08-25 Thread 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

[PATCH v8 02/11] power: act8945a_charger: Achieve properties from its node

2016-08-25 Thread Wenyou Yang
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

[PATCH v8 01/11] mfd: act8945a: Add .of_compatible for act8945a-charger

2016-08-25 Thread Wenyou Yang
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

[PATCH v8 01/11] mfd: act8945a: Add .of_compatible for act8945a-charger

2016-08-25 Thread Wenyou Yang
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

[PATCH v8 02/11] power: act8945a_charger: Achieve properties from its node

2016-08-25 Thread Wenyou Yang
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

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

2016-08-22 Thread Wenyou Yang
. 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

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

2016-08-22 Thread Wenyou Yang
. 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

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

2016-08-22 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 v7 7/7] doc: bindings: act8945a-charger: Update properties

2016-08-22 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 Acked-by: Rob Herring --- Changes in v7: No

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

2016-08-22 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 v7: - For "chglev-gpios", use gpiod_get() to fix devm_gpiod_get() wrong use with parent device as *dev argument. - Add the hand

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

2016-08-22 Thread Wenyou Yang
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

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

2016-08-22 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 v7: - For "lbo-

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

2016-08-22 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 --- Changes in v7: - For "lbo-gpios", use gpiod_ge

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

2016-08-22 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 v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers

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

2016-08-22 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 --- 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

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

2016-08-22 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 v7: - Fix the wrong using devm_request_irq() with with parent device as *dev. Changes in v6: - Add .

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

2016-08-22 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 --- Changes in v7: - Fix the wrong using devm_request_irq() with with parent device as *dev. Changes in v6: - Add .remove callback function. - Fix

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

2016-08-22 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 v7 2/7] power: act8945a_charger: Improve

2016-08-22 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 v7 1/7] power: act8945a_charger: Remove "battery_temperature"

2016-08-22 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> --- Chang

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

2016-08-22 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 --- Changes in v7: - Fix the missing neg

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

2016-08-22 Thread Wenyou Yang
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

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

2016-08-22 Thread Wenyou Yang
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

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

2016-08-21 Thread Wenyou Yang
. 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

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

2016-08-21 Thread Wenyou Yang
. 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

[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 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 --- 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

[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 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 --- Changes in v6: None Changes in v5: No

[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 --- Changes in v6: - For 'lbo-gpios', use gpiod API instead of old gpio

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

2016-08-18 Thread Wenyou Yang
. 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

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

2016-08-18 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 v6 0/7] power: act8945a_charger: Improvements

2016-08-18 Thread Wenyou Yang
. 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

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

2016-08-18 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 Acked-by: Rob Herring --- Changes in v6: No

[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

[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

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

2016-08-18 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 v6: - Add .remove callback function. - Fix the 'dev' argument of devm_request_irq() to pdev->dev.parent.

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

2016-08-18 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 --- Changes in v6: - Add .remove callback function. - Fix the 'dev' argument of devm_request_irq() to pdev->dev.parent. Changes in v5: None Chan

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

2016-08-18 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 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

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

2016-08-18 Thread Wenyou Yang
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

[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 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 --- 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

[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 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 Acked-by: Rob Herring --- Changes in v5: - Ad

[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 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 --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/power/supply/act8945a_charger.c | 48

[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 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 --- Changes in v5: None Changes in v4: - Change devname

[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 --- Changes in v5: None Changes in v4: - Use "interrupts" property, instead of "active-semi,lbo-gpios" for irq. Changes in v3

[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 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 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 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 --- Changes in v5: None Changes in v4: No

[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 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 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 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 --- 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

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