Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp9531302ioo; Sun, 5 Jun 2022 17:28:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+F0vuRRn9BdbV4mqYi1S07GODjoY6UmthF0xDphZBi9FfPG2NjXNC5QI5X+485+h89e5J X-Received: by 2002:a17:902:a581:b0:162:33b3:fff2 with SMTP id az1-20020a170902a58100b0016233b3fff2mr21415479plb.173.1654475294901; Sun, 05 Jun 2022 17:28:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654475294; cv=none; d=google.com; s=arc-20160816; b=VDVwUFAPCDMz0bGp8QKvX+bRpBsJShM/qLpN6cFDWR/cgZrcUqvx4xhFMr008GbPre V9spkU+W+7nRweQEJVL+hJcd29GvTnQlWOQD/M4BqzeyV8Uk+iwlU5+P+LbTuoCUDQFd CsCsJ7D0HDJGcwN4tReGXCaTG0Ffl0XOJ2P/N/bvTRdygmb2jEE9UxtL9H1jp2lFt3DC aIQZM6W7kKNZgsgNnO8YffOBBAtHgbsBN1FL5/LA2OfwVI+EgKsPt6Qkis+6aaXwy1Cp ANnw/3fDuMEdy3uIIHuiWOuT5nA6Am54G2NMjYmSXhwJTH5QdoFOrsIL/IaAAqHvoWvn CrEg== 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=sWWYrw8VuDqq0QJl4Hk/RiH6NmDQDCjSyYfztasWBHg=; b=jMO6hrCpOBus4lPvC4H52I5B99WF/LRC2pwB5uJyKy4oiZ0N4hdsl6BWfHrIJRN87q OQIePDEI76cqPBR879Dkk0jZXH9ffLmrs0wm+6lh590vxyoLzaWl9hvvFSglRnbHCLOP /jPhxq8LYwakaexrVQtXXDNay6k2w1vfEV/5k6uSFUV/LOrQftDbiHldGME8Gsqc7oQW T995qHkRlMExSxu9nfQxQFIMiduJm+djdzpPDPGDYTbx4pmcPFMGJwY/i9fwHUCrSNj8 nd4uGk+tMDlflwmj81a+x0iMH09P+LM2tB39bbIE9VJzXg3DWB97DcDT2UspJmxfURyt cfhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=cNKhGOOi; 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 d14-20020a056a0024ce00b0051b97c12336si1915008pfv.376.2022.06.05.17.28.01; Sun, 05 Jun 2022 17:28:14 -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=cNKhGOOi; 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 S245667AbiFCPs5 (ORCPT + 99 others); Fri, 3 Jun 2022 11:48:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236200AbiFCPs4 (ORCPT ); Fri, 3 Jun 2022 11:48:56 -0400 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6104A506C6 for ; Fri, 3 Jun 2022 08:48:55 -0700 (PDT) Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220603154849epoutp026beee000557b359b7f199be4139043a2~1JwKGjkKS1535315353epoutp02v for ; Fri, 3 Jun 2022 15:48:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220603154849epoutp026beee000557b359b7f199be4139043a2~1JwKGjkKS1535315353epoutp02v DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1654271329; bh=sWWYrw8VuDqq0QJl4Hk/RiH6NmDQDCjSyYfztasWBHg=; h=From:To:Cc:Subject:Date:References:From; b=cNKhGOOiBVesRNzVFAgZlk361F2KS8KE/ELmCThwKpuX4bM9dEAmgfQu9W7EEo/3i 4sHZAiuNG/teVUASZQ5AlrewtKrW5vJeGjZBp2xqQZ3Xp9hI8QcmX0UvdqVOkYKxuk f1YAMXP8k3mDWC03fagu9z5vCOgoHAWDCHDbhf/U= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20220603154848epcas5p3fed8acf433e416fbf58724035fb37585~1JwIvjFdL1875418754epcas5p3a; Fri, 3 Jun 2022 15:48:48 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.181]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4LF6k60MFLz4x9Pp; Fri, 3 Jun 2022 15:48:46 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 78.A8.10063.D5D2A926; Sat, 4 Jun 2022 00:48:45 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20220603154845epcas5p1b3eaea1ae6bc67e3d4c22d235102a6a8~1JwF1uals1285712857epcas5p1M; Fri, 3 Jun 2022 15:48:45 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220603154845epsmtrp18f7ec9b783423038d6157dcd70616069~1JwF0ziba2840728407epsmtrp1O; Fri, 3 Jun 2022 15:48:45 +0000 (GMT) X-AuditID: b6c32a49-4cbff7000000274f-2f-629a2d5dcd61 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id C2.6C.11276.D5D2A926; Sat, 4 Jun 2022 00:48:45 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220603154842epsmtip1c73f572840caa46a8a536637525cf71d~1JwCuMgLa1990619906epsmtip1h; Fri, 3 Jun 2022 15:48:41 +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 v2 0/7] Add support for UFS controller found in FSD SoC Date: Fri, 3 Jun 2022 21:17:07 +0530 Message-Id: <20220603154714.30532-1-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCKsWRmVeSWpSXmKPExsWy7bCmlm6s7qwkg2U/zSwezNvGZvHy51U2 i2kffjJbXN6vbTH/yDlWi74XD5ktNj2+xmpxedccNosJq76xWHRf38Fmsfz4PyaLRVu/sFu0 7j3CbrHzzglmBz6Py1e8PTat6mTzuHNtD5vH5iX1Hh+f3mLx6NuyitHj8yY5j/YD3UwBHFHZ NhmpiSmpRQqpecn5KZl56bZK3sHxzvGmZgaGuoaWFuZKCnmJuam2Si4+AbpumTlAVysplCXm lAKFAhKLi5X07WyK8ktLUhUy8otLbJVSC1JyCkwK9IoTc4tL89L18l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ccNosJq76xWHRf38Fmsfz4PyaLRVu/sFu0 7j3CbrHzzglmBz6Py1e8PTat6mTzuHNtD5vH5iX1Hh+f3mLx6NuyitHj8yY5j/YD3UwBHFFc NimpOZllqUX6dglcGe8OJBU84qlY/OoPYwPjE84uRk4OCQETieWLf7N1MXJxCAnsZpS40bqF DSIhLXF94wR2CFtYYuW/5+wQRU1MErs/LGQFSbAJaEvcnb6FCcQWEWhnlLi/HWwSs8AsJon3 k54wgiSEBdwl/h1pYO5i5OBgEVCVWDObGSTMK2AjsfLpIiaIBfISqzccYJ7AyLOAkWEVo2Rq QXFuem6xYYFhXmq5XnFibnFpXrpecn7uJkZwiGpp7mDcvuqD3iFGJg7GQ4wSHMxKIrxl82Ym CfGmJFZWpRblxxeV5qQWH2KU5mBREue90HUyXkggPbEkNTs1tSC1CCbLxMEp1cBkM+0Sg1fQ y5lanK5OZx4s4IjSKz1Skvqt1bbQZtL+UyrbGxYmucWHHTZgPijpbKH7cJpJtOg2RsOZG79U b0qq3WjYWaPWYTlrrtnDaHbz/1bfUlemhWrEsD2Pnhb7827pxudT05Z61iha8JiKiS19tj9E aHmcj0HL5P0i/z994f9RJJZkNvXu6e8N3r81XN/OvW1cr7mPrfem38/ZF12KH6lvL9h/jnPG 7CWx7YKV1ka8dROzHz4vPf36vcmU/bq/96Ux3bHw2PKA2X6J289DfzOaxD8Znf7e13RX45t2 y46t9yXdSqwvyG2YHzC/RGLt9Z5pi8wOSWb/tb2tLZdeHvfjya2V/HfWac+dKvJNiaU4I9FQ i7moOBEAyqhF2MACAAA= X-CMS-MailID: 20220603154845epcas5p1b3eaea1ae6bc67e3d4c22d235102a6a8 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220603154845epcas5p1b3eaea1ae6bc67e3d4c22d235102a6a8 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, 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/7: common change to handle different CDR offsets *Changes since v1: - Addressed review comments from Bart, Krzysztof, Chanho - collected Ack-by tags - rebased on next-20220602 Alim Akhtar (7): 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: ufs-exynos: add mphy apb clock mask 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 | 58 +++++++ drivers/phy/samsung/phy-samsung-ufs.c | 6 +- drivers/phy/samsung/phy-samsung-ufs.h | 3 +- drivers/ufs/host/ufs-exynos.c | 141 +++++++++++++++++- 12 files changed, 260 insertions(+), 3 deletions(-) create mode 100644 drivers/phy/samsung/phy-fsd-ufs.c base-commit: 2e776ccffa840ce53ee1c21bde54cbe4bc102c3b -- 2.25.1