From patchwork Sun Sep 4 21:31:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9312839 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 3810660865 for ; Sun, 4 Sep 2016 21:32:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A4FE286C7 for ; Sun, 4 Sep 2016 21:32:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C1C0286C9; Sun, 4 Sep 2016 21:32:43 +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.4 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 9EE5C286C9 for ; Sun, 4 Sep 2016 21:32:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754727AbcIDVce (ORCPT ); Sun, 4 Sep 2016 17:32:34 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:36107 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754021AbcIDVcb (ORCPT ); Sun, 4 Sep 2016 17:32:31 -0400 Received: by mail-wm0-f67.google.com with SMTP id l65so2834879wmf.3; Sun, 04 Sep 2016 14:32:30 -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=NU3no2ZmH/nUqzHvZ5KTwvArEmSfojhhprRuba/vMbY=; b=VK4kjdr6ao5ugwAPtocFNU0izOR29r1GQu5mU2YYVV2hNej9DeV5jCWXQPMM+DcnA/ HSS4wzjGic/fJjlXUSCLDfR8YfY9PFy0he/IKznzCOg4pVxn0ep+2fcngTFbZdNRnsUU 2KJpoP+mCj/TPEWrA9twpLmZJtBjTsG3TVbFWa64JnlZ2cQIa+NtjFDcdpYQW8N+cwcl 5IBW2c6c5bCcVpJUaM/z/ixonIvPq9ulJmDSPvefLEiI9Ur4QpwRp4lu+pSoZEq34ig8 uC9U6vlfZo+KxjvcEESO2VigM1AGatbqeVmK5gCdV3EHgGGfWdqz7vOFgq+w+GIakpJe VQsw== 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=NU3no2ZmH/nUqzHvZ5KTwvArEmSfojhhprRuba/vMbY=; b=WxSA/DTBpgzJP+L6arWmtnHQvousE9SYhMrnmYul4Cak5xoZ5ud+Avx6l4aW8tFiBn JIvH8kBYZZ9NZI2mqlA0FJEEtFdTdZk2wjl5HrGcVIG8PE1ZRljqxEaGq6B86zTywoNL iDi0/D+VurpLtPvCuvTlFnBpMFS755mdZogYfLojLwaUHdC68ojxcmoMYq6pIZGQ/T0A Nriun0NA+2/nJB62t12K4u0aoVPHnd5Pm7ETK6L6K8aotSxyJaXO9fthOz5lTK5ecUOb MFjkCooKlf6GVSvDQUQ+yS7AYc+lekXcL6jm1xxAaPGhuyGJfhnKcJFhcL8h9KjSNbYT GMNA== X-Gm-Message-State: AE9vXwOYhxWxR9xsGUSBtHdt2WrA25TAa6LrQfP5BxAK1Q96P98z63li7hbxDq/Pa9ftlQ== X-Received: by 10.28.47.199 with SMTP id v190mr11840011wmv.28.1473024749704; Sun, 04 Sep 2016 14:32:29 -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.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Sep 2016 14:32:28 -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 6/7] ARM64: meson-gxbb-p20x: Enable USB Nodes Date: Sun, 4 Sep 2016 23:31:51 +0200 Message-Id: <20160904213152.25837-7-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> 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 From: Jerome Brunet Enable both gxbb USB controller and add a 5V regulator for the OTG port VBUS Signed-off-by: Jerome Brunet Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi index ce105fe..4493bce 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi @@ -93,6 +93,18 @@ 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; + }; }; /* This UART is brought out to the DB9 connector */ @@ -149,3 +161,20 @@ vmmc-supply = <&vcc_3v3>; vmmcq-sumpply = <&vddio_boot>; }; + +&usb0_phy { + status = "okay"; + phy-supply = <&usb_vbus>; +}; + +&usb1_phy { + status = "okay"; +}; + +&usb0 { + status = "okay"; +}; + +&usb1 { + status = "okay"; +};