From: Markuss Broks <markuss.broks@gmail.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Markuss Broks <markuss.broks@gmail.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 5/7] ARM: dts: exynos: k3g: Add notification LED support
Date: Mon, 17 Jul 2023 01:05:07 +0300 [thread overview]
Message-ID: <20230716220644.22158-7-markuss.broks@gmail.com> (raw)
In-Reply-To: <20230716220644.22158-1-markuss.broks@gmail.com>
This device has a Texas Instruments LP5562 LED controller
which controls the LEDs which are used as notification lights.
It has three colors which can be combined, supports pulse mode
and other various features.
Signed-off-by: Markuss Broks <markuss.broks@gmail.com>
---
arch/arm/boot/dts/exynos5422-samsung-k3g.dts | 47 ++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts
index b3576a745054..813dbf0438de 100644
--- a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts
+++ b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts
@@ -10,6 +10,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/leds/common.h>
#include "exynos5800.dtsi"
#include "exynos5422-cpus.dtsi"
@@ -131,6 +132,52 @@ touchkey@20 {
};
};
+ i2c-led {
+ compatible = "i2c-gpio";
+
+ sda-gpios = <&gpy3 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+ scl-gpios = <&gpy3 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+ i2c-gpio,delay-us = <2>;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ lp5562@30 {
+ compatible = "ti,lp5562";
+ reg = <0x30>;
+
+ clock-mode = /bits/ 8 <2>;
+ label = "notification-leds";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led@0 {
+ reg = <0>;
+ chan-name = "notification-red";
+ color = <LED_COLOR_ID_RED>;
+ led-cur = /bits/ 8 <0x40>;
+ max-cur = /bits/ 8 <0x40>;
+ };
+
+ led@1 {
+ reg = <1>;
+ chan-name = "notification-green";
+ color = <LED_COLOR_ID_GREEN>;
+ led-cur = /bits/ 8 <0x40>;
+ max-cur = /bits/ 8 <0x40>;
+ };
+
+ led@2 {
+ reg = <2>;
+ chan-name = "notification-blue";
+ color = <LED_COLOR_ID_BLUE>;
+ led-cur = /bits/ 8 <0x40>;
+ max-cur = /bits/ 8 <0x40>;
+ };
+ };
+ };
+
tsp_vdd: regulator-tsp-vdd-en {
compatible = "regulator-fixed";
regulator-name = "tsp_vdd_en";
--
2.41.0
next prev parent reply other threads:[~2023-07-16 22:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-16 22:05 [PATCH 0/7] Add various peripheral support for K3G Markuss Broks
2023-07-16 22:05 ` [PATCH 1/7] ARM: dts: exynos: k3g: Add WiFi card support Markuss Broks
2023-07-19 9:04 ` Krzysztof Kozlowski
2023-07-16 22:05 ` [PATCH 2/7] ARM: dts: exynos: Add GPIO keys support for k3g Markuss Broks
2023-07-16 22:05 ` [PATCH 2/7] ARM: dts: exynos: k3g: Add GPIO keys support Markuss Broks
2023-07-19 9:04 ` Krzysztof Kozlowski
2023-07-16 22:05 ` [PATCH 3/7] ARM: dts: exynos: k3g: Add fuel gauge support Markuss Broks
2023-07-16 22:05 ` [PATCH 4/7] ARM: dts: exynos: k3g: Add touchkeys support Markuss Broks
2023-07-16 22:05 ` Markuss Broks [this message]
2023-07-19 9:17 ` [PATCH 5/7] ARM: dts: exynos: k3g: Add notification LED support Krzysztof Kozlowski
2023-07-16 22:05 ` [PATCH 6/7] ARM: dts: exynos: k3g: Document the devices which are not supported Markuss Broks
2023-07-19 9:18 ` Krzysztof Kozlowski
2023-07-16 22:05 ` [PATCH 7/7] ARM: dts: exynos: k3g: Add display support Markuss Broks
2023-07-19 9:19 ` Krzysztof Kozlowski
2023-07-19 9:03 ` [PATCH 0/7] Add various peripheral support for K3G Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230716220644.22158-7-markuss.broks@gmail.com \
--to=markuss.broks@gmail.com \
--cc=alim.akhtar@samsung.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).