From patchwork Thu Dec 28 12:52:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hauke Mehrtens X-Patchwork-Id: 10134629 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EC99E6037D for ; Thu, 28 Dec 2017 12:53:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD5FB2D405 for ; Thu, 28 Dec 2017 12:53:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF5D12D40F; Thu, 28 Dec 2017 12:53:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0D93A2D405 for ; Thu, 28 Dec 2017 12:53:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=wgJ6/X7HA38QgZJ9ic0KWbRHzn3cQ6/yhXfDdlzuc8k=; b=qkc dDAX8Sr+lGMbYIxJ3bP214nFpCrRPF/m94zPujmYCcfjpeXoSmstsJwEEBlls5yaE1LKiRchpfT0x oPR1o3sHIAjeF2TZxlhC7mkv5o+XwI4KDx4cimzrctD21kbFeHQ472cPNQbsEGBJK794vyQ/pk90d suixNfEWtwg5bz5vamLKHozNJEA0TxZw4xNXU7gGe6iFQMQ1PsVNoTSrQN7yoFG8oaaoQlaSl3RQ1 SoCd8SBfysMCAgY2qO9fTIEKoWVg5Ennn22G4FtAhaaqqFpfsd2hWQl7pXkJ6tI0sCADIPHP71LEL APaMCIl+Q327s7CyBqT9kVqonmI3b2g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eUXgM-00061B-H0; Thu, 28 Dec 2017 12:53:10 +0000 Received: from mx2.mailbox.org ([80.241.60.215]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eUXgI-0005ym-Kc for linux-arm-kernel@lists.infradead.org; Thu, 28 Dec 2017 12:53:08 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id AFAA14D183; Thu, 28 Dec 2017 13:52:54 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id js6UMhvssr_q; Thu, 28 Dec 2017 13:52:50 +0100 (CET) From: Hauke Mehrtens To: maxime.ripard@free-electrons.com, wens@csie.org Subject: [PATCH] ARM: dts: sun8i: Fix power for USB Ethernet controller Date: Thu, 28 Dec 2017 13:52:22 +0100 Message-Id: <20171228125222.12942-1-hauke@hauke-m.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171228_045306_922018_063D1C4E X-CRM114-Status: UNSURE ( 9.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, Hauke Mehrtens , linux-arm-kernel@lists.infradead.org, icenowy@aosc.io MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The RTL8152B USB controller needs a 3.3 volt power supply which is controlled by PAD20. Without this patch Linux will not see that there is a device connected to the USB bus and the 2. USB port will not work. I do not of a better solution to add a regulator to a USB device. Signed-off-by: Hauke Mehrtens --- arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts index 32a6d312422e..1d5db0e0bd12 100644 --- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts +++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts @@ -47,13 +47,15 @@ model = "Xunlong Orange Pi R1"; compatible = "xunlong,orangepi-r1", "allwinner,sun8i-h2-plus"; - /delete-node/ reg_vcc_wifi; - aliases { ethernet1 = &rtl8189etv; }; }; +®_vcc_wifi { + regulator-always-on; +}; + &ohci1 { /* * RTL8152B USB-Ethernet adapter is connected to USB1,