Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp885648rdh; Thu, 23 Nov 2023 23:39:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdmYMKOA5nZomKESV4eJjolOxFGB+US4KJrQTOm+27KhmSGp9IRF7OrFeIQUZUFd2dDtV9 X-Received: by 2002:a05:6a00:3989:b0:693:3d55:2bb3 with SMTP id fi9-20020a056a00398900b006933d552bb3mr1916909pfb.26.1700811556650; Thu, 23 Nov 2023 23:39:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700811556; cv=none; d=google.com; s=arc-20160816; b=KSDPIKJ8BVty47TizbuDNBJsi9etpWufOkYTf8Hj0lg7dsLvsNcoyoYT7EcDwQOPWE swJzHMrd6vkolvbgf3PYaguoHXmYn3mx+L9qRF/1D5mUWo/ttHnTbJrzhejOJXwqJ+AG a1tsh4dzFYzTrqhYjKlxKqGW+DvAAUzixosWdDBdIwri02xMINzlX9zi9mwqJdLFo78Z xz16FhA/Z80ptpzp6XeKib0n4HntDNZyMXWhJEeUTbyXpNn2W5qz1Os4uLMc6FuqG/T4 WRR6rJOLiv8zMSo9ua1w23hns5K8rYsMdKKJOluuGqYqADDz3rC6StSYrtxgDPymy4Ic FxIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=CavSQErsyxKYhe+u3NN5BSaFh7FvJNJt4M/C6C8O184=; fh=q4aVHf9Ltu8+Nzyw38v76KgpkvqzGDNdlknIk5b90ck=; b=y/+GFF7PrtM6A9BaomK3L5W92gsGY/nk8AvaPYwcJNqtWAYuQDcLTjeP6KnctcYmL6 iIdv82Q/9cJc6hEwZo+gEk251/RlbX65cMr9bY85R3aj7d/H76XsLKIHUwVlFj3wTm4q lHaj70OJQ2YQ7sFzu3LDK4JdULrsKVxO5G1NxK9JElCSMQhhHSWq3CGXO/dIlbtHMLly IsG0DuD+vfBWRXkh5KKabWtblfngqiI6aBFXtogwPgAytEqI+wtJd8sOSwUVst79cV0V Rp0enzwMorApe1mNUZAybh6svYftf+ktp9D1rGU0YU5IENVFOOdY9wUKEDsYukTkHNvl pL7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id ka9-20020a056a00938900b00690bc2ac50asi3003749pfb.246.2023.11.23.23.39.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 23:39:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 3A5E480A856C; Thu, 23 Nov 2023 23:39:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229705AbjKXHi6 (ORCPT + 99 others); Fri, 24 Nov 2023 02:38:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjKXHiz (ORCPT ); Fri, 24 Nov 2023 02:38:55 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27394BC; Thu, 23 Nov 2023 23:38:58 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id C8E1B24E309; Fri, 24 Nov 2023 15:38:44 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 24 Nov 2023 15:38:44 +0800 Received: from [192.168.120.47] (171.223.208.138) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 24 Nov 2023 15:38:43 +0800 Message-ID: <701877bd-313f-4604-a398-76a143f009d6@starfivetech.com> Date: Fri, 24 Nov 2023 15:38:41 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 1/4] dt-bindings: pwm: Add OpenCores PWM module To: Conor Dooley CC: Krzysztof Kozlowski , , , , , "Emil Renner Berthing" , Rob Herring , Thierry Reding , Philipp Zabel , "Krzysztof Kozlowski" , Conor Dooley , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Hal Feng , "Paul Walmsley" , Palmer Dabbelt , Albert Ou 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> Content-Language: en-US From: William Qiu In-Reply-To: <20231122-jokester-reapply-eb000d976d56@spud> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, 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 howler.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 (howler.vger.email [0.0.0.0]); Thu, 23 Nov 2023 23:39:12 -0800 (PST) On 2023/11/23 1:36, Conor Dooley wrote: > On Wed, Nov 22, 2023 at 03:03:36PM +0800, William Qiu wrote: >> >> >> 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 compatible with >> >> > "opencores, ptc-pwm" >> >> > >> >> > What do you think? >> >> >> >> Sorry, maybe this answers maybe doesn't. What is "PTC"? >> > >> > "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. > I will add. >> After discussion and review of materials, we plan to use "opencores,ptc-pwm-v1" >> as this version of compatible, so that it can also be compatible in the future. >> >> 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. 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. What do you think is the best way? Thanks, William