From patchwork Mon Nov 11 04:32:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sowon Na X-Patchwork-Id: 13870230 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9359D1534EC for ; Mon, 11 Nov 2024 04:33:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731299604; cv=none; b=i7G//8o5eQIqYdoHXBFVEXBZ5TffYadksMrENc2I05IhFCtAeZhFegJlsJ1LBUwB8ucaG9PXcJe83j33hTvXgkDh7ISvorprbZI6Hl36L/kWnsM70tABVSpYkkJziKEmTsjz2QoDXs8jBkEw9JgqQ0S4/wJnp+I13Bc9w83rzvs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731299604; c=relaxed/simple; bh=3zyj37RKWmpKfuiUEJwI1F3EkA+DhPSagOfYV/WjErY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: References; b=OMiKEOfElYEo3Gha9QInRf8NzUvCpCaZUB3MdD/XhuiK0uGAMsDhEYweoUxastRoP4YDKsn9r6d2uV2SyiDoH9aTCo/LasCztY/5+7gsC0k2E+arEYm9Cjdy+eMMjYiRKoepYraElK8vZSg9ZkT8Kd1Dm8XKW+/COWxKcfJEF8g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=QC+ZJ24B; arc=none smtp.client-ip=203.254.224.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="QC+ZJ24B" Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20241111043319epoutp037e3ca1f1a2e3aa8e01368cde9001d75c~Gz9AkupSe2689126891epoutp038 for ; Mon, 11 Nov 2024 04:33:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20241111043319epoutp037e3ca1f1a2e3aa8e01368cde9001d75c~Gz9AkupSe2689126891epoutp038 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1731299599; bh=FCti/Tt/UKVpKzk/W4+L3phxgm6En+igi/iZDI307DY=; h=From:To:Cc:Subject:Date:References:From; b=QC+ZJ24B+GE8ITmzTXdb4mobgXY+S6YRocSwL5nNFCJ/iGBP7JWCNFrhQznnnpjDP RKprOUYw4d2f7LZxTLuA6axsyPVaGNONDWzAz3f7l0Y56bNwef4gC4s8ZI6EHV+UWh QW0nXxccxaFDp/nw4VZOv8rloZWKjaqRKiNV/5CE= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20241111043319epcas2p297b8895ee3b7b7eb6bfae06d28b28447~Gz9AI3qkZ3227632276epcas2p2t; Mon, 11 Nov 2024 04:33:19 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.68]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4XmxW21DPbz4x9Q2; Mon, 11 Nov 2024 04:33:18 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 47.C4.09811.E0981376; Mon, 11 Nov 2024 13:33:18 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20241111043317epcas2p4fbe716e509fdd39e86c50026a2923e9f~Gz8_tcmZ_3265432654epcas2p4D; Mon, 11 Nov 2024 04:33:17 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20241111043317epsmtrp2311d8b224752f5f59eb1fc6e07199f10~Gz8_o5FHY3011930119epsmtrp2M; Mon, 11 Nov 2024 04:33:17 +0000 (GMT) X-AuditID: b6c32a48-7f9ff70000002653-b3-6731890e8a8a Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id D9.89.07371.D0981376; Mon, 11 Nov 2024 13:33:17 +0900 (KST) Received: from asswp146.dsn.sec.samsung.com (unknown [10.229.19.146]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20241111043317epsmtip18182f78502d41a28f39be13dcb46ef48~Gz8_Z2nYI3087930879epsmtip1U; Mon, 11 Nov 2024 04:33:17 +0000 (GMT) From: Sowon Na To: robh@kernel.org, krzk@kernel.org, conor+dt@kernel.org, vkoul@kernel.org, alim.akhtar@samsung.com, kishon@kernel.org Cc: krzk+dt@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, sowon.na@samsung.com Subject: [PATCH v2 0/3] Support ExynosAutov920 ufs phy driver Date: Mon, 11 Nov 2024 13:32:59 +0900 Message-ID: <20241111043306.1250488-1-sowon.na@samsung.com> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpjk+LIzCtJLcpLzFFi42LZdljTTJev0zDdYPNCNosH87axWazZe47J Yv6Rc6wWR1v/M1u8nHWPzeL8+Q3sFpd3zWGzmHF+H5PF/z072C1+/zz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generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20241111043317epcas2p4fbe716e509fdd39e86c50026a2923e9f References: This patchset introduces ExynosAuto v920 SoC ufs phy driver as Generic PHY driver framework. Changes from v1: - use exynosautov920 instead of exynosauto to specify - remove obvious comment - change soc name as ExynosAutov920 to keep consistent - use macros instead of magic numbers - specify function name - add error handling for CDR lock failure Sowon Na (3): dt-bindings: phy: Add ExynosAutov920 UFS PHY bindings phy: samsung-ufs: support ExynosAutov920 ufs phy driver arm64: dts: exynosautov920: add ufs phy for ExynosAutov920 SoC .../bindings/phy/samsung,ufs-phy.yaml | 1 + .../arm64/boot/dts/exynos/exynosautov920.dtsi | 11 ++ drivers/phy/samsung/Makefile | 1 + drivers/phy/samsung/phy-exynosautov920-ufs.c | 170 ++++++++++++++++++ drivers/phy/samsung/phy-samsung-ufs.c | 9 +- drivers/phy/samsung/phy-samsung-ufs.h | 4 + 6 files changed, 193 insertions(+), 3 deletions(-) create mode 100644 drivers/phy/samsung/phy-exynosautov920-ufs.c