dt-bindings: nvmem: convert mtk-efuse.txt to YAML schema
Subsystems (3)
PATCH v6 1/4 dt-bindings: nvmem: convert mtk-efuse.txt to YAML schema
Convert mtk-efuse.txt to YAML schema mediatek,efuse.yaml
---
v6: no changes, based on kernel 5.19-rc1
v5:
sync with the series:
https://patchwork.kernel.org/project/linux-mediatek/list/?series=640196
1. change title suggested by Krzysztof;
2. No need drop 'reviewed-by Rob' suggested by Krzysztof
3. add maintainer Lala who maintain efuse driver now;
v4: fix duplicated unit-address in example;
drop reviewed-by Rob, due to changes;v3: add reviewed-by Rob
v2:
1. remove description of subnodes which is covered by nvmem.yaml
suggested by Rob
2. change the example which is commoner than mt8173's
--- .../bindings/nvmem/mediatek,efuse.yaml | 87 +++++++++++++++++++ .../devicetree/bindings/nvmem/mtk-efuse.txt | 43 --------- 2 files changed, 87 insertions(+), 43 deletions(-) create mode 100644 Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml delete mode 100644 Documentation/devicetree/bindings/nvmem/mtk-efuse.txt
Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml new file +87 -0
@@ -0,0 +1,87 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/mediatek,efuse.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek efuse + +description: | + MediaTek's efuse is used for storing calibration data, it can be accessed + on ARM devices usiong I/O mapped memory. + +maintainers: + - Andrew-CT Chen <[email protected]> + - Lala Lin <[email protected]> + +allOf: + - $ref: "nvmem.yaml#" + +properties: + $nodename: + pattern: "^efuse@[0-9a-f]+$" + + compatible: + oneOf: + - items: + - enum: + - mediatek,mt7622-efuse + - mediatek,mt7623-efuse + - mediatek,mt8173-efuse + - mediatek,mt8192-efuse + - mediatek,mt8195-efuse + - mediatek,mt8516-efuse + - const: mediatek,efuse + - const: mediatek,mt8173-efuse + deprecated: true + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + efuse@11c10000 { + compatible = "mediatek,mt8195-efuse", "mediatek,efuse"; + reg = <0x11c10000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + u3_tx_imp_p0: usb3-tx-imp@184,1 { + reg = <0x184 0x1>; + bits = <0 5>; + }; + u3_rx_imp_p0: usb3-rx-imp@184,2 { + reg = <0x184 0x2>; + bits = <5 5>; + }; + u3_intr_p0: usb3-intr@185 { + reg = <0x185 0x1>; + bits = <2 6>; + }; + comb_tx_imp_p1: usb3-tx-imp@186,1 { + reg = <0x186 0x1>; + bits = <0 5>; + }; + comb_rx_imp_p1: usb3-rx-imp@186,2 { + reg = <0x186 0x2>; + bits = <5 5>; + }; + comb_intr_p1: usb3-intr@187 { + reg = <0x187 0x1>; + bits = <2 6>; + }; + u2_intr_p0: usb2-intr-p0@188,1 { + reg = <0x188 0x1>; + bits = <0 5>; + }; + u2_intr_p1: usb2-intr-p1@188,2 { + reg = <0x188 0x2>; + bits = <5 5>; + }; + };
Documentation/devicetree/bindings/nvmem/mtk-efuse.txt deleted +0 -43
43 lines not on this page · raw message
Signature · 1 line
2.18.0
PATCH v6 2/4 dt-bindings: nvmem: mediatek: efuse: add support mt8183
Add "mediatek,mt8183-efuse" to fix dtbs check warning.
---
v6: add acked-by Rob
v5: new patch
--- Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml +1 -0
@@ -28,6 +28,7 @@ properties: - mediatek,mt7622-efuse - mediatek,mt7623-efuse - mediatek,mt8173-efuse + - mediatek,mt8183-efuse - mediatek,mt8192-efuse - mediatek,mt8195-efuse - mediatek,mt8516-efuse
Signature · 1 line
2.18.0
PATCH v6 3/4 arm64: dts: mediatek: mt8192: fix dtbs check warning of efuse
In reply to Chunfeng YunNeed also provide a specific compatible "mediatek,mt8192-efuse" at the same time when use the generic compatible "mediatek,efuse".
---
v6: no changes
v5: new patch, sync with the series:
https://patchwork.kernel.org/project/linux-mediatek/list/?series=640196 porting from [v4,3/3], but abondon mt8173's change; --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt8192.dtsi +1 -1
@@ -911,7 +911,7 @@ }; efuse: efuse@11c10000 { - compatible = "mediatek,efuse"; + compatible = "mediatek,mt8192-efuse", "mediatek,efuse"; reg = <0 0x11c10000 0 0x1000>; #address-cells = <1>; #size-cells = <1>;
Signature · 1 line
2.18.0
PATCH v6 4/4 arm64: dts: mediatek: mt8183: change efuse node name
In reply to Chunfeng YunUse the fixed "efuse" name for efuse nodes according to its yaml file
---
v6: no changes
v5: new patch
--- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt8183.dtsi +1 -1
@@ -321,7 +321,7 @@ compatible = "simple-bus"; ranges; - soc_data: soc_data@8000000 { + soc_data: efuse@8000000 { compatible = "mediatek,mt8183-efuse", "mediatek,efuse"; reg = <0 0x08000000 0 0x0010>;
Signature · 1 line
2.18.0
Quoted 6 lines · Chunfeng Yun
Convert mtk-efuse.txt to YAML schema mediatek,efuse.yaml
Reviewed-by Krzysztof Kozlowski <[email protected]>Reviewed-by Rob Herring <[email protected]>Signed-off-by Chunfeng Yun <[email protected]>---
Applied 1/4 and 2/4, dts patches need to go via SoC maintainer.
thanks,
-srini
Quoted 167 lines
v6: no changes, based on kernel 5.19-rc1
v5:
sync with the series:
https://patchwork.kernel.org/project/linux-mediatek/list/?series=640196
1. change title suggested by Krzysztof;
2. No need drop 'reviewed-by Rob' suggested by Krzysztof
3. add maintainer Lala who maintain efuse driver now;v4: fix duplicated unit-address in example; drop reviewed-by Rob, due to changes;v3: add reviewed-by Rob
v2:
1. remove description of subnodes which is covered bynvmem.yaml
suggested by Rob
2. change the example which is commoner than mt8173's--- .../bindings/nvmem/mediatek,efuse.yaml | 87 +++++++++++++++++++ .../devicetree/bindings/nvmem/mtk-efuse.txt | 43 --------- 2 files changed, 87 insertions(+), 43 deletions(-)create mode 100644
Documentation/devicetree/bindings/nvmem/mediatek,efuse.yamldelete mode 100644Documentation/devicetree/bindings/nvmem/mtk-efuse.txtDocumentation/devicetree/bindings/nvmem/mediatek,efuse.yaml new file +87
-0@@ -0,0 +1,87 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/mediatek,efuse.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek efuse + +description: | + MediaTek's efuse is used for storing calibration data, it can be accessed + on ARM devices usiong I/O mapped memory. + +maintainers: + - Andrew-CT Chen <[email protected]> + - Lala Lin <[email protected]> + +allOf: + - $ref: "nvmem.yaml#" + +properties: + $nodename: + pattern: "^efuse@[0-9a-f]+$" + + compatible: + oneOf: + - items: + - enum: + - mediatek,mt7622-efuse + - mediatek,mt7623-efuse + - mediatek,mt8173-efuse + - mediatek,mt8192-efuse + - mediatek,mt8195-efuse + - mediatek,mt8516-efuse + - const: mediatek,efuse + - const: mediatek,mt8173-efuse + deprecated: true + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + efuse@11c10000 { + compatible = "mediatek,mt8195-efuse", "mediatek,efuse"; + reg = <0x11c10000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + u3_tx_imp_p0: usb3-tx-imp@184,1 { + reg = <0x184 0x1>; + bits = <0 5>; + }; + u3_rx_imp_p0: usb3-rx-imp@184,2 { + reg = <0x184 0x2>; + bits = <5 5>; + }; + u3_intr_p0: usb3-intr@185 { + reg = <0x185 0x1>; + bits = <2 6>; + }; + comb_tx_imp_p1: usb3-tx-imp@186,1 { + reg = <0x186 0x1>; + bits = <0 5>; + }; + comb_rx_imp_p1: usb3-rx-imp@186,2 { + reg = <0x186 0x2>; + bits = <5 5>; + }; + comb_intr_p1: usb3-intr@187 { + reg = <0x187 0x1>; + bits = <2 6>; + }; + u2_intr_p0: usb2-intr-p0@188,1 { + reg = <0x188 0x1>; + bits = <0 5>; + }; + u2_intr_p1: usb2-intr-p1@188,2 { + reg = <0x188 0x2>; + bits = <5 5>; + }; + };Documentation/devicetree/bindings/nvmem/mtk-efuse.txt deleted +0
-43@@ -1,43 +0,0 @@ -= Mediatek MTK-EFUSE device tree bindings = - -This binding is intended to represent MTK-EFUSE which is found in most Mediatek SOCs. - -Required properties: -- compatible: should be - "mediatek,mt7622-efuse", "mediatek,efuse": for MT7622 - "mediatek,mt7623-efuse", "mediatek,efuse": for MT7623 - "mediatek,mt8173-efuse" or "mediatek,efuse": for MT8173 - "mediatek,mt8192-efuse", "mediatek,efuse": for MT8192 - "mediatek,mt8195-efuse", "mediatek,efuse": for MT8195 - "mediatek,mt8516-efuse", "mediatek,efuse": for MT8516 -- reg: Should contain registers location and length -- bits: contain the bits range by offset and size - -= Data cells = -Are child nodes of MTK-EFUSE, bindings of which as described in -bindings/nvmem/nvmem.txt - -Example: - - efuse: efuse@10206000 { - compatible = "mediatek,mt8173-efuse"; - reg = <0 0x10206000 0 0x1000>; - #address-cells = <1>; - #size-cells = <1>; - - /* Data cells */ - thermal_calibration: calib@528 { - reg = <0x528 0xc>; - }; - }; - -= Data consumers = -Are device nodes which consume nvmem data cells. - -For example: - - thermal { - ... - nvmem-cells = <&thermal_calibration>; - nvmem-cell-names = "calibration"; - };
Hi Matthias,
Quoted 10 lines · Srinivas Kandagatla
Quoted 6 lines · Chunfeng Yun
Convert mtk-efuse.txt to YAML schema mediatek,efuse.yaml
Reviewed-by Krzysztof Kozlowski <[email protected]>Reviewed-by Rob Herring <[email protected]>Signed-off-by Chunfeng Yun <[email protected]>---
Applied 1/4 and 2/4, dts patches need to go via SoC maintainer.
Could you please help to pick up 3/4, 4/4?
thanks
Quoted 11 lines
thanks,
-sriniQuoted 5 lines
v6: no changes, based on kernel 5.19-rc1
v5:
sync with the series:
https://patchwork.kernel.org/project/linux-mediatek/list/?series=640196
Quoted 171 lines
Quoted 171 lines
1. change title suggested by Krzysztof;
2. No need drop 'reviewed-by Rob' suggested by Krzysztof
3. add maintainer Lala who maintain efuse driver now;v4: fix duplicated unit-address in example; drop reviewed-by Rob, due to changes;v3: add reviewed-by Rob
v2:
1. remove description of subnodes which is covered bynvmem.yaml
suggested by Rob
2. change the example which is commoner than mt8173's--- .../bindings/nvmem/mediatek,efuse.yaml | 87 +++++++++++++++++++ .../devicetree/bindings/nvmem/mtk-efuse.txt | 43 --------- 2 files changed, 87 insertions(+), 43 deletions(-)create mode 100644
Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml
delete mode 100644Documentation/devicetree/bindings/nvmem/mtk-
efuse.txtdiff --git
a/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yamlb/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yamlnew file mode 100644
index 000000000000..f6e01ddb7499Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml new file +10
-0@@ -0,0 +1,87 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/mediatek,efuse.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek efuse + +description: | + MediaTek's efuse is used for storing calibration data, it can beaccessed
Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml new file +77
-0+ on ARM devices usiong I/O mapped memory. + +maintainers: + - Andrew-CT Chen <[email protected]> + - Lala Lin <[email protected]> + +allOf: + - $ref: "nvmem.yaml#" + +properties: + $nodename: + pattern: "^efuse@[0-9a-f]+$" + + compatible: + oneOf: + - items: + - enum: + - mediatek,mt7622-efuse + - mediatek,mt7623-efuse + - mediatek,mt8173-efuse + - mediatek,mt8192-efuse + - mediatek,mt8195-efuse + - mediatek,mt8516-efuse + - const: mediatek,efuse + - const: mediatek,mt8173-efuse + deprecated: true + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + efuse@11c10000 { + compatible = "mediatek,mt8195-efuse", "mediatek,efuse"; + reg = <0x11c10000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + u3_tx_imp_p0: usb3-tx-imp@184,1 { + reg = <0x184 0x1>; + bits = <0 5>; + }; + u3_rx_imp_p0: usb3-rx-imp@184,2 { + reg = <0x184 0x2>; + bits = <5 5>; + }; + u3_intr_p0: usb3-intr@185 { + reg = <0x185 0x1>; + bits = <2 6>; + }; + comb_tx_imp_p1: usb3-tx-imp@186,1 { + reg = <0x186 0x1>; + bits = <0 5>; + }; + comb_rx_imp_p1: usb3-rx-imp@186,2 { + reg = <0x186 0x2>; + bits = <5 5>; + }; + comb_intr_p1: usb3-intr@187 { + reg = <0x187 0x1>; + bits = <2 6>; + }; + u2_intr_p0: usb2-intr-p0@188,1 { + reg = <0x188 0x1>; + bits = <0 5>; + }; + u2_intr_p1: usb2-intr-p1@188,2 { + reg = <0x188 0x2>; + bits = <5 5>; + }; + };Documentation/devicetree/bindings/nvmem/mtk-efuse.txt deleted +0
-3@@ -1,43 +0,0 @@ -= Mediatek MTK-EFUSE device tree bindings = - -This binding is intended to represent MTK-EFUSE which is found inmost Mediatek SOCs.
Documentation/devicetree/bindings/nvmem/mtk-efuse.txt deleted +0
-40- -Required properties: -- compatible: should be - "mediatek,mt7622-efuse", "mediatek,efuse": for MT7622 - "mediatek,mt7623-efuse", "mediatek,efuse": for MT7623 - "mediatek,mt8173-efuse" or "mediatek,efuse": for MT8173 - "mediatek,mt8192-efuse", "mediatek,efuse": for MT8192 - "mediatek,mt8195-efuse", "mediatek,efuse": for MT8195 - "mediatek,mt8516-efuse", "mediatek,efuse": for MT8516 -- reg: Should contain registers location and length -- bits: contain the bits range by offset and size - -= Data cells = -Are child nodes of MTK-EFUSE, bindings of which as described in -bindings/nvmem/nvmem.txt - -Example: - - efuse: efuse@10206000 { - compatible = "mediatek,mt8173-efuse"; - reg = <0 0x10206000 0 0x1000>; - #address-cells = <1>; - #size-cells = <1>; - - /* Data cells */ - thermal_calibration: calib@528 { - reg = <0x528 0xc>; - }; - }; - -= Data consumers = -Are device nodes which consume nvmem data cells. - -For example: - - thermal { - ... - nvmem-cells = <&thermal_calibration>; - nvmem-cell-names = "calibration"; - };
Quoted 7 lines · Chunfeng Yun
Hi Matthias,
Quoted 4 lines · Srinivas Kandagatla
Quoted 2 lines · Chunfeng Yun
Convert mtk-efuse.txt to YAML schema mediatek,efuse.yaml
Quoted 7 lines
Quoted 6 lines
Quoted 4 lines
Reviewed-by Krzysztof Kozlowski <[email protected]>Reviewed-by Rob Herring <[email protected]>Signed-off-by Chunfeng Yun <[email protected]>---
Applied 1/4 and 2/4, dts patches need to go via SoC maintainer.
Could you please help to pick up 3/4, 4/4?
Applied, thanks!
Quoted 187 lines
thanks
Quoted 11 lines
thanks,
-sriniQuoted 5 lines
v6: no changes, based on kernel 5.19-rc1
v5:
sync with the series:https://patchwork.kernel.org/project/linux-mediatek/list/?series=640196
Quoted 171 lines
Quoted 171 lines
1. change title suggested by Krzysztof;
2. No need drop 'reviewed-by Rob' suggested by Krzysztof
3. add maintainer Lala who maintain efuse driver now;v4: fix duplicated unit-address in example; drop reviewed-by Rob, due to changes;v3: add reviewed-by Rob
v2:
1. remove description of subnodes which is covered bynvmem.yaml
suggested by Rob
2. change the example which is commoner than mt8173's--- .../bindings/nvmem/mediatek,efuse.yaml | 87 +++++++++++++++++++ .../devicetree/bindings/nvmem/mtk-efuse.txt | 43 --------- 2 files changed, 87 insertions(+), 43 deletions(-)create mode 100644
Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml
delete mode 100644Documentation/devicetree/bindings/nvmem/mtk-
efuse.txtdiff --git
a/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yamlb/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yamlnew file mode 100644
index 000000000000..f6e01ddb7499Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml new file +10
-0@@ -0,0 +1,87 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/mediatek,efuse.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek efuse + +description: | + MediaTek's efuse is used for storing calibration data, it can beaccessed
Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml new file +77
-0+ on ARM devices usiong I/O mapped memory. + +maintainers: + - Andrew-CT Chen <[email protected]> + - Lala Lin <[email protected]> + +allOf: + - $ref: "nvmem.yaml#" + +properties: + $nodename: + pattern: "^efuse@[0-9a-f]+$" + + compatible: + oneOf: + - items: + - enum: + - mediatek,mt7622-efuse + - mediatek,mt7623-efuse + - mediatek,mt8173-efuse + - mediatek,mt8192-efuse + - mediatek,mt8195-efuse + - mediatek,mt8516-efuse + - const: mediatek,efuse + - const: mediatek,mt8173-efuse + deprecated: true + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + efuse@11c10000 { + compatible = "mediatek,mt8195-efuse", "mediatek,efuse"; + reg = <0x11c10000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + u3_tx_imp_p0: usb3-tx-imp@184,1 { + reg = <0x184 0x1>; + bits = <0 5>; + }; + u3_rx_imp_p0: usb3-rx-imp@184,2 { + reg = <0x184 0x2>; + bits = <5 5>; + }; + u3_intr_p0: usb3-intr@185 { + reg = <0x185 0x1>; + bits = <2 6>; + }; + comb_tx_imp_p1: usb3-tx-imp@186,1 { + reg = <0x186 0x1>; + bits = <0 5>; + }; + comb_rx_imp_p1: usb3-rx-imp@186,2 { + reg = <0x186 0x2>; + bits = <5 5>; + }; + comb_intr_p1: usb3-intr@187 { + reg = <0x187 0x1>; + bits = <2 6>; + }; + u2_intr_p0: usb2-intr-p0@188,1 { + reg = <0x188 0x1>; + bits = <0 5>; + }; + u2_intr_p1: usb2-intr-p1@188,2 { + reg = <0x188 0x2>; + bits = <5 5>; + }; + };Documentation/devicetree/bindings/nvmem/mtk-efuse.txt deleted +0
-3@@ -1,43 +0,0 @@ -= Mediatek MTK-EFUSE device tree bindings = - -This binding is intended to represent MTK-EFUSE which is found inmost Mediatek SOCs.
Documentation/devicetree/bindings/nvmem/mtk-efuse.txt deleted +0
-40- -Required properties: -- compatible: should be - "mediatek,mt7622-efuse", "mediatek,efuse": for MT7622 - "mediatek,mt7623-efuse", "mediatek,efuse": for MT7623 - "mediatek,mt8173-efuse" or "mediatek,efuse": for MT8173 - "mediatek,mt8192-efuse", "mediatek,efuse": for MT8192 - "mediatek,mt8195-efuse", "mediatek,efuse": for MT8195 - "mediatek,mt8516-efuse", "mediatek,efuse": for MT8516 -- reg: Should contain registers location and length -- bits: contain the bits range by offset and size - -= Data cells = -Are child nodes of MTK-EFUSE, bindings of which as described in -bindings/nvmem/nvmem.txt - -Example: - - efuse: efuse@10206000 { - compatible = "mediatek,mt8173-efuse"; - reg = <0 0x10206000 0 0x1000>; - #address-cells = <1>; - #size-cells = <1>; - - /* Data cells */ - thermal_calibration: calib@528 { - reg = <0x528 0xc>; - }; - }; - -= Data consumers = -Are device nodes which consume nvmem data cells. - -For example: - - thermal { - ... - nvmem-cells = <&thermal_calibration>; - nvmem-cell-names = "calibration"; - };