From patchwork Thu Oct 11 19:35:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 10637277 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CE49E933 for ; Thu, 11 Oct 2018 19:35:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBB6A28F3A for ; Thu, 11 Oct 2018 19:35:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF60D2B8C5; Thu, 11 Oct 2018 19:35:32 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F5AA28F3A for ; Thu, 11 Oct 2018 19:35:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726955AbeJLDEK (ORCPT ); Thu, 11 Oct 2018 23:04:10 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:46197 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726168AbeJLDEJ (ORCPT ); Thu, 11 Oct 2018 23:04:09 -0400 Received: by mail-lj1-f193.google.com with SMTP id x3-v6so9274344lji.13 for ; Thu, 11 Oct 2018 12:35:28 -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=AyqHIajTBuMyncXtqktwEbak9chIclOfuoiIfBckGPQ=; b=QlH+IenF/f0E94V35taDE2rqmNOu+bp2lUG02zVCCJGwmL+DWAzsHjJYnRIKS5SmSm 8wou2QcD3xBeuuX3D2xwr+exkCp1Dnnsk0pFgE9MUQoA6SDbLC3osbA3CIShAsxq2TEo W0/sOWVj285YU11C1NYl5Hq1TPgmUTgexVvEI= 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=AyqHIajTBuMyncXtqktwEbak9chIclOfuoiIfBckGPQ=; b=TPONfHlrp3lMjWn3leB3Jr8lKtdATY6KRNyDl3VizZgVOoDc/UfosCtE89Qnh8BTTc m07J5kvedhtr0J/TAfFI/FVKkX89tOpyRqn8TF6IVJEuy+foUaRnfOLpZi93dBnGxzsz rv8CQqpucJyx1Q3m3U5WEM4bCKQfiWQbwDk+NVsK6XTO7LtOZlZiYCey/BDijsq4KkUM Ehf0xBt+8Hn9YZvDaYBSNqqmMeprFbkCvoEYomVi3tUx68XScwsKlFtVwaPtR/cZbNsG nxci+FD+6Cp1I48fwq8o4km+aAsmfjO5HJHIyLfOl6y3VBqB1sqr6Swk35OHUEfV6s3h h9kg== X-Gm-Message-State: ABuFfohHjzdeDjnW+2rh1U0so5RG2ANIWJC+a0J4FAUTyfTXUEeQxrtL 1XamPd8puLvSgzoPhm8TTTl4/A== X-Google-Smtp-Source: ACcGV61S00/1ioQ9lE8SfB3fsYtjoVL09mnQmKd5C01WyqmcdqOYnDKXM3mVTSQO10jWYU1Z9S7IBw== X-Received: by 2002:a2e:9d7:: with SMTP id 206-v6mr2230267ljj.127.1539286527472; Thu, 11 Oct 2018 12:35:27 -0700 (PDT) Received: from localhost.bredbandsbolaget (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id d199-v6sm2077874lfd.20.2018.10.11.12.35.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Oct 2018 12:35:25 -0700 (PDT) From: Linus Walleij To: Hans Ulli Kroll , Florian Fainelli , linux-usb@vger.kernel.org, Greg Kroah-Hartman Cc: devicetree@vger.kernel.org, Linus Walleij Subject: [PATCH v2] usb: host: add DT bindings for faraday fotg2 Date: Thu, 11 Oct 2018 21:35:20 +0200 Message-Id: <20181011193520.3844-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.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 Acked-by: Rob Herring Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Changed "OTH" to "OTG" - Collected Rob's ACK. - I don't see any problem with these bindings, but IIRC Hans had some reservations for the OTG mode, maybe we can strip some properties like the mini-usb thing and use as a starter so we can add host mode at least? --- .../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..06a2286e2054 --- /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 + OTG 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; +};