Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1509274rdb; Wed, 24 Jan 2024 19:11:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlPJdfBIwJXIAfXfkhmXT9wlIi45yWeNM0Wd+JjJa2rzRvcU0O7J4ITQ1jcKQe4QDvxW+m X-Received: by 2002:ad4:5de1:0:b0:686:a1e2:6f24 with SMTP id jn1-20020ad45de1000000b00686a1e26f24mr243364qvb.77.1706152273079; Wed, 24 Jan 2024 19:11:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706152273; cv=pass; d=google.com; s=arc-20160816; b=Y/HaQjuvGWnL6++rsVkrMBse//Jf+6gAc6rL3cgraXHRXWjSt+k9T21Fp2puJ3D9A3 tXxi28GzRMZf25RFGsWvEGW/QU1Bt31DFFCzl+nK+3SvuLQYXaH+KszaJrh6ystpgQRk x81Dn+LO/BzMdj1gFagvEu+PvJgr0w22mi/sEOntM759DuHdCDrcqzVkmMIp7x50T8Ns ooJGs7QVuY7w3pF9gPbe+QtfntRvcavDyTrYftvWqTwYpKMOZxHwbaaQzfD8sBwvT4A7 ktxYDRhLZrQYyzD0xy2XHFIAgqUlA/MjUlSgbFI283Joa4UyDg4/DJ0ueLHOTBqiv7OP L9MQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from; bh=4/+eSuvoU3cLrw2mD3fPf+rUB46Lx6s5VnaA2oB4wik=; fh=8v2OQwT0e/4mzSJfNnrkgSijoqadEWaNMSmTuHQsnfU=; b=y/ijQd958ZwXqbYcqxSRCBXJ8XbI9fYieA2nC0n1TWnH7k/cvqd6x7aJN8OObofG7m nxPSX4NM8FEbe5jy/KM2uEN9ZFDbn6qkmjSY1vq5hlifJRZjD/g56N8LF0ry/692XOvq /JfgrhL/XSQOuavnE46GCTdrpX5Pp/iciomH0vR6RKe103y3PBbgwogNjQSK5EAe3pEX 8EfnKQ0SRsoYQ9Paq+fS3SQ05Q6/Zh2e4ea1/xz6s8Vg4DUq9C9FH4dxWjayMfVc15bQ 9qcCMAGnD+IWSQc/AM5WKgKtIiFrU1s2QTfb+Ut4TxjflDxqa5m5LKWg9DctYSTbsc90 wq6g== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=unisoc.com); spf=pass (google.com: domain of linux-kernel+bounces-37916-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37916-linux.lists.archive=gmail.com@vger.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 q2-20020a0ce202000000b0067f584b65besi11866724qvl.263.2024.01.24.19.11.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 19:11:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37916-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; arc=pass (i=1 spf=pass spfdomain=unisoc.com); spf=pass (google.com: domain of linux-kernel+bounces-37916-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37916-linux.lists.archive=gmail.com@vger.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 117091C24871 for ; Thu, 25 Jan 2024 03:10:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8049311183; Thu, 25 Jan 2024 03:09:20 +0000 (UTC) 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 D13EC10A0A for ; Thu, 25 Jan 2024 03:09:17 +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=1706152160; cv=none; b=Z/3+yBMGAkr/HFHIZB036MNnmpbNJjOJHW2bTnZ9J+kHr3FpnwpFh4PceiCJ/BPLMAA33Odark8ySjTzNZjL2vQnmw6G45IuZaxzNZrnoCt5E+a37di7L5W6/rlgX80XgDOXYIlGdCia/Y1kTdGu8gpipJURalag+ZjF89Vu7cs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706152160; c=relaxed/simple; bh=BWzqwv+5BLR9iJ/cwRZDzelnwRi5bJX8TzYd0bzhZqw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fMY8oSkaogsy6AJMiOpp/vKrtbvBS2Bg7tGAczoItNr5kOKdRKgsrJVnN5BFbkh00AQJJRddzzJvhcyvnLQK8TuFhpFbnWLPeXYw0UZopnDw0NriMHIpbzgbiE6vE2HPq8b4Z3nzBSQW38R2AoIMQ0MGXFXGBH6/N7igd8LBw/o= 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=20Kleine-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: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain 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>; }; -- 2.17.1