[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250728-cv1800-rproc-v2-1-5bbee4abe9dc@pigmoral.tech>
Date: Mon, 28 Jul 2025 19:03:23 +0800
From: Junhui Liu <junhui.liu@...moral.tech>
To: Bjorn Andersson <andersson@...nel.org>,
Mathieu Poirier <mathieu.poirier@...aro.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Chen Wang <unicorn_wang@...look.com>,
Inochi Amaoto <inochiama@...il.com>, Junhui Liu <junhui.liu@...moral.tech>,
Philipp Zabel <p.zabel@...gutronix.de>,
Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>, Albert Ou <aou@...s.berkeley.edu>,
Alexandre Ghiti <alex@...ti.fr>
Cc: linux-remoteproc@...r.kernel.org, devicetree@...r.kernel.org,
sophgo@...ts.linux.dev, linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org
Subject: [PATCH v2 1/2] dt-bindings: remoteproc: Add C906L rproc for Sophgo
CV1800B SoC
Add C906L remote processor for CV1800B SoC, which is an asymmetric
processor typically running RTOS.
Signed-off-by: Junhui Liu <junhui.liu@...moral.tech>
---
.../bindings/remoteproc/sophgo,cv1800b-c906l.yaml | 79 ++++++++++++++++++++++
1 file changed, 79 insertions(+)
diff --git a/Documentation/devicetree/bindings/remoteproc/sophgo,cv1800b-c906l.yaml b/Documentation/devicetree/bindings/remoteproc/sophgo,cv1800b-c906l.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2061c2fd6ba343c09b1a91700ea4a695d2b57f81
--- /dev/null
+++ b/Documentation/devicetree/bindings/remoteproc/sophgo,cv1800b-c906l.yaml
@@ -0,0 +1,79 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/remoteproc/sophgo,cv1800b-c906l.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sophgo C906L remote processor controller for CV1800B SoC
+
+maintainers:
+ - Junhui Liu <junhui.liu@...moral.tech>
+
+description:
+ Document the bindings for the C906L remoteproc component that loads and boots
+ firmwares on the CV1800B SoC.
+
+properties:
+ compatible:
+ const: sophgo,cv1800b-c906l
+
+ firmware-name:
+ maxItems: 1
+
+ mbox-names:
+ items:
+ - const: tx
+ - const: rx
+
+ mboxes:
+ description:
+ This property is required only if the rpmsg/virtio functionality is used.
+ (see mailbox/sophgo,cv1800b-mailbox.yaml)
+ items:
+ - description: mailbox channel to send data to C906L
+ - description: mailbox channel to receive data from C906L
+
+ memory-region:
+ description:
+ List of phandles to reserved memory regions used by the remote processor.
+ The first region is required and provides the firmware region for the
+ remote processor. The following regions (vdev buffer, vrings) are optional
+ and are only required if rpmsg/virtio functionality is used.
+ minItems: 1
+ items:
+ - description: firmware region
+ - description: vdev buffer
+ - description: vring0
+ - description: vring1
+ additionalItems: true
+
+ resets:
+ maxItems: 1
+
+ sophgo,syscon:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description:
+ A phandle to the SEC_SYS region, used for configuration of the remote
+ processor.
+
+required:
+ - compatible
+ - firmware-name
+ - memory-region
+ - resets
+ - sophgo,syscon
+
+additionalProperties: false
+
+examples:
+ - |
+ c906l-rproc {
+ compatible = "sophgo,cv1800b-c906l";
+ firmware-name = "c906l-firmware.elf";
+ mbox-names = "tx", "rx";
+ mboxes = <&mbox 0 2>, <&mbox 1 1>;
+ memory-region = <&c906l_mem>, <&vdev0buffer>,
+ <&vdev0vring0>, <&vdev0vring1>;
+ resets = <&rst 294>;
+ sophgo,syscon = <&sec_sys>;
+ };
--
2.50.1
Powered by blists - more mailing lists