* [PATCH 0/3] Convert STM32 ROMEM to json-schema
@ 2019-12-19 14:41 Benjamin Gaignard
2019-12-19 14:41 ` [PATCH 1/3] dt-bindings: nvmem: " Benjamin Gaignard
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Benjamin Gaignard @ 2019-12-19 14:41 UTC (permalink / raw)
To: srinivas.kandagatla, robh+dt, mark.rutland, mcoquelin.stm32,
alexandre.torgue, fabrice.gasnier
Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
Benjamin Gaignard
Convert STM32 ROMEM to json-schema and fix the issues detected on stm32 dtsi
files.
Note that stm32mp1 patch should be applied on top of the stm32-next tree.
Benjamin Gaignard (3):
dt-bindings: nvmem: Convert STM32 ROMEM to json-schema
ARM: dts: stm32: change nvmem node name on stm32f429
ARM: dts: stm32: change nvmem node name on stm32mp1
.../devicetree/bindings/nvmem/st,stm32-romem.txt | 31 ---------------
.../devicetree/bindings/nvmem/st,stm32-romem.yaml | 46 ++++++++++++++++++++++
arch/arm/boot/dts/stm32f429.dtsi | 2 +-
arch/arm/boot/dts/stm32mp151.dtsi | 2 +-
4 files changed, 48 insertions(+), 33 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/nvmem/st,stm32-romem.txt
create mode 100644 Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
--
2.15.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/3] dt-bindings: nvmem: Convert STM32 ROMEM to json-schema
2019-12-19 14:41 [PATCH 0/3] Convert STM32 ROMEM to json-schema Benjamin Gaignard
@ 2019-12-19 14:41 ` Benjamin Gaignard
2019-12-20 22:54 ` Rob Herring
2019-12-19 14:41 ` [PATCH 2/3] ARM: dts: stm32: change nvmem node name on stm32f429 Benjamin Gaignard
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: Benjamin Gaignard @ 2019-12-19 14:41 UTC (permalink / raw)
To: srinivas.kandagatla, robh+dt, mark.rutland, mcoquelin.stm32,
alexandre.torgue, fabrice.gasnier
Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
Benjamin Gaignard
Convert the STM32 ROMEM binding to DT schema format using json-schema
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
---
.../devicetree/bindings/nvmem/st,stm32-romem.txt | 31 ---------------
.../devicetree/bindings/nvmem/st,stm32-romem.yaml | 46 ++++++++++++++++++++++
2 files changed, 46 insertions(+), 31 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/nvmem/st,stm32-romem.txt
create mode 100644 Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
diff --git a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.txt b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.txt
deleted file mode 100644
index 142a51d5a9be..000000000000
--- a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-STMicroelectronics STM32 Factory-programmed data device tree bindings
-
-This represents STM32 Factory-programmed read only non-volatile area: locked
-flash, OTP, read-only HW regs... This contains various information such as:
-analog calibration data for temperature sensor (e.g. TS_CAL1, TS_CAL2),
-internal vref (VREFIN_CAL), unique device ID...
-
-Required properties:
-- compatible: Should be one of:
- "st,stm32f4-otp"
- "st,stm32mp15-bsec"
-- reg: Offset and length of factory-programmed area.
-- #address-cells: Should be '<1>'.
-- #size-cells: Should be '<1>'.
-
-Optional Data cells:
-- Must be child nodes as described in nvmem.txt.
-
-Example on stm32f4:
- romem: nvmem@1fff7800 {
- compatible = "st,stm32f4-otp";
- reg = <0x1fff7800 0x400>;
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Data cells: ts_cal1 at 0x1fff7a2c */
- ts_cal1: calib@22c {
- reg = <0x22c 0x2>;
- };
- ...
- };
diff --git a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
new file mode 100644
index 000000000000..d84deb4774a4
--- /dev/null
+++ b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/nvmem/st,stm32-romem.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: STMicroelectronics STM32 Factory-programmed data bindings
+
+description: |
+ This represents STM32 Factory-programmed read only non-volatile area: locked
+ flash, OTP, read-only HW regs... This contains various information such as:
+ analog calibration data for temperature sensor (e.g. TS_CAL1, TS_CAL2),
+ internal vref (VREFIN_CAL), unique device ID...
+
+maintainers:
+ - Fabrice Gasnier <fabrice.gasnier@st.com>
+
+allOf:
+ - $ref: "nvmem.yaml#"
+
+properties:
+ compatible:
+ enum:
+ - st,stm32f4-otp
+ - st,stm32mp15-bsec
+
+required:
+ - "#address-cells"
+ - "#size-cells"
+ - compatible
+ - reg
+
+examples:
+ - |
+ efuse@1fff7800 {
+ compatible = "st,stm32f4-otp";
+ reg = <0x1fff7800 0x400>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ calib@22c {
+ reg = <0x22c 0x2>;
+ };
+ };
+
+...
--
2.15.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/3] ARM: dts: stm32: change nvmem node name on stm32f429
2019-12-19 14:41 [PATCH 0/3] Convert STM32 ROMEM to json-schema Benjamin Gaignard
2019-12-19 14:41 ` [PATCH 1/3] dt-bindings: nvmem: " Benjamin Gaignard
@ 2019-12-19 14:41 ` Benjamin Gaignard
2019-12-19 14:41 ` [PATCH 3/3] ARM: dts: stm32: change nvmem node name on stm32mp1 Benjamin Gaignard
2020-01-09 9:01 ` [PATCH 0/3] Convert STM32 ROMEM to json-schema Alexandre Torgue
3 siblings, 0 replies; 6+ messages in thread
From: Benjamin Gaignard @ 2019-12-19 14:41 UTC (permalink / raw)
To: srinivas.kandagatla, robh+dt, mark.rutland, mcoquelin.stm32,
alexandre.torgue, fabrice.gasnier
Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
Benjamin Gaignard
Change non volatile node name from nvmem to efuse to be compliant
with yaml schema.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
---
arch/arm/boot/dts/stm32f429.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi
index dab6351883e7..d7770699feb5 100644
--- a/arch/arm/boot/dts/stm32f429.dtsi
+++ b/arch/arm/boot/dts/stm32f429.dtsi
@@ -80,7 +80,7 @@
};
soc {
- romem: nvmem@1fff7800 {
+ romem: efuse@1fff7800 {
compatible = "st,stm32f4-otp";
reg = <0x1fff7800 0x400>;
#address-cells = <1>;
--
2.15.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 3/3] ARM: dts: stm32: change nvmem node name on stm32mp1
2019-12-19 14:41 [PATCH 0/3] Convert STM32 ROMEM to json-schema Benjamin Gaignard
2019-12-19 14:41 ` [PATCH 1/3] dt-bindings: nvmem: " Benjamin Gaignard
2019-12-19 14:41 ` [PATCH 2/3] ARM: dts: stm32: change nvmem node name on stm32f429 Benjamin Gaignard
@ 2019-12-19 14:41 ` Benjamin Gaignard
2020-01-09 9:01 ` [PATCH 0/3] Convert STM32 ROMEM to json-schema Alexandre Torgue
3 siblings, 0 replies; 6+ messages in thread
From: Benjamin Gaignard @ 2019-12-19 14:41 UTC (permalink / raw)
To: srinivas.kandagatla, robh+dt, mark.rutland, mcoquelin.stm32,
alexandre.torgue, fabrice.gasnier
Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel,
Benjamin Gaignard
Change non volatile node name from nvmem to efuse to be compliant
with yaml schema.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
---
arch/arm/boot/dts/stm32mp151.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi
index 3dd570b10181..c157d122b0f0 100644
--- a/arch/arm/boot/dts/stm32mp151.dtsi
+++ b/arch/arm/boot/dts/stm32mp151.dtsi
@@ -1485,7 +1485,7 @@
status = "disabled";
};
- bsec: nvmem@5c005000 {
+ bsec: efuse@5c005000 {
compatible = "st,stm32mp15-bsec";
reg = <0x5c005000 0x400>;
#address-cells = <1>;
--
2.15.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/3] dt-bindings: nvmem: Convert STM32 ROMEM to json-schema
2019-12-19 14:41 ` [PATCH 1/3] dt-bindings: nvmem: " Benjamin Gaignard
@ 2019-12-20 22:54 ` Rob Herring
0 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2019-12-20 22:54 UTC (permalink / raw)
To: Benjamin Gaignard
Cc: srinivas.kandagatla, robh+dt, mark.rutland, mcoquelin.stm32,
alexandre.torgue, fabrice.gasnier, devicetree, linux-stm32,
linux-arm-kernel, linux-kernel, Benjamin Gaignard
On Thu, 19 Dec 2019 15:41:15 +0100, Benjamin Gaignard wrote:
> Convert the STM32 ROMEM binding to DT schema format using json-schema
>
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
> ---
> .../devicetree/bindings/nvmem/st,stm32-romem.txt | 31 ---------------
> .../devicetree/bindings/nvmem/st,stm32-romem.yaml | 46 ++++++++++++++++++++++
> 2 files changed, 46 insertions(+), 31 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/nvmem/st,stm32-romem.txt
> create mode 100644 Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
>
Applied, thanks.
Rob
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 0/3] Convert STM32 ROMEM to json-schema
2019-12-19 14:41 [PATCH 0/3] Convert STM32 ROMEM to json-schema Benjamin Gaignard
` (2 preceding siblings ...)
2019-12-19 14:41 ` [PATCH 3/3] ARM: dts: stm32: change nvmem node name on stm32mp1 Benjamin Gaignard
@ 2020-01-09 9:01 ` Alexandre Torgue
3 siblings, 0 replies; 6+ messages in thread
From: Alexandre Torgue @ 2020-01-09 9:01 UTC (permalink / raw)
To: Benjamin Gaignard, srinivas.kandagatla, robh+dt, mark.rutland,
mcoquelin.stm32, fabrice.gasnier
Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel
Hi Benjamin,
On 12/19/19 3:41 PM, Benjamin Gaignard wrote:
> Convert STM32 ROMEM to json-schema and fix the issues detected on stm32 dtsi
> files.
> Note that stm32mp1 patch should be applied on top of the stm32-next tree.
>
> Benjamin Gaignard (3):
> dt-bindings: nvmem: Convert STM32 ROMEM to json-schema
> ARM: dts: stm32: change nvmem node name on stm32f429
> ARM: dts: stm32: change nvmem node name on stm32mp1
>
> .../devicetree/bindings/nvmem/st,stm32-romem.txt | 31 ---------------
> .../devicetree/bindings/nvmem/st,stm32-romem.yaml | 46 ++++++++++++++++++++++
> arch/arm/boot/dts/stm32f429.dtsi | 2 +-
> arch/arm/boot/dts/stm32mp151.dtsi | 2 +-
> 4 files changed, 48 insertions(+), 33 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/nvmem/st,stm32-romem.txt
> create mode 100644 Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
>
DT patches applied on stm32-next.
Thanks
Alex
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-01-09 9:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-19 14:41 [PATCH 0/3] Convert STM32 ROMEM to json-schema Benjamin Gaignard
2019-12-19 14:41 ` [PATCH 1/3] dt-bindings: nvmem: " Benjamin Gaignard
2019-12-20 22:54 ` Rob Herring
2019-12-19 14:41 ` [PATCH 2/3] ARM: dts: stm32: change nvmem node name on stm32f429 Benjamin Gaignard
2019-12-19 14:41 ` [PATCH 3/3] ARM: dts: stm32: change nvmem node name on stm32mp1 Benjamin Gaignard
2020-01-09 9:01 ` [PATCH 0/3] Convert STM32 ROMEM to json-schema 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).