From patchwork Mon Nov 7 20:39:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Haslam X-Patchwork-Id: 9416055 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 3D61B6022E for ; Mon, 7 Nov 2016 20:44:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DB6828D98 for ; Mon, 7 Nov 2016 20:44:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2119F28E20; Mon, 7 Nov 2016 20:44:58 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A9CB428D98 for ; Mon, 7 Nov 2016 20:44:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c3qlI-0002qg-L3; Mon, 07 Nov 2016 20:43:24 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c3qij-0001JU-CU for linux-arm-kernel@lists.infradead.org; Mon, 07 Nov 2016 20:40:48 +0000 Received: by mail-wm0-x230.google.com with SMTP id a197so206635542wmd.0 for ; Mon, 07 Nov 2016 12:40:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IMdvRc/TWrfyjujrK+W5TXrwQg71/smaTkFra/XcR3M=; b=L/RBcd/a8V8UptWh/Xdabh5tKjb86lA9IG/zufeboB8cK5fvHOn+lWeCSQKkqxDp1Z TGnP/QF5Y5WD7ClH1/PbZ6PJeYvo7kn7HnjrgTyiDr4MlkHXcaB/iaUTPg5fum9VtPQY asDeEaS3RFJ1AHcnY1Ze8cRGwnW3YnJQiB6wecot/CqsuMx3s8yLe7+Tlv55ky9EqtPd TBzLdmTJVix9vowrv7ebxlzx3rxluIQntcsyyysgIE2Tb8Mo5azwXZcmgOYQph/WD/MQ 87S+12Xbi2pR8zYlrx5L5onKQkYlYehe2WVWjtDju44bYT3pUaE57DCVqirVLB69S0Ch dK4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IMdvRc/TWrfyjujrK+W5TXrwQg71/smaTkFra/XcR3M=; b=j4XoilCGi7hKq4PCl6drM6OwDvoE7NiaKUuKeUtUgXfcdLdv6hVER2BvuOR1bW0ipN UA/yghOUCNHK+5X1SheVpyHgk0EMqNJCIvLf+2lfXfCfHkSos1kh89PStEuP6kB/DAwh sC8RW7WEYUjfqvBSGcEN5pW/0UcxVTUO4mSWP6TbB6LAhV5GkYz/Elmg09MAGfriVtDt +kZv/+p3nBkv05/V1mJWt+TSNq+ahUPGtQcfilinpCOwUzx/WvvbPxDzvqmkX1MtSety EeCFEQyC5HJgkqDKSQ+/+d1hNimZtFDRTfLgQPEOdInk1QapuuSLKH88+FCloGRBNwjn K6vQ== X-Gm-Message-State: ABUngvczBpeEkBmbIkbhuQXl3x1ADIKBsjAi/6jPM9g3whCGrD4QgcP/DMWq/NpuCSFTLcbJ X-Received: by 10.28.130.66 with SMTP id e63mr4371850wmd.39.1478551224731; Mon, 07 Nov 2016 12:40:24 -0800 (PST) Received: from localhost.localdomain (ANice-652-1-139-209.w83-201.abo.wanadoo.fr. [83.201.210.209]) by smtp.gmail.com with ESMTPSA id r7sm19626644wjp.43.2016.11.07.12.40.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Nov 2016 12:40:24 -0800 (PST) From: Axel Haslam To: stern@rowland.harvard.edu, gregkh@linuxfoundation.org, nsekhar@ti.com, khilman@kernel.org, david@lechnology.com, robh+dt@kernel.org Subject: [PATCH v3 08/10] USB: ohci: da8xx: Add devicetree bindings Date: Mon, 7 Nov 2016 21:39:46 +0100 Message-Id: <20161107203948.28324-9-ahaslam@baylibre.com> X-Mailer: git-send-email 2.10.1.502.g6598894 In-Reply-To: <20161107203948.28324-1-ahaslam@baylibre.com> References: <20161107203948.28324-1-ahaslam@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161107_124045_654648_999BA7A3 X-CRM114-Status: GOOD ( 12.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Axel Haslam , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, 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 This patch documents the device tree bindings required for the ohci controller found in TI da8xx family of SoC's Cc: devicetree@vger.kernel.org Signed-off-by: Axel Haslam --- .../devicetree/bindings/usb/ohci-da8xx.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ohci-da8xx.txt diff --git a/Documentation/devicetree/bindings/usb/ohci-da8xx.txt b/Documentation/devicetree/bindings/usb/ohci-da8xx.txt new file mode 100644 index 0000000..f18e82c --- /dev/null +++ b/Documentation/devicetree/bindings/usb/ohci-da8xx.txt @@ -0,0 +1,39 @@ +DA8XX USB OHCI controller + +Required properties: + + - compatible: Should be "ti,da830-ohci" + - reg: Should contain one register range i.e. start and length + - interrupts: Description of the interrupt line + - phys: Phandle for the PHY device + - phy-names: Should be "usb-phy" + +Optional properties: + - vbus-supply: Regulator that controls vbus power + +Example: + +reg_usb_ohci: regulator@0 { + compatible = "regulator-fixed"; + gpio = <&gpio 109 0>; + over-current-gpios = <&gpio 36 0>; + regulator-boot-on; + enable-active-high; + regulator-name = "usb_ohci_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; +}; + +usb_phy: usb-phy { + compatible = "ti,da830-usb-phy"; + #phy-cells = <1>; +}; + +ohci: usb@0225000 { + compatible = "ti,da830-ohci"; + reg = <0x225000 0x1000>; + interrupts = <59>; + phys = <&usb_phy 1>; + phy-names = "usb-phy"; + vbus-supply = <®_usb_ohci>; +};