-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'leds-5.13-rc1' of git://git.kernel.org/pub/scm/linux/kerne…
…l/git/pavel/linux-leds 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
- Loading branch information
Showing
12 changed files
with
525 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# 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>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
menuconfig LEDS_BLINK | ||
bool "LED Blink support" | ||
depends on LEDS_CLASS | ||
help | ||
This option enables blink support for the leds class. | ||
If unsure, say Y. | ||
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 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
obj-$(CONFIG_LEDS_BLINK_LGM) += leds-lgm-sso.o | ||
obj-$(CONFIG_LEDS_LGM) += leds-lgm-sso.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
|
||
obj-$(CONFIG_LEDS_RT4505) += leds-rt4505.o | ||
obj-$(CONFIG_LEDS_RT8515) += leds-rt8515.o |
Oops, something went wrong.