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