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: 12695663 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 8CCC2C433F5 for ; Fri, 10 Dec 2021 18:05: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=HxoRZMuD6xXETEvzX+WItLLlhRqV5DqqXppon/3cfkY=; b=ZAfx5Zl6B+yGcb jj/+C1+msMPoHhcj9par6f6g7gA1eH+cKzeRFhlz+PANduVqN0Edb0IwhS0e//RNSO3wO07/Sft7f Kkqtv499iJG/Wj81yOsDLT14gfCoSQTCYMtoBfccqcRbuu4gOmCuJmLBJcJKFGjXhBoibaCRafbD5 kddXxeUZ+NJuIi0+h8z2G7G6y37JnXfk+JPWnVAAdXP4r48CKl+HcWMQoZvBP+4T2ohEa2XknCQyt MFLRuUXiJwDRVNEHeAZcrq/KZBrFX6R77dC7if/VkbpafE1BOgX8TFlekn7ga0nIBdwHFQ/BcgCUA a0jdnZOZwT8XtwW6Tg4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvkFJ-0036Ox-PK; Fri, 10 Dec 2021 18:03:51 +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-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 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: 12695654 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 D5549C433F5 for ; Fri, 10 Dec 2021 17:54:17 +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=bUTXBqrM/vffOoZyRVC1G3qj4p9de5IRZpOWQNKNK9s=; b=akw6ZDrKnClzMm AGSibhgGX+8v4uKGs1lyfmDlyn7TJBdMlabtoJLfO5J7zHIGmDsadcMzNcsz1191/2APcNTcwwMqy D3hTDYCxGe6Ql9nlJYM8LanFVR9f+ywo5WhaYfqik8aV4mOQCM+rCfIVjCgHwO7zzIZMf86Nb/1lk xXSEOY7CCZxAStyQIuEpjykhVOlSclPJO/ik0yXUq1SVSpGgpGY+rpVozxhnrAQAYCypLfYfwvF2e po2czoC7AIYl2TONHCnq70zSZfL1oBvsndLowDhyhCrIqOS8kW6fdVMbhXP0jflH4VKphhEGPmXSw kTCaMTQzHpyz6t/RDn0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk4c-0030s7-3S; Fri, 10 Dec 2021 17:52:46 +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-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 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: 12695662 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 E099DC433F5 for ; Fri, 10 Dec 2021 18:05: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=O9ysicn7u6dAcJK+GuxQaHsoPgynRkmtDyPM30c5H9A=; b=Ttq0wvbuaXqHOl dV4B0VxsxxMkWUGKLyZPUNt61Zzh4E2M/8O5h07mE2HxKL3lN4m+smbeBHUbsmoCEIDjJVD3eBn35 s8NJk8d+8VPr2cfr86gHX13ZWrBWYzWs91uBa7atUQXpvc2cySg0i79t6IhDTZTGYJxTcZsN1hwSe 5JNcxqjFOYdJCVQkk4SALHXKQ9qKTrDvFV5b1f2YJdwbMPuQJs/5rK0zkHkiuZ1/KlsjLoCXQLwpE w7v+JBr1reo8o4mymjlM8EKzqXn0dsjO9rKxUDOik0s0rVIxH8YXlZE8QfR51oXui93TJEVPlAZKm rNzfjk4+8atfEbElTh6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvkEd-00368z-Vy; Fri, 10 Dec 2021 18:03:08 +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-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 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: 12695660 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 A8CDAC433F5 for ; Fri, 10 Dec 2021 17:58: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=ETHuZzmSHSqwcVSW4khRK/JTUZmAwhz7xjXX7xjN8yo=; b=vq4wCBr/6psumL wdTGyjnmHCT/0s7c3mztXmaQRnA2/BKfK8dHSRHSRhvqnkv0TwnrRRziKZtblG2Qf/ycatmy1KlsT Vfnpe0EcDoXgV3b5DpVSpmVIrzY6KYqdQEOeNtxh9Ltv8gddORwTvJDe1QfivgmcZSF+3yLzPi+5N nvqP3vq9kzzWpl7bTZLBDIosjn85cPTFv8l3hcapwWBGs3QYtPmNgKVG6VMH3BY6nuhMosGehVcOW szHW7wp0RPRxGzfgUMjTKekd7OB+uhVzqAO5+RhA7YftXnAKI7AbI+ijiKn71JltFnZPXww6Tg/0A 1xoaJ7sSigv5MNJ0P2rg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk8P-00335h-Q9; Fri, 10 Dec 2021 17:56:43 +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-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 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: 12695664 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 BA762C433F5 for ; Fri, 10 Dec 2021 18:06:54 +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=PnzEm6THrDXU8lIdGYs3bN5t8l0ZQ5myRVPzPdinhpA=; b=eQybRAIzEzriDj 5si7INbMz31UINU2XK56xfPhYoa47149uEqi2dvRiVHFtQ8tnKeRmSBR5Cy0nMF3hfTEFp1Mc6yhk whAR4trbHonO1Ugt0FMwUjQetgrgsbpc3sJiGLyIzSgHuBmtNORY92nHSwiMalZMxhyHG94b6u9oR LjHQ9fMlNKYNQD8if5JijADFZ6MN/1R0W4Erj/0F0MPYuY7EoxBNLtQoJWITBL0vO2fIULtTyQUoO sM5MnoVEHYMqD4IoB550pk79LCgnBujkhCdk/zUOQuxAZRA/162XwV7qfX1HkvB9YDMA1de7nCStt C1B2XdzCXGEPauTfwRWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvkGM-0036q9-CY; Fri, 10 Dec 2021 18:04:55 +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-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 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: 12695657 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 B5CE9C433FE for ; Fri, 10 Dec 2021 17:55:33 +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=ME+j+9ghsaJzuSVBnWeldQxGyJp57+6Ygo+odnQyltE=; b=r7MMnCUUG1XNKE BWMS4vZqgA+FiPoniVpHiIs7cBP5RVmwhYb9YlFQWpdQJ4VIsfQqLIwHG9zYqPWP+P3/asyB81jyR IfE5BDztSYxpzM0mA5ucMDKDcAcrkKDwv/bsSf5X68jiXMbbY/h/zXkVEEa9/vy1fGw/i5e7XUpBO 6kZalULxSfBFWVBRTtBWU0VqTARPG4FWIpIKnwHCNUR+2PeNHauYtgNorpEn9rLPwA1q2rSora1JX THC4uJNRzbqtUGZ0ATUZxCdklEM+b1WBF1Gq5KsKpwQRXiHV808VUOBszOkfI3Vb5UfTKzXWfTAuX k3ourOGfp/XcF8gl4A5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk5j-0031Pe-IU; Fri, 10 Dec 2021 17:53:55 +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-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 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: 12695655 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 E897FC433EF for ; Fri, 10 Dec 2021 17:54: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=c2Hj3IxkBjYFgabHPJF2v2k/2M71KvJuioNHa7autWA=; b=WHacJ9iTcFldwF U/g7RxNdcQuBIPNohxh2BhcLqd4eiBFX/EySM8NhkFyUsivRPwX1ZFofPmpoN8qUN4ilTQ2fPYRCg lkEBGYgMdAX2Y2ySGtL91B+xhuLFe451pt2pAZb0brbSmpPDfryoVrDOOxY3BnKm7x9IgD5OdCVNO +KhI9IGiXIPbpki0bQ0WrAFGLeQZ7qGFn6GZ2kSI6yYbY9jlqnEexqY4KjUjuvOxguoyF3MxX3KEe pUOl3eD+R6HMrnV4wNDKmF+vVMZU3ERaUQnLYU64TK09E7u1XAq+8EFSSKbr4QjO4tyZNT1nN5Cbj az8rx574j6HlgTUEHfaw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk53-00315W-TP; Fri, 10 Dec 2021 17:53:14 +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-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 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: 12695665 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 812E4C433EF for ; Fri, 10 Dec 2021 18:08:04 +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=mSUJHxpDtLTOjsEEinSEOhWaatxLP0KmeTwVhJ6ib8o=; b=m7qo3vtyDN8Mui NCWjiJ5J+IPsBdhPEqW4OdBaqBe6by3p/ME8Va9wyztzSKKSVvS/V3SpbAd5gHYAQVoDrigfQ75yU KmJgqmU+YsPne9SdlTLzD5734Lmy3MMqo0VfUSY2KbTRd5BIVHem1ywQZvt62eyzgD/F6MhI5Ihh1 t8lsyqgSlLGUrEvBm6hgA/BSE16ZhWxRc0xXxse9v/AMI+0S1dDeD2Ky/GbY41+khAmNLXeg5IN0u YvIYXBoTSyEXtbH3ZqAnO+6Ar5WVRMFvtBylwiLfGqHLSarM2n5qXkmyUTCtXTIUIN3i1ZWv6Lmnl nE2iV579Lrw7VkM44esQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvkHh-0037U0-40; Fri, 10 Dec 2021 18:06:17 +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-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 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: 12695656 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 59E50C433EF for ; Fri, 10 Dec 2021 17:55:00 +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=u9fH7grFg6xn2ZZD9edQWhjBdWJ9tFaN+Tlm04oQI4E=; b=Uwn2fh6bTKjmke G99tkp2fQaxI+cPzAG5wp1QCu2Dg6ELz+vR14Xo1D/6YznCNX1JsyLUYZrgqQCSV9RJoNvJYYrAWu RGMKzacuTalF4hM/59DcnQvi1wF6TVHjSoS0tOxJr5R2zyLVGDFKw47Owf9rYHw4ry8sfP5EH84NO Rx6jPRsTyRbcuyuOqHkmBneT7E6zwoybqtpYemUk7UzQSKosOGNoiAtagRe9CG8IETCqS35gLiGBU 3m2EWTmRD9chgap5TGTK+MA2bBfjDqPRad0T18DW1Qt33zcgAnhUSQ2vTM0OMiX3eUhOhxqOHCI2n Lf9tbjWOOXRA9ki2b8XA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk5M-0031Fz-Qf; Fri, 10 Dec 2021 17:53:32 +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-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 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: 12695659 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 E96C5C433F5 for ; Fri, 10 Dec 2021 17:57:25 +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=4uPuFbLZPabrkRvW/LhVHxkuLnThdlRvYpoEZUHPu5U=; b=3MKSPATUsJjV/e 6fvYRPp74L4DQfW9PTEWfVfwRZCrTFNbsEiTXAZheu2Lr5/yd4EL6QFhy8XSYNdLhXmJNX3WBVXZZ vlJL3vPG7Nm1rLth5M5ywjfqG4tp78oRJ4yusiJTg9lOTT/Pg6psY4auLjuE7+8pPgxImyohQYaGq 9H5AUP3NceD+iBaOVo4Ty7+JHmjaMOJrriSuBZwaW0kFFmG5Pceq4KGPl0nvJLZotQtnL47toSQaC Dv3eP8oW4uwdVy5dfxMK1Az7SkPx5dc1XPCRcfYQzpehSRsrTnaU021RK703hN/qokOHFwPWLh2H6 +DH25LTI3DTEYbdbgVng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk7Z-0032cM-JL; Fri, 10 Dec 2021 17:55:51 +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-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 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: 12695658 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 4F6B9C433EF for ; Fri, 10 Dec 2021 17:56:29 +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=57nP9Zsq1V9L6FUa80nqX5cx0Cv4rg9mm62l1uYUJiE=; b=z/1QSRW+1SGAZr I2BwPDctb2IqQApseoocDJP3MuKelg75A+mXav8O6riXOaobF6QBS+fPPXyvHwtoGiXkEMYpqdNvK jy0Hl3gBVc+Pa6VyIuiIThh1PhpmU/a271vzDMVmVQlckY/ZhUocQESIGRD9aGHrljPkpu853ZPPT pXSYeYi5Ie9LwUQVxbaS3qhxOTMPQE+k3McQGscf8o6jv8DmwpZbll93oPkkWC523/KHZMpwQK8d3 q/YP7MwjPlfWENrUU1WlvxFXGB1yhnA9aoQCQm7an9HY60GIJGfkTlE2QCnbkDswgoMvUS/VrXE7B zHt+JSfjmhOsMjZ7c2Ow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvk6P-0031mv-IA; Fri, 10 Dec 2021 17:54:38 +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-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 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: 12695666 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 BC559C433EF for ; Fri, 10 Dec 2021 18:09:05 +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=a84vaRBQ6+GPyAmGhKLjU+JYP4KFf0puNivNpJRJRnk=; b=BCazqAUfo7ExnH 6+Sq4NDAGKnjb7/qfvubBdjEsu4Xuii46B67dW40yyW5R5BL34yE4Go20MgNFIPGvaIgTxwVCCgLs 075SgFGl8FjiNd81PC+XZ8BQ3qSNc/z7YRkv1OleHrN54xRt/nMFkKNGZQ6gbLtxVLLKJow/v4p4G nWk6G/GqeKoQMX/sE6wBG98kBa+oyxgVu0ZXlpYTesrKOp5yk2Ulke0nXDXvuXreAHOCSDNBzHpMx qny5Sw6TemT1oAcysFlBR3lRGifleG527ziUlM/+vA+AAg7AWEk0Gycco5stP+K3ewFgT1870aNwY F+5trLliWZ9MB/Yw/H8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvkIe-0037pA-KL; Fri, 10 Dec 2021 18:07:17 +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-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 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>;