Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4448631pxf; Tue, 16 Mar 2021 13:51:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuN9zYX4wzWE8urRBBQDqmzTOCrB62yquVrR2YwC5AgpoOulDUWlXhc3NcHKP2U62iKM6t X-Received: by 2002:a05:6402:704:: with SMTP id w4mr39857139edx.175.1615927880210; Tue, 16 Mar 2021 13:51:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615927880; cv=none; d=google.com; s=arc-20160816; b=BNfVHy98Xi2fd4+T5i3cp4EnHIzOijrZTwZOc/OmHP04uWrzaZhMd+tLilZbAHcYxZ 7fxATVBZOI/sazntNIarb7Ea5X617scrt+7trZRJZjL2u69cP7oJbL86HruhYukOnxMy Zje4lQ77MGRDDuZnxUGG6d7MDVp5C86ELVgL33k6QEsx4swd6hJAsctvCiaay1YVQJ5R nZMkIOxm6/C/N63+/Pcpz1M6Zg7PbsxheKqKNjdUS0vnxgW9/xypJuGpkfJ9HbHpER0e bZUxeZ2e9yZ2xmYQ+9JODHlkJO+/PSH6Yv8E8nyQt/dcUjwDySWnHn5xArh0PuZ0bhR6 nvLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Uwu0IhYK6qySq0VH76fEHo6WSPPzdj9Y+/VeKG+wUTI=; b=Yv0eR8MoHUXeWbsnZMaMh7bv21sl6ARSon59mYhstmf28Zo4TCxsOrxqGYlTujHrxB g1erFSALbKwtXZS1Qao7AuMQkT18gKUHZnTaszBKiygAqO5H/Vws7k+utGZrjGXXBX1+ erSH0WpPuB11MvEmWscXTPaQc0d1T6U1gM3/B9Obgzov7NpSm7q0TGd3qU+TPqUVDjnK 09r3g2C1Em54N76hkNdPmGgn5qFgJFdvK49Z9IpKJGg2LzUJqYod5v0l+UFTiQUemxrn Zgm0x/Wh0qUwXGmUr6Wa7AB+UbnBU8bKrUZ+ZRsQi1xQhhbDBR6oAfXSOGAV/Y/od8Mw W7Fg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si13762124ejc.113.2021.03.16.13.50.56; Tue, 16 Mar 2021 13:51:20 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235973AbhCPQU4 (ORCPT + 99 others); Tue, 16 Mar 2021 12:20:56 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:42912 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235521AbhCPQUt (ORCPT ); Tue, 16 Mar 2021 12:20:49 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id CA8041F448E2 Received: by earth.universe (Postfix, from userid 1000) id 170383C0C96; Tue, 16 Mar 2021 17:20:45 +0100 (CET) Date: Tue, 16 Mar 2021 17:20:45 +0100 From: Sebastian Reichel To: Rob Herring Cc: "open list:THERMAL" , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Collabora Kernel ML Subject: Re: [PATCH 16/38] dt-bindings: power: supply: tps65217: Convert to DT schema format Message-ID: <20210316162045.cvvb226rpzxbovdl@earth.universe> References: <20210312154357.1561730-1-sebastian.reichel@collabora.com> <20210312154357.1561730-17-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6ngwdsyabcyyz24v" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6ngwdsyabcyyz24v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 >=20 > We've lost info that was in the original binding. You could do > something like this: >=20 > items: > - description: USB charger > const: 0 > - description: AC charger > const: 1 >=20 > (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-charg= er.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-charg= er.yaml Documentation/devicetree/bindings/power/supply/tps65217-charger.example.dt.= yaml: charger: interrupts: Additional items are not allowed ([1] was unexpe= cted) From schema: Documentation/devicetree/bindings/power/supply/tps65217-charg= er.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. -- Sebastian --6ngwdsyabcyyz24v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmBQ2tgACgkQ2O7X88g7 +posBQ//a3+906hJN289fW54K77xaJLrURzAQs//Ec4Sb+pN8GZZPn/5pmxq0six BU2kM2Yeco46Auc28UTS+i9QZT3cYk2CcbVk+X21RhSh93RL7qRHG4/vS0D7tMM8 jOduH5HMogDcgOkr3kg3INoQvO6fZ3Zw7ho9y31yyAQAN91FJkJPbZ1orv1makkc ea4z/FM2W5H3W8Svcz8ofIaxh0p3kkLrzjznMDjMDSqa+5oNhDGAUT4fKVL58j8A 5F93GSAgJeRaHUUOlBem60QsNIFRrtEsXK22bajZrh3zj/JQJ4H4a6LNvkMYJjK1 dzL9K7nkry2sx2CLYfaKPXtMWAvdqcKlW6wqMIuYptLSz1dXf94SVJS4W4Oet3zO NFlPHKqnJ9rlokLdcA8Tmow1HqVw8HAwzvbeeOOJlcP1h9p6DPpiS4HSgcouwmOF zwxpnj92STM8IEOrzKT/ATl91sTJ4mzDVNCCet6ZwzowYBUk1YbARxMZVoaULEVo kVBXywJy5zR190ZOE50Hcwi9DZM6q2MGvXeJ6SiC4Pc5KO9ujAGzHd5Bt7W1oHye +kkzVQnIr/NYIgjpF0q7x4/vaQYbdu5FOPKIIm7ZEK4f1r9J9rm3eGmY/qOdS1RK TwLeaRxtcNODO3qhqLhC7unlgwZXsjFcBiiHpbdHlWUNBrDjAq4= =vqDY -----END PGP SIGNATURE----- --6ngwdsyabcyyz24v--