Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp187650ima; Thu, 31 Jan 2019 14:43:32 -0800 (PST) X-Google-Smtp-Source: ALg8bN5jwqZdcBcV38yDVdSIswjV3C+GVdH5q8wC/6IK5DQaU65Rhksry+PGn4pM3xhyo3DRJL1V X-Received: by 2002:a17:902:f81:: with SMTP id 1mr35536431plz.174.1548974612298; Thu, 31 Jan 2019 14:43:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548974612; cv=none; d=google.com; s=arc-20160816; b=mSptBLujk5XcjdyBnSZ/FSFc7IjadLGKl9nZyVxZvn3cK3hW3TvlVcJPelaHPOPy7d MM7ff8yZcazasB6NHBSWUv4stmXLlBxLlghcGfydtw3fnHkO9kB/M/EK6IHMSjXyIwN6 oQumglzhJ90ZZ8kbncpVl49SYmGoctki06pLUvci0Vj+QcbLJR1i0XRpAy2biZ8UZ+3z xTXgfvHwx9JCsgAMdgEmcbUHZCYq6by0KFlbNM+GNv1R+Ip8eUb7Z7jByksPYLkAiEXc 76gcs46AwnFCkXDVEIxVXAwp8oSM0j3Wk920tW/jNDhT+nfZ8aJwqJCKu+misSRBIh87 R5eg== 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=OA0UfWZAC8l7D3kMHMiA4Ikm69fT31ScoRPOEiCap5c=; b=F2lboQWqEMzqyOPIYmlPlsOeZy1l9ymW44cUI8Q2+6jR0jLCmdx8RwhYLuuBqGh7Vc tDUKOasZ/xcLO4d7PvT+gWIEPT1TBZShgw5yp9KymyBg5wvVrVxyIzY1PlPC23vsSToT j4TrvDXszszymKBt8Bs9QoxNwP2BGd1oayn1clU4kX2vv/ZT4aQudbfGj2xSwmHNt39O XGDL0yHQf04Dx1TD/FO/6+JdJkXl4l+a6A2/T4mgAwCdM/3Bi9BRbx0OzcWjtR9E3Ri0 j/mL26WdauX1n+xNr+5ERzf+f4UHJS7H8vLi235CEDqUxXhsh5Iseft8mIC4B7DvKc05 wT4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oP4Q4XVA; 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 g34si5659469pld.15.2019.01.31.14.43.17; Thu, 31 Jan 2019 14:43:32 -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; dkim=pass header.i=@kernel.org header.s=default header.b=oP4Q4XVA; 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 S1729129AbfAaVGA (ORCPT + 99 others); Thu, 31 Jan 2019 16:06:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:55102 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726963AbfAaVF7 (ORCPT ); Thu, 31 Jan 2019 16:05:59 -0500 Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (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 6BEC4218F0; Thu, 31 Jan 2019 21:05:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548968758; bh=btNfkjQVHvcWdFhRlQwZsiVcv+LPRfd7uNPHVSwQ+OU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=oP4Q4XVAZOovPdTfqpue0S2xmFE+YjJRLhsYtvglwWIYY0uRj6Vd38UK/ZXKZ73xU K/rRSB6+oLV0UwfWcTiKZQ1ryWuPNcACA4YXy8hQJnLy3q+tBD/0O35yQt/GUYc2T6 DwAwAvgkTQtnNagyGVTjgcv0yKGPAYrVvmBt8X6I= Received: by mail-qt1-f179.google.com with SMTP id e5so5069156qtr.12; Thu, 31 Jan 2019 13:05:58 -0800 (PST) X-Gm-Message-State: AJcUukdlR/fACkXn/FPN6r0ofSQCEuV5w27WuU2YRL9i+nId6xjmLShh HgJubFxbgDgtUzWv7M87Iy3EzEFg9+f/u1AD/Q== X-Received: by 2002:ac8:6b18:: with SMTP id w24mr36037546qts.144.1548968757566; Thu, 31 Jan 2019 13:05:57 -0800 (PST) MIME-Version: 1.0 References: <20190129085531.32364-1-markz@nvidia.com> <20190129085531.32364-5-markz@nvidia.com> <20190130195355.GA1652@bogus> In-Reply-To: From: Rob Herring Date: Thu, 31 Jan 2019 15:05:46 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 4/4] mfd: max77620: add documentation for low battery monitoring To: Mark Zhang Cc: Lee Jones , blaws05@gmail.com, Mark Rutland , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-tegra@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 Wed, Jan 30, 2019 at 8:29 PM Mark Zhang wrote: > > On 1/31/2019 3:53 AM, Rob Herring wrote: > > On Tue, Jan 29, 2019 at 04:55:31PM +0800, Mark Zhang wrote: > >> Adding documentation for low battery monitor properties: > >> - maxim,low-battery-dac-enable > >> - maxim,low-battery-dac-disable > >> - maxim,low-battery-shutdown-enable > >> - maxim,low-battery-shutdown-disable > >> - maxim,low-battery-reset-enable > >> - maxim,low-battery-reset-disable > >> > >> Signed-off-by: Mark Zhang > >> --- > >> Documentation/devicetree/bindings/mfd/max77620.txt | 14 ++++++++++++++ > >> 1 file changed, 14 insertions(+) > >> > >> diff --git a/Documentation/devicetree/bindings/mfd/max77620.txt b/Documentation/devicetree/bindings/mfd/max77620.txt > >> index 484b17e4fba5..5fed0a463b80 100644 > >> --- a/Documentation/devicetree/bindings/mfd/max77620.txt > >> +++ b/Documentation/devicetree/bindings/mfd/max77620.txt > >> @@ -142,6 +142,20 @@ Optional properties: > >> Device supports 100/1000/3000/6000 Ohms. > >> Default will be set to 1000 Ohm. > >> > >> +Low-Battery Monitor: > >> +================== > >> +This sub-node configure low battery monitor configuration registers. Device has > >> +support for low-battery monitor configuration through child DT node > >> +"low-battery-monitor". Missed this the first time, but there's not really any reason for these to be in a child node. > >> + > >> +Optional properties: > >> + - maxim,low-battery-dac-enable: Enable low battery DAC. > >> + - maxim,low-battery-dac-disable: Disable low battery DAC. > >> + - maxim,low-battery-shutdown-enable: Enable low battery shutdown. > >> + - maxim,low-battery-shutdown-disable: Disable low battery shutdown. > >> + - maxim,low-battery-reset-enable: Enable low battery reset. > >> + - maxim,low-battery-reset-disable: Disable low battery reset. > > > > Do you really need 3 states with the 3rd being prop not present. > > Yeah, so I think we can just keep 3 of them and shorten the names a little bit > (lbm stands for "low battery monitoring"): > - maxim,lbm-dac-enable > - maxim,lbm-shutdown-enable > - maxim,lbm-reset-enable > > Does this look good to you? Yes. However, are these 3 mutually exclusive? If so, then perhaps 'maxim,low-battery-mode = ""'? Rob