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: 148669 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp2524082lji; Thu, 11 Oct 2018 12:35:30 -0700 (PDT) X-Google-Smtp-Source: ACcGV624Ipw/lDZ+6N1vEHJlBP4VobcRH4lWRF3jowDJdiJMAWQnHOMVy+PiMMGDeCrnehlgc6AA X-Received: by 2002:a17:902:7d94:: with SMTP id a20-v6mr1394932plm.40.1539286530857; Thu, 11 Oct 2018 12:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539286530; cv=none; d=google.com; s=arc-20160816; b=Aw9STomXXANXsAqQTe88BLIwPXJzevhIXp43pg3KujEuYX8SLlWUtRe4T0x8gocG0w hZZj5TnwHBm5pnZEG4XzLKTWTxNI6twbRflxQt3uZLwjau+LYbI92+XzW6XzkT1keBsT CMtzzaLxJSDTs5Qw7s2yvv6cQJbO8iRZSi5zLMIkS9im/u4LY+vshU4E1ZrAVXjL+H2S p3uQBrRD4HknG+2wXQBtcqje4IDXj5YYZ4DpheATI1+JfO6r+i9R6hYB1jTIda7KwuIU IysLnOI3lsqMUdWqwS+IiotAUwl+VhYexTKB34k9CisW/VpIRM7x9ZdMet4Ip2eHeEDK +xDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=AyqHIajTBuMyncXtqktwEbak9chIclOfuoiIfBckGPQ=; b=f2Z63MZSZYZKTNMJ3+Y9VnalZ4fSnMgscetIoSnf5gB/03qzB7IhdjrchMUXw611rc LJVXgJcAwkAkAIda7MeY6O1oKzzMTf9IbX3i/N3pv6OwTW2VwgM/iRVQ7q8RNuSBqgNm D74wk3qx6CKZzS8vTcGEXEphEJKa2UXMB0dTfQ/xT4tjTS/fj9hLiDGlbAqvQGkSXfEV SN0/1/89Nw8uQwEm10ve5vg5eEZ3RvKLSnBZmU0xm7E5pvLK5JXtc8oBTCK/rMl7dB7T bSkuivJ9jEwDcSD9+dMBgqKAt0NKyj+HMBbBDkqPzSGcBu1jPegN/YwnZ87NziDnNiIT diBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QlH+IenF; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4-v6si3690302plz.158.2018.10.11.12.35.30; Thu, 11 Oct 2018 12:35:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QlH+IenF; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726854AbeJLDEJ (ORCPT + 6 others); Thu, 11 Oct 2018 23:04:09 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:40624 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726071AbeJLDEJ (ORCPT ); Thu, 11 Oct 2018 23:04:09 -0400 Received: by mail-lj1-f196.google.com with SMTP id r83-v6so9291966ljr.7 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=OKfbt3Y+Ty6IVOaFklPfihCmIeTAWoio/x1mHYhY8nvlQENHfZvnj58tTG2zcxXxPo sVf3gdtEiUn6gzndaNfVQ6OEqzEcDMbmlpvhkuU2sXgaR6Za/MThx5idns4pP+N7a2do 8ujS2fJAqwWkjydQrcGD6ybamu6MqmGOOkMOtPRXkUpYBbt4UbQSr1OEXmaxky50SDx0 AbNOAd2Z+/2WZcLm9G2iw53SXKlZaKmMvS6yZ7Kkcike5s2Tr7yhGYkQNi0WXC8xygPP XknzLG1sNZuMXw+NsfZQ1fvVRu7NSXl4AOfVlQl9esKbhGMb0L2ucUqANWnliSCc7BF+ bndw== X-Gm-Message-State: ABuFfohr1cQVi9ayriBRBN7ayY8X78fBJ5swb5WB8blKVniTzLog49nv c5qJa19l+euxPcRxqZacJxjhXw== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 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 -- 2.17.1 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; +};