From patchwork Fri Sep 30 09:17:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Kim X-Patchwork-Id: 9357845 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 EEA1C60757 for ; Fri, 30 Sep 2016 09:19:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBE4829F3B for ; Fri, 30 Sep 2016 09:19:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D061929F3E; Fri, 30 Sep 2016 09:19:58 +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, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2E0D529F3B for ; Fri, 30 Sep 2016 09:19:58 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bptyy-0005eC-7h; Fri, 30 Sep 2016 09:19:52 +0000 Received: from mail-smail-vm4.daum.net ([175.126.189.197] helo=mail-smail-vm4.hanmail.net) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bptyv-0005XL-QI; Fri, 30 Sep 2016 09:19:51 +0000 Received: from mail-smtp-vm29.hanmail.net ([10.16.70.131]) by mail-smail-vm4.hanmail.net (8.13.8/8.9.1) with ESMTP id u8U9HrD5005192; Fri, 30 Sep 2016 18:17:53 +0900 Received: from mail-smtp-vm29 (localhost.localdomain [127.0.0.1]) by mail-smtp-vm29.hanmail.net (8.13.8/8.9.1) with ESMTP id u8U9HnM9018770; Fri, 30 Sep 2016 18:17:50 +0900 X-HM-UT: PO5rMHMNchGKORqWqpptcyOcG38sZz5eJD0lZFluEF4= Received: from [115.90.78.142] (HELO localhost.localdomain) (115.90.78.142) by (8.12.9/8.9.1) with ESMTPA; Fri, 30 Sep 2016 18:17:49 +0900 Authentication-Results: mail-smtp-vm29; auth=pass (plain) smtp.auth=brian3321 X-Originating-IP: 115.90.78.142 From: Brian Kim To: linux-usb@vger.kernel.org, linux-amlogic@lists.infradead.org, khilman@baylibre.com, carlo@caione.org Subject: [PATCH] ARM64: dts: meson-gxbb-odroidc2: Enable USB Nodes Date: Fri, 30 Sep 2016 18:17:39 +0900 Message-Id: <1475227059-17462-1-git-send-email-brian.kim@hardkernel.com> X-Mailer: git-send-email 2.7.4 X-HM-FIGURE: gBaE8LGf+iOHP9tKkVZvxeF81WW2DDyU X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160930_021950_222398_7E384440 X-CRM114-Status: UNSURE ( 4.75 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, johnyoun@synopsys.com, catalin.marinas@arm.com, will.deacon@arm.com, kishon@ti.com, robh+dt@kernel.org, moon.linux@hardkernel.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable both gxbb USB controller and add a 5V regulator for the OTG port VBUS Signed-off-by: Brian Kim --- .../arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts index 8d89edc..997c671 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts @@ -64,6 +64,18 @@ reg = <0x0 0x0 0x0 0x80000000>; }; + usb_pwr: regulator-usb-pwrs { + compatible = "regulator-fixed"; + + regulator-name = "USB_PWR"; + + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + + gpio = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + leds { compatible = "gpio-leds"; blue { @@ -149,6 +161,23 @@ pinctrl-names = "default"; }; +&usb0_phy { + status = "okay"; + phy-supply = <&usb_pwr>; +}; + +&usb1_phy { + status = "okay"; +}; + +&usb0 { + status = "okay"; +}; + +&usb1 { + status = "okay"; +}; + /* SD */ &sd_emmc_b { status = "okay";