0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/clock/allwinner,sun4i-a10-gates-clk.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Allwinner A10 Bus Gates Clock Device Tree Bindings
0008
0009 maintainers:
0010 - Chen-Yu Tsai <wens@csie.org>
0011 - Maxime Ripard <mripard@kernel.org>
0012
0013 deprecated: true
0014
0015 properties:
0016 "#clock-cells":
0017 const: 1
0018 description: >
0019 This additional argument passed to that clock is the offset of
0020 the bit controlling this particular gate in the register.
0021
0022 compatible:
0023 oneOf:
0024 - const: allwinner,sun4i-a10-gates-clk
0025 - const: allwinner,sun4i-a10-axi-gates-clk
0026 - const: allwinner,sun4i-a10-ahb-gates-clk
0027 - const: allwinner,sun5i-a10s-ahb-gates-clk
0028 - const: allwinner,sun5i-a13-ahb-gates-clk
0029 - const: allwinner,sun7i-a20-ahb-gates-clk
0030 - const: allwinner,sun6i-a31-ahb1-gates-clk
0031 - const: allwinner,sun8i-a23-ahb1-gates-clk
0032 - const: allwinner,sun9i-a80-ahb0-gates-clk
0033 - const: allwinner,sun9i-a80-ahb1-gates-clk
0034 - const: allwinner,sun9i-a80-ahb2-gates-clk
0035 - const: allwinner,sun4i-a10-apb0-gates-clk
0036 - const: allwinner,sun5i-a10s-apb0-gates-clk
0037 - const: allwinner,sun5i-a13-apb0-gates-clk
0038 - const: allwinner,sun7i-a20-apb0-gates-clk
0039 - const: allwinner,sun9i-a80-apb0-gates-clk
0040 - const: allwinner,sun8i-a83t-apb0-gates-clk
0041 - const: allwinner,sun4i-a10-apb1-gates-clk
0042 - const: allwinner,sun5i-a13-apb1-gates-clk
0043 - const: allwinner,sun5i-a10s-apb1-gates-clk
0044 - const: allwinner,sun6i-a31-apb1-gates-clk
0045 - const: allwinner,sun7i-a20-apb1-gates-clk
0046 - const: allwinner,sun8i-a23-apb1-gates-clk
0047 - const: allwinner,sun9i-a80-apb1-gates-clk
0048 - const: allwinner,sun6i-a31-apb2-gates-clk
0049 - const: allwinner,sun8i-a23-apb2-gates-clk
0050 - const: allwinner,sun8i-a83t-bus-gates-clk
0051 - const: allwinner,sun9i-a80-apbs-gates-clk
0052 - const: allwinner,sun4i-a10-dram-gates-clk
0053
0054 - items:
0055 - const: allwinner,sun5i-a13-dram-gates-clk
0056 - const: allwinner,sun4i-a10-gates-clk
0057
0058 - items:
0059 - const: allwinner,sun8i-h3-apb0-gates-clk
0060 - const: allwinner,sun4i-a10-gates-clk
0061
0062 reg:
0063 maxItems: 1
0064
0065 clocks:
0066 maxItems: 1
0067
0068 clock-indices:
0069 minItems: 1
0070 maxItems: 64
0071
0072 clock-output-names:
0073 minItems: 1
0074 maxItems: 64
0075
0076 required:
0077 - "#clock-cells"
0078 - compatible
0079 - reg
0080 - clocks
0081 - clock-indices
0082 - clock-output-names
0083
0084 additionalProperties: false
0085
0086 examples:
0087 - |
0088 clk@1c2005c {
0089 #clock-cells = <1>;
0090 compatible = "allwinner,sun4i-a10-axi-gates-clk";
0091 reg = <0x01c2005c 0x4>;
0092 clocks = <&axi>;
0093 clock-indices = <0>;
0094 clock-output-names = "axi_dram";
0095 };
0096
0097 - |
0098 clk@1c20060 {
0099 #clock-cells = <1>;
0100 compatible = "allwinner,sun4i-a10-ahb-gates-clk";
0101 reg = <0x01c20060 0x8>;
0102 clocks = <&ahb>;
0103 clock-indices = <0>, <1>,
0104 <2>, <3>,
0105 <4>, <5>, <6>,
0106 <7>, <8>, <9>,
0107 <10>, <11>, <12>,
0108 <13>, <14>, <16>,
0109 <17>, <18>, <20>,
0110 <21>, <22>, <23>,
0111 <24>, <25>, <26>,
0112 <32>, <33>, <34>,
0113 <35>, <36>, <37>,
0114 <40>, <41>, <43>,
0115 <44>, <45>,
0116 <46>, <47>,
0117 <50>, <52>;
0118 clock-output-names = "ahb_usb0", "ahb_ehci0",
0119 "ahb_ohci0", "ahb_ehci1",
0120 "ahb_ohci1", "ahb_ss", "ahb_dma",
0121 "ahb_bist", "ahb_mmc0", "ahb_mmc1",
0122 "ahb_mmc2", "ahb_mmc3", "ahb_ms",
0123 "ahb_nand", "ahb_sdram", "ahb_ace",
0124 "ahb_emac", "ahb_ts", "ahb_spi0",
0125 "ahb_spi1", "ahb_spi2", "ahb_spi3",
0126 "ahb_pata", "ahb_sata", "ahb_gps",
0127 "ahb_ve", "ahb_tvd", "ahb_tve0",
0128 "ahb_tve1", "ahb_lcd0", "ahb_lcd1",
0129 "ahb_csi0", "ahb_csi1", "ahb_hdmi",
0130 "ahb_de_be0", "ahb_de_be1",
0131 "ahb_de_fe0", "ahb_de_fe1",
0132 "ahb_mp", "ahb_mali400";
0133 };
0134
0135
0136 - |
0137 clk@1c20068 {
0138 #clock-cells = <1>;
0139 compatible = "allwinner,sun4i-a10-apb0-gates-clk";
0140 reg = <0x01c20068 0x4>;
0141 clocks = <&apb0>;
0142 clock-indices = <0>, <1>,
0143 <2>, <3>,
0144 <5>, <6>,
0145 <7>, <10>;
0146 clock-output-names = "apb0_codec", "apb0_spdif",
0147 "apb0_ac97", "apb0_iis",
0148 "apb0_pio", "apb0_ir0",
0149 "apb0_ir1", "apb0_keypad";
0150 };
0151
0152 ...