Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: nvmem: Convert STM32 ROMEM to json-schema

Convert the STM32 ROMEM binding to DT schema format using json-schema

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Benjamin Gaignard and committed by
Rob Herring
6ffdc742 c5a05bd6

+46 -31
-31
Documentation/devicetree/bindings/nvmem/st,stm32-romem.txt
··· 1 - STMicroelectronics STM32 Factory-programmed data device tree bindings 2 - 3 - This represents STM32 Factory-programmed read only non-volatile area: locked 4 - flash, OTP, read-only HW regs... This contains various information such as: 5 - analog calibration data for temperature sensor (e.g. TS_CAL1, TS_CAL2), 6 - internal vref (VREFIN_CAL), unique device ID... 7 - 8 - Required properties: 9 - - compatible: Should be one of: 10 - "st,stm32f4-otp" 11 - "st,stm32mp15-bsec" 12 - - reg: Offset and length of factory-programmed area. 13 - - #address-cells: Should be '<1>'. 14 - - #size-cells: Should be '<1>'. 15 - 16 - Optional Data cells: 17 - - Must be child nodes as described in nvmem.txt. 18 - 19 - Example on stm32f4: 20 - romem: nvmem@1fff7800 { 21 - compatible = "st,stm32f4-otp"; 22 - reg = <0x1fff7800 0x400>; 23 - #address-cells = <1>; 24 - #size-cells = <1>; 25 - 26 - /* Data cells: ts_cal1 at 0x1fff7a2c */ 27 - ts_cal1: calib@22c { 28 - reg = <0x22c 0x2>; 29 - }; 30 - ... 31 - };
+46
Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/nvmem/st,stm32-romem.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: STMicroelectronics STM32 Factory-programmed data bindings 8 + 9 + description: | 10 + This represents STM32 Factory-programmed read only non-volatile area: locked 11 + flash, OTP, read-only HW regs... This contains various information such as: 12 + analog calibration data for temperature sensor (e.g. TS_CAL1, TS_CAL2), 13 + internal vref (VREFIN_CAL), unique device ID... 14 + 15 + maintainers: 16 + - Fabrice Gasnier <fabrice.gasnier@st.com> 17 + 18 + allOf: 19 + - $ref: "nvmem.yaml#" 20 + 21 + properties: 22 + compatible: 23 + enum: 24 + - st,stm32f4-otp 25 + - st,stm32mp15-bsec 26 + 27 + required: 28 + - "#address-cells" 29 + - "#size-cells" 30 + - compatible 31 + - reg 32 + 33 + examples: 34 + - | 35 + efuse@1fff7800 { 36 + compatible = "st,stm32f4-otp"; 37 + reg = <0x1fff7800 0x400>; 38 + #address-cells = <1>; 39 + #size-cells = <1>; 40 + 41 + calib@22c { 42 + reg = <0x22c 0x2>; 43 + }; 44 + }; 45 + 46 + ...