Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp767108ybh; Wed, 11 Mar 2020 10:21:59 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu4t3RJcSxN/m+Duc/klwDvruh82hJhhNMNCHfZAvFo3Kmvh1JER2oHzREn88+4nQ4QzQOw X-Received: by 2002:a9d:7653:: with SMTP id o19mr3083437otl.118.1583947319716; Wed, 11 Mar 2020 10:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583947319; cv=none; d=google.com; s=arc-20160816; b=kpkK3lMZdLVli7Z6/8yjeAnplZ7fU7jQtlY+6sLTKbge6/gHb8U1bWOHDVR3OKAYQb 1aB2fuWrdqirRT6SnXgOovF6N2zfph9QhFNkANO/4gHhWmjX1iEzUihDjd9s3CuKuSjK p+LxgwxV5lxoyCPQtdJaQlNqBV1JmEJ9U3QhFylKa58l4keve/ZNR25VlWBNJ0UqNPLr sf2lUmu3YIhLAd3RWzl6E5Ez42RZSYJ43Jb3CJ040rEMx1V4+RRoKu0kYG+rZePNavSz 1E3DhN4tr2LEJ8F83TUu9TZYl16mVRr6FM5uWgqvuDQSTOEl3ZULjt6/hilkkx0CIjhB RJ2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=SRfkpp8M+7DY995ACFm0LV6S5x+iBdswbTCPLyuUHNI=; b=RJEKey8JHC5rhDwFyigpWycd6hdbkEHXlsKf/trEAAM5127ojaA9+Mt/5uMrk5El+6 qJCNFPjdHn+8PD9WdcSgrEPc8fVQ0WlMYUZPWMhRaWnPT+n4GQhrMl4V/u3oUP5Fsj4M e/hQifwAXVnW2qK5+5kWXA51j4C7IT522fCIrch+FUTS1yi9otz2VvxGehhG0ZJc7AXg HQwwWx2o3YjXNk0uvAe6H1ngRLscIPOe77UDodcSueX0mZJ/0vbUqyICKFFFS05kve/z NhPuIA81FmbRq6kjVQG049bYi2VO3V15WD0afsDG82x2Zx/gyJo0z3Cq9J6jHUuJaLVj Yl1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gOSVv67g; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i24si1408452otp.282.2020.03.11.10.21.43; Wed, 11 Mar 2020 10:21:59 -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; dkim=pass header.i=@linaro.org header.s=google header.b=gOSVv67g; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730489AbgCKRVE (ORCPT + 99 others); Wed, 11 Mar 2020 13:21:04 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:36876 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730363AbgCKRVB (ORCPT ); Wed, 11 Mar 2020 13:21:01 -0400 Received: by mail-wm1-f65.google.com with SMTP id a141so3033869wme.2 for ; Wed, 11 Mar 2020 10:21:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=SRfkpp8M+7DY995ACFm0LV6S5x+iBdswbTCPLyuUHNI=; b=gOSVv67gnHdiMys+M2xzhT5wvai2z320rCOPgcpkhbLpV97jJhkGTuNoAzU4NUZhAo D4palYQ2HwAZ0OS3zCphC/Z0UmVcpqQChJKRV5WtqbpmM2Kk7ou5Arh8pFC1dF14OA91 YvbixzwQXk0u70G8Vh3zfpM+OulqR1vgcCxX7taDdz9nUBV0g31sMZ8Zdkh6mRxlcsTs k7ViITXmIF2ThUhrJgslCTsg0VI0hsyFU4EZ42e60p4lK9bRT13xdjNMu02BkpZZYGSu 25CT18gafLV+OXQYAtWsVnW1Dg750/te3dKsDP4gIz5GRrHCxF6Gkn1WB+iu3pXgLxlZ kF8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=SRfkpp8M+7DY995ACFm0LV6S5x+iBdswbTCPLyuUHNI=; b=iXDFM+Sl4K4k5pRhRl8FlXkc3EAO+qBceQ9eFR0bc7m6paByIbWES80Wn8E/ruq+mV DheZSeQbZanArBsBp3hhrS1YjJ8i/sDpYP4uKaMXPtNmWXlO9EJjiwA7MpoQvy7q0LmA gPVu4cTG78/tBYPbg238SRnpMLFzZraRD6PxhUbQMBVf54B8CQznstBWoXVeedOOVOFp cNmMtKnmT7476QdrAcuhs7u9+MI4kga5P5SlgSECqHeeXp1+Z7cbVvSsIJqFHZ0seeyr M7DQ0ji6RGpYxzO2pQFaJohE/K3Le4gC2L6uTaJNWWScMmAcb703Zoov3CsHswWzQ/z4 uCsg== X-Gm-Message-State: ANhLgQ2mKYpkufX5XUrgxenbQXC1QcG9IGqPPJ2IzfetZNJrzjGv7OpY PNhxcp94SkCTLvTJLQfcCH1BQA== X-Received: by 2002:a1c:a78a:: with SMTP id q132mr4716824wme.107.1583947259380; Wed, 11 Mar 2020 10:20:59 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id d18sm8611115wrq.22.2020.03.11.10.20.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2020 10:20:58 -0700 (PDT) Date: Wed, 11 Mar 2020 17:20:56 +0000 From: Daniel Thompson To: Tobias Schramm Cc: Andy Shevchenko , Sebastian Reichel , Rob Herring , Mark Rutland , Maxime Ripard , Sam Ravnborg , Heiko Stuebner , Stephan Gerhold , Mark Brown , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Jonathan Cameron , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/3] dt-bindings: power: supply: add cw2015_battery bindings Message-ID: <20200311172056.wjn3574zrfqxipw6@holly.lan> References: <20200311093043.3636807-1-t.schramm@manjaro.org> <20200311093043.3636807-3-t.schramm@manjaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200311093043.3636807-3-t.schramm@manjaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 11, 2020 at 10:30:42AM +0100, Tobias Schramm wrote: > This patch adds the dts binding schema for the cw2015 fuel gauge. > > Signed-off-by: Tobias Schramm > --- > .../bindings/power/supply/cw2015_battery.yaml | 83 +++++++++++++++++++ > 1 file changed, 83 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml > > diff --git a/Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml b/Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml > new file mode 100644 > index 000000000000..647dbc6e136e > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml > @@ -0,0 +1,83 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/power/supply/cw2015_battery.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Battery driver for CW2015 shuntless fule gauge by CellWise. s/fule/fuel/ > + > +maintainers: > + - Tobias Schramm > + > +description: | > + The driver can utilize information from a simple-battery linked via a > + phandle in monitored-battery. If specified the driver uses the > + charge-full-design-microamp-hours property of the battery. > + > +properties: > + compatible: > + const: cellwise,cw2015 > + > + reg: > + items: > + - description: i2c address > + > + cellwise,battery-profile: > + description: | > + This property specifies characteristics of the battery used. The format > + of this binary blob is kept secret by CellWise. The only way to obtain > + it is to mail two batteries to a test facility of CellWise and receive > + back a test report with the binary blob. > + allOf: > + - $ref: /schemas/types.yaml#definitions/uint8-array > + items: > + - minItems: 64 > + maxItems: 64 > + > + cellwise,monitor-interval-ms: > + description: > + Specifies the interval in milliseconds gauge values are polled at > + $ref: /schemas/types.yaml#/definitions/uint32 > + > + power-supplies: > + description: > + Specifies supplies used for charging the battery connected to this gauge > + allOf: > + - $ref: /schemas/types.yaml#/definitions/phandle-array > + - minItems: 1 > + maxItems: 8 # Should be enough Is it necessary to set a maximum? power_supply.txt is still a text file but there is no mention of a maximum there. Daniel.