From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935598AbeEISco (ORCPT ); Wed, 9 May 2018 14:32:44 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:59946 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935581AbeEIScm (ORCPT ); Wed, 9 May 2018 14:32:42 -0400 Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com X-Spam-Flag: NO X-Spam-Score: -2.9 Subject: Re: [PATCH 4/4] rtc: ds1307: add frequency-test property to check calibration on m41txx To: Rob Herring Cc: Alessandro Zummo , Alexandre Belloni , Mark Rutland , "open list:REAL TIME CLOCK (RTC) SUBSYSTEM" , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" References: <20180508145611.49072-1-giulio.benetti@micronovasrl.com> <20180508145611.49072-4-giulio.benetti@micronovasrl.com> From: Giulio Benetti Message-ID: <05eb5e80-a38a-1988-bec8-54ba7c6f38df@micronovasrl.com> Date: Wed, 9 May 2018 20:32:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: it Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Il 08/05/2018 19:44, Rob Herring ha scritto: > On Tue, May 8, 2018 at 9:56 AM, Giulio Benetti > wrote: >> On m41txx you can enable open-drain OUT pin to check if calibration is ok. >> Enabling OUT pin with frequency-test bool property, OUT pin will tick >> 512 times faster than 1s tick base. >> >> Enable FT bit on CONTROL register if calibration is active. > > A DT is (or should be) a pretty static thing, so I don't think this > belongs. A kernel command line option (via module params) or a > sysfs/debugfs file would make more sense IMO. Totally right, it's very useful having it accessible via sysfs. Already changed and just submitted V2 patchset. Thanks -- Giulio Benetti CTO MICRONOVA SRL Sede: Via A. Niedda 3 - 35010 Vigonza (PD) Tel. 049/8931563 - Fax 049/8931346 Cod.Fiscale - P.IVA 02663420285 Capitale Sociale € 26.000 i.v. Iscritta al Reg. Imprese di Padova N. 02663420285 Numero R.E.A. 258642