Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3513342pxb; Mon, 1 Mar 2021 11:58:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzou1DnPqEjk3pwcL4Izihrilm+pTwygbCt2dQxbFbHxtvsfSPEa2+pNxdBx935IeDGPyxh X-Received: by 2002:a17:906:3883:: with SMTP id q3mr17203982ejd.160.1614628696782; Mon, 01 Mar 2021 11:58:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614628696; cv=none; d=google.com; s=arc-20160816; b=cfQHTM+tFwhHvpFgTevcnsveAyZoG6kAr/HAU5bL/zfF6kh38s7tW2iqxpUzvhbw3m ZnbYUL63BQA3zC2kYVugVLf+8osdWZcBfC6B53+IKIW9DM+OgA/Q/OiZLs/24Z91QV4p tdJ/ValI+VdcAvUo2xt+w2tRK3+ShGTiCukYI+VF2+lw9KA3ZNpLmKHf1pi2FYntAyaR rUU65bHN700O13GMHNCc9KPfUYZF5IzCbEE962Ix8rHzoZVTYLn+v/i6Xo3PqfPyv6uW cwM1oekD0oKndNtJtEhSTJSaoD8gyIazMVhOrMIsQOOCVMC/t6DVvhRGz04Oonxq+WsZ 22Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=NyzNVKnfftCt04k0r2B1t6+ibJ6Kf+g/C0Tm+XqpqZU=; b=bAi8dbmetVovuE/Y0GrQXctI1RRwoA8K0xCn2Bz0qS/gZpOoEnBq/9oK5ZUXPbYcg+ r03FpqhpL1SYW/+HArZsYTpPXvTErXq57zGvHXZ2GXH5A5R+t7eHjqubjrrYtx6BWDQM cLvQ3M6C7mTz7w/nL4Cz6NEsMGCeEBHUb29Q+8IEahEfP4dJGrRQbSMudSWhLjyBhySt HVyLh7TPo9D0OBsgcdn8iJ+P4148bNYiD1jhaXCilGX3FgIeQH4rWiJxz9az2nNqQYx/ NO5LMDxK+gEJB0g/fGUX2taewOV7tLsgzMNrxjdAMnogJCBrehzE0nDfHVwG6vYub3iB mIbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ASvCsBee; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w12si12556939eji.480.2021.03.01.11.57.54; Mon, 01 Mar 2021 11:58:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ASvCsBee; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242291AbhCAT5C (ORCPT + 99 others); Mon, 1 Mar 2021 14:57:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:55018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236095AbhCAQ6K (ORCPT ); Mon, 1 Mar 2021 11:58:10 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 11B9464F69; Mon, 1 Mar 2021 16:36:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616614; bh=WWpvUeiJ4x0X/sK/Q7KMZF3lAGhB4Y0YBO+f7xeN85o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ASvCsBeerSmHbYCkkFNxV8DbEBuaxKI4CIScds/kK3VKhpUkYcKHFXpLB1f3AX6PB Y1Yo6kR2AXK9jucaXO7087LicQrA41o2BqrWioga87+CIrZ33gC5hqoGDB63k81EUd W6IKh+OSERVGEF2JTKpF/5bOWHubMMHg8G+lCVsQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andre Przywara , Chen-Yu Tsai , Maxime Ripard , Sasha Levin Subject: [PATCH 4.19 036/247] arm64: dts: allwinner: A64: properly connect USB PHY to port 0 Date: Mon, 1 Mar 2021 17:10:56 +0100 Message-Id: <20210301161033.450994600@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andre Przywara [ Upstream commit cc72570747e43335f4933a24dd74d5653639176a ] In recent Allwinner SoCs the first USB host controller (HCI0) shares the first PHY with the MUSB controller. Probably to make this sharing work, we were avoiding to declare this in the DT. This has two shortcomings: - U-Boot (which uses the same .dts) cannot use this port in host mode without a PHY linked, so we were loosing one USB port there. - It requires the MUSB driver to be enabled and loaded, although we don't actually use it. To avoid those issues, let's add this PHY link to the A64 .dtsi file. After all PHY port 0 *is* connected to HCI0, so we should describe it as this. Remove the part from the Pinebook DTS which already had this property. This makes it work in U-Boot, also improves compatiblity when no MUSB driver is loaded (for instance in distribution installers). Fixes: dc03a047df1d ("arm64: allwinner: a64: add EHCI0/OHCI0 nodes to A64 DTSI") Signed-off-by: Andre Przywara Acked-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard Link: https://lore.kernel.org/r/20210113152630.28810-2-andre.przywara@arm.com Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts | 4 ---- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts index 897e60cbe38d1..b2f0729d92d2c 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts @@ -67,8 +67,6 @@ }; &ehci0 { - phys = <&usbphy 0>; - phy-names = "usb"; status = "okay"; }; @@ -115,8 +113,6 @@ }; &ohci0 { - phys = <&usbphy 0>; - phy-names = "usb"; status = "okay"; }; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 7abc4ea305410..47949f14c49f4 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -312,6 +312,8 @@ <&ccu CLK_USB_OHCI0>; resets = <&ccu RST_BUS_OHCI0>, <&ccu RST_BUS_EHCI0>; + phys = <&usbphy 0>; + phy-names = "usb"; status = "disabled"; }; @@ -322,6 +324,8 @@ clocks = <&ccu CLK_BUS_OHCI0>, <&ccu CLK_USB_OHCI0>; resets = <&ccu RST_BUS_OHCI0>; + phys = <&usbphy 0>; + phy-names = "usb"; status = "disabled"; }; -- 2.27.0