Skip to content

Commit f3d81b4

Browse files
Devarsh Thakkarmathieupoirier
authored andcommitted
dt-bindings: remoteproc: ti: Add new compatible for AM62 SoC family
AM62 family of devices don't have a R5F cluster, instead they have single core DM R5F. Add new compatible string ti,am62-r5fss to support this scenario. When this new compatible is used cluster-mode property can only be set to value 3 i.e. CLUSTER_MODE_SINGLECORE which is also the default value in case cluster-mode is not defined in device-tree. While at it, also sort the compatible lists in alphabetical order. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Devarsh Thakkar <devarsht@ti.com> Link: https://lore.kernel.org/r/20230327152832.923480-3-devarsht@ti.com Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
1 parent 7f40291 commit f3d81b4

1 file changed

Lines changed: 55 additions & 21 deletions

File tree

Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml

Lines changed: 55 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ description: |
2121
called "Single-CPU" mode, where only Core0 is used, but with ability to use
2222
Core1's TCMs as well.
2323
24+
AM62 SoC family support a single R5F core only which runs Device Manager
25+
firmware and can also be used as a remote processor with IPC communication.
26+
2427
Each Dual-Core R5F sub-system is represented as a single DTS node
2528
representing the cluster, with a pair of child DT nodes representing
2629
the individual R5F cores. Each node has a number of required or optional
@@ -34,10 +37,11 @@ properties:
3437

3538
compatible:
3639
enum:
40+
- ti,am62-r5fss
41+
- ti,am64-r5fss
3742
- ti,am654-r5fss
38-
- ti,j721e-r5fss
3943
- ti,j7200-r5fss
40-
- ti,am64-r5fss
44+
- ti,j721e-r5fss
4145
- ti,j721s2-r5fss
4246

4347
power-domains:
@@ -64,10 +68,17 @@ properties:
6468
$ref: /schemas/types.yaml#/definitions/uint32
6569
description: |
6670
Configuration Mode for the Dual R5F cores within the R5F cluster.
67-
Should be either a value of 1 (LockStep mode) or 0 (Split mode) on
71+
For most SoCs (AM65x, J721E, J7200, J721s2),
72+
It should be either a value of 1 (LockStep mode) or 0 (Split mode) on
6873
most SoCs (AM65x, J721E, J7200, J721s2), default is LockStep mode if
69-
omitted; and should be either a value of 0 (Split mode) or 2
70-
(Single-CPU mode) on AM64x SoCs, default is Split mode if omitted.
74+
omitted.
75+
For AM64x SoCs,
76+
It should be either a value of 0 (Split mode) or 2 (Single-CPU mode) and
77+
default is Split mode if omitted.
78+
For AM62x SoCs,
79+
It should be set as 3 (Single-Core mode) which is also the default if
80+
omitted.
81+
7182
7283
# R5F Processor Child Nodes:
7384
# ==========================
@@ -80,7 +91,9 @@ patternProperties:
8091
node representing a TI instantiation of the Arm Cortex R5F core. There
8192
are some specific integration differences for the IP like the usage of
8293
a Region Address Translator (RAT) for translating the larger SoC bus
83-
addresses into a 32-bit address space for the processor.
94+
addresses into a 32-bit address space for the processor. For AM62x,
95+
the R5F Sub-System device node should only define one R5F child node
96+
as it has only one core available.
8497
8598
Each R5F core has an associated 64 KB of Tightly-Coupled Memory (TCM)
8699
internal memories split between two banks - TCMA and TCMB (further
@@ -100,10 +113,11 @@ patternProperties:
100113
properties:
101114
compatible:
102115
enum:
116+
- ti,am62-r5f
117+
- ti,am64-r5f
103118
- ti,am654-r5f
104-
- ti,j721e-r5f
105119
- ti,j7200-r5f
106-
- ti,am64-r5f
120+
- ti,j721e-r5f
107121
- ti,j721s2-r5f
108122

109123
reg:
@@ -208,19 +222,39 @@ patternProperties:
208222

209223
unevaluatedProperties: false
210224

211-
if:
212-
properties:
213-
compatible:
214-
enum:
215-
- ti,am64-r5fss
216-
then:
217-
properties:
218-
ti,cluster-mode:
219-
enum: [0, 2]
220-
else:
221-
properties:
222-
ti,cluster-mode:
223-
enum: [0, 1]
225+
allOf:
226+
- if:
227+
properties:
228+
compatible:
229+
enum:
230+
- ti,am64-r5fss
231+
then:
232+
properties:
233+
ti,cluster-mode:
234+
enum: [0, 2]
235+
236+
- if:
237+
properties:
238+
compatible:
239+
enum:
240+
- ti,am654-r5fss
241+
- ti,j7200-r5fss
242+
- ti,j721e-r5fss
243+
- ti,j721s2-r5fss
244+
then:
245+
properties:
246+
ti,cluster-mode:
247+
enum: [0, 1]
248+
249+
- if:
250+
properties:
251+
compatible:
252+
enum:
253+
- ti,am62-r5fss
254+
then:
255+
properties:
256+
ti,cluster-mode:
257+
enum: [3]
224258

225259
required:
226260
- compatible

0 commit comments

Comments
 (0)