Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4621830rdh; Wed, 29 Nov 2023 06:33:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYLhnO8/YbCzefSrxmTz5FfADXIuOz4GO+syVB87AzRkaVkuytazOjyUBCMepGCoFrYNpr X-Received: by 2002:a92:ce09:0:b0:35c:a2bb:3fc with SMTP id b9-20020a92ce09000000b0035ca2bb03fcmr14297741ilo.26.1701268402961; Wed, 29 Nov 2023 06:33:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701268402; cv=none; d=google.com; s=arc-20160816; b=Yy2sU/DETg5UXEOa55PPAHRpAWWdkwcgqFKGh7XzOxAKWPlWRbbiIrfm69K+P7Rmki sZZnL9pIInz6eFyz9aPkROvHlqMysm7rqPUfjrzmLcZUxPc6CQb+L3ziUBIlM3pgCLCL CifU+0tmXrs8Yqw72XhYzhbXhbgoGMBQ2VPica6Bw/xFK2vzFvf1ahxNUaNyE4whkJrF MBHaxYENvYqv7vOAbqwMCfXhY7URVpdbtLLFYV7zQCZhIYk0ooAzEBtQFzJUUhT15UNT w4M5hJqvkws/SRCUG96vNyElHZC3sSASuGd43l/XyveA99FfBBqwCyMSi1VFnS+WEwpb QySw== 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=dPMwRwBF2O/pdI3Dq3/qnub7MrbomA/oiHlUSrS2lTs=; fh=I1wwNmMccsjYP3QYRAQ4yPl86bVOfsrxouAYn6m+xyA=; b=GEfvVIT+KFdN5IPLylO0CyZJXV8W4r9irZcS+IIspqONyNciqMiisW7CMqtYGL6Peo llsKwt8VSm1O2WEOp+ZmvtKSM2jBC+LRgb2INefMSNLlrD9/v2ETkgnLjPmHW8A2/bLe c1fJ/ixtYuJemEHczxK2sAAj1YFw8VEk7AozJrml6nRYu8eHe/Gl3tt0cYDGkJuJJS2c m69SElbLAzArZNiHnaVHcMAxdlF3woz+JCmMRHycdXXCs+j9J/JbS2dTOGwrIKoMB0iP 7rDMYFIfQ3s+QWMdKzyorYCGcxUF7BraFqVt1Ggm2gPIfOOyEC7H6JcR2ZorTWLyZZC2 oP1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gKvcWnyw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id w19-20020a634913000000b005bd68976351si14362493pga.55.2023.11.29.06.33.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 06:33:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gKvcWnyw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 1B8E7803D5A7; Wed, 29 Nov 2023 06:33:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234266AbjK2OdD (ORCPT + 99 others); Wed, 29 Nov 2023 09:33:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231195AbjK2OdC (ORCPT ); Wed, 29 Nov 2023 09:33:02 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01826DD for ; Wed, 29 Nov 2023 06:33:08 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8878EC433C8; Wed, 29 Nov 2023 14:33:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701268388; bh=nCUBip91VJPgVyaRslm47tg3WMaKjh0DptQ7V1+aaG8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gKvcWnywP2uOCwGWoh/fP1tY3br+768+t7iK5/AZ4GIT9leS8LhJRzql7QKALNfgu RpMq1oALiCXCTkejzxvkSrRJQOXq0zFSK4VPIaje+KdTwntmUubIdIAUb/nRPVyo0p 8QPYGbx3Q5TSc5ADZ2ylf2mOuQ3hP5EeFXfdpAhA+U/fQlrZ4RYWTt1J+DUrdXGBjT w5OwbXD+MRpy5MgC4KnKWrnbkW1p8+XXefb+Jc+qpKSB5yO5dFUAyDWV7tw2Jj/Gym +uQOWJuzDC9xhl8mCQEMU4yyTZSKba4BLEC86SIpz2m2yjOv1UtByqawi80aBojCUa tOM1QGWgSP2Cw== Date: Wed, 29 Nov 2023 14:33:03 +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 v8 1/4] dt-bindings: pwm: Add bindings for OpenCores PWM Controller Message-ID: <20231129-chaplain-unseeing-e433ec830946@spud> References: <20231129092732.43387-1-william.qiu@starfivetech.com> <20231129092732.43387-2-william.qiu@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="sVewkJ1jWgEyqNJ1" Content-Disposition: inline In-Reply-To: <20231129092732.43387-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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 29 Nov 2023 06:33:20 -0800 (PST) --sVewkJ1jWgEyqNJ1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 29, 2023 at 05:27:29PM +0800, William Qiu wrote: > Add bindings for OpenCores PWM Controller. >=20 > 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.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..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, nit: "The OpenCores PTC IP core" > + the PTC core generates binary signal with user-programmable low and hi= gh > + 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 properties: compatible: items: - enum: - starfive,jh7100-pwm - starfive,jh7110-pwm - const: opencores,pwm-v1 Please use this form here instead. Otherwise, this looks good to me now. > + > + 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 >=20 --sVewkJ1jWgEyqNJ1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZWdLnwAKCRB4tDGHoIJi 0vPNAP4lxb47TExjCroRAbRfe1Mqkn9kvWfUqdQghEp5AktsygD/V4IHEgg4y71a Q6fQO+IQS9o36EIZJ2aOmiys/FLW0gw= =TUhN -----END PGP SIGNATURE----- --sVewkJ1jWgEyqNJ1--