-
Notifications
You must be signed in to change notification settings - Fork 115
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_for_4.12' of git://git.kernel.org/pub/scm/linux/kerne…
…l/git/j.anaszewski/linux-leds Pull LED updates from Jacek Anaszewski: "New drivers: - add LED support for MT6323 PMIC - add LED support for Motorola CPCAP PMIC New features and improvements: - add LED trigger for all CPUs aggregated which is useful on tiny boards with more CPU cores than LED pins - add OF variants of LED registering functions as a preparation for adding generic support for Device Tree parsing - dell-led improvements and cleanups, followed by moving it to the x86 platform driver subsystem which is a more appropriate place for it - extend pca9532 Device Tree support by adding the LEDs 'default-state' property - extend pca963x Device Tree support by adding nxp,inverted-out property for inverting the polarity of the output - remove ACPI support for lp3952 since it relied on a non-official ACPI IDs" * tag 'leds_for_4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds: leds: pca9532: Extend pca9532 device tree support leds: cpcap: new driver mfd: cpcap: Add missing include dependencies leds: lp3952: Use 'if (ret)' pattern leds: lp3952: Remove ACPI support for lp3952 leds: mt6323: Fix an off by one bug in probe dt-bindings: leds: Add document bindings for leds-mt6323 leds: Add LED support for MT6323 PMIC leds: gpio: use OF variant of LED registering function leds: core: add OF variants of LED registering functions platform/x86: dell-wmi-led: fix coding style issues dell-led: move driver to drivers/platform/x86/dell-wmi-led.c dell-led: remove code related to mic mute LED platform/x86: dell-laptop: import dell_micmute_led_set() from drivers/leds/dell-led.c ALSA: hda - rename dell_led_set_func to dell_micmute_led_set_func ALSA: hda - use dell_micmute_led_set() instead of dell_app_wmi_led_set() dell-led: remove GUID check from dell_micmute_led_set() leds/trigger/cpu: Add LED trigger for all CPUs aggregated
- Loading branch information
Showing
21 changed files
with
1,043 additions
and
178 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,29 @@ | ||
Motorola CPCAP PMIC LEDs | ||
------------------------ | ||
|
||
This module is part of the CPCAP. For more details about the whole | ||
chip see Documentation/devicetree/bindings/mfd/motorola-cpcap.txt. | ||
|
||
Requires node properties: | ||
- compatible: should be one of | ||
* "motorola,cpcap-led-mdl" (Main Display Lighting) | ||
* "motorola,cpcap-led-kl" (Keyboard Lighting) | ||
* "motorola,cpcap-led-adl" (Aux Display Lighting) | ||
* "motorola,cpcap-led-red" (Red Triode) | ||
* "motorola,cpcap-led-green" (Green Triode) | ||
* "motorola,cpcap-led-blue" (Blue Triode) | ||
* "motorola,cpcap-led-cf" (Camera Flash) | ||
* "motorola,cpcap-led-bt" (Bluetooth) | ||
* "motorola,cpcap-led-cp" (Camera Privacy LED) | ||
- label: see Documentation/devicetree/bindings/leds/common.txt | ||
- vdd-supply: A phandle to the regulator powering the LED | ||
|
||
Example: | ||
|
||
&cpcap { | ||
cpcap_led_red: red-led { | ||
compatible = "motorola,cpcap-led-red"; | ||
label = "cpcap:red"; | ||
vdd-supply = <&sw5>; | ||
}; | ||
}; |
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,60 @@ | ||
Device Tree Bindings for LED support on MT6323 PMIC | ||
|
||
MT6323 LED controller is subfunction provided by MT6323 PMIC, so the LED | ||
controllers are defined as the subnode of the function node provided by MT6323 | ||
PMIC controller that is being defined as one kind of Muti-Function Device (MFD) | ||
using shared bus called PMIC wrapper for each subfunction to access remote | ||
MT6323 PMIC hardware. | ||
|
||
For MT6323 MFD bindings see: | ||
Documentation/devicetree/bindings/mfd/mt6397.txt | ||
For MediaTek PMIC wrapper bindings see: | ||
Documentation/devicetree/bindings/soc/mediatek/pwrap.txt | ||
|
||
Required properties: | ||
- compatible : Must be "mediatek,mt6323-led" | ||
- address-cells : Must be 1 | ||
- size-cells : Must be 0 | ||
|
||
Each led is represented as a child node of the mediatek,mt6323-led that | ||
describes the initial behavior for each LED physically and currently only four | ||
LED child nodes can be supported. | ||
|
||
Required properties for the LED child node: | ||
- reg : LED channel number (0..3) | ||
|
||
Optional properties for the LED child node: | ||
- label : See Documentation/devicetree/bindings/leds/common.txt | ||
- linux,default-trigger : See Documentation/devicetree/bindings/leds/common.txt | ||
- default-state: See Documentation/devicetree/bindings/leds/common.txt | ||
|
||
Example: | ||
|
||
mt6323: pmic { | ||
compatible = "mediatek,mt6323"; | ||
|
||
... | ||
|
||
mt6323led: leds { | ||
compatible = "mediatek,mt6323-led"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
led@0 { | ||
reg = <0>; | ||
label = "LED0"; | ||
linux,default-trigger = "timer"; | ||
default-state = "on"; | ||
}; | ||
led@1 { | ||
reg = <1>; | ||
label = "LED1"; | ||
default-state = "off"; | ||
}; | ||
led@2 { | ||
reg = <2>; | ||
label = "LED2"; | ||
default-state = "on"; | ||
}; | ||
}; | ||
}; |
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
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
Oops, something went wrong.