From nobody Sat Jul 25 22:03:24 2026 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 2B5DA3D25A6 for ; Mon, 13 Jul 2026 08:50:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783932650; cv=none; b=dEKkgV9c8Hzt7qA5U3RhGtEa0G1BhInUGFLOK3DL39zxLcp/DGOkyFyd6CoAH+K1WsqYkNOkVKDl0xLYvHvwGpoNJM5M/3AZeDiSVcHB7VdQRRmPQ9PLT1xloYrnBmkL1pUoN0LtIPtaBJplxgBOcLd13fDqe2DmDCxVh14eafA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783932650; c=relaxed/simple; bh=kvTAl7YbglkHZOlkBXRAhmwUF8vVKw+b1LzyHOV+qoM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=B8gqiAyRPLI1kEbSaP9JbQRkw7IJrhL1d0AEiEmRRAq9NJClX4FIOsYZMPLfCAZ2ZGw6/phdWdnY5UoeKD3RbTLAZF4f6m6ivGE7UDDl7gohCPSAHeXFIA/0H22NEiRvd2RGwPOVPytjLMUPPCK+ZBcR77dgjGAMytdYdsLsBw0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1wjCMw-0000b3-Of; Mon, 13 Jul 2026 10:50:30 +0200 From: Jonas Rebmann Date: Mon, 13 Jul 2026 10:50:28 +0200 Subject: [PATCH RESEND v3] dt-bindings: leds: Add default-intensity 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: <20260713-multicolor-default-v3-1-fb43f3f789cf@pengutronix.de> To: Lee Jones , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jacek Anaszewski , Sven Schwermer Cc: Pavel Machek , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Jonas Rebmann X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3009; i=jre@pengutronix.de; h=from:subject:message-id; bh=kvTAl7YbglkHZOlkBXRAhmwUF8vVKw+b1LzyHOV+qoM=; b=owGbwMvMwCV2ZcYT3onnbjcwnlZLYsgKWXZVM3WCL7fZYtGq/8uO9nKV7fVL52YqXTg5hCu/I faWQIVDRykLgxgXg6yYIkusmpyCkLH/dbNKu1iYOaxMIEMYuDgFYCJ8Zxn+ux+dn6StFPv8aLv2 61PpTqGHJsztmjCN/1H/ywDrZ30baxl+s2amrKpnuW1y+1fDhtg/4cs+s16ZzXCnt+pdztPJe5f p8gMA X-Developer-Key: i=jre@pengutronix.de; a=openpgp; fpr=0B7B750D5D3CD21B3B130DE8B61515E135CD49B5 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::ac X-SA-Exim-Mail-From: jre@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Document the default-intensity property to set a default color on multicolor LEDs. Update pwm-multicolor to support it and update the example to turn the LED red on boot. Signed-off-by: Jonas Rebmann Acked-by: Conor Dooley --- Changes in v3: - make default-intensity property description more generic and less redundant (Thanks, Conor) - Drop applied patch that introduces the property (Thanks, Lee) - Link to v2: https://patch.msgid.link/20260605-multicolor-default-v2-0-ed0= 7271df6b0@pengutronix.de Changes in v2: - dt-bindings: Use correct property name in example - dt-bindings: Add missing word in property description - Link to v1: https://patch.msgid.link/20260604-multicolor-default-v1-0-b07= bff431537@pengutronix.de --- Documentation/devicetree/bindings/leds/common.yaml | 10 ++++++= ++++ .../devicetree/bindings/leds/leds-pwm-multicolor.yaml | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documenta= tion/devicetree/bindings/leds/common.yaml index f4e44b33f56d..f2f479b565a9 100644 --- a/Documentation/devicetree/bindings/leds/common.yaml +++ b/Documentation/devicetree/bindings/leds/common.yaml @@ -73,6 +73,16 @@ properties: - keep default: off =20 + default-intensity: + description: + The initial intensity of the LED color component. As the intensity of + each sub-LED is multiplied with the overall brightness, without this + property on a sub-LED, it may effectively be initialized at minimum + brightness regardless of its linux,default-trigger and default-brigh= tness + properties. + $ref: /schemas/types.yaml#/definitions/uint32 + default: 0 + linux,default-trigger: description: This parameter, if present, is a string defining the trigger assigne= d to diff --git a/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yam= l b/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml index a31a202afe5c..7bf687c89411 100644 --- a/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml +++ b/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml @@ -45,6 +45,8 @@ properties: =20 color: true =20 + default-intensity: true + required: - pwms - color @@ -63,12 +65,14 @@ examples: =20 multi-led { color =3D ; + linux,default-trigger =3D "default-on"; function =3D LED_FUNCTION_INDICATOR; max-brightness =3D <65535>; =20 led-red { pwms =3D <&pwm1 0 1000000>; color =3D ; + default-intensity =3D <65535>; }; =20 led-green { --- base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482 change-id: 20260604-multicolor-default-11e3becde05a Best regards, -- Jonas Rebmann --=20 Jonas Rebmann