Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp939818rdf; Wed, 22 Nov 2023 00:39:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IHf953oLfH04qkXXrwwn1/gCpVykx54j6fjWWlwpvIFiK7+bH43Bp+jSgrSw07aWnpbeBqW X-Received: by 2002:a05:6358:cd12:b0:16e:111:fafd with SMTP id gv18-20020a056358cd1200b0016e0111fafdmr518977rwb.12.1700642367815; Wed, 22 Nov 2023 00:39:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700642367; cv=none; d=google.com; s=arc-20160816; b=H9hlwvs3o54dhqhAsMxvlBuzXYjgJ7sCrrpuDOZVnmvUf3PL/JET4EnIlJ1fHPeE1w ATNXAtjgrzaYGXpdc7DrSGPpYiKDr4svAnN4ZvlWqWI5lwOc3cVh1380MoPAO3Nvgom6 NWa+jln6ra7qm8nmyHFDrmQGFI5AuuWA5Rbcv0zXoiE6x2k+ysbFXle76oULbXfeQfzB 88XCMnIbIPoxa37uKG/2VWg0kqNjH8g2RlC8WMtK/mpfRV9qR756+cU0J6YRuZurdWdc 3QOdHo+ubRIdOM1wGJpquvG5nKmZkdV887pQtXlK0tJYjaUut6s1k2Mr24+JdlFVey6g R7bA== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=ClevquIILT9Dw98LF7v9mlLpGssByUybIwS8U3rsj2k=; fh=Rx4E0WhttTYeDM3l8f286qBL0kFEi9cVzjb/7LfJy5w=; b=aaKdXNxuR4ed0IQCF1WcV0XAEqAGBaTUdX0T4HCdH3NL9gFBT+vDu/1waUfUt0wMfc awRx3d9BJDTHpVnLSFnXDkSEaqxrvL+RDsI6nQ9kX5fsacW1pAlSrZ3pUa6ap7UZpQQw Z+4p00rAi3RBOkbn2naTKYS/HeLEZ9Cg+NfMl4xoy4iP47TqmUspZ0MIa5tJ9C2V8oSd kRm1CX+5lOgDeEF9fsd4QXPVzgNfcEbr51oYvBUTvsPazGHprORUsS2CTpd5aEgF80qh L5H8+Ox74XfxTvOeyP6cgwvJPg+WxJge0mrRChvSTBSMzPFv906q/TELPU5Dg73Vm48L 6aVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IfUDgDWc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id 128-20020a630186000000b005be03f0da68si12308042pgb.13.2023.11.22.00.39.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 00:39:27 -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; dkim=pass header.i=@linaro.org header.s=google header.b=IfUDgDWc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 84D7181B94C9; Wed, 22 Nov 2023 00:38:18 -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 S235056AbjKVIhn (ORCPT + 99 others); Wed, 22 Nov 2023 03:37:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235080AbjKVIhl (ORCPT ); Wed, 22 Nov 2023 03:37:41 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A95C198 for ; Wed, 22 Nov 2023 00:37:36 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-548f6f3cdc9so2684632a12.2 for ; Wed, 22 Nov 2023 00:37:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700642254; x=1701247054; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ClevquIILT9Dw98LF7v9mlLpGssByUybIwS8U3rsj2k=; b=IfUDgDWcF2yOgVbf0ocfiNjgIcM8Eh5yoTnR+krAd/dRDUPaa8L2DNDra6hYo9mcLU 9MbfIRSlhZ5vG1mln5qLzzvyuIpBaiGDRHSJqliPougDNOQP1ZJ0RiG+O5DoQl/daQV9 I7/+zOt6Hwb62fRzXLjxV84l7dBYjz56+m2+MktAc2/7jiHVUN10Zfg6anj5612EKt4L O7dGtIwp3RXWwUk8wXlZKyuf8Lox4pna0W96iDM60WZXgnzyhPIHt19RJwPIMCClnHZm wFqMieklRsqNzgYfQluTu57WQooi2TupzWH2u5JBZ5v8txY/Si+4rS3ZZS0egcmA1h0W gJVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700642254; x=1701247054; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ClevquIILT9Dw98LF7v9mlLpGssByUybIwS8U3rsj2k=; b=DXQI2Y0rxXoG7csCT6hMzKk6bky7zjUCQUmeRDaktSOt6RpU1spBkCsi6sY2AALK9R ej1BxwZvmY9pj2OfGyIDm6hHCLIVxd6uRLKgqVQlEZy85G+2BsOl/EmWHKNmsSUT7rwh +owATQuoog8BuR63NqBYj8eePBS/SxopfNL0ZcXW8+h3bwA6dxbfujyJ2ykxj3LrVpJU Jydq0ldi0Gd9KtmBP3i7Xjho++nC2xHomWd43SxWZjjhxLZxF/hZxZp08cJNNAZ8bMaI 68Gailvvw9/s7HlKjW1RT4QEu+ghm7fg774cKRlHfq6ceN01aY2mjlHEfeH7q7y6kxqT sgIw== X-Gm-Message-State: AOJu0YyenUimzp3Son5yoLFizbo9/KzjwTo/zty88VNT4/BYtg5IOtP6 51mJp/XAHUJcexZ2kFFWU5hYew== X-Received: by 2002:a17:906:2208:b0:9e7:c1cd:a4dd with SMTP id s8-20020a170906220800b009e7c1cda4ddmr801352ejs.3.1700642254441; Wed, 22 Nov 2023 00:37:34 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.100]) by smtp.gmail.com with ESMTPSA id w12-20020a1709060a0c00b00a0451425108sm512078ejf.126.2023.11.22.00.37.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Nov 2023 00:37:34 -0800 (PST) Message-ID: <94e69281-93e1-41cd-9cf5-81cbbc15572c@linaro.org> Date: Wed, 22 Nov 2023 09:37:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/6] dt-bindings: pwm: amlogic: add new compatible for meson8 pwm type Content-Language: en-US To: Jerome Brunet , neil.armstrong@linaro.org Cc: Rob Herring , JunYi Zhao , devicetree@vger.kernel.org, Rob Herring , Conor Dooley , Kevin Hilman , Thierry Reding , linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, linux-amlogic@lists.infradead.org, Krzysztof Kozlowski References: <20231117125919.1696980-1-jbrunet@baylibre.com> <20231117125919.1696980-3-jbrunet@baylibre.com> <170040994064.269288.960284011884896046.robh@kernel.org> <4608012c-059f-4d6a-914b-e85ad0c32ff0@linaro.org> <1j5y1wg3sb.fsf@starbuckisacylon.baylibre.com> <2e7a65da-5c1d-4dd4-ac69-7559a53afdf3@linaro.org> <1j1qckg21u.fsf@starbuckisacylon.baylibre.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMFCRRfreEFCwkIBwIGFQoJCAsCBBYCAwEC HgECF4AACgkQG5N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NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <1j1qckg21u.fsf@starbuckisacylon.baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,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]); Wed, 22 Nov 2023 00:38:18 -0800 (PST) On 20/11/2023 11:04, Jerome Brunet wrote: >>>>>> .../devicetree/bindings/pwm/pwm-amlogic.yaml | 36 +++++++++++++++++-- >>>>>> 1 file changed, 34 insertions(+), 2 deletions(-) >>>>>> >>>>> Reviewed-by: Rob Herring >>>>> >>>> >>>> I'm puzzled, isn't it recommended to have a per-soc compatible now ? Yes, it is. >>> I have specifically addressed this matter in the description, >>> haven't I ? What good would it do in this case ? There is nothing about compatible naming in commit msg. >> >> Yes you did but I was asked for the last year+ that all new compatible >> should be soc specific (while imprecise, in our care soc family should be ok), >> with a possible semi-generic callback with an IP version or a first soc >> implementing the IP. >> >>> Plus the definition of a SoC is very vague. One could argue that >>> the content of the list bellow are vaguely defined families. Should we >>> add meson8b, gxl, gxm, sm1 ? ... or even the actual SoC reference ? >>> This list gets huge for no reason. >> >> I think in our case soc family is reasonable since they share same silicon >> design. >> >>> We know all existing PWM of this type are the same. We have been using >>> them for years. It is not a new support we know nothing about. >>> >>>> >>>> I thought something like: >>>> - items: >>>> - enum: >>>> - amlogic,gxbb-pwm >>>> - amlogic,axg-pwm >>>> - amlogic,g12a-pwm >>>> - const: amlogic,pwm-v1 >>> I'm not sure I understand what you are suggesting here. >>> Adding a "amlogic,pwm-v1" for the obsolete compatible ? No amlogic DT >>> has that and I'm working to remove this type, so I don't get the point. >>> >>>> >>>> should be preferred instead of a single amlogic,meson8-pwm-v2 ? >>> This is named after the first SoC supporting the type. >>> Naming it amlogic,pwm-v2 would feel weird with the s4 coming after. >>> Plus the doc specifically advise against this type of names. >> >> The -v2 refers to a pure software/dt implementation versioning and not >> an HW version, so I'm puzzled and I requires DT maintainers advice here. >> >> Yes meson8b is the first "known" platform, even if I'm pretty sure meson6 has Yes, this should be SoC-based compatible, unless you have clear versioning scheme by SoC/IP block vendor. You named it not a HW version, which kind of answers to the "unless" case - that's not hardware version. > > This is not my point. I picked this name because I have to pick a > specific device based one. Not because it is actually the first or > not. I don't see a problem with meson6 being compatible with > meson8-pwm-v2, if that ever comes along. No, the point is not to use "v2". Use SoC compatibles. > > I think the binding here satisfy the rule that it should be specific, > and the intent that goes with it: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/writing-bindings.rst?h=v6.7-rc2#n42 > >> the same pwm architecture, this is why "amlogic,pwm-v1" as fallback seems more >> reasonable and s4 and later pwm could use the "amlogic,pwm-v2" >> fallback. > > That is not how understand this: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/writing-bindings.rst?h=v6.7-rc2#n82 > Again, where the "v2" is defined? Where is any document explaining the mapping between version blocks and SoC parts? Why do you list here only major version? Blocks almost always have also minor (e.g. v2.0). Best regards, Krzysztof