From patchwork Wed Sep 11 10:51:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800243 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 31880EE4991 for ; Wed, 11 Sep 2024 11:06:49 +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=3HQV01fo8Eazmoun9faxS0xRrGLPbJrswKSNOP5sQk0=; b=2C0UKd+9a/j20zbgcbyItfdGdw ggpJj8jBXZOXmOTtdsWe0QWO2oNrO7lExGwQZ46obHZG2ZPkiqcZ3XE4XfDkceWPSp4agMPdaSM9v gEvcUtWnzmSmADxbxlulcc1XpTtUjpX0nxM/c58gUgN5rLbd/qxTHSHHfCx3zbdsRJdKU5c4We1mK EgwC0kNU+TCAok5k1V3n1Idb2lgYQfvz52ZMfxHdLBSOicXlLjWTVGOtmqk+xSE0Puc2FBHI4qSjT cy7gX2btq1eRAxaGHnBgInoeFAxFIYOHAYUSQ1jqN2aljEHRGRFGzLH6hXANpUAwF0UPGTPyPP3GR cfHD7CMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soLBI-00000009E3c-2i7n; Wed, 11 Sep 2024 11:06:40 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soKxP-00000009Ay2-39py for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2024 10:52:21 +0000 Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-7d50a42ce97so835263a12.0 for ; Wed, 11 Sep 2024 03:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726051939; x=1726656739; 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=3HQV01fo8Eazmoun9faxS0xRrGLPbJrswKSNOP5sQk0=; b=Af1fARgKBTR7H9ioeLobg4hFW84QU18a78+TJKTUmlraZnzDVHr1Q8OQW3KjU/Rv/l QHbRtZ0yuotwg7kbng/oUtJjzmUlpNJJ7LrEnRbiXMXnREWZHQpNmtr06xZimm5tJSX3 /Xb1GMvwsrsGBeaFlNz8t1R81mP4qxpfWG9hQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726051939; x=1726656739; 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=3HQV01fo8Eazmoun9faxS0xRrGLPbJrswKSNOP5sQk0=; b=oC7juij7IB9Gqghc0kT5BHq8k1uUSPdbIDmvJGO/IW5FqDLR+ffJWuHgMdvGG9WWH2 wBdkM3jRIrw602JaTLMRw6/pgCyKNoAp71IgYazfnUy24o/C0B8zoMr8uOegVr5590F8 HBl7ppyiq3WojW9HnVq4z+hECEtJEKWPM+1f55U0woq10qhZ1ImuG76FW1hGejCi3fml qzxuKNUk1dZumhnQvZ3ML3Y0SoI+YvD/1bs2e2nkMX5qkNRNLo8tJM7dGQ6b4HMtNLJh Q/1/JQaEh2y2v9FVT079RZxVwTHI8NYhZxSdqpuNxe1DNGq7YD8qDw0CJwzwaDTL0gc4 WUGQ== X-Forwarded-Encrypted: i=1; AJvYcCWl/pyj2QsLI+FP2FWBMOgCyCeeVQRB5yQUPkKAYBLju9Nfm9eK9kw/km5sZ34wC7AGOz8NCWU3BhnN2c8GecVV@lists.infradead.org X-Gm-Message-State: AOJu0Yxlv3Cy110blchKMcY55nAJWwahF7xZ3S6eVXra5gT27TdLQ46r udP31kN2qcIXaSWbAShF3d7onPRmeuqyLodoNW9TDhCkANucnuxc+RNlo5Q5cw== X-Google-Smtp-Source: AGHT+IGpIHc7bP/F9Qr9SpWnaJJbLZcEiPMmrVxSgqEtW06qM8RmvMPVCseAMDYizvq7I6rvYfbmIQ== X-Received: by 2002:a05:6a20:c703:b0:1cf:2357:df1a with SMTP id adf61e73a8af0-1cf62c8d808mr4373257637.10.1726051938654; Wed, 11 Sep 2024 03:52:18 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:102f:d738:6069:fd4b]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7d8242b3d13sm7147352a12.52.2024.09.11.03.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 03:52:18 -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 v2 6/8] arm64: dts: mediatek: mt8188: Add SPMI support for PMIC control Date: Wed, 11 Sep 2024 18:51:11 +0800 Message-ID: <20240911105131.4094027-7-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911105131.4094027-1-fshao@chromium.org> References: <20240911105131.4094027-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240911_035219_820384_F3F8EEE6 X-CRM114-Status: GOOD ( 10.34 ) 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 Reviewed-by: AngeloGioacchino Del Regno --- (no changes since v1) 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 61530f8c5599..32e5b7108f6a 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1306,6 +1306,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>;