Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2775807rwd; Mon, 29 May 2023 00:09:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Vspgp5TwMr10ho86/Z/+f6/IGbuk+TUoTcqnXdfBGuiBXBiUCNhlCISIs8u3yf8SPZOJl X-Received: by 2002:a05:6a20:144f:b0:10b:ecde:2911 with SMTP id a15-20020a056a20144f00b0010becde2911mr8348140pzi.27.1685344161358; Mon, 29 May 2023 00:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685344161; cv=none; d=google.com; s=arc-20160816; b=QcPNmxqqQ2O5DLZe2KW8byhAH9aKaz29TttZ1yN3+bpb1bG8ji9dfq8XFOZeF+czdf GoCPb2vyZ7v5AE64odCV5dRpMQQ3udgzcm4wUkf4VBd/YxB57GQNLi41vl3WO4UxtZLJ raIkhnhdxUAuKa+1is4lAUpu4N6BaNMmfxIdI2TORBtjbZZfh1kdYN9kN+HGK1oQvgoV 9tyKnrDyFvX9gucbk8mfCylH2FwychHOZuFGuCq5S/WZcN8fxYJtPa1QflcxvvP5LGTS AVA7nh7/8V/g02f9hpXAVsuELSd/zcdvmDJOH5FlouaY/opurDLdg+41pQadAmWC62ju ZN3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=nYSmjUHKY13e/olgfNCe2jCtnFDy/mhRCAgKdXqqosc=; b=Cpe2JoBfXhZ9uB7ST8LHkhIcv9j3VEwkUoqVOnz0l+HGu1g/V1ZXJcVNl54Qfp664A O/K4S/wG9xn2/l4XtNE6isjeVlC7JT+4A9iO5jmtfn8tR0bn9/WTaye66I6DN1TDMv4c psrMWeduZmGJoM5xzEn9H/u493xVRTiDP0HG0kNcabmcaqaiGLq8PkyPdR63NOImhtt3 TT4O8hzAmrI8BlHWburwZsJydRim7ZbrvpQS6kuFT3OWOyHe6JJmYOvFBpp+UiNjkaML iKSOnWkf1vtvaUbSIqJ2iEjT0bmk+/MA5Zf1OUknqESaJwM7qU9S64R1IkIqMba4y5qs /dRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shruggie-ro.20221208.gappssmtp.com header.s=20221208 header.b=qQt0qUfG; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a17090ac40200b0023d22d0f0fdsi11480441pjt.19.2023.05.29.00.09.08; Mon, 29 May 2023 00:09:21 -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=@shruggie-ro.20221208.gappssmtp.com header.s=20221208 header.b=qQt0qUfG; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229807AbjE2HDg (ORCPT + 99 others); Mon, 29 May 2023 03:03:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230389AbjE2HDc (ORCPT ); Mon, 29 May 2023 03:03:32 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8AA7D2 for ; Mon, 29 May 2023 00:03:19 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4f37b860173so3359069e87.2 for ; Mon, 29 May 2023 00:03:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shruggie-ro.20221208.gappssmtp.com; s=20221208; t=1685343798; x=1687935798; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nYSmjUHKY13e/olgfNCe2jCtnFDy/mhRCAgKdXqqosc=; b=qQt0qUfGjmzTSnZ0DVjIHfM3Dz6z6pXCAgSw3KcgmtqPxppthlZqYCiFywwtPwNAT2 hJNruzSJeHsISwuAjYUxtoZZP6EDSVvYqUXV3Z+VjYkmZDwacyEQTw4JItQBL38LThIe Rj0kAh0lYssXHSmIIW80Rt8szL+kdeEX4Bw/IdqWCXeZadudPPR9devrh3IwfKVSGjuK hOtN+g0wmjGlu4gCvMBM4OwD5996boLxO2E0vl+7vo1cpFQ1/3QIaVvy6TS5Bk0a3GFa iCyzwddv8vJRzibyFBfP+nJ1NnvlG8iycusk325s+0y+CHC7HTsEj32jterZVkQvqYe4 fupg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685343798; x=1687935798; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nYSmjUHKY13e/olgfNCe2jCtnFDy/mhRCAgKdXqqosc=; b=KQXiqPMcfGOXQbJFRfOComkzBA9fhZ9+JW1PIcDeVgPn3rNNd2fgITNq5XFRC/mG+G HCvfz1XuXtrUMk6G7mjS0/xPQx031hsWd5Vuz61MYh9zwNkkjk05zNhAikf9MNipcmws eWL0CSSGi9PbVtCaZv5oPaQ9w8omytBnmhP/x7eZnJZjmR8Kcc8rOdE0VwkRpIcgz5M2 +fDW6zD0O9Avbgpe85KYKmRPoXhAqYWq9KlhSCv6EEp3OFuU/dxDUtEkYfLcH0P0MqHV W34wEgMz7vU9can3JahsYBpIQ9ZvXiRwMeLCwGtadtOP8GYpVGE10+E1PcFnHdmHKf7V ghtA== X-Gm-Message-State: AC+VfDw7gbTW6qGWQoqAnguGKUdU8errecO60iuYlUp8BPVmSpk5tEQf zJ/3ENbeazMVsp4gUF7QehNuVegW3vPXZiyjuVI4KQ== X-Received: by 2002:ac2:5dfc:0:b0:4e8:44e3:f3da with SMTP id z28-20020ac25dfc000000b004e844e3f3damr3631341lfq.39.1685343797813; Mon, 29 May 2023 00:03:17 -0700 (PDT) MIME-Version: 1.0 References: <20230519200520.10657-1-alex@shruggie.ro> <20230519200520.10657-2-alex@shruggie.ro> <20230526102032.GB626291@aspen.lan> In-Reply-To: <20230526102032.GB626291@aspen.lan> From: Alexandru Ardelean Date: Mon, 29 May 2023 10:03:06 +0300 Message-ID: Subject: Re: [PATCH 2/2] dt-bindings: backlight: document new property default-brightness-level To: Daniel Thompson Cc: dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, lee@kernel.org, jingoohan1@gmail.com, pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, deller@gmx.de, Yannick Fertre , Philippe CORNU Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Fri, May 26, 2023 at 1:20=E2=80=AFPM Daniel Thompson wrote: > > On Fri, May 19, 2023 at 11:05:20PM +0300, Alexandru Ardelean wrote: > > From: Yannick Fertre > > > > Add documentation for new default-brightness-level property. > > > > Reviewed-by: Philippe CORNU > > Signed-off-by: Yannick Fertre > > Signed-off-by: Alexandru Ardelean > > --- > > > > Link to original patch: > > https://github.com/STMicroelectronics/linux/commit/c4067d7bd883c6fa14= ffd49892c4ce663cdafe98 > > > > .../bindings/leds/backlight/gpio-backlight.yaml | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/leds/backlight/gpio-back= light.yaml b/Documentation/devicetree/bindings/leds/backlight/gpio-backligh= t.yaml > > index 584030b6b0b9..b96c08cff0f0 100644 > > --- a/Documentation/devicetree/bindings/leds/backlight/gpio-backlight.y= aml > > +++ b/Documentation/devicetree/bindings/leds/backlight/gpio-backlight.y= aml > > @@ -23,6 +23,15 @@ properties: > > description: enable the backlight at boot. > > type: boolean > > > > + default-brightness-level: > > + description: > > + The default brightness level (index into the array defined by th= e > > + "brightness-levels" property). > > gpio-backlight does not have a brightness-levels array property! > > I think it is also necessary to improve the docs of both properties to > distinguish between the meaning of default-on and > default-brightness-level. The result of setting default-on and > default-brightness level to zero is that the GPIO will be off (this is > correct behaviour but hard to figure out from the current text). > > default-on is a control that can "enable" the backlight at boot when it > is not linked to a display in the DT (e.g. it is mostly for legacy > cases). When the backlight is linked to a display then the backlight > enable state will be automatically linked to the display enable state > instead. > > default-brightness-level is useful for handling displays that > are still readable with the backlight off (e-ink, reflective/ > transflexive LCD, etc), otherwise is should be absent or set to 1. ack will do in V2 thanks > > > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + > > +dependencies: > > + default-brightness-level: [ "brightness-levels" ] > > As above, depending on brightness-levels doesn't make any sense here. > > > Daniel.