Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5503959ioo; Wed, 1 Jun 2022 06:58:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwT2sMz/RpA/1oVkXBQ/MeSNOLaZR2cmMVzq2ZQLlELOWC1UYzkt+2v5z/0mIINjy5CjiyD X-Received: by 2002:a17:90b:3b8a:b0:1e2:f1da:bf9b with SMTP id pc10-20020a17090b3b8a00b001e2f1dabf9bmr18014908pjb.77.1654091925164; Wed, 01 Jun 2022 06:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654091925; cv=none; d=google.com; s=arc-20160816; b=1IEYZZTkBq1kcWPBcrcE0wUREHeTcTCcQpyZuBQxKLB7VJ5v0JbKloHD5KyuDf7mAX 2Rgz7LvWvcDRHskz1lXVRAZ4gfW+WqAG2x1rT0vpDvyS9dGUL/IYlPNTpTZidHkiGNq1 AZOro7R2+z+BP5qZ0KAb0sRgN1zGEeFrU7z9q0mjgjwgOpHs7ciER37BCJL1ZzI0pNEC vd0Us3yhuEA77OofJ6Ii4yMSoxLobphi7nGI8CNAKJAyFHCXHaZgwgcOsLGsaQ6GWtn5 keG7rOr4/3NGAM7hXCBt1uQcogJzGYPzXVWxfS7VVWAdyJG8dKxM5r2TicQS1x6XPmJG recA== 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=BIxyiwfJS8WC2lXfrfvvUTI+RGWMHUX5CSx4MIxIl4c=; b=q/4FlCDg4SIKxp/KBusBGOoNvIXJVEyIB9yy0XGnVsQixTblJmP182kVobPh+uiyCl LWVohkQxxyj/i0sCVOetiQp/hUpS0lqulymXxV7ROG5N3IPg4P8qGbi4D3yRzU/VWaaq cTaT6fwdd+KB6IvK18g+EwmV/wu3/7eysaZomCSvBGV4YuDQjniHmeMJo6zQeK/XRB2v S9WMUylJALldxB4eOALm0EVoz77ehrM2GLNuNrjkkT4N9oW3PE7w+CY3bmx9vhXyHqOV iIwBeUv+swpyff9Gi3QAz9n4NCwcVZPDn9AfirokT8WJSCl1TVam/Rhm9Zj+gHI5+s2j vWSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Tz7g8OGo; 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 g22-20020a631116000000b003db2e7a9703si2339673pgl.136.2022.06.01.06.58.31; Wed, 01 Jun 2022 06:58:45 -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=Tz7g8OGo; 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 S243329AbiEaBXq (ORCPT + 99 others); Mon, 30 May 2022 21:23:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237942AbiEaBXn (ORCPT ); Mon, 30 May 2022 21:23:43 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 766B440A02 for ; Mon, 30 May 2022 18:23:41 -0700 (PDT) Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220531012335epoutp04324f25b0576a152826a0eeddac659a08~0DA2eFgUZ0078100781epoutp04K for ; Tue, 31 May 2022 01:23:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220531012335epoutp04324f25b0576a152826a0eeddac659a08~0DA2eFgUZ0078100781epoutp04K 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+xmpxedccNosJq76xWHRf38Fmsfz4PyaLRVu/sFu0 7j3CbrHzzglmBz6Py1e8PTat6mTzuHNtD5vH5iX1Hh+f3mLx6NuyitHj8yY5j/YD3UwBHFHZ NhmpiSmpRQqpecn5KZl56bZK3sHxzvGmZgaGuoaWFuZKCnmJuam2Si4+AbpumTlAVysplCXm lAKFAhKLi5X07WyK8ktLUhUy8otLbJVSC1JyCkwK9IoTc4tL89L18lJLr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2+xmpxedccNosJq76xWHRf38Fmsfz4PyaLRVu/sFu0 7j3CbrHzzglmBz6Py1e8PTat6mTzuHNtD5vH5iX1Hh+f3mLx6NuyitHj8yY5j/YD3UwBHFFc NimpOZllqUX6dglcGduPbWIt2MxdsWxrN2sD43WOLkZODgkBE4kdt1aydDFycQgJ7GaUWDjx HgtEQlri+sYJ7BC2sMTKf8/BbCGBJiaJZ98tQWw2AW2Ju9O3MIHYIgLtjBL3t7OBDGIWmMUk 8X7SE0aQhLCAi0TDkT6wZhYBVYlN7xrB4rwCNhI39syFWiAvsXrDAeYJjDwLGBlWMUqmFhTn pucWGxYY5qWW6xUn5haX5qXrJefnbmIEB6mW5g7G7as+6B1iZOJgPMQowcGsJMJrFTE1SYg3 JbGyKrUoP76oNCe1+BCjNAeLkjjvha6T8UIC6YklqdmpqQWpRTBZJg5OqQamKtn1i55/01jC XdXQVftx9oItkWVP5Tylfh72Ezglxdv454rU87+TW8UCp6k8V2uIKQz4HTiP7bmw5Bbmjza3 Nggpci1Sm+zuH7GrY0W/6cqb0imVTZ/zY3RYppwqmn7smoxnaOPpSNNgvY135i71D9Z2Cu91 jLaf1qlQ5em/h9Hy9I8Xl1L22M3bVbnxYsidyebnvxq/1l/yzi6jdGWUS0wGm35J4JzNkxK/ y3z9lrbzY3a7wpM1+55sWNSnt4wn9NcMgYKTTkpHuA2fzapcnqh+ulU7/YRtl8Hc2NrtzJnK Ou5qa3q/lXfvqS7cd+6F5NJv267+2fi6xlpjQctee96Ugj3ZIdmFVwtXXNNXYinOSDTUYi4q TgQAf9c3PsECAAA= X-CMS-MailID: 20220531012331epcas5p23a835b3635e187ef04d4f28f0933f7c1 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220531012331epcas5p23a835b3635e187ef04d4f28f0933f7c1 References: X-Spam-Status: No, score=-5.0 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 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/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 -- 2.25.1