Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3059131ybi; Fri, 5 Jul 2019 01:07:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFxsn6UWbZMpBwZKD7R4HCITPjlJCc6/3U3kAQQLxmwQb7lrdbt+kd7RSSwzU4t0Njc0Ia X-Received: by 2002:a17:90a:ba94:: with SMTP id t20mr3672421pjr.116.1562314075991; Fri, 05 Jul 2019 01:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562314075; cv=none; d=google.com; s=arc-20160816; b=NDaMzWMFCYp6MxFXwj/m/L5I4vpBs40LklxcnBj0HBxHYzcVU8Tk5W4CJ5Nk4p1u6A qbjTomXHtMxbMCTFgmspty6aFBnl/Cjo6cUoUmEjEizmoMcHINMb2NdGO12JkzND3D8n onTrS4O5Fp7CZpm71aOfCnfEnptLKkUbAXXZSqH603Ojkf3CjEItaiuGZcdl2b+RZt2D J4rSZYB2vppcsjz98JYXP2Rc+9HNVp+7KtAHixRfC1Qaqw/ntAds8PsHDpTPuwTOeYqq AsGkvM5+oCt0mx2X1dr6xUF1IamNKRRrRssUqknKEoIm5gsKvRN/F2nOnxrLdPe6bZSR J7yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=BY8TPzgiQE6FdNT5fQQkpJfEkQ90WKwXgFewQnPm0Ic=; b=XZhgh4cb4PmNEaeIki4ErrZ0U4iAPCBVlG/qgBRxoL7Kr8Y2sMuof2Xp04pfPJRDO3 9kcTd9g4RkR84tD7se7WaZGRU18eQmvRdTt0ghoQx2QVnfs8IgNkYsMgZDKD1sEi/CBV z+PPvMgIadEVdLmvTS76q93p73wDkj9HYU8Gdlk2tT1vgCswWzNh2p9Ik+owRlwDrd0b 5/vyhgsZfpwLsdYHZI7q9KCeUeEDr0la6tIOL5C4YasybSX9DSG7natCM7WzmK6H/DRk 4Et/32HXzweG8KvASadMjRyuuk2s5fZWTZZOkOMwQnluYI8Tldx+dldfSm/kN8GRIGGT M/mQ== 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 x10si9005669pfj.93.2019.07.05.01.07.40; Fri, 05 Jul 2019 01:07:55 -0700 (PDT) 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 S1728060AbfGEICo (ORCPT + 99 others); Fri, 5 Jul 2019 04:02:44 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:59333 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727506AbfGEICn (ORCPT ); Fri, 5 Jul 2019 04:02:43 -0400 Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1hjJAu-0001cv-SN; Fri, 05 Jul 2019 10:02:32 +0200 Message-ID: <1562313748.4291.3.camel@pengutronix.de> Subject: Re: [PATCH V3 1/2] dt-bindings: reset: imx7: Add support for i.MX8MM From: Philipp Zabel To: Anson Huang , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , Leonard Crestez , Jacky Bai , Daniel Baluta , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Cc: dl-linux-imx Date: Fri, 05 Jul 2019 10:02:28 +0200 In-Reply-To: References: <20190704094416.4757-1-Anson.Huang@nxp.com> <1562235363.6641.10.camel@pengutronix.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 X-SA-Exim-Mail-From: p.zabel@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 Hi Anson, On Fri, 2019-07-05 at 00:26 +0000, Anson Huang wrote: > Hi, Philipp > > > On Thu, 2019-07-04 at 17:44 +0800, Anson.Huang@nxp.com wrote: > > > From: Anson Huang > > > > > > i.MX8MM can reuse i.MX8MQ's reset driver, update the compatible > > > property and related info to support i.MX8MM. > > > > > > Signed-off-by: Anson Huang > > > --- > > > Changes since V2: > > > - Add separate line for i.MX8MM in case anything different later for > > > > i.MX8MM. > > > --- > > > Documentation/devicetree/bindings/reset/fsl,imx7-src.txt | 6 ++++-- > > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > > > diff --git a/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt > > > b/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt > > > index 13e0951..c2489e4 100644 > > > --- a/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt > > > +++ b/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt > > > @@ -8,6 +8,7 @@ Required properties: > > > - compatible: > > > - For i.MX7 SoCs should be "fsl,imx7d-src", "syscon" > > > - For i.MX8MQ SoCs should be "fsl,imx8mq-src", "syscon" > > > + - For i.MX8MM SoCs should be "fsl,imx8mm-src", "fsl,imx8mq-src", > > > > "syscon" > > > - reg: should be register base and length as documented in the > > > datasheet > > > - interrupts: Should contain SRC interrupt @@ -46,5 +47,6 @@ Example: > > > > > > > > > For list of all valid reset indices see > > > - for i.MX7 and > > > - for i.MX8MQ > > > + for i.MX7, > > > + for i.MX8MQ and > > > + for i.MX8MM > > > > The last line is misleading, as that file contains reset indices that are invalid > > for i.MX8MM. > > What is your suggestion about this line? I would prefer to add an imx8mm-reset.h with only the existing reset bits, using the IMX8MM_RESET_ prefix. That would make it easy to spot errors in the dtsi (anything starting with IMX8MQ_ is potentially wrong). > Just NOT change it? The change is good in principle. It just should point to an imx8mm- reset.h with only the existing resets on i.MX8MM, or imx8mq-reset.h should be modified to actually make clear which resets are valid on i.MX8MM. > Or adding a new file imx8mm-reset.h but still use the IMX8MQ_RESET_ as > prefix ? I don't think you should redefine the same macros in imx8mm-reset.h. In this case using IMX8MM_RESET_ would be better. > Or keep what I changed, but adding some comments in those macros that > i.MX8MM does NOT support? That would be acceptable as well. regards Philipp