Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp354915ybh; Thu, 12 Mar 2020 03:20:08 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvwP048AGEBkKIII4KT0ipfBqlMnSqWQ4E2KKDT/FVK3ktFGx2jhXPV/TIg9F0fZGNtGo8r X-Received: by 2002:a9d:798d:: with SMTP id h13mr5962987otm.25.1584008408719; Thu, 12 Mar 2020 03:20:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584008408; cv=none; d=google.com; s=arc-20160816; b=aH0r+saEeoKnEWzQFc2q9MGqDXCYQulLyimDEZCE3Uy8quuzyYd7tNLZl970+FcDt+ r/OJ2HSKG6Y4fSix8QbSqGXnCWleG9O4IsvW4ntplmsuIqnqcJu3/BQNyyNdNJcEgsL1 MfLe5r7KQ7MRKZi2R651ERqzilDkcs+MWktb6nryF2pH2Vgi9wbVjxjXJBhUFzwcTeuY XtpML/mJIcIxzp4XjBd8SwiYxKGwiQEww/jZlCJpYrsvRP5764Vuq/mrZp6/GCXu22zK H9VmBfCty68c0LK1XgyhIhIv3+EiVVRhRqnBF7TDCYoMbKyK2vZrpYOecMU9ONGWqQXy 6qlw== 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=JSh5SwgggaNNIP1rhJKmLIM4vESq/2xFcSyTZp+7Nus=; b=hIwKI1FzpLTIEimWkpMXAEYLy4vDz2tV1VCJiSLxJq9fWr8RyK3w0TMGVnnyv4zMkP D3LFbl7gKAg3VlQoQlk4i4keNm8Ne86K304Uwmz22x3SBPWn8wKlYLrK0VwqzUXBVLdp rTKwGf2fmtvZJWXFGQ4aN4hk8X9jTsUJOhnT8Pv2eWSMkRpMV0KS9BMqhqaBDdgtGeWJ E/ClwOMA6wPSTfxlBLAAMZpQbLmtYhtNh3MrQjA6euHIGSOqL6sqNHzjLBb9VVRVAFj6 75CNemmjN+Re5qsATRsVEaNKKq/AXYZu11zZ7LDeyba+fcn19rtmoNrdMfVYlAPgaF0V VJgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rx+1EGWt; 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 r19si1785813otq.241.2020.03.12.03.19.54; Thu, 12 Mar 2020 03:20:08 -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=Rx+1EGWt; 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 S1726756AbgCLKRg (ORCPT + 99 others); Thu, 12 Mar 2020 06:17:36 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:54430 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbgCLKRg (ORCPT ); Thu, 12 Mar 2020 06:17:36 -0400 Received: by mail-wm1-f67.google.com with SMTP id n8so5416486wmc.4 for ; Thu, 12 Mar 2020 03:17:33 -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=JSh5SwgggaNNIP1rhJKmLIM4vESq/2xFcSyTZp+7Nus=; b=Rx+1EGWt2dGF/rxSvLT7XGg2rRWc3yl5MrGHM3fODfxN+My4zCiGC9aeKEjXVaY/C/ +LHCPygIqp9eoxc+JZrBWd7bE5FY7+BnkvLH11AHW/mdG41YmsLhn15hx0GwjkuK1X/F ewTFglT3n/TGbE1lgqU0mwv3vp++G2D3agpGYFaUIaiCmkzvLOJ1Ohco+rUjxj5WO/8d SytvKXLoXZb7b1MkmlzgHZ4b6ixTjOpbOkiacoaqMAlyG6heH8taLU8p2f7qFn5Khhr6 E7im34jcZgsPPAc4GqZdIJrpbekoOOBrxw8QTkhyx32epfHsyD4B2w6iVmJgKc36a6Ns ejHA== 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=JSh5SwgggaNNIP1rhJKmLIM4vESq/2xFcSyTZp+7Nus=; b=OUMV/UukcPam+PInj5HSB7YkET4Ab647EEjzU+M39/Vaa8rloWFH9s7vurfTwloNTp tPLy3mY41NN8DRm1aiN+ojtfR8iZU6XImx5Eamyae1Q9bKUVBbi6PbgFbLCRl2BunRtD gfJFyES9i+wkL+UWsfYUzQj8FLhVkKybJpVujTkwoDVHbzGoJe90hS7v+1/91SxEGsWv TLxEYqdv+NN5aVmZOxH6e1Wp/31fpcYvsl0K8qyZP350/C6OUfSzLc/px3pEveJl+Rt8 E55QDp9/e414mOHb762XgrgxpPytrQDDNG7naeDnCTLXYR0RMVbXnpf1gktWM+kt17XG dHTw== X-Gm-Message-State: ANhLgQ3ryzcPVIpOUOOrOnHrK1t0/jTtDExliBqkgWLZfjT8op8q/ntn NtglGzBnD8g7VDCG9j0x0cQ6sg== X-Received: by 2002:a1c:f009:: with SMTP id a9mr4167566wmb.73.1584008252629; Thu, 12 Mar 2020 03:17:32 -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 f4sm18901766wrt.24.2020.03.12.03.17.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Mar 2020 03:17:31 -0700 (PDT) Date: Thu, 12 Mar 2020 10:17:29 +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: <20200312101729.ppqhco2j3p66dnqz@holly.lan> References: <20200311093043.3636807-1-t.schramm@manjaro.org> <20200311093043.3636807-3-t.schramm@manjaro.org> <20200311172056.wjn3574zrfqxipw6@holly.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 12, 2020 at 12:17:55AM +0100, Tobias Schramm wrote: > Hi Daniel, > > thanks for reviewing. The typo will be fixed for v4. > > >> + 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. > > > I think so? Removing maxItems and running dtbs_check on a dts with more > than one supply phandle in the power-supplies property results in an error: > linux/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dt.yaml: > cw2015@62: power-supplies: [[142], [50]] is too long Interesting. I saw the "Should be enough" comment replicated in several YAML bindings (with varying degress of paranoia about how much "enough" is). There are also several that simply set minItems without setting maxItems, perhaps they have just never been any DTs that test those bindings with more than one item. Daniel.