xref: /freebsd/sys/contrib/device-tree/src/arm64/apple/t8103-jxxx.dtsi (revision 2008043f386721d58158e37e0d7e50df8095942d)
1// SPDX-License-Identifier: GPL-2.0+ OR MIT
2/*
3 * Apple M1 Mac mini, MacBook Air/Pro, iMac 24" (M1, 2020/2021)
4 *
5 * This file contains parts common to all Apple M1 devices using the t8103.
6 *
7 * target-type: J274, J293, J313, J456, J457
8 *
9 * Copyright The Asahi Linux Contributors
10 */
11
12/ {
13	aliases {
14		bluetooth0 = &bluetooth0;
15		serial0 = &serial0;
16		serial2 = &serial2;
17		wifi0 = &wifi0;
18	};
19
20	chosen {
21		#address-cells = <2>;
22		#size-cells = <2>;
23		ranges;
24
25		stdout-path = "serial0";
26
27		framebuffer0: framebuffer@0 {
28			compatible = "apple,simple-framebuffer", "simple-framebuffer";
29			reg = <0 0 0 0>; /* To be filled by loader */
30			/* Format properties will be added by loader */
31			status = "disabled";
32		};
33	};
34
35	memory@800000000 {
36		device_type = "memory";
37		reg = <0x8 0 0x2 0>; /* To be filled by loader */
38	};
39};
40
41&serial0 {
42	status = "okay";
43};
44
45&serial2 {
46	status = "okay";
47};
48
49&i2c0 {
50	hpm0: usb-pd@38 {
51		compatible = "apple,cd321x";
52		reg = <0x38>;
53		interrupt-parent = <&pinctrl_ap>;
54		interrupts = <106 IRQ_TYPE_LEVEL_LOW>;
55		interrupt-names = "irq";
56	};
57
58	hpm1: usb-pd@3f {
59		compatible = "apple,cd321x";
60		reg = <0x3f>;
61		interrupt-parent = <&pinctrl_ap>;
62		interrupts = <106 IRQ_TYPE_LEVEL_LOW>;
63		interrupt-names = "irq";
64	};
65};
66
67/*
68 * Force the bus number assignments so that we can declare some of the
69 * on-board devices and properties that are populated by the bootloader
70 * (such as MAC addresses).
71 */
72&port00 {
73	bus-range = <1 1>;
74	wifi0: network@0,0 {
75		compatible = "pci14e4,4425";
76		reg = <0x10000 0x0 0x0 0x0 0x0>;
77		/* To be filled by the loader */
78		local-mac-address = [00 00 00 00 00 00];
79		apple,antenna-sku = "XX";
80	};
81
82	bluetooth0: bluetooth@0,1 {
83		compatible = "pci14e4,5f69";
84		reg = <0x10100 0x0 0x0 0x0 0x0>;
85		/* To be filled by the loader */
86		local-bd-address = [00 00 00 00 00 00];
87	};
88};
89
90&nco_clkref {
91	clock-frequency = <900000000>;
92};
93