|
| 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 | +#define NO_PCIE_SDHC |
| 15 | +#include "t602x-j474-j475.dtsi" |
| 16 | + |
| 17 | +/ { |
| 18 | + compatible = "apple,j474s", "apple,t6020", "apple,arm-platform"; |
| 19 | + model = "Apple Mac Mini (M2 Pro, 2023)"; |
| 20 | +}; |
| 21 | + |
| 22 | +&wifi0 { |
| 23 | + compatible = "pci14e4,4434"; |
| 24 | + brcm,board-type = "apple,tasmania"; |
| 25 | +}; |
| 26 | + |
| 27 | +&bluetooth0 { |
| 28 | + compatible = "pci14e4,5f72"; |
| 29 | + brcm,board-type = "apple,tasmania"; |
| 30 | +}; |
| 31 | + |
| 32 | +/* PCIe devices */ |
| 33 | +&port01 { |
| 34 | + /* |
| 35 | + * TODO: do not enable port without device. This works around a Linux |
| 36 | + * bug which results in mismatched iommus on gaps in PCI(e) ports / bus |
| 37 | + * numbers. |
| 38 | + */ |
| 39 | + bus-range = <2 2>; |
| 40 | + status = "okay"; |
| 41 | +}; |
| 42 | + |
| 43 | +&sound { |
| 44 | + compatible = "apple,j474-macaudio", "apple,j473-macaudio", "apple,macaudio"; |
| 45 | + model = "Mac mini J474"; |
| 46 | +}; |
| 47 | + |
| 48 | +&lpdptxphy { |
| 49 | + status = "okay"; |
| 50 | +}; |
| 51 | + |
| 52 | +#define USE_DCPEXT0 1 |
| 53 | + |
| 54 | +#if USE_DCPEXT0 |
| 55 | +/ { |
| 56 | + aliases { |
| 57 | + dcpext0 = &dcpext0; |
| 58 | + /delete-property/ dcp; |
| 59 | + }; |
| 60 | +}; |
| 61 | + |
| 62 | +&framebuffer0 { |
| 63 | + power-domains = <&ps_dispext0_cpu0>, <&ps_dptx_phy_ps>; |
| 64 | +}; |
| 65 | + |
| 66 | +&dcp { |
| 67 | + status = "disabled"; |
| 68 | +}; |
| 69 | +&display { |
| 70 | + iommus = <&dispext0_dart 0>; |
| 71 | +}; |
| 72 | +&dispext0_dart { |
| 73 | + status = "okay"; |
| 74 | +}; |
| 75 | +&dcpext0_dart { |
| 76 | + status = "okay"; |
| 77 | +}; |
| 78 | +&dcpext0_mbox { |
| 79 | + status = "okay"; |
| 80 | +}; |
| 81 | +&dcpext0 { |
| 82 | +#else |
| 83 | +&dcp { |
| 84 | +#endif |
| 85 | + status = "okay"; |
| 86 | + apple,connector-type = "HDMI-A"; |
| 87 | + |
| 88 | + /* HDMI HPD gpio, used as interrupt*/ |
| 89 | + hdmi-hpd-gpios = <&pinctrl_aop 25 GPIO_ACTIVE_HIGH>; |
| 90 | + |
| 91 | + hdmi-pwren-gpios = <&smc_gpio 23 GPIO_ACTIVE_HIGH>; |
| 92 | + dp2hdmi-pwren-gpios = <&smc_gpio 25 GPIO_ACTIVE_HIGH>; |
| 93 | + |
| 94 | + phys = <&lpdptxphy>; |
| 95 | + phy-names = "dp-phy"; |
| 96 | + apple,dptx-phy = <4>; |
| 97 | +}; |
| 98 | + |
| 99 | +&gpu { |
| 100 | + /* Apple does not do this, but they probably should */ |
| 101 | + apple,perf-base-pstate = <3>; |
| 102 | +}; |
0 commit comments