From patchwork Thu Dec 28 14:05:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 10134831 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 23C5460388 for ; Thu, 28 Dec 2017 14:06:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 153CF2D73E for ; Thu, 28 Dec 2017 14:06:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 08E602D742; Thu, 28 Dec 2017 14:06:35 +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 7D6C82D73E for ; Thu, 28 Dec 2017 14:06:34 +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=OsoQ6gA7wgi+Y9Gt9jzLRX7co/RYpz4Sl7EaNVNrSxk=; b=KjM GjNypqXfyXfg4TcMlYovdGTYEEYHGo/bxXNfujp8GpyRuydG/N7ocTFC/iditQsND+iC6vH6Ldgp8 iEjifjMUInkVqcFl9DuS4fPI2Ti+lKYXQybxg30ieAMnxteA3s4PKAVTzSY/ohDiE//O1BMio3u7d A1OKChsVh+MBXpW2TYSMyHZ3vKKLwe6BJEoFCCPpT4iU0pwf5qGVCjJV/jzlPraewCv0VFOG1/m6w dXGO3ux0OVfNAYJOYNyC2j8HRHmZeQ3d4df0++xMq4Fo1X4lc2EpeUjVRSW/Rk7It5GuO2oHV7LCj gjFrbeNX6OUmDv18aPI9pj+yR5VZe9g==; 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 1eUYpL-0001p9-Vi; Thu, 28 Dec 2017 14:06:31 +0000 Received: from nov-007-i623.relay.mailchannels.net ([46.232.183.177]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eUYpD-0001mR-L8 for linux-arm-kernel@lists.infradead.org; Thu, 28 Dec 2017 14:06:30 +0000 X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id A909172059A; Thu, 28 Dec 2017 14:06:06 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.29.5]) (Authenticated sender: lmn-TZDUIOWCRQMW) by relay.mailchannels.net (Postfix) with ESMTPA id 0742D7209F2; Thu, 28 Dec 2017 14:06:05 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [172.18.55.173]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.11.3); Thu, 28 Dec 2017 14:06:06 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Trouble-Whispering: 7316a40d7d6cc2be_1514469966444_3080015959 X-MC-Loop-Signature: 1514469966444:2870883031 X-MC-Ingress-Time: 1514469966444 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id B0E6E4055E; Thu, 28 Dec 2017 14:05:59 +0000 (UTC) From: Icenowy Zheng To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH] ARM: dts: sun8i: fix USB Ethernet of Orange Pi R1 Date: Thu, 28 Dec 2017 22:05:38 +0800 Message-Id: <20171228140538.14388-1-icenowy@aosc.io> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171228_060628_099650_EB0189A1 X-CRM114-Status: UNSURE ( 8.24 ) 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, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Icenowy Zheng 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 Orange Pi R1 uses a Realtek RTL8152B USB Ethernet chip, which is easily seen on the board but not show in the schematics. A regulator for the power of the RTL8152B chip is hidden, which uses the same pin with the Wi-Fi regulator on the original Orange Pi Zero. Add this regulator back to the device tree, and bind it to USB1. Tested-by: Hauke Mehrtens Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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..f7f61cbcd15a 100644 --- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts +++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts @@ -49,6 +49,20 @@ /delete-node/ reg_vcc_wifi; + /* + * Ths pin of this regulator is the same with the Wi-Fi extra + * regulator on the original Zero. However it's used for USB + * Ethernet rather than the Wi-Fi now. + */ + reg_vcc_usb_eth: reg-vcc-usb-ethernet { + compatible = "regulator-fixed"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-usb-ethernet"; + enable-active-high; + gpio = <&pio 0 20 GPIO_ACTIVE_HIGH>; + }; + aliases { ethernet1 = &rtl8189etv; }; @@ -71,3 +85,7 @@ reg = <1>; }; }; + +&usbphy { + usb1_vbus-supply = <®_vcc_usb_eth>; +};