dt-bindings: arm: mediatek: move ethsys controller & convert to DT schema
Subsystems (3)
PATCH v2 1/1 dt-bindings: arm: mediatek: move ethsys controller & convert to DT schema
From: Rafał Miłecki <[email protected]>
DT schema helps validating DTS files. Binding was moved to clock/ as this hardware is a clock provider. Example required a small fix for "reg" value (1 address cell + 1 size cell).
Signed-off-by Rafał Miłecki <[email protected]>
Reviewed-by Rob Herring <[email protected]>
---
V2: Move binding to clock/ dir and document that in commit body
.../bindings/arm/mediatek/mediatek,ethsys.txt | 29 ---------- .../bindings/clock/mediatek,ethsys.yaml | 54 +++++++++++++++++++ 2 files changed, 54 insertions(+), 29 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,ethsys.txt create mode 100644 Documentation/devicetree/bindings/clock/mediatek,ethsys.yaml
Documentation/devicetree/bindings/arm/mediatek/mediatek,ethsys.txt deleted +0 -29
@@ -1,29 +0,0 @@ -Mediatek ethsys controller -============================ - -The Mediatek ethsys controller provides various clocks to the system. - -Required Properties: - -- compatible: Should be: - - "mediatek,mt2701-ethsys", "syscon" - - "mediatek,mt7622-ethsys", "syscon" - - "mediatek,mt7623-ethsys", "mediatek,mt2701-ethsys", "syscon" - - "mediatek,mt7629-ethsys", "syscon" - - "mediatek,mt7981-ethsys", "syscon" - - "mediatek,mt7986-ethsys", "syscon" -- #clock-cells: Must be 1 -- #reset-cells: Must be 1 - -The ethsys controller uses the common clk binding from -Documentation/devicetree/bindings/clock/clock-bindings.txt -The available clocks are defined in dt-bindings/clock/mt*-clk.h. - -Example: - -ethsys: clock-controller@1b000000 { - compatible = "mediatek,mt2701-ethsys", "syscon"; - reg = <0 0x1b000000 0 0x1000>; - #clock-cells = <1>; - #reset-cells = <1>; -};
Documentation/devicetree/bindings/clock/mediatek,ethsys.yaml new file +54 -0
54 lines not on this page · raw message
Signature · 1 line
2.35.3
Quoting Rafał Miłecki (2023-11-19 13:24:16)
Quoted 9 lines
From: Rafał Miłecki <[email protected]>
DT schema helps validating DTS files. Binding was moved to clock/ as this hardware is a clock provider. Example required a small fix for "reg" value (1 address cell + 1 size cell).
Signed-off-by Rafał Miłecki <[email protected]>Reviewed-by Rob Herring <[email protected]>---
Applied to clk-next