From patchwork Sun Nov 22 00:40:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 11923717 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=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 03727C56202 for ; Sun, 22 Nov 2020 00:41:50 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9CA002078B for ; Sun, 22 Nov 2020 00:41:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="1kZ3yBzs"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mymailcheap.com header.i=@mymailcheap.com header.b="FNbqvfWp"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=aosc.io header.i=@aosc.io header.b="tT2HTfcK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9CA002078B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=aosc.io Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3clU6tnP/RoLoT8fJfjNsc8FuQ955ZYiepUuRMYpA/0=; b=1kZ3yBzslXDrbaPFxybSD4LUz hyStq+GxvRT91E06Qj1AHlQKMCHmrJg2qJvqJN13zVLJ1ikwH62uzOBdJFU8iBxvq27WsglHJHEuK 6oi4A5X0faYWuAwW2MpSM5bM0qIX6pb1H7nHh8pFCpVWnX1+dqxcwyWEZIFj4qfxazUSmAlA8NuYs FJ05g/ESYaVzdln9P3U7qa1rE0OGu7Q422O4OjCjoaeNkda3OHzeXaP4MS5acWhA3mGpcR8ZEWZdn Vgcj/0Ne5uviOD/OY105n4KeUkzqRgQf5a1mkVXLoKmBWa2oi2abt9zfgGd5Oq6WkqOFmsad8yI2c bZAl/LVMw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgdQp-0003Nt-4U; Sun, 22 Nov 2020 00:40:43 +0000 Received: from relay4.mymailcheap.com ([137.74.80.156]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgdQl-0003MS-9G for linux-arm-kernel@lists.infradead.org; Sun, 22 Nov 2020 00:40:41 +0000 Received: from filter1.mymailcheap.com (filter1.mymailcheap.com [149.56.130.247]) by relay4.mymailcheap.com (Postfix) with ESMTPS id 2D0053F1D0; Sun, 22 Nov 2020 01:40:37 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by filter1.mymailcheap.com (Postfix) with ESMTP id 457052A36E; Sat, 21 Nov 2020 19:40:36 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mymailcheap.com; s=default; t=1606005636; bh=Pb4Q1x+cDDkb3+w52LlauT+lSuzZnpwtU+Gv8d3ydLQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FNbqvfWpMvFk4PhUr2T9z4F+EQ3jOx5zSz9ntMXkyY1CsnZKK3i5m1HDR4Ozv8YE1 mjcsZrhAQMcxClY/dlHdlX455JobTXYyjdrVgMDDlk0JYnTZL/x+jKPmkgBOcFciFP F6m/2cd925HZ0m0fZd67iibKTxQU3WvKcXyHu1TE= X-Virus-Scanned: Debian amavisd-new at filter1.mymailcheap.com Received: from filter1.mymailcheap.com ([127.0.0.1]) by localhost (filter1.mymailcheap.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WNRbMU7bgD3K; Sat, 21 Nov 2020 19:40:35 -0500 (EST) Received: from mail20.mymailcheap.com (mail20.mymailcheap.com [51.83.111.147]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by filter1.mymailcheap.com (Postfix) with ESMTPS; Sat, 21 Nov 2020 19:40:35 -0500 (EST) Received: from [213.133.102.83] (ml.mymailcheap.com [213.133.102.83]) by mail20.mymailcheap.com (Postfix) with ESMTP id 643684130F; Sun, 22 Nov 2020 00:40:34 +0000 (UTC) Authentication-Results: mail20.mymailcheap.com; dkim=pass (1024-bit key; unprotected) header.d=aosc.io header.i=@aosc.io header.b="tT2HTfcK"; dkim-atps=neutral AI-Spam-Status: Not processed Received: from ice-e5v2.lan (unknown [59.41.161.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail20.mymailcheap.com (Postfix) with ESMTPSA id 62CED4130F; Sun, 22 Nov 2020 00:40:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aosc.io; s=default; t=1606005629; bh=Pb4Q1x+cDDkb3+w52LlauT+lSuzZnpwtU+Gv8d3ydLQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tT2HTfcKxKpbl4Fc/urdguBYZzsH2qtWX8iE5+Bun89wzF67eqy3M6JOnVSyPqce6 n3BIhjwrfseSjKzGqk701OSHh42jUY07OpMXhIw1XMH9v9cmqIh2KRNCv+FCsMGwvP Yj3UXkV6x0c/uMjgLMml7YXiMlPlP0R1Y2pS4A58= From: Icenowy Zheng To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec Subject: [PATCH 3/3] ARM: dts: sun8i: s3: switch PineCube to use OHCI/EHCI only Date: Sun, 22 Nov 2020 08:40:11 +0800 Message-Id: <20201122004011.1957325-2-icenowy@aosc.io> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201122003841.1957034-1-icenowy@aosc.io> References: <20201122003841.1957034-1-icenowy@aosc.io> MIME-Version: 1.0 X-Rspamd-Queue-Id: 643684130F X-Spamd-Result: default: False [4.90 / 20.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(0.00)[aosc.io:s=default]; RECEIVED_SPAMHAUS_PBL(0.00)[59.41.161.246:received]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[aosc.io]; BROKEN_CONTENT_TYPE(1.50)[]; R_SPF_SOFTFAIL(0.00)[~all:c]; ML_SERVERS(-3.10)[213.133.102.83]; DKIM_TRACE(0.00)[aosc.io:+]; RCPT_COUNT_SEVEN(0.00)[8]; MID_CONTAINS_FROM(1.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:213.133.96.0/19, country:DE]; RCVD_COUNT_TWO(0.00)[2]; HFILTER_HELO_BAREIP(3.00)[213.133.102.83,1] X-Rspamd-Server: mail20.mymailcheap.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201121_194039_621914_24B513AE X-CRM114-Status: GOOD ( 12.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, inux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Icenowy Zheng Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The PineCube board features a USB Type-A connector connected to the SoC's USB pins. As this is not designed for being used as a USB device, disable OTG controller and route USB to OHCI/EHCI fixedly. Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/sun8i-s3-pinecube.dts | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-s3-pinecube.dts b/arch/arm/boot/dts/sun8i-s3-pinecube.dts index 4aa0ee897a0a..c4177c54ef29 100644 --- a/arch/arm/boot/dts/sun8i-s3-pinecube.dts +++ b/arch/arm/boot/dts/sun8i-s3-pinecube.dts @@ -78,6 +78,12 @@ csi1_ep: endpoint { }; }; +&ehci0 { + phys = <&usbphy 0>; + phy-names = "usb"; + status = "okay"; +}; + &emac { phy-handle = <&int_mii_phy>; phy-mode = "mii"; @@ -158,6 +164,12 @@ &mmc1 { status = "okay"; }; +&ohci0 { + phys = <&usbphy 0>; + phy-names = "usb"; + status = "okay"; +}; + &pio { vcc-pd-supply = <®_dcdc3>; vcc-pe-supply = <®_ldo3>; @@ -224,11 +236,6 @@ &uart2 { status = "okay"; }; -&usb_otg { - dr_mode = "host"; - status = "okay"; -}; - &usbphy { usb0_vbus-supply = <®_vcc5v0>; status = "okay";