From patchwork Sat Nov 26 14:56:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9448357 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 881586071B for ; Sat, 26 Nov 2016 14:58:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77AFC2624C for ; Sat, 26 Nov 2016 14:58:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6C52C26C2F; Sat, 26 Nov 2016 14:58:24 +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 062C12624C for ; Sat, 26 Nov 2016 14:58:24 +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 1cAeQk-0000uL-6e; Sat, 26 Nov 2016 14:58:18 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cAePt-0000fT-Tx; Sat, 26 Nov 2016 14:57:28 +0000 Received: by mail-wm0-x241.google.com with SMTP id u144so11876724wmu.0; Sat, 26 Nov 2016 06:57:05 -0800 (PST) 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=cyWlGM+d99FH/IU/4wv2xT7C0JDWm+5bgzcbbY6Bx2E=; b=Iai7XvZGJloeXxs8GMgXANA9EgRYLjDSfEq4vGo6WxmW6qjdOTg7VyFTwZgRpQSr+O Nqa/TyugtbJoMDJoYJPz2C1cyW6K71KIXd8teHTO77dYzdtmaM5lM14uhaCDxrkzent0 M3jI6+m3ayeBa3V6IT1i9zG+BSJZjed6UChKkAWFe8QDFi+L/t4mmRpDlrW5lzxzmIZ0 zLi+JrtLQSQskriDPD6b0RlL4cFWOxLvkHkaG4anYRcaXbr/YWBGfwx0o7Yt41e6r2rx b9Is4i3NkCX+mgZgidLAcTKv9MD5dxtMVvmlgkFonTDApJwRSDVJqYraadWLIU7gJuRL 8xEg== 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=cyWlGM+d99FH/IU/4wv2xT7C0JDWm+5bgzcbbY6Bx2E=; b=Qfhl76LfXMchnk6New/siGE2QYQYyZSgxVw4tHxGDPHuxNVV4b6CCxwCCyJ/h8GqF4 mKf2QvSQNeC4ni9U3miLSLI/+gWb+4HCtdETYqf0lJyj+hhFt5T+uwy/rMTyIhskTT8J m2jJjdUDiip3q4ikoxy7cwhvgZiQFe1Q6bL63RtLiR2OPwwKOqvSrxd+77Cskz0TaLJ2 puYO9O+O02zwTTqVKS3VDWMmBi8aGu0sFVGArCMs+aW8909YAN3LqHaBkb2tiE10gQEY Z07uYpLo2/WXtxGb0gH2dGsFXIWtbgWQRCF+LiCF1W2DQHg/TrRiwktZHGFbrf9ceRJm G56A== X-Gm-Message-State: AKaTC02MFt2DgLmkd7+p3wqQUEtAnQqoQmoUoF5jfzPBAx/ZPefTjBlhGCsI/lebiNi2Zg== X-Received: by 10.28.196.207 with SMTP id u198mr11770148wmf.102.1480172224060; Sat, 26 Nov 2016 06:57:04 -0800 (PST) Received: from blackbox.darklights.net (p5DE384D0.dip0.t-ipconnect.de. [93.227.132.208]) by smtp.googlemail.com with ESMTPSA id yj10sm52654689wjb.3.2016.11.26.06.57.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Nov 2016 06:57:03 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, kishon@ti.com, khilman@baylibre.com, carlo@caione.org, mark.rutland@arm.com, robh+dt@kernel.org Subject: [PATCH 5/5] ARM64: dts: meson-gx-p23x-q20x: enable USB on P23x and Q20x boards Date: Sat, 26 Nov 2016 15:56:35 +0100 Message-Id: <20161126145635.24488-6-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161126145635.24488-1-martin.blumenstingl@googlemail.com> References: <20161126145635.24488-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161126_065726_380387_9BAA38B6 X-CRM114-Status: UNSURE ( 8.86 ) 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: Martin Blumenstingl , catalin.marinas@arm.com, will.deacon@arm.com, narmstrong@baylibre.com 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 All four devices are only using the dwc3 controller. The actual ports are provided by dwc3's internal USB hub. The implementation on P230, P231 and Q201 seems identical: the USB VBUS supply seems to be hard-wired, while on Q200 the USB VBUS is provided by GPIOAO_5. Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi | 12 ++++++++++++ arch/arm64/boot/dts/amlogic/meson-gxm-s912-q200.dts | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi index 7a078be..360c91d 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi @@ -188,3 +188,15 @@ ðmac { status = "okay"; }; + +&usb2_phys { + status = "okay"; +}; + +&usb3_phy0 { + status = "okay"; +}; + +&usb0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-s912-q200.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-s912-q200.dts index 5dbc660..6c28e87 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxm-s912-q200.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-s912-q200.dts @@ -49,6 +49,19 @@ / { compatible = "amlogic,q200", "amlogic,s912", "amlogic,meson-gxm"; model = "Amlogic Meson GXM (S912) Q200 Development Board"; + + usb_pwr: regulator-usb-pwrs { + compatible = "regulator-fixed"; + + regulator-name = "USB_PWR"; + + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + + /* signal name in schematic: USB_PWR_EN */ + gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; }; /* Q200 has exclusive choice between internal or external PHY */ @@ -75,3 +88,7 @@ max-speed = <1000>; }; }; + +&usb3_phy0 { + phy-supply = <&usb_pwr>; +};