From patchwork Sun Sep 4 21:31:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9312863 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 633A3600CA for ; Sun, 4 Sep 2016 21:35:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 580E128740 for ; Sun, 4 Sep 2016 21:35:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C8CE28755; Sun, 4 Sep 2016 21:35:30 +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.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID 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 0AC3228740 for ; Sun, 4 Sep 2016 21:35:30 +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 1bgf4V-00044D-WD; Sun, 04 Sep 2016 21:35:24 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bgf22-0001hv-Ez; Sun, 04 Sep 2016 21:32:52 +0000 Received: by mail-wm0-x244.google.com with SMTP id w207so10624774wmw.0; Sun, 04 Sep 2016 14:32:32 -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=FgGte+PkjI67lIexC/QGdr1twlRL/jUFc2SYs3vh9fT6BUEf6htMkR4oe+AJzXdobu eROy+pPt1TWo61s9TMZro0Ca+KrUcKPv+9+YgeMkwE9QsvAsl/hbZQrRAaZlKz9T/2Jx KCmqsPpUFcQfzk8yDIxQ8Cw6PTSijPQ9dFxR9n4r8C4Ritazcf9hODjAAbQQ6q6cwj4D CPTBlFpjJ5CgxEuH4PHT/j3SCOTodmQ/6X+jqa8TawbDCJZEPuKmIDNbfYBjyam+3mmB +3uEfKoVMbvk2nwET5/MQnIa1PWXDmDqdjVwM0oWJWZVi4VnFbXIeWH6Sx+zD0Pznkl9 6Drw== 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=EYkbK2yMYCsoBjeXskpi6At2AUpjlXltGqJ4J2s4d6mM6N1Xa4mLlHUVQftEnE+P9R zFF8idcagp/tLeXY3hlhQPdGDQRE9zznRmezRGPxkKSoQNZK/KuMSnVzBTT9ZgR9vGCg EhrdooNPqNRxxYDpPyOKh7RfmlEQb4xvuwyZTc2kPeKVzqu9CMEhn94hA0x1mortwVau xWMvM4TcFzWiN4spz8+hEKGfaZzOZjgnSQwnLsM6renGsEDjqUNDxaItjMzR3QtAcSDS 8/2yw9jV5LM+fZnYLkQ55kpsJvNF+Vmh70jVOK+yzBiwqUkskRDprOGVRZgHBtaYxoBC XujA== X-Gm-Message-State: AE9vXwOhj9S7nPoWX6CbEjGXSOKDTSuJhPRREebrPrSNS0bpwHkY5iTBuHGHyN02ZCYPVg== X-Received: by 10.194.108.194 with SMTP id hm2mr10556111wjb.132.1473024751443; Sun, 04 Sep 2016 14:32:31 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3CA8104A82AA8E503619161.dip0.t-ipconnect.de. [2003:dc:d3ca:8104:a82a:a8e5:361:9161]) by smtp.googlemail.com with ESMTPSA id e12sm16576059wmg.17.2016.09.04.14.32.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Sep 2016 14:32:30 -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 Subject: [PATCH 7/7] ARM64: meson-gxbb-vega-s95: Enable USB Nodes Date: Sun, 4 Sep 2016 23:31:52 +0200 Message-Id: <20160904213152.25837-8-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160904213152.25837-1-martin.blumenstingl@googlemail.com> References: <20160904213152.25837-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160904_143250_802597_E02B1CA6 X-CRM114-Status: UNSURE ( 7.61 ) 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, gregkh@linuxfoundation.org, Martin Blumenstingl , sboyd@codeaurora.org, mturquette@baylibre.com, will.deacon@arm.com, robh+dt@kernel.org, catalin.marinas@arm.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: 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"; +};