From patchwork Fri Dec 10 17:52:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flora Fu X-Patchwork-Id: 12670563 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 2FA01C433F5 for ; Fri, 10 Dec 2021 18:02:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=y4R7QHbrmeKC5MyaPh0TzghMdpkL5bDDYHnfwf2o1a4=; b=ki9Hj4nOhozzCk 3UAK14iUymkIF/mKjE9Ii5Ox70J8ny0b8jJgCC2p+hEu7STbL5x8Udep4/3awoEmDiAZ4LMwNOrIk xaC4Iy/iEV8irdE/+e94IUA8OrkOn8TK/g+CUK3LyczXwDdO0wxEdPxtGohucSft9S6Qb9W+QXiO8 eXKp/8GlaoMuulOzq+2P8rjvN4npmWYMho8NSBXOMFE2QxPzfQPcII9jfj9ryRHiOl6ZBQKLrmDOG b++DsILPBbRRCPXYgu86HfN868+VSbKW1cqASjDHufUymwak2JNVEgAmB0DuRIIuGNwFFmR8q95Fz oPe89hT6Uz/D6piEvHFw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvkEH-00365V-Jw; Fri, 10 Dec 2021 18:02:45 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvkEC-00362T-Pt; Fri, 10 Dec 2021 18:02:43 +0000 X-UUID: 5e76eaa614154675a748db4d8d591181-20211210 X-UUID: 5e76eaa614154675a748db4d8d591181-20211210 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1334153468; Fri, 10 Dec 2021 11:02:37 -0700 Received: from mtkexhb02.mediatek.inc (172.21.101.103) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Dec 2021 09:52:42 -0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkexhb02.mediatek.inc (172.21.101.103) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 11 Dec 2021 01:52:28 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 11 Dec 2021 01:52:28 +0800 From: Flora Fu To: Matthias Brugger , Pi-Cheng Chen , Yong Wu CC: , , , Flora Fu , "JB Tsai" Subject: [PATCH 01/12] dt-bindings: memory: mediatek: Add MT8195 apu iommu bindings Date: Sat, 11 Dec 2021 01:52:12 +0800 Message-ID: <20211210175223.31131-2-flora.fu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211210175223.31131-1-flora.fu@mediatek.com> References: <20211210175223.31131-1-flora.fu@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211210_100240_909239_1C14C4A5 X-CRM114-Status: UNSURE ( 9.17 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org There are two apu iommu hardwares in MT8195. Add MT8195 apu iommu bindings. Signed-off-by: Flora Fu --- Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml | 3 +++ include/dt-bindings/memory/mt8195-memory-port.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml index 14fae9642ec9..ba1b3ce6cf99 100644 --- a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml +++ b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml @@ -81,6 +81,7 @@ properties: - mediatek,mt8195-iommu-vdo # generation two - mediatek,mt8195-iommu-vpp # generation two - mediatek,mt8195-iommu-infra # generation two + - mediatek,mt8195-iommu-apu # generation two - description: mt7623 generation one items: @@ -158,6 +159,7 @@ allOf: - mediatek,mt8192-iommu-apu - mediatek,mt8195-iommu-vdo - mediatek,mt8195-iommu-vpp + - mediatek,mt8195-iommu-apu then: required: @@ -170,6 +172,7 @@ allOf: enum: - mediatek,mt8192-iommu-apu - mediatek,mt8195-iommu-infra + - mediatek,mt8195-iommu-apu then: required: diff --git a/include/dt-bindings/memory/mt8195-memory-port.h b/include/dt-bindings/memory/mt8195-memory-port.h index 9882877cda9d..438e75140717 100644 --- a/include/dt-bindings/memory/mt8195-memory-port.h +++ b/include/dt-bindings/memory/mt8195-memory-port.h @@ -405,4 +405,8 @@ #define IOMMU_PORT_INFRA_SSUSB_R MTK_IFAIOMMU_PERI_ID(30) #define IOMMU_PORT_INFRA_SSUSB_W MTK_IFAIOMMU_PERI_ID(31) +#define IOMMU_PORT_APU_DATA MTK_M4U_ID(0, 0) +#define IOMMU_PORT_APU_VLM MTK_M4U_ID(0, 1) +#define IOMMU_PORT_APU_VPU MTK_M4U_ID(0, 2) + #endif From patchwork Fri Dec 10 17:52:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flora Fu X-Patchwork-Id: 12670505 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 8DBDFC433F5 for ; Fri, 10 Dec 2021 17:52:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=p9YmST1QEfkiE9FMA7jzRQd5T+pxecf5GKPYM5wNy9Y=; b=oqW4zRJUmgnCmj ixwMljnjr7IyhxRq/y+xSIkXzUutLOGhx0QytKifj+YIJmKEkI1BIrK0Uba6+GJeRfZw4f1AJb9+F Dil2nbRktkqkODL7EAUcLYUc2xYC9kA96Y+CGxCp/1lMA68S6amQijaZmfKo5gGmQGUDG1zHbvs3q NedSMKACmZmLUJfCdqjdqQJd9fjyV1082pFCd9mweQKBCkNWlS6G4bgSud5R+zwl/MFj8GA2rfCku IdNfPZUDFcskFIfKSGEP76cVMF/7Rj8ArY5ypXSAAals6JR25iZ4ywR8+KsQXHfkz3okvKJ2f+igj U/W1IuMXc8L5ffjbxvrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk4V-0030qx-QN; Fri, 10 Dec 2021 17:52:39 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk4T-0030pm-28; Fri, 10 Dec 2021 17:52:38 +0000 X-UUID: 41d83f91aa4c499bb61190a98278a04e-20211210 X-UUID: 41d83f91aa4c499bb61190a98278a04e-20211210 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1939036393; Fri, 10 Dec 2021 10:52:34 -0700 Received: from MTKMBS07N2.mediatek.inc (172.21.101.141) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Dec 2021 09:52:32 -0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 11 Dec 2021 01:52:30 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 11 Dec 2021 01:52:31 +0800 From: Flora Fu To: Matthias Brugger , Pi-Cheng Chen , Yong Wu CC: , , , Flora Fu , "JB Tsai" Subject: [PATCH 02/12] dt-bindings: remoteproc: mediatek: Add MT8195 in apu rproc Date: Sat, 11 Dec 2021 01:52:13 +0800 Message-ID: <20211210175223.31131-3-flora.fu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211210175223.31131-1-flora.fu@mediatek.com> References: <20211210175223.31131-1-flora.fu@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211210_095237_132197_6480EFA5 X-CRM114-Status: UNSURE ( 8.08 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add the binding description for the MT8195 remote processor. Signed-off-by: Flora Fu --- .../devicetree/bindings/remoteproc/mediatek,apu-rv.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/remoteproc/mediatek,apu-rv.yaml b/Documentation/devicetree/bindings/remoteproc/mediatek,apu-rv.yaml index c390b85040eb..cb945bc33318 100644 --- a/Documentation/devicetree/bindings/remoteproc/mediatek,apu-rv.yaml +++ b/Documentation/devicetree/bindings/remoteproc/mediatek,apu-rv.yaml @@ -22,6 +22,7 @@ properties: items: - enum: - mediatek,mt8192-apusys-rv + - mediatek,mt8195-apusys-rv - const: simple-mfd reg: From patchwork Fri Dec 10 17:52:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flora Fu X-Patchwork-Id: 12670565 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 E762BC433F5 for ; Fri, 10 Dec 2021 18:04:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YR73c3aJ/MDf7ZdVY58Qyc/EthgqV/K27IQ/oL3m7eU=; b=jB6kyw//y+NsOy cT/1XFQv4GcVHTrB/RqZftPmh2O4s4bxKJAZwidjaR3w8bmrvgZIW8cJOgzkzaqm5FL/e3EUYwqnn eXr1Pb05fheeSNw+Pr4b55nUc0rZ6i27SAEpSU2W7bcuXKZY/sPOzE/4L8GpKrS7JywSbqJzAoUO9 3+Nfj16vOfAQQzGOB2Cp6qoW/pixcmSDLtq5ER7yZYcAmjWR+iFZc5YD0cpyFIL8MfOhsvb1E617O 8QDzUcqSojS1IYz9ZJWXfK2Z+EN28DzAjxG2bIvtTrMdw2J0LNJNOM0gmxdb8q2X1iehcTEIhXMsw 0YldFPR4H8MRu65O/0cg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvkFv-0036ij-So; Fri, 10 Dec 2021 18:04:27 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvkEC-00362J-Pu; Fri, 10 Dec 2021 18:02:43 +0000 X-UUID: 718360b1c89347be9a1d4a40c21e1404-20211210 X-UUID: 718360b1c89347be9a1d4a40c21e1404-20211210 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1126745823; Fri, 10 Dec 2021 11:02:37 -0700 Received: from mtkmbs10n2.mediatek.inc (172.21.101.183) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Dec 2021 09:52:34 -0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Sat, 11 Dec 2021 01:52:33 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 11 Dec 2021 01:52:33 +0800 From: Flora Fu To: Matthias Brugger , Pi-Cheng Chen , Yong Wu CC: , , , Flora Fu , "JB Tsai" Subject: [PATCH 03/12] dt-bindings: soc: mediatek: apu: Add MT8195 APU power bindings Date: Sat, 11 Dec 2021 01:52:14 +0800 Message-ID: <20211210175223.31131-4-flora.fu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211210175223.31131-1-flora.fu@mediatek.com> References: <20211210175223.31131-1-flora.fu@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211210_100240_898333_184EF586 X-CRM114-Status: UNSURE ( 8.74 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add MT8195 APU power bindings. Signed-off-by: Flora Fu --- .../soc/mediatek/mediatek,apu-pwr.yaml | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/soc/mediatek/mediatek,apu-pwr.yaml b/Documentation/devicetree/bindings/soc/mediatek/mediatek,apu-pwr.yaml index 00f67dddb162..93afb9919f1f 100644 --- a/Documentation/devicetree/bindings/soc/mediatek/mediatek,apu-pwr.yaml +++ b/Documentation/devicetree/bindings/soc/mediatek/mediatek,apu-pwr.yaml @@ -19,6 +19,7 @@ properties: items: - enum: - mediatek,mt8192-apu-power + - mediatek,mt8195-apu-power reg: minItems: 1 @@ -47,7 +48,27 @@ required: - vvpu-supply - vmdla-supply -additionalProperties: false +additionalProperties: + if: + properties: + compatible: + enum: + - mediatek,mt8195-apu-power + then: + type: object + description: + Represent node that will trigger early probing to all iommu device. + The APU device all iommu device to be probed before boot remote tinysys. + properties: + compatible: + enum: + - mediatek,apu_combo_iommu0 + - mediatek,apu_combo_iommu1 + iommus: + maxItems: 1 + required: + - compatible + - iommus examples: - | From patchwork Fri Dec 10 17:52:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flora Fu X-Patchwork-Id: 12670537 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 C4B05C433F5 for ; Fri, 10 Dec 2021 17:56:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+dc/e9cXIcjXKqAy1pDtsf8k2O1HcIze+qCnGsuyy+M=; b=I1NboA992e0bRR C6HmkJ3UQqP2oKqx2g9E8JRC4LZPK9XOAansV7pSDHrZp6DOaCUXOyLRl4TeFAG4MgMqXskDTW+tF G/0FjQPpIlJxb/kU5PQbODBuKzRUPjb8Kd6B2tNFGaSNHY/C9xciJDne1Uqe7CunoFWIckPtpCwwB 5KGioejQ0dmbW/t6y+Rv3+YizaE+IQqofzXf3D3Hy4S/2rFvTBXNlhk1wT+pgYMTMVuK/jFArK0qC 6BwFTX1XCPItUkYCuWpU24MYP1Byo6fTGy0fYRIaJC8HL6b57nkIwxMOyuFiUghqYqts3k1NzWm0O pVh5yWOsZti1/T8Zz2Kw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk8H-00332r-3e; Fri, 10 Dec 2021 17:56:33 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk4b-0030ut-20; Fri, 10 Dec 2021 17:52:46 +0000 X-UUID: 21bf670fe8c544f7a9b8b6cbcf9a6784-20211210 X-UUID: 21bf670fe8c544f7a9b8b6cbcf9a6784-20211210 Received: from mtkcas68.mediatek.inc [(172.29.94.19)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 802192356; Fri, 10 Dec 2021 10:52:40 -0700 Received: from mtkexhb01.mediatek.inc (172.21.101.102) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Dec 2021 09:52:39 -0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 11 Dec 2021 01:52:34 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 11 Dec 2021 01:52:34 +0800 From: Flora Fu To: Matthias Brugger , Pi-Cheng Chen , Yong Wu CC: , , , Flora Fu , "JB Tsai" Subject: [PATCH 04/12] iommu/mediatek: Add APU iommu data for mt8195 Date: Sat, 11 Dec 2021 01:52:15 +0800 Message-ID: <20211210175223.31131-5-flora.fu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211210175223.31131-1-flora.fu@mediatek.com> References: <20211210175223.31131-1-flora.fu@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211210_095245_149479_AB9B9E39 X-CRM114-Status: GOOD ( 10.87 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add hardware settins for support mt8195 apu iommu. Signed-off-by: Yong Wu Signed-off-by: Flora Fu --- drivers/iommu/mtk_iommu.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c index 4bc7c76062e6..3fda9ad9f925 100644 --- a/drivers/iommu/mtk_iommu.c +++ b/drivers/iommu/mtk_iommu.c @@ -218,6 +218,13 @@ static const struct mtk_iommu_iova_region mt8192_multi_dom_apu[] = { { .iova_base = 0x70000000ULL, .size = 0x12600000}, /* APU REG */ }; +static const struct mtk_iommu_iova_region mt8195_multi_dom_apu[] = { + { .iova_base = 0x0, .size = SZ_4G}, /* APU DATA */ + { .iova_base = 0x8000000ULL, .size = 0x8000000}, /* APU VLM */ + { .iova_base = 0x20000000ULL, .size = 0xe0000000}, /* APU VPU */ + { .iova_base = 0x70000000ULL, .size = 0x12600000}, /* APU REG */ +}; + /* If 2 M4U share a domain(use the same hwlist), Put the corresponding info in first data.*/ static struct mtk_iommu_data *mtk_iommu_get_frst_data(struct list_head *hwlist) { @@ -1312,6 +1319,18 @@ static const struct mtk_iommu_plat_data mt8192_data_apu = { .iova_region_nr = ARRAY_SIZE(mt8192_multi_dom_apu), }; +static const struct mtk_iommu_plat_data mt8195_data_apu = { + .m4u_plat = M4U_MT8195, + .flags = DCM_DISABLE | MTK_IOMMU_TYPE_APU | + SHARE_PGTABLE, + .inv_sel_reg = REG_MMU_INV_SEL_GEN2, + .hw_list = &apulist, + .bank_nr = 1, + .bank_enable = {true}, + .iova_region = mt8195_multi_dom_apu, + .iova_region_nr = ARRAY_SIZE(mt8195_multi_dom_apu), +}; + static const struct mtk_iommu_plat_data mt8195_data_infra = { .m4u_plat = M4U_MT8195, .flags = WR_THROT_EN | DCM_DISABLE | @@ -1368,6 +1387,7 @@ static const struct of_device_id mtk_iommu_of_ids[] = { { .compatible = "mediatek,mt8183-m4u", .data = &mt8183_data}, { .compatible = "mediatek,mt8192-m4u", .data = &mt8192_data}, { .compatible = "mediatek,mt8192-iommu-apu", .data = &mt8192_data_apu}, + { .compatible = "mediatek,mt8195-iommu-apu", .data = &mt8195_data_apu}, { .compatible = "mediatek,mt8195-iommu-infra", .data = &mt8195_data_infra}, { .compatible = "mediatek,mt8195-iommu-vdo", .data = &mt8195_data_vdo}, { .compatible = "mediatek,mt8195-iommu-vpp", .data = &mt8195_data_vpp}, From patchwork Fri Dec 10 17:52:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flora Fu X-Patchwork-Id: 12670567 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 BD220C433EF for ; Fri, 10 Dec 2021 18:04:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LvXeXo+KpHfjuV8PIW9r3Bf8AP/Ou+5EifnEvDBtmag=; b=Tu8ZwdlGgbprmg Di1akDyZ2nUYRFEyUtDom8y1Ky9JZkmVHet0szmLgYU+XBj/BmfT0/P/d/BCGXhybwuJuoJk9fP5p fCKFImNIW07p5Rlgijc2G5PUo6aZKhZ573itsZJMBSDLgqdlye8EIr6SeYOkloIepSK6DCFckFi1g KB3P01RKCOIrY3VkLNKbXjOGnCGvdOC1U0P+ZNaqwHRz2cJr6q9R1t9S2gxgqmUsMkR4adKz9TpJ6 WnmAgKeK3icMVojnhE+yn3oprt6NG5HWB7nd4wgJs0cpb9d46JW1Y7B0SvsSqZ3NZNHseAYjG5aKU lz0Yi0VJk6I2RGNQXDoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvkG3-0036l1-0v; Fri, 10 Dec 2021 18:04:35 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvkEF-00362T-Ii; Fri, 10 Dec 2021 18:02:44 +0000 X-UUID: 8de070fcabb14949a5a38e8cdbfdb962-20211210 X-UUID: 8de070fcabb14949a5a38e8cdbfdb962-20211210 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 132050819; Fri, 10 Dec 2021 11:02:37 -0700 Received: from mtkexhb02.mediatek.inc (172.21.101.103) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Dec 2021 09:52:43 -0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkexhb02.mediatek.inc (172.21.101.103) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 11 Dec 2021 01:52:35 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 11 Dec 2021 01:52:35 +0800 From: Flora Fu To: Matthias Brugger , Pi-Cheng Chen , Yong Wu CC: , , , Flora Fu , "JB Tsai" Subject: [PATCH 05/12] remoteproc: mediatek: Add MT8195 APU remoteproc support Date: Sat, 11 Dec 2021 01:52:16 +0800 Message-ID: <20211210175223.31131-6-flora.fu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211210175223.31131-1-flora.fu@mediatek.com> References: <20211210175223.31131-1-flora.fu@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211210_100243_674358_CEABD959 X-CRM114-Status: UNSURE ( 8.91 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add MT8195 platform data in the APU remoteproc driver. Signed-off-by: Flora Fu --- drivers/remoteproc/mtk-apu-rproc.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/remoteproc/mtk-apu-rproc.c b/drivers/remoteproc/mtk-apu-rproc.c index 40af8e88f41a..dc54b87ad661 100644 --- a/drivers/remoteproc/mtk-apu-rproc.c +++ b/drivers/remoteproc/mtk-apu-rproc.c @@ -997,8 +997,23 @@ const struct mtk_apu_platdata mt8192_platdata = { }, }; +const struct mtk_apu_platdata mt8195_platdata = { + .flags = F_AUTO_BOOT, + .ipi_attrs = mt81xx_ipi_attrs, + .ops = { + .start = mt81xx_rproc_start, + .stop = mt81xx_rproc_stop, + .resume = mt81xx_rproc_resume, + .apu_memmap_init = mt81xx_apu_memmap_init, + .apu_memmap_remove = mt81xx_apu_memmap_remove, + .power_on = mt81xx_apu_power_on, + .power_off = mt81xx_apu_power_off, + }, +}; + static const struct of_device_id apu_of_match[] = { { .compatible = "mediatek,mt8192-apusys-rv", .data = &mt8192_platdata}, + { .compatible = "mediatek,mt8195-apusys-rv", .data = &mt8195_platdata}, {}, }; MODULE_DEVICE_TABLE(of, apu_of_match); From patchwork Fri Dec 10 17:52:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flora Fu X-Patchwork-Id: 12670509 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 11782C433EF for ; Fri, 10 Dec 2021 17:53:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LALXqPAqW+7Q79gDKDTzzbguncwk/m4qbImzXFUbIpM=; b=V8Sh8f8blcfAaP GYQhgBloiBYEXqXQu8C2us9eQNqwm/7EVPKDxDf7AFp5AVnCsc6Z7FPThaXrQpa3tAIptRSaJ5aOs Djks9EJWZ32hP9JisiBluLvJa7MkVpfn7K6DvQDVcRqpINLAQ/IDtQHjCkWAgmyqBBwwFkFZBSN3z kpaLJSPlBLKvPRxmdT43I1vzY1Ed4aimErRjLftBf6aYTq8nNoKIeBdQbOqFPapvqcqn1C9JqjpyI sFYlbNU2cA5fUkwC3NwJE1czNkcQoKjBsXmtTq9oBbvkG5RyDKfb5L5rIdy7d0r073Xjz7X3Ubu/+ j5QkRc2vhI44MNXBcc7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk4z-00314M-65; Fri, 10 Dec 2021 17:53:09 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk4X-0030r9-GB; Fri, 10 Dec 2021 17:52:42 +0000 X-UUID: cc7a13090ac0424bb594e9f73d5ba116-20211210 X-UUID: cc7a13090ac0424bb594e9f73d5ba116-20211210 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 375882121; Fri, 10 Dec 2021 10:52:38 -0700 Received: from mtkmbs07n1.mediatek.inc (172.21.101.16) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Dec 2021 09:52:37 -0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 11 Dec 2021 01:52:35 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 11 Dec 2021 01:52:35 +0800 From: Flora Fu To: Matthias Brugger , Pi-Cheng Chen , Yong Wu CC: , , , Flora Fu , "JB Tsai" Subject: [PATCH 06/12] soc: mediatek: apu: Add MT8195 APU power driver Date: Sat, 11 Dec 2021 01:52:17 +0800 Message-ID: <20211210175223.31131-7-flora.fu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211210175223.31131-1-flora.fu@mediatek.com> References: <20211210175223.31131-1-flora.fu@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211210_095241_596479_74DDB914 X-CRM114-Status: GOOD ( 14.41 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add APU power driver for MT8195 to support for subsys clock and regulator controller. Signed-off-by: Flora Fu --- drivers/soc/mediatek/apusys/apu-pwr.c | 34 ++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/apusys/apu-pwr.c b/drivers/soc/mediatek/apusys/apu-pwr.c index e8e54a767aff..73e08b442558 100644 --- a/drivers/soc/mediatek/apusys/apu-pwr.c +++ b/drivers/soc/mediatek/apusys/apu-pwr.c @@ -578,10 +578,25 @@ static struct apupwr_plat_data mt8192_apu_power_data = { .ops = &mt8192_pwr_ops, }; +static const struct apupwr_plat_reg mt8195_pwr_reg = { + .opp_user = 0x40, + .opp_thermal = 0x44, + .opp_curr = 0x48, + .opp_mask = 0xF, +}; + +static struct apupwr_plat_data mt8195_apu_power_data = { + .dvfs_user = MDLA1, + .plat_regs = &mt8195_pwr_reg, +}; + static const struct of_device_id apu_power_of_match[] = { { .compatible = "mediatek,mt8192-apu-power", .data = &mt8192_apu_power_data + }, { + .compatible = "mediatek,mt8195-apu-power", + .data = &mt8195_apu_power_data }, { /* Terminator */ }, @@ -597,13 +612,30 @@ static struct platform_driver apu_power_driver = { }, }; +static const struct of_device_id apu_combo_iommu[] = { + { .compatible = "mediatek,apu_combo_iommu0"}, + { .compatible = "mediatek,apu_combo_iommu1"}, + {}, +}; +MODULE_DEVICE_TABLE(of, apu_combo_iommu); + +static struct platform_driver apu_combo_iommu_driver = { + .driver = { + .name = "apu_combo_iommu", + .of_match_table = of_match_ptr(apu_combo_iommu), + }, +}; + static int __init apu_power_drv_init(void) { - return platform_driver_register(&apu_power_driver); + platform_driver_register(&apu_power_driver); + platform_driver_register(&apu_combo_iommu_driver); + return 0; } static void __exit apu_power_drv_exit(void) { + platform_driver_unregister(&apu_combo_iommu_driver); platform_driver_unregister(&apu_power_driver); } From patchwork Fri Dec 10 17:52:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flora Fu X-Patchwork-Id: 12670533 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 2262FC433EF for ; Fri, 10 Dec 2021 17:54:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=H0muWzoXDENbnSaUZbhJqt63iVjenF7zTIZBBFFioVU=; b=F/dvxcUcG8kb4L +dVUd+h0YFMdqoNAVn4PjeRABKdhgmTHkCeEHdbqxPYCQa5uL5odM/8CBDZeYFhpQuaorxDuCkADS AhQcraX9QowJLp1ZpC+cjph2eAbKuXfoYxyHX//dpgMwhaLJQY5cLLUiwcB1r4EbenOTILUUg+JsC dBj+gCN8cnQvJRcQyOAnWRXbbVtiPyukjrqMQ8xWPYpa1z1OHpNNODzw1sQz6woNtEjUjB3q2+8eI jsBVR0DaEpHxLPXprYiGNRZKIpBElv09xyiag9y4PDYZavf71z0lVzisnJO2MtBiT0p3zLVurs3ud hfedvmM2eMDQAK48IIow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk6I-0031lR-Iy; Fri, 10 Dec 2021 17:54:30 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk4X-0030rn-2z; Fri, 10 Dec 2021 17:52:42 +0000 X-UUID: 2c7c9cb6a74a4d989d68475102a9799f-20211210 X-UUID: 2c7c9cb6a74a4d989d68475102a9799f-20211210 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 774194457; Fri, 10 Dec 2021 10:52:38 -0700 Received: from mtkmbs10n1.mediatek.inc (172.21.101.34) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Dec 2021 09:52:37 -0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Sat, 11 Dec 2021 01:52:36 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 11 Dec 2021 01:52:36 +0800 From: Flora Fu To: Matthias Brugger , Pi-Cheng Chen , Yong Wu CC: , , , Flora Fu , "JB Tsai" Subject: [PATCH 07/12] arm64: dts: mt8195: Add APU mtk-apu-mailbox node Date: Sat, 11 Dec 2021 01:52:18 +0800 Message-ID: <20211210175223.31131-8-flora.fu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211210175223.31131-1-flora.fu@mediatek.com> References: <20211210175223.31131-1-flora.fu@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211210_095241_179959_30A5BF1E X-CRM114-Status: UNSURE ( 8.50 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add mtk-apu-mailbox for mt8195 SOC. Signed-off-by: Pi-Cheng Chen Signed-off-by: Flora Fu --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index 6e60c4a38495..7e31e64e6b39 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -1360,6 +1360,13 @@ #clock-cells = <1>; }; + apu_mailbox: apu_mailbox@19000000 { + compatible = "mediatek,mtk-apu-mailbox"; + reg = <0 0x19000000 0 0x100>; + interrupts = ; + #mbox-cells = <1>; + }; + apu_conn: syscon@19020000 { compatible = "mediatek,mt8195-apu-conn", "syscon"; reg = <0 0x19020000 0 0x1000>; From patchwork Fri Dec 10 17:52:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flora Fu X-Patchwork-Id: 12670569 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 8BCADC433F5 for ; Fri, 10 Dec 2021 18:04:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vuGcPA8INn/6ZbNwe6QbRU9WVb3e7UtHgQwciJV43qo=; b=p2G1XfJaYkMXgA P1/lgVWd8cDh30OVaT/pj57XnEv/s2Y73eGTd/QTCpDabIsHYH55AyC1UBdSIcZJ+D8jA9TOQkfWB E4yOdFuUTY7xTHznXoY+gMpAK2opaoIaDWfNOXwPPAmpwtp12H1b8WldEH1tjxVK1pCGovrB0r0MM c8KiJ3PWNH1x2WEQyofbtAQgQxhWhUdr4ZM7kW/270+9fd9IhSs1WkQhAStIgpq83n8/jg0jKIYum XRjB74w2hQWVkFUK16o6Uh7u2D+sA2FxUG0lvqYqCYFjkHtqDPoBQ/77sWDVPVBB/8HFTjpO5f4uG ulEf2UHaelPWFRm+RKrA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvkG7-0036ne-Vj; Fri, 10 Dec 2021 18:04:40 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvkEI-00365U-5j; Fri, 10 Dec 2021 18:02:48 +0000 X-UUID: c4d77059ea124f5e8c3bab0c8c40361c-20211210 X-UUID: c4d77059ea124f5e8c3bab0c8c40361c-20211210 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2062940191; Fri, 10 Dec 2021 11:02:42 -0700 Received: from mtkexhb01.mediatek.inc (172.21.101.102) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Dec 2021 09:52:40 -0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 11 Dec 2021 01:52:36 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 11 Dec 2021 01:52:36 +0800 From: Flora Fu To: Matthias Brugger , Pi-Cheng Chen , Yong Wu CC: , , , Flora Fu , "JB Tsai" Subject: [PATCH 08/12] arm64: dts: mt8195: Add APU-IOMMU nodes Date: Sat, 11 Dec 2021 01:52:19 +0800 Message-ID: <20211210175223.31131-9-flora.fu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211210175223.31131-1-flora.fu@mediatek.com> References: <20211210175223.31131-1-flora.fu@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211210_100246_293365_B4D33D12 X-CRM114-Status: UNSURE ( 9.05 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add APU-IOMMI nodes. Signed-off-by: Yong Wu Signed-off-by: Flora Fu --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index 7e31e64e6b39..2f14e3326a2c 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -1367,6 +1368,22 @@ #mbox-cells = <1>; }; + iommu_apu0: iommu@19010000 { + compatible = "mediatek,mt8195-iommu-apu"; + reg = <0 0x19010000 0 0x1000>; + interrupts = ; + #iommu-cells = <1>; + power-domains = <&apuspm 0>; + }; + + iommu_apu1: iommu@19015000 { + compatible = "mediatek,mt8195-iommu-apu"; + reg = <0 0x19015000 0 0x1000>; + interrupts = ; + #iommu-cells = <1>; + power-domains = <&apuspm 0>; + }; + apu_conn: syscon@19020000 { compatible = "mediatek,mt8195-apu-conn", "syscon"; reg = <0 0x19020000 0 0x1000>; From patchwork Fri Dec 10 17:52:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flora Fu X-Patchwork-Id: 12670507 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 9FEDAC433F5 for ; Fri, 10 Dec 2021 17:53:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iifvWlqVfd/kZ9ihAmyuUixLiC1CfgbXTMNxLQOwpb8=; b=VB1NfsiQVpYbE5 hPpcxZhNIezc48LHI6cYsosm/PmhtKxCOyZYGPw6+BviehwiKykL2iyAKckW1NHBZeILV/wFvF/54 crjtotrpkoOWtdh3dSPSpIgQmkwcUVsGxFRC2jttVSe6w80NESwaDeibVXbKTHRzpoUBPEhTe8ikY LVftBm4X0Kud393ROcsg9FGwxMJwxoYLG0WLNPpsRrcjt0mWTBWcxspvVSsotgorYedfmH7f8Nvzm kXLOrpDQmm8SQZzgGcrWG/TH1CcbaEsFoWORUqETvKimxZUzqy+2BQ/GQ4eaqtvGMIWUpAQ/lmmtU XN2VNJzin2CDkRERccPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk4x-00313X-QN; Fri, 10 Dec 2021 17:53:07 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk4W-0030r9-11; Fri, 10 Dec 2021 17:52:41 +0000 X-UUID: 9d5922e0ef184e90b5328748da47e475-20211210 X-UUID: 9d5922e0ef184e90b5328748da47e475-20211210 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1630476285; Fri, 10 Dec 2021 10:52:38 -0700 Received: from mtkmbs07n1.mediatek.inc (172.21.101.16) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Dec 2021 09:52:37 -0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 11 Dec 2021 01:52:37 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 11 Dec 2021 01:52:37 +0800 From: Flora Fu To: Matthias Brugger , Pi-Cheng Chen , Yong Wu CC: , , , Flora Fu , "JB Tsai" Subject: [PATCH 09/12] arm64: dts: mt8195: Add apu tinysys node Date: Sat, 11 Dec 2021 01:52:20 +0800 Message-ID: <20211210175223.31131-10-flora.fu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211210175223.31131-1-flora.fu@mediatek.com> References: <20211210175223.31131-1-flora.fu@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211210_095240_116494_B52090D9 X-CRM114-Status: UNSURE ( 8.72 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add node for APU tinysys. Signed-off-by: Flora Fu --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index 2f14e3326a2c..8f4f56e2f08c 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -1368,6 +1368,41 @@ #mbox-cells = <1>; }; + apusys_rv: apusys_rv@19001000 { + compatible = "mediatek,mt8195-apusys-rv", "simple-mfd"; + reg = <0 0x19000000 0 0x1000>, + <0 0x19001000 0 0x1000>, + <0 0x19002000 0 0x10>; + reg-names = "apu_mbox", + "md32_sysctrl", + "apu_wdt"; + power-domains = <&apuspm 0>; + iommus = <&iommu_apu0 IOMMU_PORT_APU_DATA>; + interrupts = ; + interrupt-names = "apu_wdt"; + mboxes = <&apu_mailbox 0>; + + apu_ctrl { + compatible = "mediatek,apu-ctrl-rpmsg"; + mediatek,rpmsg-name = "apu-ctrl-rpmsg"; + }; + + apu_pwr_tx { + compatible = "mediatek,apupwr-tx-rpmsg"; + mediatek,rpmsg-name = "apupwr-tx-rpmsg"; + }; + + apu_pwr_rx { + compatible = "mediatek,apupwr-rx-rpmsg"; + mediatek,rpmsg-name = "apupwr-rx-rpmsg"; + }; + + apu_mdw_rpmsg { + compatible = "mediatek,apu-mdw-rpmsg"; + mediatek,rpmsg-name = "apu-mdw-rpmsg"; + }; + }; + iommu_apu0: iommu@19010000 { compatible = "mediatek,mt8195-iommu-apu"; reg = <0 0x19010000 0 0x1000>; From patchwork Fri Dec 10 17:52:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flora Fu X-Patchwork-Id: 12670539 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 5905CC433F5 for ; Fri, 10 Dec 2021 17:56:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QrM1mlW3+lkSI4jfNWsxisAvTfZEu2mRPUFNwHdam6A=; b=L4E2yJlICnLFNT 97ZPCDJx9Bl3YJO8Z2op6BZ/7r+FIQxN2SZaARc0EwfWqKohf1iedLpTjOuNdApWAwITThzyLBlZp IA4XyKx6v0B5CZc9eNCsjBKSixSumnBMr209TOKQoS2xssJC6IWo+Dr/WyqrGs+C1jImTPRfJQjJZ TC4yZ1OPggUUiE0N0ijkQdSYj9Qt8OmtKu56xltWhScGEZahZWrMdINPmRP2ekvBU7b2vLy7tsRbM TaWXOUlpTsoVyoMHCAbA/dLm5sPg81RvOrydK0F99XrM9fsjVtG65Frcd7pW50Iu9jqAVxMeMp57x l5MV1gHvYAavY5HaRBoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk8J-003348-Tq; Fri, 10 Dec 2021 17:56:35 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk4a-0030tt-9T; Fri, 10 Dec 2021 17:52:45 +0000 X-UUID: fc70e2ac15cc4b6997466d6aef803e69-20211210 X-UUID: fc70e2ac15cc4b6997466d6aef803e69-20211210 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 976137987; Fri, 10 Dec 2021 10:52:40 -0700 Received: from mtkmbs10n1.mediatek.inc (172.21.101.34) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Dec 2021 09:52:38 -0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Sat, 11 Dec 2021 01:52:37 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 11 Dec 2021 01:52:37 +0800 From: Flora Fu To: Matthias Brugger , Pi-Cheng Chen , Yong Wu CC: , , , Flora Fu , "JB Tsai" Subject: [PATCH 10/12] arm64: dts: mt8195: Add APU power nodes Date: Sat, 11 Dec 2021 01:52:21 +0800 Message-ID: <20211210175223.31131-11-flora.fu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211210175223.31131-1-flora.fu@mediatek.com> References: <20211210175223.31131-1-flora.fu@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211210_095244_373312_C91E0FBD X-CRM114-Status: UNSURE ( 8.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add APU power node for MT8195. Signed-off-by: Flora Fu --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index 8f4f56e2f08c..5ab4b2fba0e9 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -1450,6 +1450,25 @@ }; }; + apusys_power: apusys_power@190f1000 { + compatible = "mediatek,mt8195-apu-power"; + reg = <0 0x190f1000 0 0x1000>, + <0 0x19000600 0 0x100>; + reg-names = "apu_pcu", + "apu_spare"; + power-domains = <&apuspm 0>; + + apu_combo_iommu0 { + compatible = "mediatek,apu_combo_iommu0"; + iommus = <&iommu_apu0 IOMMU_PORT_APU_DATA>; + }; + + apu_combo_iommu1 { + compatible = "mediatek,apu_combo_iommu1"; + iommus = <&iommu_apu1 IOMMU_PORT_APU_DATA>; + }; + }; + apusys_pll: clock-controller@190f3000 { compatible = "mediatek,mt8195-apusys_pll"; reg = <0 0x190f3000 0 0x1000>; From patchwork Fri Dec 10 17:52:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flora Fu X-Patchwork-Id: 12670535 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 BD6C7C433F5 for ; Fri, 10 Dec 2021 17:55:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4e9WFFfOUWDweV0tHG8Ad5gbX2Mzslbs6soomggYOps=; b=4abzJUkGM0oanr 928tcQsPJ70jCTyvS0Mf7dwgFgYavTCGz1BTAlVrMhStPIhxcu9Vv/YY1UxdvAx9vybTmyu8hU4Rj 3Z4R6bpinJ9cWpiPLTwJWz3pANoua07KK1pknRr0VuW64Z4iZTAJs79c2e5ArfFp1XvYdsfO5ZxMU p/5tnXzp3vL7NuAQmsp8YuE4JHhsW0KhqaGg2aw3vle2volCTTD2BZe+zXSW9ufWwdMvRDf/vitir Lwp/hh3ZlBrmpGuFsQGDJnvrRMJZyosNo2NRy/eEozpRt2OsCcO049ouYMh+rfYrYZ8t3OIouAcWb Hgj1dhjU5iT97npSQw2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk7L-0032XI-Io; Fri, 10 Dec 2021 17:55:35 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk4Y-0030rn-Em; Fri, 10 Dec 2021 17:52:43 +0000 X-UUID: d590112b2d81483087148db2ded38fca-20211210 X-UUID: d590112b2d81483087148db2ded38fca-20211210 Received: from mtkcas68.mediatek.inc [(172.29.94.19)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 278620338; Fri, 10 Dec 2021 10:52:41 -0700 Received: from mtkmbs10n2.mediatek.inc (172.21.101.183) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Dec 2021 09:52:39 -0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Sat, 11 Dec 2021 01:52:38 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 11 Dec 2021 01:52:38 +0800 From: Flora Fu To: Matthias Brugger , Pi-Cheng Chen , Yong Wu CC: , , , Flora Fu , "JB Tsai" Subject: [PATCH 11/12] arm64: dts: mt8195: Add apu-sw-logger node Date: Sat, 11 Dec 2021 01:52:22 +0800 Message-ID: <20211210175223.31131-12-flora.fu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211210175223.31131-1-flora.fu@mediatek.com> References: <20211210175223.31131-1-flora.fu@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211210_095242_551064_B987D00B X-CRM114-Status: UNSURE ( 8.90 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add apu-sw-logger node to enable debug into tinysys for MT8195 SOC. Signed-off-by: Flora Fu --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index 5ab4b2fba0e9..1f915461636e 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -1368,6 +1368,12 @@ #mbox-cells = <1>; }; + apusys_sw_logger@0x19000040 { + compatible = "mediatek,apu-sw-logger"; + reg = <0 0x19000040 0 0x10>; + iommus = <&iommu_apu0 IOMMU_PORT_APU_DATA>; + }; + apusys_rv: apusys_rv@19001000 { compatible = "mediatek,mt8195-apusys-rv", "simple-mfd"; reg = <0 0x19000000 0 0x1000>, From patchwork Fri Dec 10 17:52:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flora Fu X-Patchwork-Id: 12670571 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 389FAC433F5 for ; Fri, 10 Dec 2021 18:06:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eMHrgs/O3VBoQxrCW2+nVGSmS5ceemyPKO8+LS8T97c=; b=qe2Cct9YBfwalo sLfSpL21NsJMTxZDqDk8GNvn62BpioIhAHzeFW9m7IAqnNAeuEKnFQ7tJ5hqADV41o4E9HcCzxtWa KQkXJxd5XMGskVtl0Q1iLdgPA+3dKg5OIhKXNDSg2PoTu0ES1AGbrtMshkLprhRe7Jq1UFSFnc6ym 8BGAG2GbM/dE7tvpLORBFrPZx6PjeaMwqRmdeq/mOZdA2TWD2r3f+OwvxNOrlKIL4HZvFDKuBuqeY PXWjpGJHKtvXkmH4lIU1zYFulG2bh6+To32EtKBygTpOgytLTLkUS/5lzb0xAboCvxBE0KUq/PzC+ NIOEuv8CyPs3fjmBiNQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvkHa-0037Sx-R1; Fri, 10 Dec 2021 18:06:10 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvkEI-00364X-5l; Fri, 10 Dec 2021 18:02:48 +0000 X-UUID: a139fa69b2804fbcb9fda12ac6acd06e-20211210 X-UUID: a139fa69b2804fbcb9fda12ac6acd06e-20211210 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 332776636; Fri, 10 Dec 2021 11:02:42 -0700 Received: from mtkmbs07n1.mediatek.inc (172.21.101.16) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Dec 2021 09:52:40 -0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 11 Dec 2021 01:52:38 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 11 Dec 2021 01:52:38 +0800 From: Flora Fu To: Matthias Brugger , Pi-Cheng Chen , Yong Wu CC: , , , Flora Fu , "JB Tsai" Subject: [PATCH 12/12] arm64: dts: mt8195: Set up regulators for APU subsys Date: Sat, 11 Dec 2021 01:52:23 +0800 Message-ID: <20211210175223.31131-13-flora.fu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211210175223.31131-1-flora.fu@mediatek.com> References: <20211210175223.31131-1-flora.fu@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211210_100246_276000_35E48527 X-CRM114-Status: UNSURE ( 8.34 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Set up APU regulators for mdla and vvpu. Signed-off-by: Flora Fu --- arch/arm64/boot/dts/mediatek/mt8195-evb.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195-evb.dts b/arch/arm64/boot/dts/mediatek/mt8195-evb.dts index 6333cab7929f..f49a460a8767 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8195-evb.dts @@ -44,6 +44,11 @@ }; }; +&apusys_power { + vvpu-supply = <&mt6359_vproc1_buck_reg>; + vmdla-supply = <&mt6359_vproc2_buck_reg>; +}; + &i2c0 { pinctrl-names = "default"; pinctrl-0 = <&i2c0_pin>;