From patchwork Tue Jan 23 13:00:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 125508 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1741252ljf; Tue, 23 Jan 2018 05:01:34 -0800 (PST) X-Google-Smtp-Source: AH8x224spy2/rqf0eXzJlC5iyxEcjrGjieqcupPJKZXhGTbCh64UyGX4Ca9PdlsrYIIlGyU8M2+E X-Received: by 2002:a17:902:2c01:: with SMTP id m1-v6mr5400684plb.15.1516712494708; Tue, 23 Jan 2018 05:01:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516712494; cv=none; d=google.com; s=arc-20160816; b=kdYCEPTm3hmUDN5dcr4laGoxZnqX54XrexjhFuOoNBf73bTxLHGWUyAxcV0fSXYdhY XHsWI1qJyVZEsOXiNtpmd4ZGOV0KKYIMZfqfFC2pp7fUpZgcxwE73GEGd3Jg9tM/DEo6 PhJeUBcAi4lXA/+bvzD0AXTwboROJVOXmcXV0++22lxgiB98x7WbaBFUtnIoY5zgzRWR YnKHnhAUpdbeD988WyVq99AMtoIyjY9TnY8Z8l9DhqEMKo7578en87txQJMIHLksxSrJ +TZzQN0qQ0zJy/dqlxPqmWn8ozbshua9uYumkShiU/MbljzYHlkd9xBw1CZ3WIy1ksFZ HpMg== 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=LSSWd0S4Hn/k1otx/msgkce8OD5kVpIMd34N+VgR0jQ=; b=Nounoq8C2hOURuRfNP/5NkJtssNIm2AIpnGJkYA5kjDhFswLIFAZML5w1mT8lHmJQY Ykfh2YlTrHu7Be/9JJvtTXppIrvnN/1alLCcV0kRU/9iw2ZfKrK7g+rDPFzuZosCyjRK cLnWto/78xwf59ypu6MfoFJz/dDcXrxEzLVoK8+dC8OgSq0IdbxRphyi2TgOeahTSpZu ZVrk/Qleqad5Ui9LGLkaQ3cge+8xtaS77Q6wAoo5ULu632yqlVk38dtrxPaYkrqbaVDQ IJ6/ED9EnJNmuh1LmOS4lCYUJwsajZaQUynB35WAWr0I2yVWldNEs18SiblgZSvt56jq KqLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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.31; Tue, 23 Jan 2018 05:01:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751900AbeAWNB3 (ORCPT + 28 others); Tue, 23 Jan 2018 08:01:29 -0500 Received: from mx.socionext.com ([202.248.49.38]:59270 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751495AbeAWNA5 (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:55 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id D79FD180B38; Tue, 23 Jan 2018 22:00:55 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 23 Jan 2018 22:01:06 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 371D71A1704; 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 1/4] dt-bindings: dwc3: add binding documentation for UniPhier dwc3 glue driver Date: Tue, 23 Jan 2018 22:00:51 +0900 Message-Id: <1516712454-2915-2-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add devicetree binding documentation for dwc3 glue driver implemented on Socionext UniPhier SoCs. Signed-off-by: Kunihiko Hayashi --- .../devicetree/bindings/usb/dwc3-uniphier.txt | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/dwc3-uniphier.txt -- 2.7.4 diff --git a/Documentation/devicetree/bindings/usb/dwc3-uniphier.txt b/Documentation/devicetree/bindings/usb/dwc3-uniphier.txt new file mode 100644 index 0000000..677e072 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/dwc3-uniphier.txt @@ -0,0 +1,58 @@ +UniPhier DWC3 glue layer + +This describes the devicetree bindings for dwc3-uniphier driver implemented on +Socionext UniPhier SoCs. + +Required properties: +- compatible: + - "socionext,uniphier-pxs2-dwc3" : For UniPhier PXs2 SoC + - "socionext,uniphier-ld20-dwc3" : For UniPhier LD20 SoC +- reg: Address and range of the glue logic +- clocks: List of phandles for the clocks, and the number of phandles depends + on SoC platform. + +Optional properties: +- resets: List of phandles for the resets, and the number of phandles depends + on SoC platform. +- nvmem-cells: Phandles to nvmem cell that contains the trimming data. + Available only for LD20, and if unspecified, default value is used. +- nvmem-cell-names: Should be the following names, which correspond to each + nvmem-cells. N is the number indicating a port of phy. + All of the 3 parameters associated with the following names are + required for each port, if any one is omitted, the trimming data + of the port will not be set at all. + - "rtermN", "sel_tN", "hs_iN" : Each cell name for phy parameters + +Required child node: +A child node must exist to represent the core DWC3 IP block. The name of +the node is not important. The content of the node is defined in dwc3.txt. + +Example: + + usb: usb@65b00000 { + compatible = "socionext,uniphier-ld20-dwc3"; + reg = <0x65b00000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + 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"; + }; + };