From patchwork Thu Jan 25 02:55:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenhua Lin X-Patchwork-Id: 766174 Received: from SHSQR01.spreadtrum.com (unknown [222.66.158.135]) (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 48B5F111B1; Thu, 25 Jan 2024 03:09:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=222.66.158.135 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706152174; cv=none; b=ITw57POy3wx10Rz4hMCGWfVTGaL5GT8iyE/8ehQoqOH6iFSsWm02YNbonxwdjHM/Co73z0UyMUgDfCAp3LgvF+b127EsmHH9H2hSPYlRiZrm+HC8fXTc2fckWjWtZW8qFsoUyXpUC06AWig4jOQsCHaTp6nOF4aK8rxBji0xoIw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706152174; c=relaxed/simple; bh=BWzqwv+5BLR9iJ/cwRZDzelnwRi5bJX8TzYd0bzhZqw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YEFD6Xp3ET2aPzY6aDBWr+KAp6WEQx1eDwkD/+IDaOgTNVgH333sXovfSIVhXJvLG6DUAOJpMqDrFYmHZgJYZ/Fje617sSUJjwwDx4PfLEXYMj0JHImGkum2OvCQImZB976MNggqCKDwPa+90FXlEZJduWHmftxKPOBfLZfZu/k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=unisoc.com; spf=pass smtp.mailfrom=unisoc.com; arc=none smtp.client-ip=222.66.158.135 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=unisoc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=unisoc.com Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 40P38fm3061776; Thu, 25 Jan 2024 11:08:41 +0800 (+08) (envelope-from Wenhua.Lin@unisoc.com) Received: from SHDLP.spreadtrum.com (shmbx06.spreadtrum.com [10.0.1.11]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4TL5F86NPcz2Rq2lq; Thu, 25 Jan 2024 11:01:16 +0800 (CST) Received: from xm9614pcu.spreadtrum.com (10.13.2.29) by shmbx06.spreadtrum.com (10.0.1.11) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Thu, 25 Jan 2024 11:08:40 +0800 From: Wenhua Lin To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Orson Zhai , Baolin Wang , Chunyan Zhang , , , , wenhua lin , Wenhua Lin , Xiongpeng Wu , zhaochen su , Zhaochen Su , Xiaolong Wang Subject: [PATCH V2 6/6] dt-bindings: pwm: sprd: Add sprd,mod attribute Date: Thu, 25 Jan 2024 10:55:33 +0800 Message-ID: <20240125025533.10315-7-Wenhua.Lin@unisoc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240125025533.10315-1-Wenhua.Lin@unisoc.com> References: <20240125025533.10315-1-Wenhua.Lin@unisoc.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: SHCAS03.spreadtrum.com (10.0.1.207) To shmbx06.spreadtrum.com (10.0.1.11) X-MAIL: SHSQR01.spreadtrum.com 40P38fm3061776 Add sprd,mod attribute, which set the number of different duty cycles that PWM's waveform could output, to dts. Signed-off-by: Wenhua Lin --- Documentation/devicetree/bindings/pwm/pwm-sprd.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-sprd.yaml b/Documentation/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 + 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 waveform output. + "#pwm-cells": const: 2 @@ -63,6 +73,7 @@ required: - reg - clocks - clock-names + - sprd,mod additionalProperties: false @@ -88,6 +99,7 @@ examples: <&ext_26m>, <&ext_26m>, <&ext_26m>; + sprd,mod = <0xFF 0x1FF 0x3FF 0xFFF>; #pwm-cells = <2>; };