From patchwork Thu Jun 1 08:51:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 101808 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp149393vqr; Thu, 1 Jun 2023 01:57:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7HexcMFuey+hlzYsNzdmApYIDtE1Cx79UoEmWgZsh90khfCC7jx3xYPQQS/YO4HmIt1U9q X-Received: by 2002:a05:6a20:7347:b0:104:7454:d858 with SMTP id v7-20020a056a20734700b001047454d858mr1454546pzc.19.1685609873477; Thu, 01 Jun 2023 01:57:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685609873; cv=none; d=google.com; s=arc-20160816; b=E0HDQ8mVrSOjK7GdvBJnnQnuPN7leMUz99AJ9bRKtt66H29v4lVdDBWf7caxBcy2aj 0GT2Fa4d/LymQwrTwGsAzMmsgvROy9bEvNpDhtmkX4oD/4gu+H1nhknABVMA6y+EbyN1 KP9eesbgtf+TsxGcvH3KbCdBjHeoOSYNV4rhy+Aa2nPxxKRzeWN1NDp/8XiPTksOwNRe wMP/T46Qs1nmtzCzV9O6aOq9IOC5nNGr2eo6e1p0Q9GqTXA1VNzRfyno+hE2/bIOOYoa Ks6lSPhErLJt+yqubwfgVSO+ugk6h3u7p7Xd4WbpqbGCXQCVjI0/gBnXuTbHNer/z7+c iv0Q== 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=; b=qAhlmOkg7T10SSXS9uTzSmNVtcIE2kMYUTM4N90rvSv19YZxtVbkPgAi7qctrb5jm/ zPxEFkF8d/W4fVI8hqxh56xtSK17ZDQ9uiPwCc1lfbKIJYooEuOB/kPjOK0feA32bc2B +1+FhJNXEpJT5ZsGM6E5fhpHtZp/nqCP52Y5tSiZVRw1cqh0Qc40uFcvPCZkenOazJVv jRvhrlQbzSNaYLJkC9jmUDv7ZOlsEn787VUNSNZbHjjlJONgjEBVFABELqDhO/qLsOUB Z/PfUq0WcKSHLnKtk+SlsVnEdyrHaus+DaNyrnzGIcHlh1LKndXqxVcOq6m+Cupn3clZ fjmg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b27-20020a63931b000000b0053f1387ecfcsi1216474pge.356.2023.06.01.01.57.40; Thu, 01 Jun 2023 01:57:53 -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 S232366AbjFAIwF convert rfc822-to-8bit (ORCPT + 99 others); Thu, 1 Jun 2023 04:52:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232070AbjFAIwD (ORCPT ); Thu, 1 Jun 2023 04:52:03 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AFC7132; Thu, 1 Jun 2023 01:51:59 -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 EA52D7FC9; Thu, 1 Jun 2023 16:51:56 +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; Thu, 1 Jun 2023 16:51:56 +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; Thu, 1 Jun 2023 16:51:56 +0800 From: William Qiu To: , , , CC: Thierry Reding , Philipp Zabel , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Emil Renner Berthing , Hal Feng , William Qiu Subject: [PATCH v4 1/4] dt-bindings: pwm: Add StarFive PWM module Date: Thu, 1 Jun 2023 16:51:51 +0800 Message-ID: <20230601085154.36938-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230601085154.36938-1-william.qiu@starfivetech.com> References: <20230601085154.36938-1-william.qiu@starfivetech.com> MIME-Version: 1.0 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767490058736817105?= X-GMAIL-MSGID: =?utf-8?q?1767490058736817105?= 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>; + };