Message ID | 20230303031728.24251-5-allen-kh.cheng@mediatek.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp199714wrd; Thu, 2 Mar 2023 19:19:27 -0800 (PST) X-Google-Smtp-Source: AK7set/wBZDACCyb/sfvfwdVRzEcEn7LaKsSmXXuCv8pGQqDWIOIibyUh4doVoflI/n3ay+fP8ua X-Received: by 2002:a17:902:ec8a:b0:19d:138b:7c4a with SMTP id x10-20020a170902ec8a00b0019d138b7c4amr679713plg.3.1677813567030; Thu, 02 Mar 2023 19:19:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677813567; cv=none; d=google.com; s=arc-20160816; b=tRbpj80hWDmiW4H5shgdSuC3VulHCqX2xYWch915n1xHwjD0iSbxoS/TKPUfTlgFN2 fg4vzu9hn1yc0nryCbEueIkwLPDW/0I1Xky3JRRUrsDXseV3FOC3i3OgC29wkvkg6td6 wiJwYYGqm1SPqqCC0Ikbp4WDBK0AnB8gZXU6pHNS1VaeMYE9ghG/DtXuiLtmGDQhL3HY Tv1Csk8t9p6kI+3dgzv8rO6oWHbFIf8tNk4pfI3PAPAOczTf08cLUTqxoswYuTu1V/Qu pkCe8ridBbTOyZlzqrtVNhndJy7/zvFkXO2ODdjqd/w+jDvC3lcqmj/ymQRM/idDXoqm XVAA== 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=oaloW61vYsYhb9woC0pGOBCyeLOtwht+oMl/dWqapWk=; b=c1ifFdzr3uUgcWIpcUQYd41NW+m618zRVA6uEWFzZEe5KF8fIe4VhLUq37tyZ5BH+6 F/emINf+ndNL0jyyR0L1HQgdpB9uuTSAERorBNTR+rjkjkxiY11+1PThidSXDhtHXIsz Dllo4+tlJlFEr/zE4Gie4HVeEryNrWk/LQs41/wRrRxjv2gTkjPXZhSH3ISx6cOLZ+M1 rnLovMjdc/4UjPrR89eQCgief4KZfeKm+UU75RhQuvUV+MWI8tmzA2xu1ntH+tEmQDmy bm0M124x4dD2PKggzzTaxNHXb0+UoZq/os0w+mU38UEOPNd0eER08PhP2To4csvuPD9V EvZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=glsV0qyl; 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 kv6-20020a17090328c600b001991584ad17si961537plb.34.2023.03.02.19.19.14; Thu, 02 Mar 2023 19:19:27 -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=glsV0qyl; 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 S229881AbjCCDRs (ORCPT <rfc822;davidbtadokoro@gmail.com> + 99 others); Thu, 2 Mar 2023 22:17:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbjCCDRk (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 2 Mar 2023 22:17:40 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF36E57D0B; Thu, 2 Mar 2023 19:17:38 -0800 (PST) X-UUID: f0a2e3b4b97111ed945fc101203acc17-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=oaloW61vYsYhb9woC0pGOBCyeLOtwht+oMl/dWqapWk=; b=glsV0qyltodDN1H7Hc4nHPJnafy87ifaNCK70NIgIIgvDQ6eLqi3VCo/PHGDgUvwNuyw3+pj1zr/K2L62BOf/hiaMM55SVaWNmbXSCDtmS3c199bge5/LITgMEjqR2n3IBi5Feh4am7UHTBC1eYixIr3e7xVeRylN0LHkRqlcjQ=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.20,REQID:7e66b9e1-ce1b-48b5-8685-9df117c0e00a,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:7e66b9e1-ce1b-48b5-8685-9df117c0e00a,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:9af59ef4-ddba-41c3-91d9-10eeade8eac7,B ulkID:230303111735DBDLI1P1,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: f0a2e3b4b97111ed945fc101203acc17-20230303 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw02.mediatek.com (envelope-from <allen-kh.cheng@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1106794499; Fri, 03 Mar 2023 11:17:33 +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:32 +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:32 +0800 From: Allen-KH Cheng <allen-kh.cheng@mediatek.com> To: Matthias Brugger <matthias.bgg@gmail.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Stephen Boyd <sboyd@kernel.org>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> CC: <Project_Global_Chrome_Upstream_Group@mediatek.com>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-mediatek@lists.infradead.org>, <hsinyi@chromium.org>, Allen-KH Cheng <allen-kh.cheng@mediatek.com> Subject: [PATCH v3 4/7] arm64: dts: mediatek: mt8186: Add ADSP node Date: Fri, 3 Mar 2023 11:17:25 +0800 Message-ID: <20230303031728.24251-5-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 Content-Type: text/plain 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759315039206897235?= X-GMAIL-MSGID: =?utf-8?q?1759315039206897235?= |
Series |
Add and update some driver nodes for MT8186 SoC
|
|
Commit Message
Allen-KH Cheng
March 3, 2023, 3:17 a.m. UTC
Add ADSP node for MT8186 SoC.
Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
---
arch/arm64/boot/dts/mediatek/mt8186.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
Comments
Il 03/03/23 04:17, Allen-KH Cheng ha scritto: > Add ADSP node for MT8186 SoC. > > Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com> > --- > arch/arm64/boot/dts/mediatek/mt8186.dtsi | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi > index 0e42bdbd2cb6..337bcf3c1571 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi > @@ -633,6 +633,22 @@ > interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH 0>; > }; > > + adsp: adsp@10680000 { > + compatible = "mediatek,mt8186-dsp"; > + reg = <0 0x10680000 0 0x2000>, <0 0x10800000 0 0x100000>, > + <0 0x1068b000 0 0x100>, <0 0x1068f000 0 0x1000>; > + reg-names = "cfg", "sram", "sec", "bus"; > + clocks = <&topckgen CLK_TOP_AUDIODSP>, <&topckgen CLK_TOP_ADSP_BUS>; Was missing <&topckgen CLK_TOP_AUDIO_H> intentional here? AFAIK, that's required for the ADSP. Regards, Angelo
Hi Angelo, On Fri, 2023-03-03 at 12:31 +0100, AngeloGioacchino Del Regno wrote: > Il 03/03/23 04:17, Allen-KH Cheng ha scritto: > > Add ADSP node for MT8186 SoC. > > > > Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com> > > --- > > arch/arm64/boot/dts/mediatek/mt8186.dtsi | 16 ++++++++++++++++ > > 1 file changed, 16 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi > > b/arch/arm64/boot/dts/mediatek/mt8186.dtsi > > index 0e42bdbd2cb6..337bcf3c1571 100644 > > --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi > > +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi > > @@ -633,6 +633,22 @@ > > interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH > > 0>; > > }; > > > > + adsp: adsp@10680000 { > > + compatible = "mediatek,mt8186-dsp"; > > + reg = <0 0x10680000 0 0x2000>, <0 0x10800000 0 > > 0x100000>, > > + <0 0x1068b000 0 0x100>, <0 0x1068f000 0 > > 0x1000>; > > + reg-names = "cfg", "sram", "sec", "bus"; > > + clocks = <&topckgen CLK_TOP_AUDIODSP>, > > <&topckgen CLK_TOP_ADSP_BUS>; > > Was missing <&topckgen CLK_TOP_AUDIO_H> intentional here? > > AFAIK, that's required for the ADSP. > > Regards, > Angelo This may be dependent on the design of the chipset. CLK_TOP_AUDIO_H will be used by the afe (audio-controller) node. This is not used for DSP in the MT8186 architecture. Thanks, Allen
diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi index 0e42bdbd2cb6..337bcf3c1571 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi @@ -633,6 +633,22 @@ interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH 0>; }; + adsp: adsp@10680000 { + compatible = "mediatek,mt8186-dsp"; + reg = <0 0x10680000 0 0x2000>, <0 0x10800000 0 0x100000>, + <0 0x1068b000 0 0x100>, <0 0x1068f000 0 0x1000>; + reg-names = "cfg", "sram", "sec", "bus"; + clocks = <&topckgen CLK_TOP_AUDIODSP>, <&topckgen CLK_TOP_ADSP_BUS>; + clock-names = "audiodsp", "adsp_bus"; + assigned-clocks = <&topckgen CLK_TOP_AUDIODSP>, + <&topckgen CLK_TOP_ADSP_BUS>; + assigned-clock-parents = <&clk26m>, <&topckgen CLK_TOP_MAINPLL_D2_D2>; + mbox-names = "rx", "tx"; + mboxes = <&adsp_mailbox0>, <&adsp_mailbox1>; + power-domains = <&spm MT8186_POWER_DOMAIN_ADSP_TOP>; + status = "disabled"; + }; + adsp_mailbox0: mailbox@10686000 { compatible = "mediatek,mt8186-adsp-mbox"; #mbox-cells = <0>;