Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2572484rdb; Fri, 22 Sep 2023 02:35:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFShI2ZdoLEb0ryNP4vcDXXsoq3tMW/1pYrLKF9mpj+j28cwZNxcclhrFHvrz25SYUP2MwV X-Received: by 2002:a0d:f9c1:0:b0:58c:b5d2:bbd8 with SMTP id j184-20020a0df9c1000000b0058cb5d2bbd8mr8503037ywf.28.1695375342543; Fri, 22 Sep 2023 02:35:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695375342; cv=none; d=google.com; s=arc-20160816; b=zSLA5AHHPtlIebdQuuRVofScEOkm5jzyZSoU8Y9gf9lvRfl1XmtmjBhvxX9wO9b/n5 +X8heM5VtjOP2RZyAc9HUY02++5T+XiCejOpvW3YitQi1kUGm4xCZpS/kQ2K2BXmvjHX xVwOOUZPO1+oV6WFdIS+KcX6Mu828fHjWhC85Xc0ityjem1EFX61OzmyN+uti7t+vBqh zKAAYtOY2SJyYLsGIHhUQvftRMbCtwt9SQOkORKFmwGZhRNbfwRC26kUWbb6uTHqx89L QJmxam3rrYK538DQFsRXeG+1DTb07C8f5QzM4uZv7h98wVULarQatkWxxdLdwMEeSBS7 ZNbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=tZB1Gpl6nVRZRmMpfmbs0mFiZCBVmuVfTXoMiXC2tgw=; fh=T4gzk7+hgrXGjSNvKGZTlbuKXCiuDaGkxvCBgfgONjs=; b=yJ5yb4RUEoeWM6PnYtDpeD09TlPJiH9Td/nnUnpWV++9PYm/wjTC6cxmXM+r+CXCZM EgO2ZhIsdzLlO5YwdA8Cbta/OyV+cs+f46IVdjcB6fZspcCG+selAv7VJjuQNFj/ujYc akAoq/+RhbcW2DHBLSIggFYTXC6YMbtTtPGMhMaF5aqYUFXCGF783qhzFFMmwFSqgCwo U79yLN1+n/d0F9UpbxFpwqkkKry3FkvOQ2Zl5TrxlSPjejs30GxIiVjyQlyQ3BqwQEZ7 QdAGmWyXxhlsfq3YwrGuWeoX/J6HshRa4GezVo34RNhpi84YJNHUejVQXPqoyiOsQwI+ /l7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id s10-20020a63770a000000b00577561158b3si3592169pgc.411.2023.09.22.02.35.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 02:35:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 92C6483D51E1; Fri, 22 Sep 2023 02:29:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232864AbjIVJ3H convert rfc822-to-8bit (ORCPT + 99 others); Fri, 22 Sep 2023 05:29:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232939AbjIVJ3C (ORCPT ); Fri, 22 Sep 2023 05:29:02 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58C3419E; Fri, 22 Sep 2023 02:28:53 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 12E2A17EDF; Fri, 22 Sep 2023 17:28:51 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 22 Sep 2023 17:28:51 +0800 Received: from williamqiu-virtual-machine.starfivetech.com (171.223.208.138) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 22 Sep 2023 17:28:49 +0800 From: William Qiu To: , , , CC: Emil Renner Berthing , Rob Herring , Thierry Reding , Philipp Zabel , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , "Hal Feng" , Paul Walmsley , Palmer Dabbelt , Albert Ou , William Qiu Subject: [PATCH v5 1/4] dt-bindings: pwm: Add StarFive PWM module Date: Fri, 22 Sep 2023 17:28:45 +0800 Message-ID: <20230922092848.72664-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230922092848.72664-1-william.qiu@starfivetech.com> References: <20230922092848.72664-1-william.qiu@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS061.cuchost.com (172.16.6.21) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 22 Sep 2023 02:29:08 -0700 (PDT) Add documentation to describe StarFive Pulse Width Modulation controller driver. Signed-off-by: William Qiu Reviewed-by: Krzysztof Kozlowski Reviewed-by: Hal Feng --- .../bindings/pwm/starfive,jh7100-pwm.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/starfive,jh7100-pwm.yaml diff --git a/Documentation/devicetree/bindings/pwm/starfive,jh7100-pwm.yaml b/Documentation/devicetree/bindings/pwm/starfive,jh7100-pwm.yaml new file mode 100644 index 000000000000..6f1937beb962 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/starfive,jh7100-pwm.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/starfive,jh7100-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7100 and JH7110 PWM controller + +maintainers: + - William Qiu + +description: + StarFive SoCs contain PWM and when operating in PWM mode, the PTC core generates + binary signal with user-programmable low and high periods. Clock source for the + PWM can be either system clock or external clock. Each PWM timer block provides 8 + PWM channels. + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + enum: + - starfive,jh7100-pwm + - starfive,jh7110-pwm + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + + "#pwm-cells": + const: 3 + +required: + - compatible + - reg + - clocks + - resets + +additionalProperties: false + +examples: + - | + pwm@12490000 { + compatible = "starfive,jh7100-pwm"; + reg = <0x12490000 0x10000>; + clocks = <&clkgen 181>; + resets = <&rstgen 109>; + #pwm-cells = <3>; + }; -- 2.34.1