Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // SPDX-License-Identifier: GPL-2.0+ OR MIT
- /*
- * Apple T6040 "M4 Pro" SoC
- *
- * Copyright The Asahi Linux Contributors
- */
- #include <dt-bindings/interrupt-controller/apple-aic.h>
- // TODO: make this 604x, and disable the last 2 cpus?
- / {
- compatible = "apple,t6040", "apple,arm-platform";
- #address-cells = <2>;
- #size-cells = <2>;
- aliases {
- };
- cpus {
- #address-cells = <2>;
- #size-cells = <0>;
- cpu-map {
- cluster0 {
- core0 {
- cpu = <&cpu_e0>;
- };
- core1 {
- cpu = <&cpu_e1>;
- };
- core2 {
- cpu = <&cpu_e2>;
- };
- core3 {
- cpu = <&cpu_e3>;
- };
- };
- cluster1 {
- core0 {
- cpu = <&cpu_p00>;
- };
- core1 {
- cpu = <&cpu_p01>;
- };
- core2 {
- cpu = <&cpu_p02>;
- };
- core3 {
- cpu = <&cpu_p03>;
- };
- core4 {
- cpu = <&cpu_p04>;
- };
- core5 {
- cpu = <&cpu_p05>;
- };
- };
- cluster2 {
- core0 {
- cpu = <&cpu_p10>;
- };
- core1 {
- cpu = <&cpu_p11>;
- };
- core2 {
- cpu = <&cpu_p12>;
- };
- core3 {
- cpu = <&cpu_p13>;
- };
- core4 {
- cpu = <&cpu_p14>;
- };
- core5 {
- cpu = <&cpu_p15>;
- };
- };
- };
- cpu_e0: cpu@0 {
- compatible = "apple,sawtooth";
- device_type = "cpu";
- reg = <0x0 0x0>;
- enable-method = "spin-table";
- cpu-release-addr = <0 0>; /* To be filled by loader */
- next-level-cache = <&l2_cache_0>;
- };
- cpu_e1: cpu@1 {
- compatible = "apple,sawtooth";
- device_type = "cpu";
- reg = <0x0 0x1>;
- enable-method = "spin-table";
- cpu-release-addr = <0 0>; /* To be filled by loader */
- next-level-cache = <&l2_cache_0>;
- };
- cpu_e2: cpu@2 {
- compatible = "apple,sawtooth";
- device_type = "cpu";
- reg = <0x0 0x2>;
- enable-method = "spin-table";
- cpu-release-addr = <0 0>; /* To be filled by loader */
- next-level-cache = <&l2_cache_0>;
- };
- cpu_e3: cpu@3 {
- compatible = "apple,sawtooth";
- device_type = "cpu";
- reg = <0x0 0x3>;
- enable-method = "spin-table";
- cpu-release-addr = <0 0>; /* To be filled by loader */
- next-level-cache = <&l2_cache_0>;
- };
- cpu_p00: cpu@10100 {
- compatible = "apple,everest";
- device_type = "cpu";
- reg = <0x0 0x10100>;
- enable-method = "spin-table";
- cpu-release-addr = <0 0>; /* To be filled by loader */
- next-level-cache = <&l2_cache_1>;
- };
- cpu_p01: cpu@10101 {
- compatible = "apple,everest";
- device_type = "cpu";
- reg = <0x0 0x10101>;
- enable-method = "spin-table";
- cpu-release-addr = <0 0>; /* To be filled by loader */
- next-level-cache = <&l2_cache_1>;
- };
- cpu_p02: cpu@10102 {
- compatible = "apple,everest";
- device_type = "cpu";
- reg = <0x0 0x10102>;
- enable-method = "spin-table";
- cpu-release-addr = <0 0>; /* To be filled by loader */
- next-level-cache = <&l2_cache_1>;
- };
- cpu_p03: cpu@10103 {
- compatible = "apple,everest";
- device_type = "cpu";
- reg = <0x0 0x10103>;
- enable-method = "spin-table";
- cpu-release-addr = <0 0>; /* To be filled by loader */
- next-level-cache = <&l2_cache_1>;
- };
- cpu_p04: cpu@10104 {
- compatible = "apple,everest";
- device_type = "cpu";
- reg = <0x0 0x10104>;
- enable-method = "spin-table";
- cpu-release-addr = <0 0>; /* To be filled by loader */
- next-level-cache = <&l2_cache_1>;
- };
- cpu_p05: cpu@10105 {
- compatible = "apple,everest";
- device_type = "cpu";
- reg = <0x0 0x10105>;
- enable-method = "spin-table";
- cpu-release-addr = <0 0>; /* To be filled by loader */
- next-level-cache = <&l2_cache_1>;
- };
- cpu_p10: cpu@10200 {
- compatible = "apple,everest";
- device_type = "cpu";
- reg = <0x0 0x10200>;
- enable-method = "spin-table";
- cpu-release-addr = <0 0>; /* To be filled by loader */
- next-level-cache = <&l2_cache_2>;
- };
- cpu_p11: cpu@10201 {
- compatible = "apple,everest";
- device_type = "cpu";
- reg = <0x0 0x10201>;
- enable-method = "spin-table";
- cpu-release-addr = <0 0>; /* To be filled by loader */
- next-level-cache = <&l2_cache_2>;
- };
- cpu_p12: cpu@10202 {
- compatible = "apple,everest";
- device_type = "cpu";
- reg = <0x0 0x10202>;
- enable-method = "spin-table";
- cpu-release-addr = <0 0>; /* To be filled by loader */
- next-level-cache = <&l2_cache_2>;
- };
- cpu_p13: cpu@10203 {
- compatible = "apple,everest";
- device_type = "cpu";
- reg = <0x0 0x10203>;
- enable-method = "spin-table";
- cpu-release-addr = <0 0>; /* To be filled by loader */
- next-level-cache = <&l2_cache_2>;
- };
- cpu_p14: cpu@10204 {
- compatible = "apple,everest";
- device_type = "cpu";
- reg = <0x0 0x10204>;
- enable-method = "spin-table";
- cpu-release-addr = <0 0>; /* To be filled by loader */
- next-level-cache = <&l2_cache_2>;
- };
- cpu_p15: cpu@10205 {
- compatible = "apple,everest";
- device_type = "cpu";
- reg = <0x0 0x10205>;
- enable-method = "spin-table";
- cpu-release-addr = <0 0>; /* To be filled by loader */
- next-level-cache = <&l2_cache_2>;
- };
- l2_cache_0: l2-cache-0 {
- compatible = "cache";
- cache-level = <2>;
- cache-unified;
- cache-size = <0x400000>;
- };
- l2_cache_1: l2-cache-1 {
- compatible = "cache";
- cache-level = <2>;
- cache-unified;
- cache-size = <0x1000000>;
- };
- l2_cache_2: l2-cache-2 {
- compatible = "cache";
- cache-level = <2>;
- cache-unified;
- cache-size = <0x1000000>;
- };
- };
- timer {
- compatible = "arm,armv8-timer";
- interrupt-parent = <&aic>;
- interrupt-names = "phys", "virt", "hyp-phys", "hyp-virt";
- interrupts = <AIC_FIQ AIC_TMR_GUEST_PHYS IRQ_TYPE_LEVEL_HIGH>,
- <AIC_FIQ AIC_TMR_GUEST_VIRT IRQ_TYPE_LEVEL_HIGH>,
- <AIC_FIQ AIC_TMR_HV_PHYS IRQ_TYPE_LEVEL_HIGH>,
- <AIC_FIQ AIC_TMR_HV_VIRT IRQ_TYPE_LEVEL_HIGH>;
- };
- clkref: clock-ref {
- compatible = "fixed-clock";
- #clock-cells = <0>;
- clock-frequency = <24000000>;
- clock-output-names = "clkref";
- };
- soc {
- compatible = "simple-bus";
- #address-cells = <2>;
- #size-cells = <2>;
- ranges;
- nonposted-mmio;
- /* Required to get >32-bit DMA via DARTs */
- dma-ranges = <0 0 0 0 0xffffffff 0xffffc000>;
- serial0: serial@429200000 {
- compatible = "apple,s5l-uart";
- reg = <0x4 0x29200000 0x0 0x1000>;
- reg-io-width = <4>;
- interrupt-parent = <&aic>;
- interrupts = <AIC_IRQ 1559 IRQ_TYPE_LEVEL_HIGH>;
- /*
- * TODO: figure out the clocking properly, there may
- * be a third selectable clock.
- */
- clocks = <&clkref>, <&clkref>;
- clock-names = "uart", "clk_uart_baud0";
- // power-domains = <&ps_uart0>;
- status = "disabled";
- };
- aic: interrupt-controller@502400000 {
- compatible = "apple,t6040-aic3", "apple,t8122-aic3";
- #interrupt-cells = <3>;
- interrupt-controller;
- reg = <0x5 0x2400000 0x0 0x184000>,
- <0x5 0x2440000 0x0 0x4>;
- reg-names = "core", "event";
- // power-domains = <&ps_aic>;
- affinities {
- e-core-pmu-affinity {
- apple,fiq-index = <AIC_CPU_PMU_E>;
- cpus = <&cpu_e0 &cpu_e1 &cpu_e2 &cpu_e3>;
- };
- p-core-pmu-affinity {
- apple,fiq-index = <AIC_CPU_PMU_P>;
- cpus = <
- &cpu_p00 &cpu_p01 &cpu_p02 &cpu_p03 &cpu_p04 &cpu_p05
- &cpu_p10 &cpu_p11 &cpu_p12 &cpu_p13 &cpu_p14 &cpu_p15
- >;
- };
- };
- };
- dockchannel_uart: mailbox@50880c000 {
- compatible = "apple,t8122-dockchannel", "apple,t8112-dockchannel";
- // maybe 0x50 0x8...
- reg = <0x50 0x880c000 0x0 0x4000>,
- <0x50 0x8828000 0x0 0x4000>,
- <0x50 0x882c000 0x0 0x4000>;
- reg-names = "irq", "config", "data";
- interrupt-parent = <&aic>;
- interrupts = <AIC_IRQ 360 IRQ_TYPE_LEVEL_HIGH>;
- #mbox-cells = <0>;
- status = "disabled";
- };
- mtp_mbox: mbox@514608000 {
- compatible = "apple,t8122-asc-mailbox", "apple,asc-mailbox-v4";
- reg = <0x5 0x14608000 0x0 0x4000>;
- interrupt-parent = <&aic>;
- interrupts = <AIC_IRQ 792 IRQ_TYPE_LEVEL_HIGH>,
- <AIC_IRQ 793 IRQ_TYPE_LEVEL_HIGH>,
- <AIC_IRQ 794 IRQ_TYPE_LEVEL_HIGH>,
- <AIC_IRQ 795 IRQ_TYPE_LEVEL_HIGH>;
- interrupt-names = "send-empty", "send-not-empty",
- "recv-empty", "recv-not-empty";
- #mbox-cells = <0>;
- status = "disabled";
- };
- mtp_dart: iommu@514800000 {
- compatible = "apple,t8122-dart", "apple,t8110-dart";
- reg = <0x5 0x14800000 0x0 0x4000>;
- interrupt-parent = <&aic>;
- interrupts = <AIC_IRQ 775 IRQ_TYPE_LEVEL_HIGH>;
- #iommu-cells = <1>;
- status = "disabled";
- };
- mtp_dockchannel: mailbox@514b14000 {
- compatible = "apple,t8122-dockchannel", "apple,t8112-dockchannel";
- reg = <0x5 0x14b14000 0x0 0x4000>,
- <0x5 0x14b30000 0x0 0x4000>,
- <0x5 0x14b34000 0x0 0x4000>;
- reg-names = "irq", "config", "data";
- interrupt-parent = <&aic>;
- interrupts = <AIC_IRQ 776 IRQ_TYPE_LEVEL_HIGH>;
- #mbox-cells = <0>;
- status = "disabled";
- };
- mtp_hid: hid@514600000 {
- compatible = "apple,t8122-dockchannel-hid",
- "apple,t8112-dockchannel-hid";
- reg = <0x5 0x14600000 0x0 0x4000>,
- <0x5 0x15000000 0x0 0x100000>;
- reg-names = "coproc-asc", "coproc-sram";
- mboxes = <&mtp_mbox>, <&mtp_dockchannel>;
- mbox-names = "asc", "dockchannel";
- iommus = <&mtp_dart 1>;
- status = "disabled";
- };
- dockchannel_uart_serial: serial {
- compatible = "apple,dockchannel-serial";
- mboxes = <&dockchannel_uart>;
- mbox-names = "dockchannel";
- status = "disabled";
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment