Received: by 10.192.165.148 with SMTP id m20csp13098imm; Thu, 3 May 2018 13:54:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq0SXsrRk/F5mjJHmr6uSXV8YPkemhfsaK2a74f3Ot+LWn6c2yVJr55IpTSwHzWf1Hovg9l X-Received: by 2002:a63:3d8a:: with SMTP id k132-v6mr13866401pga.11.1525380896899; Thu, 03 May 2018 13:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525380896; cv=none; d=google.com; s=arc-20160816; b=iGDILVg1qEcq+c+jwZVFvOE0aeqXIfhVUp5y/8za31K6Ad0zzoBy7d0IU2DLXFWvhT /w1ZQLxTm2Ruk6sRl4zlQ79cfY8aBGtmvigTKNkFQ/+HrsgW7ETEAo1tFB2xjPrq3K9k 2sApUPrbqhtgD9E06BCkX6bHp+7HcOb1wL0MOCTDW1fO+oE58KN9gy/WvD9MAVt959im Y/BqXmb+BOsgSPao8X4CXXnhl9sWh1wiTB8Cl93/elI2MnKROGVFhIHhqSKL4RQN4epf qVnxIJSH6KvKrumrSEO+pQVHEzlvUs/zW1FJ7RySNJjWPeA4I+uCOh/pztc9R9Av8T9b zpTQ== 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:arc-authentication-results; bh=RPt1BshGopYS6mHhDdiOrBhPciIxKS/6m4jjRQTLml0=; b=aQgk/4S9JupV3JmPWLKbf8sKiljtKYoT7cKuyIIrcGxw/KA81gkEuhecQKx6Es9JYW s3AK+tgsarySL+DNxJHYdaS+DWRJYNK0wzbkEjoYdObLw08n1O9Um/uqbBy7GzR1gWUg 9LznShQe4YYRp4syJdQJ0npX2q8ZEwheym7GBc7GunbyM3OLdPNGXx+l4yIOyBZdCV4z bvENePq7MYalYmsgvfF3qdZS0WkdeO0GzviTFoqRz+/Vu4IWnNQh/i1GK0lG+kz8U0Lj NaCXw8kbQ0+sCD73IAgmWh2GgZZTdbfQerG1TGKpOLSWJw0AJB7fEUXyL9EiDT5w3noS jSWQ== 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 z15-v6si12057591pgs.308.2018.05.03.13.54.42; Thu, 03 May 2018 13:54:56 -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 S1751276AbeECUyE (ORCPT + 99 others); Thu, 3 May 2018 16:54:04 -0400 Received: from mail.bootlin.com ([62.4.15.54]:39007 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751103AbeECUyD (ORCPT ); Thu, 3 May 2018 16:54:03 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id B6FF020730; Thu, 3 May 2018 22:54:00 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) 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.0 Received: from localhost (unknown [88.191.26.124]) by mail.bootlin.com (Postfix) with ESMTPSA id 8C15C20384; Thu, 3 May 2018 22:53:50 +0200 (CEST) Date: Thu, 3 May 2018 22:53:51 +0200 From: Alexandre Belloni To: Rob Herring Cc: Amelie Delaunay , Alessandro Zummo , Mark Rutland , Maxime Coquelin , Alexandre Torgue , linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] dt-bindings: rtc: update stm32-rtc documentation for st,syscfg property Message-ID: <20180503205351.GE10960@piout.net> References: <1524144103-21432-1-git-send-email-amelie.delaunay@st.com> <1524144103-21432-4-git-send-email-amelie.delaunay@st.com> <20180427025803.mn32y5xle2p6knn6@rob-hp-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180427025803.mn32y5xle2p6knn6@rob-hp-laptop> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Amelie, On 26/04/2018 21:58:03-0500, Rob Herring wrote: > On Thu, Apr 19, 2018 at 03:21:42PM +0200, Amelie Delaunay wrote: > > RTC driver should not be aware of the PWR registers offset and bits > > position. Furthermore, we can imagine that Disable Backup Protection (DBP) > > relative register and bit mask could change depending on the SoC. So this > > patch moves st,syscfg property from single pwrcfg phandle to pwrcfg > > phandle/offset/mask triplet. > > > > Signed-off-by: Amelie Delaunay > > --- > > Documentation/devicetree/bindings/rtc/st,stm32-rtc.txt | 10 ++++++---- > > 1 file changed, 6 insertions(+), 4 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/rtc/st,stm32-rtc.txt b/Documentation/devicetree/bindings/rtc/st,stm32-rtc.txt > > index a66692a..00f8b5d 100644 > > --- a/Documentation/devicetree/bindings/rtc/st,stm32-rtc.txt > > +++ b/Documentation/devicetree/bindings/rtc/st,stm32-rtc.txt > > @@ -14,8 +14,10 @@ Required properties: > > It is required only on stm32h7. > > - interrupt-parent: phandle for the interrupt controller. > > - interrupts: rtc alarm interrupt. > > -- st,syscfg: phandle for pwrcfg, mandatory to disable/enable backup domain > > - (RTC registers) write protection. > > +- st,syscfg: phandle/offset/mask triplet. The phandle to pwrcfg used to > > + access control register at offset, and change the dbp (Disable Backup > > + Protection) bit represented by the mask, mandatory to disable/enable backup > > + domain (RTC registers) write protection. > > It's fine to add this, but you are breaking compatibility in the driver > with existing DTBs by requiring these new fields. > I'm fine with that change but I would like confirmation that this has been well thought. Maybe Maxime or Alexandre could give their ack. -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com