Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp186473rdb; Mon, 22 Jan 2024 00:20:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IFSduOuBFXN22Ww9yu3SiO5fuZSmRNtfKIJoBzaupFhx9wZO0AfhMTsn4n+ZzrEZSnYAR9u X-Received: by 2002:a17:902:b784:b0:1d7:17e0:bbe3 with SMTP id e4-20020a170902b78400b001d717e0bbe3mr1798819pls.44.1705911610878; Mon, 22 Jan 2024 00:20:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705911610; cv=pass; d=google.com; s=arc-20160816; b=0P3gl92prf0Ssr+0ZCT0O1DZRFTOCCqd+tBt6aboXE+/n0Zw/3WX/qBgIDg0gMJtys I9ZoxcMgPGY4gPLdvB0rBo8/ubGblFtbPs0cHzyxJpCSJvqir4di8gwe6JLwNB7hFDTI bTh51fmUjPw2GTkJ9QNAWTai4wIp31s/6rGNB83LByFx3AjuGn9nK5Hi9MT6DSDnSiyF 6m7jQz/zAbSf12W+LpssIKr8I09/6nRhHYNI5TQ22rg6BU44csf20AmViMve6FocXi+y xHZnGHb34SRpEgmuzVz+WR6D/5m/wFw8lnovuOCy8CKHt1sowGDrc4aO9MSrUWzYqTJN VbVA== 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=95ELfTRbd3XNYg9rj2TePHqYKoG4l12p0iX6Yjf47Ms=; b=IekGyIVrcKQKJOX12lavC78r2XYeCBJvW/yOkNUbV1Bsxumnm2hgBUaDDPfOXk3YM2 XPhrYJ1LzHEqYrM6Wh1OypZzIqFkNswztf+sKeW2xKNMG/Qu1fSIyL/yATe0lHV8Gwsp 1fXtwqlubBmMTprt16rHzJqcO7i2ki8xeBxWXC8Brm4tHNcBrbne93aCuH9GGtoqHzRM mUj2j7rJXsUcuGivI17mHfhseit3x+HYqXou3idBWxqezBEAOFUTZNuZovurYzsvzH25 NncRkzhV5bRq0SZabfPVyIy1a4qXHJkSiS+iAwTBwLZOFcCdpkwYOlR7yQSg4senpjxJ Nl1Q== 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-32505-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32505-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p9-20020a170902bd0900b001d756c2f64bsi1139524pls.364.2024.01.22.00.20.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 00:20:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32505-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=unisoc.com); spf=pass (google.com: domain of linux-kernel+bounces-32505-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32505-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8521C28405C for ; Mon, 22 Jan 2024 08:20:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6967039852; Mon, 22 Jan 2024 08:18:44 +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 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 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 40M8I8DK055611 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