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=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 E458BC433E6 for ; Fri, 5 Mar 2021 21:36:50 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 76186650A9 for ; Fri, 5 Mar 2021 21:36:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 76186650A9 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+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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc: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=TdVsWCgeGY8FRAkKUvjFMQ0jLbUaKksDofnZ4d/JyTQ=; b=HS8lQNNU9icK7L+UCJ1rf511P HyCZlMp4k6R02nv4smoNkU+EY3eJT6aoGCeVGi7ERVwQgiWnA1NlBi3c+0znaWoHCSZu5bWhwNulE kaoRTo6/8XFCho6B/jTbpjG6nUMjDCeFsdiHbPUPi4nnmrxQhm9LGnVE6EvSWvlEGhIYIswtmUTYN LJcoY5P81Xum12fIVe5y7gfEON7G5jb5qmLj1kJ7jbTWuZNM+TnY7L7fAxY+o8nrWUAEDaVjITW3N Bz3eyTI+dDQCV2aGa4l2mw/UeUXAOzQyjgkR9zeZXSRJgOZeRxDuqQNcbZI8Q5ZDJ0uMES/3GG+hu w04kDpcXA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lII63-00GdRl-Po; Fri, 05 Mar 2021 21:34:55 +0000 Received: from mail-oi1-f180.google.com ([209.85.167.180]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lII5v-00GdPk-Fe for linux-arm-kernel@lists.infradead.org; Fri, 05 Mar 2021 21:34:51 +0000 Received: by mail-oi1-f180.google.com with SMTP id q203so4094668oih.5 for ; Fri, 05 Mar 2021 13:34:47 -0800 (PST) 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; bh=eWcbtx/O03x0LQG+66LolRPL6itu+bSvwGPnuUWr9kM=; b=T6msdXh6w6YOl3h1Jkjqs6IeWXJ403xqxoTB72Qa78qWgNlMGOdLkZ1/3cJ/AAUEwS J4JQv1ffWDywXDkEFsC5FNYtpmmiZSNa/GpF0AuAD+46AXL3Lpt2LjDGdg16LrdnuWle fruOcSSXu5BahBL/euDSIUQSFls0xJMtXXxHnHUJhkYtL5WpbdqifDbwMXpYfARvyN3n W98xwGibG7JFNj/MBJbgYwxN0aEFFNc3u/cDBNOxI7hRMAlidgvgs6tOUBOPaa9mYrNp ls2/NKNadAqQO+FOyiCpywrxALukV7kaneEGW2YfDKNyUjmobw22RxTEc9ijfFL42qpy V2qA== X-Gm-Message-State: AOAM5318NAnQdQDq/cJyeJMHISrCcAL6QE40m1RnHCCQrTUNJVXyF1P/ hYBKov+VUpPc4So2zN3HtazyA3evig== X-Google-Smtp-Source: ABdhPJw1ya/0+woo5VnoKWFK+NB4tu59mDauHNtwf+YhgvBwtX+bAr1qex2VwGmCkd51LCiWgor1vA== X-Received: by 2002:aca:f388:: with SMTP id r130mr8809590oih.55.1614980086338; Fri, 05 Mar 2021 13:34:46 -0800 (PST) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id r81sm804055oie.2.2021.03.05.13.34.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 13:34:45 -0800 (PST) Received: (nullmailer pid 685224 invoked by uid 1000); Fri, 05 Mar 2021 21:34:44 -0000 Date: Fri, 5 Mar 2021 15:34:44 -0600 From: Rob Herring To: kostap@marvell.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, lkundrak@v3.sk, linux@armlinux.org.uk, sebastian.hesselbarth@gmail.com, gregory.clement@bootlin.com, andrew@lunn.ch, vkoul@kernel.org, kishon@ti.com, miquel.raynal@bootlin.com, mw@semihalf.com, jaz@semihalf.com, nadavh@marvell.com, stefanc@marvell.com, bpeled@marvell.com Subject: Re: [PATCH v2 2/4] devicetree/bindings: add support for CP110 UTMI driver Message-ID: <20210305213444.GA681416@robh.at.kernel.org> References: <20210214160108.3879-1-kostap@marvell.com> <20210214160108.3879-3-kostap@marvell.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210214160108.3879-3-kostap@marvell.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210305_213449_701211_6C454376 X-CRM114-Status: GOOD ( 28.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Feb 14, 2021 at 06:01:06PM +0200, kostap@marvell.com wrote: > From: Konstantin Porotchkin > > Add DTS binding for Marvell CP110 UTMI driver Bindings are for h/w blocks/devices, not drivers. > > Signed-off-by: Konstantin Porotchkin > --- > Documentation/devicetree/bindings/phy/phy-mvebu-utmi.txt | 78 ++++++++++++++++++-- > 1 file changed, 72 insertions(+), 6 deletions(-) This is a big enough change, please convert to schema first. > > diff --git a/Documentation/devicetree/bindings/phy/phy-mvebu-utmi.txt b/Documentation/devicetree/bindings/phy/phy-mvebu-utmi.txt > index aa99ceec73b0..b66066249861 100644 > --- a/Documentation/devicetree/bindings/phy/phy-mvebu-utmi.txt > +++ b/Documentation/devicetree/bindings/phy/phy-mvebu-utmi.txt > @@ -1,30 +1,56 @@ > -MVEBU A3700 UTMI PHY > --------------------- > +MVEBU UTMI PHY > +--------------- > > USB2 UTMI+ PHY controllers can be found on the following Marvell MVEBU SoCs: > * Armada 3700 > +* Armada 7k/8k (on the CP110) > +* Armada CN913x (on the CP115) > > On Armada 3700, there are two USB controllers, one is compatible with the USB2 > and USB3 specifications and supports OTG. The other one is USB2 compliant and > only supports host mode. Both of these controllers come with a slightly > different UTMI PHY. > > +On Armada 7k/8k and CN913x, there are two host and one device USB controllers. > +Each of two exiting UTMI PHYs could be connected to either USB host or USB device > +controller. > +The USB device controller can only be connected to a single UTMI PHY port: > + 0.H----- USB HOST0 > +UTMI PHY0 --------/ > + 0.D-----0 > + \------ USB DEVICE > + 1.D-----1 > +UTMI PHY1 --------\ > + 1.H----- USB HOST1 > + > + > Required Properties: > > - compatible: Should be one of: > * "marvell,a3700-utmi-host-phy" for the PHY connected to > - the USB2 host-only controller. > + the USB2 host-only controller (for Armada3700 only). > * "marvell,a3700-utmi-otg-phy" for the PHY connected to > - the USB3 and USB2 OTG capable controller. > + the USB3 and USB2 OTG capable controller (for Armada3700 only. > + * "marvell,cp110-utmi-phy" (for Armada 7k/8k or CN913x only). > - reg: PHY IP register range. > - marvell,usb-misc-reg: handle on the "USB miscellaneous registers" shared > region covering registers related to both the host > - controller and the PHY. > -- #phy-cells: Standard property (Documentation: phy-bindings.txt) Should be 0. > + controller and the PHY (for Armada3700 only). > +- marvell,system-controller: should contain a phandle to the system > + controller node (for Armada 7k/8k or CN913x only) > +- #phy-cells: Standard property (Documentation: phy-bindings.txt. > + Should be 0 (for Armada3700 only). > + > + > +Required properties (child nodes, for Armada 7k/8k/CN913x only): > + > +- reg: UTMI PHY port ID (0 or 1). > +- #phy-cells : Should be 0. > > > Example: > > +Armada3700 > usb2_utmi_host_phy: phy@5f000 { > compatible = "marvell,armada-3700-utmi-host-phy"; > reg = <0x5f000 0x800>; > @@ -36,3 +62,43 @@ Example: > compatible = "marvell,armada-3700-usb2-host-misc", "syscon"; > reg = <0x5f800 0x800>; > }; > + > +Armada 7k/8k/CN913x > + > + cp0_utmi: utmi@580000 { > + compatible = "marvell,cp110-utmi-phy"; > + reg = <0x580000 0x2000>; > + marvell,system-controller = <&cp0_syscon0>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; Don't put status in examples. > + > + cp0_utmi0: phy@0 { > + reg = <0>; > + #phy-cells = <0>; > + }; > + > + cp0_utmi1: phy@1 { > + reg = <1>; > + #phy-cells = <0>; > + }; > + }; > + > + cp0_usb3_0 { > + status = "okay"; > + usb-phy = <&cp0_usb3_0_phy0>; > + phys = <&cp0_utmi0>; > + phy-names = "utmi"; > + /* UTMI0 is connected to USB host controller (default mode) */ > + dr_mode = "host"; Nodes need to be complete (and pass validation). > + }; > + > + cp0_usb3_1 { > + status = "okay"; > + usb-phy = <&cp0_usb3_0_phy1>; > + phys = <&cp0_utmi1>; > + phy-names = "utmi"; > + /* UTMI1 is connected to USB device controller */ > + dr_mode = "peripheral"; > + }; > + > -- > 2.17.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel