Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1417995lqz; Mon, 1 Apr 2024 06:03:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyyeQfO3NmYMBr8LkDukAE3KfZuxzZEsQQYL+CCgeF+jLT+4K9sUwtvEUD+p9XoH9zVkFartaIBdiMPsm/NkrpDKfno2rukgs4VXQoaw== X-Google-Smtp-Source: AGHT+IGdWHG0/PUBZ/8iaq7mK5FyfkhSEkUvH7O4x9HCTX9cbE/3uqz+IAygTOzYrrMRteh3w1pK X-Received: by 2002:a05:622a:1111:b0:432:f65a:50c9 with SMTP id e17-20020a05622a111100b00432f65a50c9mr1576878qty.3.1711976638499; Mon, 01 Apr 2024 06:03:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711976638; cv=pass; d=google.com; s=arc-20160816; b=P6+fdFb66jlX07uRfBWWDho/V7Od7UgTVDWtLSeD9p+QQdiI5CuCzLoHPD1rZZ0/ki PSfSrt4igGU3bJ+PWwPcxt6HExs6hMCYq3n1ftxg01kAC6ywY2UImY4cWRpfDqjvnJb1 jFUX4ClpDLTybCQ0uNh6s4mFszQtgG4uUdI8Tpp6QN3p9v45960ZMiwtDefUZunbzMIK aRFhawlMAtPo+nMUze+vf+nFLqnCt5I5u5/TqplTcn/+GqpOYehzl7DuR0yhozXQUL2i O9Vas4uzGCXsXR+R1XhSUgdnbNarGZZ0FcfwVi+H3AwrXAacyMfKQS2yA0rqrP1BOnco V7NQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Yo9Qvg4DGo9pDtlV8nCaJc0tKhno9sG0BvyBT+htag0=; fh=A9kocip35fC610EdbzvfbwxNLc9tYHTNvUj9GTCTXcc=; b=C2odrXznjLpMfX0gERE1UTEGiwZvcsCkwd1cma40CyE3bmAoF1EgALIe7bJdJNkUhw eRixRaQiMgqKK+I7/Zigpd/yuWJU0YLE39tQbSvulXZh/SectwKmgyul8vEIalcAXkuc qw435FLzpia+hqCMQecs0vf/gNwsp56OpZL5yBH2018H2f4X2MapR7mJy/ayboRSIJrh rP2h7mZt2JZtrqztftszOhcaaXwJPW+TnJAHLVLBM+6dq0JZ2WMCIiRLUDM/e79JybXU 5DYBkQRtI3zHsnenf2kr/g0zmHHZxFYrfbeUsd6/UQIUQWpK+UuXG72zVFbMdCL2VQ1S xRjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t9tDxF+B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-126663-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126663-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z17-20020a05622a029100b004313c5fadd1si9632414qtw.33.2024.04.01.06.03.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 06:03:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126663-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t9tDxF+B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-126663-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126663-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2A85E1C20F2C for ; Mon, 1 Apr 2024 13:03:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CF333EA78; Mon, 1 Apr 2024 13:03:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="t9tDxF+B" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46B8C1E888; Mon, 1 Apr 2024 13:03:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711976630; cv=none; b=efrPEvKDrnglGvmhYf0rmq1tKwf/SbKb7zMjDo5C68QfVKD3R0yBaWPfpA0EAzgeZZwzF62Hysmzmursy/a8YlN9VAGMCOVAUp7IOetpjEXXh4LgmmqegPFq5XSKetphAP70b8y0e6G2uvaC+lFEE+1s7/GHTWa3ZIVM/tTN+eg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711976630; c=relaxed/simple; bh=6IX8cDFUlSsk6IxtbhcF68yxgznuBZCAUSinqNSI60Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TL2whoBUq9rL4IQyYOEjNJ9s8cLnvFwJMvl0v+OSvQ2V3IpgOpGRGmxZFB6KjxMz0mVrex/cMx+hvt9OJ4jR6ygcfZLPJXzdFGk1r3htJ7L24qneeWTAv7KKH5t31glw6+t8c43KZFF2spw5x6qa/s/Nnt+tDI9Q2Q0cJzwHw4M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=t9tDxF+B; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91F3AC43390; Mon, 1 Apr 2024 13:03:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711976629; bh=6IX8cDFUlSsk6IxtbhcF68yxgznuBZCAUSinqNSI60Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=t9tDxF+B/kICX01tgWTInIvIoSP9ORRRD9KOxwP84iHOUi0SKK/Ie42RUnp7t63FN HVqjkZ5KlC6r9xKWCl/PeAJMG/KIh5KXuih4+kiHghdkd8/st153SMr/ZNhz+ZL23p D6EuKGrsL+Ai1zBEWIcpOvcddijki3UnjLotM8odP4gXTf7VBLo8n3OihiTeVz6O/V 93Vr1FFFPxCnRAvBkZ9v758Qjjkohp6VSPznDAbcnaGecnpbMEcO5WLl7vGxIXqsxs CUw4xRe+JpxokeW//OF/xQU0Z3nndTfOdl9EVWPpGm58X/UdaltgtXdup/n47CR6ru 8Mu87fvXgThzg== Date: Mon, 1 Apr 2024 08:03:47 -0500 From: Rob Herring To: Patrick Gansterer 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 Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Krzysztof Kozlowski , Conor Dooley , Helge Deller , Sam Ravnborg , Krzysztof Kozlowski Subject: Re: [PATCH v5 1/2] dt-bindings: backlight: Add Texas Instruments LM3509 Message-ID: <20240401130347.GA274540-robh@kernel.org> References: <20240330145931.729116-1-paroga@paroga.com> <20240330145931.729116-2-paroga@paroga.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240330145931.729116-2-paroga@paroga.com> On Sat, Mar 30, 2024 at 03:59:24PM +0100, Patrick Gansterer wrote: > Add Device Tree bindings for Texas Instruments LM3509 - a > High Efficiency Boost for White LED's and/or OLED Displays > > Signed-off-by: Patrick Gansterer > Reviewed-by: Krzysztof Kozlowski > Reviewed-by: Daniel Thompson > --- > .../bindings/leds/backlight/ti,lm3509.yaml | 139 ++++++++++++++++++ > 1 file changed, 139 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/backlight/ti,lm3509.yaml > > diff --git a/Documentation/devicetree/bindings/leds/backlight/ti,lm3509.yaml b/Documentation/devicetree/bindings/leds/backlight/ti,lm3509.yaml > new file mode 100644 > index 000000000000..b67f67648852 > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/backlight/ti,lm3509.yaml > @@ -0,0 +1,139 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/leds/backlight/ti,lm3509.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: TI LM3509 High Efficiency Boost for White LED's and/or OLED Displays > + > +maintainers: > + - Patrick Gansterer > + > +description: > + The LM3509 current mode boost converter offers two separate outputs. > + https://www.ti.com/product/LM3509 > + > +properties: > + compatible: > + const: ti,lm3509 > + > + reg: > + maxItems: 1 > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 > + > + reset-gpios: > + maxItems: 1 > + > + ti,brightness-rate-of-change-us: > + description: Brightness Rate of Change in microseconds. > + enum: [51, 13000, 26000, 52000] > + > + ti,oled-mode: > + description: Enable OLED mode. > + type: boolean > + > +patternProperties: > + "^led@[01]$": > + type: object > + description: Properties for a string of connected LEDs. > + > + allOf: You don't need allOf here. > + - $ref: common.yaml# > + > + properties: > + reg: > + description: > + The control register that is used to program the two current sinks. > + The LM3509 has two registers (BMAIN and BSUB) and are represented > + as 0 or 1 in this property. The two current sinks can be controlled > + independently with both registers, or register BMAIN can be > + configured to control both sinks with the led-sources property. > + minimum: 0 > + maximum: 1 > + > + label: true > + > + led-sources: > + allOf: Or here. > + - minItems: 1 > + maxItems: 2 > + items: > + minimum: 0 > + maximum: 1