Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1476428img; Tue, 19 Mar 2019 08:26:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5nevvkNDNjwiEVbZys1lVGHCv8USpq8bWV45HgpMzH4H5ckyNjf7A2eSqOqw3gef1I1gv X-Received: by 2002:aa7:8156:: with SMTP id d22mr2530102pfn.230.1553009169122; Tue, 19 Mar 2019 08:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553009169; cv=none; d=google.com; s=arc-20160816; b=hUuHOtJPcatz1JlhMPPfum1oqz0KV1Dcg7e9TPOjvd0k/hukra3ZRzyxrfMQ9bdYVz MqAFlgudDW/JPycJIYu2yehl0dH73S3HGEyAhrMvr3Zw4rrDFkGYPOCNNMRNxPBVflCj 5ZPLa5pA6Ay2oFhXMw84RlfJKyMxeGxfwKg0PjesvjdO1uTlOiTD0z+awMnEortca9jJ T7mrZk17hCM5TM5x6d7yXJFiTiTq4FsdwdUVw6B8nb9/Tu4erFg2JtCncA3RUls07V/6 xZrdBohx7cPC445zfV895bxL0onJEsqtXBz1UDR3z+O6WH/eylojq5ZCqLgps69GVewq GJ9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4CZGQK53exzjATlXyX58Z3kh3jff40t+ve33FzWX6H8=; b=Els5sb+46rofzBQtH1rafwQyxNULklOjOrGR9c32K81EzodhWHm4rIbq4Yi+wZlXst szry0AyHmhRzlFZ+qDsrZyfNoBD5Xd0NqxudRN6C7/k8B0OhE664Cpx2G4sDU59R+y1g JjuJ871s3dtHdCMmiM4BIpAXxlyNahQVNKT5+3FUntzXOa/lVA+WIGWuumVwTafPfUrv Kq8OttptjttOdwD4FXToJo2ESkIxo3Pqch3K9PjiZK7z2qI4BfQODBuPr6CIRYS7X4Df sWaMVIWRRyTQTGII8cDNUWyesSriGYLUkhB/VYf9dWO1UiWflvqzP6Byzz+q7IDNJimB +QQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=BXyMgmAE; 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 59si12919068plb.405.2019.03.19.08.25.53; Tue, 19 Mar 2019 08:26:09 -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; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=BXyMgmAE; 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 S1727778AbfCSPZE (ORCPT + 99 others); Tue, 19 Mar 2019 11:25:04 -0400 Received: from mout.gmx.net ([212.227.17.21]:54305 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbfCSPZE (ORCPT ); Tue, 19 Mar 2019 11:25:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1553009084; bh=ipB3CHPowXwUEwhyQjUjLsxdRiVluHFcHPKLTIn+D/M=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=BXyMgmAEXwnXASstwZU5mPG3kd7a+BZpPpWgjdOtJuSkSgzQUSt56Du51B7EcxI4T gpe7lhakgmHjyjQHHSyTJMioQIqfI/eaod5YxfEPvAd8b5Lb8W0yAeyUpk7EHB2AKt KrWPcKqTpm/jfRC8YrEMdzkEsjAjnDPPp/XEEbOM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([109.90.232.48]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LuJDv-1gz5Vj177X-011h7n; Tue, 19 Mar 2019 16:24:44 +0100 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= To: linux-arm-kernel@lists.infradead.org Cc: Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Thierry Reding , Manivannan Sadhasivam , Kevin Hilman , Heiko Stuebner , Jagan Teki , Martin Blumenstingl , Johan Hovold , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= Subject: [PATCH 3/5] ARM: dts: imx50: Add PHY node for usbotg and adjust clocks Date: Tue, 19 Mar 2019 16:24:18 +0100 Message-Id: <20190319152421.16179-4-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190319152421.16179-1-j.neuschaefer@gmx.net> References: <20190319152421.16179-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:RQyRurqixI6BorymjXPsg/bz7SQ80dX0FrwjIhVr3Nu/jA/usv2 PXBL2wrGE+ZXYEidkgoDmaWL/g/udYoSmXkBPQVgiA9r3HG0m5vg//9n7wd/4CGsJetRVdG P5OfFBsdeFMW/Ib8ok+Rf0B8N+rl+u99rFtS6mo94qXzuMPeaE5TRvoXTotTKsMT/qFMyW7 DuyjSJ69zq/hH3rSHgW/g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:g8SzXboCY28=:U8o0eohhFLl2XENeHIL5Q6 48gpi74eKpQeiuUfEyHaTjVQHEViFVtg3/y6KyYqzVIidqGhALVwCpw7pKLWjssU+uWvVs5nN qBvtXUab4G3MIlNbzC0eVzxaKarJ7gFYBOPTm+ErI/LFzv4sB2Iwo00BP0WTk03wYs4FPmyfX Wnqyqx+ZsdLkvKrntsu00ZXpUZvw4h1ryKwY0ZHVvpDTVWhQTUYpLIStJwlZd34SHHiOptNr+ WHFcsCm41jP07i7GUW+HKRzOBePFa7g568NQzyElq7Xin00x+6B3dGm4IXgH8hfx3LEMAfBGw 3JZpOhF0E8A42HPU1w/EhsbxgzNSiqCogeNENCrsTxgFoNHDPBfAbBL8zbvd4lqVEhiiq6Rof 72Q8EJRIX5x/c4njz09HmEMYKFrDq9UHeDhlnXObC78C/A64/PT+1gskvg/NGjZl2cTQCmGCV iLNgiYAMD7/UibrVPAmmWMR+LpwGFms47RvN2UdCNbLaa7VqlhsvZUn5uecrPDb5Ipi7N2ug1 /vKY1W1b6fBq0v9Wdu+qXguGp9MJRbXPKbZHG8gAHOA72x3WRvhgpdi5Sui5TAJU8oAZsJGyL MqLCT6Cu2zbPs3q3u7fCv6XshEilBO+el774JIPKmH6vVkWWnElCNGL4TGy00D6WDcfddBWEA fK6lIkCUyrZQMZ93iiU1boV2tCHhmHl0UvAqH94zMYWOLqFE7KEEerbKu378ETqUO0kGWE4Vo OzI4PRFzn6JcgQoDAha33S0VPaa+b28KXzVF97C2BQb/HNx+iFn0FYo2+4f8NkYkZVN/BaLoM 56UhstFuQRMDfdAm9gfdguZLLSa3l9sNYIf0tGis1enLJkSVWQ3RsfKFCTxA81EWdPHhXnIfr xmADubCMRSq4b2+r9bo1ZUhNWje7GqXJzVNgYYcroaz0tq/1rOjUyLQJy915bbIDsE+9wyKp8 mtHqtfS4iFQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Even though the ChipIdea USB controller binding[1] doesn't specify the properties that reference a PHY as required, the Linux driver requires[2] such a reference. The clock situation is like on i.MX53: The USB controller is clocked from IMX5_CLK_USBOH3_GATE and the PHY from IMX5_CLK_USB_PHY1_GATE. [1]: Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt [2]: Search for EINVAL in drivers/usb/chipidea/ci_hdrc_imx.c Signed-off-by: Jonathan Neusch=C3=A4fer =2D-- arch/arm/boot/dts/imx50.dtsi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx50.dtsi b/arch/arm/boot/dts/imx50.dtsi index ee1e3e8bf4ec..e5632ce24ba0 100644 =2D-- a/arch/arm/boot/dts/imx50.dtsi +++ b/arch/arm/boot/dts/imx50.dtsi @@ -76,6 +76,14 @@ }; }; + usbphy0: usbphy-0 { + compatible =3D "usb-nop-xceiv"; + clocks =3D <&clks IMX5_CLK_USB_PHY1_GATE>; + clock-names =3D "main_clk"; + #phy-cells =3D <0>; + status =3D "okay"; + }; + soc { #address-cells =3D <1>; #size-cells =3D <1>; @@ -187,7 +195,8 @@ compatible =3D "fsl,imx50-usb", "fsl,imx27-usb"; reg =3D <0x53f80000 0x0200>; interrupts =3D <18>; - clocks =3D <&clks IMX5_CLK_USB_PHY1_GATE>; + clocks =3D <&clks IMX5_CLK_USBOH3_GATE>; + fsl,usbphy =3D <&usbphy0>; status =3D "disabled"; }; =2D- 2.20.1