Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8260221FB6 for ; Sun, 18 Jan 2026 16:48:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768754894; cv=none; b=RmKu4Jn+4o5SolxxWGAExIsIX1UZVdSA2z8BbZbGHNziMNhA8RSSkodKQ44MFWRJdq0cIdLtIthVeL1iREftsjrijy3Ezvug/TRu6KwCspJfiMkLuxUmjg9JYaXkGZgccmg7X/Iau6JYcO7wJz+2h0cvBozKxV86cjZdcOVTdc4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768754894; c=relaxed/simple; bh=ObBNgYmI7km2QNXCjpehnGoXCANLUlsMEgFWywznUhs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=M8gPOBqoWOMyVgrjCuuQw3W6U7OOxRjy9d8XPjB+xOkthY38OHHZlNhdz1bySR/AL68H1jr3uVIME1VdfHsQgQlL+b7ETNoSPdP+ukUsDHUPqudUy6YqMYoONxVdVTnzmeNtSKGmVdOGh7FqDnEmZvsPfZ4lOeU34luRngr/47E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=QZmroWXG; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QZmroWXG" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-2a0f3f74587so22509965ad.2 for ; Sun, 18 Jan 2026 08:48:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768754893; x=1769359693; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=X0twtbtNGNQIp4HwkKCyjxkTPom6wsw2QrSPQrsy5co=; b=QZmroWXGE2ruM9WWPVMd5Mce81h1MzxLNb1GU2Y88ANcqBMiCbfAvudkzw5F6thdSA vTpwCuadlDcbqtWRwRws1YPx8LEChH0aSro75GGoOrdZGv6IgERwWpt327lE99aPAKnb VbEshIC/mA3s9Wih+XOrIitoKa8xUL19DBZhJFE06S6Av0lxu5Gr6NzXtc6l5UkcV4Fm YmenxwTZ09K1BfQktlGa4wcCibAv8oBNKOk1OxIhchOsN+bFQvQxXjVvcC2nyY5CJFVW rT61hvktJ6wuyGTNZRFff/1bdHhbtkT24b/1DV8ptMuqvhTt1KgD3jgIxM+J8cVIEEoB b1bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768754893; x=1769359693; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=X0twtbtNGNQIp4HwkKCyjxkTPom6wsw2QrSPQrsy5co=; b=FKmjwKvWW04UgnA35foBe3NH7EClkTxa9/hHKMTlNjHk/nAGCbU4Xx6Ma/a9MCo851 HAWGq2Jxw3tFpEvEn5WB+XfVWIjlM2IFv/CvmIFF/V6/X6T9nHUE2AgY5iscG4GIo9jA rOHo2s4vG3tMQSK2POOfuelml93rLcwk7O4MApN7zPnYny7fNqRyJsyX9wNiZ2DjnExy XhNKHGnT1sZ7gy/Thz/gf9GOljef7zN1whySwXBEi7Jy30B5QQ7TFZP8I8IAkklYajrl f5Gqo176oB4VkhxinhCxvzHztLHSF8xdQ9dLQE8H/xpoYI61Um+FZGgTla1tVpASnpeZ lHnw== X-Forwarded-Encrypted: i=1; AJvYcCXCSRrD+PIV1oLrzjA+ksrMQdNmQQMRW+H8qMUOO7i1S1uoec3ZUoqxTEPN5eVVSEAIFjm4ZOQCgf4i@vger.kernel.org X-Gm-Message-State: AOJu0YzFf333PGN9/7GIis9h4tsrZd5aSlNcTmIjALcvDWFULuJdAR7k r6TtAResUPLWqiI4ZwpyDoZnAuBSfZm3jociAHnOge6CuiZ1cI8U+38rxaxQnw== X-Gm-Gg: AY/fxX7c6M3obEyOdd9zdle0atWexfmFfuttMkYf0atdTDrhqKLKmp00c8dUkibO0aE +gh4wJSDeavsw+Dy/PHZsCZRTupv+++CdFKVI+gnS6PQnckwSQA2UhTLpd6gUq2FsJsB4TTMhqo Ri+pwfrUVuMwq+g6ZGnH2lQkGLEtrAgOxCYrlaFo3vL/8lwCFG8lV9k2+9hnQYYgadfGBh3sJFh gpM4QOgsPQabEcbndW3mAV52v5Ts0BttGqFwPa7hHLYDczQEIZIKiYek5op3fDOdudzVxv3fuOS mcQ6LEZRI5S9GqAIAY/y4jYOzCHwFpgQ6t1Y7ypF0zLG6Ym15m3Szh5hEFkEtgR0kBeOc+e8tRz ZccALlq6b6qS1CWQ5Ni1SAFLlhwOmZUFLVPiyIpgokl1aU4PfBWCTqJyjVBv0JPJH4AkJIGf/yA qInhxTVe9hYxgImzsd6aW3LtBax2mmATrqXcM= X-Received: by 2002:a17:903:124d:b0:29e:76b8:41e5 with SMTP id d9443c01a7336-2a7175be718mr92063215ad.30.1768754892810; Sun, 18 Jan 2026 08:48:12 -0800 (PST) Received: from [192.168.31.239] ([167.103.54.94]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a7193dbbf5sm70904105ad.47.2026.01.18.08.48.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Jan 2026 08:48:12 -0800 (PST) Message-ID: <95a49665-f379-48a7-a2b5-d288cdfdc0a8@gmail.com> Date: Sun, 18 Jan 2026 22:18:32 +0530 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 1/2] dt-bindings: backlight: gpio-backlight: allow multiple GPIOs To: Daniel Thompson Cc: lee@kernel.org, danielt@kernel.org, jingoohan1@gmail.com, deller@gmx.de, pavel@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260105085120.230862-1-tessolveupstream@gmail.com> <20260105085120.230862-2-tessolveupstream@gmail.com> Content-Language: en-US From: tessolveupstream@gmail.com In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 14-01-2026 21:23, Daniel Thompson wrote: > On Tue, Jan 13, 2026 at 10:15:53AM +0530, tessolveupstream@gmail.com wrote: >> >> >> On 05-01-2026 15:25, Daniel Thompson wrote: >>> On Mon, Jan 05, 2026 at 02:21:19PM +0530, Sudarshan Shetty wrote: >>>> Update the gpio-backlight binding to support configurations that require >>>> more than one GPIO for enabling/disabling the backlight. >>>> >>>> Signed-off-by: Sudarshan Shetty >>>> --- >>>> .../bindings/leds/backlight/gpio-backlight.yaml | 12 +++++++++++- >>>> 1 file changed, 11 insertions(+), 1 deletion(-) >>>> >>>> diff --git a/Documentation/devicetree/bindings/leds/backlight/gpio-backlight.yaml b/Documentation/devicetree/bindings/leds/backlight/gpio-backlight.yaml >>>> index 584030b6b0b9..1483ce4a3480 100644 >>>> --- a/Documentation/devicetree/bindings/leds/backlight/gpio-backlight.yaml >>>> +++ b/Documentation/devicetree/bindings/leds/backlight/gpio-backlight.yaml >>>> @@ -17,7 +17,8 @@ properties: >>>> >>>> gpios: >>>> description: The gpio that is used for enabling/disabling the backlight. >>>> - maxItems: 1 >>>> + minItems: 1 >>>> + maxItems: 2 >>> >>> Why 2? >>> >> >> In the current design, the LVDS panel has a single backlight that >> is controlled by two GPIOs. Initially, It described as two separate >> backlight devices using the same gpio-backlight driver, since the >> existing driver supports only one GPIO per instance. >> >> So the maintainer suggested to extend the gpio-backlight driver >> and bindings to support multiple GPIOs. >> https://lore.kernel.org/all/q63bdon55app4gb2il5e7skyc6z2amcnaiqbqlhen7arkxphtb@3jejbelji2ti/ > > Right. So, once we support multiple GPIOs then why limit it to 2? > Okay, got the point. I'm removing the maxItems constraint entirely to allow any number of GPIOs as below: diff --git a/Documentation/devicetree/bindings/leds/backlight/gpio-backlight.yaml b/Documentation/devicetree/bindings/leds/backlight/gpio-backlight.yaml index 1483ce4a3480..82698519daff 100644 --- a/Documentation/devicetree/bindings/leds/backlight/gpio-backlight.yaml +++ b/Documentation/devicetree/bindings/leds/backlight/gpio-backlight.yaml @@ -16,9 +16,11 @@ properties: const: gpio-backlight gpios: - description: The gpio that is used for enabling/disabling the backlight. + description: | + The gpio that is used for enabling/disabling the backlight. + Multiple GPIOs can be specified for panels that require several + enable signals. minItems: 1 - maxItems: 2 default-on: description: enable the backlight at boot. Does this approach work for you? > > Daniel.