Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1148114iol; Fri, 10 Jun 2022 01:00:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/qpld1Odj2WE3Y1Mc9gAAXBpLmPdPd+lvVbAHiJcyVbVHnDdOVOIEIY/ldAiH994XJwdZ X-Received: by 2002:a17:907:72d3:b0:6ff:52e7:ee0a with SMTP id du19-20020a17090772d300b006ff52e7ee0amr38592827ejc.146.1654848027053; Fri, 10 Jun 2022 01:00:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654848027; cv=none; d=google.com; s=arc-20160816; b=qYjxr2g5bi2xbNrxoGYCNWjLC9sOllPB6El00tzS1Dtzctamaq1yGOGBsHOu257mFL NSrZonsTdZe4SXP8bw+DzTrwmHIkSS/jgwU/bhY9DCOeDYuQaWy4BxCf5u85MPR+earx EhPtIUb4lc4h/PPSPrndsAyfHzXaYHyliPpzfAZCik2F5LUqP5zd44UjgjXfuOPF1DK0 blcVrICvWaponbbAWgMCo6XxaDY1YTNQVis74ZMqd4Qe80SDK37ewu63xpk4HthBu6Dn GAKmsC9GbJdB1FWDGUKjQy5KbR2B/1mREqKJDX3ObJxqnC/zlhepozfv2wM5ms7G2PwG w90Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=txhypdCSGxcpzunLj6FnsUocQ8uwPEWPghvi9lfqylE=; b=sk/mcxQR8n6h//SCW1AhsoquzSnR3o1rrgUjzZ3r4+P8NmAnznpT+z5WJthvT0rKNz Pfr5Hop1lB4dLSAh54vWYtSL6BBZlZJhHW9H3Gjm/NE4k301oC0AWjBUVctN0TDkKO6T tOjZQZJnsuyckyuik9STPadjXTj4iOhiNB1wdrV0Dorxpvov/74cPtOzQEioT0Q/W22Z xGCU+Mab2mz/Qz34PyBbPaCo/Z/sD1e7YKaGd/DCIOs+EVgX6JeEtEVMgIgePoEb93jd fcEoRT9f3Hw+nXJ0+CSbSHYND2so5XvOm2oc6+pcBQBTpMjAdNNq3waTt6bfRU6Q8WDw Sv6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=SbV0HBuD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb14-20020a170907160e00b00712073ee185si65973ejc.855.2022.06.10.00.59.58; Fri, 10 Jun 2022 01:00:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=SbV0HBuD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346804AbiFJHcT (ORCPT + 99 others); Fri, 10 Jun 2022 03:32:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346795AbiFJHcO (ORCPT ); Fri, 10 Jun 2022 03:32:14 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF820114683 for ; Fri, 10 Jun 2022 00:32:05 -0700 (PDT) Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220610073204epoutp045da324655aa91898b44f14f22190fd93~3MfbHv-g-2654126541epoutp04V for ; Fri, 10 Jun 2022 07:32:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220610073204epoutp045da324655aa91898b44f14f22190fd93~3MfbHv-g-2654126541epoutp04V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1654846324; bh=txhypdCSGxcpzunLj6FnsUocQ8uwPEWPghvi9lfqylE=; h=From:To:Cc:Subject:Date:References:From; b=SbV0HBuDphZSeJJlgk9PcIscy0qTaM87R0B2XZPyd6TS7jXu8Kn+MWzGPOOch5S3C zL780ezhttF3+qVMNjJ5y3JlVObPZSEHyfrrKmHg7zAW2heNMS6Gf9KpLremPQptAU cbDpw3BxHjW6j1U1F+TAs365fv4vv76tICZL6iN8= 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+kXOsFn0vHjJbbHp8jdXi8q45bBYTVn1jsei+voPNYvnxf0wWi7Z+Ybdo 3XuE3WLnnRPMDnwel694e2xa1cnmcefaHjaPzUvqPT4+vcXi0bdlFaPH501yHu0HupkCOKKy bTJSE1NSixRS85LzUzLz0m2VvIPjneNNzQwMdQ0tLcyVFPISc1NtlVx8AnTdMnOArlZSKEvM KQUKBSQWFyvp29kU5ZeWpCpk5BeX2CqlFqTkFJgU6BUn5haX5qXr5aWWWBkaGBi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vnxf0wWi7Z+Ybdo 3XuE3WLnnRPMDnwel694e2xa1cnmcefaHjaPzUvqPT4+vcXi0bdlFaPH501yHu0HupkCOKK4 bFJSczLLUov07RK4Mh5fbWEvuMhT8Wj2TrYGxuucXYycHBICJhKzdzcwdTFycQgJ7GCUaP0/ kxkiIS1xfeMEdghbWGLlv+dgtpBAE5PEzPu5IDabgLbE3elbmEBsEYF2Ron729lABjELzGKS eD/pCSNIQljAXeJY+x4wm0VAVaK1ZxsbiM0rYCMxYc4BJogF8hKrNxxgnsDIs4CRYRWjZGpB cW56brFhgVFearlecWJucWleul5yfu4mRnCQamntYNyz6oPeIUYmDsZDjBIczEoivAG3FyUJ 8aYkVlalFuXHF5XmpBYfYpTmYFES573QdTJeSCA9sSQ1OzW1ILUIJsvEwSnVwNQySVMxNrBI PODvnG8tP9yS8nsLe4sSchkNDn14sc/qRf2n35sn24of4leaxXXz96+zvg/uqUntD18aJD1z Wlpwe7k8v19JhSFHS67nPzELVkEmIbsnm484Fe+OSPY/7sKY+Hnafr778x9PfeEy6xD/Nm+R 1NJtZ1Q9bBY+FdhkHKJy7H+r+JsDNUYNrNNYOqLv3WwQT2Bl6Nz8ZsvLW8XZt8UexPM+O/Q4 dH1y2iwLmVLJqqOB97lSrhfOSd37rND1R2u5jN/3ZY/Wn+hy01GaL7rYapJ42haW5sSZezcZ mXtUeS+yDFuq2PnrueGaU3N7iqclXihRdrsj5q99sWmKhpH9w7quTU23TQ7WKrEUZyQaajEX FScCAGPXBtnBAgAA X-CMS-MailID: 20220610073155epcas5p397e45ae128b29d3f99942fddf9afc0a3 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220610073155epcas5p397e45ae128b29d3f99942fddf9afc0a3 References: X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 -- 2.25.1