dt-bindings: nvmem: convert mtk-efuse.txt to YAML schema
Subsystems (4)
PATCH v4 1/1 dt-bindings: nvmem: convert mtk-efuse.txt to YAML schema
Convert mtk-efuse.txt to YAML schema mediatek,efuse.yaml
---
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 | 86 +++++++++++++++++++ .../devicetree/bindings/nvmem/mtk-efuse.txt | 43 ---------- 2 files changed, 86 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 +86 -0
@@ -0,0 +1,86 @@ +# 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 device tree bindings + +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]> + +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.25.1
Rob Herring
maintainerQuoted 4 lines · Chunfeng Yun
Convert mtk-efuse.txt to YAML schema mediatek,efuse.yaml
Signed-off-by Chunfeng Yun <[email protected]>---
Quoted 8 lines
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.yamlsuggested by Rob
2. change the example which is commoner than mt8173's
I'm assuming this will be resent with all the changes from the other conversion posted[1].
Rob
Quoted 10 lines · Rob Herring
Quoted 9 lines · Chunfeng Yun
Convert mtk-efuse.txt to YAML schema mediatek,efuse.yaml
Signed-off-by Chunfeng Yun <[email protected]>---
v4: fix duplicated unit-address in example; drop reviewed-by Rob, due to changes;v3: add reviewed-by Rob
Quoted 7 lines
Quoted 4 lines
v2:
1. remove description of subnodes which is covered bynvmem.yaml
suggested by Rob
2. change the example which is commoner than mt8173'sI'm assuming this will be resent with all the changes from the other conversion posted[1].
Yes, I'm doing it now, thanks
Quoted 5 lines
Rob
Quoted 6 lines · Chunfeng Yun
Convert mtk-efuse.txt to YAML schema mediatek,efuse.yaml
Signed-off-by Chunfeng Yun <[email protected]>---
v4: fix duplicated unit-address in example; drop reviewed-by Rob, due to changes;
That's a small change, you should keep his review tag.
Quoted 20 lines
v3: add reviewed-by Rob
v2:
1. remove description of subnodes which is covered bynvmem.yamlsuggested by Rob
2. change the example which is commoner than mt8173's--- .../bindings/nvmem/mediatek,efuse.yaml | 86 +++++++++++++++++++ .../devicetree/bindings/nvmem/mtk-efuse.txt | 43 ---------- 2 files changed, 86 insertions(+), 43 deletions(-) create mode 100644 Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml delete mode 100644 Documentation/devicetree/bindings/nvmem/mtk-efuse.txtDocumentation/devicetree/bindings/nvmem/mediatek,efuse.yaml new file +0
-0
Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml line 7
Quoted 7 lines
Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml new file +7
-0@@ -0,0 +1,86 @@ +# 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 device tree bindings
s/device tree bindings//
Best regards,
Krzysztof
Signature · 3 lines
linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy
Quoted 9 lines · Krzysztof Kozlowski
Quoted 6 lines · Chunfeng Yun
Convert mtk-efuse.txt to YAML schema mediatek,efuse.yaml
Signed-off-by Chunfeng Yun <[email protected]>---
v4: fix duplicated unit-address in example; drop reviewed-by Rob, due to changes;That's a small change, you should keep his review tag.
Ok.
Quoted 28 lines
Quoted 28 lines
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 | 86 +++++++++++++++++++ .../devicetree/bindings/nvmem/mtk-efuse.txt | 43 ---------- 2 files changed, 86 insertions(+), 43 deletions(-) create mode 100644 Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml delete mode 100644 Documentation/devicetree/bindings/nvmem/mtk-efuse.txt
diff --git
a/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yamlb/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yamlnew file mode 100644
index 000000000000..abb8b85655feDocumentation/devicetree/bindings/nvmem/mediatek,efuse.yaml new file +1
-0@@ -0,0 +1,86 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Quoted 8 lines
Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml line 7
Quoted 6 lines
Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml new file +6
-0+%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/mediatek,efuse.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek efuse device tree bindingss/device tree bindings//
Will remove it, thanks
Quoted 6 lines
Reviewed-by Krzysztof Kozlowski <[email protected]>Best regards,
Krzysztof