Debian Codegraph @

scripts/dtc/include-prefixes/arm64/apple/t8103-j293.dts

raw
1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
2 /*
3 * Apple MacBook Pro (13-inch, M1, 2020)
4 *
5 * target-type: J293
6 *
7 * Copyright The Asahi Linux Contributors
8 */
9
10 /dts-v1/;
11
12 #include "t8103.dtsi"
13 #include "t8103-jxxx.dtsi"
14 #include <dt-bindings/leds/common.h>
15
16 / {
17 compatible = "apple,j293", "apple,t8103", "apple,arm-platform";
18 model = "Apple MacBook Pro (13-inch, M1, 2020)";
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 touchbar0 = &touchbar0;
27 };
28
29 led-controller {
30 compatible = "pwm-leds";
31 led-0 {
32 pwms = <&fpwm1 0 40000>;
33 label = "kbd_backlight";
34 function = LED_FUNCTION_KBD_BACKLIGHT;
35 color = <LED_COLOR_ID_WHITE>;
36 max-brightness = <255>;
37 default-state = "keep";
38 };
39 };
40 };
41
42 &bluetooth0 {
43 brcm,board-type = "apple,honshu";
44 };
45
46 &wifi0 {
47 brcm,board-type = "apple,honshu";
48 };
49
50 /*
51 * Provide labels for the USB type C ports.
52 */
53
54 &typec0 {
55 label = "USB-C Left-back";
56 };
57
58 &typec1 {
59 label = "USB-C Left-front";
60 };
61
62 &i2c2 {
63 status = "okay";
64 };
65
66 &i2c4 {
67 status = "okay";
68 };
69
70 &fpwm1 {
71 status = "okay";
72 };
73
74 &spi0 {
75 cs-gpios = <&pinctrl_ap 109 GPIO_ACTIVE_LOW>;
76 status = "okay";
77
78 touchbar0: touchbar@0 {
79 compatible = "apple,j293-touchbar";
80 reg = <0>;
81 spi-max-frequency = <11500000>;
82 spi-cs-setup-delay-ns = <2000>;
83 spi-cs-hold-delay-ns = <2000>;
84 reset-gpios = <&pinctrl_ap 139 GPIO_ACTIVE_LOW>;
85 interrupts-extended = <&pinctrl_ap 194 IRQ_TYPE_EDGE_FALLING>;
86 firmware-name = "apple/dfrmtfw-j293.bin";
87 touchscreen-size-x = <23045>;
88 touchscreen-size-y = <640>;
89 touchscreen-inverted-y;
90 };
91 };
92
93 /*
94 * The driver depends on boot loader initialized state which resets when this
95 * power-domain is powered off. This happens on suspend or when the driver is
96 * missing during boot. Mark the domain as always on until the driver can
97 * handle this.
98 */
99 &ps_dispdfr_be {
100 apple,always-on;
101 };
102
103 &display_dfr {
104 status = "okay";
105 };
106
107 &dfr_mipi_out {
108 dfr_mipi_out_panel: endpoint@0 {
109 reg = <0>;
110 remote-endpoint = <&dfr_panel_in>;
111 };
112 };
113
114 &displaydfr_mipi {
115 status = "okay";
116 #address-cells = <1>;
117 #size-cells = <0>;
118
119 dfr_panel: panel@0 {
120 compatible = "apple,j293-summit", "apple,summit";
121 reg = <0>;
122 max-brightness = <255>;
123
124 port {
125 dfr_panel_in: endpoint {
126 remote-endpoint = <&dfr_mipi_out_panel>;
127 };
128 };
129 };
130 };
131
132 &displaydfr_dart {
133 status = "okay";
134 };