Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1067685rdh; Fri, 24 Nov 2023 04:44:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IH5992SDtF4XV2TkyL0PxY80XDvBHBDikp9xkgi9ZaO3TXRb5bt9T0NQxfUSvIc2En+HZRU X-Received: by 2002:a05:6808:1456:b0:3b8:339a:9a85 with SMTP id x22-20020a056808145600b003b8339a9a85mr3593011oiv.5.1700829881733; Fri, 24 Nov 2023 04:44:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700829881; cv=none; d=google.com; s=arc-20160816; b=tialM87dCWumwimmzBmlDhV3961/VRxwioMRSxDQBADFGafI0ujiKT9xXssqIxBbuQ Hc3x5KuKuMdjUh9RvFqVBahysXQx52B5rbb4oRgbJu4LsoqtiV2Vn3lUk7Wwh3MN/weG z2j+K5OA9+qUK1M3rkl/jVN5lDKVI8A6KvTHboehgg1SZ4T/+frGMAA1qeS1imN6hhA8 p7+z0LobvfKESTarlNzhaVkSp/YSMtiBcMiiZGz6XbjJ00geSbrsh3EDMDE9XH3LxIdh 8d041PSb53qCRmjD96yrRQQBkttHrn7bHG0L6HBqxAB02FXK8XKkhp/MVWXeDWvgQKeb pAhw== 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=Q7aU0XI8jgMQv3vIGCiJK1sbj39n6wndjcTxURVjkdY=; fh=f82Z8S2bfFeJ5lkt2DP96wKPNPfn4m1uIskHDeto/Jk=; b=FuPIthKE7Uzgl1jvTZ4rXhFc26/P1suB47WGOeRqTe9lbO0w+xzH85PcU+KKGjkpty xkUzXGturtkXK5zO4faaGJhoLADzhtwF7xKULda3nruv9L/KQTudS8YUv5cqZvQhacnB bPYzYysqv5J+XZLiJh3Z65XZ6JCgG+7JVNZ3lWRuTO4eYmWvUupuO9P3BYFwd88jDEGV 7oM/Qc3p1GA4YQDzSvY2rIFEP8SBBEHgGdibET6Z0BTL1dluXxEPHS3H1WUkTJeU52Zl ezPrBi3BZfcN5f1N5aqHADrOPuxXPBJIR7Ov0mrGC9DGTi1pITbwq48+JbPl1oS6rMI5 DELA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tu77iqqk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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. [23.128.96.32]) by mx.google.com with ESMTPS id k33-20020a635a61000000b005aba9cdf091si3466118pgm.579.2023.11.24.04.44.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 04:44:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tu77iqqk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 95ACE81EE2DB; Fri, 24 Nov 2023 04:44:38 -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 S230445AbjKXMoW (ORCPT + 99 others); Fri, 24 Nov 2023 07:44:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229742AbjKXMoV (ORCPT ); Fri, 24 Nov 2023 07:44:21 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94DE11710 for ; Fri, 24 Nov 2023 04:44:27 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E744BC433C7; Fri, 24 Nov 2023 12:44:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700829867; bh=eKoPXmjt1vLT0zHIRWJlxGg5yDvAkaj76XFVfYVmlUI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tu77iqqkan/0awoezxvxgdZ58rXcwbBQbr9BDkPshaN/6k2A/ZSrJ2pivmd9lOFY+ NREejYYTNhP/hctnKVNlW9xxR9lOl+AAm7HvNldBpZvBaPQMEigjoRdtwfXxrXh301 xcE5cM2cmXq5hf51Kdghxsk63Sag2CqgUuB6yNEq28E8L65Oyjl9MWvH7nxnqjZ6ZV bPoST1WHx4nvffOJs/rEx7CMwjv5E2tG76Wfga3NEm1722XSU7nPTOoqxy2VuICMy3 CAFsSJdA9pNu8oGTQE5EueslGQ1+Qg0gTqOWNKkRhpsXFw6yEa3xfrggB19O6t3xdL 6jFiujCW9LqYA== Date: Fri, 24 Nov 2023 12:44:21 +0000 From: Conor Dooley To: William Qiu Cc: Krzysztof Kozlowski , 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 v7 1/4] dt-bindings: pwm: Add OpenCores PWM module Message-ID: <20231124-bankbook-scorecard-708d355643c4@spud> References: <20231110062039.103339-1-william.qiu@starfivetech.com> <20231110062039.103339-2-william.qiu@starfivetech.com> <824cee7b-e4d3-461a-8bfb-4ad095c240fd@linaro.org> <20231113-sprung-tantrum-94659009b9d4@squawk> <1ba3e8d1-ed89-4aab-ae27-d8d31ee2f150@starfivetech.com> <20231122-jokester-reapply-eb000d976d56@spud> <701877bd-313f-4604-a398-76a143f009d6@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NUcpPRTAaFfrbmlx" Content-Disposition: inline In-Reply-To: <701877bd-313f-4604-a398-76a143f009d6@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, 24 Nov 2023 04:44:38 -0800 (PST) --NUcpPRTAaFfrbmlx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 24, 2023 at 03:38:41PM +0800, William Qiu wrote: >=20 >=20 > On 2023/11/23 1:36, Conor Dooley wrote: > > On Wed, Nov 22, 2023 at 03:03:36PM +0800, William Qiu wrote: > >>=20 > >>=20 > >> On 2023/11/14 4:17, Conor Dooley wrote: > >> > On Mon, Nov 13, 2023 at 09:07:15PM +0100, Krzysztof Kozlowski wrote: > >> >> On 13/11/2023 10:42, William Qiu wrote: > >> >> > Will update. > >> >> >>> + > >> >> >>> +allOf: > >> >> >>> + - $ref: pwm.yaml# > >> >> >>> + > >> >> >>> +properties: > >> >> >>> + compatible: > >> >> >>> + oneOf: > >> >> >>> + - items: > >> >> >>> + - enum: > >> >> >>> + - starfive,jh7100-pwm > >> >> >>> + - starfive,jh7110-pwm > >> >> >>> + - const: opencores,pwm > >> >> >> > >> >> >> That's a very, very generic compatible. Are you sure, 100% sure,= that > >> >> >> all designs from OpenCores from now till next 100 years will be = 100% > >> >> >> compatible? > >> >> >> > >> >> > My description is not accurate enough, this is OpenCores PTC IP, = and PWM > >> >> > is one of those modes, so it might be better to replace compatibl= e with > >> >> > "opencores, ptc-pwm" > >> >> >=20 > >> >> > What do you think? > >> >>=20 > >> >> Sorry, maybe this answers maybe doesn't. What is "PTC"? > >> >=20 > >> > "pwm timer counter". AFAIU, the IP can be configured to provide all = 3. > >> > I think that William pointed out on an earlier revision that they ha= ve > >> > only implemented the pwm on their hardware. > >> > I don't think putting in "ptc" is a sufficient differentiator though= , as > >> > clearly there could be several different versions of "ptc-pwm" that = have > >> > the same concern about "all designs from OpenCores for now till the = next > >> > 100 years" being compatible. > >=20 > > Perhaps noting what "ptc" stands for in the description field would be a > > good idea. > >=20 > I will add. > >> After discussion and review of materials, we plan to use "opencores,pt= c-pwm-v1" > >> as this version of compatible, so that it can also be compatible in th= e future. > >>=20 > >> What do you think? > >=20 > > Do we know that it is actually "v1" of the IP? I would suggest using the > > version that actually matches the version of the IP that you are using > > in your SoC. > >=20 > > Thanks, > > Conor. >=20 > There is no version list on their official website, so it is not certain = whether > it is v1, but at least the driver is the first version. >=20 > What do you think is the best way? I don't have an account, so I cannot open the "ptc_spec.pdf at this link: https://opencores.org/projects/ptc/downloads but I would take whatever documentation you have for the spec and see what it says as the revision on the front cover. --NUcpPRTAaFfrbmlx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZWCapQAKCRB4tDGHoIJi 0t1NAP9EALyfolLJbgjNd+FQ5ayCKSfM6FNoKDfvCNoJQ6STLAEA57A7SXLsPypf UjTGFuAn6UApcIFw5kzOzYqTjcaCzAM= =oIwa -----END PGP SIGNATURE----- --NUcpPRTAaFfrbmlx--