From patchwork Tue Feb 28 09:13:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 62353 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2908568wrd; Tue, 28 Feb 2023 01:22:58 -0800 (PST) X-Google-Smtp-Source: AK7set+ltV97D3aa1WCW6TNoC4RXPYvCPyidX3e173Gox8FE27ZNkjm/mivgk9Hj2B3zqB53RcF0 X-Received: by 2002:a17:906:594d:b0:8e7:916f:193d with SMTP id g13-20020a170906594d00b008e7916f193dmr2170280ejr.28.1677576178450; Tue, 28 Feb 2023 01:22:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677576178; cv=none; d=google.com; s=arc-20160816; b=ZiiEJ2vTHSsi08A/7RV3ptOzE9PcuuWTcNk2kP7vpIDZTQy8KmMeAldrPS4I7eqAVt zwgUsijpeWo68pGvYWUL87HavipPpbh8FHrRx01kUqjdmwx7tesD2vNKYldPaufaMaiI s601VXUYFzo13jgwufmQLfYY2LyS64BqxSVLS9po7xbVqaI3UEfqB02S6v5JHQ5gBq70 JLpVo1F2C2LAFnBDTiu22BM/xUAOSQgsXlEFlTAQwJOpwckpd0aEkymXt6vyw610aSsZ BUHzYLgNgOe7CkavnqeO+0vgSJ2mmNOe5EOvmXnhz0LpqwY8f3GsYJDsoW5DHH9vWWI+ 5X8A== 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=SeTEALOYjGjSk2I4nLgnZS/vlftB7GFyyd3z3m4QAM4=; b=c3DtCZhKi7tu78UFd2sRh1VGIJ2aZZeeSC+yATYfFaF0Urku/q2w2cH4lbcoLRhdja 2Ucfs50Uq89xJHHb6pupMrvO/NPSAlGCWO6AC2S6lxkkfb17Kzm+OAMSYOQw07CftbVT VNLAP6iqNCijf34jdfLFUJs9wg3GKHjwGntCrAPkQzK56e9x9RGvvW/JHdqQRv031gfn 5uUyQNPWVTwb1zm2vnqh3H9aSmHntfj8jN0qeoCRXJrpdsxBoJJS76+0FOAUL7w5SBUq mHy5Fvah5BZ77RKFtGGWlDGXE9VESqeBe/1GBoNlt3ADP21sQxwV4zoPbv+AjVmCuQyR BMxQ== 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 sd42-20020a1709076e2a00b008db6177cc3bsi1111559ejc.525.2023.02.28.01.22.35; Tue, 28 Feb 2023 01:22:58 -0800 (PST) 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 S230249AbjB1JOD convert rfc822-to-8bit (ORCPT + 99 others); Tue, 28 Feb 2023 04:14:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbjB1JOB (ORCPT ); Tue, 28 Feb 2023 04:14:01 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EAB81E9DA; Tue, 28 Feb 2023 01:13:59 -0800 (PST) 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 0911324E30E; Tue, 28 Feb 2023 17:13:58 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 28 Feb 2023 17:13:47 +0800 Received: from williamqiu-virtual-machine.starfivetech.com (171.223.208.138) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 28 Feb 2023 17:13:46 +0800 From: William Qiu To: , , CC: Rob Herring , Krzysztof Kozlowski , Philipp Zabel , Thierry Reding , William Qiu , Hal Feng Subject: [PATCH v1 1/2] dt-bindings: PWM: Add StarFive PWM module Date: Tue, 28 Feb 2023 17:13:44 +0800 Message-ID: <20230228091345.70515-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230228091345.70515-1-william.qiu@starfivetech.com> References: <20230228091345.70515-1-william.qiu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759066118955498474?= X-GMAIL-MSGID: =?utf-8?q?1759066118955498474?= Add documentation to describe StarFive Pulse Width Modulation controller driver. Signed-off-by: William Qiu --- .../devicetree/bindings/pwm/pwm-starfive.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-starfive.yaml diff --git a/Documentation/devicetree/bindings/pwm/pwm-starfive.yaml b/Documentation/devicetree/bindings/pwm/pwm-starfive.yaml new file mode 100644 index 000000000000..4ba2a8cc5344 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-starfive.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/pwm-starfive.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: + items: + - 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>; + };