diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2023-09-27 00:48:12 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-11-01 14:28:57 +0300 |
commit | f9be4d5bb62ab41723db04d7b3abed2ad6c34825 (patch) | |
tree | 1b5fec7217a24c53c35b215775bef58b5267dd75 /net | |
parent | 8d3fd7edd5f70fb814c07a321f347b5fe21d3fac (diff) | |
download | linux-f9be4d5bb62ab41723db04d7b3abed2ad6c34825.tar.xz |
dt-bindings: leds: Mention GPIO triggers
We reuse the trigger-sources phandle to just point to
GPIOs we may want to use as LED triggers.
Example:
gpio: gpio@0 {
compatible "my-gpio";
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
#trigger-source-cells = <2>;
};
leds {
compatible = "gpio-leds";
led-my-gpio {
label = "device:blue:myled";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
default-state = "off";
linux,default-trigger = "gpio";
trigger-sources = <&gpio 1 GPIO_ACTIVE_HIGH>;
};
};
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230926-gpio-led-trigger-dt-v2-2-e06e458b788e@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions