From patchwork Tue Aug 15 12:47:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harvey Hunt X-Patchwork-Id: 9901733 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 4BD5E60244 for ; Tue, 15 Aug 2017 12:47:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CBB92884B for ; Tue, 15 Aug 2017 12:47:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 317972884E; Tue, 15 Aug 2017 12:47:49 +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=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW 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 BD4B62884B for ; Tue, 15 Aug 2017 12:47:48 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=SXp8kbxBLS2ej6KVPNm6OacINU70jhcnGm0xfZZHAxM=; b=VASORPbXQm5Oq+ L5Gf/IuZBrfI0Pa9gc2IfGEHOzWhSil5ilZ41G1XH6kBMwG9Gq9l89lSwdBPsHdzvHztoLoDnrrUP UEvIAJh1UDsFa8C/ooToCxIkEDrtq9LpX2gs9pYLij7qTjhVvuIa93fP7miJTizvJ58gTRutpOm/y 9ME/0Rrlrzam2tK7JFGtRIjccEKECdtUVR1WfADIJ5IrlJSRf5h7o0+e21O/1zh6gz4kaLosw0bZX Mw99MBBwVjxUfTqna0hFTtYcyjQzEW71MPTIxev5CMajhZYSE1kspxKi+iyErgxtXGT5dxg4Na6QE 3wYjuPSpV6pqQUbECrjw==; 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 1dhbG6-00041F-Tg; Tue, 15 Aug 2017 12:47:46 +0000 Received: from mailapp01.imgtec.com ([195.59.15.196]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dhbG3-0003lH-GS for linux-mediatek@lists.infradead.org; Tue, 15 Aug 2017 12:47:45 +0000 Received: from hhmail02.hh.imgtec.org (unknown [10.100.10.20]) by Forcepoint Email with ESMTPS id 97825E09F8DA2; Tue, 15 Aug 2017 13:47:19 +0100 (IST) Received: from LDT-H-Hunt.le.imgtec.org (192.168.154.107) by hhmail02.hh.imgtec.org (10.100.10.21) with Microsoft SMTP Server (TLS) id 14.3.294.0; Tue, 15 Aug 2017 13:47:22 +0100 From: Harvey Hunt To: , , , Subject: [V6 2/2] dt-bindings: phy: Add bindings for ralink-usb PHY Date: Tue, 15 Aug 2017 13:47:03 +0100 Message-ID: <1502801223-20833-2-git-send-email-harvey.hunt@imgtec.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502801223-20833-1-git-send-email-harvey.hunt@imgtec.com> References: <1502801223-20833-1-git-send-email-harvey.hunt@imgtec.com> MIME-Version: 1.0 X-Originating-IP: [192.168.154.107] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170815_054743_709291_CC378184 X-CRM114-Status: UNSURE ( 9.29 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, james.hogan@imgtec.com, Harvey Hunt , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, John Crispin Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: John Crispin Add a binding for the USB phy on Mediatek/Ralink SoCs. Signed-off-by: John Crispin Signed-off-by: Harvey Hunt Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-mediatek@lists.infradead.org --- Changes in V6: * Add MT7628 binding * Add optional reg property Changes in V5: * None Changes in V4: * None Changes in V3: * Split out from first patch .../devicetree/bindings/phy/ralink-usb-phy.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/ralink-usb-phy.txt diff --git a/Documentation/devicetree/bindings/phy/ralink-usb-phy.txt b/Documentation/devicetree/bindings/phy/ralink-usb-phy.txt new file mode 100644 index 0000000..80cd24d --- /dev/null +++ b/Documentation/devicetree/bindings/phy/ralink-usb-phy.txt @@ -0,0 +1,21 @@ +Mediatek/Ralink USB PHY + +Required properties: + - compatible: "ralink,rt3352-usbphy" + "mediatek,mt7620-usbphy" + "mediatek,mt7628-usbphy" + - reg: required for "mediatek,mt7628-usbphy" + - #phy-cells: should be 0 + - resets: the two reset controllers for host and device + - reset-names: the names of the 2 reset controllers + +Example: + +usbphy: phy { + compatible = "mediatek,mt7628-usbphy"; + reg = <0x10120000 0x1000>; + #phy-cells = <0>; + + resets = <&rstctrl 22 &rstctrl 25>; + reset-names = "host", "device"; +};