From patchwork Fri Mar 10 07:45:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 67260 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp742870wrd; Fri, 10 Mar 2023 00:06:22 -0800 (PST) X-Google-Smtp-Source: AK7set+R67B2cvybCWOn28Z5hB+xRPcwxH0TgNBM+33Uer7J8DH10L/SR5v6aohUsOEQSfo/cNzK X-Received: by 2002:a17:902:bb81:b0:19d:164e:5560 with SMTP id m1-20020a170902bb8100b0019d164e5560mr20982607pls.22.1678435582122; Fri, 10 Mar 2023 00:06:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678435582; cv=none; d=google.com; s=arc-20160816; b=ESU1vMRpc7svTQ+8oVe+eOJd99EFD3S7IRJpHh1QSf8IYiiMSMq3LAGTpFQ1LBNnln YN0yLSajX/fd8LYo4IxftA7i4/0U/+bCNvAl726eUFcdR5OrqfjO3zF2e1CwmI+UleKi 7UjBd7wQ9VDnJZBkYcN/bfB7Kw6kTEgh6VXhGAzXEdgagzgRRrkn2NMYQZ7db9CJDtBf ppRtie1b3nfMjt7nRcv9k5V5dRGc6IhN+H/AIyoHZ1EtVIjhXVUAXs3wzhwMUGxdm5HL Jl6U6q43cyUG57YHfVe/jp36ncis8Z/Omic5BSug4rgVTsFayaxS8zm93+wtTQN2S/yJ EfcQ== 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=iH0BpB0fqDLZrKJyKaJ52Q1NcFYiIQYkXdzCXUwa4Bc=; b=tiM8Rt9/91AeWAYRH4Dp4E1Spc1bhjFmq2uat/ch8b3S5vQnnH/KKDAsKbm6s47/WJ Hau04xeaSG8m5kzhjnW3XyLIzEu8VicCUKH3lW6UX+L17IesrygGvEbEA4NyTTe8UO0W h3vw/b38H5Fdz+MS3+hEsuaVA4F1cHB9PsR0sQrAJvRxsfDCi1nB3TFD0d4F7Aiyg3jk jZMih7dCiPSghQHpCSOZ45yYPP08W/sxsXabfmjXNip00BiTAo6HcGdLvDh1Xq4EkrI+ CnuId30747wPcfByPaN2U71fSINczNHg0Q8vcfMJDMBFv/vWYnRJEq/eoD1IbVyWvcgf lNSA== 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 u12-20020a170902e80c00b0019acc520cf5si1741613plg.389.2023.03.10.00.06.06; Fri, 10 Mar 2023 00:06:22 -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 S229645AbjCJHqU convert rfc822-to-8bit (ORCPT + 99 others); Fri, 10 Mar 2023 02:46:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229843AbjCJHqD (ORCPT ); Fri, 10 Mar 2023 02:46:03 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2882E38010; Thu, 9 Mar 2023 23:45:07 -0800 (PST) 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 A37EB24E17F; Fri, 10 Mar 2023 15:45:05 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 10 Mar 2023 15:45:05 +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; Fri, 10 Mar 2023 15:45:04 +0800 From: William Qiu To: , , CC: Rob Herring , Krzysztof Kozlowski , Philipp Zabel , Thierry Reding , William Qiu , Hal Feng Subject: [PATCH v2 1/2] dt-bindings: PWM: Add StarFive PWM module Date: Fri, 10 Mar 2023 15:45:02 +0800 Message-ID: <20230310074503.155131-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230310074503.155131-1-william.qiu@starfivetech.com> References: <20230310074503.155131-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 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,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?1759967268946820185?= X-GMAIL-MSGID: =?utf-8?q?1759967268946820185?= 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..b66aa4b6eca8 --- /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>; + };