From patchwork Tue Jan 23 13:00:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 125507 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1741197ljf; Tue, 23 Jan 2018 05:01:31 -0800 (PST) X-Google-Smtp-Source: AH8x226IY6OQOKK1S2s6lIGlXzlOSHGANUr07NN7m4bqnSKM4w89A7ctfgFaFpIrq1M07iZuvkWb X-Received: by 2002:a17:902:8f95:: with SMTP id z21-v6mr5819234plo.104.1516712491029; Tue, 23 Jan 2018 05:01:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516712491; cv=none; d=google.com; s=arc-20160816; b=TiiYoED33kf63gkUKSZFhIIq1JHUzHbbv3cQuPiUnmfb88uF0HLJBlYpfYuOu06007 1MbtrT9fm6hzGeBwgpufZfg8Z4mDZi9YQDiB8RKmUC7fG6vJxy899DM0/7u8a2zH4IS3 NGK78M30PsXrRSdimI1EZVv9GB6nQkA+gvn96F93rwmPj7cnZMmrDl3SkoZNxlim2PU1 x0tScB6/pvoh7b3wB7DJ9ZpE6MtBrltPFEyduNH/ZwpzTgZFhSvXc5gXIFYCOeJF+6RZ Ct8VIcCFCqVfduz7L9gaPD4+YSVkfwjssTkEm+kNsKjttgH6iLjfhV+DgS4An5Ds2qax 7UqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=tTpODGnDFX5y7hm69TKe8a+xeH1xRrOqvrujwMKQfK4=; b=huYxVT3OOuvlgUJ0/9XkShZuFnavMNTQNtzCebhM9Aqlw/KNjLKv874jGWEaG/4r6e mXcylUgSR4P3RBRulzdHc/5ASFPusSy7JbhAWlD8yS7smT5e/xQOh51O1+Jbjbjbez03 cqod7sKiv5izJprwSoQvy3ek5T4+a1datwGATRvPiGrnhUc133/hjn15guAsP35zokJR 0CmhFV2xfg8Up+/v7EMmO9HfYbsRpUc52I77OXIpHzFvkSpEIDyqLPGVO1AuwIh4tokG wfKqLHlFk+ja54z6fRAqbOWPAgPcZrSUqHTYtjSwaqQToa0Ub4XXenmWeFjDbwzYSzNf Uudg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n16si15005766pgc.761.2018.01.23.05.01.30; Tue, 23 Jan 2018 05:01:30 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751507AbeAWNB1 (ORCPT + 6 others); Tue, 23 Jan 2018 08:01:27 -0500 Received: from mx.socionext.com ([202.248.49.38]:59259 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751504AbeAWNA5 (ORCPT ); Tue, 23 Jan 2018 08:00:57 -0500 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 23 Jan 2018 22:00:56 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 5E97A180B38; Tue, 23 Jan 2018 22:00:56 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 23 Jan 2018 22:01:04 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id BC17B1A1704; Tue, 23 Jan 2018 22:00:55 +0900 (JST) From: Kunihiko Hayashi To: Felipe Balbi , linux-usb@vger.kernel.org Cc: Greg Kroah-Hartman , Masahiro Yamada , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jassi Brar , Masami Hiramatsu , Kunihiko Hayashi Subject: [PATCH 3/4] ARM: dts: uniphier: add dwc3 usb node for PXs2 Date: Tue, 23 Jan 2018 22:00:53 +0900 Message-Id: <1516712454-2915-4-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516712454-2915-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1516712454-2915-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add usb node for PXs2 SoC which has 2 dwc3 controller instances, and enable this for PXs2 boards. Signed-off-by: Kunihiko Hayashi --- arch/arm/boot/dts/uniphier-pxs2-gentil.dts | 8 ++++++ arch/arm/boot/dts/uniphier-pxs2-vodka.dts | 4 +++ arch/arm/boot/dts/uniphier-pxs2.dtsi | 43 ++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/uniphier-pxs2-gentil.dts b/arch/arm/boot/dts/uniphier-pxs2-gentil.dts index 7dfae26..91cc7c5 100644 --- a/arch/arm/boot/dts/uniphier-pxs2-gentil.dts +++ b/arch/arm/boot/dts/uniphier-pxs2-gentil.dts @@ -53,3 +53,11 @@ &i2c2 { status = "okay"; }; + +&usb0 { + status = "okay"; +}; + +&usb1 { + status = "okay"; +}; diff --git a/arch/arm/boot/dts/uniphier-pxs2-vodka.dts b/arch/arm/boot/dts/uniphier-pxs2-vodka.dts index 0cf6154..ed5395b 100644 --- a/arch/arm/boot/dts/uniphier-pxs2-vodka.dts +++ b/arch/arm/boot/dts/uniphier-pxs2-vodka.dts @@ -41,3 +41,7 @@ &i2c0 { status = "okay"; }; + +&usb0 { + status = "okay"; +}; diff --git a/arch/arm/boot/dts/uniphier-pxs2.dtsi b/arch/arm/boot/dts/uniphier-pxs2.dtsi index c083468..b65bf1c 100644 --- a/arch/arm/boot/dts/uniphier-pxs2.dtsi +++ b/arch/arm/boot/dts/uniphier-pxs2.dtsi @@ -446,6 +446,49 @@ }; }; + usb0: usb@65b00000 { + compatible = "socionext,uniphier-pxs2-dwc3"; + status = "disabled"; + reg = <0x65b00000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb2>; + clocks = <&sys_clk 14>, <&sys_clk 16>; + resets = <&sys_rst 14>, <&sys_rst 16>, + <&sys_rst 17>, <&sys_rst 18>; + ranges; + + dwc3@65a00000 { + compatible = "snps,dwc3"; + reg = <0x65a00000 0xcd00>; + interrupt-names = "host", "peripheral"; + interrupts = <0 134 4>, <0 135 4>; + dr_mode = "host"; + }; + }; + + usb1: usb@65d00000 { + compatible = "socionext,uniphier-pxs2-dwc3"; + status = "disabled"; + reg = <0x65d00000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb1>, <&pinctrl_usb3>; + clocks = <&sys_clk 15>, <&sys_clk 20>; + resets = <&sys_rst 15>, <&sys_rst 20>, <&sys_rst 21>; + ranges; + + dwc3@65c00000 { + compatible = "snps,dwc3"; + reg = <0x65c00000 0xcd00>; + interrupt-names = "host", "peripheral"; + interrupts = <0 137 4>, <0 138 4>; + dr_mode = "host"; + }; + }; + nand: nand@68000000 { compatible = "socionext,uniphier-denali-nand-v5b"; status = "disabled";