From patchwork Tue May 31 01:22:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 12865017 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 8BEE2C433F5 for ; Tue, 31 May 2022 01:25:28 +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=iPC1c6FeBj0V/VHwDzhem/pYaklVmGNU4S+DgtFcUqM=; b=DW+j7OcGhcjT7X X0e1EHaGq/v3Aym8ehWqtbhe1H8j9OMPUutf11UXaaU1OSXGjp93s8NePRoxXwGSa8PREQ/PeEqEh LysKcRACjZaUHpGGp284DUEbQzrKXejWYlqFt9pHM+RTuIR8VI9qTfqAEWofwNoPz4vlraCJc7prP 9nGHDcysfVbvT2CYm6KDh4hDqUTvX4uuvigx3X9XaoBfKyPRJjKOAZqge0YPl5Bo6aBALfF4DceNL NFjROv1qmu9ZkbipYYi2U/zuZmZUzJsNmR2RZPeg3CiYwvTm1zer9T3TqoFOXrwroj9Z1I9jKVPph 171NPi7wFiRfOQ9L5/MQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nvqbs-008nzN-2j; Tue, 31 May 2022 01:23:48 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nvqbo-008nwG-2R for linux-arm-kernel@lists.infradead.org; Tue, 31 May 2022 01:23:46 +0000 Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20220531012335epoutp03156594c42347fd9c5e5385f14a30f20d~0DA2SklsR1677316773epoutp03_ for ; Tue, 31 May 2022 01:23:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20220531012335epoutp03156594c42347fd9c5e5385f14a30f20d~0DA2SklsR1677316773epoutp03_ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1653960215; bh=BIxyiwfJS8WC2lXfrfvvUTI+RGWMHUX5CSx4MIxIl4c=; h=From:To:Cc:Subject:Date:References:From; b=Tz7g8OGorxj2OAKYAKPpp1SgUO2yZd8DXdABmg+1BNuK6QbTzaD6DUnpZSBkca2g9 s0j+2iBqPRz99vk8Aei72ItPC3JrG2VFMuGS1y5L6XRW8zBmA0pJtZELAUU3Zr+0QG qCTdgWDNYlcpL0iJgZibrRZ7W+90efKSx/h0b+b0= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20220531012335epcas5p1577a4b30fdac44ab4cec18065da4be29~0DA118a6e1430814308epcas5p1i; Tue, 31 May 2022 01:23:35 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.174]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4LBvg75qYpz4x9Q1; Tue, 31 May 2022 01:23:31 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 1B.4B.10063.31E65926; Tue, 31 May 2022 10:23:31 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20220531012331epcas5p23a835b3635e187ef04d4f28f0933f7c1~0DAySUxIY0088200882epcas5p2f; Tue, 31 May 2022 01:23:31 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220531012331epsmtrp2c37f4308b4e062edca4c16abdc12a384~0DAyRVdty2334523345epsmtrp2m; Tue, 31 May 2022 01:23:31 +0000 (GMT) X-AuditID: b6c32a49-4cbff7000000274f-59-62956e13191c Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 8B.5F.11276.31E65926; Tue, 31 May 2022 10:23:31 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220531012329epsmtip27be3fcac4e87382ea714681e9e8fbcec~0DAwVKqOp0656506565epsmtip2A; Tue, 31 May 2022 01:23:29 +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 0/6] Add support for UFS controller found in FSD SoC Date: Tue, 31 May 2022 06:52:14 +0530 Message-Id: <20220531012220.80563-1-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOKsWRmVeSWpSXmKPExsWy7bCmhq5w3tQkg0mHdSwezNvGZvHy51U2 i2kffjJbXN6vbTH/yDlWi74XD5ktNj2+xmpxedccNosJq76xWHRf38Fmsfz4Py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: 20220531012331epcas5p23a835b3635e187ef04d4f28f0933f7c1 X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220531012331epcas5p23a835b3635e187ef04d4f28f0933f7c1 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220530_182344_686753_338CBCE5 X-CRM114-Status: GOOD ( 15.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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/6: common change to handle different CDR offsets 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 support for fsd ufs hci arm64: dts: fsd: add ufs device node .../bindings/phy/samsung,ufs-phy.yaml | 1 + .../bindings/ufs/samsung,exynos-ufs.yaml | 1 + arch/arm64/boot/dts/tesla/fsd-evb.dts | 4 + arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi | 14 ++ arch/arm64/boot/dts/tesla/fsd.dtsi | 29 ++++ 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 | 63 ++++++++ drivers/phy/samsung/phy-samsung-ufs.c | 6 +- drivers/phy/samsung/phy-samsung-ufs.h | 3 +- drivers/ufs/host/ufs-exynos.c | 143 +++++++++++++++++- 12 files changed, 267 insertions(+), 3 deletions(-) create mode 100644 drivers/phy/samsung/phy-fsd-ufs.c base-commit: d3fde8ff50ab265749704bd7fbcf70d35235421f