From patchwork Sun Jul 16 22:05:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 13316390 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qL9uT-00G1wB-06 for linux-arm-kernel@lists.infradead.org; Sun, 16 Jul 2023 22:08:10 +0000 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b74310566cso57621501fa.2 for ; Sun, 16 Jul 2023 15:08:07 -0700 (PDT) From: Markuss Broks Subject: [PATCH 5/7] ARM: dts: exynos: k3g: Add notification LED support Date: Mon, 17 Jul 2023 01:05:07 +0300 Message-ID: <20230716220644.22158-7-markuss.broks@gmail.com> In-Reply-To: <20230716220644.22158-1-markuss.broks@gmail.com> References: <20230716220644.22158-1-markuss.broks@gmail.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+lwn-linux-arm-kernel=archive.lwn.net@lists.infradead.org List-Archive: To: Krzysztof Kozlowski Cc: Markuss Broks , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org 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 --- 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 #include #include +#include #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-cur = /bits/ 8 <0x40>; + max-cur = /bits/ 8 <0x40>; + }; + + led@1 { + reg = <1>; + chan-name = "notification-green"; + color = ; + led-cur = /bits/ 8 <0x40>; + max-cur = /bits/ 8 <0x40>; + }; + + led@2 { + reg = <2>; + chan-name = "notification-blue"; + color = ; + led-cur = /bits/ 8 <0x40>; + max-cur = /bits/ 8 <0x40>; + }; + }; + }; + tsp_vdd: regulator-tsp-vdd-en { compatible = "regulator-fixed"; regulator-name = "tsp_vdd_en";