From patchwork Fri Mar 3 03:17:24 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: 63748 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp199739wrd; Thu, 2 Mar 2023 19:19:31 -0800 (PST) X-Google-Smtp-Source: AK7set9IUbK8ptW0S4+/Z1YLJ2fZi93VXuS1oicy82qSO8uiII6ggjtk/fjcE+1Gbl3+91qSHiyn X-Received: by 2002:a17:902:e752:b0:19e:748c:d419 with SMTP id p18-20020a170902e75200b0019e748cd419mr586003plf.46.1677813571513; Thu, 02 Mar 2023 19:19:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677813571; cv=none; d=google.com; s=arc-20160816; b=vO4u0IKFmx3Nu6pFCl9CGhWVbOpUZSv2NOMXrGrFoa1aowkmEI4OG8IGjGU6lTrFGN vCykk874KrNQZJvNBQ54myveOj4h8xfUsGyviGWS4UFx4hrIFSc90d1AeEj0oyqsodMK eNb53ALgKuf25scqBe1wvxYvhaqUBkv/XCIcYYT80DCKLew7UR1PvChM2tQqTjY8EAbb fP4TGC9t/iG5fQW945QRrfrklUS6iuA6fGDjDLK3YTW5R48S3V2G1S87jsfjf6WChwFT QYg+jjcmOLugQVUzJJzFDS8ow5G9RbKpUpPRBjMYa00w04+pDk4OSJpyB+NTh5HJc+lK EkOQ== 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=qvEI8FN3wBwu6ZlVwOeje29yYcekRLOHCPmieBrV1IY=; b=ySN6sHFqoqe2NHg8a2ph/j2Rviqqt1s9eJAz6tOcFrEOZOe3NHYJ78JtQG37+bdK75 zLNehVb9vP3X6vc1QiL6eyEFfQpA+VoCh7iY28UN62a8PUhID6qi2JP4pJKCkIqY98BK zwSnKzNevIaBG89vRyRjQ+uYdggLErq2tqug+HUV1hcwsh54Udjmh7P7LhFIEc3uinsm +yhK4RowjrY3Baq2oYyeyXwXUwRPff9kl1x8L59tFV/kaxXfkfHwLITr5Ve2Zi1RcJ9E aLdcNj5izggrFuWUg6PGZ8YIeO1i1pBB4TsWLJNVAEzRCh0Xui+FCGITYz8/HkVaziBr V6ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=U5KMhvsE; 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 ik14-20020a170902ab0e00b001990b9e7c81si1012824plb.568.2023.03.02.19.19.18; Thu, 02 Mar 2023 19:19:31 -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=U5KMhvsE; 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 S229783AbjCCDRp (ORCPT + 99 others); Thu, 2 Mar 2023 22:17:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjCCDRk (ORCPT ); Thu, 2 Mar 2023 22:17:40 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 667402BEF6; Thu, 2 Mar 2023 19:17:37 -0800 (PST) X-UUID: eff136fab97111eda06fc9ecc4dadd91-20230303 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=qvEI8FN3wBwu6ZlVwOeje29yYcekRLOHCPmieBrV1IY=; b=U5KMhvsEgDTojVdUFqcCGZdg9Q59hOTo6RU1y0CEnNJO/zx+o4wuHPpUbcn2Azo6WBYvupcoSD8ulwjLsGiEvk5rHwk4tzcJEr4XjQbVcyd+2JpTt7xReB/sr8uuxQVNouBP9sm2ftu2KG5WhIM8X+er6nuXjZU8rStHQ7IRttU=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.20,REQID:98863a7d-22d3-41ce-ae6b-8b72676557cb,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.20,REQID:98863a7d-22d3-41ce-ae6b-8b72676557cb,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:25b5999,CLOUDID:b9b13027-564d-42d9-9875-7c868ee415ec,B ulkID:230303111733W4RWXYOR,BulkQuantity:0,Recheck:0,SF:38|29|28|17|19|48,T C:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 ,OSI:0,OSA:0,AV:0 X-CID-BVR: 0,NGT X-UUID: eff136fab97111eda06fc9ecc4dadd91-20230303 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 36588692; Fri, 03 Mar 2023 11:17:32 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Fri, 3 Mar 2023 11:17:31 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Fri, 3 Mar 2023 11:17:31 +0800 From: Allen-KH Cheng To: Matthias Brugger , Rob Herring , Krzysztof Kozlowski , Stephen Boyd , AngeloGioacchino Del Regno CC: , , , , , , Allen-KH Cheng Subject: [PATCH v3 3/7] arm64: dts: mediatek: mt8186: Add SPMI node Date: Fri, 3 Mar 2023 11:17:24 +0800 Message-ID: <20230303031728.24251-4-allen-kh.cheng@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230303031728.24251-1-allen-kh.cheng@mediatek.com> References: <20230303031728.24251-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, SPF_PASS,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?1759315043616429961?= X-GMAIL-MSGID: =?utf-8?q?1759315043616429961?= Add SPMI node for MT8186 SoC. Signed-off-by: Allen-KH Cheng Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8186.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi index 178421fd8380..0e42bdbd2cb6 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi @@ -602,6 +602,21 @@ 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";