From patchwork Sun Aug 18 13:42:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Beniamino Galvani X-Patchwork-Id: 1148963 X-Patchwork-Delegate: narmstrong@baylibre.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tc5iAlT+"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46BYz5455Pz9s7T for ; Mon, 19 Aug 2019 10:02:57 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 49B33C21E39; Mon, 19 Aug 2019 00:02:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 82F8DC21E0D; Mon, 19 Aug 2019 00:01:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4E0A6C21C3F; Sun, 18 Aug 2019 13:43:37 +0000 (UTC) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by lists.denx.de (Postfix) with ESMTPS id EDDE1C21BE5 for ; Sun, 18 Aug 2019 13:43:36 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id y8so5967581wrn.10 for ; Sun, 18 Aug 2019 06:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SZ6ZHeRZpdSciT5I3FdUZ7N5hz0r9UHbuxaa6NWeN9U=; b=tc5iAlT+3Ga1931RMo7HIfbWgcfftr7IADrrqSXPpItdTVX+3G2De9PyogM5IWn7TZ MCnUdr2/UEMs589gexsuwTQDOLJ6yKOH5NKQGIOoukh39asl+sX33hqjPNaNuZXEI7CB Rd+sbwPNX8323fSHUEKp5RGvReMZcJ9jGHWiEhVR5+JgcQRTFip83CaMtqipcSnRvz7Q LtXs3yJ/GG4eBUMKKXkK1rE/7CTaz3hQzCG+Yo4h9OAvNoA0RRIqBnPqwvYsphPbP3En fsec4mn1e7LsQStO3VjKJoTwt+Sg6eTEvyNVNDgXmmtCLn7RGrr874PwOCljE/b16j7i 3XcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SZ6ZHeRZpdSciT5I3FdUZ7N5hz0r9UHbuxaa6NWeN9U=; b=ilYpiIaYybVZWYpup5IZ8SEODdZccI9u5dJBs9vG6nxyqKHGkIhvPTLZF3X60FA/I+ axC8mdJJPBgG6vdZAd85+czCPwdeK3ALCCucdFSJ0dfz6qHfP1IDKPcjKeVJ5KVCAqTg hXlzW3h78QmFpSzoJtIzVCcdLwVaiOMFARjsv6nyiS3rXElECfq3LDePjTrn944EDEYR Wrkwv20C+R+zUu/NDVZ4RlwBCTUdgToxyJIYYsgsUmMfqcqVG0nNkwnomwMbm3CfsTRF X+AQvtQjJSgNNFtdClngZXyPHR9bD88vJeigc3aGzQRpmXVPZ5h54u2Af4Fo6qjDzUbd b4KQ== X-Gm-Message-State: APjAAAUzJbdXRiV0POkEJC1h0kbZrYy6ZBm/LGi3JuGiY7phd8atRjI4 1uI6eDCfy5VeuCVjHtkT9whOdTH1oO8= X-Google-Smtp-Source: APXvYqxBlRBCCJv09KdXOEeWp03N3nKCz8tK4ojeE70KnFaT+pvG6EfWCZS18PNQWBI+KMRM4VxRoA== X-Received: by 2002:a5d:5343:: with SMTP id t3mr21098647wrv.156.1566135816276; Sun, 18 Aug 2019 06:43:36 -0700 (PDT) Received: from sark.homenet.telecomitalia.it (host199-185-dynamic.45-213-r.retail.telecomitalia.it. [213.45.185.199]) by smtp.gmail.com with ESMTPSA id g7sm11844600wmg.8.2019.08.18.06.43.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2019 06:43:35 -0700 (PDT) From: Beniamino Galvani To: u-boot@lists.denx.de, Neil Armstrong Date: Sun, 18 Aug 2019 15:42:55 +0200 Message-Id: <20190818134255.7135-3-b.galvani@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190818134255.7135-1-b.galvani@gmail.com> References: <20190818134255.7135-1-b.galvani@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 19 Aug 2019 00:01:53 +0000 Cc: u-boot-amlogic@groups.io, Tom Rini Subject: [U-Boot] [PATCH 2/2] odroid-c2: enable USB host controller X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Enable the second USB controller, which is connected to a hub with 4 ports. The first controller is for the OTG port and is currently not supported. Signed-off-by: Beniamino Galvani --- arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi | 8 ++++++++ configs/odroid-c2_defconfig | 7 +++++++ include/configs/meson64.h | 5 +++++ 3 files changed, 20 insertions(+) diff --git a/arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi b/arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi index c35158d7e9..484b40504d 100644 --- a/arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi +++ b/arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi @@ -5,3 +5,11 @@ */ #include "meson-gx-u-boot.dtsi" + +&usb0 { + status = "disabled"; +}; + +&usb1 { + hnp-srp-disable; +}; diff --git a/configs/odroid-c2_defconfig b/configs/odroid-c2_defconfig index 8849058d33..366ea125af 100644 --- a/configs/odroid-c2_defconfig +++ b/configs/odroid-c2_defconfig @@ -16,6 +16,7 @@ CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y # CONFIG_CMD_LOADS is not set CONFIG_CMD_MMC=y +CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_REGULATOR=y CONFIG_OF_CONTROL=y @@ -29,13 +30,19 @@ CONFIG_MMC_MESON_GX=y CONFIG_PHY_REALTEK=y CONFIG_DM_ETH=y CONFIG_ETH_DESIGNWARE=y +CONFIG_PHY=y +CONFIG_MESON_GXBB_USB_PHY=y CONFIG_PINCTRL=y CONFIG_PINCTRL_MESON_GXBB=y CONFIG_DM_REGULATOR=y CONFIG_DM_REGULATOR_FIXED=y +CONFIG_DM_REGULATOR_GPIO=y CONFIG_DM_RESET=y CONFIG_DEBUG_UART_MESON=y CONFIG_DEBUG_UART_ANNOUNCE=y CONFIG_DEBUG_UART_SKIP_INIT=y CONFIG_MESON_SERIAL=y +CONFIG_USB=y +CONFIG_DM_USB=y +CONFIG_USB_DWC2=y CONFIG_OF_LIBFDT_OVERLAY=y diff --git a/include/configs/meson64.h b/include/configs/meson64.h index f8d3eee292..483a8f567c 100644 --- a/include/configs/meson64.h +++ b/include/configs/meson64.h @@ -16,6 +16,11 @@ #define GICC_BASE 0xc4302000 #endif +/* USB */ +#if defined(CONFIG_MESON_GXBB) +#define CONFIG_DWC2_UTMI_WIDTH 16 +#endif + /* For splashscreen */ #ifdef CONFIG_DM_VIDEO #define CONFIG_VIDEO_BMP_RLE8