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

dt-bindings: nvmem: sprd,ums312-efuse: convert to YAML

Convert the Spreadtrum UMS312 eFuse bindings to DT schema.
Adjust filename to match compatible.

Note: the UMS312 clock bindings include doesn't seem to exist (yet?), so
the UMS512 one was used for the "CLK_EFUSE_EB" define.

Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20241030140315.40562-8-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Stanislav Jakubek and committed by
Greg Kroah-Hartman
1c4ea801 5e616870

+61 -39
+61
Documentation/devicetree/bindings/nvmem/sprd,ums312-efuse.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/sprd,ums312-efuse.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Spreadtrum UMS312 eFuse 8 + 9 + maintainers: 10 + - Orson Zhai <orsonzhai@gmail.com> 11 + - Baolin Wang <baolin.wang7@gmail.com> 12 + - Chunyan Zhang <zhang.lyra@gmail.com> 13 + 14 + properties: 15 + compatible: 16 + const: sprd,ums312-efuse 17 + 18 + reg: 19 + maxItems: 1 20 + 21 + clocks: 22 + maxItems: 1 23 + 24 + clock-names: 25 + const: enable 26 + 27 + hwlocks: 28 + maxItems: 1 29 + 30 + required: 31 + - compatible 32 + - reg 33 + - clocks 34 + - clock-names 35 + - hwlocks 36 + 37 + allOf: 38 + - $ref: nvmem.yaml# 39 + - $ref: nvmem-deprecated-cells.yaml# 40 + 41 + unevaluatedProperties: false 42 + 43 + examples: 44 + - | 45 + #include <dt-bindings/clock/sprd,ums512-clk.h> 46 + 47 + efuse@32240000 { 48 + compatible = "sprd,ums312-efuse"; 49 + reg = <0x32240000 0x10000>; 50 + clocks = <&aonapb_gate CLK_EFUSE_EB>; 51 + clock-names = "enable"; 52 + hwlocks = <&hwlock 8>; 53 + #address-cells = <1>; 54 + #size-cells = <1>; 55 + 56 + /* Data cells */ 57 + thermal_calib: calib@10 { 58 + reg = <0x10 0x2>; 59 + }; 60 + }; 61 + ...
-39
Documentation/devicetree/bindings/nvmem/sprd-efuse.txt
··· 1 - = Spreadtrum eFuse device tree bindings = 2 - 3 - Required properties: 4 - - compatible: Should be "sprd,ums312-efuse". 5 - - reg: Specify the address offset of efuse controller. 6 - - clock-names: Should be "enable". 7 - - clocks: The phandle and specifier referencing the controller's clock. 8 - - hwlocks: Reference to a phandle of a hwlock provider node. 9 - 10 - = Data cells = 11 - Are child nodes of eFuse, bindings of which as described in 12 - bindings/nvmem/nvmem.txt 13 - 14 - Example: 15 - 16 - ap_efuse: efuse@32240000 { 17 - compatible = "sprd,ums312-efuse"; 18 - reg = <0 0x32240000 0 0x10000>; 19 - clock-names = "enable"; 20 - hwlocks = <&hwlock 8>; 21 - clocks = <&aonapb_gate CLK_EFUSE_EB>; 22 - 23 - /* Data cells */ 24 - thermal_calib: calib@10 { 25 - reg = <0x10 0x2>; 26 - }; 27 - }; 28 - 29 - = Data consumers = 30 - Are device nodes which consume nvmem data cells. 31 - 32 - Example: 33 - 34 - thermal { 35 - ... 36 - 37 - nvmem-cells = <&thermal_calib>; 38 - nvmem-cell-names = "calibration"; 39 - };