From nobody Thu Dec 25 05:05:50 2025 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 7440939846 for ; Mon, 22 Jan 2024 08:18:42 +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=1705911523; cv=none; b=J9cxPuJNTbDNDKsQdr3nziqBdzRobF/HEfbuq1kEXeE7y+9gBAXLQ+5rQhyxSk/Tr5QkOYWKMXe9beuEz0uA/6gnuCLRn1g120kUQBy/4+nrHj1XI7VJs6Hcuq4ABK27h+/sZou4iq1EaD85At5SBG9eq9syuMCPcifDW4COoPg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705911523; c=relaxed/simple; bh=BWzqwv+5BLR9iJ/cwRZDzelnwRi5bJX8TzYd0bzhZqw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=niSuZNpvSoUEMJ+sXxrDYD7EM3jbzA2xPKNJ7V+3ApzxXNT7E4yXmXkltQFXnqqX3ilahmSsOPjgHG1SOaOfd6UndOt7sG3h2YzBRnj11/8p0EyX44Xfe7pT70RKa2CxaQxsSspkbx2bC6Tzbm6PSA8yYVj956AllvKygTyYiOQ= 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 40M8I8DK055611; Mon, 22 Jan 2024 16:18:08 +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 4TJNFj2Zzxz2Rb03v; Mon, 22 Jan 2024 16:10:49 +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; Mon, 22 Jan 2024 16:18:06 +0800 From: Wenhua Lin To: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= CC: Orson Zhai , Baolin Wang , Chunyan Zhang , , , wenhua lin , Wenhua Lin , Xiongpeng Wu , zhaochen su , Zhaochen Su , Xiaolong Wang Subject: [PATCH 6/6] dt-bindings: pwm: sprd: Add sprd,mod attribute Date: Mon, 22 Jan 2024 16:17:54 +0800 Message-ID: <20240122081754.17058-7-Wenhua.Lin@unisoc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240122081754.17058-1-Wenhua.Lin@unisoc.com> References: <20240122081754.17058-1-Wenhua.Lin@unisoc.com> Precedence: bulk X-Mailing-List: linux-kernel@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 40M8I8DK055611 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/Document= ation/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 wave= form output. + "#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