Debian Codegraph @

scripts/dtc/include-prefixes/arm64/apple/t8112-j493.dts

raw
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 chassis-type = "laptop";
20
21 /*
22 * All of those are used by the bootloader to pass calibration
23 * blobs and other device-specific properties
24 */
25 aliases {
26 bluetooth0 = &bluetooth0;
27 touchbar0 = &touchbar0;
28 wifi0 = &wifi0;
29 };
30
31 led-controller {
32 compatible = "pwm-leds";
33 led-0 {
34 pwms = <&fpwm1 0 40000>;
35 label = "kbd_backlight";
36 function = LED_FUNCTION_KBD_BACKLIGHT;
37 color = <LED_COLOR_ID_WHITE>;
38 max-brightness = <255>;
39 default-state = "keep";
40 };
41 };
42 };
43
44 /*
45 * The driver depends on boot loader initialized state which resets when this
46 * power-domain is powered off. This happens on suspend or when the driver is
47 * missing during boot. Mark the domain as always on until the driver can
48 * handle this.
49 */
50 &ps_dispdfr_be {
51 apple,always-on;
52 };
53
54 &display_dfr {
55 status = "okay";
56 };
57
58 &dfr_mipi_out {
59 dfr_mipi_out_panel: endpoint@0 {
60 reg = <0>;
61 remote-endpoint = <&dfr_panel_in>;
62 };
63 };
64
65 &displaydfr_mipi {
66 status = "okay";
67 #address-cells = <1>;
68 #size-cells = <0>;
69
70 dfr_panel: panel@0 {
71 compatible = "apple,j493-summit", "apple,summit";
72 reg = <0>;
73 max-brightness = <255>;
74
75 port {
76 dfr_panel_in: endpoint {
77 remote-endpoint = <&dfr_mipi_out_panel>;
78 };
79 };
80 };
81 };
82
83 &displaydfr_dart {
84 status = "okay";
85 };
86
87 /*
88 * Force the bus number assignments so that we can declare some of the
89 * on-board devices and properties that are populated by the bootloader
90 * (such as MAC addresses).
91 */
92 &port00 {
93 bus-range = <1 1>;
94 wifi0: wifi@0,0 {
95 compatible = "pci14e4,4425";
96 reg = <0x10000 0x0 0x0 0x0 0x0>;
97 /* To be filled by the loader */
98 local-mac-address = [00 00 00 00 00 00];
99 apple,antenna-sku = "XX";
100 brcm,board-type = "apple,kyushu";
101 };
102
103 bluetooth0: bluetooth@0,1 {
104 compatible = "pci14e4,5f69";
105 reg = <0x10100 0x0 0x0 0x0 0x0>;
106 /* To be filled by the loader */
107 local-bd-address = [00 00 00 00 00 00];
108 brcm,board-type = "apple,kyushu";
109 };
110 };
111
112 /*
113 * Provide labels for the USB type C ports.
114 */
115
116 &typec0 {
117 label = "USB-C Left-back";
118 };
119
120 &typec1 {
121 label = "USB-C Left-front";
122 };
123
124 &i2c4 {
125 status = "okay";
126 };
127
128 &fpwm1 {
129 status = "okay";
130 };
131
132 &spi3 {
133 status = "okay";
134
135 touchbar0: touchbar@0 {
136 compatible = "apple,j493-touchbar";
137 reg = <0>;
138 spi-max-frequency = <8000000>;
139 spi-cs-setup-delay-ns = <2000>;
140 spi-cs-hold-delay-ns = <2000>;
141 reset-gpios = <&pinctrl_ap 170 GPIO_ACTIVE_LOW>;
142 interrupts-extended = <&pinctrl_ap 174 IRQ_TYPE_EDGE_FALLING>;
143 firmware-name = "apple/dfrmtfw-j493.bin";
144 touchscreen-size-x = <23045>;
145 touchscreen-size-y = <640>;
146 touchscreen-inverted-y;
147 };
148 };