dts: pine64: add some user leds for labgrid etc

Signed-off-by: Heinrich Toews <ht@twx-software.de>
This commit is contained in:
Heinrich Toews 2025-05-22 13:13:16 +00:00
parent 6e5129e868
commit d49cdc7d3a

@ -7,6 +7,7 @@
#include "sun50i-a64-cpu-opp.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
/ {
model = "Pine64 PINE A64";
@ -35,6 +36,43 @@ hdmi_con_in: endpoint {
};
};
};
leds {
compatible = "gpio-leds";
led-0 {
label = "twx-led-0:blue:test1";
gpios = <&pio 2 5 GPIO_ACTIVE_HIGH>; /* PC5 */
};
led-1 {
label = "twx-led-1:red:test2";
gpios = <&pio 2 9 GPIO_ACTIVE_HIGH>; /* PC9 */
};
led-2 {
label = "twx-led-2:green:test3";
gpios = <&pio 2 16 GPIO_ACTIVE_HIGH>; /* PC16 */
linux,default-trigger = "heartbeat";
function = LED_FUNCTION_HEARTBEAT;
};
led-3 {
label = "twx-led-3:blue:test1";
gpios = <&pio 2 11 GPIO_ACTIVE_HIGH>; /* PC11 */
};
led-4 {
label = "twx-led-4:red:test2";
gpios = <&pio 2 10 GPIO_ACTIVE_HIGH>; /* PC10 */
};
led-5 {
label = "twx-led-5:green:test3";
gpios = <&pio 2 6 GPIO_ACTIVE_HIGH>; /* PC6 */
default-state = "on";
};
};
};
&codec {