From patchwork Fri Jun 10 07:29:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 12876601 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 95E18C43334 for ; Fri, 10 Jun 2022 07:32:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: List-Owner; bh=GRWON0ZXtJNQd56BLEcYwM7GM/2rKGMR6m5i4OpKQAU=; b=buEYJ30AExG6Hd Zq7L+KDuJM9WBl3pQHo+g0bFqMs+JlF9jlxjS3/b+qPfyw9kdaIFd0Ww5QG67Zd5RtJiU0+RMscoG GwEB0slcyOQzXdflum0EtbWMNHPk9IBeGoTkAsg2kyQfOm7yvX68oJ2l7LEizOY5YtjX2Ja1Aj60w khU9afGx3d78Mn7212Gd+pqDwjI+u8m5GAU8LvbEN1ESLvdLF2jpQhicA1befTs5LHB5XeYoGtNCM zzCGYg+zNRC4X6zn4Y19Q6ymJYibywGhVXwWrL4XjAkrwgKA9aalvIuEqr2SjR3+hmt1/4VLI8/6R HtYZZU/6lAskx5dimtzg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzZ7s-006RSH-U1; Fri, 10 Jun 2022 07:32:12 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzZ7q-006RPW-68 for linux-phy@lists.infradead.org; Fri, 10 Jun 2022 07:32:12 +0000 Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20220610073203epoutp011eff38fed2c02391861966ca7b7afa64~3Mfa-pqON0689806898epoutp01B for ; Fri, 10 Jun 2022 07:32:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20220610073203epoutp011eff38fed2c02391861966ca7b7afa64~3Mfa-pqON0689806898epoutp01B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1654846323; bh=txhypdCSGxcpzunLj6FnsUocQ8uwPEWPghvi9lfqylE=; h=From:To:Cc:Subject:Date:References:From; b=Zkg6g4Kj5pNm/Ud0FKxCwyUQOHX3fKpFUVia3DBvhYjeqw4sjFACaMGoIHQ1Vm7S9 EqNbwZaMJhHgmlbU4onQ1eB8GAJD1Aol8j7lrbdN8JgP0VoTgV+0VTZla7mrGBoZzv Ti6f+8f4nkW2XOnrdzS6SrSnCqJnDVD0g2wRkZ+I= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20220610073203epcas5p48b1d21de23860ce0d8c420bb1c5b7244~3MfaaZ9Vs0315403154epcas5p4-; Fri, 10 Jun 2022 07:32:03 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.183]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4LKCMf3nWFz4x9QK; Fri, 10 Jun 2022 07:31:58 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id FC.C4.09762.C63F2A26; Fri, 10 Jun 2022 16:31:56 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20220610073155epcas5p397e45ae128b29d3f99942fddf9afc0a3~3MfThxQSA2825728257epcas5p37; Fri, 10 Jun 2022 07:31:55 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220610073155epsmtrp29ff30484576b9233b60e71ee34d1ab6f~3MfTglCet1438114381epsmtrp2c; Fri, 10 Jun 2022 07:31:55 +0000 (GMT) X-AuditID: b6c32a4b-1fdff70000002622-c4-62a2f36c7a6c Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 3A.3E.08924.B63F2A26; Fri, 10 Jun 2022 16:31:55 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220610073153epsmtip132666b6b611e3139683920ed3d69e244~3MfRrOSR92477624776epsmtip1a; Fri, 10 Jun 2022 07:31:53 +0000 (GMT) From: Alim Akhtar To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, linux-phy@lists.infradead.org Cc: devicetree@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, avri.altman@wdc.com, bvanassche@acm.org, martin.petersen@oracle.com, chanho61.park@samsung.com, pankaj.dubey@samsung.com, Alim Akhtar Subject: [PATCH v3 0/6] Add support for UFS controller found in FSD SoC Date: Fri, 10 Jun 2022 12:59:18 +0530 Message-Id: <20220610072924.12362-1-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOKsWRmVeSWpSXmKPExsWy7bCmum7O50VJBh/nKVg8mLeNzeLlz6ts FtM+/GS2uLxf22L+kXOsF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-CMS-MailID: 20220610073155epcas5p397e45ae128b29d3f99942fddf9afc0a3 X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220610073155epcas5p397e45ae128b29d3f99942fddf9afc0a3 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220610_003210_898583_CD6D322C X-CRM114-Status: GOOD ( 15.55 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org This series adds support for UFS controller found in FSD SoC. The HCI is almost same as found on other Exynos SoCs with minor differences. This also adds the required UFS-PHY driver changes. Patch 2/7: common change to handle different CDR offsets *Changes since v2: - Addressed review comments from Chanho - collected reviewed-by, tested-by tags - rebased on next-20220609 *Changes since v1: - Addressed review comments from Bart, Krzysztof, Chanho - collected Ack-by tags - rebased on next-20220602 Alim Akhtar (6): dt-bindings: phy: Add FSD UFS PHY bindings phy: samsung-ufs: move cdr offset to drvdata phy: samsung-ufs: add support for FSD ufs phy driver dt-bindings: ufs: exynos-ufs: add fsd compatible ufs: host: ufs-exynos: add mphy apb clock mask ufs: host: ufs-exynos: add support for fsd ufs hci .../bindings/phy/samsung,ufs-phy.yaml | 1 + .../bindings/ufs/samsung,exynos-ufs.yaml | 1 + drivers/phy/samsung/Makefile | 1 + drivers/phy/samsung/phy-exynos7-ufs.c | 3 + drivers/phy/samsung/phy-exynosautov9-ufs.c | 2 + drivers/phy/samsung/phy-fsd-ufs.c | 58 +++++++ drivers/phy/samsung/phy-samsung-ufs.c | 6 +- drivers/phy/samsung/phy-samsung-ufs.h | 3 +- drivers/ufs/host/ufs-exynos.c | 143 +++++++++++++++++- drivers/ufs/host/ufs-exynos.h | 1 + 10 files changed, 216 insertions(+), 3 deletions(-) create mode 100644 drivers/phy/samsung/phy-fsd-ufs.c base-commit: ff539ac73ea559a8c146d99ab14bfcaddd30547a