1From af50eca3e3b408f2f1f378c1d0c48fb6c3107c8c Mon Sep 17 00:00:00 2001
2From: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
3Date: Mon, 19 Feb 2024 20:47:26 +0000
4Subject: [PATCH 3/6] dt-bindings: remoteproc: Add Arm remoteproc
5
6introduce the bindings for Arm remoteproc support.
7
8Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
9Upstream-Status: Denied [Agreement reached: https://lore.kernel.org/all/20241009094635.GA14639@e130802.arm.com/]
10---
11 .../bindings/remoteproc/arm,rproc.yaml        | 69 +++++++++++++++++++
12 MAINTAINERS                                   |  1 +
13 2 files changed, 70 insertions(+)
14 create mode 100644 Documentation/devicetree/bindings/remoteproc/arm,rproc.yaml
15
16diff --git a/Documentation/devicetree/bindings/remoteproc/arm,rproc.yaml b/Documentation/devicetree/bindings/remoteproc/arm,rproc.yaml
17new file mode 100644
18index 000000000000..322197158059
19--- /dev/null
20+++ b/Documentation/devicetree/bindings/remoteproc/arm,rproc.yaml
21@@ -0,0 +1,69 @@
22+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
23+%YAML 1.2
24+---
25+$id: http://devicetree.org/schemas/remoteproc/arm,rproc.yaml#
26+$schema: http://devicetree.org/meta-schemas/core.yaml#
27+
28+title: Arm Remoteproc Devices
29+
30+maintainers:
31+  - Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
32+
33+description: |
34+  Some Arm heterogeneous System-On-Chips feature remote processors that can
35+  be controlled with a reset control register and a reset status register to
36+  start or stop the processor.
37+
38+  This document defines the bindings for these remote processors.
39+
40+properties:
41+  compatible:
42+    enum:
43+      - arm,corstone1000-extsys
44+
45+  reg:
46+    minItems: 2
47+    maxItems: 2
48+    description: |
49+      Address and size in bytes of the reset control register
50+      and the reset status register.
51+      Expects the registers to be in the order as above.
52+      Should contain an entry for each value in 'reg-names'.
53+
54+  reg-names:
55+    description: |
56+      Required names for each of the reset registers defined in
57+      the 'reg' property. Expects the names from the following
58+      list, in the specified order, each representing the corresponding
59+      reset register.
60+    items:
61+      - const: reset-control
62+      - const: reset-status
63+
64+  firmware-name:
65+    description: |
66+      Default name of the firmware to load to the remote processor.
67+
68+required:
69+  - compatible
70+  - reg
71+  - reg-names
72+  - firmware-name
73+
74+additionalProperties: false
75+
76+examples:
77+  - |
78+    extsys0: remoteproc@1a010310 {
79+            compatible = "arm,corstone1000-extsys";
80+            reg = <0x1a010310 0x4>, <0x1a010314 0x4>;
81+            reg-names = "reset-control", "reset-status";
82+            firmware-name = "es0_flashfw.elf";
83+    };
84+
85+    extsys1: remoteproc@1a010318 {
86+            compatible = "arm,corstone1000-extsys";
87+            reg = <0x1a010318 0x4>, <0x1a01031c 0x4>;
88+            reg-names = "reset-control", "reset-status";
89+            firmware-name = "es1_flashfw.elf";
90+    };
91diff --git a/MAINTAINERS b/MAINTAINERS
92index 54d6a40feea5..eddaa3841a65 100644
93--- a/MAINTAINERS
94+++ b/MAINTAINERS
95@@ -1768,6 +1768,7 @@ ARM REMOTEPROC DRIVER
96 M:	Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
97 L:	linux-remoteproc@vger.kernel.org
98 S:	Maintained
99+F:	Documentation/devicetree/bindings/remoteproc/arm,rproc.yaml
100 F:	drivers/remoteproc/arm_rproc.c
101
102 ARM SMC WATCHDOG DRIVER
103--
1042.25.1
105
106