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.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 C93D8C4360C for ; Thu, 3 Oct 2019 02:06:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 87CE720815 for ; Thu, 3 Oct 2019 02:06:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="AQDbMzip" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727750AbfJCCGS (ORCPT ); Wed, 2 Oct 2019 22:06:18 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:2365 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726070AbfJCCGR (ORCPT ); Wed, 2 Oct 2019 22:06:17 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 02 Oct 2019 19:06:15 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Wed, 02 Oct 2019 19:06:15 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Wed, 02 Oct 2019 19:06:15 -0700 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 3 Oct 2019 02:06:15 +0000 Received: from [10.19.108.102] (172.20.13.39) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 3 Oct 2019 02:06:13 +0000 Subject: Re: [PATCH 5/6] arm64: tegra: Add XUSB and pad controller on Tegra194 To: Thierry Reding CC: , , , , , , , References: <20191002080051.11142-1-jckuo@nvidia.com> <20191002080051.11142-6-jckuo@nvidia.com> <20191002101102.GG3716706@ulmo> X-Nvconfidentiality: public From: JC Kuo Message-ID: Date: Thu, 3 Oct 2019 10:06:11 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191002101102.GG3716706@ulmo> X-Originating-IP: [172.20.13.39] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To DRHQMAIL107.nvidia.com (10.27.9.16) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1570068376; bh=WiGeFR6rFaLh3x2E6ddDhuQmZCxEdFOIupeMBVKLruM=; h=X-PGP-Universal:Subject:To:CC:References:X-Nvconfidentiality:From: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=AQDbMzipcs8I+qlgi5XCbw+teK3VY+VTGvs5yo0OaraatvIvpeFC14e776bHnHUC4 99RfzrXLoUOjczp2IhDmtvJJskxIyfYpvkr2rwaACQKoaELVpF01NleeQ0jN9iHB8Q 5nQlWW7nMgotfmDu6b4PPBmIogf52xWl2g1qnNQ5W8kWQwvDApdL97rUJ5imy+DhT5 fm6IaO8sVJILcSqccGhYohir6hgcJg01tUf/Auekv6mgcPtdAvSGM1uV5LkD+JUgHL URiHGBR8V25uW5/nHOLWx/ipJs6lpmFPZ0Kfs+4003r08new+opZrca6mpgDri3kBv 8ZX48/gER8Z4Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/2/19 6:11 PM, Thierry Reding wrote: > On Wed, Oct 02, 2019 at 04:00:50PM +0800, JC Kuo wrote: >> Adds the XUSB pad and XUSB controllers on Tegra194. >> >> Signed-off-by: JC Kuo >> --- >> arch/arm64/boot/dts/nvidia/tegra194.dtsi | 130 +++++++++++++++++++++++ >> 1 file changed, 130 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi >> index 3c0cf54f0aab..4d3371d3a407 100644 >> --- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi >> +++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi >> @@ -1599,4 +1599,134 @@ >> interrupt-parent = <&gic>; >> always-on; >> }; >> + >> + xusb_padctl: padctl@3520000 { > > I also noticed that this is outside of the /cbb bus node. It really > belongs inside /cbb. Same for the XHCI controller node. > > Thierry Thanks. I will move both inside /cbb. > >> + compatible = "nvidia,tegra194-xusb-padctl"; >> + reg = <0x0 0x03520000 0x0 0x1000>, >> + <0x0 0x03540000 0x0 0x1000>; >> + reg-names = "padctl", "ao"; >> + >> + resets = <&bpmp TEGRA194_RESET_XUSB_PADCTL>; >> + reset-names = "padctl"; >> + >> + status = "disabled"; >> + >> + pads { >> + usb2 { >> + clocks = <&bpmp TEGRA194_CLK_USB2_TRK>; >> + clock-names = "trk"; >> + >> + lanes { >> + usb2-0 { >> + nvidia,function = "xusb"; >> + status = "disabled"; >> + #phy-cells = <0>; >> + }; >> + usb2-1 { >> + nvidia,function = "xusb"; >> + status = "disabled"; >> + #phy-cells = <0>; >> + }; >> + usb2-2 { >> + nvidia,function = "xusb"; >> + status = "disabled"; >> + #phy-cells = <0>; >> + }; >> + usb2-3 { >> + nvidia,function = "xusb"; >> + status = "disabled"; >> + #phy-cells = <0>; >> + }; >> + }; >> + }; >> + usb3 { >> + lanes { >> + usb3-0 { >> + nvidia,function = "xusb"; >> + status = "disabled"; >> + #phy-cells = <0>; >> + }; >> + usb3-1 { >> + nvidia,function = "xusb"; >> + status = "disabled"; >> + #phy-cells = <0>; >> + }; >> + usb3-2 { >> + nvidia,function = "xusb"; >> + status = "disabled"; >> + #phy-cells = <0>; >> + }; >> + usb3-3 { >> + nvidia,function = "xusb"; >> + status = "disabled"; >> + #phy-cells = <0>; >> + }; >> + }; >> + }; >> + }; >> + >> + ports { >> + usb2-0 { >> + status = "disabled"; >> + }; >> + usb2-1 { >> + status = "disabled"; >> + }; >> + usb2-2 { >> + status = "disabled"; >> + }; >> + usb2-3 { >> + status = "disabled"; >> + }; >> + usb3-0 { >> + status = "disabled"; >> + }; >> + usb3-1 { >> + status = "disabled"; >> + }; >> + usb3-2 { >> + status = "disabled"; >> + }; >> + usb3-3 { >> + status = "disabled"; >> + }; >> + }; >> + }; >> + >> + tegra_xhci: xhci@3610000 { >> + compatible = "nvidia,tegra194-xusb"; >> + reg = <0x0 0x03610000 0x0 0x40000>, >> + <0x0 0x03600000 0x0 0x10000>; >> + reg-names = "hcd", "fpci"; >> + >> + interrupts = , >> + , >> + ; >> + >> + clocks = <&bpmp TEGRA194_CLK_XUSB_CORE_MUX>, >> + <&bpmp TEGRA194_CLK_XUSB_CORE_HOST>, >> + <&bpmp TEGRA194_CLK_XUSB_CORE_SS>, >> + <&bpmp TEGRA194_CLK_XUSB_FALCON>, >> + <&bpmp TEGRA194_CLK_XUSB_FALCON_HOST>, >> + <&bpmp TEGRA194_CLK_XUSB_FALCON_SS>, >> + <&bpmp TEGRA194_CLK_XUSB_FS>, >> + <&bpmp TEGRA194_CLK_XUSB_FS_HOST>, >> + <&bpmp TEGRA194_CLK_XUSB_SS>, >> + <&bpmp TEGRA194_CLK_XUSB_SS_SUPERSPEED>, >> + <&bpmp TEGRA194_CLK_UTMIPLL>, >> + <&bpmp TEGRA194_CLK_CLK_M>, >> + <&bpmp TEGRA194_CLK_PLLE>; >> + clock-names = "xusb_hs_src", "xusb_host", >> + "xusb_core_superspeed_clk", "xusb_falcon_src", >> + "xusb_falcon_host_clk", "xusb_falcon_superspeed_clk", >> + "xusb_fs_src", "xusb_fs_host_clk", "xusb_ss_src", >> + "xusb_ss", "pll_u_480m", "clk_m", "pll_e"; >> + >> + power-domains = <&bpmp TEGRA194_POWER_DOMAIN_XUSBC>, >> + <&bpmp TEGRA194_POWER_DOMAIN_XUSBA>; >> + power-domain-names = "xusb_host", "xusb_ss"; >> + >> + nvidia,xusb-padctl = <&xusb_padctl>; >> + status = "disabled"; >> + }; >> }; >> -- >> 2.17.1 >>