Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp902786rdf; Tue, 21 Nov 2023 23:03:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IFXZ6evEIvchMhWmKw/0NyiXMzAA/m3BlpK6noMz951dVecFmcAJAXksIArxlSYEdRmBNVW X-Received: by 2002:a05:6808:3ae:b0:3b2:ec37:da9e with SMTP id n14-20020a05680803ae00b003b2ec37da9emr1430634oie.55.1700636636321; Tue, 21 Nov 2023 23:03:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700636636; cv=none; d=google.com; s=arc-20160816; b=po1yceEZLD3girQYB27Y/fOMu0PONmOVmxZS9LQjkaWTLokiAU9oeGHmxy4osunN1V ytAoJf1Vf38B+ld/Q+ivf0KLe2rz+IGtVSyMNZX7LmKhV4kYDBkfc4kNelt8KXvf5KHf 37cmjppL6buNw95H5KNOadNdnIzBUeIuinZkh9+qXQmHfGu6dwe7pQv5JdnNxqWHs+PA Ncjeqc6CvWqvfDuTciE0yuTO/O/5fJaZ1QKh1Yo6qhR6MKD9s4fT45Ab7b1v2lbvnOSM ltVUAG1S0yzcwRUKlLnJXHatXW1HZ34L6v8AF4HlIb/rYIIcy0OiMkKxZXzms+Im7VLy jYBQ== 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=HcORIIMHt0szsVwkcT5enD7V/xzJEdseMdRNjMT5c1I=; fh=YA7andF7S8vI6P2tWlboTnhCG6JTWwnHdDvttMe6Ksc=; b=JrxctPLS4EMjlaA4t+DFMZiK1YO3oGyeN4X8Jdoo7HBSOXRZ/YTgL168Y1UfqkS8tM XEFTo1LxUb44HhRtLzRnpisZe1m1w4UTpnVWOYwxZG8w2bKkyRzrNNeAUEXY9wzZHdfM QRM1LvPR2SmFZ4BU4XwGqKGs6OCOlPmbmdgY+cgbw8Rk/Hi7MWhtmNgekFDpsIsm1Hnl hnfWwMccEIbOC4+P4OKBDYguH3V2eq5HqFbB6Kx9NJieeMuMw+Wtoc3qgNXG0ilXJgvX L7JqX9GEDSuF3UFLeWKI9gIaeBE+BnoIakgS8vJpI4mN0WA1FaIbKfVonTSh07TPlsye GeXg== 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:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t6-20020a056a0021c600b006910a45a234si12168027pfj.202.2023.11.21.23.03.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 23:03:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id E6DC3819DFF2; Tue, 21 Nov 2023 23:03:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232593AbjKVHDz convert rfc822-to-8bit (ORCPT + 99 others); Wed, 22 Nov 2023 02:03:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229931AbjKVHDy (ORCPT ); Wed, 22 Nov 2023 02:03:54 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AE7712A; Tue, 21 Nov 2023 23:03:46 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 81E6B8132; Wed, 22 Nov 2023 15:03:38 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 22 Nov 2023 15:03:38 +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; Wed, 22 Nov 2023 15:03:37 +0800 Message-ID: <1ba3e8d1-ed89-4aab-ae27-d8d31ee2f150@starfivetech.com> Date: Wed, 22 Nov 2023 15:03:36 +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 , Krzysztof Kozlowski CC: , , , , "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> Content-Language: en-US From: William Qiu In-Reply-To: <20231113-sprung-tantrum-94659009b9d4@squawk> Content-Type: text/plain; charset="UTF-8" X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 23:03:55 -0800 (PST) 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. > > Cheers. > Conor. Hiļ¼ŒConor and Krzysztof, 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? Best regards, William