arduino_nicla_sense_me: add RGB LED support to the device tree

This patch enables the user to control the RGB LED on the Arduino Nicla
Sense ME board. The RGB LED is controlled by the IS31FL3194 LED driver
and is connected to the I2C0 bus.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
This commit is contained in:
Luca Burelli 2024-02-20 18:04:11 +01:00 committed by Anas Nashif
commit 5fea5c4358

View file

@ -8,6 +8,7 @@
#include <nordic/nrf52832_qfaa.dtsi> #include <nordic/nrf52832_qfaa.dtsi>
#include "arduino_nicla_sense_me-pinctrl.dtsi" #include "arduino_nicla_sense_me-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h> #include <zephyr/dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/led/led.h>
/ { / {
model = "Arduino Nicla Sense ME"; model = "Arduino Nicla Sense ME";
@ -73,6 +74,18 @@
pinctrl-0 = <&i2c0_default>; pinctrl-0 = <&i2c0_default>;
pinctrl-1 = <&i2c0_sleep>; pinctrl-1 = <&i2c0_sleep>;
pinctrl-names = "default", "sleep"; pinctrl-names = "default", "sleep";
is31fl3194@53 {
compatible = "issi,is31fl3194";
reg = <0x53>;
led_rgb {
label = "RGB LED";
color-mapping = <LED_COLOR_ID_BLUE>,
<LED_COLOR_ID_GREEN>,
<LED_COLOR_ID_RED>;
current-limit = <10>;
};
};
}; };
/* I2C1 in datasheet */ /* I2C1 in datasheet */