From patchwork Tue Oct 4 07:06:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Kim X-Patchwork-Id: 9361253 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 65FFA60752 for ; Tue, 4 Oct 2016 07:08:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5495A28ADE for ; Tue, 4 Oct 2016 07:08:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48FFC28AE8; Tue, 4 Oct 2016 07:08:54 +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 8102828ADE for ; Tue, 4 Oct 2016 07:08:53 +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 1brJqG-0006Lq-Pq; Tue, 04 Oct 2016 07:08:44 +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 1brJqE-0006It-CH; Tue, 04 Oct 2016 07:08:43 +0000 Received: from mail-smtp-vm5.hanmail.net ([10.27.12.85]) by mail-smail-vm4.hanmail.net (8.13.8/8.9.1) with ESMTP id u9476saX013313; Tue, 4 Oct 2016 16:06:54 +0900 Received: from mail-smtp-vm5 (localhost.localdomain [127.0.0.1]) by mail-smtp-vm5.hanmail.net (8.13.8/8.9.1) with ESMTP id u9476otI001688; Tue, 4 Oct 2016 16:06:51 +0900 X-HM-UT: PO5rMHMNchGKORqWqpptc6hoje2MwIgXiHjDRHPqtdM= Received: from [115.90.78.142] (HELO localhost.localdomain) (115.90.78.142) by (8.12.9/8.9.1) with ESMTPA; Tue, 04 Oct 2016 16:06:50 +0900 Authentication-Results: mail-smtp-vm5; auth=pass (plain) smtp.auth=brian3321 X-Originating-IP: 115.90.78.142 From: Brian Kim To: khilman@baylibre.com Subject: [PATCH v2] ARM64: dts: meson-gxbb-odroidc2: Enable USB Nodes Date: Tue, 4 Oct 2016 16:06:43 +0900 Message-Id: <1475564803-9616-1-git-send-email-brian.kim@hardkernel.com> X-Mailer: git-send-email 2.7.4 X-HM-FIGURE: dewArhVnZm8UFDrJiYDwruF81WW2DDyU X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161004_000842_796379_AB39A4F8 X-CRM114-Status: UNSURE ( 6.01 ) 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, linux-usb@vger.kernel.org, will.deacon@arm.com, kishon@ti.com, robh+dt@kernel.org, carlo@caione.org, linux-amlogic@lists.infradead.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 --- This patch was written on Kevin Hilman's repository[1] and branch[2]: [1] https://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic.git [2] v4.8/integ Chnages since v1: - rename the usb_pwr node to usb_otg_pwr - rename the regulator-name "USB_PWR" to "USB_OTG_PWR" .../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..bfacaf7 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_otg_pwr: regulator-usb-pwrs { + compatible = "regulator-fixed"; + + regulator-name = "USB_OTG_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_otg_pwr>; +}; + +&usb1_phy { + status = "okay"; +}; + +&usb0 { + status = "okay"; +}; + +&usb1 { + status = "okay"; +}; + /* SD */ &sd_emmc_b { status = "okay";