Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp448454rdh; Wed, 14 Feb 2024 01:28:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX1hG1LccoSjnAc0Iq9+zlG9cJ/R88ptBuzdOGR0pezitoaB73s+1/A7OHrB/gO16hjeozH+vRDOZ0R6hSRRF0djy1IAymm7ngHI6Q4PQ== X-Google-Smtp-Source: AGHT+IEskbKJFymXEeAclkIBw7Gm/P2mvbh17rraQWVFLaVqERsU7n9+puCemc4ritWZzghhNQmH X-Received: by 2002:a17:90a:6f27:b0:296:a76a:9711 with SMTP id d36-20020a17090a6f2700b00296a76a9711mr2070957pjk.12.1707902913382; Wed, 14 Feb 2024 01:28:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707902913; cv=pass; d=google.com; s=arc-20160816; b=lQpP57zxECF99pv5PBCKN81wHcicYENOkObMsu7r+zHiWIPfJYpiK2fHZ6a9Wg+t4g hjoCl+PDNHGeVR8qJBkcI041cOj4SzIsv9DVvuiOKss9jUFmcDAoFulb3qcfhiBtBW2w dFlrWU4WN9zjmyfm3s++6mq4AP29wO2M+V/3LPG67fClLbW3sLrPrYFthhKD/aTxao9I 1JWfX3wb/tGdd1QVC91Kb9QKYfvHrvN0YRgz68wXb9mUPARDlvezmewzN9Rcqg1Ox//0 aEr9xZkQk14ArQpT0Oi5QQy4isFjBoR157Z8ggbco4uBhaQ89B+YHlGQ8v6WyTptt3Jq 8yjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=xahWjdNCi2WsslbcZiKcBqmoJZGlAV9+eeyoycvvNNo=; fh=wNeKsAFdVHJCQMcadmz9FAw6x4H79xekmyIXWLlTkBY=; b=DsgsaMuxgkFEWLq16LgoQkLWpDbqkuVyC/6SsoXb7y6GrW+XkMdpJlmXUyVyXtuZr2 GeXXC4fJk9QOTHN57sDeR4uA5X/6GG5VVfyvRsgegcDlGza//cDSnhh8xdEhD404Odzr qTct0PCQ7GZ+gzE5/aYfnMmh2/n2dOlxUEYnN+viFUoY85oMsnZPxU3HRL0plXGj4CF4 KUP3MgWiS1jnosjWITQFyXAFzCHkhfcby2AWh6KjQ4gGj1mHp16v0XIQx6g1ZntUbPuV qN3S7jGcoK7Dg3RjuU9kveXTCdfVr8tBMREjIxxm0xpX7vjiNpGsJmS2ozTlrQyHQAGI 9YPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=4uggz3V0; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-64959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id kx1-20020a17090b228100b00297305f7b3fsi861810pjb.48.2024.02.14.01.28.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 01:28:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=4uggz3V0; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-64959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EBF62286097 for ; Wed, 14 Feb 2024 09:28:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FFB61642C; Wed, 14 Feb 2024 09:28:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="4uggz3V0" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D19651429C; Wed, 14 Feb 2024 09:27:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707902880; cv=none; b=XE58aZvStvjhIznJ/mUrji2H5u6HQOnxM5+Q02p9TGUrummMpupbVzxDPg6gb8yaQNmtGhax1T3/w/w5QNaRu6j4K50gvGuRmjilzUEOC0wZATlEIQrZvd6E1uce6jVwS4YvIwPY+xYNFs25za4CNmosZ+ei8QkPYIdjMwGS/DM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707902880; c=relaxed/simple; bh=R7/bEBifI4lBAh8QUwfn+H3MAcMLkC8MOxtp6x/n10M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=KLLP0nyULMPB05MmIOFj/C7ttkD8947q1sQDtHVXm0lhzjEqbRkP+J2u675Y6zAkISwtKv969zMQIk2hmLnuo7qVLdaDrKFnUpp3C7Z0hy3adl/TN7dtf4ju3PUOhqX1DoClROrf4aUakC6D/c4CcIwV4h+TeDjzn2T4Bkyy7l8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=4uggz3V0; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1707902876; bh=R7/bEBifI4lBAh8QUwfn+H3MAcMLkC8MOxtp6x/n10M=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=4uggz3V0Edxv8IP6cRbU05flDUjer1IhQ4PFjTRlQUhgVduHUEqnpHW8Yyrkwsz1z sjZU2G8VmNpGDZ/ZLCnoWGrsECWcSlKn+UrXq0aJARQmubB0T9vXZNDct5ks00j1xp gouKT9E02DbzrkddLKKJnCfwm0z0SmFeC6KjChIh2b5d9un4TFz7S0lAX3YDDjLi2i OVDzwPrPBVsr8eHkabjEMthfceQ2mC49sVxKGSR+ts4dE2KhXN0vhmgecQXbG2csbq HK3kP2gG+VcB6Dfnu6p3GxbPtxBPPvaNsRGhjGhQiq+NzvRLEa1wL08BAbxB6AA7Fc pnQhu/Fs7tksg== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 3AD113781FEF; Wed, 14 Feb 2024 09:27:55 +0000 (UTC) Message-ID: Date: Wed, 14 Feb 2024 10:27:54 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] dt-bindings: pwm: mediatek,mt2712: add compatible for MT7988 Content-Language: en-US To: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Conor Dooley Cc: Matthias Brugger , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , John Crispin , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= References: <20240213164633.25447-1-zajec5@gmail.com> <20240213-resource-evaluator-0754cfd5882d@spud> From: AngeloGioacchino Del Regno In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Il 14/02/24 07:34, Rafał Miłecki ha scritto: > On 13.02.2024 19:18, Conor Dooley wrote: >> On Tue, Feb 13, 2024 at 05:46:32PM +0100, Rafał Miłecki wrote: >>> From: Rafał Miłecki >>> >>> MT7988 has on-SoC controller that can control up to 8 PWMs. >> >> I see a binding and a dts patch, but no driver patch, how come? > > I believe that to avoid cross-trees patchsets (which are sometimes > tricky for maintainers) there are two ways of submiting such changes: > 1. dt-binding + driver; then (separately) DTS > 2. dt-binding + DTS; then (separately) driver > > I chose later in this case as my personal priority right now is to deal > with all MediaTek DTS files. > > Is that wrong or unacceptable? > It's not wrong but it's partially unacceptable, at least on my side. In my opinion (and I believe many do agree with me), sending the binding along with the driver is the right choice, and if you also want to include the dts that is also appreciated: series can go through multiple maintainers applying subsets - it's ok to do. I want to put emphasis on sending the binding with the driver, as this allows for a better review on everyone's side because we do see the full picture and we can give better advices: in this case, I'm not sure whether adding a new compatible for MT7988 in an enum is a good idea, as the compatible string may be shared with one of the *eleven* SoCs that are supported in the PWM driver, meaning that (hardware speaking!) the PWM controller in 7988 might be the same as the one in mt1234. Thanks for the great work that you're doing on the bindings btw. Keep it up! Angelo > >> Also, what makes this incompatibly different with the other devices in >> the binding, like the 8183? > > It can control 8 PWMs unlike any other SoC block except for MT2712. > It uses different registers than MT2712 thought. > > >> Cheers, >> Conor. >> >>> >>> Signed-off-by: Rafał Miłecki >>> --- >>>   Documentation/devicetree/bindings/pwm/mediatek,mt2712-pwm.yaml | 1 + >>>   1 file changed, 1 insertion(+) >>> >>> diff --git a/Documentation/devicetree/bindings/pwm/mediatek,mt2712-pwm.yaml >>> b/Documentation/devicetree/bindings/pwm/mediatek,mt2712-pwm.yaml >>> index 0fbe8a6469eb..a5c308801619 100644 >>> --- a/Documentation/devicetree/bindings/pwm/mediatek,mt2712-pwm.yaml >>> +++ b/Documentation/devicetree/bindings/pwm/mediatek,mt2712-pwm.yaml >>> @@ -24,6 +24,7 @@ properties: >>>             - mediatek,mt7629-pwm >>>             - mediatek,mt7981-pwm >>>             - mediatek,mt7986-pwm >>> +          - mediatek,mt7988-pwm >>>             - mediatek,mt8183-pwm >>>             - mediatek,mt8365-pwm >>>             - mediatek,mt8516-pwm >>> -- >>> 2.35.3 >>> >