Received: by 10.223.185.116 with SMTP id b49csp3863614wrg; Mon, 19 Feb 2018 07:14:51 -0800 (PST) X-Google-Smtp-Source: AH8x224qqn8VKYtvDbkuIoZIvir85VXQ7XB1jd/d5qSPhJmin+UIOYFkltJagdWrThCzvoD8mDd3 X-Received: by 2002:a17:902:6b83:: with SMTP id p3-v6mr14356568plk.18.1519053291811; Mon, 19 Feb 2018 07:14:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519053291; cv=none; d=google.com; s=arc-20160816; b=IDTv845GUW2lPzBaPYKNn1L8h3v/+Kday7H/rS7vrNtCHraq2FJJDiovdCT4wJUYY6 nSYs+tvcAkVKvSO/ag23SZCZZN6/Isb6wcJOvSFJlftQH3nZSAjXJwFZ2TOb+GdB3p5n kB+7eFm1AuvG7QvaAI9TWGqH3+zkp89hni/dviWpfUodg4Suqk6H7pKSyNd3ZDOr3Hbd 9ZH0ZcRIWsWu8/jDQ3dML6p6bu3esQ7c4vOft43tstIQgu2w5YBCgX9k6GtICkMXfm/w 3BTvwiP8VRppot2TCMii1u7MokU/3pK6wMCs7Zx4jseYA1M1aQeyL4AYuAc/Eard3MwW YQ9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=7iX++GW9em/H9N0KpaZSTBF7u/NQ/99HexGPvnohVRo=; b=tK/RubMNP60smkWGn7+U9N+CA9agmPBXBV1uCacmMV9O3JObp5GP+Nhida/fPRBHdL BfDDRUmzAc+jlG3aP7DoPJxfS6CRmhJgAh3wioKfrOO7ynn5HOA4PmP8ZbkeMGxUEcPb /VIL9+2/tMQUC4jycCuiRjWIUDS7/Dc9OXx8ITjOVWMfCC0snLnwYBDRL0KSYiRNQ0ku +JWm0Skl0uihwuoQxA9OyLQjZYEZ1grYwwfvVlUUwvsWq+jZohwUiu8hrX6la7lqIv3w 8/dXJ43j+zNYGF16lxhNjXLMsKWMjjQN2KFowSpuXRpHtuyGFjFxcqs5bS4J0rg+RwGF CLLg== 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 y5si76285pgb.43.2018.02.19.07.14.27; Mon, 19 Feb 2018 07:14:51 -0800 (PST) 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 S1752995AbeBSPNo (ORCPT + 99 others); Mon, 19 Feb 2018 10:13:44 -0500 Received: from mout.perfora.net ([74.208.4.196]:36635 "EHLO mout.perfora.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751937AbeBSPNh (ORCPT ); Mon, 19 Feb 2018 10:13:37 -0500 Received: from localhost.localdomain.toradex.int ([46.140.72.82]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPA (Nemesis) id 0LwY1Z-1ehn2y2xbj-018MuI; Mon, 19 Feb 2018 16:13:00 +0100 From: Marcel Ziswiler To: linux-tegra@vger.kernel.org, devicetree@vger.kernel.org Cc: Marcel Ziswiler , Thierry Reding , Jonathan Hunter , linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland , Russell King , linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: tegra: fix ulpi regression on tegra20 Date: Mon, 19 Feb 2018 16:12:52 +0100 Message-Id: <20180219151252.29289-1-marcel@ziswiler.com> X-Mailer: git-send-email 2.14.3 X-Provags-ID: V03:K0:8lcreEhGjcde02gtsipUR0Fy5W4OtMRFBvrDOtk9a51em1YKV91 be7RvXzNwNXb76bbk/kMHLc4ss2M/rRUJrfSKAfCmu/Wj4ebA6nH5Avm4QwGboj2nfmqlKf /jetoyseK0znq2ucwkCfEmu3bAjtyEnT0VszuvZjX4Zv3+qN/J47+32Yyibx3Jg91D8DnbO cU+PvdaYF+KSb+XHz4O/w== X-UI-Out-Filterresults: notjunk:1;V01:K0:XirestIvFCQ=:ERFu6vDugAVb5bMFAZ+Oo9 LV8z7/Q1aOROihsvp/KtbZSRjQV0U1TaFKZCBvSCoaL+wncl1vfsP5yulOlsCOp2uZnfRMuqy 1O744XoTVjMZZUu0lm/JMr2KyWgqmWRJINPywqI5IWHurzPv8D4CE9wwKsVcvjKXrNgr+HfB8 Mtp10W7+v0kbUdpxPMAB614bf9rxDwkvJD3L8sQwX6qq6D97EcaAeDWty6rzt16KuxRD91kQ8 IvRuNYQz3smqC29V11KqnmqT3bb4G9uScFxRJWc3+90CNSNLm8ZL6q345Ple75AgV4REiPXnO Z7A+i95m+0eX68UcPUQx2838Cb1s0wpye7RKi73+8uvFGXREYvDVwQ2N/bnPFHnlbZ/Ykaotp gIqxK9wvpI2H8Sz6tAOFz5idfNtR4GZzu9YB6T1vjd6QTWdvQmf7xN8b9piwx82VGGGFTJDTf bw4rIgxmrTwWCBduPOxc3M4p2IxdvvmvawolXGRqmSzR537W2+cYnDt6yHbhzBNlKIHTYJ7O8 +91suzGgvCD8/GDsJK366nxdKAKPxEbuY6yiIB39d6+dgdR6IpQ3yfXZe9p0eM4VRLwupn+4P gCSum++NoeCp/FfEpYZqkRJ/JcOJgWCULXHdGYP1/C1M1/T6Ar+GJseGlf4NiPVfNYJVH/t8E wG33P+Y4Q1oKdaYOWUb4D9puXOaqD+jkH1uUraYwgZXGbLP0SOr8H5HpL3Sl4+e/Oj40bOfYN JKO7b21wT03zS572Sz3NMJ3dg2ILI4VKzkOI9Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marcel Ziswiler Since commit f8f8f1d04494 ("clk: Don't touch hardware when reparenting during registration") ULPI has been broken on Tegra20 leading to the following error message during boot: [ 1.974698] ulpi_phy_power_on: ulpi write failed [ 1.979384] tegra-ehci c5004000.usb: Failed to power on the phy [ 1.985434] tegra-ehci: probe of c5004000.usb failed with error -110 Debugging through the changes and finally also consulting the TRM revealed that rather than the CDEV2 clock off OSC requiring such pin muxing actually the PLL_P_OUT4 clock is in use. It looks like so far it just worked by chance of that one having been enabled which Stephen's commit now changed when reparenting sclk away from pll_p_out4 leaving that one disabled. Fix this by properly assigning the PLL_P_OUT4 clock as the ULPI PHY clock. Signed-off-by: Marcel Ziswiler --- arch/arm/boot/dts/tegra20.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 864a95872b8d..e05b6bb2599f 100644 --- a/arch/arm/boot/dts/tegra20.dtsi +++ b/arch/arm/boot/dts/tegra20.dtsi @@ -741,7 +741,7 @@ phy_type = "ulpi"; clocks = <&tegra_car TEGRA20_CLK_USB2>, <&tegra_car TEGRA20_CLK_PLL_U>, - <&tegra_car TEGRA20_CLK_CDEV2>; + <&tegra_car TEGRA20_CLK_PLL_P_OUT4>; clock-names = "reg", "pll_u", "ulpi-link"; resets = <&tegra_car 58>, <&tegra_car 22>; reset-names = "usb", "utmi-pads"; -- 2.14.3