From patchwork Wed Jan 18 09:18:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen-KH Cheng X-Patchwork-Id: 45135 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2250705wrn; Wed, 18 Jan 2023 02:14:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXs057Av9FMkT1l2eUr6brVTcg/Xsr6EsFETzl78jk/7IcJRlUKJzLuX8RaPGBTaabOPvONl X-Received: by 2002:a17:906:f299:b0:7c0:fd1a:79ee with SMTP id gu25-20020a170906f29900b007c0fd1a79eemr6227999ejb.63.1674036852424; Wed, 18 Jan 2023 02:14:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674036852; cv=none; d=google.com; s=arc-20160816; b=OhcmN+oE6KAcT6wU5e0mP53IDwI2NlVFJoVvjrTx3GV14lypbcz54eKgj39cyAiPiG wjANOXS1rzdoWCpGCgEg9DQD/HszoRXPeREjsgQhpjDSH9f61E7lepSXmhLDZ/gjcjw/ eVe3Kls3zhJrqMBNZtHl7LkiiFkUMJxVujSUNzz8ALLWDsjDgiurpGaoi6Pi/X8bFEEq YrsuAGguArwiG69Q3zY6UO6VxBMgqEjnBPjVNIctWnPHE0oJ2CCzM0uvkI+rEaIHMAac x1rwEwG44U+KGPs9DDOysop8B4i3/xNsOgEU8owmR5vPBNa2ApScY0JHKKB8TappHr0j pIsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=/qs5AP02dhkCWqdSuirwOLn7ESeQZZWhOOpRZScjecQ=; b=jrdDGdoWnTXoXDcOTt/IMYQlnUEz366ceuTrD/eJUmg7N8ZBKyWGaPdMWeL0aSOXA2 aQcr8N1TbHVrmpHiw45+VA60R39r6fE0I0kbZyJwCSPw1eM5ilw4RySd28A2FXJC0Sut KKNdBOtsK5Fpcv4/lPY0+0N8CBjZQvZbv7pcOnEXdCLz5HU3yEl23kQmA3obLoXbmWhF LPIr7FHUZDyAib2BHZ/fWs8QquJMF2eM4bc77Z4VeSQWHGROQanPRyVD8e0cmNsTbvEp U0h2kgnwXbQkbN2V/UFsveVbznQxorsrAIfadsL8L50kgm9P6ZYK45X7UODW4u3VrcZY lIzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=BkhuMenE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bb7-20020a1709070a0700b0084d4a07de68si30075215ejc.477.2023.01.18.02.13.47; Wed, 18 Jan 2023 02:14:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=BkhuMenE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230284AbjARKNG (ORCPT + 99 others); Wed, 18 Jan 2023 05:13:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229868AbjARKLZ (ORCPT ); Wed, 18 Jan 2023 05:11:25 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 484489AAA3; Wed, 18 Jan 2023 01:18:36 -0800 (PST) X-UUID: 14e52d6e971111eda06fc9ecc4dadd91-20230118 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=/qs5AP02dhkCWqdSuirwOLn7ESeQZZWhOOpRZScjecQ=; b=BkhuMenEviQO2GrB5iJ4zjpEzc06dhfz1IPPwtZtkJ6+QNf5iMZr1MXxqrs+Mo5SaUGzfIhM7/gidITZFTDFoTqvhHJ1e8T77Lv8N7rGXxB4yoFIIEGDJGBGYk5CBCY+OuM0d0cyf8PsEMDytV6FT0DywatlAHh2qPvv8kE/mX0=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.18,REQID:aa343948-c599-493f-b43b-c70874ee8371,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:90 X-CID-INFO: VERSION:1.1.18,REQID:aa343948-c599-493f-b43b-c70874ee8371,IP:0,URL :0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTIO N:quarantine,TS:90 X-CID-META: VersionHash:3ca2d6b,CLOUDID:b91a2af6-ff42-4fb0-b929-626456a83c14,B ulkID:230118171834SGCR4KND,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OS I:0,OSA:0 X-CID-BVR: 0,NGT X-UUID: 14e52d6e971111eda06fc9ecc4dadd91-20230118 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 683439815; Wed, 18 Jan 2023 17:18:33 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Wed, 18 Jan 2023 17:18:32 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Wed, 18 Jan 2023 17:18:32 +0800 From: Allen-KH Cheng To: Matthias Brugger , Rob Herring , Krzysztof Kozlowski , Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Stephen Boyd , AngeloGioacchino Del Regno , CC: , , , , , , Allen-KH Cheng Subject: [PATCH v2 3/9] arm64: dts: mediatek: mt8186: Add SPMI node Date: Wed, 18 Jan 2023 17:18:23 +0800 Message-ID: <20230118091829.755-4-allen-kh.cheng@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230118091829.755-1-allen-kh.cheng@mediatek.com> References: <20230118091829.755-1-allen-kh.cheng@mediatek.com> MIME-Version: 1.0 X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_SPF_TEMPERROR,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755354866686396628?= X-GMAIL-MSGID: =?utf-8?q?1755354866686396628?= Add SPMI node for MT8186 SoC. Signed-off-by: Allen-KH Cheng --- arch/arm64/boot/dts/mediatek/mt8186.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi index 3d88480913eb..a8ff984f1192 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi @@ -605,6 +605,25 @@ clock-names = "spi", "wrap"; }; + spmi: spmi@10015000 { + compatible = "mediatek,mt8186-spmi", + "mediatek,mt8195-spmi"; + reg = <0 0x10015000 0 0x000e00>, + <0 0x1001B000 0 0x000100>; + reg-names = "pmif", "spmimst"; + clocks = <&infracfg_ao CLK_INFRA_AO_PMIC_AP>, + <&infracfg_ao CLK_INFRA_AO_PMIC_TMR>, + <&topckgen CLK_TOP_SPMI_MST>; + clock-names = "pmif_sys_ck", + "pmif_tmr_ck", + "spmimst_clk_mux"; + assigned-clocks = <&topckgen CLK_TOP_SPMI_MST>; + assigned-clock-parents = <&topckgen CLK_TOP_ULPOSC1_D10>; + interrupts = , + ; + status = "disabled"; + }; + systimer: timer@10017000 { compatible = "mediatek,mt8186-timer", "mediatek,mt6765-timer";