Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp104419rdb; Thu, 25 Jan 2024 09:24:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJYw/XfukblSULDXohEqcq7w246ptrqAkV09f9wfYoVfhENESFhKZp7iLRcubDhQsb9poU X-Received: by 2002:a05:620a:5611:b0:783:c84d:c54b with SMTP id vu17-20020a05620a561100b00783c84dc54bmr17138qkn.136.1706203488408; Thu, 25 Jan 2024 09:24:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706203488; cv=pass; d=google.com; s=arc-20160816; b=h4xc+75YgaZkirqJibA6ix0MSi4DMK/j61r+Lw8hCp9KWEx8ClITwRzRjF/9kgnXPq E3BZk9UDQi9yfj/1JGe9IWm0O4flZxhqmQu3N+9OzSxoIjLZp8WWTLRU6hHe3pQI/Tn+ YPUjT5SuWgd8F1f9TBauXlYkQ0EpPR9ar+nTozt8WA4TMsOAUpI+78YhrsAfTFs3gMVT vOk2xmAnMdEIut1SFy5fZw5Bswi6Vnye3+KNHwuZhJ+OZfLCtnonUOQEiwfK3KdRS6Hb TfmsTvv5xEgHCD4+zyBUENkqW0lRAPRYLn/8GeGD3n7+1XrYfKuDm5jTUND0Rm6o377D 9euA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=D/8yqncjAc8U3D2BOAWLin74JELKJ0KGbWcFFx92JNc=; fh=2QEyBE6JUpmjk9izVIHsB/dhYk1dunREf2iSfYb1/fc=; b=fGasxx0QYSFZREsWrCN95rC0rt5WeiItUGTJjm29xE1F2VO1FRicadMfw3CGV85Mhy 1CFflktPCoRq8wahmdyR1A57rsK0BlOdB4Laxmpqdk6XSTHI5dBON1fgQ7TzTuzpYmZ0 D8MTlnzEZjC67EK1wxBn1Yz3hjuRyc49B67L/8oHpCakp0PXxVEDGLpZImELDo520BjA rfWnjdOCc4yWfkp3osQ1ymzKvZNyhxhInz4wd7e/LRE0FFMJxh42ILxJUqHQbvFX6WAP 1ErlbZBpARfl41qX/z/edG4xg+0qym5Td80PXuitXMxOoZF0tNchCBafFzBmDfH3O82Y d9TA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uG7NIfWq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-39034-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39034-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t13-20020a05620a0b0d00b0078397c351a1si11701952qkg.12.2024.01.25.09.24.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 09:24:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39034-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uG7NIfWq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-39034-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39034-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2F7051C2543D for ; Thu, 25 Jan 2024 17:24:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A9EA130E51; Thu, 25 Jan 2024 17:24:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uG7NIfWq" 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 577B0130E20; Thu, 25 Jan 2024 17:24:38 +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=1706203479; cv=none; b=cNbAsnnjHV3sV+P45qnfxlS2wvezvu6+38fkUExcYtir+IbyK1O5C7TxAXcqCKjp72TTCTmutlnGsFHi2r1mFDnUD5pP3KglMaV5sO3aqyqSGEB9MUkqinVNCQHFp5uh9+t/8UzuY09q+13KN5eCIcv96RrGxtDWfEnZQcqctZc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706203479; c=relaxed/simple; bh=V9ka2qXzdEJuRAebj5OgqDcPDbq9Epq7uKXZHp+iGo4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qQs0rLytVqxh3wiUxI5At1IycX4ZQqC12AK0V9wJ94KNcEoUW7ru9+05HAHFOMKxX3QkN4HbeF/nC1B4OhSQSY7tel4aqS7XOdo8+G7uPo/eHI1MPLdLoVlJRHaOIXcjRVJTtShYBa1IAR/2gcA6sRD/SDldeSFBqlemPOHyQdE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uG7NIfWq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97D4BC433F1; Thu, 25 Jan 2024 17:24:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706203478; bh=V9ka2qXzdEJuRAebj5OgqDcPDbq9Epq7uKXZHp+iGo4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uG7NIfWquPGwy1B0M504M/E9Vfqa6SQZWZtJr2cWJFQ5fS9wZxzvBUlTRnlD5jQBE 5fhuaY/ehaxNls8wBkpA6CO/K+GHnl4nrWj1/zPENy7bgfrDz5ht9YTBJkRQkmpoif 6+OOz+Sb5E3y1my+VcqD8SJkUyYMhlYWxV6/4xLJX5CCpx5xl31HBB0lBBClTs2avu x0kQUKKZhOPtOx2TBNv1f5nc2/tMXh6wUdvANn+YkBVZ7N0rUUkdyHN2yRX/gjiR0e Cvv2JXimvXnSq3PF75PpnLaHSLtEpekgZ6WANoZrhFNFrdte6j3vvP6/tX+hXwICvc XIYBDim0Nm7lQ== Date: Thu, 25 Jan 2024 17:24:33 +0000 From: Conor Dooley To: Wenhua Lin Cc: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, wenhua lin , Xiongpeng Wu , zhaochen su , Zhaochen Su , Xiaolong Wang Subject: Re: [PATCH V2 6/6] dt-bindings: pwm: sprd: Add sprd,mod attribute Message-ID: <20240125-stammer-sandblast-0dcad9e535c0@spud> References: <20240125025533.10315-1-Wenhua.Lin@unisoc.com> <20240125025533.10315-7-Wenhua.Lin@unisoc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Ia640Mup0gRbyG16" Content-Disposition: inline In-Reply-To: <20240125025533.10315-7-Wenhua.Lin@unisoc.com> --Ia640Mup0gRbyG16 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 25, 2024 at 10:55:33AM +0800, Wenhua Lin wrote: > Add sprd,mod attribute, which set the number of different > duty cycles that PWM's waveform could output, to dts. >=20 > Signed-off-by: Wenhua Lin > --- > Documentation/devicetree/bindings/pwm/pwm-sprd.yaml | 12 ++++++++++++ > 1 file changed, 12 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/pwm/pwm-sprd.yaml b/Docume= ntation/devicetree/bindings/pwm/pwm-sprd.yaml > index 02e039fee3b4..7c956b840fa1 100644 > --- a/Documentation/devicetree/bindings/pwm/pwm-sprd.yaml > +++ b/Documentation/devicetree/bindings/pwm/pwm-sprd.yaml > @@ -55,6 +55,16 @@ properties: > minItems: 4 > maxItems: 4 > =20 > + sprd,mod: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + minItems: 4 > + maxItems: 4 > + items: > + minimum: 0xFF > + maximum: 0xFFF > + description: | > + The number of different duty cycles that could be set for PWM's wa= veform output. Why is this not a fixed value for a given SoC? Given the description, it certainly sounds like something that does not vary on a per device basis. Thanks, Conor. > + > "#pwm-cells": > const: 2 > =20 > @@ -63,6 +73,7 @@ required: > - reg > - clocks > - clock-names > + - sprd,mod > =20 > additionalProperties: false > =20 > @@ -88,6 +99,7 @@ examples: > <&ext_26m>, > <&ext_26m>, > <&ext_26m>; > + sprd,mod =3D <0xFF 0x1FF 0x3FF 0xFFF>; > #pwm-cells =3D <2>; > }; > =20 > --=20 > 2.17.1 >=20 --Ia640Mup0gRbyG16 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZbKZUQAKCRB4tDGHoIJi 0p/4APwOno17wR0ULk3ScAzUFUpYmnfhWHJD4AVnFP5xK4a2ZQEA1ePEUwebT2ZG YtxYi+oxd1sm4IGeW4GQklWnv0hdBAY= =24Fz -----END PGP SIGNATURE----- --Ia640Mup0gRbyG16--