From nobody Sun Sep 22 15:24:36 2024 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 850D5C433FE for ; Sat, 23 Oct 2021 11:15:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6DE9960FC3 for ; Sat, 23 Oct 2021 11:15:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231236AbhJWLRc (ORCPT ); Sat, 23 Oct 2021 07:17:32 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:39196 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230507AbhJWLRQ (ORCPT ); Sat, 23 Oct 2021 07:17:16 -0400 X-UUID: ce5df9540e7a47ab8c002ca4e845a8f2-20211023 X-UUID: ce5df9540e7a47ab8c002ca4e845a8f2-20211023 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 295213227; Sat, 23 Oct 2021 19:14:52 +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, 23 Oct 2021 19:14:51 +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, 23 Oct 2021 19:14:51 +0800 From: Flora Fu To: Matthias Brugger , Mark Brown , Sumit Semwal CC: , , , , , , Flora Fu , Yong Wu , Pi-Cheng Chen Subject: [RFC 03/13] dt-bindings: soc: mediatek: apusys: Add new document for APU tinysys Date: Sat, 23 Oct 2021 19:13:59 +0800 Message-ID: <20211023111409.30463-4-flora.fu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211023111409.30463-1-flora.fu@mediatek.com> References: <20211023111409.30463-1-flora.fu@mediatek.com> MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add new document for APU tinysys. Signed-off-by: Flora Fu --- .../soc/mediatek/mediatek,apu-rv.yaml | 140 ++++++++++++++++++ 1 file changed, 140 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/mediatek/mediatek= ,apu-rv.yaml diff --git a/Documentation/devicetree/bindings/soc/mediatek/mediatek,apu-rv= .yaml b/Documentation/devicetree/bindings/soc/mediatek/mediatek,apu-rv.yaml new file mode 100644 index 000000000000..ee0ff5d656e9 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/mediatek/mediatek,apu-rv.yaml @@ -0,0 +1,140 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# # Copyright 2021 MediaTek Inc. +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/soc/mediatek/mediatek,apu-rv.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Mediatek APU Power + +description: | + APU integrated subsystem having MD32RV33 (MD32) that runs tinysys + The tinsys is running on a micro processor in APU. + Its firmware is load and boot from Kernel side. Kernel and tinysys use + IPI to tx/rx messages. + +maintainers: + - Flora Fu + +properties: + compatible: + enum: + - mediatek,mt8192-apusys-rv + + 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. + + mediatek,apusys-power: + $ref: /schemas/types.yaml#/definitions/phandle + description: | + phandle to the device containing the apusys-power handle. + + apu_ctrl: + description: handle the ipi state, time sync and deep idle message. + type: object + + properties: + compatible: + const: "mediatek,apu-ctrl-rpmsg" + + required: + - compatible + + additionalProperties: false + + apu_pwr_tx: + description: handle the message trigger from AP side to tinysys. + type: object + + properties: + compatible: + const: "mediatek,apupwr-tx-rpmsg" + + required: + - compatible + + additionalProperties: false + + apu_pwr_rx: + description: handle the message trigger from tinysys to AP side. + type: object + + properties: + compatible: + const: "mediatek,apupwr-rx-rpmsg" + + required: + - compatible + + additionalProperties: false + + apu_mdw_rpmsg: + description: handle the middleware messages. + type: object + + properties: + compatible: + const: "mediatek,apu-mdw-rpmsg" + + required: + - compatible + + additionalProperties: false + +required: + - compatible + - reg + - power-domains + - interrupts + - mediatek,apusys-power + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + + apusys_rv@19001000 { + compatible =3D "mediatek,mt8192-apusys-rv"; + reg =3D <0x19000000 0x1000>, + <0x19001000 0x1000>; + reg-names =3D "apu_mbox", + "md32_sysctrl"; + mediatek,apusys-power =3D <&apusys_power>; + power-domains =3D <&apuspm 0>; + iommus =3D <&iommu_apu IOMMU_PORT_APU_DATA>; + interrupts =3D , + ; + interrupt-names =3D "apu_wdt", + "mbox0_irq"; + apu_ctrl { + compatible =3D "mediatek,apu-ctrl-rpmsg"; + }; + apu_pwr_tx { + compatible =3D "mediatek,apupwr-tx-rpmsg"; + }; + apu_pwr_rx { + compatible =3D "mediatek,apupwr-rx-rpmsg"; + }; + apu_mdw_rpmsg { + compatible =3D "mediatek,apu-mdw-rpmsg"; + }; + }; --=20 2.18.0