1. 22 11月, 2016 2 次提交
  2. 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
  3. 15 9月, 2016 1 次提交
    • V
      leds: add driver for Mellanox systems LEDs · be4fdf99
      Vadim Pasternak 提交于
      This makes it possible to create a set of LEDs for Mellanox systems:
      "msx6710", "msx6720", "msb7700", "msn2700", "msx1410", "msn2410",
      "msb7800", "msn2740", "msn2100".
      
      Driver obtains LED devices according to system configuration, provided
      through system DMI data, like mlxcpld:fan1:green, mlxcpld:fan1:red and
      creates devices in form: "devicename:colour:function".
      
      LED setting is controlled through on board CPLD Lattice device.
      For setting particular LED off, solid, blink:
      echo 0 > /sys/class/leds/mlxcpld\:status\:green/brightness
      echo 1 > /sys/class/leds/mlxcpld\:status\:green/brightness
      echo timer > /sys/class/leds/mlxcpld\:status\:green/trigger
      
      On module probing all LEDs are set green, on removing - off.
      
      Last setting overwrites previous, f.e. sequence for
      changing LED from green - red - green:
      echo 1 > /sys/class/leds/mlxcpld\:psu\:green/brightness
      echo 1 > /sys/class/leds/mlxcpld\:psu\:red/brightness
      echo 1 > /sys/class/leds/mlxcpld\:psu\:green/brightness
      Note: LEDs cannot be turned on/off simultaneously.
      
      The Kconfig currently controlling compilation of this code is:
      drivers/leds/Kconfig:config LEDS_MLXCPLD
      Signed-off-by: NVadim Pasternak <vadimp@mellanox.com>
      Reviewed-by: NJiri Pirko <jiri@mellanox.com>
      Reviewed-by: NWei Yongjun <weiyongjun1@huawei.com>
      Signed-off-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      be4fdf99
  4. 17 8月, 2016 1 次提交
  5. 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
  6. 18 7月, 2016 1 次提交
  7. 19 4月, 2016 1 次提交
  8. 24 3月, 2016 1 次提交
  9. 14 3月, 2016 2 次提交
  10. 04 1月, 2016 1 次提交
  11. 03 11月, 2015 1 次提交
  12. 17 9月, 2015 2 次提交
  13. 28 8月, 2015 3 次提交
  14. 25 8月, 2015 1 次提交
  15. 20 8月, 2015 1 次提交
    • V
      leds/powernv: Add driver for PowerNV platform · 84ad6e5c
      Vasant Hegde 提交于
      This patch implements LED driver for PowerNV platform using the existing
      generic LED class framework.
      
      PowerNV platform has below type of LEDs:
        - System attention
            Indicates there is a problem with the system that needs attention.
        - Identify
            Helps the user locate/identify a particular FRU or resource in the
            system.
        - Fault
            Indicates there is a problem with the FRU or resource at the
            location with which the indicator is associated.
      
      We register classdev structures for all individual LEDs detected on the
      system through LED specific device tree nodes. Device tree nodes specify
      what all kind of LEDs present on the same location code. It registers
      LED classdev structure for each of them.
      
      All the system LEDs can be found in the same regular path /sys/class/leds/.
      We don't use LED colors. We use LED node and led-types property to form
      LED classdev. Our LEDs have names in this format.
      
              <location_code>:<attention|identify|fault>
      
      Any positive brightness value would turn on the LED and a zero value would
      turn off the LED. The driver will return LED_FULL (255) for any turned on
      LED and LED_OFF (0) for any turned off LED.
      
      The platform level implementation of LED get and set state has been
      achieved through OPAL calls. These calls are made available for the
      driver by exporting from architecture specific codes.
      Signed-off-by: NVasant Hegde <hegdevasant@linux.vnet.ibm.com>
      Signed-off-by: NAnshuman Khandual <khandual@linux.vnet.ibm.com>
      Acked-by: NStewart Smith <stewart@linux.vnet.ibm.com>
      Tested-by: NStewart Smith <stewart@linux.vnet.ibm.com>
      Acked-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      84ad6e5c
  16. 30 6月, 2015 3 次提交
    • M
      leds:lp55xx: fix firmware loading error · b6789320
      Milo Kim 提交于
      LP55xx driver uses not firmware file but raw data to load program through
      the firmware interface.(Documents/leds/leds-lp55xx.txt)
      
        For example, here is how to run blinking green channel pattern.
        (The second engine is seleted and MUX is mapped to 'RGB' mode)
        echo 2 > /sys/bus/i2c/devices/xxxx/select_engine
        echo "RGB" > /sys/bus/i2c/devices/xxxx/engine_mux
        echo 1 > /sys/class/firmware/lp5562/loading
        echo "4000600040FF6000" > /sys/class/firmware/lp5562/data
        echo 0 > /sys/class/firmware/lp5562/loading
        echo 1 > /sys/bus/i2c/devices/xxxx/run_engine
      
      However, '/sys/class/firmware/<device name>' is not created after the
      firmware loader user helper was introduced.
      This feature is used in the case below.
      
        As soon as the firmware download is requested by the driver, firmware
        class subsystem tries to find the binary file.
        If it gets failed, then it just falls back to user helper to load
        raw data manually. Here, you can see the device file under
        /sys/class/firmware/.
      
      To make it happen, LP55xx driver requires two configurations.
      
        1. Enable CONFIG_FW_LOADER_USER_HELPER_FALLBACK in Kconfig
        2. Set option, 'FW_OPT_USERHELPER' on requesting the firmware data.
           It means the second option should be 'false' in
           request_firmware_nowait().
           This option enables to load firmware data manually by calling
           fw_load_from_user_helper().
      
      Cc: linux-leds@vger.kernel.org
      Signed-off-by: NMilo Kim <milo.kim@ti.com>
      Acked-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      b6789320
    • J
      leds: fix max77693-led build errors · 10c19c9e
      Jacek Anaszewski 提交于
      Fix build errors when LEDS_MAX77693=y and V4L2_FLASH_LED_CLASS=m
      by restricting LEDS_MAX77693 to =m if V4L2_FLASH_LED_CLASS=m.
      
      drivers/leds/leds-max77693.c:1062: undefined reference to `v4l2_flash_release'
      drivers/leds/leds-max77693.c:1068: undefined reference to `v4l2_flash_release'
      drivers/built-in.o: In function `max77693_register_led':
      drivers/leds/leds-max77693.c:968: undefined reference to `v4l2_flash_init'
      drivers/built-in.o: In function `max77693_led_probe':
      drivers/leds/leds-max77693.c:1048: undefined reference to `v4l2_flash_release'
      Signed-off-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      10c19c9e
    • R
      leds: fix aat1290 build errors · 58d1809b
      Randy Dunlap 提交于
      Fix build errors when LEDS_AAT1290=y and V4L2_FLASH_LED_CLASS=m
      by restricting LEDS_AAT1290 to =m if V4L2_FLASH_LED_CLASS=m.
      
      drivers/built-in.o: In function `aat1290_led_remove':
      leds-aat1290.c:(.text+0xe5d77): undefined reference to `v4l2_flash_release'
      drivers/built-in.o: In function `aat1290_led_probe':
      leds-aat1290.c:(.text+0xe6494): undefined reference to `v4l2_flash_init'
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Acked-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      58d1809b
  17. 23 6月, 2015 1 次提交
  18. 12 6月, 2015 1 次提交
  19. 26 5月, 2015 3 次提交
  20. 05 5月, 2015 4 次提交
  21. 31 3月, 2015 1 次提交
  22. 27 1月, 2015 1 次提交
    • J
      leds: Add LED Flash class extension to the LED subsystem · 7aea8389
      Jacek Anaszewski 提交于
      Some LED devices support two operation modes - torch and flash.
      This patch provides support for flash LED devices in the LED subsystem
      by introducing new sysfs attributes and kernel internal interface.
      The attributes being introduced are: flash_brightness, flash_strobe,
      flash_timeout, max_flash_timeout, max_flash_brightness, flash_fault,
      flash_sync_strobe and available_sync_leds. All the flash related
      features are placed in a separate module.
      
      The modifications aim to be compatible with V4L2 framework requirements
      related to the flash devices management. The design assumes that V4L2
      sub-device can take of the LED class device control and communicate
      with it through the kernel internal interface. When V4L2 Flash sub-device
      file is opened, the LED class device sysfs interface is made
      unavailable.
      Signed-off-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      Acked-by: NKyungmin Park <kyungmin.park@samsung.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Acked-by: NPavel Machek <pavel@ucw.cz>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      7aea8389
  23. 02 12月, 2014 1 次提交
  24. 20 11月, 2014 1 次提交
  25. 26 9月, 2014 1 次提交
  26. 24 9月, 2014 1 次提交
  27. 09 9月, 2014 1 次提交
  28. 24 7月, 2014 1 次提交