1. 25 2月, 2017 1 次提交
    • H
      leds: class: Add new optional brightness_hw_changed attribute · b8c5099b
      Hans de Goede 提交于
      Some LEDs may have their brightness level changed autonomously
      (outside of kernel control) by hardware / firmware. This commit
      adds support for an optional brightness_hw_changed attribute to
      signal such changes to userspace (if a driver can detect them):
      
      What:		/sys/class/leds/<led>/brightness_hw_changed
      Date:		January 2017
      KernelVersion:	4.11
      Description:
      		Last hardware set brightness level for this LED. Some LEDs
      		may be changed autonomously by hardware/firmware. Only LEDs
      		where this happens and the driver can detect this, will
      		have this file.
      
      		This file supports poll() to detect when the hardware
      		changes the brightness.
      
      		Reading this file will return the last brightness level set
      		by the hardware, this may be different from the current
      		brightness.
      
      Drivers which want to support this, simply add LED_BRIGHT_HW_CHANGED to
      their flags field and call led_classdev_notify_brightness_hw_changed()
      with the hardware set brightness when they detect a hardware / firmware
      triggered brightness change.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Acked-by: NPavel Machek <pavel@ucw.cz>
      Signed-off-by: NJacek Anaszewski <jacek.anaszewski@gmail.com>
      b8c5099b
  2. 25 12月, 2016 1 次提交
  3. 02 12月, 2016 1 次提交
  4. 30 11月, 2016 2 次提交
  5. 23 11月, 2016 1 次提交
  6. 22 11月, 2016 12 次提交
  7. 21 11月, 2016 1 次提交
    • L
      mfd: qcom-pm8xxx: Clean up PM8XXX namespace · 40a3a0f2
      Linus Walleij 提交于
      The Kconfig and file naming for the PM8xxx driver is totally
      confusing:
      
      - Kconfig options MFD_PM8XXX and MFD_PM8921_CORE, some in-kernel
        users depending on or selecting either at random.
      - A driver file named pm8921-core.c even if it is indeed
        used by the whole PM8xxx family of chips.
      - An irqchip named pm8xxx since it was (I guess) realized that
        the driver was generic for all pm8xxx PMICs.
      
      As I may want to add support for PM8901 this is starting to get
      really messy. Fix this situation by:
      
      - Remove the MFD_PM8921_CORE symbol and rely solely on MFD_PM8XXX
        and convert all users, including LEDs Kconfig and ARM defconfigs
        for qcom and multi_v7 to use that single symbol.
      - Renaming the driver to qcom-pm8xxx.c to fit along the two
        other qcom* prefixed drivers.
      - Rename functions withing the driver from 8921 to 8xxx to
        indicate it is generic.
      - Just drop the =m config from the pxa_defconfig, I have no clue
        why it is even there, it is not a Qualcomm platform. (Possibly
        older Kconfig noise from saveconfig.)
      
      Cc: Stephen Boyd <sboyd@codeaurora.org>
      Cc: Neil Armstrong <narmstrong@baylibre.com>
      Cc: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Reviewed-by: NAndy Gross <andy.gross@linaro.org>
      Acked-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      Acked-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      40a3a0f2
  8. 20 9月, 2016 2 次提交
  9. 15 9月, 2016 8 次提交
  10. 17 8月, 2016 3 次提交
  11. 15 8月, 2016 1 次提交
    • H
      leds: is31fl319x: 1/3/6/9-channel light effect led driver · 8c40b7d0
      H. Nikolaus Schaller 提交于
      This is a driver for the Integrated Silicon Solution Inc. LED driver
      chips series IS31FL319x. They can drive 1, 3, 6  or up to 9
      LEDs.
      
      Each LED is individually controllable in brightness (through pwm)
      in 256 steps so that RGB LEDs can show any of ca. 16 Mio colors.
      
      The maximum current of the LEDs can be programmed and limited to
      5 .. 40mA through a device tree property.
      
      The chip is connected through I2C and can have one of 4 addresses
      in the range 0x64 .. 0x67 depending on how the AD pin is connected. The
      address is defined by the reg property as usual.
      
      The chip also has a shutdown input which could be connected to a GPIO,
      but this driver uses software shutdown if all LEDs are inactivated.
      
      The chip also has breathing and audio features which are not fully
      supported by this driver.
      
      Tested-on: OMAP5 based Pyra handheld prototype.
      Signed-off-by: NH. Nikolaus Schaller <hns@goldelico.com>
      Signed-off-by: NAndrey Utkin <andrey_utkin@fastmail.com>
      Signed-off-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      8c40b7d0
  12. 23 7月, 2016 1 次提交
  13. 19 7月, 2016 2 次提交
  14. 18 7月, 2016 1 次提交
  15. 15 7月, 2016 1 次提交
  16. 11 7月, 2016 1 次提交
    • R
      leds: leds-gpio: Set of_node for created LED devices · bff23714
      Rafał Miłecki 提交于
      When working with Device Tree we iterate over children of "gpio-leds"
      compatible node and create LED device for each of them. We take care of
      all common DT properties (label, default trigger, state, etc.), however
      some triggers may want to support more of them.
      
      It could be useful for timer trigger to support setting delay on/off
      values with Device Tree property. Or for transient trigger to support
      e.g. duration property.
      
      We obviously should handle such properties in triggers, not in generic
      code. To let trigger drivers read properties from DT node we need to set
      of_node to point the relevant node. This change allows using all kind of
      of helpers in e.g. "activate" callbacks.
      Signed-off-by: NRafał Miłecki <zajec5@gmail.com>
      Signed-off-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      bff23714
  17. 04 7月, 2016 1 次提交