xref: /freebsd/sys/contrib/device-tree/src/arm64/apple/t600x-j375.dtsi (revision 2e3507c25e42292b45a5482e116d278f5515d04d)
1// SPDX-License-Identifier: GPL-2.0+ OR MIT
2/*
3 * Mac Studio (2022)
4 *
5 * This file contains the parts common to J375 devices with both t6001 and t6002.
6 *
7 * target-type: J375c / J375d
8 *
9 * Copyright The Asahi Linux Contributors
10 */
11
12/ {
13	aliases {
14		serial0 = &serial0;
15		wifi0 = &wifi0;
16	};
17
18	chosen {
19		#address-cells = <2>;
20		#size-cells = <2>;
21		ranges;
22
23		stdout-path = "serial0";
24
25		framebuffer0: framebuffer@0 {
26			compatible = "apple,simple-framebuffer", "simple-framebuffer";
27			reg = <0 0 0 0>; /* To be filled by loader */
28			/* Format properties will be added by loader */
29			status = "disabled";
30		};
31	};
32
33	memory@10000000000 {
34		device_type = "memory";
35		reg = <0x100 0 0x2 0>; /* To be filled by loader */
36	};
37};
38
39&serial0 {
40	status = "okay";
41};
42
43/* USB Type C */
44&i2c0 {
45	hpm0: usb-pd@38 {
46		compatible = "apple,cd321x";
47		reg = <0x38>;
48		interrupt-parent = <&pinctrl_ap>;
49		interrupts = <174 IRQ_TYPE_LEVEL_LOW>;
50		interrupt-names = "irq";
51	};
52
53	hpm1: usb-pd@3f {
54		compatible = "apple,cd321x";
55		reg = <0x3f>;
56		interrupt-parent = <&pinctrl_ap>;
57		interrupts = <174 IRQ_TYPE_LEVEL_LOW>;
58		interrupt-names = "irq";
59	};
60
61	hpm2: usb-pd@3b {
62		compatible = "apple,cd321x";
63		reg = <0x3b>;
64		interrupt-parent = <&pinctrl_ap>;
65		interrupts = <174 IRQ_TYPE_LEVEL_LOW>;
66		interrupt-names = "irq";
67	};
68
69	hpm3: usb-pd@3c {
70		compatible = "apple,cd321x";
71		reg = <0x3c>;
72		interrupt-parent = <&pinctrl_ap>;
73		interrupts = <174 IRQ_TYPE_LEVEL_LOW>;
74		interrupt-names = "irq";
75	};
76};
77
78&nco_clkref {
79	clock-frequency = <1068000000>;
80};
81
82/* PCIe devices */
83&port00 {
84	/* WLAN */
85	bus-range = <1 1>;
86	wifi0: wifi@0,0 {
87		reg = <0x10000 0x0 0x0 0x0 0x0>;
88		/* To be filled by the loader */
89		local-mac-address = [00 10 18 00 00 10];
90	};
91};
92
93&port01 {
94	/* SD card reader */
95	bus-range = <2 2>;
96	sdhci0: mmc@0,0 {
97		compatible = "pci17a0,9755";
98		reg = <0x20000 0x0 0x0 0x0 0x0>;
99		cd-inverted;
100		wp-inverted;
101	};
102};
103
104&port02 {
105	/* 10 Gbit Ethernet */
106	bus-range = <3 3>;
107	status = "okay";
108	ethernet0: ethernet@0,0 {
109		reg = <0x30000 0x0 0x0 0x0 0x0>;
110		/* To be filled by the loader */
111		local-mac-address = [00 10 18 00 00 00];
112	};
113};
114
115&port03 {
116	/* USB xHCI */
117	bus-range = <4 4>;
118	status = "okay";
119};
120
121
122&pcie0_dart_2 {
123	status = "okay";
124};
125
126&pcie0_dart_3 {
127	status = "okay";
128};
129