Commit 0b7baa1a authored by Horatiu Vultur's avatar Horatiu Vultur Committed by Claudiu Beznea

ARM: dts: lan966x: add led configuration

Add led configuration for pcb8291 and pcb8309. Both pcbs have 4 leds which
are connected to the sgpio controller.
Signed-off-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220902062447.443846-1-horatiu.vultur@microchip.com
parent e9447260
......@@ -23,6 +23,34 @@ gpio-restart {
gpios = <&gpio 56 GPIO_ACTIVE_LOW>;
priority = <200>;
};
leds {
compatible = "gpio-leds";
led-s0-blue {
label = "s0:blue";
gpios = <&sgpio_out 2 0 GPIO_ACTIVE_LOW>;
default-state = "off";
};
led-s0-green {
label = "s0:green";
gpios = <&sgpio_out 2 1 GPIO_ACTIVE_LOW>;
default-state = "off";
};
led-s1-blue {
label = "s1:blue";
gpios = <&sgpio_out 3 0 GPIO_ACTIVE_LOW>;
default-state = "off";
};
led-s1-green {
label = "s1:green";
gpios = <&sgpio_out 3 1 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
};
&gpio {
......
......@@ -42,6 +42,34 @@ i2c103: i2c-sfp@2 {
};
};
leds {
compatible = "gpio-leds";
led-s0-green {
label = "s0:green";
gpios = <&sgpio_out 2 0 GPIO_ACTIVE_LOW>;
default-state = "off";
};
led-s0-red {
label = "s0:red";
gpios = <&sgpio_out 2 1 GPIO_ACTIVE_LOW>;
default-state = "off";
};
led-s1-green {
label = "s1:green";
gpios = <&sgpio_out 3 0 GPIO_ACTIVE_LOW>;
default-state = "off";
};
led-s1-red {
label = "s1:red";
gpios = <&sgpio_out 3 1 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
mux: mux-controller {
compatible = "gpio-mux";
#mux-control-cells = <0>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment