From patchwork Fri Apr 21 20:40:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 97930 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp496793qgf; Fri, 21 Apr 2017 13:41:22 -0700 (PDT) X-Received: by 10.98.166.21 with SMTP id t21mr14046076pfe.120.1492807282269; Fri, 21 Apr 2017 13:41:22 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17si11190563pgn.118.2017.04.21.13.41.22; Fri, 21 Apr 2017 13:41:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162485AbdDUUlU (ORCPT + 4 others); Fri, 21 Apr 2017 16:41:20 -0400 Received: from mail-lf0-f51.google.com ([209.85.215.51]:36540 "EHLO mail-lf0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161246AbdDUUlT (ORCPT ); Fri, 21 Apr 2017 16:41:19 -0400 Received: by mail-lf0-f51.google.com with SMTP id c80so50303804lfh.3 for ; Fri, 21 Apr 2017 13:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=S3VEefJ6Lc8f/eJBDnXhsaTzY+GVe0qIFuZTSzhdtCE=; b=JV50+5JAuhHMDx4f1t90s453BZ9gHHqY3PDcYtQIcKq/j6kJcFnRzYAC+Liap24iRU tZI3R8CFL4FWueT+aB9CtgmC889jfKkg+D3SgTCPwYfVSMWULBlLALESwOIYF+/gaqf3 6kdDGVXrKR6PXozJb9P+PvvbG1iwJMUeFGIEE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=S3VEefJ6Lc8f/eJBDnXhsaTzY+GVe0qIFuZTSzhdtCE=; b=q2A7KfM72p1lNDySg8fyJAvYP7Ra4c0UKhIzsgEgjnYUYLlOzwY9PRK0TGgWWIuZ+W r764xP5dmSDHA46KDPfi6q8DSgFYhYLIaV7YX2m6zSMDWSenArsmSl3+zde7gJdv0COA uyuvCsSk6Nm4sEY6QYzw9InkIMgzJJswaN6/29i3AgdnDtqMlkAYSl856ffk+YZRS1uc GbeQ0ZHPduOJ/YmWZyTafjXGzc1J56GwxokehB8DWET+fZbTcDVcobgot7W48RPiRTS1 xj6bc1R+6unh9SH6wbbF7qZQPptmbCSQn5/MOLovUvv3d6l3T9a21OHAw/BgJRZCMXMx dsqQ== X-Gm-Message-State: AN3rC/6I/r7COAd0xl+PR2chxEhocsNHpG85qKBsJ0bXZhiyzAxNrpB8 RhnW1PxCF6qxZwqo X-Received: by 10.25.22.99 with SMTP id m96mr5345724lfi.176.1492807277585; Fri, 21 Apr 2017 13:41:17 -0700 (PDT) Received: from fabina.bredbandsbolaget.se (c-8a7f71d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.127.138]) by smtp.gmail.com with ESMTPSA id m191sm1770244lfe.43.2017.04.21.13.41.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Apr 2017 13:41:16 -0700 (PDT) From: Linus Walleij To: Hans Ulli Kroll , Florian Fainelli , linux-usb@vger.kernel.org, Greg Kroah-Hartman Cc: Janos Laube , Paulius Zaleckas , openwrt-devel@openwrt.org, linux-arm-kernel@lists.infradead.org, Linus Walleij Subject: [PATCH 5/5 v3] ARM: dts: Add the FOTG210 USB host to Gemini Date: Fri, 21 Apr 2017 22:40:58 +0200 Message-Id: <20170421204058.6206-5-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170421204058.6206-1-linus.walleij@linaro.org> References: <20170421204058.6206-1-linus.walleij@linaro.org> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This adds the FOTG210 USB host controller to the Gemini device trees. In the main SoC DTSI it is flagged as disabled and then it is selectively enabled on the devices that utilize it (these per-platform enablements are done on the out-of-tree OpenWrt patch set). It is not enabled on the Itian SquareOne NAS/router since this instead has a VIA host controller soldered on the PCI port, and can gate off these USB host controllers. Signed-off-by: Linus Walleij --- USB maintainers: I will merge this through the ARM SoC tree, the patch is only included in the series for context. --- arch/arm/boot/dts/gemini-nas4220b.dts | 8 ++++++++ arch/arm/boot/dts/gemini-rut1xx.dts | 8 ++++++++ arch/arm/boot/dts/gemini-wbd111.dts | 8 ++++++++ arch/arm/boot/dts/gemini-wbd222.dts | 8 ++++++++ arch/arm/boot/dts/gemini.dtsi | 22 ++++++++++++++++++++++ 5 files changed, 54 insertions(+) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/gemini-nas4220b.dts b/arch/arm/boot/dts/gemini-nas4220b.dts index 7668ba52158e..55059a72aef2 100644 --- a/arch/arm/boot/dts/gemini-nas4220b.dts +++ b/arch/arm/boot/dts/gemini-nas4220b.dts @@ -98,5 +98,13 @@ read-only; }; }; + + usb@68000000 { + status = "okay"; + }; + + usb@69000000 { + status = "okay"; + }; }; }; diff --git a/arch/arm/boot/dts/gemini-rut1xx.dts b/arch/arm/boot/dts/gemini-rut1xx.dts index 7b920bfbda32..1c253da9f28c 100644 --- a/arch/arm/boot/dts/gemini-rut1xx.dts +++ b/arch/arm/boot/dts/gemini-rut1xx.dts @@ -61,5 +61,13 @@ reg = <0x30000000 0x00800000>; /* TODO: add flash partitions here */ }; + + usb@68000000 { + status = "okay"; + }; + + usb@69000000 { + status = "okay"; + }; }; }; diff --git a/arch/arm/boot/dts/gemini-wbd111.dts b/arch/arm/boot/dts/gemini-wbd111.dts index 63b756e3bf5a..c6a5abca0935 100644 --- a/arch/arm/boot/dts/gemini-wbd111.dts +++ b/arch/arm/boot/dts/gemini-wbd111.dts @@ -98,5 +98,13 @@ read-only; }; }; + + usb@68000000 { + status = "okay"; + }; + + usb@69000000 { + status = "okay"; + }; }; }; diff --git a/arch/arm/boot/dts/gemini-wbd222.dts b/arch/arm/boot/dts/gemini-wbd222.dts index 9747f5a47807..415380262140 100644 --- a/arch/arm/boot/dts/gemini-wbd222.dts +++ b/arch/arm/boot/dts/gemini-wbd222.dts @@ -98,5 +98,13 @@ read-only; }; }; + + usb@68000000 { + status = "okay"; + }; + + usb@69000000 { + status = "okay"; + }; }; }; diff --git a/arch/arm/boot/dts/gemini.dtsi b/arch/arm/boot/dts/gemini.dtsi index 6fe678a68e31..2f8d0381d5eb 100644 --- a/arch/arm/boot/dts/gemini.dtsi +++ b/arch/arm/boot/dts/gemini.dtsi @@ -183,5 +183,27 @@ #interrupt-cells = <1>; }; }; + + usb@68000000 { + compatible = "cortina,gemini-usb", "faraday,fotg210"; + reg = <0x68000000 0x1000>; + interrupts = <10 IRQ_TYPE_LEVEL_HIGH>; + resets = <&rcon 8>; + clocks = <&gcc GEMINI_CLK_GATE_USB0>; + clock-names = "PCLK"; + syscon = <&syscon>; + status = "disabled"; + }; + + usb@69000000 { + compatible = "cortina,gemini-usb", "faraday,fotg210"; + reg = <0x69000000 0x1000>; + interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; + resets = <&rcon 9>; + clocks = <&gcc GEMINI_CLK_GATE_USB1>; + clock-names = "PCLK"; + syscon = <&syscon>; + status = "disabled"; + }; }; };