From patchwork Mon Oct 7 11:41:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 175329 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp3991282ocf; Mon, 7 Oct 2019 04:42:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8/dliR7SNplScbOMHcoqSjsAk/DF4Wr6iNb9M+9AsxudOmYV+aZuBgbTrzCdfxCZS/Jgb X-Received: by 2002:a17:907:11c8:: with SMTP id va8mr23319305ejb.111.1570448521151; Mon, 07 Oct 2019 04:42:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570448521; cv=none; d=google.com; s=arc-20160816; b=VplRd0lOEdPo5NFMln8iXJrhPenqMyDvt6vW+1qpG/Vl3Tu9K0og5yXIrJCmI3U8rR 9A4b1QWTzNcJ3ynQtDIEPi81e1One8VOCmgdUYi5OsYRxsLPh+FV4LSMQrq6FGIAi7DB hyhoHJ9oJZfaCgtPVoM2XqRSTIvBoh5qmclDIchsVdR7UqiAWz44MKsiW13Ty5Tu84N8 VAX29fqswIZS3F4RGhJOzWRPA7tAZDb8czXyGmsuAquL3mGsS1GwEaPmQCaE+HxU5ZFl N9JVd+vEbZNan7xIuZfVgFANZ4PVTmQRs/pkiCl1djyg16CagH/2z0+AzDh9rEslg1VX TVmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=y1z2wcp4iLwDQh1C3s96kKE7RBiZN0e673AxPcqD950=; b=XNrMFbmnLOEUZte/X343CU7wDmUi9RalaC4hkcqjeKYWTn6PPmHjpXfYioNqkjb2YK +TQ7g57Qpnkl9XW1yTAAQU6xIYfjdHL7Ey7qAv5kRWqP3KLTOMv0Mdjedm2yZICPP4O7 GrktIxT+iz6HFWHg6Zyt7HdGy5QutTxEFfPQS5Mn9mO8DqIwSltlwQNlmKlR/FS8CCSd PhsJilZkmAdsHjbbPFQlsOmsjVigiqIb1LANEqLDIivQIrKGi3Dv3M0AcWGs0EdmneXx MNKcCVgw2ZroVp5pDKtz2wbAUbSZ2YfPE5LQxil2nxBAREpphZr9ISnr+aIg0TlSreZH 6B+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oYTfw1Nm; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qu18si6863489ejb.80.2019.10.07.04.42.00; Mon, 07 Oct 2019 04:42:01 -0700 (PDT) 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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oYTfw1Nm; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727778AbfJGLl5 (ORCPT + 26 others); Mon, 7 Oct 2019 07:41:57 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:40264 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727411AbfJGLlz (ORCPT ); Mon, 7 Oct 2019 07:41:55 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x97BfpMc013352; Mon, 7 Oct 2019 06:41:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570448511; bh=y1z2wcp4iLwDQh1C3s96kKE7RBiZN0e673AxPcqD950=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=oYTfw1NmWswNjVRHpSvQ0K6xR6dBgwyHlazjUhes8X85XFF3xizaiRXI4tNpJWmeB BKo+XqzXbxKFyd9Frr11qC+27nagHBg+bl+zDn6kgN/tUD17Zgz7QQjA9/6FIitLsx R6MhqiXgxQHzuaBLgcSUQYJwV0qaBqs55hkDPEn4= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x97BfoCt056610; Mon, 7 Oct 2019 06:41:50 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 7 Oct 2019 06:41:47 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Mon, 7 Oct 2019 06:41:49 -0500 Received: from lta0400828a.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x97BfjML024908; Mon, 7 Oct 2019 06:41:48 -0500 From: Roger Quadros To: CC: , , , , , , Roger Quadros Subject: [PATCH 1/2] dt-bindings: usb: Add binding for the TI wrapper for Cadence USB3 controller Date: Mon, 7 Oct 2019 14:41:41 +0300 Message-ID: <20191007114142.5182-2-rogerq@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191007114142.5182-1-rogerq@ti.com> References: <20191007114142.5182-1-rogerq@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org TI platforms have a wrapper module around the Cadence USB3 controller. Add binding information for that. Signed-off-by: Roger Quadros Signed-off-by: Sekhar Nori --- .../devicetree/bindings/usb/cdns-usb3-ti.txt | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/cdns-usb3-ti.txt -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/Documentation/devicetree/bindings/usb/cdns-usb3-ti.txt b/Documentation/devicetree/bindings/usb/cdns-usb3-ti.txt new file mode 100644 index 000000000000..12c7c903e6da --- /dev/null +++ b/Documentation/devicetree/bindings/usb/cdns-usb3-ti.txt @@ -0,0 +1,59 @@ +Binding for the TI specific wrapper for the Cadence USBSS-DRD controller + +Required properties: + - compatible: Should contain "ti,j721e-usb" + - reg: Physical base address and size of the wrappers register area. + - power-domains: Should contain a phandle to a PM domain provider node + and an args specifier containing the USB device id + value. This property is as per the binding documentation: + Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt + - clocks: Clock phandles to usb2_refclk and lpm_clk + - clock-names: Should contain "usb2_refclk" and "lpm_clk" + +Optional properties: + - ti,usb2-only: If present, it restricts the controller to USB2.0 mode of + operation. Must be present if USB3 PHY is not available + for USB. + - ti,modestrap-host: Set controller modestrap to HOST mode. + - ti,modestrap-peripheral: Set controller modestrap to PERIPHERAL mode. + - ti,vbus-divider: Should be present if USB VBUS line is connected to the + VBUS pin of the SoC via a 1/3 voltage divider. + +Sub-nodes: +The USB2 PHY and the Cadence USB3 controller should be the sub-nodes. + +Example: + + ti_usb0: cdns_usb@4104000 { + compatible = "ti,j721e-usb"; + reg = <0x00 0x4104000 0x00 0x100>; + power-domains = <&k3_pds 288 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 288 15>, <&k3_clks 288 3>; + clock-names = "usb2_refclk", "lpm_clk"; + assigned-clocks = <&k3_clks 288 15>; /* USB2_REFCLK */ + assigned-clock-parents = <&k3_clks 288 16>; /* HFOSC0 */ + #address-cells = <2>; + #size-cells = <2>; + ranges; + + phy@4108000 { + compatible = "ti,j721e-usb2-phy"; + reg = <0x00 0x4108000 0x00 0x400>; + }; + + usb0: usb@6000000 { + compatible = "cdns,usb3-1.0.1"; + reg = <0x00 0x6000000 0x00 0x10000>, + <0x00 0x6010000 0x00 0x10000>, + <0x00 0x6020000 0x00 0x10000>; + reg-names = "otg", "xhci", "dev"; + interrupts = , /* irq.0 */ + , /* irq.6 */ + ; /* otgirq.0 */ + interrupt-names = "host", + "peripheral", + "otg"; + maximum-speed = "super-speed"; + dr_mode = "otg"; + }; + };