Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp27056ybi; Tue, 16 Jul 2019 15:33:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxcHO0IH3tlJqhvPeRbuSRQoqwWTBoP1R1KnuGRELNyEwIz12gd5CSwhXQ1as3upSwLNgT X-Received: by 2002:a63:ee08:: with SMTP id e8mr12412807pgi.70.1563316385957; Tue, 16 Jul 2019 15:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563316385; cv=none; d=google.com; s=arc-20160816; b=foqnKR6Jna69PsTTlfMLDWhjU/BmILU7QrVfsgjQ5yjRVA73355SCwGxiccqoRy47n haoJd7wW6Dkvy9TnK4FKXJhc/srCxm7Sij4XKUPwp7PgZqiLSbe+GOsZ88ppHqTCq/zJ DaYtaz9NRQ1PvphJe13fi5NOAttNTtICAyoLabi4In1CR/bgo8eml9/az4rAa6RDDPw8 rH6zPufHTFCl5kyb0u6OJIJHcoavWvFcSeemetZaSsvEg1aotEl2fBnFfEhkMnikYQOf vITYyISTS4KjPIoKFzbhJzrBb6H5772CsCtO/ID5tvKQJmH4ZyDLr4/+oR2iwDJegEzI UaIA== 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=pDaO6TV8faW4kEeBqLJEipi3aRARY+J2TvkRYBIg5H4=; b=HezNAzTQKjjZ7/h+XQBNjzrh2sxhgwA9Ek8ZXp7W1P3fZ9yTwhYjKrQxq5uX/Rv1AW 7S39AoKteOgSaMCpVmvcRTKHRa8201LdbE1N6OXw9fPUkrjpiFtZktL/JZkMX53QeseM ZxPFa0MvGB7er5puKI4TwGoR1/zwwYPZ7pNfzTPSYJ98nymKjCKUGNOcfTl4a5xWthHr KkN/WOuMNApMiFDGcdx18qRlgV7H62bNKPl3NckVX3+VO/NTQUVziKkZr0Sxp1U3O+fM m8m+w+XSoj1A+qWj7pP71sxPoZYteHa2l2AB3nVRSwNJ29qXw6tk9rsZz1N92ROOwvh8 K59g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vNf37OR0; 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 h12si20128049pfn.171.2019.07.16.15.32.49; Tue, 16 Jul 2019 15:33:05 -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=vNf37OR0; 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 S2387785AbfGPWcQ (ORCPT + 99 others); Tue, 16 Jul 2019 18:32:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:57010 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728601AbfGPWcQ (ORCPT ); Tue, 16 Jul 2019 18:32:16 -0400 Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) (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 A6590217F9; Tue, 16 Jul 2019 22:32:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563316334; bh=lyaZPWMuZlefKWF7YWB6HVKNuBIrAxc+DmEusw8Ud/Q=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=vNf37OR0RDfDRA/pA30R7v7uYmh+1IpmXebIprzX3BxwoSrlydN97MHm6oxem4sQQ LlrYpfLYwfEtoVDyhkmAEg5oezVsh/7hMHfEObVUHg9diycFqh71DMxFgIL4so284s 3dXRKyEG8K3D2g2ZwMfzykw6fo8H8E6kdzvDwXVs= Received: by mail-qt1-f172.google.com with SMTP id k10so21384166qtq.1; Tue, 16 Jul 2019 15:32:14 -0700 (PDT) X-Gm-Message-State: APjAAAXS5yBQbSWtDdzB9F5/umSDGwMFdD/E7oHZGEewNi6Na8dZusVo H8aX33EMl8QB8RnvIivE4VmIWFnCZywU56Qv2w== X-Received: by 2002:ac8:36b9:: with SMTP id a54mr25318805qtc.300.1563316333903; Tue, 16 Jul 2019 15:32:13 -0700 (PDT) MIME-Version: 1.0 References: <20190716101655.47418-1-biwen.li@nxp.com> <20190716101655.47418-2-biwen.li@nxp.com> In-Reply-To: <20190716101655.47418-2-biwen.li@nxp.com> From: Rob Herring Date: Tue, 16 Jul 2019 16:32:01 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [v5,2/2] Documentation: dt: binding: rtc: add binding for ftm alarm driver To: Biwen Li Cc: Alessandro Zummo , Alexandre Belloni , Yang-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 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. > > 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. > + > +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. > + > +rcpm: rcpm@1e34040 { > + compatible = "fsl,ls1088a-rcpm", "fsl,qoriq-rcpm-2.1+"; > + reg = <0x0 0x1e34040 0x0 0x18>; > + fsl,#rcpm-wakeup-cells = <6>; Before there are any users of this, either drop it if it is not variable or the correct form would be '#fsl,rcpm-wakeup-cells'. > +}; > + > +ftm_alarm0: timer@2800000 { > + compatible = "fsl,ls1088a-ftm-alarm"; > + reg = <0x0 0x2800000 0x0 0x10000>; > + fsl,rcpm-wakeup = <&rcpm 0x0 0x0 0x0 0x0 0x4000 0x0>; > + interrupts = <0 44 4>; > +}; > -- > 2.17.1 >