Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4443923rdh; Wed, 29 Nov 2023 01:28:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IGLaucQHSbaRRoMjnrGk+JHnS5ylmNP59xGtAoFRM2cY2ZnZg0Wxl9LcoozjQppV/xePwKl X-Received: by 2002:a05:6a20:3d14:b0:18c:18d4:d931 with SMTP id y20-20020a056a203d1400b0018c18d4d931mr20500127pzi.34.1701250086633; Wed, 29 Nov 2023 01:28:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701250086; cv=none; d=google.com; s=arc-20160816; b=NgYPalL3tzA2QuUWFUjZ/2NMOm2LRaIMnEh181aBGxgxv7Ffh8Jee8lzI76pRCApKe W95OOpQtyAfNGpwC1tSG5rj6z19cBqIhBXQrLMyRBHSRh6DBw71Ev6c127UWaXlGCFOL 7KVeK8F3Bsbm3SZ3FpfkC9ODkljq0xDMUva4nVLBkCor+JZlZWUQIXfrGEbUEr+pCehj Le+TV4IAAaLHKBKTI4ds5C+AxvbD8qX+bySMXWhhIENnBK2PVVRiidL773BiMJqoGcrZ G9y7co8Qsx9rkrOCMXSW8Rq0mmT1QxnbsEOcsKThcl3QRJVLzw3R4MMKoONzyQQ1s1+c 4XOg== 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=Q01kL7q/pf4jfrmJjOUn5eBseDYnynjHGzTbX75ul9o=; fh=T4gzk7+hgrXGjSNvKGZTlbuKXCiuDaGkxvCBgfgONjs=; b=qRbeqoX9y6+XMUc4M7eoxjEAO5slTxOgtoV6LRk9QbXKaJ80XCY/Egym4UsU/aWLQT +OkAkZddUkklSoTN/JtrVy2gtZGZTq7HpsyYideLd2SPFyApF1XFiN6Xs4nWAnw/umOw X9jexA/rsE5h11iGZr3RXBr8Df6RSBtyZ99Pk33FrVECXYKInjXtyntXcmKyKGtjuHaz s8wAbz+nMtVjcrZHSayp7iR2dkK784VuCFa/nec72pNc8hgmwID5jQu3cuWCCbw0HS2T gVzo6SbAqHz1F0yzPAi59vzZTDGVAYDlj8r4YRBiinp1wIKJb4ccFXfQQTu+d2f7npmW dSlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id p3-20020a170902e74300b001c9d9050b37si13995710plf.260.2023.11.29.01.28.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 01:28:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 1E1D680A9330; Wed, 29 Nov 2023 01:28:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229892AbjK2J1k convert rfc822-to-8bit (ORCPT + 99 others); Wed, 29 Nov 2023 04:27:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbjK2J1j (ORCPT ); Wed, 29 Nov 2023 04:27:39 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EE25120; Wed, 29 Nov 2023 01:27:37 -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 ex01.ufhost.com (Postfix) with ESMTP id 19EBF24E2D8; Wed, 29 Nov 2023 17:27:35 +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; Wed, 29 Nov 2023 17:27:34 +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; Wed, 29 Nov 2023 17:27:33 +0800 From: William Qiu To: , , , CC: Emil Renner Berthing , Rob Herring , Thierry Reding , Philipp Zabel , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , "Hal Feng" , Paul Walmsley , Palmer Dabbelt , Albert Ou , William Qiu Subject: [PATCH v8 1/4] dt-bindings: pwm: Add bindings for OpenCores PWM Controller Date: Wed, 29 Nov 2023 17:27:29 +0800 Message-ID: <20231129092732.43387-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231129092732.43387-1-william.qiu@starfivetech.com> References: <20231129092732.43387-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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 29 Nov 2023 01:28:02 -0800 (PST) Add bindings for OpenCores PWM Controller. Signed-off-by: William Qiu Reviewed-by: Hal Feng --- .../bindings/pwm/opencores,pwm.yaml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/opencores,pwm.yaml diff --git a/Documentation/devicetree/bindings/pwm/opencores,pwm.yaml b/Documentation/devicetree/bindings/pwm/opencores,pwm.yaml new file mode 100644 index 000000000000..133f2cd417f0 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/opencores,pwm.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/opencores,pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: OpenCores PWM controller + +maintainers: + - William Qiu + +description: + OpenCores PTC ip core contains a PWM controller. When operating in PWM mode, + the PTC core generates binary signal with user-programmable low and high + periods. All PTC counters and registers are 32-bit. + +allOf: + - $ref: pwm.yaml# + +properties: + compatible: + oneOf: + - items: + - enum: + - starfive,jh7100-pwm + - starfive,jh7110-pwm + - const: opencores,pwm-v1 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + + "#pwm-cells": + const: 3 + +required: + - compatible + - reg + - clocks + +additionalProperties: false + +examples: + - | + pwm@12490000 { + compatible = "starfive,jh7110-pwm", "opencores,pwm-v1"; + reg = <0x12490000 0x10000>; + clocks = <&clkgen 181>; + resets = <&rstgen 109>; + #pwm-cells = <3>; + }; -- 2.34.1