Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1057493rdb; Fri, 20 Oct 2023 07:21:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/QBWPNeQPHeom0l8X51aFenwhzOGyOQ2Tfi7eD2EX2F2nRcCgPv+3tufqRV6r+ZSQd3oF X-Received: by 2002:a17:90b:1191:b0:27c:f1f8:261f with SMTP id gk17-20020a17090b119100b0027cf1f8261fmr1830406pjb.20.1697811699747; Fri, 20 Oct 2023 07:21:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697811699; cv=none; d=google.com; s=arc-20160816; b=D74kGArlkXOBvHGjea89QqE8o5tzhG4ci0JVDcD0SJuSudb8CoqeefyktQ3MSDFSUE +1ERA1HGwhyXveLxiyAyStFtb4wiD/TdGk9i8WmhGa2LSGW3l2eAvybWqRhrywJyIUeF rQxHrN7CZSe5vVsbAEbrplbUW2JUZn76gfxWi3mIbnb0HprKDOOfHJo/rigMH5PEiHec kSVraHWmZoDPz5+M6zGIR5V8+UFv3je0PSjlbd6FpeQiFBm6p+Dmh5hl7P8ihLZdnpQ9 3lQdS/BEYRaGVBNcNdatapnfJ3nigVaUl+SpHPdY+tH3ptRp4W6XJ4ve58stQ6YmlIXx BA/A== 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=/kzOcr2w76c5ZajGgh7JaYMqgijsDduImmloWRQrwCI=; fh=I1wwNmMccsjYP3QYRAQ4yPl86bVOfsrxouAYn6m+xyA=; b=KqY4sR6ygGSGYjf+fORoFDQ4MY2bZch8gyoAb4ZjhdE64D8TVn0/Tk/ckb2VQH5dyx wlsu+TS4NlDorDhBRc5heVtz7ruqXHHRXJk4iCDlNfkKgNVKrgP9rm1lJp6enleqdkNP zyra2OmlyL9Ef5q4IcIldXwQbNogcDbJI1pnm+zn/3LWfJbMl4yf595UJ5fNfsA2nYtL KowZq33LI1vSK9gQxa2WCmoflNryqK8C9F8H8bC78eq/i/HDfLV8WxtsRODbjv2wRlit rxQqKl2bhpGZZjQXvJugL/6y/toll1UbVYXmK4rOhgxOoSMQQXdId0VHlB1bG7gR7ey5 DDrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fk1B4SIJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id nv9-20020a17090b1b4900b002791a73ab07si2199438pjb.54.2023.10.20.07.21.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 07:21:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fk1B4SIJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id D66B882F3047; Fri, 20 Oct 2023 07:21:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377546AbjJTOVZ (ORCPT + 99 others); Fri, 20 Oct 2023 10:21:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377541AbjJTOVX (ORCPT ); Fri, 20 Oct 2023 10:21:23 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05321D5D; Fri, 20 Oct 2023 07:21:20 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EFABC433C7; Fri, 20 Oct 2023 14:21:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697811680; bh=Sec4O0KSkSkahb8ChGos0WpVoRI0WMt1czHDEPGpGl4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fk1B4SIJRfOw6CSnTzkzYMkE/x3c54CLHy1M83x5hJJ5ZfslOTX1kXRRSOvLHJQO/ jgxu4wkEJu8lU78QW8/QNbFbw22eIloRiTiDupXbkJlfTI+gwvMd7D51AiTgkTtCId 7jL9cNcC6jSDWDo+yYAqx2NoQMC89OpGL997DufNCox/0GYQvcSKpMPSlwg2UT09gw +4pY6+5LfIZGrvRhMmQvOi1xE68es+XFGsnAW/ZD9w6QVtR6lXqj4QTQnCQL6JLUhu Zr+ftbCPS/R7MTC+bCcIdefvZk2xc0SBSAU2M2sajUZEfOGjNOKn0uj7j1ZJA2xtGa QHmEnqWalNKTg== Date: Fri, 20 Oct 2023 15:21:15 +0100 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 v6 1/4] dt-bindings: pwm: Add OpenCores PWM module Message-ID: <20231020-barley-rosy-92c3688cd515@spud> References: <20231020103741.557735-1-william.qiu@starfivetech.com> <20231020103741.557735-2-william.qiu@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="c0ct6Bl9DHRpBcKH" Content-Disposition: inline In-Reply-To: <20231020103741.557735-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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Fri, 20 Oct 2023 07:21:37 -0700 (PDT) --c0ct6Bl9DHRpBcKH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Krzysztof, William, On Fri, Oct 20, 2023 at 06:37:38PM +0800, William Qiu wrote: > Add documentation to describe OpenCores Pulse Width Modulation > controller driver. >=20 > Signed-off-by: William Qiu > Reviewed-by: Krzysztof Kozlowski > Reviewed-by: Hal Feng > --- > .../bindings/pwm/opencores,pwm-ocores.yaml | 53 +++++++++++++++++++ > 1 file changed, 53 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/opencores,pwm-o= cores.yaml >=20 > diff --git a/Documentation/devicetree/bindings/pwm/opencores,pwm-ocores.y= aml b/Documentation/devicetree/bindings/pwm/opencores,pwm-ocores.yaml > new file mode 100644 > index 000000000000..0f6a3434f155 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/opencores,pwm-ocores.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/opencores,pwm-ocores.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. A= ll PTC counters and > + registers are 32-bit. > + > +allOf: > + - $ref: pwm.yaml# > + > +properties: > + compatible: > + enum: > + - opencores,pwm-ocores What does the extra "ocores" suffix add, when it just repeats the vendor prefix? > + - starfive,jh71x0-pwm Krzysztof, did you approve this generic compatible? And the whole thing looks like it should really be something like items: - enum: - starfive,jh7100-pwm - starfive,jh7110-pwm - const: opencores,pwm Cheers, Conor. > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + resets: > + maxItems: 1 > + > + "#pwm-cells": > + const: 3 > + > +required: > + - compatible > + - reg > + - clocks > + > +additionalProperties: false > + > +examples: > + - | > + pwm@12490000 { > + compatible =3D "opencores,pwm-ocores"; > + reg =3D <0x12490000 0x10000>; > + clocks =3D <&clkgen 181>; > + resets =3D <&rstgen 109>; > + #pwm-cells =3D <3>; > + }; > --=20 > 2.34.1 >=20 --c0ct6Bl9DHRpBcKH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZTKM2wAKCRB4tDGHoIJi 0mtkAQDneqmAMFoF4jU76TZRB8bFE0/YWyssA6R28Jn1s3HuawEAiae3jINyrJHZ FyfmraP/Nbf35vRKjhrVBRmITylgPQs= =uBpZ -----END PGP SIGNATURE----- --c0ct6Bl9DHRpBcKH--