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 8047ECCD194 for ; Thu, 16 Oct 2025 12:07:18 +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: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=dxq839aAHMctLtHNxtYiJDDAjbNWx58BYY8KBjuCdF0=; b=AiSiHtkoVi2F4i UZjdTlgrSPN2m4X4rutORmOl9zCSQTdN9zSl3OPPza69mOtb20UqJizLVGLE1kmMioZ8SrwL1U8xT iscAFKUHbJCR9WALvFCo6aJFIC+G538HsEMRYquFAq860IoT6uMkUAQjzFthQEZBHegF8Z1tvWhXe usV75EBAKRndlTwiET1pjKxH28fWzGcnRdKk34wBKYTEK0fNFIkiaOcJoFixURQJW5XA6AngKDR/r 1fVhWfrrl7QHzchiW0FaW7BnBhcJMpA1sQSlw9j377IMGF8YvajZFw0f55wXj8DHNTz++A4EoQ++r dq5RpFwoT9YrMXQW8lTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1v9MlE-00000004g8M-1uwA; Thu, 16 Oct 2025 12:07:12 +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 1v9MlB-00000004g5E-19Zt; Thu, 16 Oct 2025 12:07:11 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1760616416; cv=none; d=zohomail.com; s=zohoarc; b=U/OY09R1Umycf387LhQRQvZWdXv8njqpy4JvwlwOh6P5/txt7dlKHGsnuow2Y6m9+L9GKo98s9rA5t+grQmppVghS9EiN4KCwAdD9YhVf6k8iDQBgoe1eqcplqdE9zHy1WewTUKkq/et05/3VlnsUPaWYX/za3S9HLlNEYnySfU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1760616416; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=dxq839aAHMctLtHNxtYiJDDAjbNWx58BYY8KBjuCdF0=; b=GVSwdJmw5rqzgD1x5BxRbXFq5txk0HivTAw0atpZziWAxGR4jLn1iNJpe9d42Zxr873dBciobmGOFiKft/T5jfad8+v743K64lW2YEB1AXrueDWZ3XJwx4t5g0JlJDjBMkI/g+U/UqhaXAZrp09jL6trf65XGgWMRiymdVqpyNI= 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=1760616416; s=zohomail; d=collabora.com; i=nicolas.frattaroli@collabora.com; h=From:From:Subject:Subject:Date:Date:Message-Id:Message-Id:MIME-Version:Content-Type:Content-Transfer-Encoding:To:To:Cc:Cc:Reply-To; bh=dxq839aAHMctLtHNxtYiJDDAjbNWx58BYY8KBjuCdF0=; b=L/JmjaIh81EMz0o2ijeatci130DJ87NLZ00HdpCWEqdBE18ciO5xVau4hP8l7Xi1 LijPfqEiw5sgZuvGhqLPWspEAA6WlW4EO56UdCDxEjaxIXNAqE0IXCimoQHych8Nx16 yhISoSHJXWNGWkGHqvImOMv7wzGzbWKqlzm/lipo= Received: by mx.zohomail.com with SMTPS id 1760616413675917.2416629138661; Thu, 16 Oct 2025 05:06:53 -0700 (PDT) From: Nicolas Frattaroli Subject: [PATCH v2 0/5] MediaTek UFS Cleanup and MT8196 Enablement Date: Thu, 16 Oct 2025 14:06:42 +0200 Message-Id: <20251016-mt8196-ufs-v2-0-c373834c4e7a@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIANLf8GgC/22OQQ6CMBBFr0Jm7RhaQCkr72FYtGWQJkC1LQRDu LsV4s7lm+S9Pyt4coY8VMkKjmbjjR0j8FMCupPjg9A0kYGnvGApy3EIJRMXnFqPmnSuhBRXKjK IwtNRa5Y9dq8PdvSaYjMcR1DSE2o7DCZUyUhLwF8XvkJnfLDuvT8zs934tzszTJGJotGkykzp8 qZt30tlnTzHONTbtn0AtFB0eNkAAAA= X-Change-ID: 20251014-mt8196-ufs-cec4b9a97e53 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 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-20251016_050709_643938_C8F1AE31 X-CRM114-Status: UNSURE ( 9.67 ) 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 In this series, the existing MediaTek UFS binding is expanded and completed to correctly describe not just the existing compatibles, but also to introduce a new compatible in the from of the MT8196 SoC. The resets, which until now were completely absent from both the UFS host controller binding and the UFS PHY binding, are introduced to both. This also means the driver's undocumented and, in mainline, unused reset logic is reworked. In particular, the PHY reset is no longer a reset of the host controller node, but of the PHY node. This means the host controller can reset the PHY through the common PHY framework. The resets remain optional. Signed-off-by: Nicolas Frattaroli --- Changes in v2: - Reorder define in mtk_sip_svc.h - Use bulk reset APIs in UFS host driver - Link to v1: https://lore.kernel.org/r/20251014-mt8196-ufs-v1-0-195dceb83bc8@collabora.com --- Nicolas Frattaroli (5): dt-bindings: ufs: mediatek,ufs: Add mt8196-ufshci variant dt-bindings: phy: Add mediatek,mt8196-ufsphy variant scsi: ufs: mediatek: Move MTK_SIP_UFS_CONTROL to mtk_sip_svc.h phy: mediatek: ufs: Add support for resets scsi: ufs: mediatek: Rework resets .../devicetree/bindings/phy/mediatek,ufs-phy.yaml | 16 +++ .../devicetree/bindings/ufs/mediatek,ufs.yaml | 134 +++++++++++++++++++-- drivers/phy/mediatek/phy-mtk-ufs.c | 71 +++++++++++ drivers/ufs/host/ufs-mediatek-sip.h | 9 -- drivers/ufs/host/ufs-mediatek.c | 78 ++++++------ drivers/ufs/host/ufs-mediatek.h | 7 +- include/linux/soc/mediatek/mtk_sip_svc.h | 3 + 7 files changed, 255 insertions(+), 63 deletions(-) --- base-commit: 40a3abb0f3e5229996c8ef0498fc8d8a0c2bd64f change-id: 20251014-mt8196-ufs-cec4b9a97e53 Best regards, -- Nicolas Frattaroli