123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589 |
- // SPDX-License-Identifier: GPL-2.0-only
- /*
- * Unisoc SC9863A SoC DTS file
- *
- * Copyright (C) 2019, Unisoc Inc.
- */
- #include <dt-bindings/clock/sprd,sc9863a-clk.h>
- #include <dt-bindings/interrupt-controller/arm-gic.h>
- #include "sharkl3.dtsi"
- / {
- cpus {
- #address-cells = <2>;
- #size-cells = <0>;
- cpu-map {
- cluster0 {
- core0 {
- cpu = <&CPU0>;
- };
- core1 {
- cpu = <&CPU1>;
- };
- core2 {
- cpu = <&CPU2>;
- };
- core3 {
- cpu = <&CPU3>;
- };
- core4 {
- cpu = <&CPU4>;
- };
- core5 {
- cpu = <&CPU5>;
- };
- core6 {
- cpu = <&CPU6>;
- };
- core7 {
- cpu = <&CPU7>;
- };
- };
- };
- CPU0: cpu@0 {
- device_type = "cpu";
- compatible = "arm,cortex-a55";
- reg = <0x0 0x0>;
- enable-method = "psci";
- cpu-idle-states = <&CORE_PD>;
- };
- CPU1: cpu@100 {
- device_type = "cpu";
- compatible = "arm,cortex-a55";
- reg = <0x0 0x100>;
- enable-method = "psci";
- cpu-idle-states = <&CORE_PD>;
- };
- CPU2: cpu@200 {
- device_type = "cpu";
- compatible = "arm,cortex-a55";
- reg = <0x0 0x200>;
- enable-method = "psci";
- cpu-idle-states = <&CORE_PD>;
- };
- CPU3: cpu@300 {
- device_type = "cpu";
- compatible = "arm,cortex-a55";
- reg = <0x0 0x300>;
- enable-method = "psci";
- cpu-idle-states = <&CORE_PD>;
- };
- CPU4: cpu@400 {
- device_type = "cpu";
- compatible = "arm,cortex-a55";
- reg = <0x0 0x400>;
- enable-method = "psci";
- cpu-idle-states = <&CORE_PD>;
- };
- CPU5: cpu@500 {
- device_type = "cpu";
- compatible = "arm,cortex-a55";
- reg = <0x0 0x500>;
- enable-method = "psci";
- cpu-idle-states = <&CORE_PD>;
- };
- CPU6: cpu@600 {
- device_type = "cpu";
- compatible = "arm,cortex-a55";
- reg = <0x0 0x600>;
- enable-method = "psci";
- cpu-idle-states = <&CORE_PD>;
- };
- CPU7: cpu@700 {
- device_type = "cpu";
- compatible = "arm,cortex-a55";
- reg = <0x0 0x700>;
- enable-method = "psci";
- cpu-idle-states = <&CORE_PD>;
- };
- };
- idle-states {
- entry-method = "psci";
- CORE_PD: core-pd {
- compatible = "arm,idle-state";
- entry-latency-us = <4000>;
- exit-latency-us = <4000>;
- min-residency-us = <10000>;
- local-timer-stop;
- arm,psci-suspend-param = <0x00010000>;
- };
- };
- psci {
- compatible = "arm,psci-0.2";
- method = "smc";
- };
- timer {
- compatible = "arm,armv8-timer";
- interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>, /* Physical Secure PPI */
- <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>, /* Physical Non-Secure PPI */
- <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>, /* Virtual PPI */
- <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>; /* Hipervisor PPI */
- };
- pmu {
- compatible = "arm,armv8-pmuv3";
- interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>;
- };
- soc {
- gic: interrupt-controller@14000000 {
- compatible = "arm,gic-v3";
- #interrupt-cells = <3>;
- #address-cells = <2>;
- #size-cells = <2>;
- ranges;
- redistributor-stride = <0x0 0x20000>; /* 128KB stride */
- #redistributor-regions = <1>;
- interrupt-controller;
- reg = <0x0 0x14000000 0 0x20000>, /* GICD */
- <0x0 0x14040000 0 0x100000>; /* GICR */
- interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
- };
- ap_clk: clock-controller@21500000 {
- compatible = "sprd,sc9863a-ap-clk";
- reg = <0 0x21500000 0 0x1000>;
- clocks = <&ext_32k>, <&ext_26m>;
- clock-names = "ext-32k", "ext-26m";
- #clock-cells = <1>;
- };
- aon_clk: clock-controller@402d0000 {
- compatible = "sprd,sc9863a-aon-clk";
- reg = <0 0x402d0000 0 0x1000>;
- clocks = <&ext_26m>, <&rco_100m>,
- <&ext_32k>, <&ext_4m>;
- clock-names = "ext-26m", "rco-100m",
- "ext-32k", "ext-4m";
- #clock-cells = <1>;
- };
- mm_clk: clock-controller@60900000 {
- compatible = "sprd,sc9863a-mm-clk";
- reg = <0 0x60900000 0 0x1000>;
- #clock-cells = <1>;
- };
- funnel@10001000 {
- compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
- reg = <0 0x10001000 0 0x1000>;
- clocks = <&ext_26m>;
- clock-names = "apb_pclk";
- out-ports {
- port {
- funnel_soc_out_port: endpoint {
- remote-endpoint = <&etb_in>;
- };
- };
- };
- in-ports {
- port {
- funnel_soc_in_port: endpoint {
- remote-endpoint =
- <&funnel_ca55_out_port>;
- };
- };
- };
- };
- etb@10003000 {
- compatible = "arm,coresight-tmc", "arm,primecell";
- reg = <0 0x10003000 0 0x1000>;
- clocks = <&ext_26m>;
- clock-names = "apb_pclk";
- in-ports {
- port {
- etb_in: endpoint {
- remote-endpoint =
- <&funnel_soc_out_port>;
- };
- };
- };
- };
- funnel@12001000 {
- compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
- reg = <0 0x12001000 0 0x1000>;
- clocks = <&ext_26m>;
- clock-names = "apb_pclk";
- out-ports {
- port {
- funnel_little_out_port: endpoint {
- remote-endpoint =
- <&etf_little_in>;
- };
- };
- };
- in-ports {
- #address-cells = <1>;
- #size-cells = <0>;
- port@0 {
- reg = <0>;
- funnel_little_in_port0: endpoint {
- remote-endpoint = <&etm0_out>;
- };
- };
- port@1 {
- reg = <1>;
- funnel_little_in_port1: endpoint {
- remote-endpoint = <&etm1_out>;
- };
- };
- port@2 {
- reg = <2>;
- funnel_little_in_port2: endpoint {
- remote-endpoint = <&etm2_out>;
- };
- };
- port@3 {
- reg = <3>;
- funnel_little_in_port3: endpoint {
- remote-endpoint = <&etm3_out>;
- };
- };
- };
- };
- etf@12002000 {
- compatible = "arm,coresight-tmc", "arm,primecell";
- reg = <0 0x12002000 0 0x1000>;
- clocks = <&ext_26m>;
- clock-names = "apb_pclk";
- out-ports {
- port {
- etf_little_out: endpoint {
- remote-endpoint =
- <&funnel_ca55_in_port0>;
- };
- };
- };
- in-port {
- port {
- etf_little_in: endpoint {
- remote-endpoint =
- <&funnel_little_out_port>;
- };
- };
- };
- };
- etf@12003000 {
- compatible = "arm,coresight-tmc", "arm,primecell";
- reg = <0 0x12003000 0 0x1000>;
- clocks = <&ext_26m>;
- clock-names = "apb_pclk";
- out-ports {
- port {
- etf_big_out: endpoint {
- remote-endpoint =
- <&funnel_ca55_in_port1>;
- };
- };
- };
- in-ports {
- port {
- etf_big_in: endpoint {
- remote-endpoint =
- <&funnel_big_out_port>;
- };
- };
- };
- };
- funnel@12004000 {
- compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
- reg = <0 0x12004000 0 0x1000>;
- clocks = <&ext_26m>;
- clock-names = "apb_pclk";
- out-ports {
- port {
- funnel_ca55_out_port: endpoint {
- remote-endpoint =
- <&funnel_soc_in_port>;
- };
- };
- };
- in-ports {
- #address-cells = <1>;
- #size-cells = <0>;
- port@0 {
- reg = <0>;
- funnel_ca55_in_port0: endpoint {
- remote-endpoint =
- <&etf_little_out>;
- };
- };
- port@1 {
- reg = <1>;
- funnel_ca55_in_port1: endpoint {
- remote-endpoint =
- <&etf_big_out>;
- };
- };
- };
- };
- funnel@12005000 {
- compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
- reg = <0 0x12005000 0 0x1000>;
- clocks = <&ext_26m>;
- clock-names = "apb_pclk";
- out-ports {
- port {
- funnel_big_out_port: endpoint {
- remote-endpoint =
- <&etf_big_in>;
- };
- };
- };
- in-ports {
- #address-cells = <1>;
- #size-cells = <0>;
- port@0 {
- reg = <0>;
- funnel_big_in_port0: endpoint {
- remote-endpoint = <&etm4_out>;
- };
- };
- port@1 {
- reg = <1>;
- funnel_big_in_port1: endpoint {
- remote-endpoint = <&etm5_out>;
- };
- };
- port@2 {
- reg = <2>;
- funnel_big_in_port2: endpoint {
- remote-endpoint = <&etm6_out>;
- };
- };
- port@3 {
- reg = <3>;
- funnel_big_in_port3: endpoint {
- remote-endpoint = <&etm7_out>;
- };
- };
- };
- };
- etm@13040000 {
- compatible = "arm,coresight-etm4x", "arm,primecell";
- reg = <0 0x13040000 0 0x1000>;
- cpu = <&CPU0>;
- clocks = <&ext_26m>;
- clock-names = "apb_pclk";
- out-ports {
- port {
- etm0_out: endpoint {
- remote-endpoint =
- <&funnel_little_in_port0>;
- };
- };
- };
- };
- etm@13140000 {
- compatible = "arm,coresight-etm4x", "arm,primecell";
- reg = <0 0x13140000 0 0x1000>;
- cpu = <&CPU1>;
- clocks = <&ext_26m>;
- clock-names = "apb_pclk";
- out-ports {
- port {
- etm1_out: endpoint {
- remote-endpoint =
- <&funnel_little_in_port1>;
- };
- };
- };
- };
- etm@13240000 {
- compatible = "arm,coresight-etm4x", "arm,primecell";
- reg = <0 0x13240000 0 0x1000>;
- cpu = <&CPU2>;
- clocks = <&ext_26m>;
- clock-names = "apb_pclk";
- out-ports {
- port {
- etm2_out: endpoint {
- remote-endpoint =
- <&funnel_little_in_port2>;
- };
- };
- };
- };
- etm@13340000 {
- compatible = "arm,coresight-etm4x", "arm,primecell";
- reg = <0 0x13340000 0 0x1000>;
- cpu = <&CPU3>;
- clocks = <&ext_26m>;
- clock-names = "apb_pclk";
- out-ports {
- port {
- etm3_out: endpoint {
- remote-endpoint =
- <&funnel_little_in_port3>;
- };
- };
- };
- };
- etm@13440000 {
- compatible = "arm,coresight-etm4x", "arm,primecell";
- reg = <0 0x13440000 0 0x1000>;
- cpu = <&CPU4>;
- clocks = <&ext_26m>;
- clock-names = "apb_pclk";
- out-ports {
- port {
- etm4_out: endpoint {
- remote-endpoint =
- <&funnel_big_in_port0>;
- };
- };
- };
- };
- etm@13540000 {
- compatible = "arm,coresight-etm4x", "arm,primecell";
- reg = <0 0x13540000 0 0x1000>;
- cpu = <&CPU5>;
- clocks = <&ext_26m>;
- clock-names = "apb_pclk";
- out-ports {
- port {
- etm5_out: endpoint {
- remote-endpoint =
- <&funnel_big_in_port1>;
- };
- };
- };
- };
- etm@13640000 {
- compatible = "arm,coresight-etm4x", "arm,primecell";
- reg = <0 0x13640000 0 0x1000>;
- cpu = <&CPU6>;
- clocks = <&ext_26m>;
- clock-names = "apb_pclk";
- out-ports {
- port {
- etm6_out: endpoint {
- remote-endpoint =
- <&funnel_big_in_port2>;
- };
- };
- };
- };
- etm@13740000 {
- compatible = "arm,coresight-etm4x", "arm,primecell";
- reg = <0 0x13740000 0 0x1000>;
- cpu = <&CPU7>;
- clocks = <&ext_26m>;
- clock-names = "apb_pclk";
- out-ports {
- port {
- etm7_out: endpoint {
- remote-endpoint =
- <&funnel_big_in_port3>;
- };
- };
- };
- };
- ap-ahb {
- compatible = "simple-bus";
- #address-cells = <2>;
- #size-cells = <2>;
- ranges;
- sdio0: sdio@20300000 {
- compatible = "sprd,sdhci-r11";
- reg = <0 0x20300000 0 0x1000>;
- interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
- clock-names = "sdio", "enable";
- clocks = <&aon_clk CLK_SDIO0_2X>,
- <&apahb_gate CLK_SDIO0_EB>;
- assigned-clocks = <&aon_clk CLK_SDIO0_2X>;
- assigned-clock-parents = <&rpll CLK_RPLL_390M>;
- bus-width = <4>;
- no-sdio;
- no-mmc;
- };
- sdio3: sdio@20600000 {
- compatible = "sprd,sdhci-r11";
- reg = <0 0x20600000 0 0x1000>;
- interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
- clock-names = "sdio", "enable";
- clocks = <&aon_clk CLK_EMMC_2X>,
- <&apahb_gate CLK_EMMC_EB>;
- assigned-clocks = <&aon_clk CLK_EMMC_2X>;
- assigned-clock-parents = <&rpll CLK_RPLL_390M>;
- bus-width = <8>;
- non-removable;
- no-sdio;
- no-sd;
- cap-mmc-hw-reset;
- };
- };
- };
- };
|