Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2067557ybp; Thu, 10 Oct 2019 01:34:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYoKgoRDUx3UA8s4QHIB+SdbBr2+iPeuhVGK/hDNFcVR+hN9fa4EtQwTOO0W6tVi2TwP6S X-Received: by 2002:a17:906:82cf:: with SMTP id a15mr6975370ejy.279.1570696475601; Thu, 10 Oct 2019 01:34:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570696475; cv=none; d=google.com; s=arc-20160816; b=KaJNZjT3cqMwSK1O6ea0owTh8FiZKWXU474BwPVhHacMphUAtBDxuW0tyZfquC9dZH GFVxojpH+Tkp+1J/DE16taMII/L/UyeTo0PcRB1z7hGlb3Op9J7ajYZkkuK/if4g4MRr EbxLxt1slNk8IBwFeS51V4Zvrg85CQgF7VMonQO2+giHH/ktueUYVMP9KlFJu8Mp7SYB wIGe3A55KH2vDRDj6hwBKR9Nd3Zv0fx2mOFexTwOGmczl6EbCKbzx4YlPpCUyFwJ9VN7 UZy+B3JwK1s3XlXAUWx0dmBR17okLr91OZx0e0S9/tUcqD+hURZInzdDk57EA0yNesr3 oymw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FhquN/1OPnzSIofRbpd8657kQgDexsa7zYHjkstaN0g=; b=R+fXtNfbFKtCxQuycPPZ1dljf9x8hjNYeDoikMgXuUmu43EUK3iKIp+yYTH1YuESYW nOz1w2wsDRdJORxxKcFxpxhebWtrRglgIeB2f6CSambcNu4lbP311iUlmn4WYPwublUG ntGw7FpxgHiGOjIJ2a8XncdeKTOAtIwDJtLF8MINiwYsjx+JAHGyAVcbgEfATgKZQNsx jq+9uzQHatQuC1MBFq6gXIjj9XhDgkCrBf9rVtz8+adex+AG2OnjrUwLSrPiUtNgnQsy KObrYMpBTnoj9+YeG8UwHB3cNC6Inro3VPVchcezG2XOGdWwk1MIN9nOMBLJ/uPcpK7h xdwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=uutwVOyx; 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 26si2115373ejl.292.2019.10.10.01.34.12; Thu, 10 Oct 2019 01:34: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=uutwVOyx; 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 S1733296AbfJJId5 (ORCPT + 99 others); Thu, 10 Oct 2019 04:33:57 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:43210 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731959AbfJJId4 (ORCPT ); Thu, 10 Oct 2019 04:33:56 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9A8XjtI127735; Thu, 10 Oct 2019 03:33:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570696425; bh=FhquN/1OPnzSIofRbpd8657kQgDexsa7zYHjkstaN0g=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=uutwVOyxz7Ybc/SgJ+e6Z205PIhRuMyH0VWQfwYt4A4zognI4AwKqlLik3KXwGkQE MRCR8QTtQllth9LMA8AxVQxaCKFKAWsG3yV27/L6xoUCIRsPyUgcLwQRwKqJ+JHldT 3fcnnLkXE6Ga+8lAu1fwT24WtdMPH6DBGLd2Bvtk= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9A8Xjsw043983 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 10 Oct 2019 03:33:45 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 10 Oct 2019 03:33:41 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE105.ent.ti.com (157.170.170.35) 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, 10 Oct 2019 03:33:41 -0500 Received: from a0132425.dhcp.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 x9A8XaSa019061; Thu, 10 Oct 2019 03:33:41 -0500 From: Vignesh Raghavendra To: Rob Herring , Mark Rutland , , Martin K Petersen CC: Alim Akhtar , Avri Altman , Pedro Sousa , Janek Kotas , , , , Vignesh Raghavendra , Subject: [PATCH v2 1/2] dt-bindings: ufs: ti,j721e-ufs.yaml: Add binding for TI UFS wrapper Date: Thu, 10 Oct 2019 14:03:56 +0530 Message-ID: <20191010083357.28982-2-vigneshr@ti.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191010083357.28982-1-vigneshr@ti.com> References: <20191010083357.28982-1-vigneshr@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 Add binding documentation of TI wrapper for Cadence UFS Controller. Signed-off-by: Vignesh Raghavendra --- v2: Define Cadence UFS controller as child node of the wrapper as suggested by Rob H .../devicetree/bindings/ufs/ti,j721e-ufs.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/ufs/ti,j721e-ufs.yaml diff --git a/Documentation/devicetree/bindings/ufs/ti,j721e-ufs.yaml b/Documentation/devicetree/bindings/ufs/ti,j721e-ufs.yaml new file mode 100644 index 000000000000..c8a2a92074df --- /dev/null +++ b/Documentation/devicetree/bindings/ufs/ti,j721e-ufs.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/ufs/ti,j721e-ufs.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI J721e UFS Host Controller Glue Driver + +maintainers: + - Vignesh Raghavendra + +properties: + compatible: + items: + - const: ti,j721e-ufs + + reg: + maxItems: 1 + description: address of TI UFS glue registers + + clocks: + maxItems: 1 + description: phandle to the M-PHY clock + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - power-domains + +patternProperties: + "^ufs@[0-9a-f]+$": + type: object + description: | + Cadence UFS controller node must be the child node. Refer + Documentation/devicetree/bindings/ufs/cdns,ufshc.txt for binding + documentation of child node + +examples: + - | + #include + #include + + ufs_wrapper: ufs-wrapper@4e80000 { + compatible = "ti,j721e-ufs"; + reg = <0x0 0x4e80000 0x0 0x100>; + power-domains = <&k3_pds 277>; + clocks = <&k3_clks 277 1>; + assigned-clocks = <&k3_clks 277 1>; + assigned-clock-parents = <&k3_clks 277 4>; + #address-cells = <2>; + #size-cells = <2>; + + ufs@4e84000 { + compatible = "cdns,ufshc-m31-16nm", "jedec,ufs-2.0"; + reg = <0x0 0x4e84000 0x0 0x10000>; + interrupts = ; + freq-table-hz = <19200000 19200000>; + power-domains = <&k3_pds 277>; + clocks = <&k3_clks 277 1>; + assigned-clocks = <&k3_clks 277 1>; + assigned-clock-parents = <&k3_clks 277 4>; + clock-names = "core_clk"; + }; + }; -- 2.23.0