From patchwork Sat Nov 26 14:56:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9448351 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 722B46071B for ; Sat, 26 Nov 2016 14:57:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61E022624C for ; Sat, 26 Nov 2016 14:57:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 565CF26C2F; Sat, 26 Nov 2016 14:57:42 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 091812624C for ; Sat, 26 Nov 2016 14:57:41 +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 1cAeQ3-0000j1-HH; Sat, 26 Nov 2016 14:57:35 +0000 Received: from mail-wj0-x241.google.com ([2a00:1450:400c:c01::241]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cAePo-0000fL-Ks; Sat, 26 Nov 2016 14:57:21 +0000 Received: by mail-wj0-x241.google.com with SMTP id kp2so8739331wjc.0; Sat, 26 Nov 2016 06:56:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=T1ggkBvl3McGb86ptZLL3pBTOeLLRuP2VwYJq96cQo8=; b=BFIp/+uTHtCFFahCo2bWc1lJKQaFidthXg0RZSW9Np2oNhQ1oS/MPYMmq1ZuBia4c7 BmUNihUEoaGYBY3MPUjk26rSeSMTbnmgzhGDQ5saRduOrZC0QUWDVJ+WgCLTYbsV1njk eNOhnDT954PDqUSpRM/FuxQPhXQ55kgfRpNn2UnuB0hC0XLIeNQGW80FA+5xN/hLteOz 40MZQwMc9HpNaaiKPQAi2zk6uskS2vDyBBM+3G1tcuNWXFACdDiqQ+5uujYekD/9ukEn nq1Mgxv2MTHN+XL2yYLcPb0I7h59ghCK/lwh+8Yw8j75CWsBNHI1bgVS5xDnJ4o4Q575 36bg== 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=T1ggkBvl3McGb86ptZLL3pBTOeLLRuP2VwYJq96cQo8=; b=L1tXjdtYgAmPJxdow7rmfojRKBgtv/afZUZOUDIb2tI+rzZUYMrXrOgEXojrE+DzXy 3R/o/fV/7juM9P82vFSkQV8pvK3J7R9FA18P4ZKYLGasEKei3Aqt878ZkVgIBVm5bAYl mctXt/WM4rzx+wieZ+sKuJ4qZUpM2+JctR5lzFESJfxPGRctVs9l1NK4FnyJ5QpdTCjf AqBzfq0MwXx2MNGnpH+ptXqrI5lcT1G7/6eSWcP0Iv1E3Yrpnaw+52ffHbD6ryM9EGze wqlZnrWYwTwbyojuHOmNrRJVGda+r431RqLROIs/yyUFzhO7OlURrZTknhOWnozbyQGn WO9A== X-Gm-Message-State: AKaTC028iWSelnrEHenTVaovVOWo5UsTGzB5o17uXMQf+sujVjRHk08OYNKtHr/U3BeY9w== X-Received: by 10.194.171.104 with SMTP id at8mr11886863wjc.159.1480172218578; Sat, 26 Nov 2016 06:56:58 -0800 (PST) Received: from blackbox.darklights.net (p5DE384D0.dip0.t-ipconnect.de. [93.227.132.208]) by smtp.googlemail.com with ESMTPSA id yj10sm52654689wjb.3.2016.11.26.06.56.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Nov 2016 06:56:57 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, kishon@ti.com, khilman@baylibre.com, carlo@caione.org, mark.rutland@arm.com, robh+dt@kernel.org Subject: [PATCH 1/5] Documentation: dt-bindings: Add documentation for Meson GXL USB2/3 PHYs Date: Sat, 26 Nov 2016 15:56:31 +0100 Message-Id: <20161126145635.24488-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161126145635.24488-1-martin.blumenstingl@googlemail.com> References: <20161126145635.24488-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161126_065720_888171_D94576F8 X-CRM114-Status: GOOD ( 11.45 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , catalin.marinas@arm.com, will.deacon@arm.com, narmstrong@baylibre.com MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds the DT binding documentation for the USB2 and USB3 PHYs found in the Meson GXL and GXM SoCs. Signed-off-by: Martin Blumenstingl --- .../devicetree/bindings/phy/meson-gxl-usb2-phy.txt | 25 ++++++++++++++++++++ .../devicetree/bindings/phy/meson-gxl-usb3-phy.txt | 27 ++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/meson-gxl-usb2-phy.txt create mode 100644 Documentation/devicetree/bindings/phy/meson-gxl-usb3-phy.txt diff --git a/Documentation/devicetree/bindings/phy/meson-gxl-usb2-phy.txt b/Documentation/devicetree/bindings/phy/meson-gxl-usb2-phy.txt new file mode 100644 index 0000000..e7828ca --- /dev/null +++ b/Documentation/devicetree/bindings/phy/meson-gxl-usb2-phy.txt @@ -0,0 +1,25 @@ +* Amlogic Meson GXL and GXM USB2 PHY binding + +This describes the USB2 PHY block which provides multiple USB2 PHY ports. + +Required properties: +- compatible: Should be "amlogic,meson-gxl-usb2-phy" +- reg: The base address and length of the registers +- #phys-cells: should be 1 (see phy-bindings.txt in this directory) +- clocks: phandle and clock identifier for the phy clocks +- clock-names: "usb" and "usb_ddr" +- resets: reference to the reset controller + +Optional properties: +- phy-supply: see phy-bindings.txt in this directory + + +Example: + usb2_phys: phy@78000 { + compatible = "amlogic,meson-gxl-usb2-phy"; + #phy-cells = <1>; + reg = <0x0 0x78000 0x0 0x80>; + clocks = <&clkc CLKID_USB1>, <&clkc CLKID_USB1_DDR_BRIDGE>; + clock-names = "usb", "usb_ddr"; + resets = <&reset RESET_USB_OTG>; + }; diff --git a/Documentation/devicetree/bindings/phy/meson-gxl-usb3-phy.txt b/Documentation/devicetree/bindings/phy/meson-gxl-usb3-phy.txt new file mode 100644 index 0000000..be779e8 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/meson-gxl-usb3-phy.txt @@ -0,0 +1,27 @@ +* Amlogic Meson GXL and GXM USB3 PHY binding + +Required properties: +- compatible: Should be "amlogic,meson-gxl-usb3-phy" +- reg: The base address and length of the registers +- #phys-cells: should be 0 (see phy-bindings.txt in this directory) +- interrupts: describes the OTG device/host mode detection interrupt +- phys: a list of related PHYs (typically the USB2 PHYs, see + meson-gxl-usb2-phy.txt in this directory). The mode of + the listed PHYs will be managed by the USB3 PHY (which + is required for OTG device/host detection to work). + The number of PHYs listed typically matches the number + of ports which are enabled in the USB controller which + uses this PHY. + +Optional properties: +- phy-supply: see phy-bindings.txt in this directory + + +Example: + usb3_phy0: phy@78080 { + compatible = "amlogic,meson-gxl-usb3-phy"; + #phy-cells = <0>; + reg = <0x0 0x78080 0x0 0x20>; + interrupts = ; + phys = <&usb2_phys 0>, <&usb2_phys 1>; + };