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.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 44A25C2D0E8 for ; Fri, 27 Mar 2020 19:55:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1FE8D2074A for ; Fri, 27 Mar 2020 19:55:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585338925; bh=w1YqMQ8AiBqcLAY93XVp7PYa0XS8+EPiyivnwd6Wsso=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=Ullab/tOEcGgUQAKgPnMprj/9hEL2xO8HoQYcAhLVGzQLmC5OUBZ6oPQVwrvibLNJ N/CYc3gf40gut6PoMWPgA3fTeClp0xe4Nrox/ESBbKgQnMlWC+i2lO+EY6hP8hmk5p tWdPngJUVCaY6H7LEy0XFGF3nRyBCKuKFn3ocyKI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727423AbgC0TzY (ORCPT ); Fri, 27 Mar 2020 15:55:24 -0400 Received: from mail-il1-f193.google.com ([209.85.166.193]:42049 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726900AbgC0TzY (ORCPT ); Fri, 27 Mar 2020 15:55:24 -0400 Received: by mail-il1-f193.google.com with SMTP id f16so9920519ilj.9; Fri, 27 Mar 2020 12:55:23 -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=csHMLQRL98LenQ/lQbpc93jnwU8kRqtxGH56mtF9FXU=; b=WvKu/ivGejE4Hwf4vzr15vb+mRRxfsHTz1l00dqUZpX3xWclAVX8gZsXG2TCMfWqwJ s3pgZZ7d23GQRo9gfvSdHXxq3+fX80E9y8eZBWjtiP0YT+5fXEAB7IqD4vTIMPHjrYob B7eOLpcsVxd3Xx1JLwAFLg60BTAcfSRDF1H5ViDWtQYOfSiqk47ibp7/WZZtN2PuOb7t bpqzqZWe29Z2rCzf9nTSi2Jtfd2Q52NbX4zMFHcZkWuCHMbM5EFeb7oSXc0nPNCkmY59 lqs/XETfHPgwnHvEwPl5Wjo281URi/7CLAE3uFLAE++rRnKIXo0NShcoyBmD4t5npuTr 15ug== X-Gm-Message-State: ANhLgQ0X9uHhwnIDG8j/WobhSk1HnaZykm4qrJ+9B/vVw5CFU1r1LGF1 oQAnaa0WgSSpSbR6v5oitw== X-Google-Smtp-Source: ADFU+vvK/OlPRlrv0zdhRACJE4TlaiS+cpaAN0toP14RA+18Djh+2NRPMAxrfVKb7LtTlW0/j9dRrw== X-Received: by 2002:a92:39c9:: with SMTP id h70mr826045ilf.74.1585338922613; Fri, 27 Mar 2020 12:55:22 -0700 (PDT) Received: from rob-hp-laptop ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id l6sm2204381ilh.27.2020.03.27.12.55.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2020 12:55:21 -0700 (PDT) Received: (nullmailer pid 4525 invoked by uid 1000); Fri, 27 Mar 2020 19:55:20 -0000 Date: Fri, 27 Mar 2020 13:55:20 -0600 From: Rob Herring To: Lubomir Rintel Cc: Linus Walleij , Bartosz Golaszewski , Thomas Gleixner , Jason Cooper , Marc Zyngier , Mauro Carvalho Chehab , Ulf Hansson , Kishon Vijay Abraham I , Alessandro Zummo , Alexandre Belloni , Greg Kroah-Hartman , Mark Brown , Daniel Lezcano , Andrew Lunn , Gregory Clement , Daniel Mack , Haojian Zhuang , Robert Jarzmik , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-media@vger.kernel.org, linux-mmc@vger.kernel.org, linux-rtc@vger.kernel.org, linux-serial@vger.kernel.org, linux-spi@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH 28/28] dt-bindings: usb: Convert ehci-mv to json-schema Message-ID: <20200327195520.GA2235@bogus> References: <20200317093922.20785-1-lkundrak@v3.sk> <20200317093922.20785-29-lkundrak@v3.sk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200317093922.20785-29-lkundrak@v3.sk> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-rtc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.org On Tue, Mar 17, 2020 at 10:39:22AM +0100, Lubomir Rintel wrote: > A straightforward conversion of the ehci-mv binding to DT schema format > using json-schema. > > Signed-off-by: Lubomir Rintel > --- > .../devicetree/bindings/usb/ehci-mv.txt | 23 ------- > .../bindings/usb/marvell,pxau2o-ehci.yaml | 60 +++++++++++++++++++ > 2 files changed, 60 insertions(+), 23 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/usb/ehci-mv.txt > create mode 100644 Documentation/devicetree/bindings/usb/marvell,pxau2o-ehci.yaml > > diff --git a/Documentation/devicetree/bindings/usb/ehci-mv.txt b/Documentation/devicetree/bindings/usb/ehci-mv.txt > deleted file mode 100644 > index 335589895763e..0000000000000 > --- a/Documentation/devicetree/bindings/usb/ehci-mv.txt > +++ /dev/null > @@ -1,23 +0,0 @@ > -* Marvell PXA/MMP EHCI controller. > - > -Required properties: > - > -- compatible: must be "marvell,pxau2o-ehci" > -- reg: physical base addresses of the controller and length of memory mapped region > -- interrupts: one EHCI controller interrupt should be described here > -- clocks: phandle list of usb clocks > -- clock-names: should be "USBCLK" > -- phys: phandle for the PHY device > -- phy-names: should be "usb" > - > -Example: > - > - ehci0: usb-ehci@d4208000 { > - compatible = "marvell,pxau2o-ehci"; > - reg = <0xd4208000 0x200>; > - interrupts = <44>; > - clocks = <&soc_clocks MMP2_CLK_USB>; > - clock-names = "USBCLK"; > - phys = <&usb_otg_phy>; > - phy-names = "usb"; > - }; > diff --git a/Documentation/devicetree/bindings/usb/marvell,pxau2o-ehci.yaml b/Documentation/devicetree/bindings/usb/marvell,pxau2o-ehci.yaml > new file mode 100644 > index 0000000000000..189025ef1e92e > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/marvell,pxau2o-ehci.yaml > @@ -0,0 +1,60 @@ > +# SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) Same license comment. > +# Copyright 2019,2020 Lubomir Rintel > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/usb/marvell,pxau2o-ehci.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Marvell PXA/MMP EHCI bindings > + > +maintainers: > + - Lubomir Rintel > + > +allOf: > + - $ref: usb-hcd.yaml# > + > +properties: > + compatible: > + const: marvell,pxau2o-ehci > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + const: USBCLK > + > + phys: > + maxItems: 1 > + > + phy-names: > + const: usb > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + - phys > + - phy-names > + > +examples: > + - | > + #include > + usb@d4208000 { > + compatible = "marvell,pxau2o-ehci"; > + reg = <0xd4208000 0x200>; > + interrupts = <44>; > + clocks = <&soc_clocks MMP2_CLK_USB>; > + clock-names = "USBCLK"; > + phys = <&usb_otg_phy>; > + phy-names = "usb"; > + }; > + > +... > -- > 2.25.1 >