From patchwork Thu Oct 24 11:47:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 177418 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2070060ill; Thu, 24 Oct 2019 04:47:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDGlJLW2mYa0xKXc9KdS7aWgGYToDhMSa+TEUnNkrc8fZveLBzcGMU2eF1JS2z4CX6BNq2 X-Received: by 2002:a50:cb85:: with SMTP id k5mr42763819edi.131.1571917655290; Thu, 24 Oct 2019 04:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571917655; cv=none; d=google.com; s=arc-20160816; b=ZjHHULAqczuUnTlOx7F8j5lO1S87uD2fQ0CjEOL00oP4Zn4tUN8AHzmOFHmupwGMfw mIEYMVuCNuFDtshqW28+A48M/+5CeJO5RJPZXaFkGTtPEIPzY2asB8qtG145fx/uLl4O DyZ0fyGa/0rMNDUXnyhDTLW8hXn6z2RlkK2CKhv0gpK6bnIX6v/0Al1y5e9BH7siQUhd 93AxygXlU9dlJfWuq0fnMrFz5vRpA78UtE9LoZDd9XkNsMv6bZhYTnFtorWj399PM+Z4 E3C3GyO3OD6FVuzvr19zcVqtgKxAWozqD1lVPvXfxr0pGW4ymG3d828S2rCRNISHEbSr ku2w== 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=NDN9/CcUPcm809+gjIJlWOrYqiVSCH+PMHSuTHZryIg=; b=SN2YgqrQaYjw2rPDP9y9673K8HOnIxq70V7z6synpaoMJiKHsIsNUVsCNNJbvyVwhK QPtRZ38V4lbuXGfXaW5mXjDJaod77dmjNUcdSTi264q1wciQD2rowgaB6/lNOQBuLZFc OqRx26hPXMhI7LKP8yQKXKW60H264Hcu1Lf8ESuTHPb7P/tRVKyrwhNBVnJNzwN/Bsj5 CTqXF6MfWMGUzUekoj7eThaF5Le0m00aCRfIyKzWHjHOKKS2ggb/QSb064vO9xEvaKkg 2uk4irTnMp6RYa7Zr9SmuHRB/g+2f6TryUVLT3EjP2BMDtGD7lf8LlJAPl5QpThFmEEp h4Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fDWBIYHG; 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 c8si7345846edf.79.2019.10.24.04.47.35; Thu, 24 Oct 2019 04:47:35 -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=fDWBIYHG; 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 S2439265AbfJXLrd (ORCPT + 26 others); Thu, 24 Oct 2019 07:47:33 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:45968 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726389AbfJXLrd (ORCPT ); Thu, 24 Oct 2019 07:47:33 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9OBlPvn023731; Thu, 24 Oct 2019 06:47:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571917645; bh=NDN9/CcUPcm809+gjIJlWOrYqiVSCH+PMHSuTHZryIg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=fDWBIYHG2tRnJ/5LCmf/uZRExpFNzc0D0Z8iRsukJmX++tg0qqe+grBsYL7bjX6td yM+g4A3Bhr4vP2Hv7sa8A82l7jHE9fJdeOyhJTguMPe8GqEbunjigkPBmfat2JpkYj bh/mjNMkzVDjXyGQOyHMNulQEBYA4EdHvbg7Xm74= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9OBlP1Z129870 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Oct 2019 06:47:25 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 24 Oct 2019 06:47:14 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE100.ent.ti.com (10.64.6.21) 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; Thu, 24 Oct 2019 06:47:14 -0500 Received: from lta0400828a.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9OBlIAK061379; Thu, 24 Oct 2019 06:47:21 -0500 From: Roger Quadros To: , CC: , , , , , , , Roger Quadros , Rob Herring Subject: [PATCH v3 1/2] dt-bindings: usb: Add binding for the TI wrapper for Cadence USB3 controller Date: Thu, 24 Oct 2019 14:47:16 +0300 Message-ID: <20191024114717.30984-2-rogerq@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191024114717.30984-1-rogerq@ti.com> References: <20191024114717.30984-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 Cc: Rob Herring --- .../devicetree/bindings/usb/ti,j721e-usb.yaml | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml b/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml new file mode 100644 index 000000000000..5f5264b2e9ad --- /dev/null +++ b/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml @@ -0,0 +1,86 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/usb/ti,j721e-usb.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Bindings for the TI wrapper module for the Cadence USBSS-DRD controller + +maintainers: + - Roger Quadros + +properties: + compatible: + items: + - const: ti,j721e-usb + + reg: + description: module registers + + power-domains: + description: + PM domain provider node and an args specifier containing + the USB device id value. See, + Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt + + clocks: + description: Clock phandles to usb2_refclk and lpm_clk + minItems: 2 + maxItems: 2 + + clock-names: + items: + - const: ref + - const: lpm + + ti,usb2-only: + description: + If present, it restricts the controller to USB2.0 mode of + operation. Must be present if USB3 PHY is not available + for USB. + type: boolean + + ti,vbus-divider: + description: + Should be present if USB VBUS line is connected to the + VBUS pin of the SoC via a 1/3 voltage divider. + type: boolean + +required: + - compatible + - reg + - power-domains + - clocks + - clock-names + +examples: + - | + #include + #include + 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 = "ref", "lpm"; + assigned-clocks = <&k3_clks 288 15>; /* USB2_REFCLK */ + assigned-clock-parents = <&k3_clks 288 16>; /* HFOSC0 */ + #address-cells = <2>; + #size-cells = <2>; + + usb@6000000 { + compatible = "cdns,usb3"; + 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"; + }; + };