Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1622598ybi; Wed, 17 Jul 2019 18:57:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqziTggs9O2LlXxN4p1vYZSRYnyClSwzyExFEAyRQNCn/S2YHU3LnM3xyGeCSKS3dSwOW79o X-Received: by 2002:a63:d944:: with SMTP id e4mr44446156pgj.261.1563415021135; Wed, 17 Jul 2019 18:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563415021; cv=none; d=google.com; s=arc-20160816; b=ZUPUoa2pd4sZsY6gOlGTzizP00IFccZpKVCNfc5ss5PH8H8RpSP2zm7CFSOyWAd05F GIN9mZS1ICYc/vxFTUUYnEeBcS/WEelrlSA9MlNWz1Dp6SPyVSiDf0tPSBDbURcvQs1k iQzvI/AmEhVyRP/shQ3vEoy2PLyv8sqSv/HnC42mJoQzKNMr1KiepIQHNoeChanrchC/ smeZSbDW0jaWZwBP6LcTC2WNy0TmMGidgPufNqwBEWDoa6YfV3tNQlgwHOwQu4kPSr+f ZO6uvgRVwYqJJRRvjh3i8AJFPZgJsj1CC3fOHbFpdUO59IMyGaC0y98daMGfQGVLmq66 LMYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=umhDPgwxxiRqkVFNTpMHHPkIb4WfJzjkqBeysbW/IjY=; b=aRYOIqmCmhro1Li9e+o+9JKRGbcAKR1ishqzYHp7PhemyvwAenn5lJwU3CfnhxDIBy qPcsRivWDuDljcpnVRvM6fR/B4wvGKd17UheitWF1A7sBYSLIJ7S4sZXdpc+ewv2JI4b wF73eLCJ9Nb39bthbzzYMthHdgr35JEstXbOKKR4u5iRpabFe8WcsjtPSGps4w1Zkf06 DdWlWnsmXnqNoVLoqezIZXERk6/cuNpNUD/u8vv/sTyGuP+oyndODYp2/FugrHZea0Z4 BxI/g1JgYyriZyczN9e4PmdM+4GhLU/84zM8Z1l5feEARpwCTdrFeDnm/8tRXZmutsDw xINg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xuZXSuT2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r6si158599pls.145.2019.07.17.18.56.44; Wed, 17 Jul 2019 18:57:01 -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; dkim=pass header.i=@kernel.org header.s=default header.b=xuZXSuT2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731985AbfGRByw (ORCPT + 99 others); Wed, 17 Jul 2019 21:54:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:35228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727822AbfGRByv (ORCPT ); Wed, 17 Jul 2019 21:54:51 -0400 Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6B73D2173B; Thu, 18 Jul 2019 01:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563414890; bh=+dFBbXjg1o6Q3xEgaeFQpPrE0Xa//3kRm2i0iNa5854=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=xuZXSuT21RFL0CKiUHnTsPfRJnVDkOpjNP7h5mhg2eLp1BzCm49C7Fbo8nURaID0g Ok18F40AoQUBAgcdr1c9S2xT4EofUjP/BqhC4ycbBmWB2W1E6fBnb7nuKWDX1o+Wss yXiM8l0mfZydH6Z4JIqCLHN+wAXN0mVKrSl/P+ac= Received: by mail-qk1-f178.google.com with SMTP id s145so19152461qke.7; Wed, 17 Jul 2019 18:54:50 -0700 (PDT) X-Gm-Message-State: APjAAAVrUN4rlstE1wZvtYSgwdsnOZ6YtmnYDwgKtOOc7OA0oTdBgrON JuaMY4mc2AMAVuB09/7EyyhDQYnEQghORLV7Zw== X-Received: by 2002:a37:a48e:: with SMTP id n136mr29211925qke.223.1563414889658; Wed, 17 Jul 2019 18:54:49 -0700 (PDT) MIME-Version: 1.0 References: <20190716101655.47418-1-biwen.li@nxp.com> <20190716101655.47418-2-biwen.li@nxp.com> In-Reply-To: From: Rob Herring Date: Wed, 17 Jul 2019 19:54:38 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [EXT] Re: [v5,2/2] Documentation: dt: binding: rtc: add binding for ftm alarm driver To: Biwen Li Cc: Alessandro Zummo , Alexandre Belloni , Leo Li , "open list:REAL TIME CLOCK (RTC) SUBSYSTEM" , "linux-kernel@vger.kernel.org" , Xiaobo Xie , Jiafei Pan , Ran Wang , Mark Rutland , "devicetree@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 17, 2019 at 4:05 AM Biwen Li wrote: > > > > > Caution: EXT Email > > > > On Tue, Jul 16, 2019 at 4:26 AM Biwen Li wrote: > > > > > > The patch adds binding for ftm alarm driver > > > > Bindings are for h/w, not drivers... > > > > 'dt-bindings: rtc: ...' for the subject prefix. > I will correct it in v6. > > > > > > > > Signed-off-by: Biwen Li > > > --- > > > Change in v5: > > > - None > > > > > > Change in v4: > > > - add note about dts and kernel options > > > - add aliases in example > > > > > > Change in v3: > > > - remove reg-names property > > > - correct cells number > > > > > > Change in v2: > > > - replace ls1043a with ls1088a as example > > > - add rcpm node and fsl,rcpm-wakeup property > > > > > > > > > .../bindings/rtc/rtc-fsl-ftm-alarm.txt | 49 +++++++++++++++++++ > > > 1 file changed, 49 insertions(+) > > > create mode 100644 > > > Documentation/devicetree/bindings/rtc/rtc-fsl-ftm-alarm.txt > > > > > > diff --git > > > a/Documentation/devicetree/bindings/rtc/rtc-fsl-ftm-alarm.txt > > > b/Documentation/devicetree/bindings/rtc/rtc-fsl-ftm-alarm.txt > > > new file mode 100644 > > > index 000000000000..fb018065406c > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/rtc/rtc-fsl-ftm-alarm.txt > > > @@ -0,0 +1,49 @@ > > > +Freescale FlexTimer Module (FTM) Alarm > > > + > > > +Note: > > > +- The driver depends on RCPM driver > > > + to wake up system in sleep. > > > +- Need stop using RTC_HCTOSYS or use the DT aliases > > > + to ensure the driver is not used as the primary RTC. > > > + (Select DT aliases defaultly) > > > > This is Linux specific and not relevant to the binding. > Ok, I will remove all of the Note in v6. > > > > > + > > > +Required properties: > > > +- compatible : Should be "fsl,-ftm-alarm", the > > > + supported chips include > > > + "fsl,ls1012a-ftm-alarm" > > > + "fsl,ls1021a-ftm-alarm" > > > + "fsl,ls1028a-ftm-alarm" > > > + "fsl,ls1043a-ftm-alarm" > > > + "fsl,ls1046a-ftm-alarm" > > > + "fsl,ls1088a-ftm-alarm" > > > + "fsl,ls208xa-ftm-alarm" > > > +- reg : Specifies base physical address and size of the register sets > > > +for the > > > + FlexTimer Module and base physical address of IP Powerdown > > > +Exception Control > > > + Register. > > > +- interrupts : Should be the FlexTimer Module interrupt. > > > +- fsl,rcpm-wakeup property and rcpm node : Please refer > > > + Documentation/devicetree/bindings/soc/fsl/rcpm.txt > > > + > > > +Optional properties: > > > +- big-endian: If the host controller is big-endian mode, specify this property. > > > + The default endian mode is little-endian. > > > + > > > +Example: > > > +aliases { > > > + ... > > > + rtc1 = ftm_alarm0; /* Use flextimer alarm driver as /dev/rtc1 */ > > > + ... > > > +}; > > > > Drop the aliases part. It's not going to work when this is converted to DT schema > > and the comment is Linux specific. > Sorry,I can't drop the aliases part. If any user uses the alarm driver as rtc0, > the user will get wrong time from /dev/rtc0.It is very important. I just mean don't put it in the example. You can use it in your dts file.