[PATCH 03/17] dt-bindings: remoteproc: mediatek: Add APU rproc compatible
Flora Fu
flora.fu at mediatek.com
Fri Dec 10 09:25:51 PST 2021
Add new binding document for the APU remote processor.
The initial version is used for MT8192 SOC.
Signed-off-by: Pi-Cheng Chen <pi-cheng.chen at mediatek.com>
Signed-off-by: Flora Fu <flora.fu at mediatek.com>
---
.../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 <flora.fu at mediatek.com>
+ - Pi-Cheng Chen <pi-cheng.chen at mediatek.com>
+
+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 <dt-bindings/clock/mt8192-clk.h>
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ #include <dt-bindings/interrupt-controller/irq.h>
+ #include <dt-bindings/memory/mt8192-larb-port.h>
+
+ apusys_rv at 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 = <GIC_SPI 393 IRQ_TYPE_LEVEL_HIGH 0>;
+ 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";
+ };
+ };
--
2.18.0
More information about the linux-arm-kernel
mailing list