From patchwork Mon Sep 9 11:14:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13797137 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 E7387ECE57A for ; Mon, 9 Sep 2024 14:00: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:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ckgyamt9fIAy8TE1Yk1YBjU42OpcFXF6RxP0WQ2W6QI=; b=YBdMpKGhtqJ159HqaLtNlhgBVC LJ9tS0K/QmpijHk9+lDDwe+zQjenm4VbNpcZj1OcuPqYvQwx9mQjaO0Y6n3y2iQv8Vrr2rDCBlGCX K6jdcsqJQxU6B6JucM8DZY24NXygWVAbf0PGFJaFlfRYhlI4CfV8yiNJdg4a7EiUNrXUCwXb2MMj0 B2t6eakHmIvW2lO5ptV0ZN72hyuNQrzNL21sqPncAP4BsANKAOLkcNmDLRAlOVIltQeh+eb9IR2YI 4fZgE0yIlk8E32GRrp/EJbeZm/7SRHt6q9Nwo3KkYrsNSMyYgmwmPIzEMWrwUXYPHOk13WMAZq6FF MPTvKEMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snewL-00000002B6o-1sKu; Mon, 09 Sep 2024 14:00:25 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncPR-00000001dLt-0ump for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 11:18:19 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-207115e3056so12089505ad.2 for ; Mon, 09 Sep 2024 04:18:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725880696; x=1726485496; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ckgyamt9fIAy8TE1Yk1YBjU42OpcFXF6RxP0WQ2W6QI=; b=hJZCjfL2kJUJcPylSi3eazOxXJnzBtFnaN8vpP4lGDAMCsy5L7h/AAh5t3JCMWGaUV XUsbHzSySwZ9SFBJwGTKwK2DbbefbvK8vkl1307uko2RRzG5ubKx4DaN45mGwUfHgOWO pxzNQtsxDgjOlaEMzho/Lh+Elo05quJGKa4T0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725880696; x=1726485496; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ckgyamt9fIAy8TE1Yk1YBjU42OpcFXF6RxP0WQ2W6QI=; b=N5EvIesjFa6fBVJZpiFCDYtpIA2CDua6RLtM/0rrALZCec8sWvc+Q/L0K2mZ0UAXGm mxCRDOMw+5WXk4tw6qS7OYWWI9l92iB1g3bPziqpH8BzEZljWaoL+SjXXgkBI4ObcRpi AjL3TIRnpaOvNZHIk4F9qoaFVeHW3J2JtLC3HgecNc/VNQNbsd+feHh4VcVgZQ/VDNvZ 8Y82AF0iswCWL8nmguS5SWJAuluWseHvJ5Auvo0C5y5K2B9r0Zmz5gLhEPlVblvM56CR Ctgu1yS2TsVwuLtC3An9ML9RL9lIdtJW6s4veeak0DO89ve1m5lyVYbc/8pT987b8Sa5 BWLQ== X-Forwarded-Encrypted: i=1; AJvYcCV+BR7h1jqC8RqYxwGywhEWdl3Zu5n5mARsMG3Hja8plDwtP2aQna9Z2jPHEua5PVtmv5nYN1rcsMqLrtODvgFG@lists.infradead.org X-Gm-Message-State: AOJu0YzIVB3O+a6kWNfQg6QtEmPBVELFh2IrvDi7NWEsuADk+fvSvKWO iZqEbfhH7Pr5bGSWEzE34qJJhGp/7KbslGREnkppl7+YvctUYxVu/mn8Xb5JAQ== X-Google-Smtp-Source: AGHT+IFRpkGOOqIZHwaCAgwZfgwkno7RZN67aHUXn/a4/ib3Hspbmk92vpL01CBwnX4m3qWy82ITrg== X-Received: by 2002:a17:902:ea12:b0:207:1826:2f0d with SMTP id d9443c01a7336-20718262f70mr43516725ad.59.1725880696573; Mon, 09 Sep 2024 04:18:16 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:6647:6d5f:dd48:8f5c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f1dc55sm32039745ad.186.2024.09.09.04.18.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:18:16 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH 11/13] arm64: dts: mediatek: mt8188: Add SPMI support for PMIC control Date: Mon, 9 Sep 2024 19:14:24 +0800 Message-ID: <20240909111535.528624-12-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240909111535.528624-1-fshao@chromium.org> References: <20240909111535.528624-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_041817_492718_81849D84 X-CRM114-Status: GOOD ( 10.61 ) 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 Add SPMI node for PMIC control on MT8188 SoC. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 4593bc1fb5b7..08f13ccefcfc 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1311,6 +1311,18 @@ pwrap: pwrap@10024000 { clock-names = "spi", "wrap"; }; + spmi: spmi@10027000 { + compatible = "mediatek,mt8188-spmi", "mediatek,mt8195-spmi"; + reg = <0 0x10027000 0 0x000e00>, <0 0x10029000 0 0x000100>; + reg-names = "pmif", "spmimst"; + assigned-clocks = <&topckgen CLK_TOP_SPMI_M_MST>; + assigned-clock-parents = <&topckgen CLK_TOP_ULPOSC1_D10>; + clocks = <&infracfg_ao CLK_INFRA_AO_PMIC_AP>, + <&infracfg_ao CLK_INFRA_AO_PMIC_TMR>, + <&topckgen CLK_TOP_SPMI_M_MST>; + clock-names = "pmif_sys_ck", "pmif_tmr_ck", "spmimst_clk_mux"; + }; + infra_iommu: iommu@10315000 { compatible = "mediatek,mt8188-iommu-infra"; reg = <0 0x10315000 0 0x1000>;