1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2019 BayLibre, SAS 3 * Copyright (c) 2019 BayLibre, SAS 4 * Author: Jerome Brunet <jbrunet@baylibre.com> 4 * Author: Jerome Brunet <jbrunet@baylibre.com> 5 */ 5 */ 6 6 7 #include "meson-g12-common.dtsi" 7 #include "meson-g12-common.dtsi" 8 #include <dt-bindings/clock/axg-audio-clkc.h> 8 #include <dt-bindings/clock/axg-audio-clkc.h> 9 #include <dt-bindings/power/meson-g12a-power.h 9 #include <dt-bindings/power/meson-g12a-power.h> 10 #include <dt-bindings/reset/amlogic,meson-axg- 10 #include <dt-bindings/reset/amlogic,meson-axg-audio-arb.h> 11 #include <dt-bindings/reset/amlogic,meson-g12a 11 #include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h> 12 12 13 / { 13 / { 14 tdmif_a: audio-controller-0 { 14 tdmif_a: audio-controller-0 { 15 compatible = "amlogic,axg-tdm- 15 compatible = "amlogic,axg-tdm-iface"; 16 #sound-dai-cells = <0>; 16 #sound-dai-cells = <0>; 17 sound-name-prefix = "TDM_A"; 17 sound-name-prefix = "TDM_A"; 18 clocks = <&clkc_audio AUD_CLKI !! 18 clocks = <&clkc_audio AUD_CLKID_MST_A_MCLK>, 19 <&clkc_audio AUD_CLKI !! 19 <&clkc_audio AUD_CLKID_MST_A_SCLK>, 20 <&clkc_audio AUD_CLKI !! 20 <&clkc_audio AUD_CLKID_MST_A_LRCLK>; 21 clock-names = "sclk", "lrclk", !! 21 clock-names = "mclk", "sclk", "lrclk"; 22 status = "disabled"; 22 status = "disabled"; 23 }; 23 }; 24 24 25 tdmif_b: audio-controller-1 { 25 tdmif_b: audio-controller-1 { 26 compatible = "amlogic,axg-tdm- 26 compatible = "amlogic,axg-tdm-iface"; 27 #sound-dai-cells = <0>; 27 #sound-dai-cells = <0>; 28 sound-name-prefix = "TDM_B"; 28 sound-name-prefix = "TDM_B"; 29 clocks = <&clkc_audio AUD_CLKI !! 29 clocks = <&clkc_audio AUD_CLKID_MST_B_MCLK>, 30 <&clkc_audio AUD_CLKI !! 30 <&clkc_audio AUD_CLKID_MST_B_SCLK>, 31 <&clkc_audio AUD_CLKI !! 31 <&clkc_audio AUD_CLKID_MST_B_LRCLK>; 32 clock-names = "sclk", "lrclk", !! 32 clock-names = "mclk", "sclk", "lrclk"; 33 status = "disabled"; 33 status = "disabled"; 34 }; 34 }; 35 35 36 tdmif_c: audio-controller-2 { 36 tdmif_c: audio-controller-2 { 37 compatible = "amlogic,axg-tdm- 37 compatible = "amlogic,axg-tdm-iface"; 38 #sound-dai-cells = <0>; 38 #sound-dai-cells = <0>; 39 sound-name-prefix = "TDM_C"; 39 sound-name-prefix = "TDM_C"; 40 clocks = <&clkc_audio AUD_CLKI !! 40 clocks = <&clkc_audio AUD_CLKID_MST_C_MCLK>, 41 <&clkc_audio AUD_CLKI !! 41 <&clkc_audio AUD_CLKID_MST_C_SCLK>, 42 <&clkc_audio AUD_CLKI !! 42 <&clkc_audio AUD_CLKID_MST_C_LRCLK>; 43 clock-names = "sclk", "lrclk", !! 43 clock-names = "mclk", "sclk", "lrclk"; 44 status = "disabled"; 44 status = "disabled"; 45 }; 45 }; 46 }; 46 }; 47 47 48 &apb { 48 &apb { 49 pdm: audio-controller@40000 { 49 pdm: audio-controller@40000 { 50 compatible = "amlogic,g12a-pdm 50 compatible = "amlogic,g12a-pdm", 51 "amlogic,axg-pdm" 51 "amlogic,axg-pdm"; 52 reg = <0x0 0x40000 0x0 0x34>; 52 reg = <0x0 0x40000 0x0 0x34>; 53 #sound-dai-cells = <0>; 53 #sound-dai-cells = <0>; 54 sound-name-prefix = "PDM"; 54 sound-name-prefix = "PDM"; 55 clocks = <&clkc_audio AUD_CLKI 55 clocks = <&clkc_audio AUD_CLKID_PDM>, 56 <&clkc_audio AUD_CLKI 56 <&clkc_audio AUD_CLKID_PDM_DCLK>, 57 <&clkc_audio AUD_CLKI 57 <&clkc_audio AUD_CLKID_PDM_SYSCLK>; 58 clock-names = "pclk", "dclk", 58 clock-names = "pclk", "dclk", "sysclk"; 59 resets = <&clkc_audio AUD_RESE << 60 status = "disabled"; 59 status = "disabled"; 61 }; 60 }; 62 61 63 audio: bus@42000 { 62 audio: bus@42000 { 64 compatible = "simple-bus"; 63 compatible = "simple-bus"; 65 reg = <0x0 0x42000 0x0 0x2000> 64 reg = <0x0 0x42000 0x0 0x2000>; 66 #address-cells = <2>; 65 #address-cells = <2>; 67 #size-cells = <2>; 66 #size-cells = <2>; 68 ranges = <0x0 0x0 0x0 0x42000 67 ranges = <0x0 0x0 0x0 0x42000 0x0 0x2000>; 69 68 70 clkc_audio: clock-controller@0 69 clkc_audio: clock-controller@0 { 71 status = "disabled"; 70 status = "disabled"; 72 compatible = "amlogic, 71 compatible = "amlogic,g12a-audio-clkc"; 73 reg = <0x0 0x0 0x0 0xb 72 reg = <0x0 0x0 0x0 0xb4>; 74 #clock-cells = <1>; 73 #clock-cells = <1>; 75 #reset-cells = <1>; 74 #reset-cells = <1>; 76 75 77 clocks = <&clkc CLKID_ 76 clocks = <&clkc CLKID_AUDIO>, 78 <&clkc CLKID_ 77 <&clkc CLKID_MPLL0>, 79 <&clkc CLKID_ 78 <&clkc CLKID_MPLL1>, 80 <&clkc CLKID_ 79 <&clkc CLKID_MPLL2>, 81 <&clkc CLKID_ 80 <&clkc CLKID_MPLL3>, 82 <&clkc CLKID_ 81 <&clkc CLKID_HIFI_PLL>, 83 <&clkc CLKID_ 82 <&clkc CLKID_FCLK_DIV3>, 84 <&clkc CLKID_ 83 <&clkc CLKID_FCLK_DIV4>, 85 <&clkc CLKID_ 84 <&clkc CLKID_GP0_PLL>; 86 clock-names = "pclk", 85 clock-names = "pclk", 87 "mst_in0 86 "mst_in0", 88 "mst_in1 87 "mst_in1", 89 "mst_in2 88 "mst_in2", 90 "mst_in3 89 "mst_in3", 91 "mst_in4 90 "mst_in4", 92 "mst_in5 91 "mst_in5", 93 "mst_in6 92 "mst_in6", 94 "mst_in7 93 "mst_in7"; 95 94 96 resets = <&reset RESET 95 resets = <&reset RESET_AUDIO>; 97 }; 96 }; 98 97 99 toddr_a: audio-controller@100 98 toddr_a: audio-controller@100 { 100 compatible = "amlogic, 99 compatible = "amlogic,g12a-toddr", 101 "amlogic, 100 "amlogic,axg-toddr"; 102 reg = <0x0 0x100 0x0 0 101 reg = <0x0 0x100 0x0 0x2c>; 103 #sound-dai-cells = <0> 102 #sound-dai-cells = <0>; 104 sound-name-prefix = "T 103 sound-name-prefix = "TODDR_A"; 105 interrupts = <GIC_SPI 104 interrupts = <GIC_SPI 148 IRQ_TYPE_EDGE_RISING>; 106 clocks = <&clkc_audio 105 clocks = <&clkc_audio AUD_CLKID_TODDR_A>; 107 resets = <&arb AXG_ARB 106 resets = <&arb AXG_ARB_TODDR_A>, 108 <&clkc_audio 107 <&clkc_audio AUD_RESET_TODDR_A>; 109 reset-names = "arb", " 108 reset-names = "arb", "rst"; 110 amlogic,fifo-depth = < 109 amlogic,fifo-depth = <512>; 111 status = "disabled"; 110 status = "disabled"; 112 }; 111 }; 113 112 114 toddr_b: audio-controller@140 113 toddr_b: audio-controller@140 { 115 compatible = "amlogic, 114 compatible = "amlogic,g12a-toddr", 116 "amlogic, 115 "amlogic,axg-toddr"; 117 reg = <0x0 0x140 0x0 0 116 reg = <0x0 0x140 0x0 0x2c>; 118 #sound-dai-cells = <0> 117 #sound-dai-cells = <0>; 119 sound-name-prefix = "T 118 sound-name-prefix = "TODDR_B"; 120 interrupts = <GIC_SPI 119 interrupts = <GIC_SPI 149 IRQ_TYPE_EDGE_RISING>; 121 clocks = <&clkc_audio 120 clocks = <&clkc_audio AUD_CLKID_TODDR_B>; 122 resets = <&arb AXG_ARB 121 resets = <&arb AXG_ARB_TODDR_B>, 123 <&clkc_audio 122 <&clkc_audio AUD_RESET_TODDR_B>; 124 reset-names = "arb", " 123 reset-names = "arb", "rst"; 125 amlogic,fifo-depth = < 124 amlogic,fifo-depth = <256>; 126 status = "disabled"; 125 status = "disabled"; 127 }; 126 }; 128 127 129 toddr_c: audio-controller@180 128 toddr_c: audio-controller@180 { 130 compatible = "amlogic, 129 compatible = "amlogic,g12a-toddr", 131 "amlogic, 130 "amlogic,axg-toddr"; 132 reg = <0x0 0x180 0x0 0 131 reg = <0x0 0x180 0x0 0x2c>; 133 #sound-dai-cells = <0> 132 #sound-dai-cells = <0>; 134 sound-name-prefix = "T 133 sound-name-prefix = "TODDR_C"; 135 interrupts = <GIC_SPI 134 interrupts = <GIC_SPI 150 IRQ_TYPE_EDGE_RISING>; 136 clocks = <&clkc_audio 135 clocks = <&clkc_audio AUD_CLKID_TODDR_C>; 137 resets = <&arb AXG_ARB 136 resets = <&arb AXG_ARB_TODDR_C>, 138 <&clkc_audio 137 <&clkc_audio AUD_RESET_TODDR_C>; 139 reset-names = "arb", " 138 reset-names = "arb", "rst"; 140 amlogic,fifo-depth = < 139 amlogic,fifo-depth = <256>; 141 status = "disabled"; 140 status = "disabled"; 142 }; 141 }; 143 142 144 frddr_a: audio-controller@1c0 143 frddr_a: audio-controller@1c0 { 145 compatible = "amlogic, 144 compatible = "amlogic,g12a-frddr", 146 "amlogic, 145 "amlogic,axg-frddr"; 147 reg = <0x0 0x1c0 0x0 0 146 reg = <0x0 0x1c0 0x0 0x2c>; 148 #sound-dai-cells = <0> 147 #sound-dai-cells = <0>; 149 sound-name-prefix = "F 148 sound-name-prefix = "FRDDR_A"; 150 interrupts = <GIC_SPI 149 interrupts = <GIC_SPI 152 IRQ_TYPE_EDGE_RISING>; 151 clocks = <&clkc_audio 150 clocks = <&clkc_audio AUD_CLKID_FRDDR_A>; 152 resets = <&arb AXG_ARB 151 resets = <&arb AXG_ARB_FRDDR_A>, 153 <&clkc_audio 152 <&clkc_audio AUD_RESET_FRDDR_A>; 154 reset-names = "arb", " 153 reset-names = "arb", "rst"; 155 amlogic,fifo-depth = < 154 amlogic,fifo-depth = <512>; 156 status = "disabled"; 155 status = "disabled"; 157 }; 156 }; 158 157 159 frddr_b: audio-controller@200 158 frddr_b: audio-controller@200 { 160 compatible = "amlogic, 159 compatible = "amlogic,g12a-frddr", 161 "amlogic, 160 "amlogic,axg-frddr"; 162 reg = <0x0 0x200 0x0 0 161 reg = <0x0 0x200 0x0 0x2c>; 163 #sound-dai-cells = <0> 162 #sound-dai-cells = <0>; 164 sound-name-prefix = "F 163 sound-name-prefix = "FRDDR_B"; 165 interrupts = <GIC_SPI 164 interrupts = <GIC_SPI 153 IRQ_TYPE_EDGE_RISING>; 166 clocks = <&clkc_audio 165 clocks = <&clkc_audio AUD_CLKID_FRDDR_B>; 167 resets = <&arb AXG_ARB 166 resets = <&arb AXG_ARB_FRDDR_B>, 168 <&clkc_audio 167 <&clkc_audio AUD_RESET_FRDDR_B>; 169 reset-names = "arb", " 168 reset-names = "arb", "rst"; 170 amlogic,fifo-depth = < 169 amlogic,fifo-depth = <256>; 171 status = "disabled"; 170 status = "disabled"; 172 }; 171 }; 173 172 174 frddr_c: audio-controller@240 173 frddr_c: audio-controller@240 { 175 compatible = "amlogic, 174 compatible = "amlogic,g12a-frddr", 176 "amlogic, 175 "amlogic,axg-frddr"; 177 reg = <0x0 0x240 0x0 0 176 reg = <0x0 0x240 0x0 0x2c>; 178 #sound-dai-cells = <0> 177 #sound-dai-cells = <0>; 179 sound-name-prefix = "F 178 sound-name-prefix = "FRDDR_C"; 180 interrupts = <GIC_SPI 179 interrupts = <GIC_SPI 154 IRQ_TYPE_EDGE_RISING>; 181 clocks = <&clkc_audio 180 clocks = <&clkc_audio AUD_CLKID_FRDDR_C>; 182 resets = <&arb AXG_ARB 181 resets = <&arb AXG_ARB_FRDDR_C>, 183 <&clkc_audio 182 <&clkc_audio AUD_RESET_FRDDR_C>; 184 reset-names = "arb", " 183 reset-names = "arb", "rst"; 185 amlogic,fifo-depth = < 184 amlogic,fifo-depth = <256>; 186 status = "disabled"; 185 status = "disabled"; 187 }; 186 }; 188 187 189 arb: reset-controller@280 { 188 arb: reset-controller@280 { 190 status = "disabled"; 189 status = "disabled"; 191 compatible = "amlogic, 190 compatible = "amlogic,meson-axg-audio-arb"; 192 reg = <0x0 0x280 0x0 0 191 reg = <0x0 0x280 0x0 0x4>; 193 #reset-cells = <1>; 192 #reset-cells = <1>; 194 clocks = <&clkc_audio 193 clocks = <&clkc_audio AUD_CLKID_DDR_ARB>; 195 }; 194 }; 196 195 197 tdmin_a: audio-controller@300 196 tdmin_a: audio-controller@300 { 198 compatible = "amlogic, !! 197 compatible = "amlogic,g12a-tdmin", >> 198 "amlogic,axg-tdmin"; 199 reg = <0x0 0x300 0x0 0 199 reg = <0x0 0x300 0x0 0x40>; 200 sound-name-prefix = "T 200 sound-name-prefix = "TDMIN_A"; 201 resets = <&clkc_audio 201 resets = <&clkc_audio AUD_RESET_TDMIN_A>; 202 clocks = <&clkc_audio 202 clocks = <&clkc_audio AUD_CLKID_TDMIN_A>, 203 <&clkc_audio 203 <&clkc_audio AUD_CLKID_TDMIN_A_SCLK>, 204 <&clkc_audio 204 <&clkc_audio AUD_CLKID_TDMIN_A_SCLK_SEL>, 205 <&clkc_audio 205 <&clkc_audio AUD_CLKID_TDMIN_A_LRCLK>, 206 <&clkc_audio 206 <&clkc_audio AUD_CLKID_TDMIN_A_LRCLK>; 207 clock-names = "pclk", 207 clock-names = "pclk", "sclk", "sclk_sel", 208 "lrclk", 208 "lrclk", "lrclk_sel"; 209 status = "disabled"; 209 status = "disabled"; 210 }; 210 }; 211 211 212 tdmin_b: audio-controller@340 212 tdmin_b: audio-controller@340 { 213 compatible = "amlogic, !! 213 compatible = "amlogic,g12a-tdmin", >> 214 "amlogic,axg-tdmin"; 214 reg = <0x0 0x340 0x0 0 215 reg = <0x0 0x340 0x0 0x40>; 215 sound-name-prefix = "T 216 sound-name-prefix = "TDMIN_B"; 216 resets = <&clkc_audio 217 resets = <&clkc_audio AUD_RESET_TDMIN_B>; 217 clocks = <&clkc_audio 218 clocks = <&clkc_audio AUD_CLKID_TDMIN_B>, 218 <&clkc_audio 219 <&clkc_audio AUD_CLKID_TDMIN_B_SCLK>, 219 <&clkc_audio 220 <&clkc_audio AUD_CLKID_TDMIN_B_SCLK_SEL>, 220 <&clkc_audio 221 <&clkc_audio AUD_CLKID_TDMIN_B_LRCLK>, 221 <&clkc_audio 222 <&clkc_audio AUD_CLKID_TDMIN_B_LRCLK>; 222 clock-names = "pclk", 223 clock-names = "pclk", "sclk", "sclk_sel", 223 "lrclk", 224 "lrclk", "lrclk_sel"; 224 status = "disabled"; 225 status = "disabled"; 225 }; 226 }; 226 227 227 tdmin_c: audio-controller@380 228 tdmin_c: audio-controller@380 { 228 compatible = "amlogic, !! 229 compatible = "amlogic,g12a-tdmin", >> 230 "amlogic,axg-tdmin"; 229 reg = <0x0 0x380 0x0 0 231 reg = <0x0 0x380 0x0 0x40>; 230 sound-name-prefix = "T 232 sound-name-prefix = "TDMIN_C"; 231 resets = <&clkc_audio 233 resets = <&clkc_audio AUD_RESET_TDMIN_C>; 232 clocks = <&clkc_audio 234 clocks = <&clkc_audio AUD_CLKID_TDMIN_C>, 233 <&clkc_audio 235 <&clkc_audio AUD_CLKID_TDMIN_C_SCLK>, 234 <&clkc_audio 236 <&clkc_audio AUD_CLKID_TDMIN_C_SCLK_SEL>, 235 <&clkc_audio 237 <&clkc_audio AUD_CLKID_TDMIN_C_LRCLK>, 236 <&clkc_audio 238 <&clkc_audio AUD_CLKID_TDMIN_C_LRCLK>; 237 clock-names = "pclk", 239 clock-names = "pclk", "sclk", "sclk_sel", 238 "lrclk", 240 "lrclk", "lrclk_sel"; 239 status = "disabled"; 241 status = "disabled"; 240 }; 242 }; 241 243 242 tdmin_lb: audio-controller@3c0 244 tdmin_lb: audio-controller@3c0 { 243 compatible = "amlogic, !! 245 compatible = "amlogic,g12a-tdmin", >> 246 "amlogic,axg-tdmin"; 244 reg = <0x0 0x3c0 0x0 0 247 reg = <0x0 0x3c0 0x0 0x40>; 245 sound-name-prefix = "T 248 sound-name-prefix = "TDMIN_LB"; 246 resets = <&clkc_audio 249 resets = <&clkc_audio AUD_RESET_TDMIN_LB>; 247 clocks = <&clkc_audio 250 clocks = <&clkc_audio AUD_CLKID_TDMIN_LB>, 248 <&clkc_audio 251 <&clkc_audio AUD_CLKID_TDMIN_LB_SCLK>, 249 <&clkc_audio 252 <&clkc_audio AUD_CLKID_TDMIN_LB_SCLK_SEL>, 250 <&clkc_audio 253 <&clkc_audio AUD_CLKID_TDMIN_LB_LRCLK>, 251 <&clkc_audio 254 <&clkc_audio AUD_CLKID_TDMIN_LB_LRCLK>; 252 clock-names = "pclk", 255 clock-names = "pclk", "sclk", "sclk_sel", 253 "lrclk", 256 "lrclk", "lrclk_sel"; 254 status = "disabled"; 257 status = "disabled"; 255 }; 258 }; 256 259 257 spdifin: audio-controller@400 260 spdifin: audio-controller@400 { 258 compatible = "amlogic, 261 compatible = "amlogic,g12a-spdifin", 259 "amlogic, 262 "amlogic,axg-spdifin"; 260 reg = <0x0 0x400 0x0 0 263 reg = <0x0 0x400 0x0 0x30>; 261 #sound-dai-cells = <0> 264 #sound-dai-cells = <0>; 262 sound-name-prefix = "S 265 sound-name-prefix = "SPDIFIN"; 263 interrupts = <GIC_SPI 266 interrupts = <GIC_SPI 151 IRQ_TYPE_EDGE_RISING>; 264 clocks = <&clkc_audio 267 clocks = <&clkc_audio AUD_CLKID_SPDIFIN>, 265 <&clkc_audio 268 <&clkc_audio AUD_CLKID_SPDIFIN_CLK>; 266 clock-names = "pclk", 269 clock-names = "pclk", "refclk"; 267 resets = <&clkc_audio 270 resets = <&clkc_audio AUD_RESET_SPDIFIN>; 268 status = "disabled"; 271 status = "disabled"; 269 }; 272 }; 270 273 271 spdifout_a: audio-controller@4 !! 274 spdifout: audio-controller@480 { 272 compatible = "amlogic, 275 compatible = "amlogic,g12a-spdifout", 273 "amlogic, 276 "amlogic,axg-spdifout"; 274 reg = <0x0 0x480 0x0 0 277 reg = <0x0 0x480 0x0 0x50>; 275 #sound-dai-cells = <0> 278 #sound-dai-cells = <0>; 276 sound-name-prefix = "S !! 279 sound-name-prefix = "SPDIFOUT"; 277 clocks = <&clkc_audio 280 clocks = <&clkc_audio AUD_CLKID_SPDIFOUT>, 278 <&clkc_audio 281 <&clkc_audio AUD_CLKID_SPDIFOUT_CLK>; 279 clock-names = "pclk", 282 clock-names = "pclk", "mclk"; 280 resets = <&clkc_audio 283 resets = <&clkc_audio AUD_RESET_SPDIFOUT>; 281 status = "disabled"; 284 status = "disabled"; 282 }; 285 }; 283 286 284 tdmout_a: audio-controller@500 287 tdmout_a: audio-controller@500 { 285 compatible = "amlogic, 288 compatible = "amlogic,g12a-tdmout"; 286 reg = <0x0 0x500 0x0 0 289 reg = <0x0 0x500 0x0 0x40>; 287 sound-name-prefix = "T 290 sound-name-prefix = "TDMOUT_A"; 288 resets = <&clkc_audio 291 resets = <&clkc_audio AUD_RESET_TDMOUT_A>; 289 clocks = <&clkc_audio 292 clocks = <&clkc_audio AUD_CLKID_TDMOUT_A>, 290 <&clkc_audio 293 <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK>, 291 <&clkc_audio 294 <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK_SEL>, 292 <&clkc_audio 295 <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>, 293 <&clkc_audio 296 <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>; 294 clock-names = "pclk", 297 clock-names = "pclk", "sclk", "sclk_sel", 295 "lrclk", 298 "lrclk", "lrclk_sel"; 296 status = "disabled"; 299 status = "disabled"; 297 }; 300 }; 298 301 299 tdmout_b: audio-controller@540 302 tdmout_b: audio-controller@540 { 300 compatible = "amlogic, 303 compatible = "amlogic,g12a-tdmout"; 301 reg = <0x0 0x540 0x0 0 304 reg = <0x0 0x540 0x0 0x40>; 302 sound-name-prefix = "T 305 sound-name-prefix = "TDMOUT_B"; 303 resets = <&clkc_audio 306 resets = <&clkc_audio AUD_RESET_TDMOUT_B>; 304 clocks = <&clkc_audio 307 clocks = <&clkc_audio AUD_CLKID_TDMOUT_B>, 305 <&clkc_audio 308 <&clkc_audio AUD_CLKID_TDMOUT_B_SCLK>, 306 <&clkc_audio 309 <&clkc_audio AUD_CLKID_TDMOUT_B_SCLK_SEL>, 307 <&clkc_audio 310 <&clkc_audio AUD_CLKID_TDMOUT_B_LRCLK>, 308 <&clkc_audio 311 <&clkc_audio AUD_CLKID_TDMOUT_B_LRCLK>; 309 clock-names = "pclk", 312 clock-names = "pclk", "sclk", "sclk_sel", 310 "lrclk", 313 "lrclk", "lrclk_sel"; 311 status = "disabled"; 314 status = "disabled"; 312 }; 315 }; 313 316 314 tdmout_c: audio-controller@580 317 tdmout_c: audio-controller@580 { 315 compatible = "amlogic, 318 compatible = "amlogic,g12a-tdmout"; 316 reg = <0x0 0x580 0x0 0 319 reg = <0x0 0x580 0x0 0x40>; 317 sound-name-prefix = "T 320 sound-name-prefix = "TDMOUT_C"; 318 resets = <&clkc_audio 321 resets = <&clkc_audio AUD_RESET_TDMOUT_C>; 319 clocks = <&clkc_audio 322 clocks = <&clkc_audio AUD_CLKID_TDMOUT_C>, 320 <&clkc_audio 323 <&clkc_audio AUD_CLKID_TDMOUT_C_SCLK>, 321 <&clkc_audio 324 <&clkc_audio AUD_CLKID_TDMOUT_C_SCLK_SEL>, 322 <&clkc_audio 325 <&clkc_audio AUD_CLKID_TDMOUT_C_LRCLK>, 323 <&clkc_audio 326 <&clkc_audio AUD_CLKID_TDMOUT_C_LRCLK>; 324 clock-names = "pclk", 327 clock-names = "pclk", "sclk", "sclk_sel", 325 "lrclk", 328 "lrclk", "lrclk_sel"; 326 status = "disabled"; 329 status = "disabled"; 327 }; 330 }; 328 331 329 spdifout_b: audio-controller@6 332 spdifout_b: audio-controller@680 { 330 compatible = "amlogic, 333 compatible = "amlogic,g12a-spdifout", 331 "amlogic, 334 "amlogic,axg-spdifout"; 332 reg = <0x0 0x680 0x0 0 335 reg = <0x0 0x680 0x0 0x50>; 333 #sound-dai-cells = <0> 336 #sound-dai-cells = <0>; 334 sound-name-prefix = "S 337 sound-name-prefix = "SPDIFOUT_B"; 335 clocks = <&clkc_audio 338 clocks = <&clkc_audio AUD_CLKID_SPDIFOUT_B>, 336 <&clkc_audio 339 <&clkc_audio AUD_CLKID_SPDIFOUT_B_CLK>; 337 clock-names = "pclk", 340 clock-names = "pclk", "mclk"; 338 resets = <&clkc_audio 341 resets = <&clkc_audio AUD_RESET_SPDIFOUT_B>; 339 status = "disabled"; 342 status = "disabled"; 340 }; 343 }; 341 344 342 toacodec: audio-controller@740 << 343 compatible = "amlogic, << 344 reg = <0x0 0x740 0x0 0 << 345 #sound-dai-cells = <1> << 346 sound-name-prefix = "T << 347 resets = <&clkc_audio << 348 status = "disabled"; << 349 }; << 350 << 351 tohdmitx: audio-controller@744 345 tohdmitx: audio-controller@744 { 352 compatible = "amlogic, 346 compatible = "amlogic,g12a-tohdmitx"; 353 reg = <0x0 0x744 0x0 0 347 reg = <0x0 0x744 0x0 0x4>; 354 #sound-dai-cells = <1> 348 #sound-dai-cells = <1>; 355 sound-name-prefix = "T 349 sound-name-prefix = "TOHDMITX"; 356 resets = <&clkc_audio 350 resets = <&clkc_audio AUD_RESET_TOHDMITX>; 357 status = "disabled"; 351 status = "disabled"; 358 }; 352 }; 359 }; 353 }; 360 }; 354 }; 361 355 362 ðmac { !! 356 &cpu_thermal { 363 power-domains = <&pwrc PWRC_G12A_ETH_I !! 357 cooling-maps { >> 358 map0 { >> 359 trip = <&cpu_passive>; >> 360 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, >> 361 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, >> 362 <&cpu100 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, >> 363 <&cpu101 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, >> 364 <&cpu102 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, >> 365 <&cpu103 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; >> 366 }; >> 367 map1 { >> 368 trip = <&cpu_hot>; >> 369 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, >> 370 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, >> 371 <&cpu100 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, >> 372 <&cpu101 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, >> 373 <&cpu102 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, >> 374 <&cpu103 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; >> 375 }; >> 376 }; 364 }; 377 }; 365 378 366 &hdmi_tx { !! 379 ðmac { 367 power-domains = <&pwrc PWRC_G12A_VPU_I !! 380 power-domains = <&pwrc PWRC_G12A_ETH_ID>; 368 }; 381 }; 369 382 370 &vpu { 383 &vpu { 371 power-domains = <&pwrc PWRC_G12A_VPU_I 384 power-domains = <&pwrc PWRC_G12A_VPU_ID>; 372 }; 385 }; 373 386 374 &sd_emmc_a { 387 &sd_emmc_a { 375 amlogic,dram-access-quirk; 388 amlogic,dram-access-quirk; 376 }; 389 }; 377 390 378 &simplefb_cvbs { 391 &simplefb_cvbs { 379 power-domains = <&pwrc PWRC_G12A_VPU_I 392 power-domains = <&pwrc PWRC_G12A_VPU_ID>; 380 }; 393 }; 381 394 382 &simplefb_hdmi { 395 &simplefb_hdmi { 383 power-domains = <&pwrc PWRC_G12A_VPU_I 396 power-domains = <&pwrc PWRC_G12A_VPU_ID>; 384 }; 397 }; 385 398
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.