|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ OR MIT |
| 2 | +/* |
| 3 | + * Mac Mini (M2 Pro, 2023) |
| 4 | + * |
| 5 | + * target-type: J474s |
| 6 | + * |
| 7 | + * Copyright The Asahi Linux Contributors |
| 8 | + */ |
| 9 | + |
| 10 | +/dts-v1/; |
| 11 | + |
| 12 | +#include "t6020.dtsi" |
| 13 | + |
| 14 | +/* |
| 15 | + * These model is very similar to the previous generation Mac Studio, other than |
| 16 | + * the GPIO indices. |
| 17 | + */ |
| 18 | + |
| 19 | +#define NO_PCIE_SDHC |
| 20 | +#define NO_GPU |
| 21 | +#include "t600x-j375.dtsi" |
| 22 | + |
| 23 | +/ { |
| 24 | + compatible = "apple,j474s", "apple,t6020", "apple,arm-platform"; |
| 25 | + model = "Apple Mac Mini (M2 Pro, 2023)"; |
| 26 | + |
| 27 | + aliases { |
| 28 | + ethernet0 = ðernet0; |
| 29 | + }; |
| 30 | +}; |
| 31 | + |
| 32 | +&hpm0 { |
| 33 | + interrupts = <44 IRQ_TYPE_LEVEL_LOW>; |
| 34 | +}; |
| 35 | + |
| 36 | +&hpm1 { |
| 37 | + interrupts = <44 IRQ_TYPE_LEVEL_LOW>; |
| 38 | +}; |
| 39 | + |
| 40 | +&hpm2 { |
| 41 | + interrupts = <44 IRQ_TYPE_LEVEL_LOW>; |
| 42 | +}; |
| 43 | + |
| 44 | +&hpm3 { |
| 45 | + interrupts = <44 IRQ_TYPE_LEVEL_LOW>; |
| 46 | +}; |
| 47 | + |
| 48 | +&wifi0 { |
| 49 | + compatible = "pci14e4,4434"; |
| 50 | + brcm,board-type = "apple,tasmania"; |
| 51 | +}; |
| 52 | + |
| 53 | +&bluetooth0 { |
| 54 | + compatible = "pci14e4,5f72"; |
| 55 | + brcm,board-type = "apple,tasmania"; |
| 56 | +}; |
| 57 | + |
| 58 | +/* PCIe devices */ |
| 59 | +&port00 { |
| 60 | + pwren-gpios = <&smc_gpio 13 GPIO_ACTIVE_HIGH>; |
| 61 | +}; |
| 62 | + |
| 63 | +&port02 { |
| 64 | + /* 10 Gbit Ethernet */ |
| 65 | + bus-range = <3 3>; |
| 66 | + status = "okay"; |
| 67 | + ethernet0: ethernet@0,0 { |
| 68 | + reg = <0x30000 0x0 0x0 0x0 0x0>; |
| 69 | + /* To be filled by the loader */ |
| 70 | + local-mac-address = [00 10 18 00 00 00]; |
| 71 | + }; |
| 72 | +}; |
| 73 | + |
| 74 | +&port03 { |
| 75 | + /* USB xHCI */ |
| 76 | + pwren-gpios = <&smc_gpio 19 GPIO_ACTIVE_HIGH>; |
| 77 | +}; |
| 78 | + |
| 79 | + |
| 80 | +&speaker { |
| 81 | + shutdown-gpios = <&pinctrl_ap 57 GPIO_ACTIVE_HIGH>; |
| 82 | + interrupts-extended = <&pinctrl_ap 58 IRQ_TYPE_LEVEL_LOW>; |
| 83 | +}; |
| 84 | + |
| 85 | +&jack_codec { |
| 86 | + reset-gpios = <&pinctrl_nub 8 GPIO_ACTIVE_HIGH>; |
| 87 | + interrupts-extended = <&pinctrl_ap 59 IRQ_TYPE_LEVEL_LOW>; |
| 88 | +}; |
| 89 | + |
| 90 | +&sound { |
| 91 | + model = "Mac mini J474"; |
| 92 | +}; |
0 commit comments