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

dt-bindings: clock: mediatek: Add clock driver bindings for MT6795

Add the bindings for the clock drivers of the MediaTek Helio X10
MT6795 SoC.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220921091455.41327-5-angelogioacchino.delregno@collabora.com
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>

authored by

AngeloGioacchino Del Regno and committed by
Chen-Yu Tsai
e629bf40 f098c088

+120
+66
Documentation/devicetree/bindings/clock/mediatek,mt6795-clock.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,mt6795-clock.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: MediaTek Functional Clock Controller for MT6795 8 + 9 + maintainers: 10 + - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> 11 + - Chun-Jie Chen <chun-jie.chen@mediatek.com> 12 + 13 + description: | 14 + The clock architecture in MediaTek like below 15 + PLLs --> 16 + dividers --> 17 + muxes 18 + --> 19 + clock gate 20 + 21 + The devices provide clock gate control in different IP blocks. 22 + 23 + properties: 24 + compatible: 25 + enum: 26 + - mediatek,mt6795-mfgcfg 27 + - mediatek,mt6795-vdecsys 28 + - mediatek,mt6795-vencsys 29 + 30 + reg: 31 + maxItems: 1 32 + 33 + '#clock-cells': 34 + const: 1 35 + 36 + required: 37 + - compatible 38 + - reg 39 + - '#clock-cells' 40 + 41 + additionalProperties: false 42 + 43 + examples: 44 + - | 45 + soc { 46 + #address-cells = <2>; 47 + #size-cells = <2>; 48 + 49 + mfgcfg: clock-controller@13000000 { 50 + compatible = "mediatek,mt6795-mfgcfg"; 51 + reg = <0 0x13000000 0 0x1000>; 52 + #clock-cells = <1>; 53 + }; 54 + 55 + vdecsys: clock-controller@16000000 { 56 + compatible = "mediatek,mt6795-vdecsys"; 57 + reg = <0 0x16000000 0 0x1000>; 58 + #clock-cells = <1>; 59 + }; 60 + 61 + vencsys: clock-controller@18000000 { 62 + compatible = "mediatek,mt6795-vencsys"; 63 + reg = <0 0x18000000 0 0x1000>; 64 + #clock-cells = <1>; 65 + }; 66 + };
+54
Documentation/devicetree/bindings/clock/mediatek,mt6795-sys-clock.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,mt6795-sys-clock.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: MediaTek System Clock Controller for MT6795 8 + 9 + maintainers: 10 + - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> 11 + - Chun-Jie Chen <chun-jie.chen@mediatek.com> 12 + 13 + description: 14 + The Mediatek system clock controller provides various clocks and system 15 + configuration like reset and bus protection on MT6795. 16 + 17 + properties: 18 + compatible: 19 + items: 20 + - enum: 21 + - mediatek,mt6795-apmixedsys 22 + - mediatek,mt6795-infracfg 23 + - mediatek,mt6795-pericfg 24 + - mediatek,mt6795-topckgen 25 + - const: syscon 26 + 27 + reg: 28 + maxItems: 1 29 + 30 + '#clock-cells': 31 + const: 1 32 + 33 + '#reset-cells': 34 + const: 1 35 + 36 + required: 37 + - compatible 38 + - reg 39 + - '#clock-cells' 40 + 41 + additionalProperties: false 42 + 43 + examples: 44 + - | 45 + soc { 46 + #address-cells = <2>; 47 + #size-cells = <2>; 48 + 49 + topckgen: clock-controller@10000000 { 50 + compatible = "mediatek,mt6795-topckgen", "syscon"; 51 + reg = <0 0x10000000 0 0x1000>; 52 + #clock-cells = <1>; 53 + }; 54 + };