From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B392C2BAEE for ; Wed, 11 Mar 2020 23:16:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1077D20754 for ; Wed, 11 Mar 2020 23:16:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731533AbgCKXQx (ORCPT ); Wed, 11 Mar 2020 19:16:53 -0400 Received: from mail.manjaro.org ([176.9.38.148]:58946 "EHLO mail.manjaro.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731338AbgCKXQx (ORCPT ); Wed, 11 Mar 2020 19:16:53 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id 0C1C937024CE; Thu, 12 Mar 2020 00:16:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at manjaro.org Received: from mail.manjaro.org ([127.0.0.1]) by localhost (manjaro.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rHUPSS9K2eTQ; Thu, 12 Mar 2020 00:16:48 +0100 (CET) Subject: Re: [PATCH v3 2/3] dt-bindings: power: supply: add cw2015_battery bindings To: Daniel Thompson , 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 References: <20200311093043.3636807-1-t.schramm@manjaro.org> <20200311093043.3636807-3-t.schramm@manjaro.org> <20200311172056.wjn3574zrfqxipw6@holly.lan> From: Tobias Schramm Message-ID: Date: Thu, 12 Mar 2020 00:17:55 +0100 MIME-Version: 1.0 In-Reply-To: <20200311172056.wjn3574zrfqxipw6@holly.lan> Content-Type: text/plain; charset=utf-8 Content-Language: en-US-large Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Best Regards, Tobias