From patchwork Sun Sep 11 13:41:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9325387 X-Patchwork-Delegate: sboyd@codeaurora.org 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 9EEDE6089F for ; Sun, 11 Sep 2016 13:41:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9419528305 for ; Sun, 11 Sep 2016 13:41:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8838728A7F; Sun, 11 Sep 2016 13:41:56 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 365E428407 for ; Sun, 11 Sep 2016 13:41:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932213AbcIKNls (ORCPT ); Sun, 11 Sep 2016 09:41:48 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:36490 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756165AbcIKNlq (ORCPT ); Sun, 11 Sep 2016 09:41:46 -0400 Received: by mail-wm0-f67.google.com with SMTP id d7so2131350wmi.3; Sun, 11 Sep 2016 06:41:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sv8N8o47tAC8RfbYcYn87UOUsVwDjrOvLE8e02vsuiQ=; b=MxjDy+SkHR0/qZjBtakR132PmS7O5xyO79M4hj1j8+Jd9asyV17HofYTJvQMAGZqMP MsCN+UkjmsMMIpexnsfAmRh8sHFTASICSYnlI0zfHyI4dQX8UJHL4+i4pSMYQ27/2EV+ NBpYkPLIcwAU+LGcF4HDSio8RpQeQWt0m3unxQHTys54DlrmHmHjzBCpHnVAQJa3Fou2 OyaivUkMQL1fEdkw8a7JyRuaBoWFTbSJnIWrwj553lObZwmBxxZPjNF1vnlCoWxquscb 4NASEToXkM47UujMIU2LtIkcElJ2mL8A5D6Kqw+j/DdAi+Hc1kNqEXJHj9QJOs7zgF8Y g7Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sv8N8o47tAC8RfbYcYn87UOUsVwDjrOvLE8e02vsuiQ=; b=I4enC6mugTGrIox33yljGcOH9WtAQHsv8KhMlLdYIRzLLhUDhSJYHJMe7nu7L96/94 8HNsujdADZIW1SLL5uPCRX7zz111F1g2nUs4OtmUZF3GzA3kF0FDz+n038opZlGeeGfG wX8mP7HbaKcjgmPyvIzkOK70j4dXHLKvP+8Llx7r7BmmMpLNtyiccO2uftAKsgYV4/oC AgophE9kerkC8lE5um3RiYRD/hC99bzNQ40n/8XceKQLf9ueK6CyGcMngRl5S3DvTDTW H9lLwnGHccM4739HwZ1bss7cIAclt4zEEGi+kL0ckGwlTIWVJMcymTLKd0TsLu1dwxJ+ k/9w== X-Gm-Message-State: AE9vXwM9QScOgbIHYsL0jbAWoC8rE5Ig/ZwgykJmGjMsovYLmprZHTtcPH0e5yEAE4Q22Q== X-Received: by 10.28.137.212 with SMTP id l203mr6737312wmd.26.1473601304255; Sun, 11 Sep 2016 06:41:44 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3CB9604519CE50E19B62432.dip0.t-ipconnect.de. [2003:dc:d3cb:9604:519c:e50e:19b6:2432]) by smtp.googlemail.com with ESMTPSA id bc5sm13011223wjb.37.2016.09.11.06.41.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Sep 2016 06:41:43 -0700 (PDT) From: Martin Blumenstingl To: linux-clk@vger.kernel.org, linux-usb@vger.kernel.org, linux-amlogic@lists.infradead.org, jbrunet@baylibre.com, johnyoun@synopsys.com, kishon@ti.com, khilman@baylibre.com, carlo@caione.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, sboyd@codeaurora.org, mturquette@baylibre.com, will.deacon@arm.com, catalin.marinas@arm.com, gregkh@linuxfoundation.org, mark.rutland@arm.com, robh+dt@kernel.org, Martin Blumenstingl Subject: [PATCH v2 6/6] ARM64: meson-gxbb-vega-s95: Enable USB Nodes Date: Sun, 11 Sep 2016 15:41:11 +0200 Message-Id: <20160911134111.31141-7-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160911134111.31141-1-martin.blumenstingl@googlemail.com> References: <20160904213152.25837-1-martin.blumenstingl@googlemail.com> <20160911134111.31141-1-martin.blumenstingl@googlemail.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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: Martin Blumenstingl Signed-off-by: Jerome Brunet --- .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi index 463185d..bad32e6 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi @@ -77,6 +77,19 @@ compatible = "mmc-pwrseq-emmc"; reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; }; + + usb_vbus: regulator-usb0-vbus { + compatible = "regulator-fixed"; + + regulator-name = "USB0_VBUS"; + + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + + gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + }; &uart_AO { @@ -133,3 +146,20 @@ vmmc-supply = <&vcc_3v3>; vmmcq-sumpply = <&vcc_1v8>; }; + +&usb0_phy { + status = "okay"; + phy-supply = <&usb_vbus>; +}; + +&usb1_phy { + status = "okay"; +}; + +&usb0 { + status = "okay"; +}; + +&usb1 { + status = "okay"; +};