From patchwork Tue Jan 23 13:00:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 125506 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1740835ljf; Tue, 23 Jan 2018 05:01:03 -0800 (PST) X-Google-Smtp-Source: AH8x2247AiTDnUMhRXTkX57iV9a3/yVaUThkQDAZfuDipMc2oAiBmGVE5qqfLsLWNiggaERNamLd X-Received: by 10.98.8.206 with SMTP id 75mr10525915pfi.172.1516712463438; Tue, 23 Jan 2018 05:01:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516712463; cv=none; d=google.com; s=arc-20160816; b=Sf6xo+2A8KjKgxfUzJTIjT1UEqtumWFdgIO1Hd8y1Y2FO/jgL7qxMk2RlsjehsubSm tjpI9l+Vx6LFKq90sK0PAPdGA2yXI4IWWkUo7eMmdXfFnXvk6k8sZkjpJfHJhF4ivEJD 428G16PBgxfO6gPNYDhnS7iz7dBngQf0EBp0/Y2MPko87e0fyNjx9ahmPgMphTFQ4fNL PEEen2aCQXUSsMNuXJnsKdgPTkv7UhMuz2zKACJWgM9Bd5oAlhl+qHt7rBKRKt9VjU3j inei1IZ8Spst/AfyHfEZ6nVXeWnlkkJtJ4jRpDW5DMHsrauEFSQEGoE9HwyJjWKsGMEV WS+w== 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=YWckd6ZeBGYFhb6PjoQvuX/bV0H73ryb4eO7JiK44uY=; b=aOIrwr/VZEjmZYYZM/yED3Nag0IGvPEgUG2dHHcUKRwHYU06XP4z8hZxHgFjpXn3UG w9LcP+WVIGVbzv2WHiYGgUcGMnjXqKOlmmJo1c/giAR1z54oe4PQoIm/MxflZILskXJD esBoldvb5K2ijD1uzWgJk4qozuSCO1DUPtPLYWNZb5/c+BNub66/DcOUp4UrkwN7RWpz ms84A8SWjbO2aJApP3E0vm68dkQ/0imeBwlyddgqrv2ADzY6S9ASwfEisdI1PfQvZKgF rEs3Z8cCrfhULPX30WnPicsge+lk0J+T98BUBbNuYpciR5vl9GOvwUgCFWI9KeV1guG9 kdFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-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 t16-v6si4699649plr.802.2018.01.23.05.01.03; Tue, 23 Jan 2018 05:01:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-usb-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 linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751770AbeAWNBB (ORCPT + 3 others); Tue, 23 Jan 2018 08:01:01 -0500 Received: from mx.socionext.com ([202.248.49.38]:59265 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751632AbeAWNA7 (ORCPT ); Tue, 23 Jan 2018 08:00:59 -0500 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) 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 iyokan-ex.css.socionext.com (Postfix) with ESMTP id 5DAAA600D0; 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 0A0951A0DED; Tue, 23 Jan 2018 22:00:56 +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 4/4] arm64: dts: uniphier: add dwc3 usb node for LD20 Date: Tue, 23 Jan 2018 22:00:54 +0900 Message-Id: <1516712454-2915-5-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: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Add usb node for LD20, which has 1 dwc3 controller instance, and enable this for LD20 boards. Signed-off-by: Kunihiko Hayashi --- .../boot/dts/socionext/uniphier-ld20-global.dts | 4 ++ .../arm64/boot/dts/socionext/uniphier-ld20-ref.dts | 4 ++ arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi | 77 ++++++++++++++++++++++ 3 files changed, 85 insertions(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" 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/arm64/boot/dts/socionext/uniphier-ld20-global.dts b/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts index fc2bc9d..82eea9d 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts @@ -54,3 +54,7 @@ &nand { status = "okay"; }; + +&usb { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts b/arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts index 6933710..3ea0985 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts @@ -58,3 +58,7 @@ &i2c0 { status = "okay"; }; + +&usb { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi index 8a3276b..e3e1900 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi @@ -467,6 +467,50 @@ efuse@200 { compatible = "socionext,uniphier-efuse"; reg = <0x200 0x68>; + #address-cells = <1>; + #size-cells = <1>; + + /* USB cells */ + usb_rterm0: trim@54,4 { + reg = <0x54 1>; + bits = <4 2>; + }; + usb_rterm1: trim@55,4 { + reg = <0x55 1>; + bits = <4 2>; + }; + usb_rterm2: trim@58,4 { + reg = <0x58 1>; + bits = <4 2>; + }; + usb_rterm3: trim@59,4 { + reg = <0x59 1>; + bits = <4 2>; + }; + usb_sel_t0: trim@54,0 { + reg = <0x54 1>; + bits = <0 4>; + }; + usb_sel_t1: trim@55,0 { + reg = <0x55 1>; + bits = <0 4>; + }; + usb_sel_t2: trim@58,0 { + reg = <0x58 1>; + bits = <0 4>; + }; + usb_sel_t3: trim@59,0 { + reg = <0x59 1>; + bits = <0 4>; + }; + usb_hs_i0: trim@56,0 { + reg = <0x56 1>; + bits = <0 4>; + }; + usb_hs_i2: trim@5a,0 { + reg = <0x5a 1>; + bits = <0 4>; + }; }; }; @@ -513,6 +557,39 @@ }; }; + usb: usb@65b00000 { + compatible = "socionext,uniphier-ld20-dwc3"; + status = "disabled"; + reg = <0x65b00000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb1>, + <&pinctrl_usb2>, <&pinctrl_usb3>; + clocks = <&sys_clk 14>, <&sys_clk 16>, <&sys_clk 17>; + resets = <&sys_rst 12>, <&sys_rst 16>, <&sys_rst 17>, + <&sys_rst 18>, <&sys_rst 19>; + nvmem-cells = <&usb_rterm0>, <&usb_rterm1>, + <&usb_rterm2>, <&usb_rterm3>, + <&usb_sel_t0>, <&usb_sel_t1>, + <&usb_sel_t2>, <&usb_sel_t3>, + <&usb_hs_i0>, <&usb_hs_i0>, + <&usb_hs_i2>, <&usb_hs_i2>; + nvmem-cell-names = + "rterm0", "rterm1", "rterm2", "rterm3", + "sel_t0", "sel_t1", "sel_t2", "sel_t3", + "hs_i0", "hs_i1", "hs_i2", "hs_i3"; + ranges; + + dwc3@65a00000 { + compatible = "snps,dwc3"; + reg = <0x65a00000 0xcd00>; + interrupt-names = "host"; + interrupts = <0 134 4>; + dr_mode = "host"; + }; + }; + nand: nand@68000000 { compatible = "socionext,uniphier-denali-nand-v5b"; status = "disabled";