Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4111308rwb; Tue, 6 Sep 2022 02:42:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR7xX6YrJhnKEMvfK3IQ5JIkFP4H+Nm9/QctdSVdDrq1k6QiNPNjAKYEzTNUKfLK77BrxbW5 X-Received: by 2002:a17:907:e8c:b0:73d:d8c1:8b48 with SMTP id ho12-20020a1709070e8c00b0073dd8c18b48mr37210715ejc.615.1662457378473; Tue, 06 Sep 2022 02:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662457378; cv=none; d=google.com; s=arc-20160816; b=P/wb3aQyP/dshX2hYBK6mPOB8fwb0uWsDVZ/wsJX3DD8PWPYvAhGKCOQyuE7oDhPoJ WGQx5gDHyZq+G4xuoj0dshfEXh8pHuT0IdgKUkJw1ERi/DmQRt1xE3rJksSjCHKpT44t BEkiX3l9ApfdxN6gJJq40XsXQNbFiuF2ycbdp2Tv09IoE1V4cI7sk2QIvkPrCc9YsBol eyzEIWgGmQsR9Ow1UUKFyxmH97iZsqtAHNrcS5a0BnsDU5R2+z9Lj94gcTxX4tREgHcU MCYtZSUewM7DMO4fEY7d8J4Sv4HDtKImnNhsiVgQ177aJmU4kEfJ8p+9lNW6DOY543Wo 6XOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=8SHIU3mW9MXIg4heWeGX4mWOogF29zRAR22i6C80XFw=; b=Q7JOpjnAcvpGhmQTvNgayK7n3MmRKsEGdOPX6X6tIHg5ES37iae/DuwJZVYPWRW17h 0P6j5EsRO9Kw0Z75Y+yItfIS3L/lh3PHO7yjeQo4EZPru40ArlFRWY1PxeR4jmdi2WnV 95+BqpNsKToOgvkQz5h1gwTfcF9dcf3IRnUUtDhfBJKMcfClLWnnaAJk+3PFZMNvOX0E gI5Qfw4+emld8dVRizQEMjkXqAjGoHkvU0dGnVzuTpa8ra/X6kAInOm5VBEq2748BGZb Gzqs+FsGG15zvbdy4zLzsDbq/qe36/lmQc4aM2r3ncMd20VzwygbZn9Vl3emoMFDALar LnCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=ZYECbAe1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q17-20020a056402249100b0044e9a38eb08si3235849eda.107.2022.09.06.02.42.33; Tue, 06 Sep 2022 02:42:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=ZYECbAe1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233391AbiIFItk (ORCPT + 99 others); Tue, 6 Sep 2022 04:49:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238783AbiIFIsI (ORCPT ); Tue, 6 Sep 2022 04:48:08 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B02179638; Tue, 6 Sep 2022 01:45:34 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 9A9F61C0001; Tue, 6 Sep 2022 10:45:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1662453931; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8SHIU3mW9MXIg4heWeGX4mWOogF29zRAR22i6C80XFw=; b=ZYECbAe1b3KFoW1tl2/Ad23VJ0NnF/bvOG92+0pXf7r6u1ejIBgwWw0KFkmUlvQIucezWt e4ogmA5P73EnQG4c5ywuDp1E6zq/kTJxgJ0uTD8QSUS217kB8sBJ/gJsRlhwtjyyBtGVID EiD45S3UohMN5Yv3Ar3fqrCvxvRlwlo= Date: Tue, 6 Sep 2022 10:45:31 +0200 From: Pavel Machek To: Martin Kepplinger Cc: festevam@gmail.com, shawnguo@kernel.org, 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, Guido =?iso-8859-1?Q?G=FCnther?= Subject: Re: [PATCH v2 2/6] arm64: dts: imx8mq-librem5: add RGB pwm notification leds Message-ID: <20220906084531.GA29911@duo.ucw.cz> References: <20220902084216.1259202-1-martin.kepplinger@puri.sm> <20220902084216.1259202-3-martin.kepplinger@puri.sm> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <20220902084216.1259202-3-martin.kepplinger@puri.sm> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Guido G=FCnther >=20 > 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. I'd like LED lists to be cc-ed on patches like this, so that we can keep userland API consistent. In particular, RGB LED is very common feature on the phones, and it would be good to have it consistent accross them. Can you take a look at Documentation/leds/well-known-leds.txt, decide if your current API is suitable, and update the file so that we get the consistency? Thanks, Pavel > + led-controller { > + compatible =3D "pwm-leds"; > + > + led-0 { > + function =3D LED_FUNCTION_STATUS; > + color =3D ; > + max-brightness =3D <248>; > + pwms =3D <&pwm2 0 50000 0>; > + }; > + > + led-1 { > + function =3D LED_FUNCTION_STATUS; > + color =3D ; > + max-brightness =3D <248>; > + pwms =3D <&pwm4 0 50000 0>; > + }; > + > + led-2 { > + function =3D LED_FUNCTION_STATUS; > + color =3D ; > + max-brightness =3D <248>; > + pwms =3D <&pwm3 0 50000 0>; > + }; > + }; > + > reg_aud_1v8: regulator-audio-1v8 { > compatible =3D "regulator-fixed"; > pinctrl-names =3D "default"; > --=20 > 2.30.2 --=20 People of Russia, stop Putin before his war on Ukraine escalates. --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYxcIqwAKCRAw5/Bqldv6 8lCXAJ4x2g8SJqp5mrj7kCc6IKN20hswnwCfUZFTxFlQgSz8OdLdLfwln3PRm70= =EuwN -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--