Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp5063318pjb; Mon, 27 Jul 2020 11:59:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxIpyi5laKc3GZVP5zd/ZngqnlqKIeKIrDvJnq+mT0/0OUgdKtImh9p98JyH6t0RYYwBWB X-Received: by 2002:a17:906:1e0c:: with SMTP id g12mr12721361ejj.103.1595876369518; Mon, 27 Jul 2020 11:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595876369; cv=none; d=google.com; s=arc-20160816; b=hChMZ6vulXOdCsQ6CQkUaEMfkUQaPWEL/79t4l2gb6bp8hLtUG7b+7OEkdAI9KuSya fveIUK71OSnanvDvQ8NZvy947tm/IC4Ny6d+kFi+rBXeTuWLYAIRN9owY1A7PQ54wCg5 /clpG4nHygnBrxsXeAAJ6iSvgZGBoseG5KzpZ+W0dA9koK5FNd597IhIH8lelt6L34Zi 034ITnXMjCOs5M1qBkwvIJ/aXjFv4qhXLBkmb0o1DjN4jVF4Alt5+V5DPgzBe+ms4aa7 oIlegyIOewK7qcX0mKKahu3xn3/tSxZ78SpK6zpRhr/8dE5hbUKBOdc99Ss0OONBEMgQ 4IxQ== 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:dkim-signature; bh=OWoBvMBmWyDilWMUdxwiwp8BDkF9aBjJr3HcaF0ozXo=; b=ocqUmYf9Hozkiv38XTww2X5ZSy8gdnSBU+zNPXJLLsBTIDI0gsEtB8IemQ3c8FRJRk 3d0xy4h6+uwUHMPL8pxz+H+xqaPG6C4k153oEtmxcU5/gpm7V98/R+UnWoqqC5uHyLyG rS1swWgizYuDOiKoUe49iI+PwYoIyDwS1xo7fddFPzyUs1ig3E9CFqT2adYhkIqSPJuP aUWjyTtX6q5233JMRF1YjbdXi+LeNC4P4A50b0XpFN7Veuxmgj3ke7IUdvqN4ehgEr5F Fl9G6r9Csyl4o2/bLCBxVYuVVSqogofRdkNuAbuyLZ0bN0z4Wr6jZ5Rz1RqihMPTZ9+S 828g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=gNMTf3a9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si6997272ejl.71.2020.07.27.11.59.07; Mon, 27 Jul 2020 11:59:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=gNMTf3a9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731044AbgG0RbC (ORCPT + 99 others); Mon, 27 Jul 2020 13:31:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730662AbgG0RbC (ORCPT ); Mon, 27 Jul 2020 13:31:02 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 028CEC061794; Mon, 27 Jul 2020 10:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=OWoBvMBmWyDilWMUdxwiwp8BDkF9aBjJr3HcaF0ozXo=; b=gNMTf3a99kpRORweCKLBEzsKU iSe3KroPt7Iqtw/bTqtUJLI9vbLgXjhJlmVBffJQNmOwMpMP444Elz5KmXqbFFYSaohyNGYv4trFv kLXIAej49+UmDQL8ZkxwyYIytiTS6jYsMNbGzKLZXhqjRnzYO+298DuWWtJJ/3F7w24d2Or+d16Gv Mr4LBEDVQeIAInXJvWmh7F6sxHglSw/9CUoqxs2GKOo3YdDcpdYsJ5AktzS+SGXMUVkN6hIl8BwvK RznIj6+WwBcv3VOUHARDlkq5x9OqDNV5L3g0xmJh7xkl0hjixEhim6FZVOCJy3WEb3hRWOBKjsynO HR4yAjzmQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:44886) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k06xh-00037t-BM; Mon, 27 Jul 2020 18:30:53 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1k06xf-0003pn-Gq; Mon, 27 Jul 2020 18:30:51 +0100 Date: Mon, 27 Jul 2020 18:30:51 +0100 From: Russell King - ARM Linux admin To: Alexandre Belloni Cc: Jon Nettleton , Rob Herring , Miguel Borges de Freitas , a.zummo@towertech.it, Baruch Siach , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , NXP Linux Team , devicetree , linux-arm-kernel , Linux Kernel Mailing List Subject: Re: [PATCH v2 1/3] dt-bindings: rtc: pcf8523: add DSM pm option for battery switch-over Message-ID: <20200727173051.GM1551@shell.armlinux.org.uk> References: <20200720112401.4620-2-miguelborgesdefreitas@gmail.com> <20200723174905.GA596242@bogus> <20200723195755.GV3428@piout.net> <20200727094553.GH1551@shell.armlinux.org.uk> <20200727144938.GC239143@piout.net> <20200727152439.GK1551@shell.armlinux.org.uk> <20200727154104.GE239143@piout.net> <20200727154335.GL1551@shell.armlinux.org.uk> <20200727161632.GF239143@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200727161632.GF239143@piout.net> 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 Mon, Jul 27, 2020 at 06:16:32PM +0200, Alexandre Belloni wrote: > On 27/07/2020 17:55:50+0200, Jon Nettleton wrote: > > > So, can we please have that discussion, it is pertinent to this patch. > > > > > > > Thinking about this some more, I believe whether or not an IOCTL > > interface is in the works or needed is irrelevant. This patch > > describes the hardware and how it is designed and the topic of > > discussion is if we need a simple boolean state, or if we need > > something that could be used to support dynamic configuration in the > > future. I would rather make this decision now rather than keep > > tacking on boolean config options, or revisit a bunch of device-tree > > changes. > > Something that would describe the hardware is a property telling whether > the filter is present on VDD, not a property selecting DSM. The driver > can then chose to avoid standard mode when needed. Whether DSM needs to be enabled or not is _not_ just a function of whether there is a filter present or not. The requirement in the data sheet is that when the VDD supply drops below 2.5V, it does not fall more than 0.7V/ms. That can be achieved many different ways, not only by adding a resistive filter to the VDD supply to the RTC. It could also be achieved via the design of the power supply - for example, having a large enough reservoir capacitor to ensure under all loads that the VDD supply will not fall faster than 0.7V/ms. There are many ways to meet this requirement. Adding a DT property to indicate whether the filter is present or not is definitely not the right approach. Should we also add properties for every possible solution to this problem. vdd-has-filter; psu-has-large-capacitors; ... etc ... -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!