From patchwork Thu Aug 22 16:22:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 1151688 X-Patchwork-Delegate: marek.vasut@gmail.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="ukMZmTek"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46Dqg74k2Fz9sBp for ; Fri, 23 Aug 2019 02:26:59 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 33A5AC220D0; Thu, 22 Aug 2019 16:25:18 +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 4EFA1C220A7; Thu, 22 Aug 2019 16:23:53 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 53481C220C2; Thu, 22 Aug 2019 16:22:38 +0000 (UTC) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by lists.denx.de (Postfix) with ESMTPS id 4A77CC220CE for ; Thu, 22 Aug 2019 16:22:35 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id k2so6021063wrq.2 for ; Thu, 22 Aug 2019 09:22:35 -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=awP1P0B1BxI78puZgGMFgNyFVGETJMRyIwJ5A6yrvWA=; b=ukMZmTekx8Yc9LlOyCwLWoZwpVOy/bOlq6BE9JblSeQ5tSROKf7/6yQwOM2CCwtByA W94g0y6ke7Sa+t64eQ8G5DWU3Pm5FtOq1lu4XqsWpMtOV2VwXpTy0fpSrfZeKiXDbn92 QMsOXlLF9H6ifP2PRqwgcSySCsYuuijP6xpWn6IhNZExe7cLNoi10touzc8kbIo/KbpY Aj9XmdrLbRRgkJ+ewcm1jE4royKP3RJZaU5J5iVWloW5eOq9nMuBVc7lSoH989UwWJ4A XHnxWoSUtjcjp03iHDq3YH3CrVP66My7lExaAvWX6X9VXCZ6Ydh/bKzSu1I/4HtI8jJe b3FA== 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=awP1P0B1BxI78puZgGMFgNyFVGETJMRyIwJ5A6yrvWA=; b=bW5UDuUkde7O6KgDVIByxG0VfMHP9a2C6zuR3kFWO578WTuc4taLSAcnI+aozw3+N9 6efIpOBO5UhSJJLooLgzbC3QhW4sPWQWFQnuzo5IYVQDpeniA3K90sLiJFnRZMJBvYs/ dCwpm7NGD9iMyNfuEmMWfk7s1zG+gEwhKDBsTRwTqrV4ACcpPryz33k6xJcnInLgN4T/ 6QQ8fBL2llDC5pdqjIIoPLmFpjHf7sHmcru9tmEG0eCp7fh+uHyzy1zUhoSF7pUiYelO 0sdtfZdz45l0JUQ0RakiXJ0YafcTFeq8Ht6hpIfYzU4lqN3IlzzCDdbLSF/qLGovQSF+ b1cQ== X-Gm-Message-State: APjAAAUFxb1G9z7yh3Mf8GYU5uJk6hSXcXyF7Vv2/pSS3aGbK0k47P7W D4HnJJY9AsJvEbQ4qt222TW0nxr2 X-Google-Smtp-Source: APXvYqw/kUOHoo7AkslEj0hQewcLllyQDrBFyQREPTpXyfdNwejMsIkEYNdZ8jgAuv8qHeNpXgbasw== X-Received: by 2002:adf:c594:: with SMTP id m20mr51286541wrg.126.1566490954632; Thu, 22 Aug 2019 09:22:34 -0700 (PDT) Received: from desktop.lan (ip-86-49-35-8.net.upcbroadband.cz. [86.49.35.8]) by smtp.gmail.com with ESMTPSA id c8sm59918wrn.50.2019.08.22.09.22.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2019 09:22:33 -0700 (PDT) From: Marek Vasut X-Google-Original-From: Marek Vasut To: u-boot@lists.denx.de Date: Thu, 22 Aug 2019 18:22:14 +0200 Message-Id: <20190822162214.19011-10-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20190822162214.19011-1-marek.vasut+renesas@gmail.com> References: <20190822162214.19011-1-marek.vasut+renesas@gmail.com> MIME-Version: 1.0 Cc: Marek Vasut Subject: [U-Boot] [PATCH V2 10/10] ARM: renesas: Enable R8A66597 USB host on GR Peach 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 USB host support on GR Peach board. To use USB host on GR Peach, it might be necessary to solder JP3 header onto the board first and then short it. Shorting JP3 is mandatory to let the U5 regulator to supply VBUS to the CN3 USB port. Signed-off-by: Marek Vasut Cc: Chris Brandt --- V2: No change --- arch/arm/dts/r7s72100-gr-peach-u-boot.dts | 14 ++++++++++++++ configs/grpeach_defconfig | 9 ++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/r7s72100-gr-peach-u-boot.dts b/arch/arm/dts/r7s72100-gr-peach-u-boot.dts index 28247d19d7..30e35e47d6 100644 --- a/arch/arm/dts/r7s72100-gr-peach-u-boot.dts +++ b/arch/arm/dts/r7s72100-gr-peach-u-boot.dts @@ -37,6 +37,15 @@ }; }; + reg_usbhs0_vbus: regulator-usbhs0-vbus { + compatible = "regulator-fixed"; + regulator-name = "usbhs0_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&port4 1 GPIO_ACTIVE_LOW>; + }; + + rpc: rpc@0xee200000 { compatible = "renesas,rpc-r7s72100", "renesas,rpc"; reg = <0x3fefa000 0x100>, <0x18000000 0x08000000>; @@ -76,3 +85,8 @@ &scif2_pins { u-boot,dm-pre-reloc; }; + +&usbhs0 { + vbus-supply = <®_usbhs0_vbus>; + status = "okay"; +}; diff --git a/configs/grpeach_defconfig b/configs/grpeach_defconfig index 32254b3b0e..adabfbc085 100644 --- a/configs/grpeach_defconfig +++ b/configs/grpeach_defconfig @@ -10,6 +10,7 @@ CONFIG_HUSH_PARSER=y # CONFIG_CMD_ELF is not set CONFIG_CMD_GPIO=y CONFIG_CMD_SF=y +CONFIG_CMD_USB=y CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y CONFIG_CMD_PING=y @@ -30,7 +31,7 @@ CONFIG_ENV_SPI_MAX_HZ=50000000 CONFIG_USE_ENV_SPI_MODE=y CONFIG_ENV_SPI_MODE=0x0 CONFIG_NET_RANDOM_ETHADDR=y -CONFIG_HAVE_BLOCK_DEVICE=y +CONFIG_BLK=y CONFIG_DM_GPIO=y CONFIG_RZA1_GPIO=y CONFIG_LED=y @@ -43,11 +44,17 @@ CONFIG_SPI_FLASH_MACRONIX=y CONFIG_DM_ETH=y CONFIG_SH_ETHER=y CONFIG_PINCTRL=y +CONFIG_DM_REGULATOR=y +CONFIG_DM_REGULATOR_FIXED=y CONFIG_SCIF_CONSOLE=y CONFIG_SPI=y CONFIG_DM_SPI=y CONFIG_RENESAS_RPC_SPI=y CONFIG_TIMER=y CONFIG_RENESAS_OSTM_TIMER=y +CONFIG_USB=y +CONFIG_DM_USB=y +CONFIG_USB_R8A66597_HCD=y +CONFIG_USB_STORAGE=y CONFIG_OF_LIBFDT_OVERLAY=y # CONFIG_EFI_LOADER is not set