Debian Codegraph @

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

raw
1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
2 /*
3 * Apple MacBook Air (M2, 2022)
4 *
5 * target-type: J413
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,j413", "apple,t8112", "apple,arm-platform";
18 model = "Apple MacBook Air (13-inch, M2, 2022)";
19 chassis-type = "laptop";
20
21 aliases {
22 bluetooth0 = &bluetooth0;
23 wifi0 = &wifi0;
24 };
25
26 led-controller {
27 compatible = "pwm-leds";
28 led-0 {
29 pwms = <&fpwm1 0 40000>;
30 label = "kbd_backlight";
31 function = LED_FUNCTION_KBD_BACKLIGHT;
32 color = <LED_COLOR_ID_WHITE>;
33 max-brightness = <255>;
34 default-state = "keep";
35 };
36 };
37 };
38
39 /*
40 * Force the bus number assignments so that we can declare some of the
41 * on-board devices and properties that are populated by the bootloader
42 * (such as MAC addresses).
43 */
44 &port00 {
45 bus-range = <1 1>;
46 wifi0: wifi@0,0 {
47 compatible = "pci14e4,4433";
48 reg = <0x10000 0x0 0x0 0x0 0x0>;
49 /* To be filled by the loader */
50 local-mac-address = [00 10 18 00 00 10];
51 apple,antenna-sku = "XX";
52 brcm,board-type = "apple,hokkaido";
53 };
54
55 bluetooth0: bluetooth@0,1 {
56 compatible = "pci14e4,5f71";
57 reg = <0x10100 0x0 0x0 0x0 0x0>;
58 /* To be filled by the loader */
59 local-bd-address = [00 00 00 00 00 00];
60 brcm,board-type = "apple,hokkaido";
61 };
62 };
63
64 /*
65 * Provide labels for the USB type C ports.
66 */
67
68 &typec0 {
69 label = "USB-C Left-back";
70 };
71
72 &typec1 {
73 label = "USB-C Left-front";
74 };
75
76 &i2c0 {
77 /* MagSafe port */
78 hpm5: usb-pd@3a {
79 compatible = "apple,cd321x";
80 reg = <0x3a>;
81 interrupt-parent = <&pinctrl_ap>;
82 interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
83 interrupt-names = "irq";
84 };
85 };
86
87 &i2c4 {
88 status = "okay";
89 };
90
91 &fpwm1 {
92 status = "okay";
93 };