Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4109509ybl; Mon, 26 Aug 2019 05:44:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBaO8f6MX2P/BcSEaMS3s4BnqgUxJj7+5+4kPJ3TtoeDlu9rdreLBwlqAa26yY4A6/h/Gr X-Received: by 2002:aa7:9217:: with SMTP id 23mr6862702pfo.239.1566823478999; Mon, 26 Aug 2019 05:44:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566823478; cv=none; d=google.com; s=arc-20160816; b=unJD/bc2WZAlZmVTFnGa+kFa82L7xnEhY2Pu9c1dbATt+j2dYDMkYBDBR0zgD+fUSG EMNeEz/Ssd3gzvo3LzM2FLiz8QyyWPKOCqp+fzIuxjayt6ZCFAJb1mvmBSkWMxyvPhXi 6pXwYC8Y+DH6hsYeqGSDSDLq8reHKsEgrmPMZTDSDFEEIO+k7j7KU9oQFaw7gbSUYQlT 79oktxWaYyqOnNaD4gky09DtgOZ7CeMwig6NPIR+1YWrc2ZVC7dAqW11HdFoni9e9G7i ARdMXqsZeWJPv0yTsXY5bVEqQBCB9CoLpOxl8MtTpxBgNH+sGSkRPF9ql4pRYJmSH2rV a9NQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=f3oykBo/gcalDaReg4DETF6dnRQbaYX2tDXZ9jAiv8k=; b=rTdth9EKUZvI1tqARrmKWu5oND5+ck9Vpyl3MN+1IHT69eBlltQu4KK+agDfp3bje6 dKz2KoIS2xCGnqELA9eQAUAheNWydUkhlq+BJbzgxhIqhXC8spDK4RDv5qwCacLCFBOI uKLg3zbkeYT+W1cRKAMsjfWXvUi4RbOHSp1QvsKU87WmIp5erCZuFAqKE2mbZreqOH2x L7K0J/8hZGO912xc+1QilQuPU6p6dzZXDSC/bzkZ72+N1VY88ctpSbRvascrufCsW1ba ONUNyBJXUCX0ZQHpwsjK6xwgFL59QuLwPw21FQIMDYmT282iECa8YuPvJVotnuCDo2ut mnDA== 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 b42si9487206pjc.18.2019.08.26.05.44.09; Mon, 26 Aug 2019 05:44:38 -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 S1731015AbfHZKKV (ORCPT + 99 others); Mon, 26 Aug 2019 06:10:21 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:36013 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727578AbfHZKKV (ORCPT ); Mon, 26 Aug 2019 06:10:21 -0400 X-Originating-IP: 86.207.98.53 Received: from localhost (aclermont-ferrand-651-1-259-53.w86-207.abo.wanadoo.fr [86.207.98.53]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id ADB9B1BF20B; Mon, 26 Aug 2019 10:10:18 +0000 (UTC) Date: Mon, 26 Aug 2019 12:10:18 +0200 From: Alexandre Belloni To: Biwen Li Cc: Trent Piepho , Leo Li , "mark.rutland@arm.com" , "a.zummo@towertech.it" , "robh+dt@kernel.org" , "linux-rtc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: Re: [EXT] Re: [1/3] rtc/fsl: support flextimer for lx2160a Message-ID: <20190826101018.GC21713@piout.net> References: <20190823095740.12280-1-biwen.li@nxp.com> <1566579388.5029.8.camel@impinj.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/08/2019 03:37:43+0000, Biwen Li wrote: > > > > On Fri, 2019-08-23 at 17:57 +0800, Biwen Li wrote: > > > The patch supports flextimer for lx2160a > > > > > > Signed-off-by: Biwen Li > > > --- > > > drivers/rtc/rtc-fsl-ftm-alarm.c | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/drivers/rtc/rtc-fsl-ftm-alarm.c b/drivers/rtc/rtc-fsl- > > > ftm-alarm.c index 4f7259c2d6a3..2b81525f6db8 100644 > > > --- a/drivers/rtc/rtc-fsl-ftm-alarm.c > > > +++ b/drivers/rtc/rtc-fsl-ftm-alarm.c > > > @@ -313,6 +313,7 @@ static const struct of_device_id ftm_rtc_match[] = > > > { > > > { .compatible = "fsl,ls1088a-ftm-alarm", }, > > > { .compatible = "fsl,ls208xa-ftm-alarm", }, > > > { .compatible = "fsl,ls1028a-ftm-alarm", }, > > > + { .compatible = "fsl,lx2160a-ftm-alarm", }, > > > { }, > > > }; > > > > > > > Since there's no data associated with each compatible, it doesn't seem like > > there's any need to add a new one. > > > > What's normally done is add two compatibles in the dts, the base version and > > the specific version, e.g.: > > > > + rcpm: rcpm@1e34040 { > > + compatible = "fsl,lx2160a-rcpm", > > + "fsl,qoriq-cpm-2.1+"; > > > > Or in this case, compatible = "fsl,lx2160a-ftm-alarm", "fsl,ls1088a-ftm-alarm"; > > > > Then there's no need to add to the driver list. > Yes, it will be work. But it will be confusing. Is ls1088a same with lx2160a? No. Well, if you are sure it is the exact same IP that is used, then you should only use one compatible. We usually use the name of the first SoC that had the IP. Is it confusing anyone? Probably not because this will be in a dtsi that nobody will read. Note that adding so many compatbile will increase the boot time of your platform and this is annoying many NXP customers of the i.mx line. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com