Skip to content
Open
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
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ F: drivers/nvme/nvme_apple.c
F: drivers/pci/pcie_apple.c
F: drivers/phy/phy-apple-atc.c
F: drivers/pinctrl/pinctrl-apple.c
F: drivers/usb/host/xhci-pci-asmedia.c
F: drivers/watchdog/apple_wdt.c
F: include/configs/apple.h

Expand Down
20 changes: 19 additions & 1 deletion arch/arm/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,29 @@ dtb-$(CONFIG_TARGET_A3Y17LTE) += exynos78x0-axy17lte.dtb
dtb-$(CONFIG_TARGET_A7Y17LTE) += exynos78x0-axy17lte.dtb

dtb-$(CONFIG_ARCH_APPLE) += \
t6000-j314s.dtb \
t6000-j316s.dtb \
t6001-j314c.dtb \
t6001-j316c.dtb \
t6001-j375c.dtb \
t6002-j375d.dtb \
t6020-j414s.dtb \
t6020-j416s.dtb \
t6020-j474s.dtb \
t6021-j414c.dtb \
t6021-j416c.dtb \
t6021-j475c.dtb \
t6022-j180d.dtb \
t6022-j475d.dtb \
t8103-j274.dtb \
t8103-j293.dtb \
t8103-j313.dtb \
t8103-j456.dtb \
t8103-j457.dtb
t8103-j457.dtb \
t8112-j413.dtb \
t8112-j415.dtb \
t8112-j473.dtb \
t8112-j493.dtb

dtb-$(CONFIG_ARCH_DAVINCI) += \
da850-lcdk.dtb \
Expand Down
33 changes: 33 additions & 0 deletions arch/arm/dts/hwmon-common.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* hwmon sensors expected on all systems
*
* Copyright The Asahi Linux Contributors
*/

&smc_hwmon {
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";
};
temperature-TH0x {
apple,key-id = "TH0x";
label = "NAND Flash Temperature";
};
voltage-VD0R {
apple,key-id = "VD0R";
label = "AC Input Voltage";
};
current-ID0R {
apple,key-id = "ID0R";
label = "AC Input Current";
};
};
22 changes: 22 additions & 0 deletions arch/arm/dts/hwmon-fan-dual.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* Copyright The Asahi Linux Contributors
*
* Fan hwmon sensors for machines with 2 fan.
*/

#include "hwmon-fan.dtsi"

&smc_hwmon {
fan-F0Ac {
label = "Fan 1";
};
fan-F1Ac {
apple,key-id = "F1Ac";
label = "Fan 2";
apple,fan-minimum = "F1Mn";
apple,fan-maximum = "F1Mx";
apple,fan-target = "F1Tg";
apple,fan-mode = "F1Md";
};
};
17 changes: 17 additions & 0 deletions arch/arm/dts/hwmon-fan.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* Copyright The Asahi Linux Contributors
*
* Fan hwmon sensors for machines with a single fan.
*/

&smc_hwmon {
fan-F0Ac {
apple,key-id = "F0Ac";
label = "Fan";
apple,fan-minimum = "F0Mn";
apple,fan-maximum = "F0Mx";
apple,fan-target = "F0Tg";
apple,fan-mode = "F0Md";
};
};
33 changes: 33 additions & 0 deletions arch/arm/dts/hwmon-laptop.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* hwmon sensors expected on all laptops
*
* Copyright The Asahi Linux Contributors
*/

&smc_hwmon {
power-PHPC {
apple,key-id = "PHPC";
label = "Heatpipe Power";
};
temperature-TB0T {
apple,key-id = "TB0T";
label = "Battery Hotspot";
};
temperature-TCHP {
apple,key-id = "TCHP";
label = "Charge Regulator Temp";
};
temperature-TW0P {
apple,key-id = "TW0P";
label = "WiFi/BT Module Temp";
};
voltage-SBAV {
apple,key-id = "SBAV";
label = "Battery Voltage";
};
voltage-VD0R {
apple,key-id = "VD0R";
label = "Charger Input Voltage";
};
};
16 changes: 16 additions & 0 deletions arch/arm/dts/hwmon-mini.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* hwmon sensors common to the Mac mini desktop
* models, but not the Studio or Pro.
*
* Copyright The Asahi Linux Contributors
*/

#include "hwmon-fan.dtsi"

