From patchwork Sun Apr 12 07:31:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 11484425 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 454EB13B2 for ; Sun, 12 Apr 2020 07:42:21 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1D9CB206E9 for ; Sun, 12 Apr 2020 07:42:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ESIwbmp5"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="M7SBuoUV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1D9CB206E9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mWOkBZbsO7WS4J2LPjBF8VsgB88wBla80LTtwe02uEE=; b=ESIwbmp5qkaFKp hc3j+ve6EvuS9GqTsDEtMqkCc+SwAvmo6n4KeOpcahqlFgHiQGqWbQ1qxoJM4v4gfHyui/0yzf+kc HYOcw+Zdr2NAKOXB2JUSp8n/1/ukwROT4n4bjikTaGS5yO4hIrmGYNe1/BuRikzFqhYrsMMTecpQn DMG4Xo3bBG/htq5wyi8zKsvFXchVw8CVBkuVObRuPOB3cYFVeb5ByTBNLd4VZ3CfsJv2VzQbT84A8 52+UgRz7+BVeDrf90+T+lKs8ZJfa+VE4N23k/gA3MHGUTJwK7+VlRPgZm2M5NvdSdzFrzeJRqb82b ZvmWpxjM+LEUwAj77slQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jNXFv-0003CK-8Z; Sun, 12 Apr 2020 07:42:15 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jNXFq-00035n-83 for linux-arm-kernel@lists.infradead.org; Sun, 12 Apr 2020 07:42:12 +0000 Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20200412074205epoutp0203a370b6f5eb34413b23cec11d9451ad~FAp7hVaN33192031920epoutp02h for ; Sun, 12 Apr 2020 07:42:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20200412074205epoutp0203a370b6f5eb34413b23cec11d9451ad~FAp7hVaN33192031920epoutp02h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1586677325; bh=PdZr65Wo5TW1cANP8kk5hrsoRREQWBxl8FwYNrvhuxw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M7SBuoUVAC/CowKwz91/zlp4phzOuhZ+YmncO69EfeRenS8qPWySGwea1dWDa6Euz L6jIQ0SHmjDuB759Sz8QhR2MXDMffeWzIs9PT2L/+Lq3DKoWGwDw4WX6kDCKLCxbQ9 QFjkruufauVzbpfnXblLxgNspmS4ZXAbv4N6WLLU= Received: from epsmges5p3new.samsung.com (unknown [182.195.42.75]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20200412074204epcas5p2290bc7abe666298739815abcaec714f4~FAp6iYfLs1436314363epcas5p2u; Sun, 12 Apr 2020 07:42:04 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 8A.91.04736.B46C29E5; Sun, 12 Apr 2020 16:42:04 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20200412074203epcas5p4b8a73ef32cf27a3ebd9398caa69149a1~FAp55CYua1693016930epcas5p44; Sun, 12 Apr 2020 07:42:03 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200412074203epsmtrp29ed47a338efc3afbe9240a304d6ad3d7~FAp51lIiP0481304813epsmtrp24; Sun, 12 Apr 2020 07:42:03 +0000 (GMT) X-AuditID: b6c32a4b-ae3ff70000001280-a8-5e92c64be02a Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 4C.3E.04024.B46C29E5; Sun, 12 Apr 2020 16:42:03 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200412074201epsmtip16e8388ebcd66159ae232129f76e1acca~FAp35DDDA0326303263epsmtip1L; Sun, 12 Apr 2020 07:42:01 +0000 (GMT) From: Alim Akhtar To: robh@kernel.org, devicetree@vger.kernel.org, linux-scsi@vger.kernel.org Subject: [PATCH v5 1/5] dt-bindings: phy: Document Samsung UFS PHY bindings Date: Sun, 12 Apr 2020 13:01:55 +0530 Message-Id: <20200412073159.37747-2-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <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Brightmail-Tracker: H4sIAAAAAAAAA+NgFprKIsWRmVeSWpSXmKPExsWy7bCSnK73sUlxBism8ls8mLeNzeLlz6ts Fp/WL2O1mH/kHKvF+fMb2C1ubjnKYrHp8TVWi8u75rBZzDi/j8mi+/oONovlx/8xWfzfs4Pd YunWm4wOvB6X+3qZPDat6mTz2Lyk3qPl5H4Wj49Pb7F49G1ZxejxeZOcR/uBbqYAjigum5TU nMyy1CJ9uwSujEPddQUbRCtuX+lhbWDcJtDFyMkhIWAi0TvpEmsXIxeHkMBuRomnu7+zQCSk Ja5vnMAOYQtLrPz3nB2iqIlJ4ureeWwgCTYBbYm707cwgdgiAv4Sf74fAytiFljFJNHZe5YR JCEs4C1xb9psMJtFQFVixbYeIJuDg1fARuLZpRCIBfISqzccYAaxOQVsJRbc6QKbKQRU8nfH cbBWXgFBiZMzn7CAtDILqEusnycEEmYGam3eOpt5AqPgLCRVsxCqZiGpWsDIvIpRMrWgODc9 t9iwwDAvtVyvODG3uDQvXS85P3cTIziytDR3MF5eEn+IUYCDUYmH98C1iXFCrIllxZW5hxgl OJiVRHiflAOFeFMSK6tSi/Lji0pzUosPMUpzsCiJ8z7NOxYpJJCeWJKanZpakFoEk2Xi4JRq YFzx0jNK4KhaW3GlxqX0IiarP5WsGo/tD61ad+MjP9sNrSN+Gl1TNn/eX1K15lKrXYTPIuM+ 4yl34yoyBOx7xeZ90YvmFNTdt/xJNcvLGR/z2rpWbw/49TeqbXOTzZ+YTUfuZq++FrYowlc6 Vt1VTm21m4bPPZHEH7vOH3n3fJm6ROzVFi+vlUosxRmJhlrMRcWJADDWXraoAgAA X-CMS-MailID: 20200412074203epcas5p4b8a73ef32cf27a3ebd9398caa69149a1 X-Msg-Generator: CA CMS-TYPE: 105P X-CMS-RootMailID: 20200412074203epcas5p4b8a73ef32cf27a3ebd9398caa69149a1 References: <20200412073159.37747-1-alim.akhtar@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200412_004210_643915_243046B3 X-CRM114-Status: GOOD ( 13.20 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [203.254.224.25 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, martin.petersen@oracle.com, linux-kernel@vger.kernel.org, krzk@kernel.org, kwmad.kim@samsung.com, avri.altman@wdc.com, cang@codeaurora.org, Alim Akhtar , stanley.chu@mediatek.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch documents Samsung UFS PHY device tree bindings Signed-off-by: Alim Akhtar Tested-by: Paweł Chmiel --- .../bindings/phy/samsung,ufs-phy.yaml | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml b/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml new file mode 100644 index 000000000000..352d5dda320d --- /dev/null +++ b/Documentation/devicetree/bindings/phy/samsung,ufs-phy.yaml @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/samsung,ufs-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung SoC series UFS PHY Device Tree Bindings + +maintainers: + - Alim Akhtar + +properties: + "#phy-cells": + const: 0 + + compatible: + enum: + - samsung,exynos7-ufs-phy + + reg: + maxItems: 1 + description: PHY base register address + + reg-names: + items: + - const: phy-pma + + clocks: + items: + - description: PLL reference clock + - description: symbol clock for input symbol ( rx0-ch0 symbol clock) + - description: symbol clock for input symbol ( rx1-ch1 symbol clock) + - description: symbol clock for output symbol ( tx0 symbol clock) + + clock-names: + items: + - const: ref_clk + - const: rx1_symbol_clk + - const: rx0_symbol_clk + - const: tx0_symbol_clk + + samsung,pmu-syscon: + $ref: '/schemas/types.yaml#/definitions/phandle' + description: phandle for PMU system controller interface, used to + control pmu registers bits for ufs m-phy + +required: + - "#phy-cells" + - compatible + - reg + - reg-names + - clocks + - clock-names + - samsung,pmu-syscon + +examples: + - | + #include + + ufs_phy: ufs-phy@15571800 { + compatible = "samsung,exynos7-ufs-phy"; + reg = <0x15571800 0x240>; + reg-names = "phy-pma"; + samsung,pmu-syscon = <&pmu_system_controller>; + #phy-cells = <0>; + clocks = <&clock_fsys1 SCLK_COMBO_PHY_EMBEDDED_26M>, + <&clock_fsys1 PHYCLK_UFS20_RX1_SYMBOL_USER>, + <&clock_fsys1 PHYCLK_UFS20_RX0_SYMBOL_USER>, + <&clock_fsys1 PHYCLK_UFS20_TX0_SYMBOL_USER>; + clock-names = "ref_clk", "rx1_symbol_clk", + "rx0_symbol_clk", "tx0_symbol_clk"; + + }; +...