Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5440901rwi; Sun, 23 Oct 2022 06:12:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM45ikGbcszVqn4cSJewUhSSqBEQRHDeKquOyfwDXzi04rLmPh2ZHschl+qfy1RXEJWAxVOr X-Received: by 2002:a17:903:2285:b0:185:44df:d916 with SMTP id b5-20020a170903228500b0018544dfd916mr28726400plh.120.1666530720944; Sun, 23 Oct 2022 06:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666530720; cv=none; d=google.com; s=arc-20160816; b=guNmpr94+/BpEece8npNv36D9R2tuzkQbMAYdAGa+SBRzmWapAkZmSFtVM1CbcMsdX Kv6+osaOkeZ56aqD607MsQx+P7VQRqPDZUpHMAG+bfKoEEahNG3bX1WM2Ivqodpstiy6 M9vmmXRvm1CS+20VvNdIz/ChYDvNK+g9uLR6DRAtOtBPAU2S7cz9SwGnMJUj44MtKH/B HFIghscK3gWkgFmWwuTqrWejXL2uo+Ii84Ob6uIsplTCzksiVYaLFj2jXnIXWfmaY+/8 cr3x/HUdc5OGvE2+57T6rgy6x9B59Vi6k7IsJwuna4lztGtomihaNbu7SZYxJ719/G4J P3nw== 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; bh=d22Nu7/GsB5hghfVeEKLSy6b7ZpjNBiiw4k31Rhw8Ok=; b=ncOtc3GjEl/w+z1fxGZRjirdblLqGuMGAYAIC3jLVGk/odIgcA/HRyoexDvA9p5z/w LwlHlT0sb7eI6ffq+clXzVYLnPhGYnSALBQGKyR3rcFkwFZKM8gGB3vFIgTAn/bEQlOP KMOH0Z5jPndWt4jyStuAga37HeqU4YRRdkiCChti2xJMTRzDDPxOoiIc6hiZQZGemcnR 2a10lpTck1MbNQlZfOGQPrhl/dsQKrLfC9DHlIvD2hhZZiF1l+AkGkYQIvTNhNNg31vJ t7E2s1Dxe439TgDR9ogPAYxi7UZCAnteTND3q9n7TsDE8rWa1iJJ9GzZUDkiddGPrTrb VKjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11-20020a63504b000000b0046ade103855si31028101pgl.312.2022.10.23.06.11.47; Sun, 23 Oct 2022 06:11:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230070AbiJWMYd (ORCPT + 99 others); Sun, 23 Oct 2022 08:24:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbiJWMYb (ORCPT ); Sun, 23 Oct 2022 08:24:31 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AAE6389F; Sun, 23 Oct 2022 05:24:26 -0700 (PDT) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.94.2) (envelope-from ) id 1oma1d-0007v3-0x; Sun, 23 Oct 2022 14:24:21 +0200 Date: Sun, 23 Oct 2022 13:24:17 +0100 From: Daniel Golle To: Krzysztof Kozlowski Cc: Rob Herring , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thierry Reding , linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Matthias Brugger , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/2] dt-bindings: pwm: mediatek: Add compatible string for MT7986 Message-ID: References: <20221021222338.GA565200-robh@kernel.org> <5182e3c4-9e5e-2c36-408b-9029c65c8803@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5182e3c4-9e5e-2c36-408b-9029c65c8803@linaro.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 Hi Krzysztof, On Sat, Oct 22, 2022 at 12:35:25PM -0400, Krzysztof Kozlowski wrote: > On 21/10/2022 18:58, Daniel Golle wrote: > > On Fri, Oct 21, 2022 at 05:23:38PM -0500, Rob Herring wrote: > >> On Fri, Oct 21, 2022 at 04:25:18PM +0100, Daniel Golle wrote: > >>> Add new compatible string for MT7986 PWM. > >>> > >>> Signed-off-by: Daniel Golle > >>> --- > >>> Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 1 + > >>> 1 file changed, 1 insertion(+) > >>> > >>> diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt > >>> index 554c96b6d0c3e0..6f4e60c9e18b81 100644 > >>> --- a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt > >>> +++ b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt > >>> @@ -8,6 +8,7 @@ Required properties: > >>> - "mediatek,mt7623-pwm": found on mt7623 SoC. > >>> - "mediatek,mt7628-pwm": found on mt7628 SoC. > >>> - "mediatek,mt7629-pwm": found on mt7629 SoC. > >>> + - "mediatek,mt7986-pwm": found on mt7986 SoC. > >> > >> This version of the PWM h/w is not compatible with any of the existing > >> chips? If it is, it should have a fallback compatible. > > > > No, it is unique because it comes with just 2 PWM channels. > > Otherwise the driver behaves just like for MT8183 (4 channels) or > > MT8365 (3 channels) which also got distinct compatible strings. > > Then something would be here compatible. E.g. If you bound MT8183 with > mt7986-pwm compatible, would you get working device with two channels? Yes, but I'd see another 2 channels which do not work, accessing them may even cause problems (I haven't tried that) as it means accessing an undocumented memory range of the SoC which we in general we shouldn't be messing around with. Also note that this case is the same as MT8183 vs. MT8365, they got distinct compatible strings and also for those two the only difference is the number of channels. > > If so, they are compatible. By that definition you should remove the additional compatible for MT8365 or rather, it should have been rejected for the same argument. I'm talking about commit fe00faee8060402a3d85aed95775e16838a6dad2 commit 394b517585da9fbb2eea2f2103ff47d37321e976 Cheers Daniel