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

dt-bindings: nvmem: convert mtk-efuse.txt to YAML schema

Convert mtk-efuse.txt to YAML schema mediatek,efuse.yaml

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20220706100627.6534-5-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Chunfeng Yun and committed by
Greg Kroah-Hartman
9c5fc8e1 38f91750

+87 -43
+87
Documentation/devicetree/bindings/nvmem/mediatek,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/mediatek,efuse.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: MediaTek efuse 8 + 9 + description: | 10 + MediaTek's efuse is used for storing calibration data, it can be accessed 11 + on ARM devices usiong I/O mapped memory. 12 + 13 + maintainers: 14 + - Andrew-CT Chen <andrew-ct.chen@mediatek.com> 15 + - Lala Lin <lala.lin@mediatek.com> 16 + 17 + allOf: 18 + - $ref: "nvmem.yaml#" 19 + 20 + properties: 21 + $nodename: 22 + pattern: "^efuse@[0-9a-f]+$" 23 + 24 + compatible: 25 + oneOf: 26 + - items: 27 + - enum: 28 + - mediatek,mt7622-efuse 29 + - mediatek,mt7623-efuse 30 + - mediatek,mt8173-efuse 31 + - mediatek,mt8192-efuse 32 + - mediatek,mt8195-efuse 33 + - mediatek,mt8516-efuse 34 + - const: mediatek,efuse 35 + - const: mediatek,mt8173-efuse 36 + deprecated: true 37 + 38 + reg: 39 + maxItems: 1 40 + 41 + required: 42 + - compatible 43 + - reg 44 + 45 + unevaluatedProperties: false 46 + 47 + examples: 48 + - | 49 + efuse@11c10000 { 50 + compatible = "mediatek,mt8195-efuse", "mediatek,efuse"; 51 + reg = <0x11c10000 0x1000>; 52 + #address-cells = <1>; 53 + #size-cells = <1>; 54 + 55 + u3_tx_imp_p0: usb3-tx-imp@184,1 { 56 + reg = <0x184 0x1>; 57 + bits = <0 5>; 58 + }; 59 + u3_rx_imp_p0: usb3-rx-imp@184,2 { 60 + reg = <0x184 0x2>; 61 + bits = <5 5>; 62 + }; 63 + u3_intr_p0: usb3-intr@185 { 64 + reg = <0x185 0x1>; 65 + bits = <2 6>; 66 + }; 67 + comb_tx_imp_p1: usb3-tx-imp@186,1 { 68 + reg = <0x186 0x1>; 69 + bits = <0 5>; 70 + }; 71 + comb_rx_imp_p1: usb3-rx-imp@186,2 { 72 + reg = <0x186 0x2>; 73 + bits = <5 5>; 74 + }; 75 + comb_intr_p1: usb3-intr@187 { 76 + reg = <0x187 0x1>; 77 + bits = <2 6>; 78 + }; 79 + u2_intr_p0: usb2-intr-p0@188,1 { 80 + reg = <0x188 0x1>; 81 + bits = <0 5>; 82 + }; 83 + u2_intr_p1: usb2-intr-p1@188,2 { 84 + reg = <0x188 0x2>; 85 + bits = <5 5>; 86 + }; 87 + };
-43
Documentation/devicetree/bindings/nvmem/mtk-efuse.txt
··· 1 - = Mediatek MTK-EFUSE device tree bindings = 2 - 3 - This binding is intended to represent MTK-EFUSE which is found in most Mediatek SOCs. 4 - 5 - Required properties: 6 - - compatible: should be 7 - "mediatek,mt7622-efuse", "mediatek,efuse": for MT7622 8 - "mediatek,mt7623-efuse", "mediatek,efuse": for MT7623 9 - "mediatek,mt8173-efuse" or "mediatek,efuse": for MT8173 10 - "mediatek,mt8192-efuse", "mediatek,efuse": for MT8192 11 - "mediatek,mt8195-efuse", "mediatek,efuse": for MT8195 12 - "mediatek,mt8516-efuse", "mediatek,efuse": for MT8516 13 - - reg: Should contain registers location and length 14 - - bits: contain the bits range by offset and size 15 - 16 - = Data cells = 17 - Are child nodes of MTK-EFUSE, bindings of which as described in 18 - bindings/nvmem/nvmem.txt 19 - 20 - Example: 21 - 22 - efuse: efuse@10206000 { 23 - compatible = "mediatek,mt8173-efuse"; 24 - reg = <0 0x10206000 0 0x1000>; 25 - #address-cells = <1>; 26 - #size-cells = <1>; 27 - 28 - /* Data cells */ 29 - thermal_calibration: calib@528 { 30 - reg = <0x528 0xc>; 31 - }; 32 - }; 33 - 34 - = Data consumers = 35 - Are device nodes which consume nvmem data cells. 36 - 37 - For example: 38 - 39 - thermal { 40 - ... 41 - nvmem-cells = <&thermal_calibration>; 42 - nvmem-cell-names = "calibration"; 43 - };