Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ properties:
- items:
- const: apple,t6050-pinctrl
- const: apple,t8132-pinctrl
- description:
The T8152 application-processor GPIO bank uses uncached T8140
register access. Board-specific reservations describe inaccessible pins.
The separate AOP GPIO bank retains its T8103-compatible access.
items:
- const: apple,t8152-pinctrl
- const: apple,t8140-pinctrl
- items:
# Do not add additional SoC to this list.
- enum:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ properties:
- apple,t8142-fpwm
- apple,t8132-fpwm
- apple,t8140-fpwm
- apple,t8152-fpwm
- apple,t6000-fpwm
- apple,t6020-fpwm
- apple,t6030-fpwm
Expand Down
252 changes: 251 additions & 1 deletion arch/arm64/boot/dts/apple/t8152-j804.dts
Original file line number Diff line number Diff line change
@@ -1,12 +1,262 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* Apple MacBook Pro (14-inch, M6), J804.
*
* Booted from RAM by the loader, which fills usable memory, the release
* addresses of the CPUs it started (and removes the others) and the boot
* framebuffer. The console is the framebuffer: the DockChannel UART has no
* reader on this board, so it stays disabled. Resources follow the J804 ADT.
*/
/dts-v1/;

#include "t8152.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>

/ {
model = "Apple MacBook Pro (J804)";
compatible = "apple,j804", "apple,t8152", "apple,arm-platform";
model = "Apple MacBook Pro (14-inch, M6)";
chassis-type = "laptop";

/* Retain the RAM handoff and secondary CPU park contract. */
aurora,minimal-boot;

chosen {
#address-cells = <2>;
#size-cells = <2>;
ranges;

framebuffer0: framebuffer@0 {
compatible = "apple,simple-framebuffer", "simple-framebuffer";
reg = <0 0 0 0>; /* Filled by the loader. */
status = "disabled";
};
};

/* Keyboard backlight: ADT fpwm0 kbd-backlight, 25 kHz. */
led-controller {
compatible = "pwm-leds";

led-0 {
pwms = <&fpwm0 0 40000>;
label = "kbd_backlight";
function = LED_FUNCTION_KBD_BACKLIGHT;
color = <LED_COLOR_ID_WHITE>;
max-brightness = <255>;
default-state = "keep";
};
};
};

&smc_firmware {
status = "okay";
};

&cpu0 {
status = "okay";
};

&cpu1 {
status = "okay";
};

&cpu2 {
status = "okay";
};

&cpu3 {
status = "okay";
};

&cpu4 {
status = "okay";
};

&cpu5 {
status = "okay";
};

&cpu6 {
status = "okay";
};

&cpu7 {
status = "okay";
};

&cpu8 {
status = "okay";
};

&cpu9 {
status = "okay";
};

&cpu10 {
status = "okay";
};

&cpu11 {
status = "okay";
};

&aic {
status = "okay";
};

&{/timer} {
status = "okay";
};

&m6_e_cpufreq {
status = "okay";
};

&m6_pm_cpufreq {
status = "okay";
};

&smc_mbox {
status = "okay";
};

&smc {
status = "okay";

/*
* pcIO outputs. The trackpad's AFE reset is the ADT multi-touch
* function-afe-reset pKW8('pcIO', 0x10000, 0x1c0000): line 0.
*/
smc_pcio: gpio {
compatible = "apple,smc-pcio-gpio";
gpio-controller;
#gpio-cells = <2>;
apple,output-commands = /bits/ 64 <0x001c000000010000>;
};

smc_hwmon: hwmon {
compatible = "apple,smc-hwmon";
apple,discover-temperatures;

/* One fan; mode key in lower case on T8152. */
fan-F0Ac {
apple,key-id = "F0Ac";
apple,fan-minimum = "F0Mn";
apple,fan-maximum = "F0Mx";
apple,fan-target = "F0Tg";
apple,fan-mode = "F0md";
label = "Fan";
};

power-PSTR {
apple,key-id = "PSTR";
label = "Total System Power";
};

power-PDTR {
apple,key-id = "PDTR";
label = "AC Input Power";
};

power-PMVR {
apple,key-id = "PMVR";
label = "3.8 V Rail Power";
};

power-PHPC {
apple,key-id = "PHPC";
label = "Heatpipe Power";
};

voltage-VD0R {
apple,key-id = "VD0R";
label = "AC Input Voltage";
};

voltage-SBAV {
apple,key-id = "SBAV";
label = "Battery Voltage";
};

current-ID0R {
apple,key-id = "ID0R";
label = "AC Input Current";
};
};
};

&wdt {
status = "okay";
};

&pinctrl_ap {
/* ADT no-restore-gpio-pins */
gpio-reserved-ranges = <78 1>, <140 2>, <198 1>, <208 1>;
status = "okay";
};

/* The headphone jack codec. */
&i2c1 {
power-domains = <&ps_i2c1>;
resets = <&ps_i2c1>;
status = "okay";

/* Disabled until the sound card that uses it is described. */
jack_codec: codec@4b {
compatible = "cirrus,cs42l84";
reg = <0x4b>;
reset-gpios = <&pinctrl_ap 204 GPIO_ACTIVE_HIGH>;
interrupts-extended = <&pinctrl_ap 203 IRQ_TYPE_LEVEL_LOW>;
#sound-dai-cells = <0>;
status = "disabled";
};
};

/* The speaker amplifiers, described with the audio support. */
&i2c3 {
power-domains = <&ps_i2c3>;
resets = <&ps_i2c3>;
status = "okay";
};

&fpwm0 {
status = "okay";
};

/* The boot NOR (NVRAM) and the PMGR block, as on J873. */
#include "t8152-j873-qspi.dtsi"

&pmgr {
/* On at handoff; the I2C controllers below hang off it. */
ps_sio: power-controller@840 {
compatible = "apple,t8152-pmgr-pwrstate",
"apple,t8103-pmgr-pwrstate";
reg = <0x840 4>;
#power-domain-cells = <0>;
#reset-cells = <0>;
label = "sio";
apple,always-on;
};

ps_i2c1: power-controller@cc0 {
compatible = "apple,t8152-pmgr-pwrstate",
"apple,t8103-pmgr-pwrstate";
reg = <0xcc0 4>;
#power-domain-cells = <0>;
#reset-cells = <0>;
label = "i2c1";
power-domains = <&ps_sio>;
};

ps_i2c3: power-controller@d00 {
compatible = "apple,t8152-pmgr-pwrstate",
"apple,t8103-pmgr-pwrstate";
reg = <0xd00 4>;
#power-domain-cells = <0>;
#reset-cells = <0>;
label = "i2c3";
power-domains = <&ps_sio>;
};
};

/* Unexposed chassis port instances remain described and disabled. */
Loading
Loading