* [PATCH v2 0/4] ARM: stm32: add DT properties for remote proc synchronisation
@ 2020-10-14 12:54 Arnaud Pouliquen
2020-10-14 12:54 ` [PATCH v2 1/4] dt-bindings: arm: stm32: Add compatible for syscon tamp node Arnaud Pouliquen
` (5 more replies)
0 siblings, 6 replies; 10+ messages in thread
From: Arnaud Pouliquen @ 2020-10-14 12:54 UTC (permalink / raw)
To: Rob Herring, Alexandre Torgue
Cc: devicetree, linux-stm32, linux-arm-kernel, linux-remoteproc,
linux-kernel, Arnaud Pouliquen, Mathieu Poirier, Ohad Ben-Cohen,
Bjorn Andersson, Ahmad Fatoum
This series implements the DT part associated to the commit 9276536f455b3
("remoteproc: stm32: Parse syscon that will manage M4 synchronisation")
Delta vs V1 [1]
- add Rob acked-by on patch 1/4
- simplify yaml descriptions and align other syscon descriptions
[1]https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=339339
Arnaud Pouliquen (4):
dt-bindings: arm: stm32: Add compatible for syscon tamp node
dt-bindings: remoteproc: stm32_rproc: update for firmware
synchronization
dt-bindings: remoteproc: stm32_rproc: update syscon descriptions
ARM: dts: stm32: update stm32mp151 for remote proc synchronization
support
.../bindings/arm/stm32/st,stm32-syscon.yaml | 1 +
.../bindings/remoteproc/st,stm32-rproc.yaml | 21 +++++++++++++------
arch/arm/boot/dts/stm32mp151.dtsi | 7 +++++++
3 files changed, 23 insertions(+), 6 deletions(-)
--
2.17.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v2 1/4] dt-bindings: arm: stm32: Add compatible for syscon tamp node
2020-10-14 12:54 [PATCH v2 0/4] ARM: stm32: add DT properties for remote proc synchronisation Arnaud Pouliquen
@ 2020-10-14 12:54 ` Arnaud Pouliquen
2020-10-14 12:54 ` [PATCH v2 2/4] dt-bindings: remoteproc: stm32_rproc: update for firmware synchronization Arnaud Pouliquen
` (4 subsequent siblings)
5 siblings, 0 replies; 10+ messages in thread
From: Arnaud Pouliquen @ 2020-10-14 12:54 UTC (permalink / raw)
To: Rob Herring, Alexandre Torgue
Cc: devicetree, linux-stm32, linux-arm-kernel, linux-remoteproc,
linux-kernel, Arnaud Pouliquen, Mathieu Poirier, Ohad Ben-Cohen,
Bjorn Andersson, Ahmad Fatoum
Since commit ad440432d1f9 ("dt-bindings: mfd: Ensure 'syscon' has a
more specific compatible")
It is required to provide at least 2 compatibles string for syscon node.
This patch documents the new compatible for stm32 SoC to support
TAMP registers access.
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Acked-by: Rob Herring <robh@kernel.org>
---
Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml b/Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml
index 6f1cd0103c74..6634b3e0853e 100644
--- a/Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml
+++ b/Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml
@@ -19,6 +19,7 @@ properties:
- st,stm32mp151-pwr-mcu
- st,stm32-syscfg
- st,stm32-power-config
+ - st,stm32-tamp
- const: syscon
reg:
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 2/4] dt-bindings: remoteproc: stm32_rproc: update for firmware synchronization
2020-10-14 12:54 [PATCH v2 0/4] ARM: stm32: add DT properties for remote proc synchronisation Arnaud Pouliquen
2020-10-14 12:54 ` [PATCH v2 1/4] dt-bindings: arm: stm32: Add compatible for syscon tamp node Arnaud Pouliquen
@ 2020-10-14 12:54 ` Arnaud Pouliquen
2020-10-19 20:26 ` Rob Herring
2020-10-14 12:54 ` [PATCH v2 3/4] dt-bindings: remoteproc: stm32_rproc: update syscon descriptions Arnaud Pouliquen
` (3 subsequent siblings)
5 siblings, 1 reply; 10+ messages in thread
From: Arnaud Pouliquen @ 2020-10-14 12:54 UTC (permalink / raw)
To: Rob Herring, Alexandre Torgue
Cc: devicetree, linux-stm32, linux-arm-kernel, linux-remoteproc,
linux-kernel, Arnaud Pouliquen, Mathieu Poirier, Ohad Ben-Cohen,
Bjorn Andersson, Ahmad Fatoum
Add new properties description used to attach to a pre-loaded
firmware according to the commit 9276536f455b3
("remoteproc: stm32: Parse syscon that will manage M4 synchronisation")
which updates the driver part.
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
---
.../bindings/remoteproc/st,stm32-rproc.yaml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml
index 4ffa25268fcc..3207942d51bf 100644
--- a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml
+++ b/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml
@@ -96,6 +96,19 @@ properties:
3rd cell: register bitmask for the deep sleep bit
maxItems: 1
+ st,syscfg-m4-state:
+ $ref: "/schemas/types.yaml#/definitions/phandle-array"
+ description: |
+ Reference to the tamp register which exposes the Cortex-M4 state.
+ maxItems: 1
+
+ st,syscfg-rsc-tbl:
+ $ref: "/schemas/types.yaml#/definitions/phandle-array"
+ description: |
+ Reference to the tamp register which references the Cortex-M4
+ resource table address.
+ maxItems: 1
+
st,auto-boot:
$ref: /schemas/types.yaml#/definitions/flag
description:
@@ -122,6 +135,8 @@ examples:
resets = <&rcc MCU_R>;
st,syscfg-holdboot = <&rcc 0x10C 0x1>;
st,syscfg-tz = <&rcc 0x000 0x1>;
+ st,syscfg-rsc-tbl = <&tamp 0x144 0xFFFFFFFF>;
+ st,syscfg-m4-state = <&tamp 0x148 0xFFFFFFFF>;
};
...
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 3/4] dt-bindings: remoteproc: stm32_rproc: update syscon descriptions
2020-10-14 12:54 [PATCH v2 0/4] ARM: stm32: add DT properties for remote proc synchronisation Arnaud Pouliquen
2020-10-14 12:54 ` [PATCH v2 1/4] dt-bindings: arm: stm32: Add compatible for syscon tamp node Arnaud Pouliquen
2020-10-14 12:54 ` [PATCH v2 2/4] dt-bindings: remoteproc: stm32_rproc: update for firmware synchronization Arnaud Pouliquen
@ 2020-10-14 12:54 ` Arnaud Pouliquen
2020-10-19 20:27 ` Rob Herring
2020-10-14 12:54 ` [PATCH v2 4/4] ARM: dts: stm32: update stm32mp151 for remote proc synchronization support Arnaud Pouliquen
` (2 subsequent siblings)
5 siblings, 1 reply; 10+ messages in thread
From: Arnaud Pouliquen @ 2020-10-14 12:54 UTC (permalink / raw)
To: Rob Herring, Alexandre Torgue
Cc: devicetree, linux-stm32, linux-arm-kernel, linux-remoteproc,
linux-kernel, Arnaud Pouliquen, Mathieu Poirier, Ohad Ben-Cohen,
Bjorn Andersson, Ahmad Fatoum
Align other syscon descriptions with st,syscfg-m4-state and
st,syscfg-rsc-tbl descriptions by suppressing the cells
description.
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
---
.../devicetree/bindings/remoteproc/st,stm32-rproc.yaml | 6 ------
1 file changed, 6 deletions(-)
diff --git a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml
index 3207942d51bf..a1171dfba024 100644
--- a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml
+++ b/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml
@@ -38,9 +38,6 @@ properties:
st,syscfg-tz:
description:
Reference to the system configuration which holds the RCC trust zone mode
- - Phandle of syscon block.
- - The offset of the RCC trust zone mode register.
- - The field mask of the RCC trust zone mode.
$ref: "/schemas/types.yaml#/definitions/phandle-array"
maxItems: 1
@@ -91,9 +88,6 @@ properties:
$ref: "/schemas/types.yaml#/definitions/phandle-array"
description: |
Reference to the system configuration which holds the remote
- 1st cell: phandle to syscon block
- 2nd cell: register offset containing the deep sleep setting
- 3rd cell: register bitmask for the deep sleep bit
maxItems: 1
st,syscfg-m4-state:
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 4/4] ARM: dts: stm32: update stm32mp151 for remote proc synchronization support
2020-10-14 12:54 [PATCH v2 0/4] ARM: stm32: add DT properties for remote proc synchronisation Arnaud Pouliquen
` (2 preceding siblings ...)
2020-10-14 12:54 ` [PATCH v2 3/4] dt-bindings: remoteproc: stm32_rproc: update syscon descriptions Arnaud Pouliquen
@ 2020-10-14 12:54 ` Arnaud Pouliquen
2020-10-14 16:51 ` Mathieu Poirier
2020-10-26 15:49 ` [PATCH v2 0/4] ARM: stm32: add DT properties for remote proc synchronisation Bjorn Andersson
2020-11-17 11:18 ` Alexandre Torgue
5 siblings, 1 reply; 10+ messages in thread
From: Arnaud Pouliquen @ 2020-10-14 12:54 UTC (permalink / raw)
To: Rob Herring, Alexandre Torgue
Cc: devicetree, linux-stm32, linux-arm-kernel, linux-remoteproc,
linux-kernel, Arnaud Pouliquen, Mathieu Poirier, Ohad Ben-Cohen,
Bjorn Andersson, Ahmad Fatoum
Two backup registers are used to store the Cortex-M4 state and the resource
table address.
Declare the tamp node and add associated properties in m4_rproc node
to allow Linux to attach to a firmware loaded by the first boot stages.
Associated driver implementation is available in commit 9276536f455b3
("remoteproc: stm32: Parse syscon that will manage M4 synchronisation").
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
---
arch/arm/boot/dts/stm32mp151.dtsi | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi
index bfe29023fbd5..842ecffae73a 100644
--- a/arch/arm/boot/dts/stm32mp151.dtsi
+++ b/arch/arm/boot/dts/stm32mp151.dtsi
@@ -1541,6 +1541,11 @@
status = "disabled";
};
+ tamp: tamp@5c00a000 {
+ compatible = "st,stm32-tamp", "syscon";
+ reg = <0x5c00a000 0x400>;
+ };
+
/*
* Break node order to solve dependency probe issue between
* pinctrl and exti.
@@ -1717,6 +1722,8 @@
st,syscfg-holdboot = <&rcc 0x10C 0x1>;
st,syscfg-tz = <&rcc 0x000 0x1>;
st,syscfg-pdds = <&pwr_mcu 0x0 0x1>;
+ st,syscfg-rsc-tbl = <&tamp 0x144 0xFFFFFFFF>;
+ st,syscfg-m4-state = <&tamp 0x148 0xFFFFFFFF>;
status = "disabled";
};
};
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v2 4/4] ARM: dts: stm32: update stm32mp151 for remote proc synchronization support
2020-10-14 12:54 ` [PATCH v2 4/4] ARM: dts: stm32: update stm32mp151 for remote proc synchronization support Arnaud Pouliquen
@ 2020-10-14 16:51 ` Mathieu Poirier
0 siblings, 0 replies; 10+ messages in thread
From: Mathieu Poirier @ 2020-10-14 16:51 UTC (permalink / raw)
To: Arnaud Pouliquen
Cc: Rob Herring, Alexandre Torgue, devicetree, linux-stm32,
linux-arm-kernel, linux-remoteproc, linux-kernel, Ohad Ben-Cohen,
Bjorn Andersson, Ahmad Fatoum
On Wed, Oct 14, 2020 at 02:54:41PM +0200, Arnaud Pouliquen wrote:
> Two backup registers are used to store the Cortex-M4 state and the resource
> table address.
> Declare the tamp node and add associated properties in m4_rproc node
> to allow Linux to attach to a firmware loaded by the first boot stages.
>
> Associated driver implementation is available in commit 9276536f455b3
> ("remoteproc: stm32: Parse syscon that will manage M4 synchronisation").
>
> Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
> ---
> arch/arm/boot/dts/stm32mp151.dtsi | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi
> index bfe29023fbd5..842ecffae73a 100644
> --- a/arch/arm/boot/dts/stm32mp151.dtsi
> +++ b/arch/arm/boot/dts/stm32mp151.dtsi
> @@ -1541,6 +1541,11 @@
> status = "disabled";
> };
>
> + tamp: tamp@5c00a000 {
> + compatible = "st,stm32-tamp", "syscon";
> + reg = <0x5c00a000 0x400>;
> + };
> +
> /*
> * Break node order to solve dependency probe issue between
> * pinctrl and exti.
> @@ -1717,6 +1722,8 @@
> st,syscfg-holdboot = <&rcc 0x10C 0x1>;
> st,syscfg-tz = <&rcc 0x000 0x1>;
> st,syscfg-pdds = <&pwr_mcu 0x0 0x1>;
> + st,syscfg-rsc-tbl = <&tamp 0x144 0xFFFFFFFF>;
> + st,syscfg-m4-state = <&tamp 0x148 0xFFFFFFFF>;
Tested-by: Mathieu Poirier <mathieu.poirier@linaro.org>
> status = "disabled";
> };
> };
> --
> 2.17.1
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 2/4] dt-bindings: remoteproc: stm32_rproc: update for firmware synchronization
2020-10-14 12:54 ` [PATCH v2 2/4] dt-bindings: remoteproc: stm32_rproc: update for firmware synchronization Arnaud Pouliquen
@ 2020-10-19 20:26 ` Rob Herring
0 siblings, 0 replies; 10+ messages in thread
From: Rob Herring @ 2020-10-19 20:26 UTC (permalink / raw)
To: Arnaud Pouliquen
Cc: Mathieu Poirier, linux-kernel, Ohad Ben-Cohen, Bjorn Andersson,
linux-remoteproc, linux-stm32, devicetree, Alexandre Torgue,
Ahmad Fatoum, linux-arm-kernel
On Wed, 14 Oct 2020 14:54:39 +0200, Arnaud Pouliquen wrote:
> Add new properties description used to attach to a pre-loaded
> firmware according to the commit 9276536f455b3
> ("remoteproc: stm32: Parse syscon that will manage M4 synchronisation")
> which updates the driver part.
>
> Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
> ---
> .../bindings/remoteproc/st,stm32-rproc.yaml | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 3/4] dt-bindings: remoteproc: stm32_rproc: update syscon descriptions
2020-10-14 12:54 ` [PATCH v2 3/4] dt-bindings: remoteproc: stm32_rproc: update syscon descriptions Arnaud Pouliquen
@ 2020-10-19 20:27 ` Rob Herring
0 siblings, 0 replies; 10+ messages in thread
From: Rob Herring @ 2020-10-19 20:27 UTC (permalink / raw)
To: Arnaud Pouliquen
Cc: Bjorn Andersson, linux-arm-kernel, linux-kernel, devicetree,
Mathieu Poirier, linux-stm32, Ohad Ben-Cohen, linux-remoteproc,
Alexandre Torgue, Ahmad Fatoum
On Wed, 14 Oct 2020 14:54:40 +0200, Arnaud Pouliquen wrote:
> Align other syscon descriptions with st,syscfg-m4-state and
> st,syscfg-rsc-tbl descriptions by suppressing the cells
> description.
>
> Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
> ---
> .../devicetree/bindings/remoteproc/st,stm32-rproc.yaml | 6 ------
> 1 file changed, 6 deletions(-)
>
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 0/4] ARM: stm32: add DT properties for remote proc synchronisation
2020-10-14 12:54 [PATCH v2 0/4] ARM: stm32: add DT properties for remote proc synchronisation Arnaud Pouliquen
` (3 preceding siblings ...)
2020-10-14 12:54 ` [PATCH v2 4/4] ARM: dts: stm32: update stm32mp151 for remote proc synchronization support Arnaud Pouliquen
@ 2020-10-26 15:49 ` Bjorn Andersson
2020-11-17 11:18 ` Alexandre Torgue
5 siblings, 0 replies; 10+ messages in thread
From: Bjorn Andersson @ 2020-10-26 15:49 UTC (permalink / raw)
To: Arnaud Pouliquen
Cc: Rob Herring, Alexandre Torgue, devicetree, linux-stm32,
linux-arm-kernel, linux-remoteproc, linux-kernel,
Mathieu Poirier, Ohad Ben-Cohen, Ahmad Fatoum
On Wed 14 Oct 07:54 CDT 2020, Arnaud Pouliquen wrote:
> This series implements the DT part associated to the commit 9276536f455b3
> ("remoteproc: stm32: Parse syscon that will manage M4 synchronisation")
>
> Delta vs V1 [1]
> - add Rob acked-by on patch 1/4
> - simplify yaml descriptions and align other syscon descriptions
>
> [1]https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=339339
>
> Arnaud Pouliquen (4):
> dt-bindings: arm: stm32: Add compatible for syscon tamp node
> dt-bindings: remoteproc: stm32_rproc: update for firmware
> synchronization
> dt-bindings: remoteproc: stm32_rproc: update syscon descriptions
Applied the dt-bindings updates, expecting the dts change to go throught
he ST soc tree.
Thank you,
Bjorn
> ARM: dts: stm32: update stm32mp151 for remote proc synchronization
> support
>
> .../bindings/arm/stm32/st,stm32-syscon.yaml | 1 +
> .../bindings/remoteproc/st,stm32-rproc.yaml | 21 +++++++++++++------
> arch/arm/boot/dts/stm32mp151.dtsi | 7 +++++++
> 3 files changed, 23 insertions(+), 6 deletions(-)
>
> --
> 2.17.1
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 0/4] ARM: stm32: add DT properties for remote proc synchronisation
2020-10-14 12:54 [PATCH v2 0/4] ARM: stm32: add DT properties for remote proc synchronisation Arnaud Pouliquen
` (4 preceding siblings ...)
2020-10-26 15:49 ` [PATCH v2 0/4] ARM: stm32: add DT properties for remote proc synchronisation Bjorn Andersson
@ 2020-11-17 11:18 ` Alexandre Torgue
5 siblings, 0 replies; 10+ messages in thread
From: Alexandre Torgue @ 2020-11-17 11:18 UTC (permalink / raw)
To: Arnaud Pouliquen, Rob Herring
Cc: devicetree, linux-stm32, linux-arm-kernel, linux-remoteproc,
linux-kernel, Mathieu Poirier, Ohad Ben-Cohen, Bjorn Andersson,
Ahmad Fatoum
Hi Arnaud
On 10/14/20 2:54 PM, Arnaud Pouliquen wrote:
> This series implements the DT part associated to the commit 9276536f455b3
> ("remoteproc: stm32: Parse syscon that will manage M4 synchronisation")
>
> Delta vs V1 [1]
> - add Rob acked-by on patch 1/4
> - simplify yaml descriptions and align other syscon descriptions
>
> [1]https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=339339
>
> Arnaud Pouliquen (4):
> dt-bindings: arm: stm32: Add compatible for syscon tamp node
> dt-bindings: remoteproc: stm32_rproc: update for firmware
> synchronization
> dt-bindings: remoteproc: stm32_rproc: update syscon descriptions
> ARM: dts: stm32: update stm32mp151 for remote proc synchronization
> support
>
> .../bindings/arm/stm32/st,stm32-syscon.yaml | 1 +
> .../bindings/remoteproc/st,stm32-rproc.yaml | 21 +++++++++++++------
> arch/arm/boot/dts/stm32mp151.dtsi | 7 +++++++
> 3 files changed, 23 insertions(+), 6 deletions(-)
>
DT patch applied on stm32-next.
regards
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2020-11-17 11:19 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-14 12:54 [PATCH v2 0/4] ARM: stm32: add DT properties for remote proc synchronisation Arnaud Pouliquen
2020-10-14 12:54 ` [PATCH v2 1/4] dt-bindings: arm: stm32: Add compatible for syscon tamp node Arnaud Pouliquen
2020-10-14 12:54 ` [PATCH v2 2/4] dt-bindings: remoteproc: stm32_rproc: update for firmware synchronization Arnaud Pouliquen
2020-10-19 20:26 ` Rob Herring
2020-10-14 12:54 ` [PATCH v2 3/4] dt-bindings: remoteproc: stm32_rproc: update syscon descriptions Arnaud Pouliquen
2020-10-19 20:27 ` Rob Herring
2020-10-14 12:54 ` [PATCH v2 4/4] ARM: dts: stm32: update stm32mp151 for remote proc synchronization support Arnaud Pouliquen
2020-10-14 16:51 ` Mathieu Poirier
2020-10-26 15:49 ` [PATCH v2 0/4] ARM: stm32: add DT properties for remote proc synchronisation Bjorn Andersson
2020-11-17 11:18 ` Alexandre Torgue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).