Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ do_install () {
install -d ${D}/${systemd_unitdir}/system
install -m 644 ${WORKDIR}/imx-suspend.service ${D}/${systemd_unitdir}/system/imx-suspend.service
install -m 644 ${WORKDIR}/imx-resume.service ${D}/${systemd_unitdir}/system/imx-resume.service
install -d ${D}/etc/modprobe.d/
echo "blacklist lp5562-leds" > ${D}/etc/modprobe.d/blacklist.conf
}

SYSTEMD_SERVICE_${PN} = "imx-suspend.service imx-resume.service"

FILES_${PN} += " /etc/modprobe.d/blacklist.conf"
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
From 2c4ae43c9206105991eb41d190b700f1e2a042ca Mon Sep 17 00:00:00 2001
From: Alexandru Costache <[email protected]>
Date: Wed, 9 Sep 2020 06:41:31 +0200
Subject: [PATCH] imx8mm-var-dart-plt: Add LED to dts

Upstream-status: Inappropriate [configuration]
Signed-off-by: Alexandru Costache <[email protected]>
---
arch/arm/dts/fsl-imx8mm-var-dart.dts | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)

diff --git a/arch/arm/dts/fsl-imx8mm-var-dart.dts b/arch/arm/dts/fsl-imx8mm-var-dart.dts
index e4e9525..32d5f16 100644
--- a/arch/arm/dts/fsl-imx8mm-var-dart.dts
+++ b/arch/arm/dts/fsl-imx8mm-var-dart.dts
@@ -395,6 +395,31 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c4>;
status = "okay";
+
+ leds0: lp5562@30 {
+ compatible = "ti,lp5562-leds";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x30>;
+
+ blue@0 {
+ reg = <0x2>;
+ label = "blue";
+ ti,led_current = <0xC8>; /* 20ma */
+ };
+
+ green@1 {
+ reg = <0x3>;
+ label = "green";
+ ti,led_current = <0xC8>; /* 20ma */
+ };
+
+ red@2 {
+ reg = <0x4>;
+ label = "red";
+ ti,led_current = <0xC8>; /* 20ma */
+ };
+ };
};


--
2.7.4

Loading