Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp70612rdd; Wed, 22 Nov 2023 09:37:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRtZ6+DUvNHokFgby+RkjQwsonYBIH+6NXqzJQdMLHz39QRp3oCaHcdqFWqM6BfZdRJNo2 X-Received: by 2002:a05:6a21:6816:b0:187:8bd4:e1b6 with SMTP id wr22-20020a056a21681600b001878bd4e1b6mr3106158pzb.31.1700674629999; Wed, 22 Nov 2023 09:37:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700674629; cv=none; d=google.com; s=arc-20160816; b=Vc3WjJFUCdnipj8VidTdnWS66Yn43x3zAsy6TLt68KsX9MB8UkbIFcwOMv53RjcB8w CmrHJBwq94T5vrRRlAG+EymLaGonyYFxji5UXtuJU0W7tlGM2Fwzqw0u2lo9aRCGaGqM 85Fc60YM3RoLQs61wSoEFi5DCrr9jyXsMmnquVKLaS1zH8VYzJ9QVt7mxnggxDQDU1Xd ohv70+YRmb4jkaXFxczLmBkNcgld19F2WGgs22++DKf/ttYzHjMW88UEcd3MEQ6+NfSd GIq9MWHuFRWlknQjKurUOQWtSa5iCtNP4tlgyJ3soKTeLQUnLR+5p6J45Lha7lrY0M56 AobQ== 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=REVh/fsj6GufwyJgLg3HZXuq4d8I5IcHaC/N1mVBHkI=; fh=f82Z8S2bfFeJ5lkt2DP96wKPNPfn4m1uIskHDeto/Jk=; b=RWO2jp0Dg3XjxrUOasIW+62tmlwTGMBbtDhbzLuCxOpAFnES22wK9QjPHCWomeNNUX Hczh/vMl6LiV+VHSOAvSptDJmi6CAJQP0Rbs1JI/G4c9onGwPjnjILCyAO0qVGyWl2Xl ykQyB0cEV9a1O2l0YYoqd3PPd7vwebHkPqUMsUipvUQlR/CmARNZSs7iz6nfkJYaiSvA IrcWgqYt/FTEQS7PNbbxlXpuaFIjNVuVesb4W1e72JaczRj4OmhPJQE3NG8SOJD69JZb LHeEzp5cGhMSnBtUMhsFMZ+aytodq7NVCQQ/lA2TM04jreCYgThJ0cuLfDgsqFP0r6+r eehQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eu8lf+UQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id 196-20020a6301cd000000b00589fcc39ef1si13064895pgb.365.2023.11.22.09.37.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 09:37:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eu8lf+UQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 15CC380465FF; Wed, 22 Nov 2023 09:36:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231391AbjKVRgo (ORCPT + 99 others); Wed, 22 Nov 2023 12:36:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230353AbjKVRgm (ORCPT ); Wed, 22 Nov 2023 12:36:42 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0DDF19D for ; Wed, 22 Nov 2023 09:36:38 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4854DC433C8; Wed, 22 Nov 2023 17:36:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700674598; bh=Vza99+xtq+1wLQeh3rk7M9wfNhph6mzwpTZ+i29+N5k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eu8lf+UQ8lxS78Mxw93tY9qK+MnxSy1BtNRiLd8+eS9R31GqQxBBks3Gzx0pFkbcy doqzjlz/x1XXXLbJmai3iZKJbx29szV2aJidObn4mHv49HHst47H0JReAaH6mCB3/r JpLXyIbeatYpCd1+ek6uZhbMXrvRsthb8ZkzRs/M1yte6Hutyh31Y6P7yoRPFYOzcL cM+/FVpaTqjjN3KLj3qqKS9JVO6MYw8fYDkXu3wJ2OBnXh2bg6nkmF8N4inruHZZvP BQQBaC+DUmDBc1t8nQ+inJZWemDM64XSFPhpM/klRR5Sq1o/wvzVEHJsepeXc6UJia aVkW3mkMMwNew== Date: Wed, 22 Nov 2023 17:36:32 +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: <20231122-jokester-reapply-eb000d976d56@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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9e0gDyQKikb1dEdb" Content-Disposition: inline In-Reply-To: <1ba3e8d1-ed89-4aab-ae27-d8d31ee2f150@starfivetech.com> X-Spam-Status: No, score=-1.3 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 22 Nov 2023 09:36:55 -0800 (PST) --9e0gDyQKikb1dEdb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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, th= at > >> >> 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 compatible w= ith > >> > "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 have > > 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. Perhaps noting what "ptc" stands for in the description field would be a good idea. > After discussion and review of materials, we plan to use "opencores,ptc-p= wm-v1" > as this version of compatible, so that it can also be compatible in the f= uture. >=20 > What do you think? 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. Thanks, Conor. --9e0gDyQKikb1dEdb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZV48IAAKCRB4tDGHoIJi 0nnhAP0dO+HuU6VJxyhYQTYCOgtFy1M7siCtU/9xX8hHaon4MgEA3d9vorRE+CH8 uSLzgEykIwm2UD5v+hkW0uBeHJrQ8wk= =AWCX -----END PGP SIGNATURE----- --9e0gDyQKikb1dEdb--