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