From patchwork Wed Aug 31 08:02:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 12960506 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 35E91ECAAD3 for ; Wed, 31 Aug 2022 08:12:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+IwuTHCjsypazncn4yEt426Ehchlrhlzqhts6aW5CC4=; b=QJiKn0PGnevdhA gChyOK2i/rlAxvMIURCcL1gBan9aHe7ag34sOglR2ZjiJTvigo/qTkWQUjh2B9l/2lqm26+wRTMj1 js+NY24ST5HcEYkZtlj91UguJWaBKrCyiRyJ0/g7Stg5b+HCi2mz22kYPOawo7HyH7Vfh6MLPeUZ0 tMmr91/uivZ1Qo92IPODoxi+UTRXQkjOP/ac2PasFdXEdb2Ju2TgSWjXrLAYDb3LnD70/vCwE0hSt yE3uJNR4RhPwWUZIsQSlwkw74CGaDWIJ08qOjY52Ok/G/NUBweSffhw0WZxjgULlibJ3EolLx8ZIx A/T+up2WCawpeQSn2oGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTIoS-004pYm-UG; Wed, 31 Aug 2022 08:11:05 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTIhF-004mrl-9q for linux-arm-kernel@lists.infradead.org; Wed, 31 Aug 2022 08:03:42 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id CAF5EDF5D1; Wed, 31 Aug 2022 01:03:33 -0700 (PDT) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eHVmjyzaFMHl; Wed, 31 Aug 2022 01:03:33 -0700 (PDT) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1661933013; bh=7qHCaOfhLwiXbXUxRw2B/DGm0lbeC8SuRRq3JSV3d7o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gMWhbEiZzi7b6oOqzzFXS7btCUFRKtoEJoJZNhU0briwOSdg/jmeuWPwgl4G3+RzU z5FhcC122drJ1Ym5hMvnR0hV5QU4Z31AFJNcG9QWmFlwelcGHRS0h/jfUJ877Px+DN fhpiayvTxieHo/9WqgVPknAwFWY8ft0GHAXTWcB11iyBoOBRYt6shzwjXQM6JYBq4o nEAwK4jMmbkKvGT4pOI+WQUBTd5ix9yPopjwi8EcvbkZH95m0Dufe2r8dYJ8h98jA/ HYL0Xv1eu54Ri0vVR+o/98hPbSJeRTP8DPxSsD7NNcQ37Sg/pGJX/RzGaVjz807SSM TQxQKV6pbWLjQ== To: festevam@gmail.com, shawnguo@kernel.org Cc: martin.kepplinger@puri.sm, devicetree@vger.kernel.org, kernel@pengutronix.de, kernel@puri.sm, krzk@kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, robh@kernel.org, =?utf-8?q?Guido_G=C3=BCnther?= Subject: [PATCH v1 2/5] arm64: dts: imx8mq-librem5: add RGB pwmleds Date: Wed, 31 Aug 2022 10:02:58 +0200 Message-Id: <20220831080301.1092737-3-martin.kepplinger@puri.sm> In-Reply-To: <20220831080301.1092737-1-martin.kepplinger@puri.sm> References: <20220831080301.1092737-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220831_010337_496912_ABA082B0 X-CRM114-Status: UNSURE ( 9.02 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Guido Günther Describe the RGB notification leds on the Librem 5 phone. Use the common defines so we're sure to adhere to the common patterns, use predefined led colors and functions so we're being warned in case of deprecations. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- .../boot/dts/freescale/imx8mq-librem5.dtsi | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi index 0626e4194d958..bbf49e419b498 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -7,6 +7,7 @@ #include "dt-bindings/input/input.h" #include +#include #include "dt-bindings/pwm/pwm.h" #include "dt-bindings/usb/pd.h" #include "imx8mq.dtsi" @@ -54,6 +55,31 @@ key-vol-up { }; }; + pwmleds { + compatible = "pwm-leds"; + + blue { + function = LED_FUNCTION_STATUS; + color = ; + max-brightness = <248>; + pwms = <&pwm2 0 50000 0>; + }; + + green { + function = LED_FUNCTION_STATUS; + color = ; + max-brightness = <248>; + pwms = <&pwm4 0 50000 0>; + }; + + red { + function = LED_FUNCTION_STATUS; + color = ; + max-brightness = <248>; + pwms = <&pwm3 0 50000 0>; + }; + }; + reg_aud_1v8: regulator-audio-1v8 { compatible = "regulator-fixed"; pinctrl-names = "default";