1. 08 6月, 2017 2 次提交
  2. 15 5月, 2017 1 次提交
  3. 01 5月, 2017 2 次提交
  4. 14 4月, 2017 3 次提交
    • D
      power: supply: New driver for LEGO MINDSTORMS EV3 battery · 53db8858
      David Lechner 提交于
      This adds a new driver for the LEGO MINDSTORMS EV3 battery. The EV3 is
      an embedded ARM device that can use 6 AA batteries or a special rechargeable
      Li-ion battery pack. The rechargeable battery pack presses a special key
      switch in the battery compartment to indicate that it is present.
      
      The EV3 is only capable of monitoring battery voltage and current. The
      charging circuit is built into the rechargeable battery pack and there is
      no way to communicate with is, so we can't provide any information about
      charging status.
      
      When not using the rechargeable battery pack, it is most common to use
      alkaline batteries to power the device, but it is also common for people to
      use rechargeable NiMH batteries. Since there is not a way to automatically
      differentiate between these, the technology property is made writable.
      Signed-off-by: NDavid Lechner <david@lechnology.com>
      Signed-off-by: NSebastian Reichel <sre@kernel.org>
      53db8858
    • T
      power: supply: cpcap-charger: Add minimal CPCAP PMIC battery charger · 0c9888e3
      Tony Lindgren 提交于
      The custom CPCAP PMIC used on Motorola phones such as Droid 4 has a
      USB battery charger. It can optionally also have a companion chip that
      is used for wireless charging.
      
      The charger on CPCAP also can feed VBUS for the USB host mode. This
      can be handled by the existing kernel phy_companion interface.
      
      Cc: devicetree@vger.kernel.org
      Cc: Marcel Partap <mpartap@gmx.net>
      Cc: Michael Scott <michael.scott@linaro.org>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Acked-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NSebastian Reichel <sre@kernel.org>
      0c9888e3
    • H
      power: supply: bq24190_charger: Use extcon to determine ilimit, 5v boost · da26580f
      Hans de Goede 提交于
      Add support for monitoring an extcon device with USB SDP/CDP/DCP and HOST
      cables and adjust ilimit and enable/disable the 5V boost converter
      accordingly. This is necessary on systems where the PSEL pin is hardwired
      high and ILIM needs to be set by software based on the detected charger
      type, as well as on systems where the 5V boost converter is used, as
      that always needs to be enabled from software.
      
      Cc: Liam Breck <kernel@networkimprov.net>
      Cc: Tony Lindgren <tony@atomide.com>
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NSebastian Reichel <sre@kernel.org>
      da26580f
  5. 30 1月, 2017 1 次提交
  6. 19 1月, 2017 1 次提交
    • A
      power: supply: qcom_smbb: add regulator dependency · 51962a35
      Arnd Bergmann 提交于
      The added regulator dependency in the smbb driver causes build errors
      when regulators are disabled, e.g. in randconfig build testing:
      
      drivers/power/supply/qcom_smbb.o: In function `smbb_chg_otg_is_enabled':
      qcom_smbb.c:(.text.smbb_chg_otg_is_enabled+0x18): undefined reference to `rdev_get_drvdata'
      drivers/power/supply/qcom_smbb.o: In function `smbb_charger_probe':
      qcom_smbb.c:(.text.smbb_charger_probe+0x410): undefined reference to `devm_regulator_register'
      
      This adds a Kconfig dependency to avoid the link error.
      
      Fixes: 61274eff ("power: supply: qcom_smbb: Add otg regulator for control of vbus")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NSebastian Reichel <sre@kernel.org>
      51962a35
  7. 17 1月, 2017 1 次提交
    • A
      power: supply: Add support for MAX14656 USB charger detector · 9d60595a
      Alexander Kurz 提交于
      The MAX14656 USB charger detector, also known as "AL32" is used to detect
      the presence and capabilities of attached USB chargers. The device is
      attached via I2C plus one interrupt line to signalize events.
      
      The device can be found in LG smartphones like LS665 and LS770, compatible
      devices are present in 4th/5th generation Amazon Kindle readers referenced
      in source code packages as "Maxim AL32".
      
      The initial version of this driver has been extracted from LG source code
      package LGLS665_Android_Lollipop_LS665ZV3, enriched with information from
      the Kindle_src_4.1.3 source code package and adapted to the current power
      class sysfs interface. Non-Standard Apple chargers which the device may
      detect are mapped to the USB Battery Charging Specification Revision 1.2
      class USB_DCP.
      Signed-off-by: NAlexander Kurz <akurz@blala.de>
      Signed-off-by: NSebastian Reichel <sre@kernel.org>
      9d60595a
  8. 06 1月, 2017 1 次提交
  9. 05 1月, 2017 1 次提交
  10. 11 8月, 2016 1 次提交
  11. 30 6月, 2016 1 次提交
  12. 21 6月, 2016 1 次提交
  13. 25 2月, 2016 1 次提交
  14. 08 12月, 2015 1 次提交
    • K
      power: Fix unmet dependency on POWER_SUPPLY by POWER_RESET by uncoupling them · f96576bd
      Krzysztof Kozlowski 提交于
      Currently the reset/power off handlers (POWER_RESET) and Adaptive Voltage
      Scaling class (POWER_AVS) are not built when POWER_SUPPLY is disabled.
      The POWER_RESET is also not visible in drivers main section of config.
      
      However they do not really depend on power supply so they can be built
      always. The objects for power supply drivers already depend on
      particular Kconfig symbols so there is no need for any changes in
      drivers/power/Makefile.
      
      This allows selecting POWER_RESET from main drivers config section and
      fixes following build warning (encountered on ARM exynos defconfig when
      POWER_SUPPLY is disabled manually):
      
      warning: (ARCH_HISI && ARCH_INTEGRATOR && ARCH_EXYNOS && ARCH_VEXPRESS && REALVIEW_DT) selects POWER_RESET which has unmet direct dependencies (POWER_SUPPLY)
      warning: (ARCH_EXYNOS) selects POWER_RESET_SYSCON which has unmet direct dependencies (POWER_SUPPLY && POWER_RESET && OF)
      warning: (ARCH_EXYNOS) selects POWER_RESET_SYSCON_POWEROFF which has unmet direct dependencies (POWER_SUPPLY && POWER_RESET && OF)
      Reported-by: NPavel Fedin <p.fedin@samsung.com>
      Signed-off-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com>
      Signed-off-by: NSebastian Reichel <sre@kernel.org>
      f96576bd
  15. 05 12月, 2015 1 次提交
  16. 19 10月, 2015 1 次提交
  17. 16 10月, 2015 1 次提交
  18. 13 10月, 2015 1 次提交
  19. 29 9月, 2015 1 次提交
  20. 25 9月, 2015 1 次提交
  21. 23 9月, 2015 1 次提交
  22. 22 9月, 2015 2 次提交
  23. 05 8月, 2015 1 次提交
  24. 30 5月, 2015 1 次提交
  25. 24 5月, 2015 3 次提交
  26. 08 3月, 2015 1 次提交
  27. 26 2月, 2015 1 次提交
  28. 22 1月, 2015 3 次提交
  29. 20 1月, 2015 2 次提交
  30. 25 9月, 2014 1 次提交
    • K
      power: max14577: Fix circular config SYSFS dependency · 6a91e854
      Krzysztof Kozlowski 提交于
      Make the max14577 charger driver depending on SYSFS instead selecting
      it. This fixes warning on x86_64 with allmodconfig:
      
      scripts/kconfig/conf --allmodconfig Kconfig
      fs/sysfs/Kconfig:1:error: recursive dependency detected!
      fs/sysfs/Kconfig:1:	symbol SYSFS is selected by CHARGER_MAX14577
      drivers/power/Kconfig:327:	symbol CHARGER_MAX14577 depends on POWER_SUPPLY
      drivers/power/Kconfig:1:	symbol POWER_SUPPLY is selected by HID_SONY
      drivers/hid/Kconfig:638:	symbol HID_SONY depends on NEW_LEDS
      drivers/leds/Kconfig:8:	symbol NEW_LEDS is selected by SENSORS_APPLESMC
      drivers/hwmon/Kconfig:299:	symbol SENSORS_APPLESMC depends on HWMON
      drivers/hwmon/Kconfig:5:	symbol HWMON is selected by EEEPC_LAPTOP
      drivers/platform/x86/Kconfig:496:	symbol EEEPC_LAPTOP depends on HOTPLUG_PCI
      drivers/pci/hotplug/Kconfig:5:	symbol HOTPLUG_PCI depends on SYSFS
      Signed-off-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com>
      Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NSebastian Reichel <sre@kernel.org>
      6a91e854