|
6 | 6 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
7 | 7 | #include <dt-bindings/power/amlogic,t7-pwrc.h> |
8 | 8 | #include "amlogic-t7-reset.h" |
| 9 | +#include <dt-bindings/clock/amlogic,t7-scmi.h> |
| 10 | +#include <dt-bindings/clock/amlogic,t7-pll-clkc.h> |
| 11 | +#include <dt-bindings/clock/amlogic,t7-peripherals-clkc.h> |
9 | 12 |
|
10 | 13 | / { |
11 | 14 | interrupt-parent = <&gic>; |
|
201 | 204 | }; |
202 | 205 | }; |
203 | 206 |
|
| 207 | + sram@f7042000 { |
| 208 | + compatible = "mmio-sram"; |
| 209 | + reg = <0x0 0xf7042000 0x0 0x100>; |
| 210 | + #address-cells = <1>; |
| 211 | + #size-cells = <1>; |
| 212 | + ranges = <0 0x0 0xf7042000 0x100>; |
| 213 | + |
| 214 | + scmi_shmem: sram@0 { |
| 215 | + compatible = "arm,scmi-shmem"; |
| 216 | + reg = <0x0 0x100>; |
| 217 | + }; |
| 218 | + }; |
| 219 | + |
| 220 | + firmware { |
| 221 | + scmi: scmi { |
| 222 | + compatible = "arm,scmi-smc"; |
| 223 | + arm,smc-id = <0x820000c1>; |
| 224 | + shmem = <&scmi_shmem>; |
| 225 | + #address-cells = <1>; |
| 226 | + #size-cells = <0>; |
| 227 | + |
| 228 | + scmi_clk: protocol@14 { |
| 229 | + reg = <0x14>; |
| 230 | + #clock-cells = <1>; |
| 231 | + }; |
| 232 | + }; |
| 233 | + }; |
| 234 | + |
204 | 235 | soc { |
205 | 236 | compatible = "simple-bus"; |
206 | 237 | #address-cells = <2>; |
|
226 | 257 | #size-cells = <2>; |
227 | 258 | ranges = <0x0 0x0 0x0 0xfe000000 0x0 0x480000>; |
228 | 259 |
|
| 260 | + clkc_periphs: clock-controller@0 { |
| 261 | + compatible = "amlogic,t7-peripherals-clkc"; |
| 262 | + reg = <0x0 0x0 0x0 0x1c8>; |
| 263 | + #clock-cells = <1>; |
| 264 | + clocks = <&xtal>, |
| 265 | + <&scmi_clk CLKID_SYS_CLK>, |
| 266 | + <&scmi_clk CLKID_FIXED_PLL>, |
| 267 | + <&scmi_clk CLKID_FCLK_DIV2>, |
| 268 | + <&scmi_clk CLKID_FCLK_DIV2P5>, |
| 269 | + <&scmi_clk CLKID_FCLK_DIV3>, |
| 270 | + <&scmi_clk CLKID_FCLK_DIV4>, |
| 271 | + <&scmi_clk CLKID_FCLK_DIV5>, |
| 272 | + <&scmi_clk CLKID_FCLK_DIV7>, |
| 273 | + <&hifi CLKID_HIFI_PLL>, |
| 274 | + <&gp0 CLKID_GP0_PLL>, |
| 275 | + <&gp1 CLKID_GP1_PLL>, |
| 276 | + <&mpll CLKID_MPLL1>, |
| 277 | + <&mpll CLKID_MPLL2>, |
| 278 | + <&mpll CLKID_MPLL3>; |
| 279 | + clock-names = "xtal", |
| 280 | + "sys", |
| 281 | + "fix", |
| 282 | + "fdiv2", |
| 283 | + "fdiv2p5", |
| 284 | + "fdiv3", |
| 285 | + "fdiv4", |
| 286 | + "fdiv5", |
| 287 | + "fdiv7", |
| 288 | + "hifi", |
| 289 | + "gp0", |
| 290 | + "gp1", |
| 291 | + "mpll1", |
| 292 | + "mpll2", |
| 293 | + "mpll3"; |
| 294 | + }; |
| 295 | + |
229 | 296 | reset: reset-controller@2000 { |
230 | 297 | compatible = "amlogic,t7-reset"; |
231 | 298 | reg = <0x0 0x2000 0x0 0x98>; |
|
513 | 580 | status = "disabled"; |
514 | 581 | }; |
515 | 582 |
|
| 583 | + gp0: clock-controller@8080 { |
| 584 | + compatible = "amlogic,t7-gp0-pll"; |
| 585 | + reg = <0x0 0x8080 0x0 0x20>; |
| 586 | + clocks = <&scmi_clk CLKID_TOP_PLL_OSC>; |
| 587 | + clock-names = "in0"; |
| 588 | + #clock-cells = <1>; |
| 589 | + }; |
| 590 | + |
| 591 | + gp1: clock-controller@80c0 { |
| 592 | + compatible = "amlogic,t7-gp1-pll"; |
| 593 | + reg = <0x0 0x80c0 0x0 0x14>; |
| 594 | + clocks = <&scmi_clk CLKID_TOP_PLL_OSC>; |
| 595 | + clock-names = "in0"; |
| 596 | + #clock-cells = <1>; |
| 597 | + }; |
| 598 | + |
| 599 | + hifi: clock-controller@8100 { |
| 600 | + compatible = "amlogic,t7-hifi-pll"; |
| 601 | + reg = <0x0 0x8100 0x0 0x20>; |
| 602 | + clocks = <&scmi_clk CLKID_TOP_PLL_OSC>; |
| 603 | + clock-names = "in0"; |
| 604 | + #clock-cells = <1>; |
| 605 | + }; |
| 606 | + |
| 607 | + pcie: clock-controller@8140 { |
| 608 | + compatible = "amlogic,t7-pcie-pll"; |
| 609 | + reg = <0x0 0x8140 0x0 0x1c>; |
| 610 | + clocks = <&scmi_clk CLKID_PCIE_OSC>; |
| 611 | + clock-names = "in0"; |
| 612 | + #clock-cells = <1>; |
| 613 | + }; |
| 614 | + |
| 615 | + mpll: clock-controller@8180 { |
| 616 | + compatible = "amlogic,t7-mpll"; |
| 617 | + reg = <0x0 0x8180 0x0 0x28>; |
| 618 | + clocks = <&scmi_clk CLKID_FIXED_PLL_DCO>; |
| 619 | + clock-names = "in0"; |
| 620 | + #clock-cells = <1>; |
| 621 | + }; |
| 622 | + |
| 623 | + hdmi: clock-controller@81c0 { |
| 624 | + compatible = "amlogic,t7-hdmi-pll"; |
| 625 | + reg = <0x0 0x81c0 0x0 0x20>; |
| 626 | + clocks = <&scmi_clk CLKID_HDMI_PLL_OSC>; |
| 627 | + clock-names = "in0"; |
| 628 | + #clock-cells = <1>; |
| 629 | + }; |
| 630 | + |
| 631 | + mclk: clock-controller@8300 { |
| 632 | + compatible = "amlogic,t7-mclk-pll"; |
| 633 | + reg = <0x0 0x8300 0x0 0x18>; |
| 634 | + clocks = <&scmi_clk CLKID_MCLK_PLL_OSC>, |
| 635 | + <&xtal>, |
| 636 | + <&scmi_clk CLKID_FCLK_50M>; |
| 637 | + clock-names = "in0", "in1", "in2"; |
| 638 | + #clock-cells = <1>; |
| 639 | + }; |
| 640 | + |
516 | 641 | sec_ao: ao-secure@10220 { |
517 | 642 | compatible = "amlogic,t7-ao-secure", |
518 | 643 | "amlogic,meson-gx-ao-secure", |
|
0 commit comments