Commit d835ff6c authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull LED updates from Pavel Machek:
 "Nothing too exciting here, just some fixes"

* tag 'leds-5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds:
  leds: pca9532: Assign gpio base dynamically
  leds: trigger: pattern: Switch to using the new API kobj_to_dev()
  leds: LEDS_BLINK_LGM should depend on X86
  leds: lgm: Fix spelling mistake "prepate" -> "prepare"
  MAINTAINERS: Remove Dan Murphy's bouncing email
  leds-lm3642: convert comma to semicolon
  leds: rt4505: Add support for Richtek RT4505 flash LED controller
  leds: rt4505: Add DT binding document for Richtek RT4505
  leds: Kconfig: LEDS_CLASS is usually selected.
  leds: lgm: Improve Kconfig help
  leds: lgm: fix gpiolib dependency
parents a7efd197 23a70045
Loading
Loading
Loading
Loading
+57 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/leds/leds-rt4505.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Richtek RT4505 Single Channel LED Driver

maintainers:
  - ChiYuan Huang <cy_huang@richtek.com>

description: |
  The RT4505 is a flash LED driver that can support up to 375mA and 1.5A for
  torch and flash mode, respectively.

  The data sheet can be found at:
    https://www.richtek.com/assets/product_file/RT4505/DS4505-02.pdf

properties:
  compatible:
    const: richtek,rt4505

  reg:
    description: I2C slave address of the controller.
    maxItems: 1

  led:
    type: object
    $ref: common.yaml#

required:
  - compatible
  - reg

additionalProperties: false

examples:
  - |
    #include <dt-bindings/leds/common.h>

    i2c0 {
      #address-cells = <1>;
      #size-cells = <0>;

      led-controller@63 {
        compatible = "richtek,rt4505";
        reg = <0x63>;

        rt4505_flash: led {
          function = LED_FUNCTION_FLASH;
          color = <LED_COLOR_ID_WHITE>;
          led-max-microamp = <375000>;
          flash-max-microamp = <1500000>;
          flash-max-timeout-us = <800000>;
        };
      };
    };
+3 −4
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ config LEDS_CLASS
	tristate "LED Class Support"
	help
	  This option enables the LED sysfs class in /sys/class/leds.  You'll
	  need this to do anything useful with LEDs.  If unsure, say N.
	  need this to do anything useful with LEDs.  If unsure, say Y.

config LEDS_CLASS_FLASH
	tristate "LED Flash Class Support"
@@ -928,13 +928,12 @@ config LEDS_ACER_A500
	  This option enables support for the Power Button LED of
	  Acer Iconia Tab A500.

source "drivers/leds/blink/Kconfig"

comment "Flash and Torch LED drivers"
source "drivers/leds/flash/Kconfig"

comment "LED Triggers"
source "drivers/leds/trigger/Kconfig"

comment "LED Blink"
source "drivers/leds/blink/Kconfig"

endif # NEW_LEDS
+1 −1
Original line number Diff line number Diff line
@@ -110,4 +110,4 @@ obj-$(CONFIG_LEDS_CLASS_FLASH) += flash/
obj-$(CONFIG_LEDS_TRIGGERS)		+= trigger/

# LED Blink
obj-$(CONFIG_LEDS_BLINK)                += blink/
obj-y					+= blink/
+15 −18
Original line number Diff line number Diff line
menuconfig LEDS_BLINK
	bool "LED Blink support"
	depends on LEDS_CLASS
config LEDS_LGM
       tristate "LED support for LGM SoC series"
       depends on X86 || COMPILE_TEST
       depends on GPIOLIB && LEDS_CLASS && MFD_SYSCON && OF
       help
	  This option enables blink support for the leds class.
	  If unsure, say Y.
         This option enables support for LEDs connected to GPIO lines on
         Lightning Mountain (LGM) SoC. Lightning Mountain is a AnyWAN
         gateway-on-a-chip SoC to be shipped on mid and high end home
         gateways and routers.

if LEDS_BLINK
         These LEDs are driven by a Serial Shift Output (SSO) controller.
         The driver supports hardware blinking and the LEDs can be configured
         to be triggered by software/CPU or by hardware.

config LEDS_BLINK_LGM
	tristate "LED support for Intel LGM SoC series"
	depends on LEDS_CLASS
	depends on MFD_SYSCON
	depends on OF
	help
	  Parallel to serial conversion, which is also called SSO controller,
	  can drive external shift register for LED outputs.
	  This enables LED support for Serial Shift Output controller(SSO).

endif # LEDS_BLINK
         Say 'Y' here if you are working on LGM SoC based platform. Otherwise,
         say 'N'. To compile this driver as a module, choose M here: the module
         will be called leds-lgm-sso.
+1 −1
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_LEDS_BLINK_LGM)	+= leds-lgm-sso.o
obj-$(CONFIG_LEDS_LGM)	+= leds-lgm-sso.o
Loading