linux,default-trigger = "heartbeat";
default-state = "off";
};
+
+ led-green {
+ color = <LED_COLOR_ID_GREEN>;
+ gpios = <&gpioh 5 GPIO_ACTIVE_HIGH>;
+ };
+
+ led-orange {
+ color = <LED_COLOR_ID_ORANGE>;
+ gpios = <&gpioh 6 GPIO_ACTIVE_HIGH>;
+ };
};
memory@80000000 {
linux,default-trigger = "heartbeat";
default-state = "off";
};
+
+ led-green {
+ color = <LED_COLOR_ID_GREEN>;
+ gpios = <&gpioh 5 GPIO_ACTIVE_HIGH>;
+ };
+
+ led-orange {
+ color = <LED_COLOR_ID_ORANGE>;
+ gpios = <&gpioh 6 GPIO_ACTIVE_HIGH>;
+ };
};
memory@80000000 {
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/regulator/st,stm32mp25-regulator.h>
#include "stm32mp257.dtsi"
#include "stm32mp25xf.dtsi"
};
};
+ gpio-leds {
+ compatible = "gpio-leds";
+
+ led-blue {
+ function = LED_FUNCTION_HEARTBEAT;
+ color = <LED_COLOR_ID_BLUE>;
+ gpios = <&gpioj 7 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "heartbeat";
+ default-state = "off";
+ };
+
+ led-green {
+ color = <LED_COLOR_ID_GREEN>;
+ gpios = <&gpiod 8 GPIO_ACTIVE_HIGH>;
+ };
+
+ led-orange {
+ color = <LED_COLOR_ID_ORANGE>;
+ gpios = <&gpioj 6 GPIO_ACTIVE_HIGH>;
+ };
+ };
+
imx335_2v9: regulator-2v9 {
compatible = "regulator-fixed";
regulator-name = "imx335-avdd";