Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D25BDC433EF for ; Fri, 17 Dec 2021 16:34:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A11C483007; Fri, 17 Dec 2021 17:34:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=akkea.ca Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=akkea.ca header.i=@akkea.ca header.b="KX1d3Yb5"; dkim=pass (1024-bit key) header.d=akkea.ca header.i=@akkea.ca header.b="gilU6bfO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4EB148329E; Fri, 17 Dec 2021 17:34:54 +0100 (CET) Received: from node.akkea.ca (li1434-30.members.linode.com [45.33.107.30]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3100982F5A for ; Fri, 17 Dec 2021 17:34:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=akkea.ca Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=angus@akkea.ca Received: from localhost (localhost [127.0.0.1]) by node.akkea.ca (Postfix) with ESMTP id 4342D4E2006; Fri, 17 Dec 2021 16:34:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1639758889; bh=pw3VuyowaOoCOvM/5Se82KczkL/G6JjDfds2d8AyLj0=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=KX1d3Yb5eQ4aAMSYNHmnB1Tzs2A8DlPciPEAMjq9JivRHP5wiTTFX/z6VUbLAPpKf liTsha6KmzvhpugFnQJPwhqDJtT8rVx+7k2ywv7XogN7I/yyYWTcyfiYweJfXwb90f bAoVmHl7Pn2YzIVam4U7SD7TJakhsrPhRGV8sJbU= Received: from node.akkea.ca ([127.0.0.1]) by localhost (mail.akkea.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8da3Qb790QI0; Fri, 17 Dec 2021 16:34:48 +0000 (UTC) Received: from www.akkea.ca (li1434-30.members.linode.com [45.33.107.30]) by node.akkea.ca (Postfix) with ESMTPSA id 6552D4E2003; Fri, 17 Dec 2021 16:34:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1639758888; bh=pw3VuyowaOoCOvM/5Se82KczkL/G6JjDfds2d8AyLj0=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=gilU6bfOy8RaIjfm6ealhtsKiR8gADr54XqWdV+5y3VBiebvkPzcdg8HZqGzqF4QD SxAFv+FiCBjAdimt/p4dzsP5bTx79qrnvvVuiAV7QWklq0cG81fDfqIf52hS7Bmjyc QOPZhWBx0eV6+WtQ4GlJbR96aCnMQ53tzwc9dcAM= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 17 Dec 2021 08:34:48 -0800 From: Angus Ainslie To: Fabio Estevam Cc: U-Boot-Denx , "NXP i.MX U-Boot Team" , Stefano Babic , Peng Fan , Marek Vasut , Ye Li , Alice Guo , Patrick Wildt , Simon Glass , Frieder Schrempf , =?UTF-8?Q?Marek_Beh=C3=BAn?= , "Ying-Chun Liu (PaulLiu)" , kernel@puri.sm Subject: Re: [PATCH 2/3] arch: imx8m: imx-regs.h add the USB regs In-Reply-To: References: <20211217152040.324803-1-angus@akkea.ca> <20211217152040.324803-3-angus@akkea.ca> Message-ID: X-Sender: angus@akkea.ca User-Agent: Roundcube Webmail/1.3.6 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi Fabio, On 2021-12-17 08:28, Fabio Estevam wrote: > Hi Angus, > > On Fri, Dec 17, 2021 at 12:21 PM Angus Ainslie wrote: >> >> Add the USB regs for SDP mode >> >> Signed-off-by: Angus Ainslie >> --- >> arch/arm/include/asm/arch-imx8m/imx-regs.h | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/arch/arm/include/asm/arch-imx8m/imx-regs.h >> b/arch/arm/include/asm/arch-imx8m/imx-regs.h >> index 8cb499d3a3..bd474f88a6 100644 >> --- a/arch/arm/include/asm/arch-imx8m/imx-regs.h >> +++ b/arch/arm/include/asm/arch-imx8m/imx-regs.h >> @@ -103,6 +103,11 @@ >> IMX_CSPI2_BASE, \ >> IMX_CSPI3_BASE >> >> +#define USB1_BASE_ADDR 0x38100000 >> +#define USB2_BASE_ADDR 0x38200000 >> +#define USB1_PHY_BASE_ADDR 0x381F0000 >> +#define USB2_PHY_BASE_ADDR 0x382F0000 > > Some time ago I sent a similar patch and the feedback from Marek was > that these > base addresses should be retrieved from the devicetree instead. I had problems getting the dwc3 to initialize properly when using the device model in the SPL. I'm currently just using this in the SPL and the device model in u-boot. I'll take another shot at initializing the dwc3 in the SPL with the DM. Thanks Angus