xref: /linux/arch/arm64/boot/dts/apple/t8112-j493.dts (revision 6315d93541f8a5f77c5ef5c4f25233e66d189603)
1// SPDX-License-Identifier: GPL-2.0+ OR MIT
2/*
3 * Apple MacBook Pro (13-inch, M1, 2022)
4 *
5 * target-type: J493
6 *
7 * Copyright The Asahi Linux Contributors
8 */
9
10/dts-v1/;
11
12#include "t8112.dtsi"
13#include "t8112-jxxx.dtsi"
14#include <dt-bindings/leds/common.h>
15
16/ {
17	compatible = "apple,j493", "apple,t8112", "apple,arm-platform";
18	model = "Apple MacBook Pro (13-inch, M2, 2022)";
19
20	/*
21	 * All of those are used by the bootloader to pass calibration
22	 * blobs and other device-specific properties
23	 */
24	aliases {
25		bluetooth0 = &bluetooth0;
26		touchbar0 = &touchbar0;
27		wifi0 = &wifi0;
28	};
29
30	led-controller {
31		compatible = "pwm-leds";
32		led-0 {
33			pwms = <&fpwm1 0 40000>;
34			label = "kbd_backlight";
35			function = LED_FUNCTION_KBD_BACKLIGHT;
36			color = <LED_COLOR_ID_WHITE>;
37			max-brightness = <255>;
38			default-state = "keep";
39		};
40	};
41};
42
43&display_dfr {
44	status = "okay";
45};
46
47&dfr_mipi_out {
48	dfr_mipi_out_panel: endpoint@0 {
49		reg = <0>;
50		remote-endpoint = <&dfr_panel_in>;
51	};
52};
53
54&displaydfr_mipi {
55	status = "okay";
56
57	dfr_panel: panel@0 {
58		compatible = "apple,j493-summit", "apple,summit";
59		reg = <0>;
60		max-brightness = <255>;
61
62		port {
63			dfr_panel_in: endpoint {
64				remote-endpoint = <&dfr_mipi_out_panel>;
65			};
66		};
67	};
68};
69
70&displaydfr_dart {
71	status = "okay";
72};
73
74/*
75 * Force the bus number assignments so that we can declare some of the
76 * on-board devices and properties that are populated by the bootloader
77 * (such as MAC addresses).
78 */
79&port00 {
80	bus-range = <1 1>;
81	wifi0: wifi@0,0 {
82		compatible = "pci14e4,4425";
83		reg = <0x10000 0x0 0x0 0x0 0x0>;
84		/* To be filled by the loader */
85		local-mac-address = [00 00 00 00 00 00];
86		apple,antenna-sku = "XX";
87		brcm,board-type = "apple,kyushu";
88	};
89
90	bluetooth0: bluetooth@0,1 {
91		compatible = "pci14e4,5f69";
92		reg = <0x10100 0x0 0x0 0x0 0x0>;
93		/* To be filled by the loader */
94		local-bd-address = [00 00 00 00 00 00];
95		brcm,board-type = "apple,kyushu";
96	};
97};
98
99&i2c4 {
100	status = "okay";
101};
102
103&fpwm1 {
104	status = "okay";
105};
106
107&spi3 {
108	status = "okay";
109
110	touchbar0: touchbar@0 {
111		compatible = "apple,j493-touchbar";
112		reg = <0>;
113		spi-max-frequency = <8000000>;
114		spi-cs-setup-delay-ns = <2000>;
115		spi-cs-hold-delay-ns = <2000>;
116		reset-gpios = <&pinctrl_ap 170 GPIO_ACTIVE_LOW>;
117		interrupts-extended = <&pinctrl_ap 174 IRQ_TYPE_EDGE_FALLING>;
118		firmware-name = "apple/dfrmtfw-j493.bin";
119		touchscreen-size-x = <23045>;
120		touchscreen-size-y = <640>;
121		touchscreen-inverted-y;
122	};
123};
124