Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2384725rdb; Fri, 8 Dec 2023 06:46:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7VC2gABjukVwVwJY+0/Lj9ssfg/6D7kNI9AIrCAs9cGVApYvbLihuKq6qW473yIHi0yIW X-Received: by 2002:a05:6a20:2583:b0:188:39e:9054 with SMTP id k3-20020a056a20258300b00188039e9054mr111133pzd.6.1702046771027; Fri, 08 Dec 2023 06:46:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702046771; cv=none; d=google.com; s=arc-20160816; b=ZqL2ZW/1ZxF+R4yQzHiMWEjhVc1hckV2r0O8c/pnlcYqX52lyJJAeyTYQk7zFoPq1+ rtVoxyeQ1j2+2QoElO88BTPFSxudUyOdrhNcEVk1yx/58I3uRZyGY8RZEKodRntD4kYZ ljWvYSDO3a4rfTS7tVISxOxcgZeNRb6fDcR0HG+AJ53lP7YKjIb0DtSHkz7NSFRyFyyN qENmpZAytFdzk+lATIyQpT6FFiO+o0us0dCKLbIBTtBozo1twIntWt7d/eB+PeRY2IrT A+0NLlrx9DqrYqNwc+hiQgMLxLCy+uudYxCLLv8peRy0C0vMuVMAO1ARhkvaKneK+rDT yJ0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XEgLoJY9XSe+lSbAH+3WsBxXryDNVFApDgueN/q6kGw=; fh=I1wwNmMccsjYP3QYRAQ4yPl86bVOfsrxouAYn6m+xyA=; b=MVCCuUn2zV/VpLAMjbznXML04qySZfBRMi0Ei9I7ogapSJ45WbAGsvnZoHwPuuO7kS v/9Mmx2W+dDmsVtPWbv65pAbNb7fUeyttYTqItjM6mEf07zppPwvahWgHIPS1qEWEV2e b4q/zR+8btX5vWTz78o0XxcSfzLuMrUtY1kOaQe/qMupVSNYWX/f267iCWTVIQaJKWtc lcUu9K/7PWM/dYlWrinDyZ650bHWyEmw9OTX9QOUIijeQ4nZ4lm2HqBjOXfZEKVmkUeE xeSsP/2Ankdm/fOPsSfsVhRTm1RCZHbcvr1H3yQKX4Unj7alJ/W8Z+Wf/s7wb8GCxNu0 yHZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E5T0C5dx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id a4-20020a631a44000000b005c63ff42dbdsi1632917pgm.167.2023.12.08.06.46.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 06:46:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E5T0C5dx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id B4C478082844; Fri, 8 Dec 2023 06:45:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573994AbjLHOpG (ORCPT + 99 others); Fri, 8 Dec 2023 09:45:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573984AbjLHOpF (ORCPT ); Fri, 8 Dec 2023 09:45:05 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC1D61720 for ; Fri, 8 Dec 2023 06:45:11 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B30BC433C7; Fri, 8 Dec 2023 14:45:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702046711; bh=alMIVXtN0++wgPE7Yj1ylmvd8+9QvE9E1C3+NnY8d9Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=E5T0C5dxahWbKqUUR68JF6jiGuJfU32NXq04SIiPNtveDTAmklWwhM9kqhQLhF93g xXy7na58IPtgGZs+h5f4LZf+NwJUBFmPKAzBzcRLEkucfRe64wTFtVcFwjE8gmk+Ke YlyS0mcbhOeti4H1RbEIpXVgCzeGf+wKV8El+Xseu9eliukVW8HUr7BOV/uHs1FMJr kRnyF+XAb+qj3xcVRSYbzNxVlEPyAGwEahd3cdOFbsGbh9U30ReR4C/ruk5D80clvo uQt6HakEIDFikQ+bfiUpqQadc+1XoFEmAD9nlj66/xow3E5jxXPQcxojob0BXtWYqr Ocgb7MItOM27A== Date: Fri, 8 Dec 2023 14:45:05 +0000 From: Conor Dooley To: William Qiu Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-pwm@vger.kernel.org, Emil Renner Berthing , Rob Herring , Thierry Reding , Philipp Zabel , Krzysztof Kozlowski , Conor Dooley , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Hal Feng , Paul Walmsley , Palmer Dabbelt , Albert Ou Subject: Re: [PATCH v9 1/4] dt-bindings: pwm: Add bindings for OpenCores PWM Controller Message-ID: <20231208-stunned-ploy-2a9e73933ae8@spud> References: <20231208094209.1910934-1-william.qiu@starfivetech.com> <20231208094209.1910934-2-william.qiu@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="VqHdBtEYxkgaGrmF" Content-Disposition: inline In-Reply-To: <20231208094209.1910934-2-william.qiu@starfivetech.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 08 Dec 2023 06:45:28 -0800 (PST) --VqHdBtEYxkgaGrmF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 08, 2023 at 05:42:06PM +0800, William Qiu wrote: > Add bindings for OpenCores PWM Controller. >=20 > Signed-off-by: William Qiu > Reviewed-by: Hal Feng Reviewed-by: Conor Dooley Cheers, Conor. > --- > .../bindings/pwm/opencores,pwm.yaml | 55 +++++++++++++++++++ > 1 file changed, 55 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/opencores,pwm.y= aml >=20 > diff --git a/Documentation/devicetree/bindings/pwm/opencores,pwm.yaml b/D= ocumentation/devicetree/bindings/pwm/opencores,pwm.yaml > new file mode 100644 > index 000000000000..0b85dd861dfd > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/opencores,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/opencores,pwm.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: OpenCores PWM controller > + > +maintainers: > + - William Qiu > + > +description: > + The 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: > + 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 =3D "starfive,jh7110-pwm", "opencores,pwm-v1"; > + reg =3D <0x12490000 0x10000>; > + clocks =3D <&clkgen 181>; > + resets =3D <&rstgen 109>; > + #pwm-cells =3D <3>; > + }; > --=20 > 2.34.1 >=20 --VqHdBtEYxkgaGrmF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZXMr7gAKCRB4tDGHoIJi 0n1/AQCqxJkSJDrOMIPKQae1c1CejkKWCIbkI6ee1RCIAcEtZgEA6Qa1IO1dkM4G cYL6KMxjp8nbExzyXKIz4dUJ1XNNZAE= =1aUw -----END PGP SIGNATURE----- --VqHdBtEYxkgaGrmF--