From patchwork Fri Dec 10 17:25:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flora Fu X-Patchwork-Id: 12670281 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C19DC4332F for ; Fri, 10 Dec 2021 17:26:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244474AbhLJRaV (ORCPT ); Fri, 10 Dec 2021 12:30:21 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:48784 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S244464AbhLJRaU (ORCPT ); Fri, 10 Dec 2021 12:30:20 -0500 X-UUID: cb1fa888e9de4774a350af8a2122c70e-20211211 X-UUID: cb1fa888e9de4774a350af8a2122c70e-20211211 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 814626988; Sat, 11 Dec 2021 01:26:40 +0800 Received: from mtkexhb02.mediatek.inc (172.21.101.103) 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:26:39 +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:26:39 +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:26:38 +0800 From: Flora Fu To: Matthias Brugger , Liam Girdwood , Mark Brown , Sumit Semwal , Yong Wu , Pi-Cheng Chen CC: , , , , , , Flora Fu , JB Tsai Subject: [PATCH 03/17] dt-bindings: remoteproc: mediatek: Add APU rproc compatible Date: Sat, 11 Dec 2021 01:25:51 +0800 Message-ID: <20211210172605.30618-4-flora.fu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211210172605.30618-1-flora.fu@mediatek.com> References: <20211210172605.30618-1-flora.fu@mediatek.com> MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add new binding document for the APU remote processor. The initial version is used for MT8192 SOC. Signed-off-by: Pi-Cheng Chen Signed-off-by: Flora Fu --- .../bindings/remoteproc/mediatek,apu-rv.yaml | 106 ++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/mediatek,apu-rv.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/mediatek,apu-rv.yaml b/Documentation/devicetree/bindings/remoteproc/mediatek,apu-rv.yaml new file mode 100644 index 000000000000..c390b85040eb --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/mediatek,apu-rv.yaml @@ -0,0 +1,106 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2021 (C) MediaTek Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/mediatek,apu-rv.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek APU remote processor controller bindings + +description: | + APU integrated subsystem having MD32RV33 (MD32) that runs tinysys. + The tinysys runs on a microprocessor in APU. + Its firmware is loaded and booted from Kernel side. + Kernel and tinysys uses IPI to send and receive messages. + +maintainers: + - Flora Fu + - Pi-Cheng Chen + +properties: + compatible: + items: + - enum: + - mediatek,mt8192-apusys-rv + - const: simple-mfd + + reg: + minItems: 1 + + reg-names: + minItems: 1 + + power-domains: + maxItems: 1 + + iommus: + maxItems: 1 + + interrupts: + description: List of interrupts. + + interrupt-names: + description: Name list of interrupts. + + mboxes: + maxItems: 1 + +required: + - compatible + - reg + - power-domains + - interrupts + - mboxes + +additionalProperties: + type: object + description: + Represent subnodes that will register as rpmsg devices. + properties: + compatible: + enum: + - mediatek,apu-ctrl-rpmsg + - mediatek,apupwr-tx-rpmsg + - mediatek,apupwr-rx-rpmsg + - mediatek,apu-mdw-rpmsg + mediatek,rpmsg-name: + $ref: /schemas/types.yaml#/definitions/string-array + description: + Contains the name for the rpmsg device. Used to match + the subnode to rpmsg device announced by APU. + required: + - compatible + +examples: + - | + #include + #include + #include + #include + + apusys_rv@19001000 { + compatible = "mediatek,mt8192-apusys-rv", "simple-mfd"; + reg = <0x19001000 0x1000>; + reg-names = "md32_sysctrl"; + power-domains = <&apuspm 0>; + iommus = <&iommu_apu 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"; + }; + };