Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4512545pxf; Tue, 16 Mar 2021 15:53:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOmyZwRpvmCMuYn07FXm9JzoFKh6pM69qsNG41c2O/dHIyVa4TAM6uQmshFcmFRo0VeQtr X-Received: by 2002:a17:906:cecc:: with SMTP id si12mr32307770ejb.461.1615935237309; Tue, 16 Mar 2021 15:53:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615935237; cv=none; d=google.com; s=arc-20160816; b=HdFau6tPvFWkN8khfSNL3kpx5BWTE/8tGBX7uC7/ZhYO4v2tU/d5ZewHJOUQGVvCTJ t709ooLWzd1+Ozjp57PHd7IvsT781SnD4GTLTCHUJYBhA9Ov/AUZV352tpPRNGOtrntv rCa9Uv1Uj+c6q4N/wBPYPxb1rh00zfBxgnTpJLRRzTpoARfx/Q2h4jskCR2QEIsaVacA ERyIs7CIJVhvCStmxqyejOP0tK38Vx9N8gFNGr3YMnuZczPAdItaCzmCin0yg5i9TxvG x80iJBdhPfXKnn0nmThasd9TWk4W+u8IBzoFhQEb5CTF7bFQ5xty3q1HglAHzfnefU23 GABA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=rKdVKNY3PT4ZEN8nXK/GvhYv+aUhPQqh775kyLEI/ms=; b=rbbZN3CBuAlo10jNtEP8cDB0jOE+MslGq2LPk4lT9OVBKwMDeQjdbpxgfrZbKqFX3l PxGKDJsjp1JPhisBfhP2sRajNBaOHcBmu7oByGBKO+Dal8VdPGa/1EPMXrZsGwqbdLuh EA007zKpu6zEXGVV3GCLk1Sds5xK4poeG3NqBhiBZgQguuDceL6FjuYVbfrHshn5CghC J8iqcXRgLFr3VctAC0Dg5GYE0OZNwBkblVzGwc2m1cQjw2/vZVTnSCubNXhYnJA8de1N RRROV7/0+YX2vHLNRb1dZvUnd3364eiLqrJy2YsEgrWfQNTKeRoo6+wnMVInJOx3oUTK RPSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L7Qe6r7c; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga18si14999969ejb.632.2021.03.16.15.53.34; Tue, 16 Mar 2021 15:53:57 -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=pass header.i=@kernel.org header.s=k20201202 header.b=L7Qe6r7c; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239276AbhCPRxP (ORCPT + 99 others); Tue, 16 Mar 2021 13:53:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:43198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239269AbhCPRxA (ORCPT ); Tue, 16 Mar 2021 13:53:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7EF196512F; Tue, 16 Mar 2021 17:52:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615917179; bh=W8rr8sTbWk/xigthIkTyoScmrkEHXz8tnd8LeK4Aq5U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=L7Qe6r7cy4oo3a7QC4RU5ShnI1IfUIXGMymWJJL18hoP+qr4a8ZlmErgMfOoQWY2q I+YaFe3FcrFsNCFjwfQA/NUkr5Vyl1hjheDf0cH1T2Fy9kleyC9GyZYS/nxm8JT8MX Dbbhr5IoBUtl+Tfft2wdeXYupzQRO6HVWl8qefQFnqIcrOqRmMhpoS2oHxwfPHATek 0US5gr2za1lShVj87zBMfiYTUZv5ZGxPrspuMOfmjVGaTWndwj+YsoEHzjQOoosw41 glO5ohMoFTmZgAM4+mYn79CnD7j0IJ0tfFSfUx9sXQKBEawxfJaVtDkHz9jGNYUIB8 oewgcyTXbsouw== Received: by mail-qt1-f181.google.com with SMTP id l13so12304799qtu.9; Tue, 16 Mar 2021 10:52:59 -0700 (PDT) X-Gm-Message-State: AOAM533VVjS1w60iIaXJTU5UsKxHo5+jbuRBGIGT5g5+ieE1mLA6CUas QeIdhgq0SbQYY5h3ufpfo9MVArnB9qQksonKsQ== X-Received: by 2002:ac8:4ccc:: with SMTP id l12mr58779qtv.137.1615917178617; Tue, 16 Mar 2021 10:52:58 -0700 (PDT) MIME-Version: 1.0 References: <20210312154357.1561730-1-sebastian.reichel@collabora.com> <20210312154357.1561730-17-sebastian.reichel@collabora.com> <20210316162045.cvvb226rpzxbovdl@earth.universe> In-Reply-To: <20210316162045.cvvb226rpzxbovdl@earth.universe> From: Rob Herring Date: Tue, 16 Mar 2021 11:52:47 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 16/38] dt-bindings: power: supply: tps65217: Convert to DT schema format To: Sebastian Reichel Cc: "open list:THERMAL" , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Collabora Kernel ML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 16, 2021 at 10:20 AM Sebastian Reichel wrote: > > Hi Rob, > > On Mon, Mar 15, 2021 at 12:33:23PM -0600, Rob Herring wrote: > > On Fri, Mar 12, 2021 at 8:44 AM Sebastian Reichel > > wrote: > > > + interrupts: > > > + minItems: 2 > > > + maxItems: 2 > > > > We've lost info that was in the original binding. You could do > > something like this: > > > > items: > > - description: USB charger > > const: 0 > > - description: AC charger > > const: 1 > > > > (Usually the interrupt values would be out of scope of the binding, > > but I guess here it makes some sense.) > > I initially did this, but it did not work. I see the following for > dt_binding_check (dtbs_check triggers the same): > > Documentation/devicetree/bindings/power/supply/tps65217-charger.example.dt.yaml: charger: interrupts:0: [0] is too short > From schema: Documentation/devicetree/bindings/power/supply/tps65217-charger.yaml > Documentation/devicetree/bindings/power/supply/tps65217-charger.example.dt.yaml: charger: interrupts: [[0], [1]] is too long > From schema: Documentation/devicetree/bindings/power/supply/tps65217-charger.yaml > Documentation/devicetree/bindings/power/supply/tps65217-charger.example.dt.yaml: charger: interrupts: Additional items are not allowed ([1] was unexpected) > From schema: Documentation/devicetree/bindings/power/supply/tps65217-charger.yaml > > Seemed to be a limitation in the validation tool, so I just dropped > the extra information. If we do not want to loose information I can > add it to the description, or should the validation tool be fixed? > I suppose it's kind of unusual, that the binding can provide the > interrupt line numbers. It is, so let's just leave it as-is. Rob