From nobody Wed Sep 10 01:57:54 2025 Received: from mail-244107.protonmail.ch (mail-244107.protonmail.ch [109.224.244.107]) (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 38969230BF8; Sun, 7 Sep 2025 23:18:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=109.224.244.107 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757287109; cv=none; b=qxuMS4Iz31rmwLf13Mgg7u2F/VUgUNuXp9e6UemMWfc5i61TZ7GkvxoufrntR4Dw2pg5aw+w8/XoUUrsRk7XVTrkmdK4cGhiMZnI3PoFd+zNcdXm/ROTmSPWxtIoHVw/ngf5orbKum9xVbE59+bM6R7+A+lH5QJ0Q2L5a38n9EA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757287109; c=relaxed/simple; bh=s+EPK0JKM0Hb9Ko/RlfZn+9aGDfCgguChkOaX7vEQXs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JiMCh0NVMAGw7jxL6/bxQLqLAxRYfS6Di67YEuDDafZ0NRMuQFP5YiJbjx6zDwmkTSo7H3ekZDydk+QbXGa5WFXm6tN2beKNCIiLo0jK5CieE4ULgNBaASTAojX7I1D89Zl6kaPxgeEU+/UQpJdgZJbvcIpT3CATJFeR2rPouZ0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vinarskis.com; spf=pass smtp.mailfrom=vinarskis.com; dkim=pass (2048-bit key) header.d=vinarskis.com header.i=@vinarskis.com header.b=aC4h2Z1D; arc=none smtp.client-ip=109.224.244.107 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vinarskis.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vinarskis.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=vinarskis.com header.i=@vinarskis.com header.b="aC4h2Z1D" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vinarskis.com; s=protonmail; t=1757287099; x=1757546299; bh=m8uu3f2om0ehU8+WF4ls+SioKYV8FyIDb8bJA/kvdf4=; h=From:Date:Subject:Message-Id:References:In-Reply-To:To:Cc:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=aC4h2Z1Dhyz3ecbn62NbT4efSAyZgPUA7nGKYjCM/MHCubPuc8ZgvNdgD7AmdrXvN nox1qVmCLGYnpfQ7hg3quQUTFquRuIR863T22O/cpgJIuZ4ugtuYRbUiTSvWwP7dzu Ur0eJpDGLG8LMA10p7DvnP7bRobpAoWSLw0P8DQCaeJJ9zdoRlqFyQ+iFvfYiGgmxq RjO+Gr73zS9ru87z7l/mcBswEWXzI/Ra+yhU/TWXdXa700Z9vOxTTXEfpb/lnYs+Lo 1c52bmkP4aZUAS6BJLPEF22z3UHAmgMfYt0G4YYHwcOykQNQsdMTuuM6pvXE6Nzy1P 0P4oIT/fx6HkA== X-Pm-Submission-Id: 4cKmGf2ggLz1DF4H From: Aleksandrs Vinarskis Date: Mon, 08 Sep 2025 01:18:04 +0200 Subject: [PATCH v3 2/4] dt-bindings: leds: commonize leds property 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250908-leds-v3-2-5944dc400668@vinarskis.com> References: <20250908-leds-v3-0-5944dc400668@vinarskis.com> In-Reply-To: <20250908-leds-v3-0-5944dc400668@vinarskis.com> To: Hans de Goede , Lee Jones , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bryan O'Donoghue , Daniel Thompson , Jingoo Han , Mauro Carvalho Chehab , Jean-Jacques Hiblot , Jacopo Mondi , Sakari Ailus , Bjorn Andersson , Konrad Dybcio Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Thompson , dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2868; i=alex@vinarskis.com; h=from:subject:message-id; bh=s+EPK0JKM0Hb9Ko/RlfZn+9aGDfCgguChkOaX7vEQXs=; b=owGbwMvMwCX2dl3hIv4AZgHG02pJDBn7hLY23RD0f8ebnTXhvB5rrsre3TLWnEmfmV6vOlsSd CdOqGlqRykLgxgXg6yYIkv3n69pXYvmrmW4rvENZg4rE8gQBi5OAZhI5kuG//Ee2lOfXead0X7l YtTP+O8M85vZmC9tehRzTtuBy0ty5yNGhr3LHplv/bhr41e5OcZBc040sTWf+WtgYOq85O7k5Ok TH7ECAA== X-Developer-Key: i=alex@vinarskis.com; a=openpgp; fpr=8E21FAE2D2967BB123303E8C684FD4BA28133815 A number of existing schemas use 'leds' property to provide phandle-array of LED(s) to the consumer. Additionally, with the upcoming privacy-led support in device-tree, v4l2 subnode could be a LED consumer, meaning that all camera sensors should support 'leds' and 'led-names' property via common 'video-interface-devices.yaml'. To avoid dublication, commonize 'leds' property from existing schemas to newly introduced 'led-consumer.yaml'. Signed-off-by: Aleksandrs Vinarskis --- .../devicetree/bindings/leds/backlight/led-backlight.yaml | 6 +---= -- Documentation/devicetree/bindings/leds/leds-group-multicolor.yaml | 5 +---- .../devicetree/bindings/media/video-interface-devices.yaml | 8 ++++= ++++ 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/backlight/led-backlight= .yaml b/Documentation/devicetree/bindings/leds/backlight/led-backlight.yaml index f5554da6bc6c73e94c4a2c32b150b28351b25f16..8fc5af8f27f9eb95b88eeeee32a= d4774f5f21106 100644 --- a/Documentation/devicetree/bindings/leds/backlight/led-backlight.yaml +++ b/Documentation/devicetree/bindings/leds/backlight/led-backlight.yaml @@ -23,11 +23,7 @@ properties: compatible: const: led-backlight =20 - leds: - description: A list of LED nodes - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - maxItems: 1 + leds: true =20 required: - compatible diff --git a/Documentation/devicetree/bindings/leds/leds-group-multicolor.y= aml b/Documentation/devicetree/bindings/leds/leds-group-multicolor.yaml index 8ed059a5a724f68389a1d0c4396c85b9ccb2d9af..5c9cfa39396b0ba89830e520ade= 108bfd1a3f12e 100644 --- a/Documentation/devicetree/bindings/leds/leds-group-multicolor.yaml +++ b/Documentation/devicetree/bindings/leds/leds-group-multicolor.yaml @@ -17,10 +17,7 @@ properties: compatible: const: leds-group-multicolor =20 - leds: - description: - An aray of monochromatic leds - $ref: /schemas/types.yaml#/definitions/phandle-array + leds: true =20 required: - leds diff --git a/Documentation/devicetree/bindings/media/video-interface-device= s.yaml b/Documentation/devicetree/bindings/media/video-interface-devices.ya= ml index cf7712ad297c01c946fa4dfdaf9a21646e125099..703bbc9960dd6bc68baff4f300c= 77813f5ccd37f 100644 --- a/Documentation/devicetree/bindings/media/video-interface-devices.yaml +++ b/Documentation/devicetree/bindings/media/video-interface-devices.yaml @@ -17,6 +17,14 @@ properties: An array of phandles, each referring to a flash LED, a sub-node of t= he LED driver device node. =20 + leds: + minItems: 1 + maxItems: 1 + + led-names: + enum: + - privacy-led + lens-focus: $ref: /schemas/types.yaml#/definitions/phandle description: --=20 2.48.1