Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1837545imu; Thu, 17 Jan 2019 04:11:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN534sie+5HIQZqr+9Jtk8fQElqHZPgalKWlVHBOvadPpHoSjXuYs1323ujmJ9LnBLe0hyFe X-Received: by 2002:a62:1f9d:: with SMTP id l29mr14697014pfj.14.1547727102662; Thu, 17 Jan 2019 04:11:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547727102; cv=none; d=google.com; s=arc-20160816; b=QR2yshaFXb9dIV2Qu1/r0tXCCtlkUblistIlDGLralmGnfR9r7RYEFprq3jnOXb2Br M4EaeYdEnMOMVN0PX20lTWNduHme+36tGbkcT/lWFHwQ2I2HL7ADcBixKjMOcMzppDkB YaoZ+LYsOYCmRiK129VrfjWBEef3/a9eHv6d1EK6iiirC0resws7F8FBvnVwjs1NPHZ+ P3UNkVkIgrC7qtE2CON6r7ijWhAS9/gvkFaEtzLPz4OSKv/rzAwJrfw+tyDwwQNrc+Fp 8CtNzTz6DzabtGSNUI9zK+e3zdVcM153QdJ6e3q3aCp+Wlts3wsbWuqVFDr8H8jnqq2q tkJw== 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=8wLZggP4OhBLOzjLGF/jXLcBj8EiBvR5HvQMj1YLHD4=; b=Kio3P1APsP/ChPYkucKSU3xaMI9Te/LWCgnSur5njXd1Vjd4kFpELxgfa6JkdUhk3i sTq67+a/HgBg+brfBwuvHe7vV92hPyYF/nhMCtozW1R7pQBlJN6eUUXOFrnZBJCk29cS W6Valt9kfcp+fk6k/aeS9DSrHrttMIq0tGFUfgS+jtP9Q1ECUQ9qMc8lkO3eVH7wb4ZH E2GLZICqi3uBXY8fpBbtM8Unh3wQAb5qsVS/12RhZftx02TL9+MhY91TjOZkuoOKkFND Jtx7/nA0ucp+iyZmOw7G48vt+f+xEaGrawldB7Wh7ctJHRodhPYYGV2oWqg6QV/bLZBL bXWA== 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 t2si1418895plz.344.2019.01.17.04.11.26; Thu, 17 Jan 2019 04:11:42 -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 S1727195AbfAQMIp (ORCPT + 99 others); Thu, 17 Jan 2019 07:08:45 -0500 Received: from mail.bootlin.com ([62.4.15.54]:35806 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725983AbfAQMIp (ORCPT ); Thu, 17 Jan 2019 07:08:45 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 0C62A207B6; Thu, 17 Jan 2019 13:08:43 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost (unknown [109.190.253.11]) by mail.bootlin.com (Postfix) with ESMTPSA id B2BF62078C; Thu, 17 Jan 2019 13:08:42 +0100 (CET) Date: Thu, 17 Jan 2019 13:08:42 +0100 From: Alexandre Belloni To: Jan Kotas Cc: Rob Herring , "a.zummo@towertech.it" , Mark Rutland , "linux-rtc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 1/2] dt-bindings: rtc: Add bindings for Cadence RTC Message-ID: <20190117120842.GB26715@piout.net> References: <20190111151401.25047-1-jank@cadence.com> <20190111151401.25047-2-jank@cadence.com> <20190116210806.GA21535@bogus> <46BA7224-B229-4594-B039-8801A806657E@global.cadence.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <46BA7224-B229-4594-B039-8801A806657E@global.cadence.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/01/2019 10:46:50+0000, Jan Kotas wrote: > > > On 16 Jan 2019, at 22:08, Rob Herring wrote: > > > > > > On Fri, Jan 11, 2019 at 03:14:00PM +0000, Jan Kotas wrote: > >> This patch adds a DT binding documentation for > >> Cadence RTC controller. > >> +Required properties: > >> +- compatible: Should be "cdns,rtc-r109v3" > >> +- reg: Specifies base physical address and size of the register area. > >> +- interrupts: A single interrupt specifier. > >> +- clocks: Must contain two entries: > >> + - pclk: APB registers clock > >> + - ref_clk: reference 1Hz of 100Hz clock, depending on IP configuration > > > > 1Hz OR 100Hz? > > Hi, > > The IP has a configuration parameter at build time, > which selects the reference clock frequency. > > It cannot be changed later, and there’s no register which > tells the software which option was selected. > > In this version of the patch, both values are accepted. > If it makes sense I can add a bool property, like > refclock-100hz, which can be used to check the clock frequency. > I guess what rob suggested was s/of/or/ -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com