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: 9693719 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 137FB60328 for ; Fri, 21 Apr 2017 20:42:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EDC0428521 for ; Fri, 21 Apr 2017 20:42:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DEE392866F; Fri, 21 Apr 2017 20:42:08 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 561BB28521 for ; Fri, 21 Apr 2017 20:42:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=A3VXFD8JCPLoL1lGG8WNjM1cqQkD5M5hzEXfgOqRMd8=; b=q3A pgoQc4LZIVxoV37BA0UYhknZKUGCnY4Ebj8JdVP9kDx9EPVD6S3fyhy52ZaXcaLruSfJFDIQnyTwO 2hUgDJ7bspXJ7IIDhpoYUw96P+d2mITwnEroHS/FQoJ3ZBVvDiLIFt4WUMyvYa+4DSu61hDWxQP9j PJ7LJg79XcoUcWv2h8pjg8vMX/MEHm5zVXwiibxmbntrvDHfPCY3GSjrTB0yUAB2cZTK7Dy1yHGJQ ZxQrGG2eBxpu0lAnQejoNPtaFpeVnpoJj5cXkKoNDEuADHc0oRjyfzOSsT+v9/sqzxu/y8HCxOh0v N2ZTPfrCpejb1CPkvdUz5pYCUkJoo+g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d1fNX-0002XX-7D; Fri, 21 Apr 2017 20:42:07 +0000 Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d1fMq-0002Fu-U6 for linux-arm-kernel@lists.infradead.org; Fri, 21 Apr 2017 20:41:27 +0000 Received: by mail-lf0-x22a.google.com with SMTP id 75so50365447lfs.2 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=ShA5yee05NRc4OWlCup14esxjN1vX437tcbnqBcr7JGU94QZm9eYMYlt/EFfBcH4pr 7oNwkkp2ZSqjIcfn8fYNo/Gm1k0oTIuLBUKhVomutgDthJtaT336iSu0/Pdpg59K4Vam EbsJc2rl17KW0u6TpyZUCDLJwqgMHOFbzXDvAfKjUYqwtofMS6NppiNj+QgwZLJw5ucU EnFUfkteqDoWnHLlpUTZ3rFSwUqjUXV65y/Cv6rwTIawFIu82As1n43UEUZRi3m3pvnD gMKp4RpY/kNemah/wMjX3Cv66SHn3ibeCXu+xgdCijzgDwRK/OAAT+vyLLv1SZgOsmhE BK7g== X-Gm-Message-State: AN3rC/6PZwYrP5MEN1Kp0/Eidj/fsbCLEUFRTrj/V5ytLJBGnR7cLowL CBVCZ8AqM4FvO8C/ 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170421_134125_235771_A50D7F25 X-CRM114-Status: GOOD ( 14.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: openwrt-devel@openwrt.org, devicetree@vger.kernel.org, Paulius Zaleckas , Linus Walleij , Janos Laube , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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; +};