1// SPDX-License-Identifier: GPL-2.0+ OR MIT
2/*
3 * MacBook Pro (14/16-inch, 2021)
4 *
5 * This file contains the parts common to J314 and J316 devices with both t6000 and t6001.
6 *
7 * target-type: J314s / J314c / J316s / J316c
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	/* MagSafe port */
70	hpm5: usb-pd@3a {
71		compatible = "apple,cd321x";
72		reg = <0x3a>;
73		interrupt-parent = <&pinctrl_ap>;
74		interrupts = <174 IRQ_TYPE_LEVEL_LOW>;
75		interrupt-names = "irq";
76	};
77};
78
79&nco_clkref {
80	clock-frequency = <1068000000>;
81};
82
83/* PCIe devices */
84&port00 {
85	/* WLAN */
86	bus-range = <1 1>;
87	wifi0: wifi@0,0 {
88		reg = <0x10000 0x0 0x0 0x0 0x0>;
89		/* To be filled by the loader */
90		local-mac-address = [00 10 18 00 00 10];
91	};
92};
93
94&port01 {
95	/* SD card reader */
96	bus-range = <2 2>;
97	sdhci0: mmc@0,0 {
98		compatible = "pci17a0,9755";
99		reg = <0x20000 0x0 0x0 0x0 0x0>;
100		cd-inverted;
101		wp-inverted;
102	};
103};
104
105&pcie0_dart_2 {
106	status = "disabled";
107};
108
109&pcie0_dart_3 {
110	status = "disabled";
111};
112
113/delete-node/ &port02;
114/delete-node/ &port03;
115