Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1762126pxy; Thu, 29 Apr 2021 14:04:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFWCij2+XFS17wL0NYvpTjELRxFj9ONukCeTruJAIvjO391NRYe3/nPqU/VbjSpofrOXd8 X-Received: by 2002:a17:906:4098:: with SMTP id u24mr490973ejj.228.1619730294374; Thu, 29 Apr 2021 14:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619730294; cv=none; d=google.com; s=arc-20160816; b=EXSxziWQQA0YveA7idbi+e5cpRmvMRlDoHVlxmitb6lIRniGpvqyWFW0feydrovELe pB07gTk3iauYRzQxTZqDlI4Tc+RBP4Syjn6K2OsHo+NDY6XB0uUBbzIXuy9eJZGiGgBU cppESgSdFnJ/iOKzF4mdGI+fs/f0hw2Cs2pkEOrkWDHrXYfErie4wNXF2qG75rbaizMS VuNurb9fhRjt8MEdDoSIGL1ErqDZ1dlMlF+Aw8JMZq4d28S3oINbO0mI8scWM/xzFo4h o57rYkbNdKFiWfYb4DCiFXUI15BH+kwizrfGCFgfnaqSsKBOEGUUW6yngL56clrjtfZ+ 5DwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xRU2yBtauvlwmgJ+pf3kg4KpnBtBpDuxDmDITGaelXM=; b=YPsy1wSR2FVKc2QKKe8KmIdJtmoob2QzdBdlxz9LsR+F50wekw07zg1AGwdGRoMFFb XTBNULv3JG0ksT5eR32P2U/So1+dOo4gukfu/p47viwA3fS2kOTki837KBkHvEY06zRc XDgtWh6yBiNGwWUgLFravwAv7Y09aR2qVLSGsUIwpj0S/UYeV2pL947syTrAuX9rbRSj xCsWSRYAmSGhLTBAtFHbl4nshbPMIzRMwrdqHFKeL82GlMbOvrwZncooX9II9jZDouxz DimZ7IFzVMyzlBwncCbWt3pXXR7GzvDWVsh63MHqGhHmgwwp2Tur/6oiyLP2TQMx46Xz dRgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MxcB5px7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g14si3822274edm.540.2021.04.29.14.04.28; Thu, 29 Apr 2021 14:04:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MxcB5px7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233293AbhD2VEX (ORCPT + 99 others); Thu, 29 Apr 2021 17:04:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233285AbhD2VEV (ORCPT ); Thu, 29 Apr 2021 17:04:21 -0400 Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B73FC06138C for ; Thu, 29 Apr 2021 14:03:33 -0700 (PDT) Received: by mail-qv1-xf32.google.com with SMTP id h3so32581287qve.13 for ; Thu, 29 Apr 2021 14:03:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xRU2yBtauvlwmgJ+pf3kg4KpnBtBpDuxDmDITGaelXM=; b=MxcB5px72C8+5vJCXXHc+ftOlbOvLaOIZCcSYXwDudiJ5T6uRWCF3IbA/q7i0v05H4 b5+Xhyg/FMAavwP1EiO0TTX+zk0MdwRoYHVLZbsieoDElYIszlwp9kC2cL2arlNwdmht 5eSBc+Cb7eohKUohNBZmGo0StBZWqhQKL+4x4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xRU2yBtauvlwmgJ+pf3kg4KpnBtBpDuxDmDITGaelXM=; b=ZEk1Hnw+58ksMywblnMewbOwfiyuNgvqDK6/EvADGtmYkMntB0CywosyPP3si6byI1 QQ3LLRCzP36Gj2/jKbPv16J3+ukGQTE6/CZ7BNkG58/pnn4MiPoltjnDy10hl6/J4b4o yfja5xC+uJ/gHaygvQz38egIq5z3HfMOLIv8uhgtzjo8HZUm7FYgchdtULVUVFkB+2cK asK/n46RINq7VfxpbRhNIlaVkEZQAXonN1/RzL6u6Cq3fSvz3bJ17qLxE+PzGPpbnu/i HycBJ+ilp3paYSEL25MAAjeH1UCt2C5kP5hMf6w38J5TKrw5k2C5J2sko4eSYfJWqY5P 3eBw== X-Gm-Message-State: AOAM5315mpo+lgUcsOW5Mdz0wXI82qLolab0Z5wt8vpPt5m054iMSfYc wA8emU5E+i/3IvmjfQKttZNtG5Ap4V/u3w== X-Received: by 2002:a0c:ebc9:: with SMTP id k9mr1631091qvq.32.1619730211906; Thu, 29 Apr 2021 14:03:31 -0700 (PDT) Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com. [209.85.219.178]) by smtp.gmail.com with ESMTPSA id z17sm843559qtf.10.2021.04.29.14.03.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Apr 2021 14:03:31 -0700 (PDT) Received: by mail-yb1-f178.google.com with SMTP id 82so80362193yby.7 for ; Thu, 29 Apr 2021 14:03:30 -0700 (PDT) X-Received: by 2002:a05:6902:4e2:: with SMTP id w2mr2101815ybs.79.1619730210214; Thu, 29 Apr 2021 14:03:30 -0700 (PDT) MIME-Version: 1.0 References: <1619416756-3533-1-git-send-email-rajeevny@codeaurora.org> <1619416756-3533-2-git-send-email-rajeevny@codeaurora.org> <20210429180435.GA1385465@robh.at.kernel.org> In-Reply-To: <20210429180435.GA1385465@robh.at.kernel.org> From: Doug Anderson Date: Thu, 29 Apr 2021 14:03:18 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [v3 1/2] dt-bindings: backlight: add DisplayPort aux backlight To: Rob Herring Cc: Rajeev Nandan , dri-devel , linux-arm-msm , freedreno , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , Rob Clark , mkrishn@codeaurora.org, Kalyan Thota , "Kristian H. Kristensen" , Abhinav Kumar , Sean Paul Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Apr 29, 2021 at 11:04 AM Rob Herring wrote: > > On Mon, Apr 26, 2021 at 11:29:15AM +0530, Rajeev Nandan wrote: > > Add bindings for DisplayPort aux backlight driver. > > > > Changes in v2: > > - New > > > > Signed-off-by: Rajeev Nandan > > --- > > .../bindings/leds/backlight/dp-aux-backlight.yaml | 49 ++++++++++++++++++++++ > > 1 file changed, 49 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/leds/backlight/dp-aux-backlight.yaml > > > > diff --git a/Documentation/devicetree/bindings/leds/backlight/dp-aux-backlight.yaml b/Documentation/devicetree/bindings/leds/backlight/dp-aux-backlight.yaml > > new file mode 100644 > > index 00000000..0fa8bf0 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/leds/backlight/dp-aux-backlight.yaml > > @@ -0,0 +1,49 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/leds/backlight/dp-aux-backlight.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: DisplayPort aux backlight driver bindings > > + > > +maintainers: > > + - Rajeev Nandan > > + > > +description: > > + Backlight driver to control the brightness over DisplayPort aux channel. > > + > > +allOf: > > + - $ref: common.yaml# > > + > > +properties: > > + compatible: > > + const: dp-aux-backlight > > + > > + ddc-i2c-bus: > > + $ref: /schemas/types.yaml#/definitions/phandle > > + description: > > + A phandle to the system I2C controller connected to the DDC bus used > > + for the DisplayPort AUX channel. > > + > > + enable-gpios: > > + maxItems: 1 > > + description: GPIO specifier for backlight enable pin. > > + > > + max-brightness: true > > + > > +required: > > + - compatible > > + - ddc-i2c-bus > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + backlight { > > + compatible = "dp-aux-backlight"; > > + ddc-i2c-bus = <&sn65dsi86_bridge>; > > + enable-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>; > > So the DDC bus is connected to a backlight and also a panel? This > binding is not reflecting the h/w, but rather what you want for some > driver. > > There's only one thing here and that's an eDP panel which supports > backlight control via DP aux channel. You can figure all that out from > the panel's compatible and/or reading the EDID. > > You might also be interested in this thread: > > https://lore.kernel.org/lkml/YIKsDtjcIHGNvW0u@orome.fritz.box/ I think Rajeev needs to rework everything anyway as per: https://lore.kernel.org/r/87zgxl5qar.fsf@intel.com ...but you're right that it makes sense not to model the backlight as a separate node in the device tree. The panel driver can handle setting up the backlight. -Doug