Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp841522rdb; Fri, 25 Aug 2023 02:49:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEmJy4YFxxHNcmN1PqIyEDwm9foiOK7Lrud6D1ZW+WLQNGFnOIAI+Z2nSFkaJptandpLlVO X-Received: by 2002:a17:902:ecc6:b0:1c0:b84d:3f73 with SMTP id a6-20020a170902ecc600b001c0b84d3f73mr6742978plh.53.1692956962348; Fri, 25 Aug 2023 02:49:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692956962; cv=none; d=google.com; s=arc-20160816; b=CsQhCyhmuYsvRPeHUdGO8tNdGTWsYdoQ3/LkNyE7ad6UbFflNxPESGgB49ZdqEYL2i JhXiR5c5IEzPmED/R7afDF6muzfrdEZqDPwAvrkBrvHsrGzymhUbId26+HcaFIgEn2G+ w272KFfiGHPMAjJOwyNMfi7L5Nb7kPEtKPN8/QFR9nmzHd+szZurgdFrrZYdZuUkZy+1 L5qKCDf80Cr2la02K1am28rmjeH9lEPOPdAdwxDh0NZIKfoF36q1rYSdkIusZcga73VO EzPohpDKh7bxAQSgF9X0LCycobbqoc1qWNW3u3h+V9E+ZoXhlXNpOByRvPg3XkWg71Ii k3cA== 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=OlQYnYmfnAvovqMM7SwhPEmQSrStPosmmGYBCfTg71c=; b=hbj5iucCWRwijF6HNyWzKw/GgTM6kaZcKuMBFa0UTgHZOG1ZsUDi7RWGSMbQelvvz7 t057ie5sbkeGOQXbWt+A5lZIPVdoZQx7aaQ4jAO+oMwvenABeF80YwC77NMSs4YMCI2O 2aDIq2V6Qnjsu6NakNAFUUPhFAJ0h21RroCIZCU1imjhy0jwGL6IcEuPOR1zKqsadNYU MFhW8fqAt2n4G7IuXkx5IxwqapSQvwKQhwtsSC8p7W8wux7azYpBVqRRI3nZcx7rc4mD 9gpcZW/5JH3102ewQ2C6rD06awrKIaFJ+vo86J1qpB7XMOq8o1BeTGA+cGqwpQ9N0lrE TKVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020a170902f54a00b001bdb799f0fcsi1554734plf.609.2023.08.25.02.49.05; Fri, 25 Aug 2023 02:49:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243402AbjHYIOs convert rfc822-to-8bit (ORCPT + 99 others); Fri, 25 Aug 2023 04:14:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243502AbjHYIOR (ORCPT ); Fri, 25 Aug 2023 04:14:17 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 181252693; Fri, 25 Aug 2023 01:13:46 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id CCAFB81F6; Fri, 25 Aug 2023 16:13:30 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 25 Aug 2023 16:13:30 +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, 25 Aug 2023 16:13:29 +0800 From: William Qiu To: , , , CC: Emil Renner Berthing , Rob Herring , Philipp Zabel , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Krzysztof Kozlowski , Conor Dooley , "Paul Walmsley" , Palmer Dabbelt , Albert Ou , Hal Feng , William Qiu Subject: [RFC v4 1/4] dt-bindings: pwm: Add StarFive PWM module Date: Fri, 25 Aug 2023 16:13:25 +0800 Message-ID: <20230825081328.204442-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230825081328.204442-1-william.qiu@starfivetech.com> References: <20230825081328.204442-1-william.qiu@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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