&smc_hwmon {
temperature-TW0P {
apple,key-id = "TW0P";
label = "WiFi/BT Module Temp";
};
};
47 changes: 47 additions & 0 deletions arch/arm/dts/isp-common.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* Common ISP configuration for Apple silicon platforms.
*
* Copyright The Asahi Linux Contributors
*/

/ {
aliases {
isp = &isp;
};

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

isp_heap: isp-heap {
compatible = "apple,asc-mem";
/* Filled in by bootloder */
reg = <0 0 0 0>;
no-map;
};
};
};

&isp {
memory-region = <&isp_heap>;
memory-region-names = "heap";
status = "okay";
};

&isp_dart0 {
status = "okay";
};

&isp_dart1 {
status = "okay";
};

&isp_dart2 {
status = "okay";
};

&ps_isp_sys {
status = "okay";
};
57 changes: 57 additions & 0 deletions arch/arm/dts/isp-imx248.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* ISP configuration for platforms with IMX248 sensor.
*
* Copyright The Asahi Linux Contributors
*/

#include "isp-common.dtsi"

&isp {
apple,temporal-filter = <0>;

sensor-presets {
/* 1280x720 */
preset0 {
apple,config-index = <0>;
apple,input-size = <1296 736>;
apple,output-size = <1280 720>;
apple,crop = <8 8 1280 720>;
};
/* 960x720 (4:3) */
preset1 {
apple,config-index = <0>;
apple,input-size = <1296 736>;
apple,output-size = <960 720>;
apple,crop = <168 8 960 720>;
};
/* 960x540 (16:9) */
preset2 {
apple,config-index = <0>;
apple,input-size = <1296 736>;
apple,output-size = <960 540>;
apple,crop = <8 8 1280 720>;
};
/* 640x480 (4:3) */
preset3 {
apple,config-index = <0>;
apple,input-size = <1296 736>;
apple,output-size = <640 480>;
apple,crop = <168 8 960 720>;
};
/* 640x360 (16:9) */
preset4 {
apple,config-index = <0>;
apple,input-size = <1296 736>;
apple,output-size = <640 360>;
apple,crop = <8 8 1280 720>;
};
/* 320x180 (16:9) */
preset5 {
apple,config-index = <0>;
apple,input-size = <1296 736>;
apple,output-size = <320 180>;
apple,crop = <8 8 1280 720>;
};
};
};
71 changes: 71 additions & 0 deletions arch/arm/dts/isp-imx364.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* ISP configuration for platforms with IMX364 sensor.
*
* Copyright The Asahi Linux Contributors
*/

#include "isp-common.dtsi"

&isp {
apple,temporal-filter = <0>;

sensor-presets {
/* 1920x1080 */
preset0 {
apple,config-index = <0>;
apple,input-size = <1920 1080>;
apple,output-size = <1920 1080>;
apple,crop = <0 0 1920 1080>;
};
/* 1440x720 (4:3) */
preset1 {
apple,config-index = <0>;
apple,input-size = <1920 1080>;
apple,output-size = <1440 1080>;
apple,crop = <240 0 1440 1080>;
};
/* 1280x720 (16:9) */
preset2 {
apple,config-index = <0>;
apple,input-size = <1920 1080>;
apple,output-size = <1280 720>;
apple,crop = <0 0 1920 1080>;
};
/* 960x720 (4:3) */
preset3{
apple,config-index = <0>;
apple,input-size = <1920 1080>;
apple,output-size = <960 720>;
apple,crop = <240 0 1440 1080>;
};
/* 960x540 (16:9) */
preset4 {
apple,config-index = <0>;
apple,input-size = <1920 1080>;
apple,output-size = <960 540>;
apple,crop = <0 0 1920 1080>;
};
/* 640x480 (4:3) */
preset5 {
apple,config-index = <0>;
apple,input-size = <1920 1080>;
apple,output-size = <640 480>;
apple,crop = <240 0 1440 1080>;
};
/* 640x360 (16:9) */
preset6 {
apple,config-index = <0>;
apple,input-size = <1920 1080>;
apple,output-size = <640 360>;
apple,crop = <0 0 1920 1080>;
};
/* 320x180 (16:9) */
preset7 {
apple,config-index = <0>;
apple,input-size = <1920 1080>;
apple,output-size = <320 180>;
apple,crop = <0 0 1920 1080>;
};
};
};
Loading