1. 17 9月, 2015 2 次提交
  2. 28 8月, 2015 3 次提交
  3. 25 8月, 2015 1 次提交
  4. 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
  5. 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
  6. 23 6月, 2015 1 次提交
  7. 12 6月, 2015 1 次提交
  8. 26 5月, 2015 3 次提交
  9. 05 5月, 2015 4 次提交
  10. 31 3月, 2015 1 次提交
  11. 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
  12. 02 12月, 2014 1 次提交
  13. 20 11月, 2014 1 次提交
  14. 26 9月, 2014 1 次提交
  15. 24 9月, 2014 1 次提交
  16. 09 9月, 2014 1 次提交
  17. 24 7月, 2014 1 次提交
  18. 09 7月, 2014 1 次提交
  19. 11 5月, 2014 1 次提交
  20. 08 5月, 2014 1 次提交
  21. 15 4月, 2014 1 次提交
    • V
      HID: thingm: refactor blink(1) support · f70ed8a6
      Vivien Didelot 提交于
      This patch refactors the way the thingm driver registers a blink(1) LED.
      In order to make the driver simpler and more standard, drop the "rgb"
      sysfs attribute and create one instance of LED class per RGB channel.
      
      Actually, the name of the LED class instance registered for a blink(1)
      device is "blink1::ABCD", where ABCD is the last 4 chars of the serial
      number. The driver now registers 3 instances per RGB chip, named
      "thingmX:{red,green,blue}:ledY" where X is the hidraw minor number and Y
      is the RGB chip number (as seen by the firmware).
      
      This patch also uses work queues to defer calls with the device, which
      now allows triggers to work as expected with this LED device.
      
      Also remove the brightness structure field and the brightness_get
      backend, as it is already handled by the LED class, and changes the
      prefix of functions and structures to thingm_ to match the driver name.
      Signed-off-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      f70ed8a6
  22. 28 3月, 2014 1 次提交
  23. 12 3月, 2014 1 次提交
  24. 28 2月, 2014 1 次提交
  25. 25 2月, 2014 1 次提交
  26. 23 10月, 2013 1 次提交
  27. 27 8月, 2013 4 次提交