From patchwork Fri Mar 17 11:06:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 71247 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp273509wrt; Fri, 17 Mar 2023 04:09:42 -0700 (PDT) X-Google-Smtp-Source: AK7set94YVSzyw7q7+tDqS+9adkX8bx27BYSfn6yqtToe4Qr6+0s3ObWf3O9NxBFGofmML4ne0nz X-Received: by 2002:a17:90b:2313:b0:234:117e:b122 with SMTP id mt19-20020a17090b231300b00234117eb122mr9075003pjb.0.1679051382478; Fri, 17 Mar 2023 04:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679051382; cv=none; d=google.com; s=arc-20160816; b=qaYQovGuf/p/ZqSWTv7FQBlGkST91K85ncKTIT/8OPramO6JvRyGOIJhoS9NQojiHU hujgH/69fYlKddabsx8vbFa6UnIeFjXPl7wndMdnhzrIVHwCeLkxVQZOiFgbuWvtsbhX rkcTrKqvoRv118hfxH9JkmV5WAmk/duxCZxQJvjFRwhjLNuVZcsAN/cM82J4xL7iERuc eB4+FMsyVXQPLoSd1Qv78id6OW8x3rTi2hqKRO9kOnX2MgIhE2GSyX1qcBTc3Gsl2kJ4 WR/2tOtOqA8pqdQhyZ0EfRGMEPJxt50yiuKXsR2AH97U8jWkK7mmN82EM2ejYw2X9KK2 dfgw== 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=8q69ysc7+rHgONFdRE4KbwHHlxTbdObQ530/f/SbjaI=; b=qCuv7X3Va/CTyb3D18s7IvKGUllKc18uT6udRKTQFp2+WcS9uLesK2qApp4MGM6C2N o8BPCtQ3YDDIo1GeD9+NJxA7euSEfthJP0EJ5kzRInaSslZnTMnA1CbJsWDX4f0Hr8+7 Crw3c5x3x2mSFKxClKHsij0FGVmCEfxzU0BMbd66hQD11Ru7cTlZXo59KV0oqthKJeG8 Soa6vWrGVUm7uFeH1fmWA9oSTtFmsxrdU2gBU9OXFyKg9UPCu2O8e/LwibAjx+3DpaMM TYzNUgsRYQy8LQMS01FJssRDfPBeHQRaZ6KPeU8uVQD9tjZAnEfRjX2eORrAubIwP327 sgaA== 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 24-20020a631658000000b004774a024588si1866673pgw.719.2023.03.17.04.09.29; Fri, 17 Mar 2023 04:09:42 -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 S230010AbjCQLGa convert rfc822-to-8bit (ORCPT + 99 others); Fri, 17 Mar 2023 07:06:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229881AbjCQLGZ (ORCPT ); Fri, 17 Mar 2023 07:06:25 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A85855A1AA; Fri, 17 Mar 2023 04:06:22 -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 ex01.ufhost.com (Postfix) with ESMTP id 2C0DD24E202; Fri, 17 Mar 2023 19:06:21 +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, 17 Mar 2023 19:06:21 +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, 17 Mar 2023 19:06:20 +0800 From: William Qiu To: , , CC: Rob Herring , Krzysztof Kozlowski , Philipp Zabel , Thierry Reding , William Qiu , Hal Feng Subject: [PATCH v3 1/2] dt-bindings: PWM: Add StarFive PWM module Date: Fri, 17 Mar 2023 19:06:17 +0800 Message-ID: <20230317110618.6885-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230317110618.6885-1-william.qiu@starfivetech.com> References: <20230317110618.6885-1-william.qiu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) 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_NONE, SPF_PASS,URIBL_BLOCKED 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?1760612982597307339?= X-GMAIL-MSGID: =?utf-8?q?1760612982597307339?= Add documentation to describe StarFive Pulse Width Modulation controller driver. Signed-off-by: William Qiu Reviewed-by: Krzysztof Kozlowski --- .../bindings/pwm/starfive,jh7110-pwm.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/starfive,jh7110-pwm.yaml diff --git a/Documentation/devicetree/bindings/pwm/starfive,jh7110-pwm.yaml b/Documentation/devicetree/bindings/pwm/starfive,jh7110-pwm.yaml new file mode 100644 index 000000000000..082b3779fa61 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/starfive,jh7110-pwm.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/starfive,jh7110-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive 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 clockor external clock. Each PWM timer block provides 8 + PWM channels. + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + const: 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@120d0000 { + compatible = "starfive,jh7110-pwm"; + reg = <0x120d0000 0x10000>; + clocks = <&syscrg 121>; + resets = <&syscrg 108>; + #pwm-cells = <3>; + };