Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 10ead6e5 authored by NeilBrown's avatar NeilBrown Committed by Bryan Wu
Browse files

LEDS: tca6507: add device-tree support for GPIO configuration.



The 7 lines driven by the TCA6507 can either drive LEDs or act as output-only
GPIOs.

To make this distinction in devicetree we use the "compatible" property.

If the device attached to a line is "compatible" with "gpio", we treat it
like a GPIO.  If it is "compatible" with "led" (or if no "compatible" value
is set) we treat it like an LED.

(cooloney@gmail.com: fix typo in the subject)

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
parent 9334129e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment