Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1755806imu; Sat, 12 Jan 2019 07:06:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN4ZWRT+5iU/13wW21RyuCifCFdtMlO3JciFPAZN9AADTz4rjDzMLA/CBSaJUX5w2IohQlRQ X-Received: by 2002:a17:902:9a07:: with SMTP id v7mr18400789plp.247.1547305601460; Sat, 12 Jan 2019 07:06:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547305601; cv=none; d=google.com; s=arc-20160816; b=aC6QIgTMz0/9sWHi5eVBelNXn3gqVarSPRUGnC8/O73V7a4YrbNncd27CZAZts6hzf CoM/VfbF/GRm1l2OoHSVd06Zy96ADVMWT4XeMH0lHBQbye0wsC8WoZzbtkwluC4vOOc+ 835pDzrzzFT3X6ie24dUYJ+Mhsg9rK+vOnm0ZIfmwrVzLPTcbfqxDk7PP+cy0WzFrtrd Qknvpha4nNSOnlmr5f6l6vrKeHjH/B8DoTuyQjewCduKmdqzSQ+ElJnF4/V7PegfS2bQ DaijJJClv9lwFacBcFTjsrfaxUHHpnZsNDnJ2yGtnTCPZ566FDk+yzL33TlzbDdtgFFA hTQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=QvXW17ek9q56FfPbDrTis+LVEDSIpKbFOng4zCa3sSM=; b=b3cwMKtoaEgMpxLiAHnQMFpWxcp5X3a530kkLb3GW+KdjT0yh1+uDCL2h/GlHvVhFm zfdKFxwZnltAw2i4p4BSMdxbW/SOSjSVoCpXouAtXi4gJOU5NWYqDw69JnnyjP+C8Zlq vZa6DoGIn3RDpsZZWezkswYTwtH8Mcc9Cqh/vL6kh0dYZSN/KuozK/S0dCuyCngF3L+F ZMXQozdi66aA+sBR8neH3vw8p94Jn5ivDxvQaX82MbHULfRF93wkwGiqiqWKeTq5DRXS UULQk0vRTRC/Vd0s8u8lJRPKRHKRc6RVjkJB+EuzYSM8UofkrLIj1YxxKoCUL2gBxN6K Mwjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p9si76674945pgc.448.2019.01.12.07.06.25; Sat, 12 Jan 2019 07:06:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725961AbfALPFU (ORCPT + 99 others); Sat, 12 Jan 2019 10:05:20 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:42047 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbfALPFU (ORCPT ); Sat, 12 Jan 2019 10:05:20 -0500 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1giKqa-0003ir-Jh; Sat, 12 Jan 2019 16:05:16 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1giKqZ-0007fz-NT; Sat, 12 Jan 2019 16:05:15 +0100 Date: Sat, 12 Jan 2019 16:05:15 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Scott Branden Cc: Sheetal Tigadoli , Thierry Reding , Rob Herring , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Praveen Kumar B Subject: Re: [PATCH 1/3] dt-bindings: pwm: kona: Add new compatible for new version pwm-kona Message-ID: <20190112150515.i7mwq7rtd62wlifh@pengutronix.de> References: <1547184076-20521-1-git-send-email-sheetal.tigadoli@broadcom.com> <1547184076-20521-2-git-send-email-sheetal.tigadoli@broadcom.com> <20190111204801.2ytdeblcai7lg3on@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Scott, On Fri, Jan 11, 2019 at 01:28:45PM -0800, Scott Branden wrote: > On 2019-01-11 12:48 p.m., Uwe Kleine-K?nig wrote: > > On Fri, Jan 11, 2019 at 10:51:14AM +0530, Sheetal Tigadoli wrote: > > > From: Praveen Kumar B > > > > > > Add new compatible string for new version of pwm-kona > > > > > > Signed-off-by: Praveen Kumar B > > > Reviewed-by: Ray Jui > > > Reviewed-by: Scott Branden > > > Signed-off-by: Sheetal Tigadoli > > > --- > > > Documentation/devicetree/bindings/pwm/brcm,kona-pwm.txt | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.txt b/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.txt > > > index 8eae9fe..d37f697 100644 > > > --- a/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.txt > > > +++ b/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.txt > > > @@ -3,7 +3,7 @@ Broadcom Kona PWM controller device tree bindings > > > This controller has 6 channels. > > > Required Properties : > > > -- compatible: should contain "brcm,kona-pwm" > > > +- compatible: should contain "brcm,kona-pwm" or "brcm,kona-pwm-v2" > > Is v2 used on a newer generation of kona SoCs? On i.MX these variants > > are usually named after the first SoC that came with the new variant. Is > > this sensible here, too? > > It doesn't make as much sense here as different revs of the IP block are > picked up based on various decisions. > > A new SoC could decide to use an old version. IMHO this is no reason to not use the name of the oldest SoC with this variant. I don't know how the SoC names are in the broadcom family, but if they were (in order of age, oldest first): ant bear crocodile and ant and crocodile use the same IP block we would have a) with v1, v2: ant: compatible = "brcm,kona-pwm-v1"; bear: compatible = "brcm,kona-pwm-v2"; crocodile: compatible = "brcm,kona-pwm-v1"; ; and b) with the SoC naming: ant: compatible = "brcm,kona-ant-pwm"; bear: compatible = "brcm,kona-bear-pwm"; crocodile: compatible = "brcm,kona-crocodile-pwm", "brcm,kona-ant-pwm"; (If you want, drop "brcm,kona-crocodile-pwm", but keeping it is more defensive.) I like b) (with "...-crocodile-...") better than a). crocodile using "...-ant-..." is not more ugly than crocodile using "...-v1". This is also a tad more robust because if broadcom releases kona-dolphin and someone finds a minor difference between the IPs used on ant and crocodile it depends on the order of these events who gets v3, while with the SoC naming the result is clear. (OK, and given that "brcm,kona-pwm" is already fixed, both approaches need slight adaption, but I guess you still get what I meant.) Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |