From mboxrd@z Thu Jan 1 00:00:00 1970 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 E30C5D6ACFE for ; Thu, 18 Dec 2025 12:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nwDtj3mgeOi3Ut4IR/lqkpMxNliSZQOF+Un/kvU4JKI=; b=ZsYEmKStsGtZlLoBcAPvSrTugp jOTdfh47zLURyVlScS9Q2aWFPDAmzP+6ry652KJaQH7ejn1PGJBCyK2YjP0pyLM6F/ljaE5FSft8j 9mSTve6IYaZleVBDNXABmsfv5EcZmMnIiTj+u2Rus7Ub6h7FTWXCLpnEt/MO8kwsEBFsLAQIfWqzw Yqb+L1bWVi5kcXiS1oA0oXXE/3KsVjIS+QcAX37CfO05bI1Yd1t5z7ZEnMFkO/U79bRNGbxyxHZyx JoroMsh248Ts/ejIgxnROFfd2EmGPJbJHErwTyxDM81OZ+laS/U89DPVllmKBTcvvdvKI3ntz1vBm yvB+lfDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vWDXt-00000008Rcy-0FSc; Thu, 18 Dec 2025 12:55:53 +0000 Received: from sender4-pp-f112.zoho.com ([136.143.188.112]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vWDXo-00000008Ran-2447; Thu, 18 Dec 2025 12:55:51 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1766062538; cv=none; d=zohomail.com; s=zohoarc; b=YZh6BlOvMVwTgvWFQqHW0RShnEDk4hjc1h5VIC2bgJDWXuD+ibFDhOPgr7YnLsP4ECHzL6N1857W4sGK09+R3QAsXzS51iqb8fgSW2DOwk1WwNaT6wtAbctcw/7vmpIrU7/amA+oYgwIr5DO6h102929u0+8Wdo5LYi+skFRYyA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1766062538; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=nwDtj3mgeOi3Ut4IR/lqkpMxNliSZQOF+Un/kvU4JKI=; b=jTL2SNAm23g9d4Wr+X8iSd/RYQC9e3x6UWMe7SuZCEOvc9JIENWC61DeF868iBGG5krZNg7E3LlvxeQk6uJ6QLHReLbBPS8wT3LhEk54tcIq3I46ahmw12t1HCGpL/EWHHZhUfGR+c0fUWckiXy0DmfE1d6txPkJ6QP9IEniGIE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=nicolas.frattaroli@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1766062538; s=zohomail; d=collabora.com; i=nicolas.frattaroli@collabora.com; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:References:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=nwDtj3mgeOi3Ut4IR/lqkpMxNliSZQOF+Un/kvU4JKI=; b=V36Nliu43NOfCbknY3dKq9fa9yotq2ipkj+Wu4mZZKP61C5bAiKVTCxRUdPtK9XS KgkV/OxebOkmUFQbBfLx6zkN3NQ6ANCppYNSudGIzIc4p2njSbyBjuW6/cHy9zIO42N v+2AKszj2atl6qU/dgo/h5Z/T6oo090fOmiEoBJk= Received: by mx.zohomail.com with SMTPS id 1766062537022265.975502593526; Thu, 18 Dec 2025 04:55:37 -0800 (PST) From: Nicolas Frattaroli Date: Thu, 18 Dec 2025 13:54:51 +0100 Subject: [PATCH v4 01/25] dt-bindings: phy: Add mediatek,mt8196-ufsphy variant MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20251218-mt8196-ufs-v4-1-ddec7a369dd2@collabora.com> References: <20251218-mt8196-ufs-v4-0-ddec7a369dd2@collabora.com> In-Reply-To: <20251218-mt8196-ufs-v4-0-ddec7a369dd2@collabora.com> To: Alim Akhtar , Avri Altman , Bart Van Assche , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Chunfeng Yun , Vinod Koul , Kishon Vijay Abraham I , Peter Wang , Stanley Jhu , "James E.J. Bottomley" , "Martin K. Petersen" , Philipp Zabel , Liam Girdwood , Mark Brown , Chaotian Jing , Neil Armstrong Cc: Louis-Alexis Eyraud , kernel@collabora.com, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, Nicolas Frattaroli X-Mailer: b4 0.14.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251218_045550_564537_F5481C89 X-CRM114-Status: UNSURE ( 9.38 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The MediaTek MT8196 SoC includes an M-PHY compatible with the already existing mt8183 binding. However, one omission from the original binding was that all of these variants may have an optional reset. Add the new compatible, and also the resets property, with an example. Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Peter Wang Signed-off-by: Nicolas Frattaroli --- .../devicetree/bindings/phy/mediatek,ufs-phy.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/mediatek,ufs-phy.yaml b/Documentation/devicetree/bindings/phy/mediatek,ufs-phy.yaml index 6e2edd43fc2a..ee71dfa4e0c0 100644 --- a/Documentation/devicetree/bindings/phy/mediatek,ufs-phy.yaml +++ b/Documentation/devicetree/bindings/phy/mediatek,ufs-phy.yaml @@ -27,6 +27,7 @@ properties: - items: - enum: - mediatek,mt8195-ufsphy + - mediatek,mt8196-ufsphy - const: mediatek,mt8183-ufsphy - const: mediatek,mt8183-ufsphy @@ -43,6 +44,10 @@ properties: - const: unipro - const: mp + resets: + items: + - description: Optional UFS M-PHY reset. + "#phy-cells": const: 0 @@ -66,5 +71,16 @@ examples: clock-names = "unipro", "mp"; #phy-cells = <0>; }; + - | + #include + ufs-phy@16800000 { + compatible = "mediatek,mt8196-ufsphy", "mediatek,mt8183-ufsphy"; + reg = <0x16800000 0x10000>; + clocks = <&ufs_ao_clk 3>, + <&ufs_ao_clk 5>; + clock-names = "unipro", "mp"; + resets = <&ufs_ao_clk MT8196_UFSAO_RST0_UFS_MPHY>; + #phy-cells = <0>; + }; ... -- 2.52.0