1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/allwinner,sun4i-a10-gates-clk.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7*7ef62cebSEmmanuel Vadottitle: Allwinner A10 Bus Gates Clock 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Chen-Yu Tsai <wens@csie.org> 11c66ec88fSEmmanuel Vadot - Maxime Ripard <mripard@kernel.org> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadotdeprecated: true 14c66ec88fSEmmanuel Vadot 15c66ec88fSEmmanuel Vadotproperties: 16c66ec88fSEmmanuel Vadot "#clock-cells": 17c66ec88fSEmmanuel Vadot const: 1 18c66ec88fSEmmanuel Vadot description: > 19c66ec88fSEmmanuel Vadot This additional argument passed to that clock is the offset of 20c66ec88fSEmmanuel Vadot the bit controlling this particular gate in the register. 21c66ec88fSEmmanuel Vadot 22c66ec88fSEmmanuel Vadot compatible: 23c66ec88fSEmmanuel Vadot oneOf: 24c66ec88fSEmmanuel Vadot - const: allwinner,sun4i-a10-gates-clk 25c66ec88fSEmmanuel Vadot - const: allwinner,sun4i-a10-axi-gates-clk 26c66ec88fSEmmanuel Vadot - const: allwinner,sun4i-a10-ahb-gates-clk 27c66ec88fSEmmanuel Vadot - const: allwinner,sun5i-a10s-ahb-gates-clk 28c66ec88fSEmmanuel Vadot - const: allwinner,sun5i-a13-ahb-gates-clk 29c66ec88fSEmmanuel Vadot - const: allwinner,sun7i-a20-ahb-gates-clk 30c66ec88fSEmmanuel Vadot - const: allwinner,sun6i-a31-ahb1-gates-clk 31c66ec88fSEmmanuel Vadot - const: allwinner,sun8i-a23-ahb1-gates-clk 32c66ec88fSEmmanuel Vadot - const: allwinner,sun9i-a80-ahb0-gates-clk 33c66ec88fSEmmanuel Vadot - const: allwinner,sun9i-a80-ahb1-gates-clk 34c66ec88fSEmmanuel Vadot - const: allwinner,sun9i-a80-ahb2-gates-clk 35c66ec88fSEmmanuel Vadot - const: allwinner,sun4i-a10-apb0-gates-clk 36c66ec88fSEmmanuel Vadot - const: allwinner,sun5i-a10s-apb0-gates-clk 37c66ec88fSEmmanuel Vadot - const: allwinner,sun5i-a13-apb0-gates-clk 38c66ec88fSEmmanuel Vadot - const: allwinner,sun7i-a20-apb0-gates-clk 39c66ec88fSEmmanuel Vadot - const: allwinner,sun9i-a80-apb0-gates-clk 40c66ec88fSEmmanuel Vadot - const: allwinner,sun8i-a83t-apb0-gates-clk 41c66ec88fSEmmanuel Vadot - const: allwinner,sun4i-a10-apb1-gates-clk 42c66ec88fSEmmanuel Vadot - const: allwinner,sun5i-a13-apb1-gates-clk 43c66ec88fSEmmanuel Vadot - const: allwinner,sun5i-a10s-apb1-gates-clk 44c66ec88fSEmmanuel Vadot - const: allwinner,sun6i-a31-apb1-gates-clk 45c66ec88fSEmmanuel Vadot - const: allwinner,sun7i-a20-apb1-gates-clk 46c66ec88fSEmmanuel Vadot - const: allwinner,sun8i-a23-apb1-gates-clk 47c66ec88fSEmmanuel Vadot - const: allwinner,sun9i-a80-apb1-gates-clk 48c66ec88fSEmmanuel Vadot - const: allwinner,sun6i-a31-apb2-gates-clk 49c66ec88fSEmmanuel Vadot - const: allwinner,sun8i-a23-apb2-gates-clk 50c66ec88fSEmmanuel Vadot - const: allwinner,sun8i-a83t-bus-gates-clk 51c66ec88fSEmmanuel Vadot - const: allwinner,sun9i-a80-apbs-gates-clk 52c66ec88fSEmmanuel Vadot - const: allwinner,sun4i-a10-dram-gates-clk 53c66ec88fSEmmanuel Vadot 54c66ec88fSEmmanuel Vadot - items: 55c66ec88fSEmmanuel Vadot - const: allwinner,sun5i-a13-dram-gates-clk 56c66ec88fSEmmanuel Vadot - const: allwinner,sun4i-a10-gates-clk 57c66ec88fSEmmanuel Vadot 58c66ec88fSEmmanuel Vadot - items: 59c66ec88fSEmmanuel Vadot - const: allwinner,sun8i-h3-apb0-gates-clk 60c66ec88fSEmmanuel Vadot - const: allwinner,sun4i-a10-gates-clk 61c66ec88fSEmmanuel Vadot 62c66ec88fSEmmanuel Vadot reg: 63c66ec88fSEmmanuel Vadot maxItems: 1 64c66ec88fSEmmanuel Vadot 65c66ec88fSEmmanuel Vadot clocks: 66c66ec88fSEmmanuel Vadot maxItems: 1 67c66ec88fSEmmanuel Vadot 68c66ec88fSEmmanuel Vadot clock-indices: 69c66ec88fSEmmanuel Vadot minItems: 1 70c66ec88fSEmmanuel Vadot maxItems: 64 71c66ec88fSEmmanuel Vadot 72c66ec88fSEmmanuel Vadot clock-output-names: 73c66ec88fSEmmanuel Vadot minItems: 1 74c66ec88fSEmmanuel Vadot maxItems: 64 75c66ec88fSEmmanuel Vadot 76c66ec88fSEmmanuel Vadotrequired: 77c66ec88fSEmmanuel Vadot - "#clock-cells" 78c66ec88fSEmmanuel Vadot - compatible 79c66ec88fSEmmanuel Vadot - reg 80c66ec88fSEmmanuel Vadot - clocks 81c66ec88fSEmmanuel Vadot - clock-indices 82c66ec88fSEmmanuel Vadot - clock-output-names 83c66ec88fSEmmanuel Vadot 84c66ec88fSEmmanuel VadotadditionalProperties: false 85c66ec88fSEmmanuel Vadot 86c66ec88fSEmmanuel Vadotexamples: 87c66ec88fSEmmanuel Vadot - | 88c66ec88fSEmmanuel Vadot clk@1c2005c { 89c66ec88fSEmmanuel Vadot #clock-cells = <1>; 90c66ec88fSEmmanuel Vadot compatible = "allwinner,sun4i-a10-axi-gates-clk"; 91c66ec88fSEmmanuel Vadot reg = <0x01c2005c 0x4>; 92c66ec88fSEmmanuel Vadot clocks = <&axi>; 93c66ec88fSEmmanuel Vadot clock-indices = <0>; 94c66ec88fSEmmanuel Vadot clock-output-names = "axi_dram"; 95c66ec88fSEmmanuel Vadot }; 96c66ec88fSEmmanuel Vadot 97c66ec88fSEmmanuel Vadot - | 98c66ec88fSEmmanuel Vadot clk@1c20060 { 99c66ec88fSEmmanuel Vadot #clock-cells = <1>; 100c66ec88fSEmmanuel Vadot compatible = "allwinner,sun4i-a10-ahb-gates-clk"; 101c66ec88fSEmmanuel Vadot reg = <0x01c20060 0x8>; 102c66ec88fSEmmanuel Vadot clocks = <&ahb>; 103c66ec88fSEmmanuel Vadot clock-indices = <0>, <1>, 104c66ec88fSEmmanuel Vadot <2>, <3>, 105c66ec88fSEmmanuel Vadot <4>, <5>, <6>, 106c66ec88fSEmmanuel Vadot <7>, <8>, <9>, 107c66ec88fSEmmanuel Vadot <10>, <11>, <12>, 108c66ec88fSEmmanuel Vadot <13>, <14>, <16>, 109c66ec88fSEmmanuel Vadot <17>, <18>, <20>, 110c66ec88fSEmmanuel Vadot <21>, <22>, <23>, 111c66ec88fSEmmanuel Vadot <24>, <25>, <26>, 112c66ec88fSEmmanuel Vadot <32>, <33>, <34>, 113c66ec88fSEmmanuel Vadot <35>, <36>, <37>, 114c66ec88fSEmmanuel Vadot <40>, <41>, <43>, 115c66ec88fSEmmanuel Vadot <44>, <45>, 116c66ec88fSEmmanuel Vadot <46>, <47>, 117c66ec88fSEmmanuel Vadot <50>, <52>; 118c66ec88fSEmmanuel Vadot clock-output-names = "ahb_usb0", "ahb_ehci0", 119c66ec88fSEmmanuel Vadot "ahb_ohci0", "ahb_ehci1", 120c66ec88fSEmmanuel Vadot "ahb_ohci1", "ahb_ss", "ahb_dma", 121c66ec88fSEmmanuel Vadot "ahb_bist", "ahb_mmc0", "ahb_mmc1", 122c66ec88fSEmmanuel Vadot "ahb_mmc2", "ahb_mmc3", "ahb_ms", 123c66ec88fSEmmanuel Vadot "ahb_nand", "ahb_sdram", "ahb_ace", 124c66ec88fSEmmanuel Vadot "ahb_emac", "ahb_ts", "ahb_spi0", 125c66ec88fSEmmanuel Vadot "ahb_spi1", "ahb_spi2", "ahb_spi3", 126c66ec88fSEmmanuel Vadot "ahb_pata", "ahb_sata", "ahb_gps", 127c66ec88fSEmmanuel Vadot "ahb_ve", "ahb_tvd", "ahb_tve0", 128c66ec88fSEmmanuel Vadot "ahb_tve1", "ahb_lcd0", "ahb_lcd1", 129c66ec88fSEmmanuel Vadot "ahb_csi0", "ahb_csi1", "ahb_hdmi", 130c66ec88fSEmmanuel Vadot "ahb_de_be0", "ahb_de_be1", 131c66ec88fSEmmanuel Vadot "ahb_de_fe0", "ahb_de_fe1", 132c66ec88fSEmmanuel Vadot "ahb_mp", "ahb_mali400"; 133c66ec88fSEmmanuel Vadot }; 134c66ec88fSEmmanuel Vadot 135c66ec88fSEmmanuel Vadot 136c66ec88fSEmmanuel Vadot - | 137c66ec88fSEmmanuel Vadot clk@1c20068 { 138c66ec88fSEmmanuel Vadot #clock-cells = <1>; 139c66ec88fSEmmanuel Vadot compatible = "allwinner,sun4i-a10-apb0-gates-clk"; 140c66ec88fSEmmanuel Vadot reg = <0x01c20068 0x4>; 141c66ec88fSEmmanuel Vadot clocks = <&apb0>; 142c66ec88fSEmmanuel Vadot clock-indices = <0>, <1>, 143c66ec88fSEmmanuel Vadot <2>, <3>, 144c66ec88fSEmmanuel Vadot <5>, <6>, 145c66ec88fSEmmanuel Vadot <7>, <10>; 146c66ec88fSEmmanuel Vadot clock-output-names = "apb0_codec", "apb0_spdif", 147c66ec88fSEmmanuel Vadot "apb0_ac97", "apb0_iis", 148c66ec88fSEmmanuel Vadot "apb0_pio", "apb0_ir0", 149c66ec88fSEmmanuel Vadot "apb0_ir1", "apb0_keypad"; 150c66ec88fSEmmanuel Vadot }; 151c66ec88fSEmmanuel Vadot 152c66ec88fSEmmanuel Vadot... 153