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

dt-bindings: arm: mediatek: topckgen: Convert to DT schema

Convert topckgen bindings to DT schema format. MT2701, MT7623 and
MT7629 device trees currently have the syscon compatible without
it being mentioned in the old DT bindings file which introduces
dtbs_check errors when converting to DT schema as-is, so
mediatek,mt2701-topckgen and mediatek,mt7629-topckgen are placed
in the last items list with the syscon compatible, and syscon is
added to the mediatek,mt7623-topckgen list.

Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220424084647.76577-2-y.oudjana@protonmail.com

authored by

Yassine Oudjana and committed by
Rob Herring
cd9fdd06 942680d6

+61 -35
-35
Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt
··· 1 - Mediatek topckgen controller 2 - ============================ 3 - 4 - The Mediatek topckgen controller provides various clocks to the system. 5 - 6 - Required Properties: 7 - 8 - - compatible: Should be one of: 9 - - "mediatek,mt2701-topckgen" 10 - - "mediatek,mt2712-topckgen", "syscon" 11 - - "mediatek,mt6765-topckgen", "syscon" 12 - - "mediatek,mt6779-topckgen", "syscon" 13 - - "mediatek,mt6797-topckgen" 14 - - "mediatek,mt7622-topckgen" 15 - - "mediatek,mt7623-topckgen", "mediatek,mt2701-topckgen" 16 - - "mediatek,mt7629-topckgen" 17 - - "mediatek,mt7986-topckgen", "syscon" 18 - - "mediatek,mt8135-topckgen" 19 - - "mediatek,mt8167-topckgen", "syscon" 20 - - "mediatek,mt8173-topckgen" 21 - - "mediatek,mt8183-topckgen", "syscon" 22 - - "mediatek,mt8516-topckgen" 23 - - #clock-cells: Must be 1 24 - 25 - The topckgen controller uses the common clk binding from 26 - Documentation/devicetree/bindings/clock/clock-bindings.txt 27 - The available clocks are defined in dt-bindings/clock/mt*-clk.h. 28 - 29 - Example: 30 - 31 - topckgen: power-controller@10000000 { 32 - compatible = "mediatek,mt8173-topckgen"; 33 - reg = <0 0x10000000 0 0x1000>; 34 - #clock-cells = <1>; 35 - };
+61
Documentation/devicetree/bindings/clock/mediatek,topckgen.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: "http://devicetree.org/schemas/clock/mediatek,topckgen.yaml#" 5 + $schema: "http://devicetree.org/meta-schemas/core.yaml#" 6 + 7 + title: MediaTek Top Clock Generator Controller 8 + 9 + maintainers: 10 + - Michael Turquette <mturquette@baylibre.com> 11 + - Stephen Boyd <sboyd@kernel.org> 12 + 13 + description: 14 + The Mediatek topckgen controller provides various clocks to the system. 15 + The clock values can be found in <dt-bindings/clock/mt*-clk.h>. 16 + 17 + properties: 18 + compatible: 19 + oneOf: 20 + - enum: 21 + - mediatek,mt6797-topckgen 22 + - mediatek,mt7622-topckgen 23 + - mediatek,mt8135-topckgen 24 + - mediatek,mt8173-topckgen 25 + - mediatek,mt8516-topckgen 26 + - items: 27 + - const: mediatek,mt7623-topckgen 28 + - const: mediatek,mt2701-topckgen 29 + - const: syscon 30 + - items: 31 + - enum: 32 + - mediatek,mt2701-topckgen 33 + - mediatek,mt2712-topckgen 34 + - mediatek,mt6765-topckgen 35 + - mediatek,mt6779-topckgen 36 + - mediatek,mt7629-topckgen 37 + - mediatek,mt7986-topckgen 38 + - mediatek,mt8167-topckgen 39 + - mediatek,mt8183-topckgen 40 + - const: syscon 41 + 42 + reg: 43 + maxItems: 1 44 + 45 + '#clock-cells': 46 + const: 1 47 + 48 + required: 49 + - compatible 50 + - reg 51 + - '#clock-cells' 52 + 53 + additionalProperties: false 54 + 55 + examples: 56 + - | 57 + topckgen: clock-controller@10000000 { 58 + compatible = "mediatek,mt8173-topckgen"; 59 + reg = <0x10000000 0x1000>; 60 + #clock-cells = <1>; 61 + };