From patchwork Fri Apr 21 20:40:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 97926 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp496684qgf; Fri, 21 Apr 2017 13:41:06 -0700 (PDT) X-Received: by 10.84.178.101 with SMTP id y92mr18089483plb.171.1492807266780; Fri, 21 Apr 2017 13:41:06 -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.06; Fri, 21 Apr 2017 13:41:06 -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 S1040625AbdDUUlF (ORCPT + 4 others); Fri, 21 Apr 2017 16:41:05 -0400 Received: from mail-lf0-f46.google.com ([209.85.215.46]:33538 "EHLO mail-lf0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1036998AbdDUUlD (ORCPT ); Fri, 21 Apr 2017 16:41:03 -0400 Received: by mail-lf0-f46.google.com with SMTP id 88so50383898lfr.0 for ; Fri, 21 Apr 2017 13:41:03 -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; bh=DdPNjnfPn7I7lJkW1yZhi7h0PnW7VRAkM9raRB+3HG0=; b=X8n1p8auZD2TxYJJ3FLmyNCUDR0AWCoeBomqWiaz21/fAFPMKePUx4X7VZ81H52N9d Dc+Ensp6uhRDc2DV5YA2is7NzHyE96NdOdHPxZb1CqJVBdnqVS/kq5DB/NGRJOPbmMZA zsDioDW4F+OqRLKgZgGhcXRWZ2IdXStAXz74c= 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; bh=DdPNjnfPn7I7lJkW1yZhi7h0PnW7VRAkM9raRB+3HG0=; b=hf+mSyPiBq1uHNautUvuN9sFSBxLDnuTT1WuM3o9EfKVHOpZO0k9g3BBmixNHSbdN3 oy6AwbKeQy8oShXlN/+vMPkMxLSFncZglLcIpaEI7LVwXnzYsdgzEAuiJc/mZq1J4YGN 1xa3Iq4odDUf5UpoiGUCqsBuzWoOXydHVmvAb8doXfSpEazzcKWheXemW0VQROGEjpA+ SYDq21wo9x2u3k/2xl52B5v6+1dzNoT1IcD+EAheATX4KMpy6IuLCQncQi+hBIIVoTK1 00t2z3BK1fIUDGv7NxaH4s+/QeD1RKiMZGaoyExQFN/EnhUi0ioG53Rfq+xK3wUaSb8K pt1w== X-Gm-Message-State: AN3rC/7BV9SLcg6QQWDOSj3MsatBKUj1lC18svbzcJuQeB+LfpWOTE4a Azif9b3vwqAAx1iV X-Received: by 10.46.9.82 with SMTP id 79mr5763238ljj.89.1492807262146; Fri, 21 Apr 2017 13:41:02 -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.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Apr 2017 13:41:01 -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, devicetree@vger.kernel.org, Linus Walleij Subject: [PATCH 1/5 v3] usb: host: add DT bindings for faraday fotg2 Date: Fri, 21 Apr 2017 22:40:54 +0200 Message-Id: <20170421204058.6206-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Hans Ulli Kroll This adds device tree bindings for the Faraday FOTG2 dual-mode host controller. Cc: devicetree@vger.kernel.org Signed-off-by: Hans Ulli Kroll Signed-off-by: Linus Walleij --- ChangeLog v1->v3: - Change compatible to "faraday,fotg210" as the name of the hardware block. - Add an elaborate SoC-specific compatible string for the Cortina Systems Gemini so that SoC-specific features can be enabled. - Add cortina,gemini-mini-b to indicate a Gemini PHY with a Mini-B adapter connected. - Indicated that the Gemini version can handle "wakeup-source". - Add optional IP block clock. --- .../devicetree/bindings/usb/faraday,fotg210.txt | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/faraday,fotg210.txt -- 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/Documentation/devicetree/bindings/usb/faraday,fotg210.txt b/Documentation/devicetree/bindings/usb/faraday,fotg210.txt new file mode 100644 index 000000000000..cf06808303e2 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/faraday,fotg210.txt @@ -0,0 +1,35 @@ +Faraday FOTG Host controller + +This OTG-capable USB host controller is found in Cortina Systems +Gemini and other SoC products. + +Required properties: +- compatible: should be one of: + "faraday,fotg210" + "cortina,gemini-usb", "faraday,fotg210" +- reg: should contain one register range i.e. start and length +- interrupts: description of the interrupt line + +Optional properties: +- clocks: should contain the IP block clock +- clock-names: should be "PCLK" for the IP block clock + +Required properties for "cortina,gemini-usb" compatible: +- syscon: a phandle to the system controller to access PHY registers + +Optional properties for "cortina,gemini-usb" compatible: +- cortina,gemini-mini-b: boolean property that indicates that a Mini-B + OTH connector is in use +- wakeup-source: see power/wakeup-source.txt + +Example for Gemini: + +usb@68000000 { + compatible = "cortina,gemini-usb", "faraday,fotg210"; + reg = <0x68000000 0x1000>; + interrupts = <10 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cc 12>; + clock-names = "PCLK"; + syscon = <&syscon>; + wakeup-source; +};