1. 09 1月, 2018 1 次提交
  2. 07 11月, 2017 1 次提交
  3. 02 11月, 2017 1 次提交
    • G
      License cleanup: add SPDX GPL-2.0 license identifier to files with no license · b2441318
      Greg Kroah-Hartman 提交于
      Many source files in the tree are missing licensing information, which
      makes it harder for compliance tools to determine the correct license.
      
      By default all files without license information are under the default
      license of the kernel, which is GPL version 2.
      
      Update the files which contain no license information with the 'GPL-2.0'
      SPDX license identifier.  The SPDX identifier is a legally binding
      shorthand, which can be used instead of the full boiler plate text.
      
      This patch is based on work done by Thomas Gleixner and Kate Stewart and
      Philippe Ombredanne.
      
      How this work was done:
      
      Patches were generated and checked against linux-4.14-rc6 for a subset of
      the use cases:
       - file had no licensing information it it.
       - file was a */uapi/* one with no licensing information in it,
       - file was a */uapi/* one with existing licensing information,
      
      Further patches will be generated in subsequent months to fix up cases
      where non-standard license headers were used, and references to license
      had to be inferred by heuristics based on keywords.
      
      The analysis to determine which SPDX License Identifier to be applied to
      a file was done in a spreadsheet of side by side results from of the
      output of two independent scanners (ScanCode & Windriver) producing SPDX
      tag:value files created by Philippe Ombredanne.  Philippe prepared the
      base worksheet, and did an initial spot review of a few 1000 files.
      
      The 4.13 kernel was the starting point of the analysis with 60,537 files
      assessed.  Kate Stewart did a file by file comparison of the scanner
      results in the spreadsheet to determine which SPDX license identifier(s)
      to be applied to the file. She confirmed any determination that was not
      immediately clear with lawyers working with the Linux Foundation.
      
      Criteria used to select files for SPDX license identifier tagging was:
       - Files considered eligible had to be source code files.
       - Make and config files were included as candidates if they contained >5
         lines of source
       - File already had some variant of a license header in it (even if <5
         lines).
      
      All documentation files were explicitly excluded.
      
      The following heuristics were used to determine which SPDX license
      identifiers to apply.
      
       - when both scanners couldn't find any license traces, file was
         considered to have no license information in it, and the top level
         COPYING file license applied.
      
         For non */uapi/* files that summary was:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|-------
         GPL-2.0                                              11139
      
         and resulted in the first patch in this series.
      
         If that file was a */uapi/* path one, it was "GPL-2.0 WITH
         Linux-syscall-note" otherwise it was "GPL-2.0".  Results of that was:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|-------
         GPL-2.0 WITH Linux-syscall-note                        930
      
         and resulted in the second patch in this series.
      
       - if a file had some form of licensing information in it, and was one
         of the */uapi/* ones, it was denoted with the Linux-syscall-note if
         any GPL family license was found in the file or had no licensing in
         it (per prior point).  Results summary:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|------
         GPL-2.0 WITH Linux-syscall-note                       270
         GPL-2.0+ WITH Linux-syscall-note                      169
         ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause)    21
         ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)    17
         LGPL-2.1+ WITH Linux-syscall-note                      15
         GPL-1.0+ WITH Linux-syscall-note                       14
         ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause)    5
         LGPL-2.0+ WITH Linux-syscall-note                       4
         LGPL-2.1 WITH Linux-syscall-note                        3
         ((GPL-2.0 WITH Linux-syscall-note) OR MIT)              3
         ((GPL-2.0 WITH Linux-syscall-note) AND MIT)             1
      
         and that resulted in the third patch in this series.
      
       - when the two scanners agreed on the detected license(s), that became
         the concluded license(s).
      
       - when there was disagreement between the two scanners (one detected a
         license but the other didn't, or they both detected different
         licenses) a manual inspection of the file occurred.
      
       - In most cases a manual inspection of the information in the file
         resulted in a clear resolution of the license that should apply (and
         which scanner probably needed to revisit its heuristics).
      
       - When it was not immediately clear, the license identifier was
         confirmed with lawyers working with the Linux Foundation.
      
       - If there was any question as to the appropriate license identifier,
         the file was flagged for further research and to be revisited later
         in time.
      
      In total, over 70 hours of logged manual review was done on the
      spreadsheet to determine the SPDX license identifiers to apply to the
      source files by Kate, Philippe, Thomas and, in some cases, confirmation
      by lawyers working with the Linux Foundation.
      
      Kate also obtained a third independent scan of the 4.13 code base from
      FOSSology, and compared selected files where the other two scanners
      disagreed against that SPDX file, to see if there was new insights.  The
      Windriver scanner is based on an older version of FOSSology in part, so
      they are related.
      
      Thomas did random spot checks in about 500 files from the spreadsheets
      for the uapi headers and agreed with SPDX license identifier in the
      files he inspected. For the non-uapi files Thomas did random spot checks
      in about 15000 files.
      
      In initial set of patches against 4.14-rc6, 3 files were found to have
      copy/paste license identifier errors, and have been fixed to reflect the
      correct identifier.
      
      Additionally Philippe spent 10 hours this week doing a detailed manual
      inspection and review of the 12,461 patched files from the initial patch
      version early this week with:
       - a full scancode scan run, collecting the matched texts, detected
         license ids and scores
       - reviewing anything where there was a license detected (about 500+
         files) to ensure that the applied SPDX license was correct
       - reviewing anything where there was no detection but the patch license
         was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
         SPDX license was correct
      
      This produced a worksheet with 20 files needing minor correction.  This
      worksheet was then exported into 3 different .csv files for the
      different types of files to be modified.
      
      These .csv files were then reviewed by Greg.  Thomas wrote a script to
      parse the csv files and add the proper SPDX tag to the file, in the
      format that the file expected.  This script was further refined by Greg
      based on the output to detect more types of files automatically and to
      distinguish between header and source .c files (which need different
      comment types.)  Finally Greg ran the script using the .csv files to
      generate the patches.
      Reviewed-by: NKate Stewart <kstewart@linuxfoundation.org>
      Reviewed-by: NPhilippe Ombredanne <pombredanne@nexb.com>
      Reviewed-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b2441318
  4. 27 8月, 2017 1 次提交
  5. 20 6月, 2017 1 次提交
    • P
      leds: Remove SEAD-3 driver · 64601cb1
      Paul Burton 提交于
      SEAD3 is using the generic syscon & regmap based register-bit-led
      driver as of commit c764583f ("MIPS: SEAD3: Use register-bit-led
      driver via DT for LEDs") merged in the v4.9 cycle. As such the custom
      SEAD-3 LED driver is now unused, so remove it.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Cc: Jacek Anaszewski <jacek.anaszewski@gmail.com>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: linux-leds@vger.kernel.org
      Cc: linux-mips@linux-mips.org
      Signed-off-by: NJacek Anaszewski <jacek.anaszewski@gmail.com>
      64601cb1
  6. 14 5月, 2017 1 次提交
  7. 30 3月, 2017 1 次提交
  8. 22 3月, 2017 1 次提交
  9. 07 3月, 2017 1 次提交
  10. 22 11月, 2016 2 次提交
  11. 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
  12. 17 8月, 2016 1 次提交
  13. 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
  14. 18 7月, 2016 1 次提交
  15. 14 3月, 2016 1 次提交
    • D
      leds: Add driver for the ISSI IS31FL32xx family of LED controllers · 9d7cffaf
      David Rivshin 提交于
      The IS31FL32xx family of LED controllers are I2C devices with multiple
      constant-current channels, each with independent 256-level PWM control.
      
      Datasheets: http://www.issi.com/US/product-analog-fxled-driver.shtml
      
      This has been tested on the IS31FL3236 and IS31FL3216, on an ARM
      (TI am335x) platform.
      
      The programming paradigm of these devices is similar in the following
      ways:
       - All registers are 8 bit
       - All LED control registers are write-only
       - Each LED channel has a PWM register (0-255)
       - PWM register writes are shadowed until an Update register is poked
       - All have a concept of Software Shutdown, which disables output
      
      However, there are some differences in devices:
       - 3236/3235 have a separate Control register for each LED,
         (3218/3216 pack the enable bits into fewer registers)
       - 3236/3235 have a per-channel current divisor setting
       - 3236/3235 have a Global Control register that can turn off all LEDs
       - 3216 is unique in a number of ways
          - OUT9-OUT16 can be configured as GPIOs instead of LED controls
          - LEDs can be programmed with an 8-frame animation, with
            programmable delay between frames
          - LEDs can be modulated by an input audio signal
          - Max output current can be adjusted from 1/4 to 2x globally
          - Has a Configuration register instead of a Shutdown register
      
      This driver currently only supports the base PWM control function
      of these devices. The following features of these devices are not
      implemented, although it should be possible to add them in the future:
       - All devices are capable of going into a lower-power "software
         shutdown" mode.
       - The is31fl3236 and is31fl3235 can reduce the max output current
         per-channel with a divisor of 1, 2, 3, or 4.
       - The is31fl3216 can use some LED channels as GPIOs instead.
       - The is31fl3216 can animate LEDs in hardware.
       - The is31fl3216 can modulate LEDs according to an audio input.
       - The is31fl3216 can reduce/increase max output current globally.
      Signed-off-by: NDavid Rivshin <drivshin@allworx.com>
      Signed-off-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      9d7cffaf
  16. 03 11月, 2015 1 次提交
  17. 25 8月, 2015 1 次提交
  18. 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
  19. 26 5月, 2015 2 次提交
  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. 20 11月, 2014 1 次提交
  24. 26 9月, 2014 1 次提交
  25. 24 9月, 2014 1 次提交
  26. 24 7月, 2014 1 次提交
  27. 09 7月, 2014 1 次提交
  28. 08 5月, 2014 1 次提交
  29. 28 3月, 2014 1 次提交
  30. 23 10月, 2013 1 次提交
  31. 27 8月, 2013 2 次提交
    • R
      leds-pca9633: Rename to leds-pca963x · 56a1740c
      Ricardo Ribalda Delgado 提交于
      The driver now supports the chips pca9633 and pca9634, therefore we
      rename the files to more generic and meaningul names
      Signed-off-by: NRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      56a1740c
    • K
      leds: support new LP8501 device - another LP55xx common · 33b3a561
      Kim, Milo 提交于
      LP8501 can drive up to 9 channels like LP5523.
      LEDs can be controlled directly via the I2C and programmable engines are
      supported.
      
      LP55xx common driver
       LP8501 is one of LP55xx family device, so LP55xx common code are used.
       Chip specific data is defined in the structure, 'lp55xx_device_config'.
      
      Differences between LP8501 and LP5523
       Different register layout for LED output control and others.
       LP8501 specific feature for separate output power selection.
       LP8501 doesn't support external clock detection.
       Different programming engine data.
      
      LP8501 specific feature - output power selection
       Output channels are selected by power selection - Vout or Vdd.
       Separate power for VDD1-6 and VDD7-9 are available.
       It is configurable in the platform data.
       To support this feature, LP55xx DT structure and header are changed.
       Device tree binding is updated as well.
      
      LED pattern data
       Example pattern data is updated in the driver documentation.
      Signed-off-by: NMilo Kim <milo.kim@ti.com>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      33b3a561
  32. 22 7月, 2013 1 次提交
  33. 02 4月, 2013 2 次提交
    • K
      leds: move LED trigger drivers into new subdirectory · f07fb521
      Kim, Milo 提交于
      For better driver management, new subdirectory, 'trigger' is created.
      All LED trigger drivers are moved into this directory.
      
      Internal header, 'leds.h' is included in each LED trigger drivers.
      Fix the location of header file, "leds.h" -> "../leds.h" in driver files.
      One exception is here, 'ledtrig-timer.c'.
      There is no need to include 'leds.h'. so '#include "leds.h"' line was removed.
      Signed-off-by: NMilo(Woogyom) Kim <milo.kim@ti.com>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      f07fb521
    • K
      leds: add new LP5562 LED driver · ff45262a
      Kim, Milo 提交于
      LP5562 can drive up to 4 channels, RGB and White.
      LEDs can be controlled directly via the led class control interface.
      
       LP55xx common driver
        LP5562 is one of LP55xx family device, so LP55xx common code are used.
        On the other hand, chip specific configuration is defined in the structure
        'lp55xx_device_config'
      
       LED pattern data
        LP5562 has also internal program memory which is used for running various LED
        patterns. LP5562 driver supports the firmware interface and the predefined
        pattern data as well.
      
       LP5562 device attributes: 'led_pattern' and 'engine_mux'
        A 'led_pattern' is an index code which runs the predefined pattern data.
        And 'engine_mux' is updated with the firmware interface is activated.
        Detailed description has been updated in the documentation files,
        'leds-lp55xx.txt' and 'leds-lp5562.txt'.
      
       Changes on the header file
        LP5562 configurable definitions are added.
        Pattern RGB data is fixed as constant value.
        (No side effect on other devices, LP5521 or LP5523.)
      
      (cooloney@gmail.com: remove redundant mutex_unlock(). Reported by Dan
      Carpenter <dan.carpenter@oracle.com>)
      Signed-off-by: NMilo(Woogyom) Kim <milo.kim@ti.com>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      ff45262a