From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 08319606A31E for ; Tue, 24 Nov 2026 14:41:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=uE58tOOL; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=io9tgaHH DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=unbcf7IxetKvCKK1oK9oQ5fvh2u9DJnAEwqwMUBWQOo=; b=uE58tOOL5RGEDA3+FzViNH2PLr CWJ5J7R/BbYtNNXxhgrHdqZWxBej5K1gsRmG6jZYqiRp9T2GL5denvz7IDhVG5XPlhor/BIfF+x9K 2imHT1j24EZ/eCfaNIOpDj2+nCJWQdET7uUUt7crgSsoWMIX8p9TQV8FGnvTO/IOhxRhbR58TIYoq 1IGXww9nMszWHs6CylWywmUg84AC98B2zBlESWS6FP4Wy7CDa49Lzi3X2eV7ik23brcG11UkH7G6J wGTPQl0gn8HSX/4Zf2o8wZ45ZJqAUiEzhRkdJDE3/MRYBOlp47jpvj8RmEZmyOODGgdS+kYQ6Zv+O 33tByuPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xVrhV-00000006mzW-1l37; Tue, 24 Nov 2026 14:40:53 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xVrhU-00000006mzP-0283 for linux-arm-kernel@lists.infradead.org; Tue, 24 Nov 2026 14:40:52 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 5878843DA8; Tue, 24 Nov 2026 14:40:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 572071F000D0; Tue, 24 Nov 2026 14:40:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795531251; bh=unbcf7IxetKvCKK1oK9oQ5fvh2u9DJnAEwqwMUBWQOo=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=io9tgaHHOyo0Z5zikV7SPV2Mwg+94HMNGbKiAM6qeawvECgjSx8Wwf/4yH3FweP+3 TL7qQJAZMBWzCIlZak4Iy94oXDyTDm8kfC54GyWgMQaSBTQa9kkC8/F2r893oDxpwc tlvIxnIdjAa8rhJn38qfedqiDhY2U4aFH4mg7hs2IJuSxAOxVT0VBEZithvdBqfqN+ xyFKXxxrBo5rneon0rgD37tzMv9xzSn6QyMSDl2YTyqXHgch9BVeQUItNuW3Ye4hUC qGKaO8UhXh8/zqil67p9RbC3e68sJ/7wZHtumE4lq/eECPNerHkHhoYWSFOvQQcGGF Dbl+rs4tjDHhw== Date: Tue, 24 Nov 2026 15:40:47 +0100 From: Krzysztof Kozlowski To: "H. Nikolaus Schaller" Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Liam Girdwood , Mark Brown , Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Russell King , Neil Armstrong , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Helge Deller , Jaroslav Kysela , Takashi Iwai , Peter Ujfalusi , Jarkko Nikula , Jessica Zhang , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, linux-sound@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org, linux-fbdev@vger.kernel.org, letux-kernel@openphoenux.org, kernel@pyra-handheld.com Subject: Re: [PATCH v2 08/20] dt-bindings: mfd: twl4030: Document 64-cycle PWM Message-ID: <20261124-neon-noble-seagull-df2d40@quoll> References: <8e0c47487add0fa1bc0dad9b1bceef5ebf8071d4.1795505160.git.hns@goldelico.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <8e0c47487add0fa1bc0dad9b1bceef5ebf8071d4.1795505160.git.hns@goldelico.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-15.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Tue, Nov 24, 2026 at 08:25:48AM +0100, H. Nikolaus Schaller wrote: > Document the optional ti,twl4030-pwm-frame-64 property for the > TWL4030 PWM controller. It selects the 64-clock-cycle frame instead > of the default 128-cycle frame, doubling the output frequency and > reducing duty-cycle resolution. > > The selection is explicit because the driver does not know the PWM > input clock rate and cannot derive the hardware frame length from a > consumer-requested period. The shorter frame can reduce PWM LOW > intervals during startup mode detection of LED drivers such as the > TI TPS61160/61. > > Signed-off-by: H. Nikolaus Schaller > --- > > Notes: > Changes against V1: > - Revised commit message to focus on the binding and the reason > for explicit 64-cycle frame selection. > - Commit-message review assisted by ChatGPT. > > Documentation/devicetree/bindings/mfd/ti,twl.yaml | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mfd/ti,twl.yaml b/Documentation/devicetree/bindings/mfd/ti,twl.yaml > index 9cc3e4721612e..f458f0d80f2cd 100644 > --- a/Documentation/devicetree/bindings/mfd/ti,twl.yaml > +++ b/Documentation/devicetree/bindings/mfd/ti,twl.yaml > @@ -396,6 +396,15 @@ properties: > '#pwm-cells': > const: 2 > > + ti,twl4030-pwm-frame-64: Drop twl4030. Properties are not model specific, but should be re-usable among all of devices from that vendor (when applicable). > + type: boolean > + description: > + TWL4030 only; not supported by TWL6030 PWM. Don't repeat constraints in free form text. Implement proper dt-schema for this. > + Select the short 64-clock-cycle PWM frame instead of the > + default 128-cycle frame, doubling the PWM frequency. Required > + for dimming inputs requiring short PWM low intervals during > + startup mode detection (e.g. TI TPS61160/61). I don't get how TPS is related here, but if you mention other specific device then I wonder - why isn't this deducible from the compatible? Or you mean that PWM consumers might need it, depending on the consumer? But isn't this then dynamic choice - depending on PWM frequency the consumer wants? Best regards, Krzysztof