Skip to contentSkip to conversation

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

PATCH Superseded Chunfeng Yun 3 participants 5 messages May 9, 2022 – May 12, 2022

Subsystems (4)

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

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
new file mode 100644
index 000000000000..abb8b85655fe
@@ -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
maintainer
#1 lore raw
Quoted 4 lines · Chunfeng Yun

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

---

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 by nvmem.yaml suggested 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

[1] https://lore.kernel.org/all/[email protected]/

#2 lore raw
Quoted 10 lines · Rob Herring
Quoted 9 lines · Chunfeng Yun

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

Quoted 7 lines
Quoted 4 lines

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

I'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

[1]
https://lore.kernel.org/all/[email protected]/

Reviewed-by on v4 1/1
#3 lore raw
In reply to Chunfeng Yun
Quoted 6 lines · Chunfeng Yun

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

---

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 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 +0 -0
new file mode 100644
index 000000000000..abb8b85655fe

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
#4 lore raw
Quoted 9 lines · Krzysztof Kozlowski
Quoted 6 lines · Chunfeng Yun

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

---

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 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

diff --git a/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml b/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml new file mode 100644
index 000000000000..abb8b85655fe

Documentation/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 bindings

s/device tree bindings//

Will remove it, thanks

Quoted 6 lines

Best regards,
Krzysztof