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 36C64C624D6 for ; Tue, 1 Sep 2026 15:39:34 +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=B2hAyMVGiJ6BH6Ju1u2jM13gBSylzxvuzgajC1H1sYk=; b=efbQTs75l1OjRCy+eotlvHD8r8 AbGM0wJrfK7NgJGi/LJqNpQpzSil1lNmEKMxMZ46oX1P+8I4VrPJuE0BYvTaT1CUq64xGiDO38C0t nrEadfaNL2VTXT5j8XGqOPUEMqj2uz1BTplj/gSh9iCqU71TQz6huuBOiYS2O4tQEDEdjHivU/lxr zhjktHODZtb4LKJ57JJwZLmJ963DqZ91zJWNV1WOd9l/KSwR8g4F1u4T8F/fbBicnmcevLEcUlFT2 XfP9ZeGs15Zn0AXpL3kAtJF5mPOXUvUlWxzzU72Balb7v5mbfDsgniw72UGig5EBgQ9/6ebN42JJ3 qIJJvuKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x1QaC-0000000CWrJ-4552; Tue, 01 Sep 2026 15:39:32 +0000 Received: from bali.collaboradmins.com ([2a01:4f8:201:9162::2]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x1Qa8-0000000CWoA-10Co; Tue, 01 Sep 2026 15:39:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1788277166; bh=ZEqXV20UfJpPysNADYTF43diSa/57Iv3c2M4KOvi/ko=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=iqgYIjm61CaozZO5jGN3+HtNcpIn+Vk44nXqKp6GvsqlMjYGGvE2rNEX6Qq2Bri5z Wflj3/4NTbG+3BB6sINsUSM2CDkAbQYzkVu5Qxew3ZCXiiaYT0pktz3XQVUxVlNt0Q 3Axpb2bd7M+fUJHU/L7HQKvhRq5aeZ5MAJRegMo+FRZSuUeNAYKq37bb9FWBQP3sA2 tODPOnfppAb3aKY5eaJMBdIg1UPkiCLgd0RFhIhkHPcRvYoyl5ntW+kUqCl9DI7LKj TozqDJQsr22Qe/uIv22LwZVgOt39nrX4A769TIwbZ8XzZ9iRQVx+TQUPW4gFhU1pF1 0kRzSeZVOC5oQ== Received: from yukiji.home (unknown [100.64.0.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: laeyraud) by bali.collaboradmins.com (Postfix) with ESMTPSA id 3DF9617E0934; Tue, 01 Sep 2026 17:39:25 +0200 (CEST) From: Louis-Alexis Eyraud Date: Tue, 01 Sep 2026 17:38:49 +0200 Subject: [PATCH v11 01/24] 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: <20260901-mt8196-ufs-v11-1-dbd007704490@collabora.com> References: <20260901-mt8196-ufs-v11-0-dbd007704490@collabora.com> In-Reply-To: <20260901-mt8196-ufs-v11-0-dbd007704490@collabora.com> To: Chunfeng Yun , Vinod Koul , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Peter Wang , Chaotian Jing , Alim Akhtar , Avri Altman , Bart Van Assche , Stanley Jhu , "James E.J. Bottomley" , Philipp Zabel , Liam Girdwood , Mark Brown , Manivannan Sadhasivam , "Martin K. Petersen" , "Martin K. Petersen" Cc: kernel@collabora.com, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Nicolas Frattaroli , Conor Dooley , Louis-Alexis Eyraud X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788277163; l=2063; i=louisalexis.eyraud@collabora.com; s=20250113; h=from:subject:message-id; bh=bk5EtgAp8+Q6dY7h9oTa6fh/C3fcFtiFpYBT06lrORk=; b=ABFQXl/Fp4QESUIOE9DMTPfGvegHvTqaguXJG+n54HEydkwuFY4mu6FrGutWkHP95+ZMvFjnL 8OJICOR7Z3LAb4Apg2SG9y6gnpRm7KjrUgec04owmO33Y9a1Z6eN8XH X-Developer-Key: i=louisalexis.eyraud@collabora.com; a=ed25519; pk=CHFBDB2Kqh4EHc6JIqFn69GhxJJAzc0Zr4e8QxtumuM= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260901_083928_442559_B4DCCDFC X-CRM114-Status: GOOD ( 10.47 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org From: Nicolas Frattaroli 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 Acked-by: Conor Dooley Acked-by: Vinod Koul Signed-off-by: Nicolas Frattaroli Signed-off-by: Louis-Alexis Eyraud --- .../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.55.0