From patchwork Fri Nov 7 11:57:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 5251821 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 946C19F387 for ; Fri, 7 Nov 2014 12:02:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C14A12012E for ; Fri, 7 Nov 2014 12:02:10 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F2FF7200E9 for ; Fri, 7 Nov 2014 12:02:09 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XmiCr-00080t-6b; Fri, 07 Nov 2014 11:59:57 +0000 Received: from mail-wg0-f50.google.com ([74.125.82.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XmiBl-0007KY-5F for linux-arm-kernel@lists.infradead.org; Fri, 07 Nov 2014 11:58:50 +0000 Received: by mail-wg0-f50.google.com with SMTP id z12so3520267wgg.37 for ; Fri, 07 Nov 2014 03:58:31 -0800 (PST) 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=ar3w+5ilI6lhJtJSUsVhTQcCJsXE66wT3LFnBmlvZBI=; b=F1Ra+xSC0hQbwJFXxQ/XJRy7Yz5DUjq+GMnRkzhgpVQ659cGC2zzz40Nkiw9S7ooQS X/1p8bonIiCQoNWrwxBZhH5Qil1y+XpZGBe58pfqZHAa3Yptws4orjWx0tqIwwUEPN9b 2lawGWjLfUr6kspKDFh7SUKriWZ+TeDaGoq11dZYwhBpbcL6onGaYmFsyoL0hijLYjjk WbBE65u+wxJqobsIGi8FsVNxVdwRL3MtabWv2kaW0IiDx9A4St27tibFmitFz+lJ+ap/ 2nUxufjVFNDMv928XWAt5RiQfhLkDUtionQZsLbzFUqgY12m7dgxCNZGa7jOhAubpUER 5o3w== X-Gm-Message-State: ALoCoQlVHC5Iva7sgMo3HY9EzlC4E/Ir4pc/imIvWkSwhNJl4DjZClxQgA6k2rarN4+7paGrifXe X-Received: by 10.180.13.226 with SMTP id k2mr4405381wic.25.1415361511773; Fri, 07 Nov 2014 03:58:31 -0800 (PST) Received: from localhost.localdomain (cpc14-aztw22-2-0-cust189.18-1.cable.virginm.net. [82.45.1.190]) by mx.google.com with ESMTPSA id dw9sm1793500wib.0.2014.11.07.03.58.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Nov 2014 03:58:30 -0800 (PST) From: Peter Griffin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, srinivas.kandagatla@gmail.com, maxime.coquelin@st.com, patrice.chotard@st.com Subject: [PATCH 07/13] ARM: STi: DT: STiH407: Add usb2 picophy dt nodes Date: Fri, 7 Nov 2014 11:57:49 +0000 Message-Id: <1415361475-6218-8-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1415361475-6218-1-git-send-email-peter.griffin@linaro.org> References: <1415361475-6218-1-git-send-email-peter.griffin@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141107_035849_460790_3B96E7AE X-CRM114-Status: GOOD ( 10.15 ) X-Spam-Score: -0.7 (/) Cc: peter.griffin@linaro.org, devicetree@vger.kernel.org, lee.jones@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the dt nodes for the usb2 picophy found on the stih407 family of devices. It is used on stih410 and later devices with the ehci/ohci usb controller, and is also used as the usb2 phy with the dwc3 usb3 controller. Signed-off-by: Peter Griffin --- arch/arm/boot/dts/stih407.dtsi | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm/boot/dts/stih407.dtsi b/arch/arm/boot/dts/stih407.dtsi index 50637f5..967ec39 100644 --- a/arch/arm/boot/dts/stih407.dtsi +++ b/arch/arm/boot/dts/stih407.dtsi @@ -275,5 +275,51 @@ status = "disabled"; }; + + /* Generic picoPHY */ + usb2_picophy0: usbpicophy@0 { + compatible = "st,stih407-usb2-phy"; + reg = <0xf8 0x04>, /* syscfg 5062 */ + <0xf4 0x04>; /* syscfg 5061 */ + reg-names = "param", + "ctrl"; + #phy-cells = <0>; + + st,syscfg = <&syscfg_core>; + resets = <&softreset STIH407_PICOPHY_SOFTRESET>, + <&picophyreset STIH407_PICOPHY0_RESET>; + reset-names = "global", + "port"; + }; + + usb2_picophy1: usbpicophy@1 { + compatible = "st,stih407-usb2-phy"; + #phy-cells = <0>; + reg = <0xfc 0x04>, /* syscfg 5063 */ + <0xf4 0x04>; /* syscfg 5061 */ + reg-names = "param", + "ctrl"; + + st,syscfg = <&syscfg_core>; + resets = <&softreset STIH407_PICOPHY_SOFTRESET>, + <&picophyreset STIH407_PICOPHY1_RESET>; + reset-names = "global", + "port"; + }; + + usb2_picophy2: usbpicophy@2 { + compatible = "st,stih407-usb2-phy"; + #phy-cells = <0>; + reg = <0x100 0x04>, /* syscfg 5064 */ + <0xf4 0x04>; /* syscfg 5061 */ + reg-names = "param", + "ctrl"; + + st,syscfg = <&syscfg_core>; + resets = <&softreset STIH407_PICOPHY_SOFTRESET>, + <&picophyreset STIH407_PICOPHY2_RESET>; + reset-names = "global", + "port"; + }; }; };