Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3572263ybb; Mon, 23 Mar 2020 03:43:01 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsvV2GLw2hifNaqhhm7+2jqRGM60Eqyf5CVpDbIjr0nUdAT+u8APmVz6X7mqfRNlQqbfxAa X-Received: by 2002:a4a:a64b:: with SMTP id j11mr162641oom.59.1584960181214; Mon, 23 Mar 2020 03:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584960181; cv=none; d=google.com; s=arc-20160816; b=JRQfHJLJMfcUApVez4nATthSBhAGGKN1ejgKVE6BFgoqzXT2S/mh5JA07kAp4muu38 VVWLz5WwuO00iVfPV+4+d7fU1s5hRHwBYJHqc2yCrShMbUGTwy2f86QlkSLWviLmB9Av QBee4RDYbY2DcN4oNdASvO34eD7npdbPKT09H+jUqKE1N9TUBkiD5TXDu83s5fjaYVWe NnZQMAQxkqc5vvGjoVWEV1qIJZpXbggH+8EE3IcKLY9xzkbcVICey0vl0A5VfChcNLGp KXfes10fTkVY9o8e9PuKKaXcGai4vr9gl8frs6gKAXMZbt7P6yLs0ExMRy5kNDXy/WQq 7wwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=9FffytnAcFLfelhYvPa/gxsoAooT8Nm3TCN3my0v1rs=; b=YbgBiB+3daGsenunf7dVWohnvZXFCLiDHC28vAMAnbgUlHxOeNOgZAgAW28YMBYG2l Bv57z7dDgM7oM3FiBH8V6NSG3YZsOzC3xaIHA+V33bUBCPtnW4hrrfZ7hscHqHuReV4L VSbZIq02OrGLvu1PiXS01NPmSRVNvY6D2ggSUx50qjJuweIolsqd6r4UdpKk6VJKXjDx Au1OYc0RmXXtwvRhbjk2rfl/0UVAGykZ4oz9+at8qbJm92HvNCDSV0oQEn8jjpk2VCX5 FvOuQlQ3262o7TnQ/NhSxEbkt4hiShBEDMu0LiEP/S8I5Nx8vmQF9w1OCvjm4bUis4Km 9UKQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c21si775055oto.169.2020.03.23.03.42.48; Mon, 23 Mar 2020 03:43:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728088AbgCWKmX (ORCPT + 99 others); Mon, 23 Mar 2020 06:42:23 -0400 Received: from mx2.suse.de ([195.135.220.15]:49936 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727908AbgCWKmX (ORCPT ); Mon, 23 Mar 2020 06:42:23 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4C44FAEDA; Mon, 23 Mar 2020 10:42:20 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2 12/12] dt-bindings: arm: bcm: Convert BCM2835 firmware binding to YAML From: Nicolas Saenz Julienne To: Maxime Ripard , Florian Fainelli Cc: Rob Herring , linux-arm-kernel@lists.infradead.org, Mark Rutland , Ray Jui , Scott Branden , "maintainer:BROADCOM IPROC ARM ARCHITECTURE" , Sugaya Taichi , Andrew Jeffery , Arnd Bergmann , Joel Stanley , Vinod Koul , "james.tai" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" Date: Mon, 23 Mar 2020 11:42:16 +0100 In-Reply-To: <20200323084044.dziwbk7pugoy73yh@gilmour.lan> References: <20200204235552.7466-1-f.fainelli@gmail.com> <20200204235552.7466-13-f.fainelli@gmail.com> <20200206192333.GA30325@bogus> <47e12841-d9bb-3204-76c0-5bc0ef74b094@gmail.com> <20200323084044.dziwbk7pugoy73yh@gilmour.lan> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-RpMYkWCESsJPGDcne0PU" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-RpMYkWCESsJPGDcne0PU Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2020-03-23 at 09:40 +0100, Maxime Ripard wrote: > Hi Florian, >=20 > On Sun, Mar 22, 2020 at 02:35:17PM -0700, Florian Fainelli wrote: > >=20 > > On 2/6/2020 11:23 AM, Rob Herring wrote: > > > On Tue, Feb 04, 2020 at 03:55:52PM -0800, Florian Fainelli wrote: > > > > Convert the Raspberry Pi BCM2835 firmware binding document to YAML. > > > > Verified with dt_binding_check and dtbs_check. > > > >=20 > > > > Signed-off-by: Florian Fainelli > > > > --- > > > > .../arm/bcm/raspberrypi,bcm2835-firmware.txt | 14 -------- > > > > .../arm/bcm/raspberrypi,bcm2835-firmware.yaml | 33 +++++++++++++++= ++++ > > > > 2 files changed, 33 insertions(+), 14 deletions(-) > > > > delete mode 100644 > > > > Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835- > > > > firmware.txt > > > > create mode 100644 > > > > Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835- > > > > firmware.yaml > > > >=20 > > > > diff --git > > > > a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835- > > > > firmware.txt > > > > b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835- > > > > firmware.txt > > > > deleted file mode 100644 > > > > index 6824b3180ffb..000000000000 > > > > --- a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835= - > > > > firmware.txt > > > > +++ /dev/null > > > > @@ -1,14 +0,0 @@ > > > > -Raspberry Pi VideoCore firmware driver > > > > - > > > > -Required properties: > > > > - > > > > -- compatible: Should be "raspberrypi,bcm2835-firmware" > > > > -- mboxes: Phandle to the firmware device's Mailbox. > > > > - (See: ../mailbox/mailbox.txt for more > > > > information) > > > > - > > > > -Example: > > > > - > > > > -firmware { > > > > - compatible =3D "raspberrypi,bcm2835-firmware"; > > > > - mboxes =3D <&mailbox>; > > > > -}; > > > > diff --git > > > > a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835- > > > > firmware.yaml > > > > b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835- > > > > firmware.yaml > > > > new file mode 100644 > > > > index 000000000000..db355d970f2b > > > > --- /dev/null > > > > +++ b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835= - > > > > firmware.yaml > > > > @@ -0,0 +1,33 @@ > > > > +# SPDX-License-Identifier: GPL-2.0 > > > > +%YAML 1.2 > > > > +--- > > > > +$id:=20 > > > > http://devicetree.org/schemas/arm/bcm/raspberrypi,bcm2835-firmware.= yaml# > > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > > + > > > > +title: Raspberry Pi VideoCore firmware driver > > > > + > > > > +maintainers: > > > > + - Eric Anholt > > > > + - Stefan Wahren > > > > + > > > > +properties: > > > > + compatible: > > > > + const: raspberrypi,bcm2835-firmware simple-bus > > > ^ > > >=20 > > > I need to check for spaces with the meta-schema... > >=20 > > I believe I had tried to use: > >=20 > > const: raspberrypi,bcm2835-firmware > > const: simple-bus > >=20 > > but this did not work, and I had to resort to doing this. >=20 > That would be: >=20 > compatible: > items: > - const: raspberrypi,bcm2835-firmware > - const: simple-bus >=20 > It changes slightly from what the initial binding was saying though, > since it wasn't mentionning simple-bus at all? Is that on purpose? I guess we failed to update the binding after starting to use the firmware device as a bus. --=-RpMYkWCESsJPGDcne0PU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl54kogACgkQlfZmHno8 x/6Oxwf/RxCalW3P6O6N4jDFJcvvMOR8hT0bzENJf8exug8nu2upzGFR9cp5rgvy nIuAsApBBpQ7BBIaD/Quv6256Qx5iYLAZGxbDMXhUwI7FyLiPJtf4Xgy6N1JVxrI KSxJVwYzKAqYvT0C8hEtcOYilaGkLv8uvoK/gN1x1zNYUZil304HblPxudfJUqb4 /EDOh3y8ZL53j+7GQLp512aIF82mtD5m1Kvh7PqJSW41iqdQHW709Fw/lY+WoqHf 8lRgpMAmDMxiw6rNLasp0M4CmTowgbE3FwjltqJdgykk1upD3GQXDbKkxoIVIzqZ gXEUdkyF5HlKG1wbYsTgqC6+vSnZiw== =I9aD -----END PGP SIGNATURE----- --=-RpMYkWCESsJPGDcne0PU--