Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1121053rdb; Fri, 20 Oct 2023 09:00:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFmNjqh32p/s3EaYPtWzFNu3Ixa1mgKNzaWOmEPKtc/ilGVCPPEv6il3KjhMq7OIS1OBvBy X-Received: by 2002:a05:6358:2608:b0:134:c37f:4b64 with SMTP id l8-20020a056358260800b00134c37f4b64mr2424476rwc.30.1697817607081; Fri, 20 Oct 2023 09:00:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697817607; cv=none; d=google.com; s=arc-20160816; b=qlqdehvz1urafTPyj9sTYW+hpfJ1EntwaRyrM8pYzLM4Yk7BVyhqp2g+7gGABgpVLQ /OxGal+ectulk7PPTGxazwz5RXkpy0wTAatYYlZEu/AEgZ01ZR1q/iKf8qjj8XM87hfN CbLWzcNAb1/YYbp4aQr8DjQZA3XIY0AMiiGV3EGOsgsb3ruziAFlC62EaaJUwz8aIt1B w/k8PyRPJ4vCTJXKWF2HWfixfaAknQQxsbzWzsXnQhpdLLuJfJD34QjfscJU7NKLRynK d1FygT9Zq7rQ1I5A09OnZhudPksXxRYum5PhOnEF4Zuq/mOUnz3nX2EANjkHHHajXae+ NOyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=I/ELwCsiGXrnwCpjb9BYHnuLnMMX6xebcQBJDeepx3A=; fh=X1JycuDfSJCTPRE/dhfL7rsHSUuW72S3zF0q+VnXCPQ=; b=zq0U6FttznHffC0M+jfrmuBHGbU04INSrscbg9H+GU7F7OjJBc3mDcYfMtqHZmeST5 aq6AfQvQzZUKvpvOg9fcVQpHSGzjzMSYr3BsVpk5SOyjbd0dMUI4zW2ckSe69vioROt8 pA4hS5k9eTcFdoOW1lnzoWTK9z2x17lMGWfwMwL5i1A49V4QeuNyPXeOSML3CmaSlw+F vF4uqKlQRGh27Bws5wJafK9NrtlwatZ1Am6B4e1rwzU6WRnh8o2hP2M4J7zgI8IF5/Lr Fa6fmtEvmwdKaPIp6x8/jFam0FF9tNqBrjoWGs/KZ4eD2jDVyCKyyQEDEheDSs3bFaO3 fEaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QCIvmeIC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id n190-20020a6327c7000000b00578aedd8e8bsi2179267pgn.716.2023.10.20.08.59.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 09:00:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QCIvmeIC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 93F7C82F9250; Fri, 20 Oct 2023 08:59:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377843AbjJTP7d (ORCPT + 99 others); Fri, 20 Oct 2023 11:59:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377832AbjJTP7a (ORCPT ); Fri, 20 Oct 2023 11:59:30 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8F56D7; Fri, 20 Oct 2023 08:59:28 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7B7BC433C8; Fri, 20 Oct 2023 15:59:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697817568; bh=97TU/jnZR5ds5vVT0qQ3AnubifvbhIl0MYkUouOlAjw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QCIvmeICsJHB/mYYfl5qWvYmPIzGXKDYJ/6Ac38yi8yHQSdluiJXZom2LH+4tSrdZ xDHLWg6HTkERNpXtwaGb3IyJzXcWLQ9/gGNm4jTapf36NhR2KWbyA+DVI7Blf80WgH U/v8BECmFbk1y3W/MZTkGhAIEeKRMNKqcZO5qgx5fNmqec2Ccf9G9wQX+iUh7syCEO ekfnRHZdVxo2mfaWcXomrnNRIp6Ng4mon9PerTUUls4oQzxYuDsQj/5YSuWSOOCXF0 12FtW5YXtvdQTaXC4MtMrpZIt27Rlhtk3nW7vGfWIQJfguzfu8Sm+nWdNyQt5TIrdu kBiMioX0FuJsw== Date: Fri, 20 Oct 2023 16:59:23 +0100 From: Conor Dooley To: Flavio Suligoi Cc: Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] dt-bindings: backlight: mp3309c: remove two required properties Message-ID: <20231020-moonrise-senate-86d0edb2d404@spud> References: <20231020135434.2598578-1-f.suligoi@asem.it> <20231020135434.2598578-2-f.suligoi@asem.it> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MS8zv6ItXa/c4PSq" Content-Disposition: inline In-Reply-To: <20231020135434.2598578-2-f.suligoi@asem.it> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 20 Oct 2023 08:59:43 -0700 (PDT) --MS8zv6ItXa/c4PSq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Yo, On Fri, Oct 20, 2023 at 03:54:33PM +0200, Flavio Suligoi wrote: > The two properties: >=20 > - max-brightness > - default brightness >=20 > are not really required, so they can be removed from the "required" > section. Why are they not required? You need to provide an explanation. > Other changes: >=20 > - improve the backlight working mode description, in the "description" > section > - update the example, removing the "max-brightness" and introducing the > "brightess-levels" property Why is this more useful? Cheers, Conor. >=20 > Signed-off-by: Flavio Suligoi > --- > .../bindings/leds/backlight/mps,mp3309c.yaml | 10 ++++------ > 1 file changed, 4 insertions(+), 6 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/leds/backlight/mps,mp3309c= =2Eyaml b/Documentation/devicetree/bindings/leds/backlight/mps,mp3309c.yaml > index 4191e33626f5..527a37368ed7 100644 > --- a/Documentation/devicetree/bindings/leds/backlight/mps,mp3309c.yaml > +++ b/Documentation/devicetree/bindings/leds/backlight/mps,mp3309c.yaml > @@ -14,8 +14,8 @@ description: | > programmable switching frequency to optimize efficiency. > It supports two different dimming modes: > =20 > - - analog mode, via I2C commands (default) > - - PWM controlled mode. > + - analog mode, via I2C commands, as default mode (32 dimming levels) > + - PWM controlled mode (optional) > =20 > The datasheet is available at: > https://www.monolithicpower.com/en/mp3309c.html > @@ -50,8 +50,6 @@ properties: > required: > - compatible > - reg > - - max-brightness > - - default-brightness > =20 > unevaluatedProperties: false > =20 > @@ -66,8 +64,8 @@ examples: > compatible =3D "mps,mp3309c"; > reg =3D <0x17>; > pwms =3D <&pwm1 0 3333333 0>; /* 300 Hz --> (1/f) * 1*10^9 */ > - max-brightness =3D <100>; > - default-brightness =3D <80>; > + brightness-levels =3D <0 4 8 16 32 64 128 255>; > + default-brightness =3D <6>; > mps,overvoltage-protection-microvolt =3D <24000000>; > }; > }; > --=20 > 2.34.1 >=20 --MS8zv6ItXa/c4PSq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZTKj2wAKCRB4tDGHoIJi 0h3oAQDiYRQgj//gRS3WJkhCjXAo1MV7AiztEk/V8hUK9kBEWQEAi0UKA0/tVacJ Rnh8+uI+acOi2u2QOnHfJRUBVK5PiQk= =7rd9 -----END PGP SIGNATURE----- --MS8zv6ItXa/c4PSq--