From nobody Mon Apr 6 18:29:01 2026 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 124B83E2768; Wed, 18 Mar 2026 18:34:40 +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=1773858881; cv=none; b=B4Fq4MVEepNtN3UikJHwVwnkhplWitKIe/BfK78QTItqIYCv53jJ58HkLiIOTrcjTT8CyQsbIB053Jn3JTO5UJpMCJqj58uIUH9jVh76tixO+u10XQnXdzmYTX/nXq17YBDnnwxt7y/8p/LUAKF3dj2VJiFxPnugrbrTv9ZEcSs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773858881; c=relaxed/simple; bh=YaxvqjXUbTIlCH1GcpZj8fDciQKdM5QgRWnTBclQAxo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jqZ15xgupeNtaYIHpDIvCsQN42WRY2waqj1jyRKF/G/KoK4yYqXU4pjnYpi2MdkvjewGXt2DcFioQ2URT8fK/CB2icxexVjKkkY9RHtKjBkMT8mTeSeb8DKC+2BRFPfhBQ9awCc7rEsoov5DA7+6ShNPqzJN4sNuLCvpEYmdoXA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OiuYDGWz; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OiuYDGWz" Received: by smtp.kernel.org (Postfix) with ESMTPS id BEFDCC2BCB0; Wed, 18 Mar 2026 18:34:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773858880; bh=YaxvqjXUbTIlCH1GcpZj8fDciQKdM5QgRWnTBclQAxo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=OiuYDGWzsYHCOQp9q/RxlFn2b2djhbfMvK6/JPdNnbRbR4BpUeoDSfUbB0Zg7LqMS gH7wNMEkE+XZ44SSoPDBlVc5Kc8179BY+Ly2Nav6x1hdf3o9Au7W6REFO34fkgqsRG bC/z7ktXhWOGssnEBNdoOA/VxxyCRy5B9mdK2CZ4Li/xw9Qy6rzBfCdMBF+jr20tsf h+hdasaTBDy3KTMZpYfrrXLH0Y2YVAk/EgitAkIIiMZ/zHnsj2rm3cHJTrt2gpNUh6 kXtT2NeR61TYLF1Eloi46M4nxK9bPW204OU7vgqXvI/njG2T8x52IYihxVRfNqwfn8 KwHe8f2MoNApQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD73B1077603; Wed, 18 Mar 2026 18:34:40 +0000 (UTC) From: Rudraksha Gupta via B4 Relay Date: Wed, 18 Mar 2026 11:34:39 -0700 Subject: [PATCH v2 1/3] dt-bindings: leds: rt8515: Support single-GPIO flash ICs with vin supply 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: <20260318-expressatt_camera_flash-v2-1-5c2b9a623dcb@gmail.com> References: <20260318-expressatt_camera_flash-v2-0-5c2b9a623dcb@gmail.com> In-Reply-To: <20260318-expressatt_camera_flash-v2-0-5c2b9a623dcb@gmail.com> To: Lee Jones , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, Rudraksha Gupta X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773858880; l=2584; i=guptarud@gmail.com; s=20240916; h=from:subject:message-id; bh=yYBJe6glHiFbQLkK5n9J7m92+K8p9p43uhZGLgoNsMM=; b=Gp/YsGw4bT4jw0F3LRRkfz6ZLTUgtXtlwLgkWu5Vzo/7QPJj7on2BoFyAOCBR1Th+QRl0IRAd 5rWUm1ewBakCkrbYSyhoqFx+fSHyE6+ZQoSZKhRhAlrOcVjIJBLmJl1 X-Developer-Key: i=guptarud@gmail.com; a=ed25519; pk=ETrudRugWAtOpr0OhRiheQ1lXM4Kk4KGFnBySlKDi2I= X-Endpoint-Received: by B4 Relay for guptarud@gmail.com/20240916 with auth_id=211 X-Original-From: Rudraksha Gupta Reply-To: guptarud@gmail.com From: Rudraksha Gupta Some flash ICs use the same one-wire pulse-count protocol as the RT8515 but have only a single enable line for both flash and torch modes, plus an optional input voltage supply (e.g. a GPIO-controlled fixed regulator) that gates power to the chip. Make ent-gpios optional and add a vin-supply property to support these variants. Add a oneOf constraint requiring exactly one of ent-gpios or vin-supply. Add a binding example showing the single-GPIO configuration with an input supply. Signed-off-by: Rudraksha Gupta Acked-by: Conor Dooley Reviewed-by: Linus Walleij --- .../devicetree/bindings/leds/richtek,rt8515.yaml | 34 ++++++++++++++++++= +++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/leds/richtek,rt8515.yaml b/D= ocumentation/devicetree/bindings/leds/richtek,rt8515.yaml index 0356371a6b01..ab3c5139132c 100644 --- a/Documentation/devicetree/bindings/leds/richtek,rt8515.yaml +++ b/Documentation/devicetree/bindings/leds/richtek,rt8515.yaml @@ -15,6 +15,10 @@ description: | current for each mode is defined in hardware using two resistors RFS and RTS. =20 + Some flash ICs use the same one-wire pulse-count protocol but have + only a single enable line for both flash and torch modes. For these + single-channel variants, only enf-gpios is needed. + properties: compatible: const: richtek,rt8515 @@ -26,6 +30,11 @@ properties: ent-gpios: maxItems: 1 description: A connection to the 'ENT' (enable torch) pin. + Not present on single-channel flash ICs that use only one enable + line for both flash and torch modes. + + vin-supply: + description: Optional input supply for the flash IC. =20 richtek,rfs-ohms: minimum: 7680 @@ -81,10 +90,15 @@ properties: =20 required: - compatible - - ent-gpios - enf-gpios - led =20 +oneOf: + - required: + - ent-gpios + - required: + - vin-supply + additionalProperties: false =20 examples: @@ -108,4 +122,22 @@ examples: }; }; =20 + - | + /* Single-channel flash IC with input supply */ + #include + #include + + led-controller { + compatible =3D "richtek,rt8515"; + enf-gpios =3D <&tlmm 3 GPIO_ACTIVE_HIGH>; + vin-supply =3D <&flash_reg>; + richtek,rfs-ohms =3D <16000>; + + led { + function =3D LED_FUNCTION_FLASH; + color =3D ; + flash-max-timeout-us =3D <250000>; + }; + }; + ... --=20 2.53.0