File Index
Files and directories
Sign in
FILE

t600x-j314-j316.dtsi

File preview with syntax highlighting.

linux-6.19.14/arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi DEVICETREE
  1// SPDX-License-Identifier: GPL-2.0+ OR MIT
  2/*
  3 * MacBook Pro (14/16-inch, 2021)
  4 *
  5 * This file contains the parts common to J314 and J316 devices with both t6000 and t6001.
  6 *
  7 * target-type: J314s / J314c / J316s / J316c
  8 *
  9 * Copyright The Asahi Linux Contributors
 10 */
 11
 12#include <dt-bindings/leds/common.h>
 13
 14/ {
 15	aliases {
 16		bluetooth0 = &bluetooth0;
 17		serial0 = &serial0;
 18		wifi0 = &wifi0;
 19	};
 20
 21	chosen {
 22		#address-cells = <2>;
 23		#size-cells = <2>;
 24		ranges;
 25
 26		stdout-path = "serial0";
 27
 28		framebuffer0: framebuffer@0 {
 29			compatible = "apple,simple-framebuffer", "simple-framebuffer";
 30			reg = <0 0 0 0>; /* To be filled by loader */
 31			/* Format properties will be added by loader */
 32			status = "disabled";
 33		};
 34	};
 35
 36	memory@10000000000 {
 37		device_type = "memory";
 38		reg = <0x100 0 0x2 0>; /* To be filled by loader */
 39	};
 40
 41	led-controller {
 42		compatible = "pwm-leds";
 43		led-0 {
 44			pwms = <&fpwm0 0 40000>;
 45			label = "kbd_backlight";
 46			function = LED_FUNCTION_KBD_BACKLIGHT;
 47			color = <LED_COLOR_ID_WHITE>;
 48			max-brightness = <255>;
 49			default-state = "keep";
 50		};
 51	};
 52};
 53
 54&serial0 {
 55	status = "okay";
 56};
 57
 58/* USB Type C */
 59&i2c0 {
 60	hpm0: usb-pd@38 {
 61		compatible = "apple,cd321x";
 62		reg = <0x38>;
 63		interrupt-parent = <&pinctrl_ap>;
 64		interrupts = <174 IRQ_TYPE_LEVEL_LOW>;
 65		interrupt-names = "irq";
 66	};
 67
 68	hpm1: usb-pd@3f {
 69		compatible = "apple,cd321x";
 70		reg = <0x3f>;
 71		interrupt-parent = <&pinctrl_ap>;
 72		interrupts = <174 IRQ_TYPE_LEVEL_LOW>;
 73		interrupt-names = "irq";
 74	};
 75
 76	hpm2: usb-pd@3b {
 77		compatible = "apple,cd321x";
 78		reg = <0x3b>;
 79		interrupt-parent = <&pinctrl_ap>;
 80		interrupts = <174 IRQ_TYPE_LEVEL_LOW>;
 81		interrupt-names = "irq";
 82	};
 83
 84	/* MagSafe port */
 85	hpm5: usb-pd@3a {
 86		compatible = "apple,cd321x";
 87		reg = <0x3a>;
 88		interrupt-parent = <&pinctrl_ap>;
 89		interrupts = <174 IRQ_TYPE_LEVEL_LOW>;
 90		interrupt-names = "irq";
 91	};
 92};
 93
 94&nco_clkref {
 95	clock-frequency = <1068000000>;
 96};
 97
 98/* PCIe devices */
 99&port00 {
100	/* WLAN */
101	bus-range = <1 1>;
102	wifi0: wifi@0,0 {
103		compatible = "pci14e4,4433";
104		reg = <0x10000 0x0 0x0 0x0 0x0>;
105		/* To be filled by the loader */
106		local-mac-address = [00 10 18 00 00 10];
107		apple,antenna-sku = "XX";
108	};
109
110	bluetooth0: bluetooth@0,1 {
111		compatible = "pci14e4,5f71";
112		reg = <0x10100 0x0 0x0 0x0 0x0>;
113		/* To be filled by the loader */
114		local-bd-address = [00 00 00 00 00 00];
115	};
116};
117
118&port01 {
119	/* SD card reader */
120	bus-range = <2 2>;
121	sdhci0: mmc@0,0 {
122		compatible = "pci17a0,9755";
123		reg = <0x20000 0x0 0x0 0x0 0x0>;
124		cd-inverted;
125		wp-inverted;
126	};
127};
128
129&fpwm0 {
130	status = "okay";
131};
132
133#include "spi1-nvram.dtsi"
~/ Read-only file preview.