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=-8.7 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable 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 9910AC2D0FA for ; Tue, 12 May 2020 22:03:23 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6160120769 for ; Tue, 12 May 2020 22:03:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="X4VaAFHf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6160120769 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FzeadpkPlnVBAEj7ARD1OPDCH9EDZIjf41nVKjJIh3U=; b=X4VaAFHfJDktgS zYhxyZlr2IxKRPRaeUk1iXxwsAEY2xHUalqeqIkIOLoKYXW+Ss0PU8B+YzXji/2IjTvHTStCA59gK DvXqse4ckNov2r9L0gCJUrjPJKnlSSAtlLT11tCpWDo0r9HNqjt9H4q2gtSA6UPGyJoVPye5GIwiq 6frBhu28Y9pSgFKS+WhJApOrBRpgL2fpFkAsrgyaG0YJSoADc45ZPp89Il1uSmbHGTOLCRcW9HIie EVwsrfNPfjGN4/nZs0dzptJreRwU2vmKa1v/B+LHe4kQVGjCdcvgm5kWqP/J0U2I7wDnHQzj7sAWP AIvoZZ6v9REaLy54NQHQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYczj-0006YC-1r; Tue, 12 May 2020 22:03:23 +0000 Received: from mail-ot1-f65.google.com ([209.85.210.65]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYczd-0006Ux-Al; Tue, 12 May 2020 22:03:20 +0000 Received: by mail-ot1-f65.google.com with SMTP id j4so11821290otr.11; Tue, 12 May 2020 15:03:17 -0700 (PDT) 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:user-agent; bh=MUwPbwoCw7AWkOjfbYkkLEEsldhhBednze2KVALn6gg=; b=UmfEoYC7qdydmeVho7sx829ojFAsk6iS16zv6qe32JrHvgaEQVVmxpq2nqCGqODi9i icbCaKLPI8aiGT2fglvNq5PNNlOn4P3gHwXria92iOPgjaePTWHjQxDrjbDwBN2SeASV 5PhqbXia6roNbPJ/Drx882lNIUIpZZp5Lv+ZLSYXk4sgct0NzZ4zYQXFDGU3cLkdZTlc FGGQyYsSbSsealKv145REkD0iCRkH8nHkXoe5vrrmE1Te++tLGXB9jvogjbtHFtP8MFb KFaiurUW06ZKXXgnqpraT33iS3hqho5dpqOmYigcxq6G9oo2AgrGqZol2gMnQXaXNt5J mbYg== X-Gm-Message-State: AGi0Pua07+1+dxjTa+TpAmVWZHFUk0Q6Zf6v+1PpnyTierHFHbqnGFOM 1zJqPrjmqltgmuhahRHB2A== X-Google-Smtp-Source: APiQypJgSZbfY16yL5q4Va7ckktZ2np41KwS/08QmNxY59XKZdbVclDoACFX2ieFTq/+LTS07P9ekg== X-Received: by 2002:a9d:6847:: with SMTP id c7mr17918699oto.159.1589320996371; Tue, 12 May 2020 15:03:16 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id j47sm2689110oof.11.2020.05.12.15.03.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2020 15:03:15 -0700 (PDT) Received: (nullmailer pid 13443 invoked by uid 1000); Tue, 12 May 2020 22:03:14 -0000 Date: Tue, 12 May 2020 17:03:14 -0500 From: Rob Herring To: Martin Blumenstingl Subject: Re: [PATCH 1/6] dt-bindings: phy: meson8b-usb2: Convert to json-schema Message-ID: <20200512220314.GA28996@bogus> References: <20200502114752.1048500-1-martin.blumenstingl@googlemail.com> <20200502114752.1048500-2-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200502114752.1048500-2-martin.blumenstingl@googlemail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200512_150317_366454_6B79CED5 X-CRM114-Status: GOOD ( 16.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, narmstrong@baylibre.com, hexdump0815@googlemail.com, linux-kernel@vger.kernel.org, kishon@ti.com, vkoul@kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, May 02, 2020 at 01:47:47PM +0200, Martin Blumenstingl wrote: > Now that we have the DT validation in place, let's convert the device > tree bindings for the Amlogic Meson8, Meson8b, Meson8m2 and GXBB USB2 > PHY over to a YAML schema. > > While here, also add the fallback compatible string > "amlogic,meson-gxbb-usb2-phy" which is already used in > arch/arm/boot/dts/meson{,8,8b}.dtsi. > > Signed-off-by: Martin Blumenstingl > --- > .../phy/amlogic,meson8b-usb2-phy.yaml | 61 +++++++++++++++++++ > .../bindings/phy/meson8b-usb2-phy.txt | 28 --------- > 2 files changed, 61 insertions(+), 28 deletions(-) > create mode 100644 Documentation/devicetree/bindings/phy/amlogic,meson8b-usb2-phy.yaml > delete mode 100644 Documentation/devicetree/bindings/phy/meson8b-usb2-phy.txt > > diff --git a/Documentation/devicetree/bindings/phy/amlogic,meson8b-usb2-phy.yaml b/Documentation/devicetree/bindings/phy/amlogic,meson8b-usb2-phy.yaml > new file mode 100644 > index 000000000000..c2fe8c08d99e > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/amlogic,meson8b-usb2-phy.yaml > @@ -0,0 +1,61 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/phy/amlogic,meson8b-usb2-phy.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: Amlogic Meson8, Meson8b, Meson8m2 and GXBB USB2 PHY > + > +maintainers: > + - Martin Blumenstingl > + > +properties: > + compatible: > + oneOf: > + - items: > + - enum: > + - amlogic,meson8-usb2-phy > + - amlogic,meson8b-usb2-phy Needs 2 more spaces indent. > + - const: amlogic,meson-mx-usb2-phy > + - const: amlogic,meson-gxbb-usb2-phy > + > + reg: > + maxItems: 1 > + > + clocks: > + minItems: 2 > + > + clock-names: > + items: > + - const: usb_general > + - const: usb > + > + resets: > + minItems: 1 > + > + "#phy-cells": > + const: 0 > + > + phy-supply: > + description: Wrong indentation. > + Phandle to a regulator that provides power to the PHY. This > + regulator will be managed during the PHY power on/off sequence. > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - "#phy-cells" Add: additionalProperties: false > + > +examples: > + - | > + usb-phy@c0000000 { > + compatible = "amlogic,meson-gxbb-usb2-phy"; > + reg = <0xc0000000 0x20>; > + resets = <&reset_usb_phy>; > + clocks = <&clk_usb_general>, <&reset_usb>; > + clock-names = "usb_general", "usb"; > + phy-supply = <&usb_vbus>; > + #phy-cells = <0>; > + }; _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel