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: 753596 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3w8nh903bHz9s78 for ; Sat, 22 Apr 2017 06:41:12 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="X8n1p8au"; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id BCDACB80068; Fri, 21 Apr 2017 22:41:06 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Fri, 21 Apr 2017 22:41:06 +0200 (CEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 3B32FB8001E for ; Fri, 21 Apr 2017 22:41:05 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .linaro. - helo: .mail-lf0-f53.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 21 Apr 2017 22:41:02 +0200 (CEST) Received: by mail-lf0-f53.google.com with SMTP id 75so50365446lfs.2 for ; Fri, 21 Apr 2017 13:41:02 -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=VgP/s+Q6uY0Vap1g2dHm4jWqnm34cyx/LLnLztwxOz+3ytajZg7ueUdZLSJpH9Mwxz NpMltHLQVHvwUK+qp27R969rk80Ltes2CDxq7FsCouk/whmgLZt75JebyuzdRVxJwJ1s l4bJmP4vl8EeomKOQtduMTWkyNR6tYM5n7HL7Ere6MDRsjt0RbnxrZnqW64DRBZAanlP 2FAtZbXv6ft60TWqwxb5N8axsefIU7B8btWfGKu2+biv96S19zgyU80uNbiwtHVvOOEj M6lyh3jirqNfPi7HyLpSbeh4vZ8RzHlV5CqF/MPf+tBNeqvkdfW97BopImPVU71j60P4 i8bg== X-Gm-Message-State: AN3rC/5Tx6eC/kj1bNc7w/Yx8EQ56siafKhdnX3Cx7bGVQAuPgsPlluz IYKvXIOC6nww5k21 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 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 Subject: [OpenWrt-Devel] [PATCH 1/5 v3] usb: host: add DT bindings for faraday fotg2 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: openwrt-devel@openwrt.org, devicetree@vger.kernel.org, Paulius Zaleckas , Janos Laube , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" 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 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; +};