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
20	aliases {
21		bluetooth0 = &bluetooth0;
22		wifi0 = &wifi0;
23	};
24
25	led-controller {
26		compatible = "pwm-leds";
27		led-0 {
28			pwms = <&fpwm1 0 40000>;
29			label = "kbd_backlight";
30			function = LED_FUNCTION_KBD_BACKLIGHT;
31			color = <LED_COLOR_ID_WHITE>;
32			max-brightness = <255>;
33			default-state = "keep";
34		};
35	};
36};
37
38/*
39 * Force the bus number assignments so that we can declare some of the
40 * on-board devices and properties that are populated by the bootloader
41 * (such as MAC addresses).
42 */
43&port00 {
44	bus-range = <1 1>;
45	wifi0: wifi@0,0 {
46		compatible = "pci14e4,4433";
47		reg = <0x10000 0x0 0x0 0x0 0x0>;
48		/* To be filled by the loader */
49		local-mac-address = [00 10 18 00 00 10];
50		apple,antenna-sku = "XX";
51		brcm,board-type = "apple,hokkaido";
52	};
53
54	bluetooth0: bluetooth@0,1 {
55		compatible = "pci14e4,5f71";
56		reg = <0x10100 0x0 0x0 0x0 0x0>;
57		/* To be filled by the loader */
58		local-bd-address = [00 00 00 00 00 00];
59		brcm,board-type = "apple,hokkaido";
60	};
61};
62
63&i2c0 {
64	/* MagSafe port */
65	hpm5: usb-pd@3a {
66		compatible = "apple,cd321x";
67		reg = <0x3a>;
68		interrupt-parent = <&pinctrl_ap>;
69		interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
70		interrupt-names = "irq";
71	};
72};
73
74&i2c4 {
75	status = "okay";
76};
77
78&fpwm1 {
79	status = "okay";
80};
81