From 583dd2c55c5170be0ceebbc2635c14dfc1d920b0 Mon Sep 17 00:00:00 2001 From: Satya Benson Date: Mon, 9 Nov 2026 11:02:21 -0500 Subject: [PATCH 01/24] arm64: dts: apple: t6050: add disabled acio0/1/3 routers Describe die-0 ATC0, ATC1 and ATC3 in the shared T6050 files using acioN names and the integration ATC2 resource layout. ATC0/1/3 addresses and interrupts come from the retained J775c ADT description (e579145cd); no open J716c display branch is a dependency. Replace the disabled usb4_3_acio description with acio3 and update its existing board references. Keep tunables, DROMs, PD endpoints and activation in board files. Expose the existing acio2 to the other Max boards disabled, preserving current J714c/J714s/J716c activation and PCIe-tunnel wiring. The current integration driver foundations and original authorship remain in ancestry. Signed-off-by: Satya Benson Co-Authored-By: Claude Opus 5.5 (cherry picked from commit cd3e03d98f457741fc79e9f8ecd7ff62eeaad414) Signed-off-by: Diljit Singh --- arch/arm64/boot/dts/apple/t6050-acio.dtsi | 345 ++++++++++++++++++++++ arch/arm64/boot/dts/apple/t6050-die0.dtsi | 129 +------- arch/arm64/boot/dts/apple/t6050-j775d.dts | 8 +- arch/arm64/boot/dts/apple/t6050-max.dtsi | 18 +- 4 files changed, 365 insertions(+), 135 deletions(-) create mode 100644 arch/arm64/boot/dts/apple/t6050-acio.dtsi diff --git a/arch/arm64/boot/dts/apple/t6050-acio.dtsi b/arch/arm64/boot/dts/apple/t6050-acio.dtsi new file mode 100644 index 0000000000000..2df1454afa8e2 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-acio.dtsi @@ -0,0 +1,345 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Die-0 T6050 USB4 routers. Resources follow the shared ATC2 driver + * layout; ATC0/1/3 addresses and interrupts are from the J775c ADT. + * Boards supply tunables, DROMs, PD graphs and enable policy. + */ + +&pinctrl_aop { + acio0_lstx_pins: acio0-lstx-pins { + pinmux = <0x1004d>; + }; + acio1_lstx_pins: acio1-lstx-pins { + pinmux = <0x1004f>; + }; + acio3_lstx_pins: acio3-lstx-pins { + pinmux = <0x10053>; + }; +}; + +&die0 { + acio0_mbox: mailbox@2a1108000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x2 0xa1108000 0x0 0x4000>; + interrupts = , + , + , + ; + interrupt-names = "send-empty", "send-not-empty", + "recv-empty", "recv-not-empty"; + #mbox-cells = <0>; + status = "disabled"; + }; + + acio0: acio@2a1ac0000 { + compatible = "apple,t6050-usb4-acio"; + reg = <0x2 0xa1ac0000 0x0 0xc000>, + <0x2 0xa1080000 0x0 0x26000>, + <0x2 0xa1e44000 0x0 0x4000>, + <0x2 0xa1100000 0x0 0x4000>, + <0x2 0xa1c80000 0x0 0x4000>; + reg-names = "rc", "sram", "pcie-adapter", "cpu", "router-ap-fw"; + mboxes = <&acio0_mbox>; + resets = <&cio_reconfig0 0>; + power-domains = <&ps_atc0_cio>, <&ps_atc0_cio_pcie>, + <&ps_atc0_cio_usb>, <&ps_atc0_cio_auss>; + thunderbolt-switch; + status = "disabled"; + pinctrl-0 = <&acio0_lstx_pins>; + pinctrl-names = "lstx"; + lstx-gpios = <&pinctrl_aop 77 GPIO_ACTIVE_HIGH>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x2 0xa1000000 0x1000000>; + nonposted-mmio; + acio0_dart: iommu@a80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0xa80000 0xc000>; + interrupts = ; + power-domains = <&ps_atc0_cio>; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + apple,bypass-sids = <15>; + apple,full-error-reporting; + apple,ctc-flush; + }; + acio0_nhi: nhi@f00000 { + compatible = "apple,t6050-usb4-nhi"; + reg = <0xf00000 0x100000>; + reg-names = "nhi"; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + interrupt-names = "txring0", "txring1", "txring2", "txring3", + "txring4", "txring5", "txring6", "txring7", + "txring8", "txring9", "txring10", "txring11", + "rxring0", "rxring1", "rxring2", "rxring3", + "rxring4", "rxring5", "rxring6", "rxring7", + "rxring8", "rxring9", "rxring10", "rxring11", + "parity"; + iommus = <&acio0_dart 0>, + <&acio0_dart 1>, + <&acio0_dart 2>, + <&acio0_dart 3>, + <&acio0_dart 4>, + <&acio0_dart 5>, + <&acio0_dart 6>, + <&acio0_dart 7>, + <&acio0_dart 8>, + <&acio0_dart 9>, + <&acio0_dart 10>, + <&acio0_dart 11>, + <&acio0_dart 16>, + <&acio0_dart 17>, + <&acio0_dart 18>, + <&acio0_dart 19>, + <&acio0_dart 20>, + <&acio0_dart 21>, + <&acio0_dart 22>, + <&acio0_dart 23>, + <&acio0_dart 24>, + <&acio0_dart 25>, + <&acio0_dart 26>, + <&acio0_dart 27>; + }; + }; + + acio1_mbox: mailbox@2a9108000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x2 0xa9108000 0x0 0x4000>; + interrupts = , + , + , + ; + interrupt-names = "send-empty", "send-not-empty", + "recv-empty", "recv-not-empty"; + #mbox-cells = <0>; + status = "disabled"; + }; + + acio1: acio@2a9ac0000 { + compatible = "apple,t6050-usb4-acio"; + reg = <0x2 0xa9ac0000 0x0 0xc000>, + <0x2 0xa9080000 0x0 0x26000>, + <0x2 0xa9e44000 0x0 0x4000>, + <0x2 0xa9100000 0x0 0x4000>, + <0x2 0xa9c80000 0x0 0x4000>; + reg-names = "rc", "sram", "pcie-adapter", "cpu", "router-ap-fw"; + mboxes = <&acio1_mbox>; + resets = <&cio_reconfig0 1>; + power-domains = <&ps_atc1_cio>, <&ps_atc1_cio_pcie>, + <&ps_atc1_cio_usb>, <&ps_atc1_cio_auss>; + thunderbolt-switch; + status = "disabled"; + pinctrl-0 = <&acio1_lstx_pins>; + pinctrl-names = "lstx"; + lstx-gpios = <&pinctrl_aop 79 GPIO_ACTIVE_HIGH>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x2 0xa9000000 0x1000000>; + nonposted-mmio; + acio1_dart: iommu@a80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0xa80000 0xc000>; + interrupts = ; + power-domains = <&ps_atc1_cio>; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + apple,bypass-sids = <15>; + apple,full-error-reporting; + apple,ctc-flush; + }; + acio1_nhi: nhi@f00000 { + compatible = "apple,t6050-usb4-nhi"; + reg = <0xf00000 0x100000>; + reg-names = "nhi"; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + interrupt-names = "txring0", "txring1", "txring2", "txring3", + "txring4", "txring5", "txring6", "txring7", + "txring8", "txring9", "txring10", "txring11", + "rxring0", "rxring1", "rxring2", "rxring3", + "rxring4", "rxring5", "rxring6", "rxring7", + "rxring8", "rxring9", "rxring10", "rxring11", + "parity"; + iommus = <&acio1_dart 0>, + <&acio1_dart 1>, + <&acio1_dart 2>, + <&acio1_dart 3>, + <&acio1_dart 4>, + <&acio1_dart 5>, + <&acio1_dart 6>, + <&acio1_dart 7>, + <&acio1_dart 8>, + <&acio1_dart 9>, + <&acio1_dart 10>, + <&acio1_dart 11>, + <&acio1_dart 16>, + <&acio1_dart 17>, + <&acio1_dart 18>, + <&acio1_dart 19>, + <&acio1_dart 20>, + <&acio1_dart 21>, + <&acio1_dart 22>, + <&acio1_dart 23>, + <&acio1_dart 24>, + <&acio1_dart 25>, + <&acio1_dart 26>, + <&acio1_dart 27>; + }; + }; + + acio3_mbox: mailbox@389108000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x3 0x89108000 0x0 0x4000>; + interrupts = , + , + , + ; + interrupt-names = "send-empty", "send-not-empty", + "recv-empty", "recv-not-empty"; + #mbox-cells = <0>; + status = "disabled"; + }; + + acio3: acio@389ac0000 { + compatible = "apple,t6050-usb4-acio"; + reg = <0x3 0x89ac0000 0x0 0xc000>, + <0x3 0x89080000 0x0 0x26000>, + <0x3 0x89e44000 0x0 0x4000>, + <0x3 0x89100000 0x0 0x4000>, + <0x3 0x89c80000 0x0 0x4000>; + reg-names = "rc", "sram", "pcie-adapter", "cpu", "router-ap-fw"; + mboxes = <&acio3_mbox>; + resets = <&cio_reconfig0 3>; + power-domains = <&ps_atc3_cio>, <&ps_atc3_cio_pcie>, + <&ps_atc3_cio_usb>, <&ps_atc3_cio_auss>; + thunderbolt-switch; + status = "disabled"; + pinctrl-0 = <&acio3_lstx_pins>; + pinctrl-names = "lstx"; + lstx-gpios = <&pinctrl_aop 83 GPIO_ACTIVE_HIGH>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x3 0x89000000 0x1000000>; + nonposted-mmio; + acio3_dart: iommu@a80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0xa80000 0xc000>; + interrupts = ; + power-domains = <&ps_atc3_cio>; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + apple,bypass-sids = <15>; + apple,full-error-reporting; + apple,ctc-flush; + }; + acio3_nhi: nhi@f00000 { + compatible = "apple,t6050-usb4-nhi"; + reg = <0xf00000 0x100000>; + reg-names = "nhi"; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + interrupt-names = "txring0", "txring1", "txring2", "txring3", + "txring4", "txring5", "txring6", "txring7", + "txring8", "txring9", "txring10", "txring11", + "rxring0", "rxring1", "rxring2", "rxring3", + "rxring4", "rxring5", "rxring6", "rxring7", + "rxring8", "rxring9", "rxring10", "rxring11", + "parity"; + iommus = <&acio3_dart 0>, + <&acio3_dart 1>, + <&acio3_dart 2>, + <&acio3_dart 3>, + <&acio3_dart 4>, + <&acio3_dart 5>, + <&acio3_dart 6>, + <&acio3_dart 7>, + <&acio3_dart 8>, + <&acio3_dart 9>, + <&acio3_dart 10>, + <&acio3_dart 11>, + <&acio3_dart 16>, + <&acio3_dart 17>, + <&acio3_dart 18>, + <&acio3_dart 19>, + <&acio3_dart 20>, + <&acio3_dart 21>, + <&acio3_dart 22>, + <&acio3_dart 23>, + <&acio3_dart 24>, + <&acio3_dart 25>, + <&acio3_dart 26>, + <&acio3_dart 27>; + }; + }; + +}; diff --git a/arch/arm64/boot/dts/apple/t6050-die0.dtsi b/arch/arm64/boot/dts/apple/t6050-die0.dtsi index caa23251d0f92..739b7d9a4b1be 100644 --- a/arch/arm64/boot/dts/apple/t6050-die0.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-die0.dtsi @@ -431,133 +431,6 @@ * ATC3: its combo PHY, usb-drd3 and dart-usb3, as ATC1's (ADT /arm-io/atc-phy3, * acio-phy-cpu3, usb-drd3, dart-usb3), and its USB4/Thunderbolt router. */ - /* - * ATC3's USB4/Thunderbolt router (/arm-io/acio3: rid 3, compatible acio,v2): the router - * coprocessor's mailbox, /arm-io/acio-cpu3 reg[0]. Its ADT interrupts - * are [868, 867, 870, 869]: send-empty is index 1 and recv-not-empty index 2, as for the - * PHY mailboxes. Disabled until the router driver is in. - */ - usb4_3_mbox: mailbox@389108000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x3 0x89108000 0x0 0x4000>; - interrupts = , - , - , - ; - interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; - #mbox-cells = <0>; - status = "disabled"; - }; - - /* - * /arm-io/acio3 reg[1..3] (RC 0x389ac0000, HBW and LBW fabric: one 0xc000 window), - * the coprocessor's data SRAM (iop-acio3-nub segment __DATA at 0x389080000, firmware - * address 0x10000000, 0x26000) and its MxWrap wrapper (acio-cpu3 reg[1]); the 16 MiB - * window at 0x389000000 holds the children. Power: power-gates [122, 85, 120, 121] in - * the order the coprocessor's start powers them. The loader fills apple,tunable-rc - * (top, HBW and LBW tables) through the usb4-3-acio alias. - */ - usb4_3_acio: cio@389ac0000 { - compatible = "apple,t6050-usb4-acio"; - reg = <0x3 0x89ac0000 0x0 0xc000>, - <0x3 0x89080000 0x0 0x26000>, - <0x3 0x89100000 0x0 0x4000>; - reg-names = "rc", "sram", "cpu"; - mboxes = <&usb4_3_mbox>; - resets = <&cio_reconfig0 3>; - power-domains = <&ps_atc3_cio>, <&ps_atc3_cio_pcie>, <&ps_atc3_cio_usb>, - <&ps_atc3_cio_auss>; - thunderbolt-switch; - #address-cells = <1>; - #size-cells = <1>; - ranges = <0x0 0x3 0x89000000 0x1000000>; - nonposted-mmio; - status = "disabled"; - - /* - * /arm-io/dart-acio3 reg[0] (0x389a80000), interrupt 1702, sid-count 28, page-size - * 16384. The loader fills apple,tunable (dart-tunables-instance-0, 22 records). - */ - usb4_3_dart: iommu@a80000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0xa80000 0xc000>; - interrupt-parent = <&aic>; - interrupts = ; - #iommu-cells = <5>; - }; - - /* - * /arm-io/acio3 reg[0] (0x389f00000). Its ADT interrupts list RX rings 1687-1698, - * then TX 1675-1686 (ring indices number TX first), then 1704, which is not a - * ring. Streams: TX 0-11, RX 16-27 (dart-acio3 sid), each in the DART's vm-base - * 0x10000000000 + vm-size 0x30000000000. The loader fills apple,tunable-nhi - * (hi_up/hi_dn merge and fw_int_ctl_management tables) and the DROM through the - * usb4-3-nhi alias. - */ - usb4_3_nhi: nhi@f00000 { - compatible = "apple,t6050-usb4-nhi"; - reg = <0xf00000 0x100000>; - reg-names = "nhi"; - interrupt-parent = <&aic>; - interrupts = , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - ; - interrupt-names = "txring0", "txring1", "txring2", "txring3", - "txring4", "txring5", "txring6", "txring7", - "txring8", "txring9", "txring10", "txring11", - "rxring0", "rxring1", "rxring2", "rxring3", - "rxring4", "rxring5", "rxring6", "rxring7", - "rxring8", "rxring9", "rxring10", "rxring11"; - iommus = <&usb4_3_dart 0 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 1 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 2 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 3 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 4 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 5 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 6 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 7 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 8 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 9 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 10 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 11 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 16 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 17 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 18 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 19 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 20 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 21 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 22 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 23 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 24 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 25 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 26 0x100 0x0 0x300 0x0>, - <&usb4_3_dart 27 0x100 0x0 0x300 0x0>; - /* To be filled by the loader */ - apple,thunderbolt-drom = [00]; - }; - }; - /* /arm-io/acio-phy-cpu3 reg[0]: the PHY firmware's mailbox */ atc3_phy_mbox: mailbox@38b148000 { compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; @@ -1107,3 +980,5 @@ <0x43000000 0xb 0xc0000000 0xb 0xc0000000 0x0 0x20000000>; }; }; + +#include "t6050-acio.dtsi" diff --git a/arch/arm64/boot/dts/apple/t6050-j775d.dts b/arch/arm64/boot/dts/apple/t6050-j775d.dts index 68b4c324aca02..f92645d025f71 100644 --- a/arch/arm64/boot/dts/apple/t6050-j775d.dts +++ b/arch/arm64/boot/dts/apple/t6050-j775d.dts @@ -32,8 +32,8 @@ atcphy4 = &atc4_phy; atcphy5 = &atc1_phy_die1; /* Aura's ACIO tunable copy fills rear port 4's router (/arm-io/acio3) through these. */ - usb4-3-acio = &usb4_3_acio; - usb4-3-nhi = &usb4_3_nhi; + usb4-3-acio = &acio3; + usb4-3-nhi = &acio3_nhi; /* asahi-bless and the boot loader's dt_set_nvram find the partition by this alias */ nvram = &nvram; }; @@ -475,7 +475,7 @@ }; }; - /* The USB4 router (usb4_3_acio), the PD driver's thunderbolt-switch */ + /* The USB4 router (acio3), the PD driver's thunderbolt-switch */ port@2 { reg = <2>; hpm3_tbt: endpoint { @@ -624,7 +624,7 @@ }; }; -&usb4_3_acio { +&acio3 { ports { #address-cells = <1>; #size-cells = <0>; diff --git a/arch/arm64/boot/dts/apple/t6050-max.dtsi b/arch/arm64/boot/dts/apple/t6050-max.dtsi index 7952525ab1d3c..b53f72880272d 100644 --- a/arch/arm64/boot/dts/apple/t6050-max.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-max.dtsi @@ -199,7 +199,6 @@ #endif }; -#if defined(T6050_J714C) || defined(T6050_J714S) || defined(T6050_J716C) || defined(T6050_K114C) /* * ATC2's USB4/Thunderbolt router (ADT /arm-io/acio2, acio-cpu2 and dart-acio2), powered per * connection: the PHY enters CIO mode, then the router's domains come on (ATC2_CIO, _PCIE, _USB, @@ -267,6 +266,9 @@ interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; #mbox-cells = <0>; +#if !(defined(T6050_J714C) || defined(T6050_J714S) || defined(T6050_J716C) || defined(T6050_K114C)) + status = "disabled"; +#endif }; /* @@ -283,11 +285,12 @@ reg-names = "rc", "sram", "pcie-adapter", "cpu", "router-ap-fw"; mboxes = <&acio2_mbox>; resets = <&cio_reconfig0 2>; - /* ATC2_PCIE last: the PCIe tunnel root port, set up before it is populated */ power-domains = <&ps_atc2_cio>, <&ps_atc2_cio_pcie>, - <&ps_atc2_cio_usb>, <&ps_atc2_cio_auss>, <&ps_atc2_pcie>; + <&ps_atc2_cio_usb>, <&ps_atc2_cio_auss>; thunderbolt-switch; - apple,pcie-tunnel = <&acio2_pcie_tunnel>; +#if !(defined(T6050_J714C) || defined(T6050_J714S) || defined(T6050_J716C) || defined(T6050_K114C)) + status = "disabled"; +#endif pinctrl-0 = <&acio2_lstx_pins>; pinctrl-names = "lstx"; lstx-gpios = <&pinctrl_aop 81 GPIO_ACTIVE_HIGH>; @@ -378,6 +381,13 @@ }; }; +#if defined(T6050_J714C) || defined(T6050_J714S) || defined(T6050_J716C) || defined(T6050_K114C) +&acio2 { + power-domains = <&ps_atc2_cio>, <&ps_atc2_cio_pcie>, + <&ps_atc2_cio_usb>, <&ps_atc2_cio_auss>, <&ps_atc2_pcie>; + apple,pcie-tunnel = <&acio2_pcie_tunnel>; +}; + /* * ATC2's PCIe tunnel: /arm-io/apciec2 and dart-apciec2, the PCIe-C root port behind the router's * PCIe down adapter, and its DART. The router populates both once it has enabled a PCIe tunnel, From f3fe6ac18ffc9bfc15fec1461cb97194dd9f7ee2 Mon Sep 17 00:00:00 2001 From: Satya Benson Date: Wed, 11 Nov 2026 12:59:30 -0500 Subject: [PATCH 02/24] arm64: dts: apple: provide loader-filled DROM placeholders Keep the required NHI DROM property on disabled shared instances. Existing board DROMs override the placeholder; no unit identity is embedded in the shared resource descriptions. Signed-off-by: Satya Benson (cherry picked from commit c88cd761e105aec4b029c2fcaf8f79b48c9413f0) Signed-off-by: Diljit Singh --- arch/arm64/boot/dts/apple/t6050-acio.dtsi | 6 ++++++ arch/arm64/boot/dts/apple/t6050-max.dtsi | 2 ++ 2 files changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t6050-acio.dtsi b/arch/arm64/boot/dts/apple/t6050-acio.dtsi index 2df1454afa8e2..0c3689c93ac6c 100644 --- a/arch/arm64/boot/dts/apple/t6050-acio.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-acio.dtsi @@ -67,6 +67,8 @@ compatible = "apple,t6050-usb4-nhi"; reg = <0xf00000 0x100000>; reg-names = "nhi"; + /* Replaced by the boot loader with this host's DROM. */ + apple,thunderbolt-drom = [00]; interrupts = , , , @@ -175,6 +177,8 @@ compatible = "apple,t6050-usb4-nhi"; reg = <0xf00000 0x100000>; reg-names = "nhi"; + /* Replaced by the boot loader with this host's DROM. */ + apple,thunderbolt-drom = [00]; interrupts = , , , @@ -283,6 +287,8 @@ compatible = "apple,t6050-usb4-nhi"; reg = <0xf00000 0x100000>; reg-names = "nhi"; + /* Replaced by the boot loader with this host's DROM. */ + apple,thunderbolt-drom = [00]; interrupts = , , , diff --git a/arch/arm64/boot/dts/apple/t6050-max.dtsi b/arch/arm64/boot/dts/apple/t6050-max.dtsi index b53f72880272d..25f1ab4565964 100644 --- a/arch/arm64/boot/dts/apple/t6050-max.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-max.dtsi @@ -323,6 +323,8 @@ compatible = "apple,t6050-usb4-nhi"; reg = <0xf00000 0x100000>; reg-names = "nhi"; + /* The board or boot loader supplies the host DROM. */ + apple,thunderbolt-drom = [00]; interrupts = , , , From 039181f83b8ef67d2f88585d27346d4a590cc5f7 Mon Sep 17 00:00:00 2001 From: Satya Benson Date: Wed, 11 Nov 2026 16:11:40 -0500 Subject: [PATCH 03/24] PCI: apple: keep Clock PM off on adopted T6050 links Restore the adopted-host Clock PM policy from candidate44. Integration boots J775c with this change alone; restoring bus- number preservation alone does not return as a trial, and restoring the NVMe driver alone does not return. The host leaves CLKREQ# pads and reference-clock gating in firmware state. Removing L0s/L1 capability bits does not mask PCIE_LINK_STATE_CLKPM. Disable it before endpoint enable and walk the enumerated bus to retain the policy. Adapted from Satya Benson candidate44 PCIe adoption changes. Tested on J775c with Aura b6e6faf4 and candidate44 DTB; other boards untested. Signed-off-by: Satya Benson Assisted-by: LLM (cherry picked from commit ccdd14ad5493ee3eb16c4b29c512b7728820b59e) Signed-off-by: Diljit Singh --- drivers/pci/controller/pcie-apple.c | 45 ++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/drivers/pci/controller/pcie-apple.c b/drivers/pci/controller/pcie-apple.c index 8e20a36cc575e..293ef7cc7d555 100644 --- a/drivers/pci/controller/pcie-apple.c +++ b/drivers/pci/controller/pcie-apple.c @@ -3655,6 +3655,38 @@ static int apple_pcie_radio_check_cold(struct apple_pcie_port *port) return ret; } +/* + * Adopted T6050 links have no kernel CLKREQ# pad or reference-clock gating + * setup. Disabling L0s/L1 capabilities alone does not disable Clock PM. + * Keep Clock PM off before enabling endpoints and after host enumeration; + * the policy mask also prevents a later ASPM policy change re-enabling it. + */ +static void apple_pcie_adopted_no_clkpm(struct pci_dev *pdev, bool locked) +{ + u32 lnkcap; + int ret; + + if (pci_is_root_bus(pdev->bus) || !pci_is_pcie(pdev)) + return; + if (pcie_capability_read_dword(pdev, PCI_EXP_LNKCAP, &lnkcap) || + !(lnkcap & PCI_EXP_LNKCAP_CLKPM)) + return; + ret = locked ? pci_disable_link_state_locked(pdev, PCIE_LINK_STATE_CLKPM) : + pci_disable_link_state(pdev, PCIE_LINK_STATE_CLKPM); + if (ret == -EINVAL) /* no ASPM link state: nothing turns Clock PM on */ + return; + if (ret) + pci_warn(pdev, "cannot turn Clock PM off: %d\n", ret); + else if (locked) + pci_info(pdev, "Clock PM off: the host does not handle CLKREQ#\n"); +} + +static int apple_pcie_adopted_no_clkpm_walk(struct pci_dev *pdev, void *data) +{ + apple_pcie_adopted_no_clkpm(pdev, true); + return 0; +} + static int apple_pcie_enable_device(struct pci_host_bridge *bridge, struct pci_dev *pdev) { struct apple_pcie *pcie = pci_host_bridge_priv(bridge); @@ -3705,6 +3737,7 @@ static int apple_pcie_enable_device(struct pci_host_bridge *bridge, struct pci_d if (pcie->hw->adopt_link) { if (READ_ONCE(port->link_failed)) return -ENODEV; + apple_pcie_adopted_no_clkpm(pdev, false); mutex_lock(&pcie->lock); err = apple_pcie_adopted_route(port, rid); mutex_unlock(&pcie->lock); @@ -5668,6 +5701,16 @@ int apple_pcie_t6050_port_recycle(struct pci_dev *bridge) } EXPORT_SYMBOL_GPL(apple_pcie_t6050_port_recycle); +static int apple_pcie_host_init(struct platform_device *pdev, struct pci_host_bridge *bridge) +{ + struct apple_pcie *pcie = pci_host_bridge_priv(bridge); + int ret = pci_host_common_init(pdev, bridge, &apple_pcie_cfg_ecam_ops); + + if (!ret && pcie->hw->adopt_link) + pci_walk_bus(bridge->bus, apple_pcie_adopted_no_clkpm_walk, NULL); + return ret; +} + static int apple_pcie_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -5835,7 +5878,7 @@ static int apple_pcie_probe(struct platform_device *pdev) if (hw->adopt_link) bridge->reset_root_port = apple_pcie_t6050_reset_root_port; - ret = pci_host_common_init(pdev, bridge, &apple_pcie_cfg_ecam_ops); + ret = apple_pcie_host_init(pdev, bridge); if (ret) { apple_pcie_cleanup(pcie); if (pcie->piodma_supplier) { From 8de55213135705f02707d46854dfd045e0454edd Mon Sep 17 00:00:00 2001 From: Satya Benson Date: Thu, 12 Nov 2026 19:10:28 -0500 Subject: [PATCH 04/24] arm64: dts: apple: rebase the J775c compatibility board layout Rebase Satya Benson's boot-tested M5 Max Mac Studio board series from linux PR1619 onto current integration. Consolidate its incremental board fixups and historical merge cleanups while retaining the original author, copyright notices and compatibility contract. Keep the one-die CPU/cache topology, board PCIe/N1/NVRAM/fan and USB/PD wiring, installed-loader GPU paths/fallback, disabled MTP DART, three ANE suppliers and omission of the desktop internal-panel DCP. Retain the original disabled inventory and ANE trial wrapper without claiming new hardware qualification. Resolve the ANE binding against the current T8142/T8132 constraints: retain the explicit T6050 backend/full-inventory distinction and known 0x210/0x220 platform types. Preserve K114c's active ATC2 guards in the shared router definitions. Do not weaken the modern GPU binding; the legacy-loader GPU warning gate remains visible. The original PR1619 and its branch remain open and unchanged. Source head: 0075a007a50701db8cb2ac8aab5f6910377ed414. Shared-router and Clock PM dependencies are separate preceding commits. Based on the J775D board by Jeff Queisser and the single-die J716c work by Erik Bourget; their foundations remain in integration ancestry. Signed-off-by: Satya Benson Assisted-by: LLM Signed-off-by: Diljit Singh --- .../devicetree/apple-j775c-compatibility.rst | 46 + .../bindings/media/apple,t8140-ave.yaml | 2 +- .../devicetree/bindings/npu/apple,ane.yaml | 58 +- .../bindings/sound/apple,macaudio.yaml | 1 + .../bindings/sound/apple,t6030-dpaudio.yaml | 13 +- arch/arm64/boot/dts/apple/t6050-j775c-ane.dts | 34 + .../boot/dts/apple/t6050-j775c-base.dtsi | 306 ++ .../t6050-j775c-incremental-additions.dtsi | 1046 ++++++ .../apple/t6050-j775c-incremental-audio.dtsi | 69 + .../t6050-j775c-incremental-display.dtsi | 464 +++ .../apple/t6050-j775c-incremental-gpuopp.dtsi | 277 ++ .../apple/t6050-j775c-incremental-pcie.dtsi | 41 + .../apple/t6050-j775c-incremental-pmgr.dtsi | 1148 ++++++ .../apple/t6050-j775c-incremental-pmgr4.dtsi | 269 ++ ...050-j775c-incremental-remaining-nogpu.dtsi | 2354 ++++++++++++ .../dts/apple/t6050-j775c-incremental-sd.dtsi | 11 + .../apple/t6050-j775c-incremental-spmi.dtsi | 47 + .../t6050-j775c-incremental-usbpolicy.dtsi | 185 + .../boot/dts/apple/t6050-j775c-legacy.dtsi | 3190 +++++++++++++++++ .../dts/apple/t6050-j775c-loader-gpu.dtsi | 98 + .../t6050-j775c-rebased-peripherals.dtsi | 302 ++ .../dts/apple/t6050-j775c-usb4-capture.dtsi | 24 + .../boot/dts/apple/t6050-j775c-usb4.dtsi | 424 +++ arch/arm64/boot/dts/apple/t6050-j775c.dts | 1167 +++++- 24 files changed, 11563 insertions(+), 13 deletions(-) create mode 100644 Documentation/devicetree/apple-j775c-compatibility.rst create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-ane.dts create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-base.dtsi create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-additions.dtsi create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-audio.dtsi create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-display.dtsi create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-gpuopp.dtsi create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-pcie.dtsi create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-pmgr.dtsi create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-pmgr4.dtsi create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-remaining-nogpu.dtsi create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-sd.dtsi create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-spmi.dtsi create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-usbpolicy.dtsi create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-legacy.dtsi create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-loader-gpu.dtsi create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-rebased-peripherals.dtsi create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-usb4-capture.dtsi create mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-usb4.dtsi diff --git a/Documentation/devicetree/apple-j775c-compatibility.rst b/Documentation/devicetree/apple-j775c-compatibility.rst new file mode 100644 index 0000000000000..7300d8160a370 --- /dev/null +++ b/Documentation/devicetree/apple-j775c-compatibility.rst @@ -0,0 +1,46 @@ +.. SPDX-License-Identifier: GPL-2.0-only + +J775c loader compatibility and DT validation +========================================== + +The J775c (Mac Studio M5 Max) description retains the GPU layout required +by the installed Aura b6e6faf4 loader: the GPU path below +``/soc@2300000000``, the ``apple,agx-t6050`` fallback compatible, and the +ASC/SGX resource pair. Migrating to the modern GPU layout requires a +separately qualified loader update. Do not remove this contract merely +to satisfy schema validation. + +At PR #1619 head 32149e08e8b191a500b40435eb0820cc78ec22fe, the +``t6050-j775c-ane.dtb`` booted with SHA256 +``dc88aa139f329bb568e48ba7ba80417e7d2c01ec6be49514a95ca24285dfd8d9``. +The hardware receipt, including the combined kernel revision and test +limits, is recorded at: + +https://github.com/aurora-silicon/linux/pull/1619#issuecomment-6816611851 + +This is a boot and health result, not qualification of GPU rendering, +audio playback, SD media, suspend, hotplug or other boards. + +At that revision the DT gate reports ten new lines, five per J775c DTB: +unmatched compatible, compatible oneOf failure, excessive reg length, +excessive reg-names length, and reg-names[0] expecting sgx. The modern +G17 binding describes one SGX bank; the retained loader contract uses +ASC and SGX. The edited bindings themselves validate, and ADT coverage +does not regress. These warnings remain visible. + +After merging integration 050f6a517, its compatible-pair recognition +removes the two unmatched-schema diagnostics. Eight new warning lines +remain, four per J775c DTB, with identical DTB bytes. The compatible list +and ASC/SGX shape still conflict with the modern binding constraints. + +``scripts/dtc/apple-dt-check.sh`` compares normalized warning sets for +all Apple DTBs at base and head. It has no warning allowlist or board +exception mechanism. ADT coverage waivers describe coverage only and +cannot waive schema diagnostics. A PR job compares its synthetic merge +against that merge's first parent, not against the PR's old base or +its merge-base. + +The remaining DT gate item is the GPU loader contract migration: qualify +a loader supporting modern GPU paths, compatibles and resources, then +update the DT and recheck GPU handoff and HDMI on hardware. Until then, +preserve the compatibility DT and keep the PR draft while CI fails. diff --git a/Documentation/devicetree/bindings/media/apple,t8140-ave.yaml b/Documentation/devicetree/bindings/media/apple,t8140-ave.yaml index 8ac82ae404cdf..c69d6236b33eb 100644 --- a/Documentation/devicetree/bindings/media/apple,t8140-ave.yaml +++ b/Documentation/devicetree/bindings/media/apple,t8140-ave.yaml @@ -138,6 +138,7 @@ allOf: - apple,t6022-ave - apple,t6030-ave - apple,t6031-ave + - apple,t6050-ave - apple,t8103-ave - apple,t8122-ave - const: apple,ave @@ -234,7 +235,6 @@ allOf: contains: enum: - apple,t6041-ave - - apple,t6050-ave - apple,t8140-ave - apple,t8142-ave then: diff --git a/Documentation/devicetree/bindings/npu/apple,ane.yaml b/Documentation/devicetree/bindings/npu/apple,ane.yaml index 999599f852d8a..2365f164fa529 100644 --- a/Documentation/devicetree/bindings/npu/apple,ane.yaml +++ b/Documentation/devicetree/bindings/npu/apple,ane.yaml @@ -65,6 +65,14 @@ properties: minItems: 1 maxItems: 7 + apple,clpc: + $ref: /schemas/types.yaml#/definitions/phandle + description: Host controller holding the DRAM and fabric floor for ANE work. + + performance-domains: + maxItems: 1 + description: CPU performance domain sharing the ANE voltage supply. + apple,performance-controller: $ref: /schemas/types.yaml#/definitions/phandle description: @@ -175,7 +183,7 @@ properties: apple,ane-type: $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0x100, 0x110, 0x200] + enum: [0x100, 0x110, 0x200, 0x210, 0x220] description: Firmware generation identifier supplied by the bootloader apple,firmware-preloaded: @@ -246,7 +254,6 @@ allOf: properties: compatible: enum: - - apple,t6050-ane - apple,t8140-ane - apple,t8142-ane then: @@ -265,6 +272,53 @@ allOf: - const: pwgate required: - apple,dapf-ranges + - if: + properties: + compatible: + const: apple,t6050-ane + then: + properties: + interrupts: + minItems: 2 + power-domains: + maxItems: 1 + apple,ane-type: + const: 0x220 + oneOf: + - properties: + reg: + minItems: 3 + maxItems: 4 + reg-names: + minItems: 3 + items: + - const: engine + - const: pmgr + - const: pwgate + - const: xl + required: + - apple,dapf-ranges + - description: Complete ADT inventory, not a firmware backend interface. + properties: + reg: + minItems: 7 + reg-names: + items: + - const: engine + - const: pmgr + - const: aux-0 + - const: aux-1 + - const: aux-2 + - const: aux-3 + - const: aux-4 + status: + const: disabled + required: + - status + else: + properties: + apple,clpc: false + performance-domains: false - if: required: - apple,preload-data-sha256 diff --git a/Documentation/devicetree/bindings/sound/apple,macaudio.yaml b/Documentation/devicetree/bindings/sound/apple,macaudio.yaml index 37956f0a3a343..c9880a39e9b29 100644 --- a/Documentation/devicetree/bindings/sound/apple,macaudio.yaml +++ b/Documentation/devicetree/bindings/sound/apple,macaudio.yaml @@ -34,6 +34,7 @@ properties: - apple,j473-macaudio - apple,j493-macaudio - apple,j575c-macaudio + - apple,j775c-macaudio - apple,j775d-macaudio - apple,j575c-macaudio-jack - apple,j604-macaudio diff --git a/Documentation/devicetree/bindings/sound/apple,t6030-dpaudio.yaml b/Documentation/devicetree/bindings/sound/apple,t6030-dpaudio.yaml index 78dcee199f937..8fe63cf0a3b56 100644 --- a/Documentation/devicetree/bindings/sound/apple,t6030-dpaudio.yaml +++ b/Documentation/devicetree/bindings/sound/apple,t6030-dpaudio.yaml @@ -63,7 +63,18 @@ required: - compatible - dmas - dma-names - - power-domains - ports +allOf: + - if: + properties: + compatible: + contains: + const: apple,t6050-dpaudio + then: + description: The DCP service owns the power lifecycle on T6050. + else: + required: + - power-domains + additionalProperties: false diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-ane.dts b/arch/arm64/boot/dts/apple/t6050-j775c-ane.dts new file mode 100644 index 0000000000000..95663b200a895 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-ane.dts @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple Mac Studio (M5 Max, 2026) with the Neural Engine enabled, for a + * trial boot: J775c plus ANE_SYS, the three ANE DART instances and the + * ANE. The DARTs probe at boot (powering ANE_SYS); the ANE engine itself + * is only touched from firmware_stage, after the loader hand-off. + */ + +#include "t6050-j775c.dts" + +&ps_ane_sys { + status = "okay"; +}; + +&ane_dart0 { + status = "okay"; +}; + +&ane_dart1 { + status = "okay"; +}; + +&ane_dart2 { + status = "okay"; +}; + +&ane { + status = "okay"; +}; + +/* Retain ANE_SYS suppliers when explicitly enabling these DARTs. */ +&ane_dart0 { power-domains = <&ps_ane_sys>; }; +&ane_dart1 { power-domains = <&ps_ane_sys>; }; +&ane_dart2 { power-domains = <&ps_ane_sys>; }; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-base.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-base.dtsi new file mode 100644 index 0000000000000..171ca5c2d8c35 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-base.dtsi @@ -0,0 +1,306 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Nodes common to every Apple T6050 (M5 Max, M5 Ultra) SoC + * + * A T6050 is one or two identical dies: t6050-max.dtsi describes the + * one-die part and t6050-ultra.dtsi the two-die one. Each includes this + * file, t6050-die0.dtsi (the blocks used on die 0 only) and, once per die, + * the per-die template t6050-dieX.dtsi. Die 0's MMIO window is + * 0x2_00000000 and die 1's 0x42_00000000 (die stride 0x40_00000000); each + * die has its own simple-bus, which the boot loader looks up by unit + * address. Unit addresses are CPU physical addresses. The boot loader + * starts the secondary CPUs and fills in their release addresses, the + * memory node and its own reservations. + * + * A smaller (binned) one-die part can build on t6050-max.dtsi, as + * t6034.dtsi does on t6031.dtsi: the boot loader removes the CPU nodes of + * the cores a part lacks. + * + * Copyright The Asahi Linux Contributors + */ + +/* + * The per-die template's addressing: before each inclusion of + * t6050-dieX.dtsi, the including file defines + * DIE the label suffix (empty for die 0, _die1 for die 1), + * DIE_NO the die number (the AIC's die cell), + * DIE_UNIT_PREFIX the die's MMIO offset as a unit-address prefix + * (empty for die 0, 4 for die 1), + * DIE_ATC1 the port name of the die's ATC1 (die d's ATCn is port 4d + n), + * SOC_NODE the die's bus. + * DIE_UNIT() and DIE_HI() then give a die-0 address on that die. + */ +#define DIE_UNIT(addr) __concat(DIE_UNIT_PREFIX, addr) +#define DIE_HI(hi) ((hi) + 0x40 * DIE_NO) +#define DIE_ATC1_LABEL(suffix) __stringify(__concat(DIE_ATC1, suffix)) + +/* + * CPU nodes. Die d, cluster c, core n has MPIDR Aff2 4 for the two M-tier + * (apple,sawtooth) clusters and 1 for the P-tier (apple,everest) cluster, + * Aff1 0x10 * d + c and Aff0 n; the unit address is the MPIDR. Labels + * number the cores 18 * d + 6 * c + n. The boot loader removes the nodes of + * the cores it did not start. + */ +#define T6050_CPU(label, mpidr, type, opp, cluster, cpu_cap) \ + label: cpu@mpidr { \ + compatible = type; \ + device_type = "cpu"; \ + reg = <0x0 0x ## mpidr>; \ + enable-method = "spin-table"; \ + operating-points-v2 = <&opp>; \ + performance-domains = <&cluster>; \ + capacity-dmips-mhz = ; \ + cpu-release-addr = <0 0>; /* to be filled by the loader */ \ + } + +/* + * capacity-dmips-mhz from pinned single-thread throughput with every cluster at 4284 MHz (in + * both OPP tables), normalised by each core's measured clock (J714sAP): per MHz an M core runs + * zstd -3 compression at 0.736, decompression at 0.871 and a Python dict loop at 0.728 of a P + * core, geometric mean 0.776, so M 794 and P 1024. Small L1-resident loops run at 0.92-1.01. + */ +#define T6050_M_CPU(label, mpidr, cluster) \ + T6050_CPU(label, mpidr, "apple,sawtooth", mcluster_opp, cluster, 794) +#define T6050_P_CPU(label, mpidr, cluster) \ + T6050_CPU(label, mpidr, "apple,everest", pcluster_opp, cluster, 1024) + +/ { + compatible = "apple,t6050", "apple,arm-platform"; + #address-cells = <2>; + #size-cells = <2>; + interrupt-parent = <&aic>; + + /* The boot loader replaces reg with the usable RAM. */ + memory@10000000000 { + device_type = "memory"; + reg = <0x100 0x0 0x0 0x0>; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + /* The boot loader adds its own reservations. */ + }; + + /* The size's file lists its CPUs (T6050_M_CPU, T6050_P_CPU). */ + cpus { + #address-cells = <2>; + #size-cells = <0>; + }; + + /* + * CPU OPPs, from the ADT: /arm-io/pmgr acc-clusters maps clusters 0, 1 and 2 of each die to + * voltage-states 22, 23 and 5, and their -sram tables give the frequencies (kHz). 22 and 23 + * list the same frequencies, so the two M clusters share one table. Levels are DVFS command + * states: state 1 is 300 MHz and state k the table's (k-1)-th entry from state 2, as on T8142 + * (measured on J775D: every state's clock from a dependent-add chain). iBoot leaves M cluster + * 0 of each die in state 6 (2652 MHz), the other clusters in state 2. + * + * Bring-up: the clusters' controllers (t6050-dieX.dtsi) assert apple,firmware-managed-thermal, + * which the T6050 profile requires, before that ownership is qualified on this boot chain (no + * Linux PMP driver runs; the SMC drives the fans). A qualification settles it: an all-core + * load at the top states, watching TCMb, the fans and the measured clock. + */ + mcluster_opp: opp-table-mcluster { + compatible = "operating-points-v2"; + opp-shared; + + opp01 { + opp-hz = /bits/ 64 <300000000>; + opp-level = <1>; + }; + opp02 { + opp-hz = /bits/ 64 <1344000000>; + opp-level = <2>; + }; + opp03 { + opp-hz = /bits/ 64 <1644000000>; + opp-level = <3>; + }; + opp04 { + opp-hz = /bits/ 64 <1992000000>; + opp-level = <4>; + }; + opp05 { + opp-hz = /bits/ 64 <2304000000>; + opp-level = <5>; + }; + opp06 { + opp-hz = /bits/ 64 <2652000000>; + opp-level = <6>; + }; + opp07 { + opp-hz = /bits/ 64 <2964000000>; + opp-level = <7>; + }; + opp08 { + opp-hz = /bits/ 64 <3240000000>; + opp-level = <8>; + }; + opp09 { + opp-hz = /bits/ 64 <3504000000>; + opp-level = <9>; + }; + opp10 { + opp-hz = /bits/ 64 <3696000000>; + opp-level = <10>; + }; + opp11 { + opp-hz = /bits/ 64 <3876000000>; + opp-level = <11>; + }; + opp12 { + opp-hz = /bits/ 64 <4044000000>; + opp-level = <12>; + }; + opp13 { + opp-hz = /bits/ 64 <4176000000>; + opp-level = <13>; + }; + opp14 { + opp-hz = /bits/ 64 <4284000000>; + opp-level = <14>; + }; + opp15 { + opp-hz = /bits/ 64 <4308000000>; + opp-level = <15>; + }; + opp16 { + opp-hz = /bits/ 64 <4380000000>; + opp-level = <16>; + }; + }; + + pcluster_opp: opp-table-pcluster { + compatible = "operating-points-v2"; + opp-shared; + + opp01 { + opp-hz = /bits/ 64 <300000000>; + opp-level = <1>; + }; + opp02 { + opp-hz = /bits/ 64 <1308000000>; + opp-level = <2>; + }; + opp03 { + opp-hz = /bits/ 64 <1620000000>; + opp-level = <3>; + }; + opp04 { + opp-hz = /bits/ 64 <1980000000>; + opp-level = <4>; + }; + opp05 { + opp-hz = /bits/ 64 <2292000000>; + opp-level = <5>; + }; + opp06 { + opp-hz = /bits/ 64 <2580000000>; + opp-level = <6>; + }; + opp07 { + opp-hz = /bits/ 64 <2880000000>; + opp-level = <7>; + }; + opp08 { + opp-hz = /bits/ 64 <3180000000>; + opp-level = <8>; + }; + opp09 { + opp-hz = /bits/ 64 <3432000000>; + opp-level = <9>; + }; + opp10 { + opp-hz = /bits/ 64 <3648000000>; + opp-level = <10>; + }; + opp11 { + opp-hz = /bits/ 64 <3828000000>; + opp-level = <11>; + }; + opp12 { + opp-hz = /bits/ 64 <3984000000>; + opp-level = <12>; + }; + opp13 { + opp-hz = /bits/ 64 <4104000000>; + opp-level = <13>; + }; + opp14 { + opp-hz = /bits/ 64 <4188000000>; + opp-level = <14>; + }; + opp15 { + opp-hz = /bits/ 64 <4236000000>; + opp-level = <15>; + }; + opp16 { + opp-hz = /bits/ 64 <4284000000>; + opp-level = <16>; + }; + opp17 { + opp-hz = /bits/ 64 <4308000000>; + opp-level = <17>; + }; + opp18 { + opp-hz = /bits/ 64 <4332000000>; + opp-level = <18>; + }; + opp19 { + opp-hz = /bits/ 64 <4428000000>; + opp-level = <19>; + }; + opp20 { + opp-hz = /bits/ 64 <4512000000>; + opp-level = <20>; + }; + opp21 { + opp-hz = /bits/ 64 <4608000000>; + opp-level = <21>; + }; + }; + + /* The 24 MHz reference clock of the watchdog */ + clkref: clock-ref { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "clkref"; + }; + + /* The QSPI controller's input: ADT /arm-io/qspi clock-ids 440, /arm-io clock-frequencies[440 - 256] */ + clk_405m: clock-405m { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <405000000>; + clock-output-names = "clk_405m"; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupt-parent = <&aic>; + interrupt-names = "phys", "virt", "hyp-phys", "hyp-virt"; + interrupts = , + , + , + ; + }; + + cpu_pmu: pmu { + compatible = "apple,t6050-pmu"; + interrupt-parent = <&aic>; + /* The AIC raises both core types' PMU FIQs as this one. */ + interrupts = ; + }; + + /* Die 0 MMIO */ + die0: soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + nonposted-mmio; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-additions.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-additions.dtsi new file mode 100644 index 0000000000000..c3ddeb9740f1a --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-additions.dtsi @@ -0,0 +1,1046 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* Property migration from Satya Benson's 86b1f365 J775c stack. + * Retained board sources remain the baseline; this group is independently booted. + * Copyright The Asahi Linux Contributors + */ +&{/soc} { + pwm@505040000 { + compatible = "apple,t6050-fpwm", "apple,s5l-fpwm"; + reg = <0x5 0x5040000 0x0 0x4000>; + clocks = <&{/clock-ref}>; + power-domains = <&{/soc/power-management@280900000/power-controller@2a8}>; + #pwm-cells = <0x2>; + status = "disabled"; + }; +}; + +&{/soc} { + pwm@505044000 { + compatible = "apple,t6050-fpwm", "apple,s5l-fpwm"; + reg = <0x5 0x5044000 0x0 0x4000>; + clocks = <&{/clock-ref}>; + power-domains = <&{/soc/power-management@280900000/power-controller@2b0}>; + #pwm-cells = <0x2>; + status = "disabled"; + }; +}; + +&{/soc} { + pwm@505048000 { + compatible = "apple,t6050-fpwm", "apple,s5l-fpwm"; + reg = <0x5 0x5048000 0x0 0x4000>; + clocks = <&{/clock-ref}>; + power-domains = <&{/soc/power-management@280900000/power-controller@2b8}>; + #pwm-cells = <0x2>; + status = "disabled"; + }; +}; + +&{/soc/acio@2a1ac0000} { + ports { + #address-cells = <0x1>; + #size-cells = <0x0>; + }; +}; + +&{/soc/acio@2a1ac0000/ports} { + port@1 { + reg = <0x1>; + }; +}; + +&{/soc/acio@2a1ac0000/ports/port@1} { + endpoint { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@3/endpoint}>; + }; +}; + +&{/soc/acio@2a9ac0000} { + ports { + #address-cells = <0x1>; + #size-cells = <0x0>; + }; +}; + +&{/soc/acio@2a9ac0000/ports} { + port@1 { + reg = <0x1>; + }; +}; + +&{/soc/acio@2a9ac0000/ports/port@1} { + endpoint { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@3/endpoint}>; + }; +}; + +&{/soc/acio@389ac0000} { + ports { + #address-cells = <0x1>; + #size-cells = <0x0>; + }; +}; + +&{/soc/acio@389ac0000/ports} { + port@1 { + reg = <0x1>; + }; +}; + +&{/soc/acio@389ac0000/ports/port@1} { + endpoint { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@3/endpoint}>; + }; +}; + +&{/soc} { + mailbox@294608000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x2 0x94608000 0x0 0x4000>; + interrupts = <0x0 0x0 0x2a4 0x4 0x0 0x0 0x2a5 0x4 0x0 0x0 0x2a6 0x4 0x0 0x0 0x2a7 0x4>; + interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; + #mbox-cells = <0x0>; + }; +}; + +&{/soc} { + iommu@294800000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x2 0x94800000 0x0 0xc000>; + interrupts = <0x0 0x0 0x293 0x4>; + #iommu-cells = <0x1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + }; +}; + +&{/soc} { + mtp@294600000 { + compatible = "apple,t6050-mtp", "apple,t6050-rtk-helper-asc4", "apple,mtp", "apple,rtk-helper-asc4"; + reg = <0x2 0x94600000 0x0 0x4000 0x2 0x94c00000 0x0 0xc4000>; + reg-names = "asc", "sram"; + mboxes = <&{/soc/mailbox@294608000}>; + iommus = <&{/soc/iommu@294800000} 0x0>; + #helper-cells = <0x0>; + }; +}; + +&{/soc} { + fifo@294b14000 { + compatible = "apple,t6050-dockchannel", "apple,dockchannel"; + reg = <0x2 0x94b14000 0x0 0x1000>; + reg-names = "irq"; + interrupts = <0x0 0x0 0x294 0x4>; + ranges = <0x0 0x2 0x94b28000 0x10000>; + nonposted-mmio; + #address-cells = <0x1>; + #size-cells = <0x1>; + interrupt-controller; + #interrupt-cells = <0x2>; + }; +}; + +&{/soc/acio@381ac0000} { + ports { + #address-cells = <0x1>; + #size-cells = <0x0>; + }; +}; + +&{/soc/acio@381ac0000/ports} { + port@1 { + reg = <0x1>; + }; +}; + +&{/soc/acio@381ac0000/ports/port@1} { + endpoint { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@3/endpoint}>; + }; +}; + +&{/soc} { + sep@502600000 { + compatible = "apple,t6050-sep", "apple,sep"; + reg = <0x5 0x2600000 0x0 0x88000 0x5 0x2050000 0x0 0x4000>; + mboxes = <&{/soc/mailbox@502608000}>; + mbox-names = "mbox"; + iommus = <&{/soc/iommu@500b80000} 0x0>; + power-domains = <&{/soc/power-management@280900000/power-controller@298}>; + clocks = <&{/soc/clock-controller@280600000} 0x1bf>; + status = "disabled"; + }; +}; + +&{/soc} { + mailbox@502608000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x5 0x2608000 0x0 0x4000>; + interrupts = <0x0 0x0 0x215 0x4 0x0 0x0 0x216 0x4 0x0 0x0 0x217 0x4 0x0 0x0 0x218 0x4>; + interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; + #mbox-cells = <0x0>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@500b80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x5 0xb80000 0x0 0x20000>; + interrupts = <0x0 0x0 0x21f 0x4>; + #iommu-cells = <0x1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + apple,dma-offset = <0x0 0x0>; + status = "disabled"; + }; +}; + +&{/soc} { + clock-controller@280600000 { + compatible = "apple,t6050-pmgr-clocks", "apple,pmgr-clocks"; + reg = <0x2 0x80600000 0x0 0x1fc000 0x2 0x80900000 0x0 0x58000 0x2 0x80000000 0x0 0x80000 0x2 0x80210000 0x0 0x8000 0x2 0x80200000 0x0 0x4000 0x2 0x806f0000 0x0 0x4000 0x2 0x84000000 0x0 0x8000 0x2 0x84240000 0x0 0x40000 0x2 0x86000000 0x0 0x1000000 0x2 0x88300000 0x0 0x84000 0x2 0x88200000 0x0 0x80000 0x2 0x88f00000 0x0 0x18000 0x2 0x88000000 0x0 0x24000 0x2 0x88e00000 0x0 0xa8000 0x2 0x88360000 0x0 0x4000 0x5 0x9878000 0x0 0x4000 0x2 0x10e20000 0x0 0x12e8 0x2 0x10e40000 0x0 0xc020 0x2 0x10e50000 0x0 0x9048 0x2 0x10e70000 0x0 0xffe8 0x2 0x10050000 0x0 0x9018 0x2 0x10150000 0x0 0x9018 0x2 0x10250000 0x0 0x9018 0x2 0x10350000 0x0 0x9018 0x2 0x10450000 0x0 0x9018 0x2 0x10550000 0x0 0x9018 0x2 0x11e20000 0x0 0x12e8 0x2 0x11e40000 0x0 0xc020 0x2 0x11e50000 0x0 0x9048 0x2 0x11e70000 0x0 0xffe8 0x2 0x11050000 0x0 0x9018 0x2 0x11150000 0x0 0x9018 0x2 0x11250000 0x0 0x9018 0x2 0x11350000 0x0 0x9018 0x2 0x11450000 0x0 0x9018 0x2 0x11550000 0x0 0x9018 0x2 0x12e20000 0x0 0x12e8 0x2 0x12e40000 0x0 0xc020 0x2 0x12e50000 0x0 0x9048 0x2 0x12e70000 0x0 0xffe8 0x2 0x12050000 0x0 0x9018 0x2 0x12150000 0x0 0x9018 0x2 0x12250000 0x0 0x9018 0x2 0x12350000 0x0 0x9018 0x2 0x12450000 0x0 0x9018 0x2 0x12550000 0x0 0x9018 0x23 0x80600000 0x0 0x1e8000 0x23 0x80000000 0x0 0x80000 0x23 0x84000000 0x0 0x8000 0x23 0x88300000 0x0 0x84000 0x23 0x88200000 0x0 0x80000 0x23 0xe80000 0x0 0x30000 0x23 0xec0000 0x0 0x8000 0x23 0xed0000 0x0 0x8000 0x23 0xee0000 0x0 0x8000 0x23 0xef0000 0x0 0x8000 0x23 0xf00000 0x0 0x8000 0x23 0xe30000 0x0 0x8000 0x23 0xe70000 0x0 0x8000 0x23 0x88000000 0x0 0x8000>; + #clock-cells = <0x1>; + apple,pmgr = <&{/soc/power-management@280600000}>; + status = "disabled"; + }; +}; + +&{/soc} { + spmi@28a054000 { + compatible = "apple,t6050-spmi", "apple,t8142-spmi"; + reg = <0x2 0x8a054000 0x0 0x4000 0x2 0x8a044000 0x0 0x4000 0x2 0x8a040000 0x0 0x4000>; + interrupts = <0x0 0x0 0x2db 0x4>; + #address-cells = <0x2>; + #size-cells = <0x0>; + status = "disabled"; + }; +}; + +&{/soc} { + spmi@28a114000 { + compatible = "apple,t6050-spmi", "apple,t8142-spmi"; + reg = <0x2 0x8a114000 0x0 0x4000 0x2 0x8a104000 0x0 0x4000 0x2 0x8a100000 0x0 0x4000>; + interrupts = <0x0 0x0 0x2ea 0x4>; + #address-cells = <0x2>; + #size-cells = <0x0>; + status = "disabled"; + }; +}; + +&{/soc} { + i2c@505024000 { + compatible = "apple,t6050-i2c", "apple,t8103-i2c"; + reg = <0x5 0x5024000 0x0 0x4000>; + interrupts = <0x0 0x0 0x564 0x4>; + power-domains = <&{/soc/power-management@280900000/power-controller@2e8}>; + clocks = <&{/soc/clock-controller@280600000} 0x4>; + #address-cells = <0x1>; + #size-cells = <0x0>; + status = "disabled"; + }; +}; + +&{/soc} { + i2c@505010000 { + compatible = "apple,t6050-i2c", "apple,t8103-i2c"; + reg = <0x5 0x5010000 0x0 0x4000>; + interrupts = <0x0 0x0 0x55f 0x4>; + power-domains = <&{/soc/power-management@280900000/power-controller@2c0}>; + clocks = <&{/soc/clock-controller@280600000} 0x4>; + #address-cells = <0x1>; + #size-cells = <0x0>; + status = "disabled"; + }; +}; + +&{/soc} { + i2c@505020000 { + compatible = "apple,t6050-i2c", "apple,t8103-i2c"; + reg = <0x5 0x5020000 0x0 0x4000>; + interrupts = <0x0 0x0 0x563 0x4>; + power-domains = <&{/soc/power-management@280900000/power-controller@2e0}>; + clocks = <&{/soc/clock-controller@280600000} 0x4>; + #address-cells = <0x1>; + #size-cells = <0x0>; + status = "disabled"; + }; +}; + +&{/soc} { + i2c@505028000 { + compatible = "apple,t6050-i2c", "apple,t8103-i2c"; + reg = <0x5 0x5028000 0x0 0x4000>; + interrupts = <0x0 0x0 0x565 0x4>; + power-domains = <&{/soc/power-management@280900000/power-controller@2f0}>; + clocks = <&{/soc/clock-controller@280600000} 0x4>; + #address-cells = <0x1>; + #size-cells = <0x0>; + status = "disabled"; + }; +}; + +&{/soc} { + i2c@505030000 { + compatible = "apple,t6050-i2c", "apple,t8103-i2c"; + reg = <0x5 0x5030000 0x0 0x4000>; + interrupts = <0x0 0x0 0x567 0x4>; + power-domains = <&{/soc/power-management@280900000/power-controller@300}>; + clocks = <&{/soc/clock-controller@280600000} 0x4>; + #address-cells = <0x1>; + #size-cells = <0x0>; + status = "disabled"; + }; +}; + +&{/soc} { + dma-controller@410030000 { + compatible = "apple,t6050-pcie-piodma", "apple,pcie-piodma"; + reg = <0x4 0x10030000 0x0 0x4000 0x4 0x10034000 0x0 0x4000 0x4 0x10038000 0x0 0x4000>; + interrupts = <0x0 0x0 0x5f5 0x4>; + iommus = <&{/soc/iommu@410000000} 0x11>; + status = "disabled"; + }; +}; + +&{/soc} { + dma-controller@411030000 { + compatible = "apple,t6050-pcie-piodma", "apple,pcie-piodma"; + reg = <0x4 0x11030000 0x0 0x4000 0x4 0x11034000 0x0 0x4000 0x4 0x11038000 0x0 0x4000>; + interrupts = <0x0 0x0 0x5fd 0x4>; + iommus = <&{/soc/iommu@411000000} 0x11>; + status = "disabled"; + }; +}; + +&{/soc} { + dma-controller@2a4068000 { + compatible = "apple,t6050-pciec-piodma", "apple,pciec-piodma"; + reg = <0x2 0xa4068000 0x0 0x4000 0x2 0xa406c000 0x0 0x4000 0x2 0xa4070000 0x0 0x4000 0x2 0xa403c000 0x0 0x4000>; + interrupts = <0x0 0x0 0x57f 0x4>; + iommus = <&{/soc/iommu@2a4000000} 0xfe>; + status = "disabled"; + }; +}; + +&{/soc} { + dma-controller@2ac068000 { + compatible = "apple,t6050-pciec-piodma", "apple,pciec-piodma"; + reg = <0x2 0xac068000 0x0 0x4000 0x2 0xac06c000 0x0 0x4000 0x2 0xac070000 0x0 0x4000 0x2 0xac03c000 0x0 0x4000>; + interrupts = <0x0 0x0 0x59f 0x4>; + iommus = <&{/soc/iommu@2ac000000} 0xfe>; + status = "disabled"; + }; +}; + +&{/soc} { + dma-controller@384068000 { + compatible = "apple,t6050-pciec-piodma", "apple,pciec-piodma"; + reg = <0x3 0x84068000 0x0 0x4000 0x3 0x8406c000 0x0 0x4000 0x3 0x84070000 0x0 0x4000 0x3 0x8403c000 0x0 0x4000>; + interrupts = <0x0 0x0 0x5bf 0x4>; + iommus = <&{/soc/iommu@384000000} 0xfe>; + status = "disabled"; + }; +}; + +&{/soc} { + dpin@2a1e50000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x2 0xa1e50000 0x0 0x4000>; + interrupts = <0x0 0x0 0x643 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dpin@2a1e58000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x2 0xa1e58000 0x0 0x4000>; + interrupts = <0x0 0x0 0x644 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dpin@2a1e68000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x2 0xa1e68000 0x0 0x4000>; + interrupts = <0x0 0x0 0x649 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dpin@2a1e70000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x2 0xa1e70000 0x0 0x4000>; + interrupts = <0x0 0x0 0x64a 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dpin@2a9e50000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x2 0xa9e50000 0x0 0x4000>; + interrupts = <0x0 0x0 0x663 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dpin@2a9e58000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x2 0xa9e58000 0x0 0x4000>; + interrupts = <0x0 0x0 0x664 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dpin@2a9e68000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x2 0xa9e68000 0x0 0x4000>; + interrupts = <0x0 0x0 0x669 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dpin@2a9e70000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x2 0xa9e70000 0x0 0x4000>; + interrupts = <0x0 0x0 0x66a 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dpin@381e50000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x3 0x81e50000 0x0 0x4000>; + interrupts = <0x0 0x0 0x683 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dpin@381e58000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x3 0x81e58000 0x0 0x4000>; + interrupts = <0x0 0x0 0x684 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dpin@381e68000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x3 0x81e68000 0x0 0x4000>; + interrupts = <0x0 0x0 0x689 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dpin@381e70000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x3 0x81e70000 0x0 0x4000>; + interrupts = <0x0 0x0 0x68a 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + aic-timebase@280580000 { + compatible = "apple,t6050-aic-timebase", "apple,aic-timebase"; + reg = <0x2 0x80580000 0x0 0x1000>; + status = "disabled"; + }; +}; + +&{/soc} { + error-handler@2220000000 { + compatible = "apple,t6050-error-handler", "apple,soc-error-handler"; + reg = <0x22 0x20000000 0x0 0x240000 0x22 0x20270000 0x0 0x1d0000 0x22 0x20600000 0x0 0x40000 0x22 0x20670000 0x0 0x1d0000 0x22 0x22000000 0x0 0x240000 0x22 0x22270000 0x0 0x1d0000 0x22 0x22600000 0x0 0x40000 0x22 0x22670000 0x0 0x1d0000 0x2 0x80000000 0x0 0x80000 0x2 0x80650000 0x0 0x4000 0x2 0x806e0000 0x0 0xc000 0x2 0x80210000 0x0 0x4000 0x2 0x88374000 0x0 0x4000 0x2 0x86000000 0x0 0x1000000 0x2 0x84250000 0x0 0x4000 0x22 0x63000000 0x0 0x38000 0x22 0x64000000 0x0 0x38000 0x22 0x65000000 0x0 0x38000 0x2 0x63000000 0x0 0x44000 0x2 0x64000000 0x0 0x30000 0x2 0x65000000 0x0 0x3c000 0x2 0x66000000 0x0 0x34000 0x2 0x67000000 0x0 0x38000 0x2 0x68000000 0x0 0x38000 0x2 0x69000000 0x0 0x30000 0x22 0x5a100000 0x0 0x24000 0x22 0x5b100000 0x0 0x24000 0x22 0x5c100000 0x0 0x24000 0x22 0x5d100000 0x0 0x24000 0x2 0x4f000000 0x0 0x30000 0x2 0x50000000 0x0 0x30000 0x2 0x51000000 0x0 0x30000 0x2 0x52000000 0x0 0x24000 0x2 0x62000000 0x0 0x1c000 0x22 0x62000000 0x0 0x1c000 0x22 0x5a000000 0x0 0x2c000 0x22 0x5b000000 0x0 0x2c000 0x22 0x5c000000 0x0 0x2c000 0x22 0x5d000000 0x0 0x2c000 0x22 0x5a200000 0x0 0x1c000 0x22 0x5a300000 0x0 0x1c000 0x22 0x5b200000 0x0 0x1c000 0x22 0x5b300000 0x0 0x1c000 0x2 0x6a000000 0x0 0x1c000 0x2 0x6b000000 0x0 0x1c000 0x2 0x6c000000 0x0 0x1c000 0x2 0x6d000000 0x0 0x1c000 0x22 0x66000000 0x0 0x1c000 0x22 0x67000000 0x0 0x1c000 0x22 0x68000000 0x0 0x1c000 0x22 0x69000000 0x0 0x1c000 0x22 0x75000000 0x0 0x10000 0x22 0x75010000 0x0 0x10000 0x22 0x75020000 0x0 0x10000 0x22 0x75030000 0x0 0x10000 0x22 0x75400000 0x0 0x10000 0x22 0x75410000 0x0 0x10000 0x22 0x75420000 0x0 0x10000 0x22 0x75430000 0x0 0x10000 0x22 0x75800000 0x0 0x10000 0x22 0x75810000 0x0 0x10000 0x22 0x75820000 0x0 0x10000 0x22 0x75830000 0x0 0x10000 0x22 0x75c00000 0x0 0x10000 0x22 0x75c10000 0x0 0x10000 0x22 0x75c20000 0x0 0x10000 0x22 0x75c30000 0x0 0x10000 0x22 0x76000000 0x0 0x10000 0x22 0x76010000 0x0 0x10000 0x22 0x76020000 0x0 0x10000 0x22 0x76030000 0x0 0x10000 0x22 0x76400000 0x0 0x10000 0x22 0x76410000 0x0 0x10000 0x22 0x76420000 0x0 0x10000 0x22 0x76430000 0x0 0x10000 0x22 0x76800000 0x0 0x10000 0x22 0x76810000 0x0 0x10000 0x22 0x76820000 0x0 0x10000 0x22 0x76830000 0x0 0x10000 0x22 0x76c00000 0x0 0x10000 0x22 0x76c10000 0x0 0x10000 0x22 0x76c20000 0x0 0x10000 0x22 0x76c30000 0x0 0x10000 0x22 0x77000000 0x0 0x10000 0x22 0x77010000 0x0 0x10000 0x22 0x77020000 0x0 0x10000 0x22 0x77030000 0x0 0x10000 0x22 0x77040000 0x0 0x10000 0x22 0x77050000 0x0 0x10000 0x22 0x77400000 0x0 0x10000 0x22 0x77410000 0x0 0x10000 0x22 0x77420000 0x0 0x10000 0x22 0x77430000 0x0 0x10000 0x22 0x77440000 0x0 0x10000 0x22 0x77450000 0x0 0x10000 0x22 0x77800000 0x0 0x10000 0x22 0x77810000 0x0 0x10000 0x22 0x77820000 0x0 0x10000 0x22 0x77830000 0x0 0x10000 0x22 0x77840000 0x0 0x10000 0x22 0x77850000 0x0 0x10000 0x22 0x77c00000 0x0 0x10000 0x22 0x77c10000 0x0 0x10000 0x22 0x77c20000 0x0 0x10000 0x22 0x77c30000 0x0 0x10000 0x22 0x77c40000 0x0 0x10000 0x22 0x77c50000 0x0 0x10000 0x2 0x73000000 0x0 0x10000 0x2 0x73010000 0x0 0x10000 0x2 0x73020000 0x0 0x10000 0x2 0x73030000 0x0 0x10000 0x2 0x73040000 0x0 0x10000 0x2 0x73050000 0x0 0x10000 0x2 0x73060000 0x0 0x10000 0x2 0x73400000 0x0 0x10000 0x2 0x73410000 0x0 0x10000 0x2 0x73420000 0x0 0x10000 0x2 0x73430000 0x0 0x10000 0x2 0x73440000 0x0 0x10000 0x2 0x73450000 0x0 0x10000 0x2 0x73460000 0x0 0x10000 0x2 0x73800000 0x0 0x10000 0x2 0x73810000 0x0 0x10000 0x2 0x73820000 0x0 0x10000 0x2 0x73830000 0x0 0x10000 0x2 0x73840000 0x0 0x10000 0x2 0x73850000 0x0 0x10000 0x2 0x73860000 0x0 0x10000 0x2 0x73c00000 0x0 0x10000 0x2 0x73c10000 0x0 0x10000 0x2 0x73c20000 0x0 0x10000 0x2 0x73c30000 0x0 0x10000 0x2 0x73c40000 0x0 0x10000 0x2 0x73c50000 0x0 0x10000 0x2 0x73c60000 0x0 0x10000 0x22 0x75100000 0x0 0x10000 0x22 0x75110000 0x0 0x10000 0x22 0x75120000 0x0 0x10000 0x22 0x75130000 0x0 0x10000 0x22 0x75500000 0x0 0x10000 0x22 0x75510000 0x0 0x10000 0x22 0x75520000 0x0 0x10000 0x22 0x75530000 0x0 0x10000 0x22 0x75900000 0x0 0x10000 0x22 0x75910000 0x0 0x10000 0x22 0x75920000 0x0 0x10000 0x22 0x75930000 0x0 0x10000 0x22 0x75d00000 0x0 0x10000 0x22 0x75d10000 0x0 0x10000 0x22 0x75d20000 0x0 0x10000 0x22 0x75d30000 0x0 0x10000 0x22 0x76100000 0x0 0x10000 0x22 0x76110000 0x0 0x10000 0x22 0x76120000 0x0 0x10000 0x22 0x76130000 0x0 0x10000 0x22 0x76500000 0x0 0x10000 0x22 0x76510000 0x0 0x10000 0x22 0x76520000 0x0 0x10000 0x22 0x76530000 0x0 0x10000 0x22 0x76900000 0x0 0x10000 0x22 0x76910000 0x0 0x10000 0x22 0x76920000 0x0 0x10000 0x22 0x76930000 0x0 0x10000 0x22 0x76d00000 0x0 0x10000 0x22 0x76d10000 0x0 0x10000 0x22 0x76d20000 0x0 0x10000 0x22 0x76d30000 0x0 0x10000 0x2 0x58000000 0x0 0x10000 0x2 0x58010000 0x0 0x10000 0x2 0x58020000 0x0 0x10000 0x2 0x58030000 0x0 0x10000 0x2 0x58040000 0x0 0x10000 0x2 0x58400000 0x0 0x10000 0x2 0x58410000 0x0 0x10000 0x2 0x58420000 0x0 0x10000 0x2 0x58430000 0x0 0x10000 0x2 0x58440000 0x0 0x10000 0x2 0x58800000 0x0 0x10000 0x2 0x58810000 0x0 0x10000 0x2 0x58820000 0x0 0x10000 0x2 0x58830000 0x0 0x10000 0x2 0x58840000 0x0 0x10000 0x2 0x58850000 0x0 0x10000 0x5 0xd00000 0x0 0x40000 0x2 0x80078000 0x0 0x4000 0x2 0x806e4000 0x0 0x4000 0x2 0x806e8000 0x0 0x4000 0x2 0x74004000 0x0 0x4000 0x22 0x7b004000 0x0 0x4000 0x2 0x88000400 0x0 0x400 0x23 0x88000400 0x0 0x400 0x2 0x8c801000 0x0 0x400 0x2 0x84398000 0x0 0x4000 0x2 0x8620c020 0x0 0x18 0x2 0x8620c008 0x0 0x18 0x5 0x8000200 0x0 0x24 0x5 0x84000200 0x0 0x24 0x4 0x1b000200 0x0 0x24 0x2 0xa0000200 0x0 0x24 0x2 0xa8000200 0x0 0x24 0x3 0x80000200 0x0 0x24 0x3 0x88000200 0x0 0x24 0x3 0x94000200 0x0 0x24 0x23 0x8000200 0x0 0x24 0x23 0x1000200 0x0 0x24 0x5 0x80000200 0x0 0x24 0x22 0x80000200 0x0 0x24 0x4 0x16000200 0x0 0x24 0x4 0x86000200 0x0 0x40 0x23 0xa000200 0x0 0x24 0x2 0x97000200 0x0 0x24 0x23 0x8c000200 0x0 0x24 0x4 0x8c000200 0x0 0x24 0x5 0x4000200 0x0 0x24>; + interrupts = <0x0 0x0 0xa95 0x4 0x0 0x0 0xa96 0x4 0x0 0x0 0xa97 0x4 0x0 0x0 0xa98 0x4 0x0 0x0 0xa99 0x4 0x0 0x0 0xa9a 0x4 0x0 0x0 0xa9b 0x4 0x0 0x0 0xa9c 0x4 0x0 0x0 0x189 0x4 0x0 0x0 0xc3 0x4 0x0 0x0 0xc4 0x4 0x0 0x0 0xc5 0x4 0x0 0x0 0xc6 0x4 0x0 0x0 0xc7 0x4 0x0 0x0 0xc8 0x4 0x0 0x0 0xc9 0x4 0x0 0x0 0xca 0x4 0x0 0x0 0xcb 0x4 0x0 0x0 0xcc 0x4 0x0 0x0 0xa0c 0x4 0x0 0x0 0xa0d 0x4 0x0 0x0 0xa0e 0x4 0x0 0x0 0xa0f 0x4 0x0 0x0 0x99 0x4 0x0 0x0 0x9a 0x4 0x0 0x0 0x9b 0x4 0x0 0x0 0x9c 0x4 0x0 0x0 0x9d 0x4 0x0 0x0 0x9e 0x4 0x0 0x0 0xa14 0x4 0x0 0x0 0xa15 0x4 0x0 0x0 0xa16 0x4 0x0 0x0 0xa17 0x4 0x0 0x0 0xa1c 0x4 0x0 0x0 0xa1d 0x4 0x0 0x0 0xa1e 0x4 0x0 0x0 0xa1f 0x4 0x0 0x0 0xbd 0x4 0x0 0x0 0xbe 0x4 0x0 0x0 0xbf 0x4 0x0 0x0 0xc0 0x4 0x0 0x0 0xa2c 0x4 0x0 0x0 0xa2d 0x4 0x0 0x0 0xa2e 0x4 0x0 0x0 0xa2f 0x4 0x0 0x0 0xa3e 0x4 0x0 0x0 0xa3f 0x4 0x0 0x0 0xa40 0x4 0x0 0x0 0xa41 0x4 0x0 0x0 0xa42 0x4 0x0 0x0 0xa43 0x4 0x0 0x0 0xa44 0x4 0x0 0x0 0xa45 0x4 0x0 0x0 0xa46 0x4 0x0 0x0 0xa47 0x4 0x0 0x0 0xa48 0x4 0x0 0x0 0xa49 0x4 0x0 0x0 0xa4a 0x4 0x0 0x0 0xa4b 0x4 0x0 0x0 0xa4c 0x4 0x0 0x0 0xa4d 0x4 0x0 0x0 0xa36 0x4 0x0 0x0 0xa37 0x4 0x0 0x0 0xa38 0x4 0x0 0x0 0xa39 0x4 0x0 0x0 0xa3a 0x4 0x0 0x0 0xa3b 0x4 0x0 0x0 0xa3c 0x4 0x0 0x0 0xa3d 0x4 0x0 0x0 0x9f 0x4 0x0 0x0 0xa0 0x4 0x0 0x0 0xa1 0x4 0x0 0x0 0x21e 0x4 0x0 0x0 0x21d 0x4 0x0 0x0 0x222 0x4 0x0 0x0 0x223 0x4 0x0 0x0 0x224 0x4 0x0 0x0 0x225 0x4 0x0 0x0 0x144 0x4 0x0 0x0 0xc1 0x4 0x0 0x0 0xc2 0x4 0x0 0x0 0x30d 0x4 0x0 0x0 0x30e 0x4 0x0 0x0 0x387 0x4 0x0 0x0 0x16f 0x4 0x0 0x0 0x1b9 0x4 0x0 0x0 0x3bc 0x4 0x0 0x0 0x3c2 0x4 0x0 0x0 0x548 0x4 0x0 0x0 0x573 0x4 0x0 0x0 0x593 0x4 0x0 0x0 0x5b3 0x4 0x0 0x0 0x5d3 0x4 0x0 0x0 0x928 0x4 0x0 0x0 0x97c 0x4 0x0 0x0 0x997 0x4 0x0 0x0 0x214 0x4 0x0 0x0 0x54d 0x4 0x0 0x0 0x613 0x4 0x0 0x0 0x620 0x4 0x0 0x0 0x6df 0x4 0x0 0x0 0x316 0x4 0x0 0x0 0x317 0x4 0x0 0x0 0x6af 0x4 0x0 0x0 0x56d 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + crypto@50500c000 { + compatible = "apple,t6050-aes", "apple,aes"; + reg = <0x5 0x500c000 0x0 0x4000 0x2 0x88340000 0x0 0x8000 0x2 0x88090000 0x0 0x4000>; + interrupts = <0x0 0x0 0x55e 0x4>; + iommus = <&{/soc/iommu@505060000} 0x1>; + power-domains = <&{/soc/power-management@280900000/power-controller@318}>; + status = "disabled"; + }; +}; + +&{/soc} { + phy-coproc@395d08000 { + compatible = "apple,t6050-phy-coproc", "apple,phy-coproc"; + reg = <0x3 0x95d08000 0x0 0x4000 0x3 0x95d00000 0x0 0x4000>; + interrupts = <0x0 0x0 0x92b 0x4 0x0 0x0 0x92a 0x4 0x0 0x0 0x92d 0x4 0x0 0x0 0x92c 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + mailbox@4d067c000 { + compatible = "apple,t6050-secure-mailbox", "apple,secure-mailbox"; + reg = <0x4 0xd067c000 0x0 0x4000>; + interrupts = <0x0 0x0 0x249 0x4 0x0 0x0 0x246 0x4>; + iommus = <&{/soc/iommu@290fc0000} 0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + aop@291600000 { + compatible = "apple,t6050-aop2", "apple,aop2"; + reg = <0x2 0x91600000 0x0 0x88000 0x2 0x91650000 0x0 0x4000 0x2 0x9162c000 0x0 0x3c008>; + interrupts = <0x0 0x0 0x24b 0x4 0x0 0x0 0x24a 0x4 0x0 0x0 0x24d 0x4 0x0 0x0 0x24c 0x4>; + iommus = <&{/soc/iommu@290fc0000} 0x10>; + status = "disabled"; + }; +}; + +&{/soc} { + event-log@280040000 { + compatible = "apple,t6050-event-log", "apple,soc-event-log"; + reg = <0x2 0x80040000 0x0 0x4000 0x2 0x8004e000 0x0 0x4000 0x23 0x8004c800 0x0 0x4000 0x23 0x80040000 0x0 0x4000 0x2 0x80200000 0x0 0x4000 0x2 0x80000000 0x0 0x14000 0x2 0x8003c000 0x0 0x4000 0x2 0x80020000 0x0 0x10000 0x2 0x806e0000 0x0 0x4000 0x2 0x806d0000 0x0 0x4000 0x2 0x80668000 0x0 0x4000 0x2 0x80680000 0x0 0x1c000 0x2 0x807d0000 0x0 0x4000 0x2 0x806f0000 0x0 0x4000 0x2 0x80928000 0x0 0x4000 0x2 0x80938000 0x0 0x8000 0x2 0x86700000 0x0 0x114000 0x2 0x84380000 0x0 0x20000 0x2 0x85040000 0x0 0x1c000 0x2 0x84360000 0x0 0x4000 0x2 0x84370000 0x0 0x4000 0x23 0x85040000 0x0 0x1c000 0x23 0x84360000 0x0 0x4000 0x23 0x84370000 0x0 0x4000 0x5 0x9878000 0x0 0x4000 0x5 0x9868000 0x0 0x8000 0x23 0x80300000 0x0 0x8000 0x23 0x80308000 0x0 0x8000 0x2 0x80300000 0x0 0x8000 0x23 0x80034000 0x0 0x4000 0x23 0x8003c000 0x0 0x4000 0x23 0x80020000 0x0 0x10000 0x23 0x80038000 0x0 0x4000 0x23 0x80640000 0x0 0x10000 0x23 0x806d0000 0x0 0x4000 0x23 0x80668000 0x0 0x4000 0x23 0x80680000 0x0 0x1c000 0x23 0x806f0000 0x0 0x4000 0x2 0x84000000 0x0 0x4000 0x2 0x84004600 0x0 0x4000 0x2 0x84004000 0x0 0x4000 0x2 0x84004780 0x0 0x4000 0x2 0x84007400 0x0 0x4000 0x2 0x84004e00 0x0 0x4000 0x2 0x84004800 0x0 0x4000 0x2 0x84004f80 0x0 0x4000 0x2 0x84007600 0x0 0x4000 0x2 0x84005600 0x0 0x4000 0x2 0x84005000 0x0 0x4000 0x2 0x84005780 0x0 0x4000 0x2 0x84007800 0x0 0x4000 0x2 0x84005e00 0x0 0x4000 0x2 0x84005800 0x0 0x4000 0x2 0x84005f80 0x0 0x4000 0x2 0x84007a00 0x0 0x4000 0x2 0x84003e00 0x0 0x4000 0x2 0x84003800 0x0 0x4000 0x2 0x84003f80 0x0 0x4000 0x2 0x84007200 0x0 0x4000 0x2 0x84006e00 0x0 0x4000 0x2 0x84006800 0x0 0x4000 0x2 0x84006f80 0x0 0x4000 0x2 0x84007e00 0x0 0x4000 0x2 0x84006600 0x0 0x4000 0x2 0x84006000 0x0 0x4000 0x2 0x84006780 0x0 0x4000 0x2 0x84007c00 0x0 0x4000 0x2 0x84002e00 0x0 0x4000 0x2 0x84002800 0x0 0x4000 0x2 0x84002f80 0x0 0x4000 0x2 0x84007000 0x0 0x4000 0x2 0x84003600 0x0 0x4000 0x2 0x84003000 0x0 0x4000 0x2 0x84003780 0x0 0x4000 0x2 0x84000400 0x0 0x4000 0x2 0x84000400 0x0 0x4000 0x2 0x84000400 0x0 0x4000 0x2 0x84000400 0x0 0x4000 0x2 0x84000400 0x0 0x4000 0x2 0x84000400 0x0 0x4000 0x2 0x84000400 0x0 0x4000 0x2 0x84000400 0x0 0x4000 0x23 0x84000000 0x0 0x4000 0x23 0x84004e00 0x0 0x4000 0x23 0x84004800 0x0 0x4000 0x23 0x84004f80 0x0 0x4000 0x23 0x84007000 0x0 0x4000 0x23 0x84002e00 0x0 0x4000 0x23 0x84002800 0x0 0x4000 0x23 0x84002f80 0x0 0x4000 0x23 0x84006800 0x0 0x4000 0x23 0x84003600 0x0 0x4000 0x23 0x84003000 0x0 0x4000 0x23 0x84003780 0x0 0x4000 0x23 0x84006a00 0x0 0x4000 0x23 0x84005600 0x0 0x4000 0x23 0x84005000 0x0 0x4000 0x23 0x84005780 0x0 0x4000 0x23 0x84007200 0x0 0x4000 0x23 0x84006600 0x0 0x4000 0x23 0x84006000 0x0 0x4000 0x23 0x84006780 0x0 0x4000 0x23 0x84007400 0x0 0x4000 0x23 0x84005e00 0x0 0x4000 0x23 0x84005800 0x0 0x4000 0x23 0x84005f80 0x0 0x4000 0x23 0x84003e00 0x0 0x4000 0x23 0x84003800 0x0 0x4000 0x23 0x84003f80 0x0 0x4000 0x23 0x84006c00 0x0 0x4000 0x23 0x84004600 0x0 0x4000 0x23 0x84004000 0x0 0x4000 0x23 0x84004780 0x0 0x4000 0x23 0x84006e00 0x0 0x4000 0x23 0x84000400 0x0 0x4000 0x23 0x84000400 0x0 0x4000 0x23 0x84000400 0x0 0x4000 0x23 0x84000400 0x0 0x4000 0x23 0x84000400 0x0 0x4000 0x23 0x84000400 0x0 0x4000 0x23 0x84000400 0x0 0x4000 0x23 0x84000400 0x0 0x4000 0x2 0x88f00000 0x0 0x18000 0x2 0x88200000 0x0 0x4000 0x2 0x88204000 0x0 0x4000 0x2 0x8827c000 0x0 0x4000 0x2 0x8832c000 0x0 0x4000 0x2 0x88330000 0x0 0x10000 0x2 0x88360000 0x0 0x4000 0x2 0x88340000 0x0 0x8000 0x2 0x8836c000 0x0 0x4000 0x2 0x88000000 0x0 0x24000 0x23 0x88200000 0x0 0x4000 0x23 0x88204000 0x0 0x4000 0x23 0x8827c000 0x0 0x4000 0x23 0x8832c000 0x0 0x4000 0x23 0x88330000 0x0 0x10000 0x23 0x88360000 0x0 0x4000 0x23 0x88340000 0x0 0x8000 0x23 0x8836c000 0x0 0x4000 0x23 0x88000000 0x0 0x8000>; + interrupts = <0x0 0x0 0x1e 0x4 0x0 0x0 0x1f 0x4 0x0 0x0 0x22 0x4 0x0 0x0 0x23 0x4 0x0 0x0 0x24 0x4 0x0 0x0 0x37 0x4 0x0 0x0 0x38 0x4 0x0 0x0 0x13f 0x4 0x0 0x0 0x140 0x4 0x0 0x0 0x141 0x4 0x0 0x0 0x147 0x4 0x0 0x0 0x148 0x4 0x0 0x0 0x170 0x4 0x0 0x0 0x17e 0x4 0x0 0x0 0x1db 0x4 0x0 0x0 0x1e0 0x4 0x0 0x0 0x1e1 0x4 0x0 0x0 0x1e4 0x4 0x0 0x0 0x1e5 0x4 0x0 0x0 0x30f 0x4 0x0 0x0 0x310 0x4 0x0 0x0 0x3af 0x4 0x0 0x0 0x3b7 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dma-controller@505e00000 { + compatible = "apple,t6050-sio", "apple,sio"; + reg = <0x5 0x5e00000 0x0 0x88000 0x5 0x5850000 0x0 0x4000>; + interrupts = <0x0 0x0 0x570 0x4 0x0 0x0 0x56f 0x4 0x0 0x0 0x572 0x4 0x0 0x0 0x571 0x4>; + iommus = <&{/soc/iommu@505060000} 0x0>; + power-domains = <&{/soc/power-management@280900000/power-controller@2a0}>; + clocks = <&{/soc/clock-controller@280600000} 0x167 &{/soc/clock-controller@280600000} 0x166>; + #dma-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@505060000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x5 0x5060000 0x0 0x20000>; + interrupts = <0x0 0x0 0x56b 0x4>; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + pmp@284e00000 { + compatible = "apple,t6050-pmp-v2", "apple,t6000-pmp-v2"; + reg = <0x2 0x84500000 0x0 0x100000 0x2 0x84e00000 0x0 0x4000>; + reg-names = "pmp", "asc"; + mboxes = <&{/soc/mailbox@284e08000}>; + mbox-names = "mbox"; + iommus = <&{/soc/iommu@2841a0000} 0x0>; + power-domains = <&{/soc/power-management@280600000/power-controller@128} &{/soc/power-management@280600000/power-controller@130}>; + status = "disabled"; + }; +}; + +&{/soc} { + mailbox@284e08000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x2 0x84e08000 0x0 0x4000>; + interrupts = <0x0 0x0 0x18c 0x4 0x0 0x0 0x18d 0x4 0x0 0x0 0x18e 0x4 0x0 0x0 0x18f 0x4>; + interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; + #mbox-cells = <0x0>; + power-domains = <&{/soc/power-management@280600000/power-controller@128}>; + status = "disabled"; + }; +}; + +&{/soc} { + pmp-report@284240000 { + compatible = "apple,t6050-pmp-v2-report"; + reg = <0x2 0x84240000 0x0 0x20000>; + power-domains = <&{/soc/power-management@280600000/power-controller@130}>; + #address-cells = <0x1>; + #size-cells = <0x0>; + status = "disabled"; + }; +}; + +&{/soc/pmp-report@284240000} { + report@c { + compatible = "apple,t6050-pmp-v2-report-entry", "apple,t6000-pmp-v2-report-entry"; + reg = <0xc>; + label = "pmp-macc0"; + #power-domain-cells = <0x0>; + apple,always-on; + }; +}; + +&{/soc/pmp-report@284240000} { + report@d { + compatible = "apple,t6050-pmp-v2-report-entry", "apple,t6000-pmp-v2-report-entry"; + reg = <0xd>; + label = "pmp-macc1"; + #power-domain-cells = <0x0>; + apple,always-on; + }; +}; + +&{/soc/pmp-report@284240000} { + report@e { + compatible = "apple,t6050-pmp-v2-report-entry", "apple,t6000-pmp-v2-report-entry"; + reg = <0xe>; + label = "pmp-pacc"; + #power-domain-cells = <0x0>; + apple,always-on; + }; +}; + +&{/soc/pmp-report@284240000} { + report@f { + compatible = "apple,t6050-pmp-v2-report-entry", "apple,t6000-pmp-v2-report-entry"; + reg = <0xf>; + label = "pmp-gfx"; + #power-domain-cells = <0x0>; + power-domains = <&{/soc@2300000000/power-management@2300e80000/power-controller@110}>; + }; +}; + +&{/soc/pmp-report@284240000} { + report@12 { + compatible = "apple,t6050-pmp-v2-report-entry", "apple,t6000-pmp-v2-report-entry"; + reg = <0x12>; + label = "pmp-dispint"; + #power-domain-cells = <0x0>; + apple,always-on; + }; +}; + +&{/soc/pmp-report@284240000} { + report@24 { + compatible = "apple,t6050-pmp-v2-report-entry", "apple,t6000-pmp-v2-report-entry"; + reg = <0x24>; + label = "pmp-ans"; + #power-domain-cells = <0x0>; + apple,always-on; + }; +}; + +&{/soc} { + iommu@2841a0000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x2 0x841a0000 0x0 0xc000 0x2 0x841b0000 0x0 0x4000>; + reg-names = "dart", "dapf"; + interrupts = <0x0 0x0 0x173 0x4>; + #iommu-cells = <0x1>; + apple,dma-range = <0x100 0x0 0x10 0x0>; + power-domains = <&{/soc/power-management@280600000/power-controller@128}>; + status = "disabled"; + }; +}; + +&{/soc} { + aon-ptd@28cdc0000 { + compatible = "apple,t6050-aon-ptd", "apple,aon-ptd"; + reg = <0x2 0x8cdc0000 0x0 0x4000 0x2 0x8cdd0000 0x0 0x4000 0x2 0x8cdd8000 0x0 0x4000 0x2 0x8cde0000 0x0 0x4000>; + interrupts = <0x0 0x0 0x388 0x4 0x0 0x0 0x389 0x4 0x0 0x0 0x38a 0x4 0x0 0x0 0x38b 0x4 0x0 0x0 0x38c 0x4 0x0 0x0 0x38d 0x4 0x0 0x0 0x38e 0x4 0x0 0x0 0x38f 0x4 0x0 0x0 0x390 0x4 0x0 0x0 0x391 0x4 0x0 0x0 0x392 0x4 0x0 0x0 0x393 0x4 0x0 0x0 0x394 0x4 0x0 0x0 0x395 0x4 0x0 0x0 0x396 0x4 0x0 0x0 0x397 0x4 0x0 0x0 0x398 0x4 0x0 0x0 0x399 0x4 0x0 0x0 0x39a 0x4 0x0 0x0 0x39b 0x4 0x0 0x0 0x39c 0x4 0x0 0x0 0x39d 0x4 0x0 0x0 0x39e 0x4 0x0 0x0 0x39f 0x4 0x0 0x0 0x3a0 0x4 0x0 0x0 0x3a1 0x4 0x0 0x0 0x3a2 0x4 0x0 0x0 0x3a3 0x4 0x0 0x0 0x3a4 0x4 0x0 0x0 0x3a5 0x4 0x0 0x0 0x3a6 0x4 0x0 0x0 0x3a7 0x4>; + interrupt-controller; + #interrupt-cells = <0x1>; + #address-cells = <0x0>; + status = "disabled"; + }; +}; + +&{/soc} { + rsm@288825000 { + compatible = "apple,t6050-rsm", "apple,rsm"; + reg = <0x2 0x88825000 0x0 0x4000 0x2 0x888c0000 0x0 0x4>; + interrupts = <0x0 0x0 0x1ef 0x4>; + iommus = <&{/soc/iommu@2889a0000} 0x0>; + power-domains = <&{/soc/power-management@288300000/power-controller@58}>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@2889a0000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x2 0x889a0000 0x0 0xc000>; + interrupts = <0x0 0x0 0x1f2 0x4>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + serial@505200000 { + compatible = "apple,t6050-uart", "apple,s5l-uart"; + reg = <0x5 0x5200000 0x0 0x4000>; + interrupts = <0x0 0x0 0x54f 0x4>; + power-domains = <&{/soc/power-management@280900000/power-controller@360}>; + clocks = <&{/soc/clock-controller@280600000} 0x1c9 &{/soc/clock-controller@280600000} 0x4>; + clock-names = "uart", "clk_uart_baud0"; + status = "disabled"; + }; +}; + +&{/soc} { + spmi@28a094000 { + compatible = "apple,t6050-spmi", "apple,t8142-spmi"; + reg = <0x2 0x8a094000 0x0 0x4000 0x2 0x8a084000 0x0 0x4000 0x2 0x8a080000 0x0 0x4000>; + interrupts = <0x0 0x0 0x2e0 0x4>; + #address-cells = <0x2>; + #size-cells = <0x0>; + status = "disabled"; + }; +}; + +&{/soc} { + spmi@28a0d4000 { + compatible = "apple,t6050-spmi", "apple,t8142-spmi"; + reg = <0x2 0x8a0d4000 0x0 0x4000 0x2 0x8a0c4000 0x0 0x4000 0x2 0x8a0c0000 0x0 0x4000>; + interrupts = <0x0 0x0 0x2e5 0x4>; + #address-cells = <0x2>; + #size-cells = <0x0>; + status = "disabled"; + }; +}; + +&{/soc} { + spmi@290914000 { + compatible = "apple,t6050-spmi", "apple,t8142-spmi"; + reg = <0x2 0x90914000 0x0 0x4000 0x2 0x90904000 0x0 0x4000 0x2 0x90900000 0x0 0x4000>; + interrupts = <0x0 0x0 0x26c 0x4>; + #address-cells = <0x2>; + #size-cells = <0x0>; + status = "disabled"; + }; +}; + +&{/soc} { + scaler@2285000000 { + compatible = "apple,t6050-scaler", "apple,scaler-v23"; + reg = <0x22 0x85000000 0x0 0x14000 0x22 0x85210000 0x0 0x4000 0x22 0x85204000 0x0 0x4000 0x22 0x84000000 0x0 0x8000 0x22 0x852c0000 0x0 0x40000 0x22 0x85340000 0x0 0x14c000 0x22 0x852a0000 0x0 0x4000 0x22 0x85208000 0x0 0x4000 0x22 0x85210000 0x0 0x4000 0x22 0x85220000 0x0 0x4000>; + interrupts = <0x0 0x0 0x9a4 0x4 0x0 0x0 0x9a6 0x4 0x0 0x0 0x9a7 0x4 0x0 0x0 0x9a8 0x4 0x0 0x0 0x9ac 0x4 0x0 0x0 0x9ad 0x4 0x0 0x0 0x9ae 0x4 0x0 0x0 0x9af 0x4 0x0 0x0 0x9b0 0x4 0x0 0x0 0x9b1 0x4 0x0 0x0 0x9b2 0x4 0x0 0x0 0x9b3 0x4 0x0 0x0 0x9b4 0x4 0x0 0x0 0x9b5 0x4 0x0 0x0 0x9b6 0x4 0x0 0x0 0x9b7 0x4 0x0 0x0 0x9b8 0x4 0x0 0x0 0x9b9 0x4 0x0 0x0 0x9ba 0x4 0x0 0x0 0x9bb 0x4>; + iommus = <&{/soc/iommu@2285260000} 0x0 &{/soc/iommu@2285260000} 0x1>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1c8} &{/soc/power-management@2380600000/power-controller@200}>; + clocks = <&{/soc/clock-controller@280600000} 0x1f0>; + resets = <&{/soc/power-management@2380600000/power-controller@1c8}>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@2285260000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x22 0x85260000 0x0 0x20000 0x2 0x74000000 0x0 0x4000>; + interrupts = <0x0 0x0 0x9a5 0x4>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1c8}>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + scaler@23a1000000 { + compatible = "apple,t6050-scaler", "apple,scaler-v23"; + reg = <0x23 0xa1000000 0x0 0x14000 0x23 0xa1210000 0x0 0x4000 0x23 0xa1204000 0x0 0x4000 0x23 0xa0000000 0x0 0x8000 0x23 0xa12c0000 0x0 0x40000 0x23 0xa1340000 0x0 0x14c000 0x23 0xa12a0000 0x0 0x4000 0x23 0xa1208000 0x0 0x4000 0x23 0xa1210000 0x0 0x4000 0x23 0xa1220000 0x0 0x4000>; + interrupts = <0x0 0x0 0x9bc 0x4 0x0 0x0 0x9be 0x4 0x0 0x0 0x9bf 0x4 0x0 0x0 0x9c0 0x4 0x0 0x0 0x9c4 0x4 0x0 0x0 0x9c5 0x4 0x0 0x0 0x9c6 0x4 0x0 0x0 0x9c7 0x4 0x0 0x0 0x9c8 0x4 0x0 0x0 0x9c9 0x4 0x0 0x0 0x9ca 0x4 0x0 0x0 0x9cb 0x4 0x0 0x0 0x9cc 0x4 0x0 0x0 0x9cd 0x4 0x0 0x0 0x9ce 0x4 0x0 0x0 0x9cf 0x4 0x0 0x0 0x9d0 0x4 0x0 0x0 0x9d1 0x4 0x0 0x0 0x9d2 0x4 0x0 0x0 0x9d3 0x4>; + iommus = <&{/soc/iommu@23a1260000} 0x0 &{/soc/iommu@23a1260000} 0x1>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1f8} &{/soc/power-management@2380600000/power-controller@208}>; + clocks = <&{/soc/clock-controller@280600000} 0x1f1>; + resets = <&{/soc/power-management@2380600000/power-controller@1f8}>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@23a1260000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x23 0xa1260000 0x0 0x20000 0x2 0x74000000 0x0 0x4000>; + interrupts = <0x0 0x0 0x9bd 0x4>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1f8}>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + video-encoder@2283100000 { + compatible = "apple,t6050-ave", "apple,ave"; + reg = <0x22 0x83100000 0x0 0x45c000 0x22 0x83800000 0x0 0x800000 0x22 0x83050000 0x0 0x4000 0x23 0x806001c0 0x0 0x7e64 0x22 0x82000000 0x0 0x8000>; + interrupts = <0x0 0x0 0x983 0x4 0x0 0x0 0xae6 0x4 0x0 0x0 0xae5 0x4 0x0 0x0 0xae8 0x4 0x0 0x0 0xae7 0x4>; + iommus = <&{/soc/iommu@22830a0000} 0x0 &{/soc/iommu@2283080000} 0x0>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1c0} &{/soc/power-management@2380600000/power-controller@8008} &{/soc/power-management@2380600000/power-controller@8010} &{/soc/power-management@2380600000/power-controller@8018} &{/soc/power-management@2380600000/power-controller@8020} &{/soc/power-management@2380600000/power-controller@8000}>; + clocks = <&{/soc/clock-controller@280600000} 0x1f7>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@22830a0000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x22 0x830a0000 0x0 0xc000 0x22 0x830b0000 0x0 0x4000>; + interrupts = <0x0 0x0 0x980 0x4>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1c0}>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@2283080000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x22 0x83080000 0x0 0xc000 0x22 0x83094000 0x0 0x4000>; + interrupts = <0x0 0x0 0x980 0x4>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1c0}>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + video-encoder@23a3100000 { + compatible = "apple,t6050-ave", "apple,ave"; + reg = <0x23 0xa3100000 0x0 0x45c000 0x23 0xa3800000 0x0 0x800000 0x23 0xa3050000 0x0 0x4000 0x23 0x806001f0 0x0 0x7e5c 0x23 0xa2000000 0x0 0x8000>; + interrupts = <0x0 0x0 0x98b 0x4 0x0 0x0 0xaea 0x4 0x0 0x0 0xae9 0x4 0x0 0x0 0xaec 0x4 0x0 0x0 0xaeb 0x4>; + iommus = <&{/soc/iommu@23a30a0000} 0x0 &{/soc/iommu@23a3080000} 0x0>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1f0} &{/soc/power-management@2380600000/power-controller@8030} &{/soc/power-management@2380600000/power-controller@8038} &{/soc/power-management@2380600000/power-controller@8040} &{/soc/power-management@2380600000/power-controller@8048} &{/soc/power-management@2380600000/power-controller@8028}>; + clocks = <&{/soc/clock-controller@280600000} 0x1f8>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@23a30a0000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x23 0xa30a0000 0x0 0xc000 0x23 0xa30b0000 0x0 0x4000>; + interrupts = <0x0 0x0 0x988 0x4>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1f0}>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@23a3080000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x23 0xa3080000 0x0 0xc000 0x23 0xa3094000 0x0 0x4000>; + interrupts = <0x0 0x0 0x988 0x4>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1f0}>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + prores@48d000000 { + compatible = "apple,t6050-prores", "apple,prores"; + reg = <0x4 0x8d000000 0x0 0x4000 0x4 0x8c000000 0x0 0x1000000 0x4 0x8d0c0000 0x0 0x4000 0x4 0x8d070000 0x0 0x4000 0x4 0x8d071000 0x0 0x4000>; + interrupts = <0x0 0x0 0x6b1 0x4 0x0 0x0 0x6d6 0x4>; + iommus = <&{/soc/iommu@48d020000} 0x1>; + power-domains = <&{/soc/power-management@280900000/power-controller@190}>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@48d020000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x4 0x8d020000 0x0 0xc000>; + interrupts = <0x0 0x0 0x6b0 0x4>; + power-domains = <&{/soc/power-management@280900000/power-controller@190}>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@230b020000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x23 0xb020000 0x0 0xc000 0x2 0x74000000 0x0 0x4000>; + interrupts = <0x0 0x0 0x6e0 0x4>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1e0}>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + jpeg@2281000000 { + compatible = "apple,t6050-jpeg", "apple,jpeg"; + reg = <0x22 0x81000000 0x0 0x4000>; + interrupts = <0x0 0x0 0x54b 0x4>; + iommus = <&{/soc/iommu@2281020000} 0x0>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1d0}>; + clocks = <&{/soc/clock-controller@280600000} 0x1e6 &{/soc/clock-controller@280600000} 0x1e7>; + status = "disabled"; + }; +}; + +&{/soc} { + jpeg@2281060000 { + compatible = "apple,t6050-jpeg", "apple,jpeg"; + reg = <0x22 0x81060000 0x0 0x4000>; + interrupts = <0x0 0x0 0x54e 0x4>; + iommus = <&{/soc/iommu@2281020000} 0x1>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1d0}>; + clocks = <&{/soc/clock-controller@280600000} 0x1e6 &{/soc/clock-controller@280600000} 0x1e7>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@2281020000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x22 0x81020000 0x0 0xc000 0x2 0x74000000 0x0 0x4000>; + interrupts = <0x0 0x0 0x54c 0x4>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1d0}>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + neural-processor@508000000 { + compatible = "apple,t6050-ane"; + reg = <0x5 0x8000000 0x0 0x2000000 0x2 0x80900000 0x0 0x18000 0x2 0x80920000 0x0 0x4000 0x2 0x84240000 0x0 0x40000 0x2 0x12000000 0x0 0xff4000 0x5 0x84000000 0x0 0x2000000 0x2 0x88374000 0x0 0x4000>; + reg-names = "engine", "pmgr", "aux-0", "aux-1", "aux-2", "aux-3", "aux-4"; + interrupts = <0x0 0x0 0x3ba 0x4 0x0 0x0 0x3c7 0x4>; + iommus = <&{/soc/iommu@509800000} 0x0 &{/soc/iommu@509820000} 0x0 &{/soc/iommu@509840000} 0x0>; + power-domains = <&{/soc/power-management@280900000/power-controller@3c8}>; + clocks = <&{/soc/clock-controller@280600000} 0x14f &{/soc/clock-controller@280600000} 0x14e &{/soc/clock-controller@280600000} 0x17d>; + status = "disabled"; + }; +}; + +&{/soc} { + video-decoder@2308000000 { + compatible = "apple,t6050-avd", "apple,avd"; + reg = <0x23 0x8000000 0x0 0x1404000 0x23 0x88090000 0x0 0x4000>; + interrupts = <0x0 0x0 0x971 0x4 0x0 0x0 0x972 0x4>; + iommus = <&{/soc/iommu@2309020000} 0x0 &{/soc/iommu@2309020000} 0x1 &{/soc/iommu@2309020000} 0x2>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1d8}>; + clocks = <&{/soc/clock-controller@280600000} 0x1e8>; + status = "disabled"; + }; +}; + +&{/soc} { + dma-controller@293300000 { + compatible = "apple,t6050-admac", "apple,t8140-admac"; + reg = <0x2 0x93300000 0x0 0x34000>; + dma-channels = <0x9>; + interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x27f 0x4 0 0 0>; + iommus = <&{/soc/iommu@290fc0000} 0xa>; + #dma-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + dma-control@293c80000 { + compatible = "apple,t6050-admac-control", "apple,admac-control"; + reg = <0x2 0x93c80000 0x0 0x4000 0x2 0x93c84000 0x0 0x4000>; + interrupts = <0x0 0x0 0x28c 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + message-controller@29b000000 { + compatible = "apple,t6050-msg", "apple,msg"; + reg = <0x2 0x9b000000 0x0 0xb4000 0x2 0x99000000 0x0 0x4000>; + interrupts = <0x0 0x0 0x319 0x4 0x0 0x0 0x31a 0x4 0x0 0x0 0x31b 0x4 0x0 0x0 0x31c 0x4 0x0 0x0 0x31d 0x4 0x0 0x0 0x31e 0x4 0x0 0x0 0x31f 0x4 0x0 0x0 0x320 0x4 0x0 0x0 0x321 0x4 0x0 0x0 0x322 0x4 0x0 0x0 0x323 0x4 0x0 0x0 0x324 0x4 0x0 0x0 0x325 0x4 0x0 0x0 0x326 0x4 0x0 0x0 0x327 0x4 0x0 0x0 0x328 0x4 0x0 0x0 0x329 0x4 0x0 0x0 0x32a 0x4 0x0 0x0 0x32b 0x4 0x0 0x0 0x32c 0x4 0x0 0x0 0x32d 0x4 0x0 0x0 0x32e 0x4 0x0 0x0 0x32f 0x4 0x0 0x0 0x330 0x4 0x0 0x0 0x331 0x4 0x0 0x0 0x332 0x4 0x0 0x0 0x333 0x4 0x0 0x0 0x334 0x4 0x0 0x0 0x335 0x4 0x0 0x0 0x336 0x4 0x0 0x0 0x337 0x4 0x0 0x0 0x338 0x4 0x0 0x0 0x339 0x4 0x0 0x0 0x33a 0x4 0x0 0x0 0x33b 0x4 0x0 0x0 0x33c 0x4 0x0 0x0 0x33d 0x4 0x0 0x0 0x33e 0x4 0x0 0x0 0x33f 0x4 0x0 0x0 0x340 0x4 0x0 0x0 0x318 0x4>; + power-domains = <&{/soc/power-management@280600000/power-controller@258}>; + status = "disabled"; + }; +}; + +&{/soc} { + dma-controller@412030000 { + compatible = "apple,t6050-pcie-piodma", "apple,pcie-piodma"; + reg = <0x4 0x12030000 0x0 0x4000 0x4 0x12034000 0x0 0x4000 0x4 0x12038000 0x0 0x4000>; + interrupts = <0x0 0x0 0x605 0x4>; + iommus = <&{/soc/iommu@412000000} 0x11>; + status = "disabled"; + }; +}; + +&{/soc} { + dma-controller@413030000 { + compatible = "apple,t6050-pcie-piodma", "apple,pcie-piodma"; + reg = <0x4 0x13030000 0x0 0x4000 0x4 0x13034000 0x0 0x4000 0x4 0x13038000 0x0 0x4000>; + interrupts = <0x0 0x0 0x60d 0x4>; + iommus = <&{/soc/iommu@413000000} 0x11>; + status = "disabled"; + }; +}; + +&{/soc} { + spi@50510c000 { + compatible = "apple,t6050-spi", "apple,t8103-spi"; + reg = <0x5 0x510c000 0x0 0x4000>; + interrupts = <0x0 0x0 0x55a 0x4>; + power-domains = <&{/soc/power-management@280900000/power-controller@338}>; + clocks = <&{/soc/clock-controller@280600000} 0x1c4>; + #address-cells = <0x1>; + #size-cells = <0x0>; + status = "disabled"; + }; +}; + +&{/soc} { + dma-controller@38c068000 { + compatible = "apple,t6050-pciec-piodma", "apple,pciec-piodma"; + reg = <0x3 0x8c068000 0x0 0x4000 0x3 0x8c06c000 0x0 0x4000 0x3 0x8c070000 0x0 0x4000 0x3 0x8c03c000 0x0 0x4000>; + interrupts = <0x0 0x0 0x5df 0x4>; + iommus = <&{/soc/iommu@38c000000} 0xfe>; + status = "disabled"; + }; +}; + +&{/soc} { + dpin@389e50000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x3 0x89e50000 0x0 0x4000>; + interrupts = <0x0 0x0 0x6a3 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dpin@389e58000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x3 0x89e58000 0x0 0x4000>; + interrupts = <0x0 0x0 0x6a4 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dpin@389e68000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x3 0x89e68000 0x0 0x4000>; + interrupts = <0x0 0x0 0x6a9 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dpin@389e70000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x3 0x89e70000 0x0 0x4000>; + interrupts = <0x0 0x0 0x6aa 0x4>; + status = "disabled"; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-audio.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-audio.dtsi new file mode 100644 index 0000000000000..a03cae3fd42e3 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-audio.dtsi @@ -0,0 +1,69 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* Property migration from Satya Benson's 86b1f365 J775c stack. + * Retained board sources remain the baseline; this group is independently booted. + * Copyright The Asahi Linux Contributors + */ +&{/soc/i2c@505014000/codec@38} { + /delete-property/ ti,bclk-ratio; + shutdown-gpios = <&{/soc/pinctrl@29c000000} 0x6b 0x0>; + interrupts-extended = <&{/soc/pinctrl@29c000000} 0x6a 0x8>; +}; + +&{/soc/i2c@505018000/codec@4b} { + reset-gpios = <&{/soc/pinctrl@29c000000} 0x8b 0x0>; + interrupts-extended = <&{/soc/pinctrl@29c000000} 0x86 0x8>; +}; + +&{/sound} { + compatible = "apple,j775c-macaudio", "apple,macaudio"; +}; + +&{/sound/dai-link@0} { +}; + +&{/sound/dai-link@0/cpu} { + sound-dai = <&{/soc/aop@290c00000/audio} 0x0>; +}; + +&{/sound/dai-link@0/codec} { + sound-dai = <&{/soc/i2c@505018000/codec@4b}>; +}; + +&{/sound/dai-link@1} { +}; + +&{/sound/dai-link@1/cpu} { + sound-dai = <&{/soc/aop@290c00000/audio} 0x3>; +}; + +&{/sound/dai-link@1/codec} { + sound-dai = <&{/soc/i2c@505014000/codec@38}>; +}; + +&{/audio-controller-dispext0} { + dmas = <&{/soc/dma-controller@2b2140000} 0x0>; +}; + +&{/audio-controller-dispext0/ports} { +}; + +&{/audio-controller-dispext0/ports/port@0} { +}; + +&{/audio-controller-dispext0/ports/port@0/endpoint} { + remote-endpoint = <&{/soc/dcp@2b2e00000/ports/port@0/endpoint}>; +}; + +&{/audio-controller-dispext1} { + dmas = <&{/soc/dma-controller@392140000} 0x0>; +}; + +&{/audio-controller-dispext1/ports} { +}; + +&{/audio-controller-dispext1/ports/port@0} { +}; + +&{/audio-controller-dispext1/ports/port@0/endpoint} { + remote-endpoint = <&{/soc/dcp@392e00000/ports/port@0/endpoint}>; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-display.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-display.dtsi new file mode 100644 index 0000000000000..15d138c1a07cf --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-display.dtsi @@ -0,0 +1,464 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* Property migration from Satya Benson's 86b1f365 J775c stack. + * Retained board sources remain the baseline; this group is independently booted. + * Copyright The Asahi Linux Contributors + */ +&{/soc/iommu@2b2340000} { +}; + +&{/soc/iommu@2b2300000} { +}; + +&{/soc/mailbox@2b2e08000} { +}; + +&{/soc/dcp@2b2e00000} { + mboxes = <&{/soc/mailbox@2b2e08000}>; + iommus = <&{/soc/iommu@2b2340000} 0x17>; + apple,bw-scratch = <&{/soc/pmc-metadata@286700000} 0x0 0x5 0x2c000>; + phys = <&{/soc/phy@383000000} 0x6 &{/soc/phy@2ab000000} 0x6 &{/soc/phy@38b000000} 0x6 &{/soc/phy@2a3000000} 0x6>; + mux-controls = <&{/soc/mux@38324c000} 0x0 &{/soc/mux@2ab24c000} 0x0 &{/soc/mux@38b24c000} 0x0 &{/soc/mux@2a324c000} 0x0>; +}; + +&{/soc/dcp@2b2e00000/piodma} { + iommus = <&{/soc/iommu@2b2300000} 0x10>; +}; + +&{/soc/dcp@2b2e00000/typec-routes} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@0} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@0/port} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@0/port/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@2/endpoint}>; +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@1} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@1/port} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@1/port/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@2/endpoint}>; +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@2} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@2/port} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@2/port/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@2/endpoint}>; +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@3} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@3/port} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@3/port/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@2/endpoint}>; +}; + +&{/soc/dcp@2b2e00000/ports} { +}; + +&{/soc/dcp@2b2e00000/ports/port@0} { +}; + +&{/soc/dcp@2b2e00000/ports/port@0/endpoint} { + remote-endpoint = <&{/audio-controller-dispext0/ports/port@0/endpoint}>; +}; + +&{/soc} { + aux@29c260000 { + compatible = "apple,t6050-dptx-aux", "apple,dptx-aux"; + reg = <0x2 0x9c260000 0x0 0x4000 0x2 0x9c260000 0x0 0x4000>; + power-domains = <&{/soc/power-management@280900000/power-controller@108}>; + status = "disabled"; + }; +}; + +&{/soc} { + aux@29c264000 { + compatible = "apple,t6050-dptx-aux", "apple,dptx-aux"; + reg = <0x2 0x9c264000 0x0 0x4000 0x2 0x9c264000 0x0 0x4000>; + power-domains = <&{/soc/power-management@280900000/power-controller@110}>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@48a300000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x4 0x8a300000 0x0 0xc000 0x4 0x8a314000 0x0 0x4000>; + interrupts = <0x0 0x0 0x3de 0x4>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + dcp-expert@48a3ac058 { + compatible = "apple,t6050-dcp-expert", "apple,dcp-expert"; + reg = <0x4 0x8a3ac058 0x0 0x4 0x4 0x8a374000 0x0 0x40 0x4 0x8a370000 0x0 0x40 0x4 0x8a388000 0x0 0x40 0x4 0x8a38c000 0x0 0x40 0x4 0x8a394000 0x0 0x40 0x4 0x8a398000 0x0 0x40 0x4 0x8a39c000 0x0 0x40 0x4 0x8a3a0000 0x0 0x40 0x4 0x88208000 0x0 0x40 0x4 0x8820c000 0x0 0x40 0x4 0x88210000 0x0 0x40 0x4 0x88214000 0x0 0x40>; + interrupts = <0x0 0x0 0x3d9 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + mailbox@48ae08000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x4 0x8ae08000 0x0 0x4000>; + interrupts = <0x0 0x0 0x413 0x4 0x0 0x0 0x414 0x4 0x0 0x0 0x415 0x4 0x0 0x0 0x416 0x4>; + interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; + #mbox-cells = <0x0>; + status = "disabled"; + }; +}; + +&{/soc} { + dcp@48ae00000 { + compatible = "apple,t6050-dcp", "apple,dcp"; + reg = <0x4 0x8ae00000 0x0 0x4000 0x4 0x88000000 0x0 0x4000000 0x4 0x8a240000 0x0 0x10000 0x4 0x8a3ac000 0x0 0x4000 0x4 0x8a800000 0x0 0x800000 0x2 0x86700000 0x0 0x114000 0x4 0x8a850000 0x0 0x4000>; + reg-names = "coproc", "disp-0", "disp-1", "disp-2", "disp-3", "disp-4", "iop-vbar"; + mboxes = <&{/soc/mailbox@48ae08000}>; + mbox-names = "mbox"; + iommus = <&{/soc/iommu@48a340000} 0x17>; + status = "disabled"; + }; +}; + +&{/soc/dcp@48ae00000} { + piodma { + iommus = <&{/soc/iommu@48a300000} 0x10>; + }; +}; + +&{/soc} { + iommu@48a340000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x4 0x8a340000 0x0 0x20000>; + interrupts = <0x0 0x0 0x3de 0x4>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@48a180000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x4 0x8a180000 0x0 0x20000>; + interrupts = <0x0 0x0 0x3f5 0x4>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + dma-controller@48a140000 { + compatible = "apple,t6050-admac", "apple,t8140-admac"; + reg = <0x4 0x8a140000 0x0 0x24000>; + dma-channels = <0x1>; + interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x3f4 0x4 0 0 0>; + iommus = <&{/soc/iommu@48a180000} 0x1e>; + #dma-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + dma-control@48a2f4000 { + compatible = "apple,t6050-admac-control", "apple,admac-control"; + reg = <0x4 0x8a2f4000 0x0 0x4000 0x4 0x8a1a0000 0x0 0x4000>; + interrupts = <0x0 0x0 0x3f6 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dcp-expert@2b23ac058 { + compatible = "apple,t6050-dcp-expert", "apple,dcp-expert"; + reg = <0x2 0xb23ac058 0x0 0x4 0x2 0xb2374000 0x0 0x40 0x2 0xb2370000 0x0 0x40>; + interrupts = <0x0 0x0 0x429 0x4>; + status = "disabled"; + }; +}; + +&{/soc/iommu@2b2180000} { + status = "okay"; + power-domains = <&{/soc/power-management@280600000/power-controller@270}>; +}; + +&{/soc/dma-controller@2b2140000} { + interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x444 0x4 0 0 0>; + iommus = <&{/soc/iommu@2b2180000} 0x1e>; + status = "okay"; + power-domains = <&{/soc/power-management@280600000/power-controller@270}>; +}; + +&{/soc} { + dma-control@2b22f4000 { + compatible = "apple,t6050-admac-control", "apple,admac-control"; + reg = <0x2 0xb22f4000 0x0 0x4000 0x2 0xb21a0000 0x0 0x4000>; + interrupts = <0x0 0x0 0x446 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dcp-expert@3923ac058 { + compatible = "apple,t6050-dcp-expert", "apple,dcp-expert"; + reg = <0x3 0x923ac058 0x0 0x4 0x3 0x92374000 0x0 0x40 0x3 0x92370000 0x0 0x40>; + interrupts = <0x0 0x0 0x471 0x4>; + status = "disabled"; + }; +}; + +&{/soc/mailbox@392e08000} { +}; + +&{/soc/dcp@392e00000} { + mboxes = <&{/soc/mailbox@392e08000}>; + iommus = <&{/soc/iommu@392340000} 0x17>; + apple,bw-scratch = <&{/soc/pmc-metadata@286700000} 0x0 0x5 0x30000>; + phys = <&{/soc/phy@29c200000}>; + hdmi-hpd-gpios = <&{/soc/pinctrl@290824000} 0xe 0x0>; + hdmi-pwren-gpios = <&{/soc/smc@28c600000/gpio} 0x0 0x0>; + dp2hdmi-pwren-gpios = <&{/soc/smc@28c600000/gpio} 0x1 0x0>; +}; + +&{/soc/dcp@392e00000/piodma} { + iommus = <&{/soc/iommu@392300000} 0x10>; +}; + +&{/soc/dcp@392e00000/ports} { +}; + +&{/soc/dcp@392e00000/ports/port@0} { +}; + +&{/soc/dcp@392e00000/ports/port@0/endpoint} { + remote-endpoint = <&{/audio-controller-dispext1/ports/port@0/endpoint}>; +}; + +&{/soc/iommu@392340000} { +}; + +&{/soc/iommu@392300000} { +}; + +&{/soc/iommu@392180000} { + status = "okay"; + power-domains = <&{/soc/power-management@280600000/power-controller@2d8}>; +}; + +&{/soc/dma-controller@392140000} { + interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x48c 0x4 0 0 0>; + iommus = <&{/soc/iommu@392180000} 0x1e>; + status = "okay"; + power-domains = <&{/soc/power-management@280600000/power-controller@2d8}>; +}; + +&{/soc} { + dma-control@3922f4000 { + compatible = "apple,t6050-admac-control", "apple,admac-control"; + reg = <0x3 0x922f4000 0x0 0x4000 0x3 0x921a0000 0x0 0x4000>; + interrupts = <0x0 0x0 0x48e 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dcp-expert@3023ac058 { + compatible = "apple,t6050-dcp-expert", "apple,dcp-expert"; + reg = <0x3 0x23ac058 0x0 0x4 0x3 0x2374000 0x0 0x40 0x3 0x2370000 0x0 0x40>; + interrupts = <0x0 0x0 0x4b9 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + mailbox@302e08000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x3 0x2e08000 0x0 0x4000>; + interrupts = <0x0 0x0 0x4f3 0x4 0x0 0x0 0x4f4 0x4 0x0 0x0 0x4f5 0x4 0x0 0x0 0x4f6 0x4>; + interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; + #mbox-cells = <0x0>; + status = "disabled"; + }; +}; + +&{/soc} { + dcp@302e00000 { + compatible = "apple,t6050-dcpext", "apple,dcpext"; + reg = <0x3 0x2e00000 0x0 0x4000 0x3 0x0 0x0 0x4000000 0x3 0x2240000 0x0 0x10000 0x3 0x23ac000 0x0 0x4000 0x3 0x2800000 0x0 0x800000 0x2 0x86700000 0x0 0x114000 0x3 0x2850000 0x0 0x4000>; + reg-names = "coproc", "disp-0", "disp-1", "disp-2", "disp-3", "disp-4", "iop-vbar"; + mboxes = <&{/soc/mailbox@302e08000}>; + mbox-names = "mbox"; + iommus = <&{/soc/iommu@302340000} 0x17>; + status = "disabled"; + }; +}; + +&{/soc/dcp@302e00000} { + piodma { + iommus = <&{/soc/iommu@302300000} 0x10>; + }; +}; + +&{/soc} { + iommu@302340000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x3 0x2340000 0x0 0x20000>; + interrupts = <0x0 0x0 0x4be 0x4>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@302300000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x3 0x2300000 0x0 0xc000 0x3 0x2314000 0x0 0x4000>; + interrupts = <0x0 0x0 0x4be 0x4>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@302180000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x3 0x2180000 0x0 0x20000>; + interrupts = <0x0 0x0 0x4d5 0x4>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + dma-controller@302140000 { + compatible = "apple,t6050-admac", "apple,t8140-admac"; + reg = <0x3 0x2140000 0x0 0x24000>; + dma-channels = <0x1>; + interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x4d4 0x4 0 0 0>; + iommus = <&{/soc/iommu@302180000} 0x1e>; + #dma-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + dma-control@3022f4000 { + compatible = "apple,t6050-admac-control", "apple,admac-control"; + reg = <0x3 0x22f4000 0x0 0x4000 0x3 0x21a0000 0x0 0x4000>; + interrupts = <0x0 0x0 0x4d6 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + dcp-expert@3063ac058 { + compatible = "apple,t6050-dcp-expert", "apple,dcp-expert"; + reg = <0x3 0x63ac058 0x0 0x4 0x3 0x6374000 0x0 0x40 0x3 0x6370000 0x0 0x40>; + interrupts = <0x0 0x0 0x501 0x4>; + status = "disabled"; + }; +}; + +&{/soc} { + mailbox@306e08000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x3 0x6e08000 0x0 0x4000>; + interrupts = <0x0 0x0 0x53b 0x4 0x0 0x0 0x53c 0x4 0x0 0x0 0x53d 0x4 0x0 0x0 0x53e 0x4>; + interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; + #mbox-cells = <0x0>; + status = "disabled"; + }; +}; + +&{/soc} { + dcp@306e00000 { + compatible = "apple,t6050-dcpext", "apple,dcpext"; + reg = <0x3 0x6e00000 0x0 0x4000 0x3 0x4000000 0x0 0x4000000 0x3 0x6240000 0x0 0x10000 0x3 0x63ac000 0x0 0x4000 0x3 0x6800000 0x0 0x800000 0x2 0x86700000 0x0 0x114000 0x3 0x6850000 0x0 0x4000>; + reg-names = "coproc", "disp-0", "disp-1", "disp-2", "disp-3", "disp-4", "iop-vbar"; + mboxes = <&{/soc/mailbox@306e08000}>; + mbox-names = "mbox"; + iommus = <&{/soc/iommu@306340000} 0x17>; + status = "disabled"; + }; +}; + +&{/soc/dcp@306e00000} { + piodma { + iommus = <&{/soc/iommu@306300000} 0x10>; + }; +}; + +&{/soc} { + iommu@306340000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x3 0x6340000 0x0 0x20000>; + interrupts = <0x0 0x0 0x506 0x4>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@306300000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x3 0x6300000 0x0 0xc000 0x3 0x6314000 0x0 0x4000>; + interrupts = <0x0 0x0 0x506 0x4>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@306180000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x3 0x6180000 0x0 0x20000>; + interrupts = <0x0 0x0 0x51d 0x4>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + dma-controller@306140000 { + compatible = "apple,t6050-admac", "apple,t8140-admac"; + reg = <0x3 0x6140000 0x0 0x24000>; + dma-channels = <0x1>; + interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x51c 0x4 0 0 0>; + iommus = <&{/soc/iommu@306180000} 0x1e>; + #dma-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + dma-control@3062f4000 { + compatible = "apple,t6050-admac-control", "apple,admac-control"; + reg = <0x3 0x62f4000 0x0 0x4000 0x3 0x61a0000 0x0 0x4000>; + interrupts = <0x0 0x0 0x51e 0x4>; + status = "disabled"; + }; +}; + +&{/soc/phy@29c200000} { + power-domains = <&{/soc/power-management@280900000/power-controller@3f8}>; +}; + +&{/display-subsystem} { + iommus = <&{/soc/iommu@2b2300000} 0x0 &{/soc/iommu@392300000} 0x0>; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-gpuopp.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-gpuopp.dtsi new file mode 100644 index 0000000000000..3b93d96b82d03 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-gpuopp.dtsi @@ -0,0 +1,277 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* Property migration from Satya Benson's 86b1f365 J775c stack. + * Retained board sources remain the baseline; this group is independently booted. + * Copyright The Asahi Linux Contributors + */ +&{/opp-table-gpu} { +}; + +&{/opp-table-gpu/opp00} { +}; + +&{/opp-table-gpu/opp01} { +}; + +&{/opp-table-gpu/opp02} { +}; + +&{/opp-table-gpu/opp03} { +}; + +&{/opp-table-gpu/opp04} { +}; + +&{/opp-table-gpu/opp05} { +}; + +&{/opp-table-gpu/opp06} { +}; + +&{/opp-table-gpu/opp07} { +}; + +&{/opp-table-gpu/opp08} { +}; + +&{/opp-table-gpu/opp09} { +}; + +&{/opp-table-gpu/opp10} { +}; + +&{/opp-table-gpu/opp11} { +}; + +&{/opp-table-gpu/opp12} { +}; + +&{/opp-table-gpu/opp13} { +}; + +&{/} { + opp-table-gpuafr { + compatible = "operating-points-v2"; + }; +}; + +&{/opp-table-gpuafr} { + opp00 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpuafr} { + opp01 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpuafr} { + opp02 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpuafr} { + opp03 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpuafr} { + opp04 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpuafr} { + opp05 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpuafr} { + opp06 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpuafr} { + opp07 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpuafr} { + opp08 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpuafr} { + opp09 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpuafr} { + opp10 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpuafr} { + opp11 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpuafr} { + opp12 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpuafr} { + opp13 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/} { + opp-table-gpucs { + compatible = "operating-points-v2"; + }; +}; + +&{/opp-table-gpucs} { + opp00 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpucs} { + opp01 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpucs} { + opp02 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpucs} { + opp03 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpucs} { + opp04 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpucs} { + opp05 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpucs} { + opp06 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpucs} { + opp07 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpucs} { + opp08 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpucs} { + opp09 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpucs} { + opp10 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpucs} { + opp11 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpucs} { + opp12 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/opp-table-gpucs} { + opp13 { + opp-hz = <0x0 0x0>; + opp-microvolt = <0x0>; + }; +}; + +&{/soc@2300000000/gpu@2302600000} { + /delete-property/ apple,idleoff-standby-timer; + compatible = "apple,agx-g17c", "apple,agx-g17s"; + mboxes = <&{/soc@2300000000/mailbox@2302600000} &{/soc@2300000000/mailbox@2302e00000}>; + power-domains = <&{/soc@2300000000/power-management@2300e80000/power-controller@110}>; + apple,clpc = <&{/soc/power-management@286806000/performance-controller@1}>; + memory-region = <&{/reserved-memory/uat-ttbs} &{/reserved-memory/uat-pagetables} &{/reserved-memory/uat-handoff} &{/reserved-memory/gpu-fw-data} &{/reserved-memory/uat-l2-pagetables} &{/reserved-memory/gpu-fw-text}>; + operating-points-v2 = <&{/opp-table-gpu}>; + apple,afr-opp = <&{/opp-table-gpuafr}>; + apple,cs-opp = <&{/opp-table-gpucs}>; +}; + +&{/soc@2300000000/mailbox@2302600000} { + power-domains = <&{/soc@2300000000/power-management@2300e80000/power-controller@110}>; +}; + +&{/soc@2300000000/mailbox@2302e00000} { + power-domains = <&{/soc@2300000000/power-management@2300e80000/power-controller@110}>; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pcie.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pcie.dtsi new file mode 100644 index 0000000000000..0a6989093441d --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pcie.dtsi @@ -0,0 +1,41 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* Property migration from Satya Benson's 86b1f365 J775c stack. + * Retained board sources remain the baseline; this group is independently booted. + * Copyright The Asahi Linux Contributors + */ +&{/pcie@1cb0000000} { + msi-parent = <&{/pcie@1cb0000000}>; + iommu-map = <0x100 &{/soc/iommu@412000000} 0x1 0x1 0x200 &{/soc/iommu@413000000} 0x1 0x1 0x300 &{/soc/iommu@410000000} 0x1 0x3 0x400 &{/soc/iommu@411000000} 0x1 0x1>; +}; + +&{/pcie@1cb0000000/pci@2,0} { + interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@2,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@2,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@2,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@2,0} 0x0 0x0 0x0 0x3>; +}; + +&{/pcie@1cb0000000/pci@2,0/ethernet@0,0} { +}; + +&{/pcie@1cb0000000/pci@3,0} { + interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@3,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@3,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@3,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@3,0} 0x0 0x0 0x0 0x3>; +}; + +&{/pcie@1cb0000000/pci@0,0} { + reset-gpios = <&{/soc/pinctrl@29c000000} 0x50 0x1>; + interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@0,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@0,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@0,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@0,0} 0x0 0x0 0x0 0x3>; +}; + +&{/pcie@1cb0000000/pci@0,0/control@0,0} { +}; + +&{/pcie@1cb0000000/pci@0,0/wifi@0,1} { +}; + +&{/pcie@1cb0000000/pci@0,0/bluetooth@0,2} { +}; + +&{/pcie@1cb0000000/pci@1,0} { + interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x3>; +}; + +&{/pcie@1cb0000000/pci@1,0/sdcard@0,0} { +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pmgr.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pmgr.dtsi new file mode 100644 index 0000000000000..22a4c79222cdf --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pmgr.dtsi @@ -0,0 +1,1148 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* Property migration from Satya Benson's 86b1f365 J775c stack. + * Retained board sources remain the baseline; this group is independently booted. + * Copyright The Asahi Linux Contributors + */ +&{/soc/power-management@280600000} { +}; + +&{/soc/power-management@280600000/power-controller@210} { + status = "okay"; +}; + +&{/soc/power-management@280600000/power-controller@238} { +}; + +&{/soc/power-management@280600000/power-controller@240} { + status = "okay"; +}; + +&{/soc/power-management@280600000/power-controller@248} { + status = "okay"; +}; + +&{/soc/power-management@280600000/power-controller@2f8} { + power-domains = <&{/soc/power-management@280600000/power-controller@240}>; + status = "okay"; +}; + +&{/soc/power-management@280600000/power-controller@410} { + power-domains = <&{/soc/power-management@280600000/power-controller@2f8}>; + status = "okay"; +}; + +&{/soc/power-management@280600000/power-controller@418} { + power-domains = <&{/soc/power-management@280600000/power-controller@2f8}>; + status = "okay"; +}; + +&{/soc/power-management@280600000/power-controller@420} { + power-domains = <&{/soc/power-management@280600000/power-controller@2f8} &{/soc/power-management@280600000/power-controller@248}>; + status = "okay"; +}; + +&{/soc/power-management@280600000/power-controller@2e8} { + label = "atc2-cio"; + power-domains = <&{/soc/power-management@280600000/power-controller@238}>; + status = "okay"; +}; + +&{/soc/power-management@280600000/power-controller@3f8} { + label = "atc2-cio-pcie"; + power-domains = <&{/soc/power-management@280600000/power-controller@2e8}>; + status = "okay"; +}; + +&{/soc/power-management@280600000/power-controller@400} { + label = "atc2-cio-usb"; + power-domains = <&{/soc/power-management@280600000/power-controller@2e8}>; + status = "okay"; +}; + +&{/soc/power-management@280600000/power-controller@408} { + label = "atc2-cio-auss"; + power-domains = <&{/soc/power-management@280600000/power-controller@2e8} &{/soc/power-management@280600000/power-controller@248}>; + status = "okay"; +}; + +&{/soc/power-management@280600000} { + power-controller@100 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x100 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "pms"; + status = "disabled"; + }; +}; + +&{/soc/power-management@280600000} { + power-controller@128 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x128 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "pmp"; + power-domains = <&{/soc/power-management@280600000/power-controller@100}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280600000} { + power-controller@130 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x130 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "pms-sram"; + power-domains = <&{/soc/power-management@280600000/power-controller@100}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280600000} { + power-controller@1d8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1d8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "fab0-piogw"; + status = "okay"; + }; +}; + +&{/soc/power-management@280600000} { + power-controller@1e0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1e0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "fab3-soc"; + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; + status = "okay"; + }; +}; + +&{/soc/power-management@280600000} { + power-controller@1f0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1f0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "fab5-soc"; + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280600000} { + power-controller@1f8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1f8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "sbr"; + power-domains = <&{/soc/power-management@280600000/power-controller@1e0}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280600000/power-controller@208} { + label = "atc0-common"; + power-domains = <&{/soc/power-management@280600000/power-controller@1e0}>; + status = "okay"; +}; + +&{/soc/power-management@280600000} { + power-controller@258 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x258 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "msg"; + power-domains = <&{/soc/power-management@280600000/power-controller@1f8}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280600000/power-controller@280} { + label = "atc0-cio"; + power-domains = <&{/soc/power-management@280600000/power-controller@208}>; + status = "okay"; +}; + +&{/soc/power-management@280600000} { + power-controller@288 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x288 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc0-pcie"; + power-domains = <&{/soc/power-management@280600000/power-controller@208}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280600000/power-controller@290} { + label = "atc1-cio"; + power-domains = <&{/soc/power-management@280600000/power-controller@210}>; + status = "okay"; +}; + +&{/soc/power-management@280600000} { + power-controller@298 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x298 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc1-pcie"; + power-domains = <&{/soc/power-management@280600000/power-controller@210}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280600000} { + power-controller@2f0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x2f0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc2-pcie"; + power-domains = <&{/soc/power-management@280600000/power-controller@238}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280600000} { + power-controller@300 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x300 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc3-pcie"; + power-domains = <&{/soc/power-management@280600000/power-controller@240}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280600000/power-controller@338} { + label = "atc0-cio-pcie"; + power-domains = <&{/soc/power-management@280600000/power-controller@280}>; + status = "okay"; +}; + +&{/soc/power-management@280600000/power-controller@340} { + label = "atc0-cio-usb"; + power-domains = <&{/soc/power-management@280600000/power-controller@280}>; + status = "okay"; +}; + +&{/soc/power-management@280600000/power-controller@348} { + label = "atc0-cio-auss"; + power-domains = <&{/soc/power-management@280600000/power-controller@280} &{/soc/power-management@280600000/power-controller@248}>; + status = "okay"; +}; + +&{/soc/power-management@280600000/power-controller@350} { + label = "atc1-cio-pcie"; + power-domains = <&{/soc/power-management@280600000/power-controller@290}>; + status = "okay"; +}; + +&{/soc/power-management@280600000/power-controller@358} { + label = "atc1-cio-usb"; + power-domains = <&{/soc/power-management@280600000/power-controller@290}>; + status = "okay"; +}; + +&{/soc/power-management@280600000/power-controller@360} { + label = "atc1-cio-auss"; + power-domains = <&{/soc/power-management@280600000/power-controller@290} &{/soc/power-management@280600000/power-controller@248}>; + status = "okay"; +}; + +&{/soc/power-management@280600000/power-controller@270} { +}; + +&{/soc/power-management@280600000/power-controller@2d8} { +}; + +&{/soc/power-management@280900000} { +}; + +&{/soc/power-management@280900000} { + power-controller@2a8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x2a8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "fpwm0"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@2b0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x2b0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "fpwm1"; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@2b8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x2b8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "fpwm2"; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000/power-controller@2c8} { +}; + +&{/soc/power-management@280900000/power-controller@2d0} { +}; + +&{/soc/power-management@280900000/power-controller@308} { +}; + +&{/soc/power-management@280900000/power-controller@350} { + power-domains = <&{/soc/power-management@280900000/power-controller@308}>; +}; + +&{/soc/power-management@280900000} { + power-controller@100 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x100 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "ispsens0"; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@108 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x108 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "global-aux-hpd-0"; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@110 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x110 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "global-aux-hpd-1"; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@118 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x118 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "apcie-gp"; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@120 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x120 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "apcie-ge"; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@128 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x128 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "apcie-st0"; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@130 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x130 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "apcie-st1"; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@138 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x138 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "fab6-soc"; + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@140 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x140 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "ans"; + power-domains = <&{/soc/power-management@280900000/power-controller@138}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@148 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x148 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "apcie-sys-gp"; + power-domains = <&{/soc/power-management@280900000/power-controller@118} &{/soc/power-management@280900000/power-controller@138}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@150 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x150 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "apcie-sys-st0"; + power-domains = <&{/soc/power-management@280900000/power-controller@128} &{/soc/power-management@280900000/power-controller@140}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@158 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x158 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "apcie-sys-st1"; + power-domains = <&{/soc/power-management@280900000/power-controller@130} &{/soc/power-management@280900000/power-controller@140}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@178 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x178 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "fab7-soc"; + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@180 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x180 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "disp-sys"; + power-domains = <&{/soc/power-management@280900000/power-controller@178}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@188 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x188 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "apcie-sys-ge"; + power-domains = <&{/soc/power-management@280900000/power-controller@120} &{/soc/power-management@280900000/power-controller@138}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@190 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x190 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "scodec"; + power-domains = <&{/soc/power-management@280900000/power-controller@178}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@198 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x198 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "disp-fe"; + power-domains = <&{/soc/power-management@280900000/power-controller@180}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@1a8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1a8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "disp-cpu"; + power-domains = <&{/soc/power-management@280900000/power-controller@198}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@1b0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1b0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "apcie-phy-sw"; + power-domains = <&{/soc/power-management@280900000/power-controller@148} &{/soc/power-management@280900000/power-controller@188}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@240 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x240 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "aphy-st0-aus5-a"; + power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@248 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x248 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "aphy-st1-aus5-a"; + power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@250 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x250 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "aphy-ge-aus5-a"; + power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@258 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x258 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "aphy-gp-aus5-a"; + power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@268 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x268 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "aphy-st0-aus5"; + power-domains = <&{/soc/power-management@280900000/power-controller@240}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@270 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x270 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "aphy-st1-aus5"; + power-domains = <&{/soc/power-management@280900000/power-controller@248}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@278 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x278 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "aphy-ge-aus5"; + power-domains = <&{/soc/power-management@280900000/power-controller@250}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@280 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x280 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "aphy-gp-aus5"; + power-domains = <&{/soc/power-management@280900000/power-controller@258}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@288 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x288 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "fab8-soc"; + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@290 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x290 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "sio"; + power-domains = <&{/soc/power-management@280900000/power-controller@288}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@298 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x298 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "sep"; + power-domains = <&{/soc/power-management@280900000/power-controller@288}>; + apple,firmware-owned; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@2a0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x2a0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "sio-cpu"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@2c0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x2c0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "i2c0"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@2d8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x2d8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "i2c3"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@2e0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x2e0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "i2c4"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@2e8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x2e8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "i2c5"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@2f0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x2f0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "i2c6"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@2f8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x2f8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "i2c7"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@300 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x300 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "i2c8"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@310 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x310 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "uart-p"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@318 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x318 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "aes"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@330 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x330 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "spi2"; + power-domains = <&{/soc/power-management@280900000/power-controller@308}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@338 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x338 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "spi3"; + power-domains = <&{/soc/power-management@280900000/power-controller@308}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@340 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x340 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "spi4"; + power-domains = <&{/soc/power-management@280900000/power-controller@308}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@360 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x360 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "uart0"; + power-domains = <&{/soc/power-management@280900000/power-controller@310}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@398 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x398 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "fab9-soc"; + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@3a0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x3a0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "isp-sys"; + power-domains = <&{/soc/power-management@280900000/power-controller@398}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000} { + power-controller@3c8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x3c8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "ane-cpu"; + status = "disabled"; + }; +}; + +&{/soc/power-management@280900000/power-controller@3f8} { + label = "dptx-phy"; + status = "disabled"; +}; + +&{/soc/power-management@288300000} { +}; + +&{/soc/power-management@288300000/power-controller@160} { + status = "okay"; +}; + +&{/soc/power-management@288300000/power-controller@168} { + /delete-property/ apple,always-on; + power-domains = <&{/soc/power-management@280600000/power-controller@210} &{/soc/power-management@288300000/power-controller@160}>; + status = "okay"; +}; + +&{/soc/power-management@288300000/power-controller@170} { + power-domains = <&{/soc/power-management@280600000/power-controller@210} &{/soc/power-management@288300000/power-controller@160}>; + status = "okay"; +}; + +&{/soc/power-management@288300000/power-controller@178} { +}; + +&{/soc/power-management@288300000/power-controller@188} { + power-domains = <&{/soc/power-management@280600000/power-controller@238} &{/soc/power-management@288300000/power-controller@178}>; +}; + +&{/soc/power-management@288300000/power-controller@180} { + /delete-property/ apple,always-on; + power-domains = <&{/soc/power-management@280600000/power-controller@238} &{/soc/power-management@288300000/power-controller@178}>; +}; + +&{/soc/power-management@288300000/power-controller@190} { + status = "okay"; +}; + +&{/soc/power-management@288300000/power-controller@198} { + /delete-property/ apple,always-on; + power-domains = <&{/soc/power-management@280600000/power-controller@240} &{/soc/power-management@288300000/power-controller@190}>; + status = "okay"; +}; + +&{/soc/power-management@288300000/power-controller@1a0} { + power-domains = <&{/soc/power-management@280600000/power-controller@240} &{/soc/power-management@288300000/power-controller@190}>; + status = "okay"; +}; + +&{/soc/power-management@288300000} { + power-controller@58 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x58 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "debug-gated"; + status = "disabled"; + }; +}; + +&{/soc/power-management@288300000} { + power-controller@98 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x98 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc0-common-dp-0"; + status = "disabled"; + }; +}; + +&{/soc/power-management@288300000} { + power-controller@a0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0xa0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc0-common-dp-1"; + status = "disabled"; + }; +}; + +&{/soc/power-management@288300000} { + power-controller@a8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0xa8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc0-common-dp-2"; + status = "disabled"; + }; +}; + +&{/soc/power-management@288300000} { + power-controller@b0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0xb0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc0-common-dp-3"; + status = "disabled"; + }; +}; + +&{/soc/power-management@288300000} { + power-controller@b8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0xb8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc1-common-dp-0"; + status = "disabled"; + }; +}; + +&{/soc/power-management@288300000} { + power-controller@c0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0xc0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc1-common-dp-1"; + status = "disabled"; + }; +}; + +&{/soc/power-management@288300000} { + power-controller@c8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0xc8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc1-common-dp-2"; + status = "disabled"; + }; +}; + +&{/soc/power-management@288300000} { + power-controller@d0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0xd0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc1-common-dp-3"; + status = "disabled"; + }; +}; + +&{/soc/power-management@288300000} { + power-controller@d8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0xd8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc2-common-dp-0"; + status = "disabled"; + }; +}; + +&{/soc/power-management@288300000} { + power-controller@e0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0xe0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc2-common-dp-1"; + status = "disabled"; + }; +}; + +&{/soc/power-management@288300000} { + power-controller@e8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0xe8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc2-common-dp-2"; + status = "disabled"; + }; +}; + +&{/soc/power-management@288300000} { + power-controller@f0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0xf0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc2-common-dp-3"; + status = "disabled"; + }; +}; + +&{/soc/power-management@288300000} { + power-controller@f8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0xf8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc3-common-dp-0"; + status = "disabled"; + }; +}; + +&{/soc/power-management@288300000} { + power-controller@100 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x100 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc3-common-dp-1"; + status = "disabled"; + }; +}; + +&{/soc/power-management@288300000} { + power-controller@108 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x108 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc3-common-dp-2"; + status = "disabled"; + }; +}; + +&{/soc/power-management@288300000} { + power-controller@110 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x110 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "atc3-common-dp-3"; + status = "disabled"; + }; +}; + +&{/soc/power-management@288300000/power-controller@148} { + label = "atc0-usb-aon"; + status = "okay"; +}; + +&{/soc/power-management@288300000/power-controller@150} { + /delete-property/ apple,always-on; + label = "atc0-usb"; + power-domains = <&{/soc/power-management@280600000/power-controller@208} &{/soc/power-management@288300000/power-controller@148}>; + status = "okay"; +}; + +&{/soc/power-management@288300000/power-controller@158} { + label = "atc0-phymxwrap"; + power-domains = <&{/soc/power-management@280600000/power-controller@208} &{/soc/power-management@288300000/power-controller@148}>; + status = "okay"; +}; + +&{/soc/power-management@286806000} { +}; + +&{/soc/power-management@286806000/performance-controller@1} { +}; + +&{/soc@2300000000/power-management@2300e80000} { + status = "okay"; +}; + +&{/soc@2300000000/power-management@2300e80000/power-controller@0} { +}; + +&{/soc@2300000000/power-management@2300e80000/power-controller@100} { +}; + +&{/soc@2300000000/power-management@2300e80000/power-controller@110} { + power-domains = <&{/soc@2300000000/power-management@2300e80000/power-controller@100} &{/soc@2300000000/power-management@2300e80000/power-controller@0}>; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pmgr4.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pmgr4.dtsi new file mode 100644 index 0000000000000..e9740512533eb --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pmgr4.dtsi @@ -0,0 +1,269 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* Property migration from Satya Benson's 86b1f365 J775c stack. + * Retained board sources remain the baseline; this group is independently booted. + * Copyright The Asahi Linux Contributors + */ +&{/soc/power-management@2380600000} { + status = "disabled"; +}; + +&{/soc/power-management@2380600000/power-controller@1b0} { + /delete-property/ apple,always-on; + status = "disabled"; +}; + +&{/soc/power-management@2380600000/power-controller@1d8} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1b0}>; + status = "disabled"; +}; + +&{/soc/power-management@2380600000} { + power-controller@1a0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1a0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "fab1-piogw"; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@1a8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1a8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "fab0-soc"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1a0}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@1b8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1b8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "fab2-soc"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1a0}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@1c0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1c0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "venc0-sys"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1a8}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@1c8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1c8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "msr0"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1a8}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@1d0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1d0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "jpg"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1a8}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@1e0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1e0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "prores"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1b0}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@1f0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1f0 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "venc1-sys"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1b8}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@1f8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1f8 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "msr1"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1b8}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@200 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x200 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "msr0-ase-core"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1c8}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@208 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x208 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "msr1-ase-core"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1f8}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@8000 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x8000 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "venc0-dma"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1c0}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@8008 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x8008 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "venc0-pipe4"; + power-domains = <&{/soc/power-management@2380600000/power-controller@8000}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@8010 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x8010 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "venc0-pipe5"; + power-domains = <&{/soc/power-management@2380600000/power-controller@8000}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@8018 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x8018 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "venc0-me0"; + power-domains = <&{/soc/power-management@2380600000/power-controller@8000}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@8020 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x8020 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "venc0-me1"; + power-domains = <&{/soc/power-management@2380600000/power-controller@8018}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@8028 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x8028 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "venc1-dma"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1f0}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@8030 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x8030 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "venc1-pipe4"; + power-domains = <&{/soc/power-management@2380600000/power-controller@8028}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@8038 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x8038 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "venc1-pipe5"; + power-domains = <&{/soc/power-management@2380600000/power-controller@8028}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@8040 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x8040 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "venc1-me0"; + power-domains = <&{/soc/power-management@2380600000/power-controller@8028}>; + status = "disabled"; + }; +}; + +&{/soc/power-management@2380600000} { + power-controller@8048 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x8048 0x4>; + #power-domain-cells = <0x0>; + #reset-cells = <0x0>; + label = "venc1-me1"; + power-domains = <&{/soc/power-management@2380600000/power-controller@8040}>; + status = "disabled"; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-remaining-nogpu.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-remaining-nogpu.dtsi new file mode 100644 index 0000000000000..e038f103da61f --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-remaining-nogpu.dtsi @@ -0,0 +1,2354 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* Property migration from Satya Benson's 86b1f365 J775c stack. + * Retained board sources remain the baseline; this group is independently booted. + * Copyright The Asahi Linux Contributors + */ +&{/} { + interrupt-parent = <&{/soc/interrupt-controller@280400000}>; +}; + +&{/memory@10000000000} { +}; + +&{/reserved-memory} { +}; + +&{/reserved-memory/uat-ttbs} { +}; + +&{/reserved-memory/uat-pagetables} { +}; + +&{/reserved-memory/uat-handoff} { +}; + +&{/reserved-memory/uat-l2-pagetables} { +}; + +&{/reserved-memory/gpu-fw-text} { +}; + +&{/reserved-memory/gpu-fw-data} { +}; + +&{/cpus} { +}; + +&{/cpus/cpu@40000} { + operating-points-v2 = <&{/opp-table-mcluster}>; + performance-domains = <&{/soc/performance-controller@210e20000}>; + next-level-cache = <&{/cpus/l2-cache-m00}>; +}; + +&{/cpus/cpu@40001} { + operating-points-v2 = <&{/opp-table-mcluster}>; + performance-domains = <&{/soc/performance-controller@210e20000}>; + next-level-cache = <&{/cpus/l2-cache-m00}>; +}; + +&{/cpus/cpu@40002} { + operating-points-v2 = <&{/opp-table-mcluster}>; + performance-domains = <&{/soc/performance-controller@210e20000}>; + next-level-cache = <&{/cpus/l2-cache-m00}>; +}; + +&{/cpus/cpu@40003} { + operating-points-v2 = <&{/opp-table-mcluster}>; + performance-domains = <&{/soc/performance-controller@210e20000}>; + next-level-cache = <&{/cpus/l2-cache-m00}>; +}; + +&{/cpus/cpu@40004} { + operating-points-v2 = <&{/opp-table-mcluster}>; + performance-domains = <&{/soc/performance-controller@210e20000}>; + next-level-cache = <&{/cpus/l2-cache-m00}>; +}; + +&{/cpus/cpu@40005} { + operating-points-v2 = <&{/opp-table-mcluster}>; + performance-domains = <&{/soc/performance-controller@210e20000}>; + next-level-cache = <&{/cpus/l2-cache-m00}>; +}; + +&{/cpus/cpu@40100} { + operating-points-v2 = <&{/opp-table-mcluster}>; + performance-domains = <&{/soc/performance-controller@211e20000}>; + next-level-cache = <&{/cpus/l2-cache-m01}>; +}; + +&{/cpus/cpu@40101} { + operating-points-v2 = <&{/opp-table-mcluster}>; + performance-domains = <&{/soc/performance-controller@211e20000}>; + next-level-cache = <&{/cpus/l2-cache-m01}>; +}; + +&{/cpus/cpu@40102} { + operating-points-v2 = <&{/opp-table-mcluster}>; + performance-domains = <&{/soc/performance-controller@211e20000}>; + next-level-cache = <&{/cpus/l2-cache-m01}>; +}; + +&{/cpus/cpu@40103} { + operating-points-v2 = <&{/opp-table-mcluster}>; + performance-domains = <&{/soc/performance-controller@211e20000}>; + next-level-cache = <&{/cpus/l2-cache-m01}>; +}; + +&{/cpus/cpu@40104} { + operating-points-v2 = <&{/opp-table-mcluster}>; + performance-domains = <&{/soc/performance-controller@211e20000}>; + next-level-cache = <&{/cpus/l2-cache-m01}>; +}; + +&{/cpus/cpu@40105} { + operating-points-v2 = <&{/opp-table-mcluster}>; + performance-domains = <&{/soc/performance-controller@211e20000}>; + next-level-cache = <&{/cpus/l2-cache-m01}>; +}; + +&{/cpus/cpu@10200} { + operating-points-v2 = <&{/opp-table-pcluster}>; + performance-domains = <&{/soc/performance-controller@212e20000}>; + next-level-cache = <&{/cpus/l2-cache-p0-0}>; +}; + +&{/cpus/cpu@10201} { + operating-points-v2 = <&{/opp-table-pcluster}>; + performance-domains = <&{/soc/performance-controller@212e20000}>; + next-level-cache = <&{/cpus/l2-cache-p0-1}>; +}; + +&{/cpus/cpu@10202} { + operating-points-v2 = <&{/opp-table-pcluster}>; + performance-domains = <&{/soc/performance-controller@212e20000}>; + next-level-cache = <&{/cpus/l2-cache-p0-2}>; +}; + +&{/cpus/cpu@10203} { + operating-points-v2 = <&{/opp-table-pcluster}>; + performance-domains = <&{/soc/performance-controller@212e20000}>; + next-level-cache = <&{/cpus/l2-cache-p0-3}>; +}; + +&{/cpus/cpu@10204} { + operating-points-v2 = <&{/opp-table-pcluster}>; + performance-domains = <&{/soc/performance-controller@212e20000}>; + next-level-cache = <&{/cpus/l2-cache-p0-4}>; +}; + +&{/cpus/cpu@10205} { + operating-points-v2 = <&{/opp-table-pcluster}>; + performance-domains = <&{/soc/performance-controller@212e20000}>; + next-level-cache = <&{/cpus/l2-cache-p0-5}>; +}; + +&{/cpus/cpu-map} { +}; + +&{/cpus/cpu-map/cluster0} { +}; + +&{/cpus/cpu-map/cluster0/core0} { + cpu = <&{/cpus/cpu@40000}>; +}; + +&{/cpus/cpu-map/cluster0/core1} { + cpu = <&{/cpus/cpu@40001}>; +}; + +&{/cpus/cpu-map/cluster0/core2} { + cpu = <&{/cpus/cpu@40002}>; +}; + +&{/cpus/cpu-map/cluster0/core3} { + cpu = <&{/cpus/cpu@40003}>; +}; + +&{/cpus/cpu-map/cluster0/core4} { + cpu = <&{/cpus/cpu@40004}>; +}; + +&{/cpus/cpu-map/cluster0/core5} { + cpu = <&{/cpus/cpu@40005}>; +}; + +&{/cpus/cpu-map/cluster1} { +}; + +&{/cpus/cpu-map/cluster1/core0} { + cpu = <&{/cpus/cpu@40100}>; +}; + +&{/cpus/cpu-map/cluster1/core1} { + cpu = <&{/cpus/cpu@40101}>; +}; + +&{/cpus/cpu-map/cluster1/core2} { + cpu = <&{/cpus/cpu@40102}>; +}; + +&{/cpus/cpu-map/cluster1/core3} { + cpu = <&{/cpus/cpu@40103}>; +}; + +&{/cpus/cpu-map/cluster1/core4} { + cpu = <&{/cpus/cpu@40104}>; +}; + +&{/cpus/cpu-map/cluster1/core5} { + cpu = <&{/cpus/cpu@40105}>; +}; + +&{/cpus/cpu-map/cluster2} { +}; + +&{/cpus/cpu-map/cluster2/core0} { + cpu = <&{/cpus/cpu@10200}>; +}; + +&{/cpus/cpu-map/cluster2/core1} { + cpu = <&{/cpus/cpu@10201}>; +}; + +&{/cpus/cpu-map/cluster2/core2} { + cpu = <&{/cpus/cpu@10202}>; +}; + +&{/cpus/cpu-map/cluster2/core3} { + cpu = <&{/cpus/cpu@10203}>; +}; + +&{/cpus/cpu-map/cluster2/core4} { + cpu = <&{/cpus/cpu@10204}>; +}; + +&{/cpus/cpu-map/cluster2/core5} { + cpu = <&{/cpus/cpu@10205}>; +}; + +&{/cpus/l2-cache-m00} { +}; + +&{/cpus/l2-cache-m01} { +}; + +&{/cpus/l3-cache-p0} { +}; + +&{/cpus/l2-cache-p0-0} { + next-level-cache = <&{/cpus/l3-cache-p0}>; +}; + +&{/cpus/l2-cache-p0-1} { + next-level-cache = <&{/cpus/l3-cache-p0}>; +}; + +&{/cpus/l2-cache-p0-2} { + next-level-cache = <&{/cpus/l3-cache-p0}>; +}; + +&{/cpus/l2-cache-p0-3} { + next-level-cache = <&{/cpus/l3-cache-p0}>; +}; + +&{/cpus/l2-cache-p0-4} { + next-level-cache = <&{/cpus/l3-cache-p0}>; +}; + +&{/cpus/l2-cache-p0-5} { + next-level-cache = <&{/cpus/l3-cache-p0}>; +}; + +&{/opp-table-mcluster} { +}; + +&{/opp-table-mcluster/opp01} { +}; + +&{/opp-table-mcluster/opp02} { +}; + +&{/opp-table-mcluster/opp03} { +}; + +&{/opp-table-mcluster/opp04} { +}; + +&{/opp-table-mcluster/opp05} { +}; + +&{/opp-table-mcluster/opp06} { +}; + +&{/opp-table-mcluster/opp07} { +}; + +&{/opp-table-mcluster/opp08} { +}; + +&{/opp-table-mcluster/opp09} { +}; + +&{/opp-table-mcluster/opp10} { +}; + +&{/opp-table-mcluster/opp11} { +}; + +&{/opp-table-mcluster/opp12} { +}; + +&{/opp-table-mcluster/opp13} { +}; + +&{/opp-table-mcluster/opp14} { +}; + +&{/opp-table-mcluster/opp15} { +}; + +&{/opp-table-mcluster/opp16} { +}; + +&{/opp-table-pcluster} { +}; + +&{/opp-table-pcluster/opp01} { +}; + +&{/opp-table-pcluster/opp02} { +}; + +&{/opp-table-pcluster/opp03} { +}; + +&{/opp-table-pcluster/opp04} { +}; + +&{/opp-table-pcluster/opp05} { +}; + +&{/opp-table-pcluster/opp06} { +}; + +&{/opp-table-pcluster/opp07} { +}; + +&{/opp-table-pcluster/opp08} { +}; + +&{/opp-table-pcluster/opp09} { +}; + +&{/opp-table-pcluster/opp10} { +}; + +&{/opp-table-pcluster/opp11} { +}; + +&{/opp-table-pcluster/opp12} { +}; + +&{/opp-table-pcluster/opp13} { +}; + +&{/opp-table-pcluster/opp14} { +}; + +&{/opp-table-pcluster/opp15} { +}; + +&{/opp-table-pcluster/opp16} { +}; + +&{/opp-table-pcluster/opp17} { +}; + +&{/opp-table-pcluster/opp18} { +}; + +&{/opp-table-pcluster/opp19} { +}; + +&{/opp-table-pcluster/opp20} { +}; + +&{/opp-table-pcluster/opp21} { +}; + +&{/clock-ref} { +}; + +&{/clock-405m} { +}; + +&{/timer} { + interrupt-parent = <&{/soc/interrupt-controller@280400000}>; +}; + +&{/soc/performance-controller@210e20000} { +}; + +&{/soc/performance-controller@211e20000} { +}; + +&{/soc/performance-controller@212e20000} { +}; + +&{/soc/power-management@280600000} { +}; + +&{/soc/power-management@280600000/power-controller@210} { +}; + +&{/soc/power-management@280600000/power-controller@238} { +}; + +&{/soc/power-management@280600000/power-controller@240} { +}; + +&{/soc/power-management@280600000/power-controller@248} { +}; + +&{/soc/power-management@280600000/power-controller@2f8} { + power-domains = <&{/soc/power-management@280600000/power-controller@240}>; +}; + +&{/soc/power-management@280600000/power-controller@410} { + power-domains = <&{/soc/power-management@280600000/power-controller@2f8}>; +}; + +&{/soc/power-management@280600000/power-controller@418} { + power-domains = <&{/soc/power-management@280600000/power-controller@2f8}>; +}; + +&{/soc/power-management@280600000/power-controller@420} { + power-domains = <&{/soc/power-management@280600000/power-controller@2f8} &{/soc/power-management@280600000/power-controller@248}>; +}; + +&{/soc/power-management@280600000/power-controller@2e8} { + power-domains = <&{/soc/power-management@280600000/power-controller@238}>; +}; + +&{/soc/power-management@280600000/power-controller@3f8} { + power-domains = <&{/soc/power-management@280600000/power-controller@2e8}>; +}; + +&{/soc/power-management@280600000/power-controller@400} { + power-domains = <&{/soc/power-management@280600000/power-controller@2e8}>; +}; + +&{/soc/power-management@280600000/power-controller@408} { + power-domains = <&{/soc/power-management@280600000/power-controller@2e8} &{/soc/power-management@280600000/power-controller@248}>; +}; + +&{/soc/power-management@280600000/power-controller@100} { +}; + +&{/soc/power-management@280600000/power-controller@128} { + power-domains = <&{/soc/power-management@280600000/power-controller@100}>; +}; + +&{/soc/power-management@280600000/power-controller@130} { + power-domains = <&{/soc/power-management@280600000/power-controller@100}>; +}; + +&{/soc/power-management@280600000/power-controller@1d8} { +}; + +&{/soc/power-management@280600000/power-controller@1e0} { + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; +}; + +&{/soc/power-management@280600000/power-controller@1f0} { + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; +}; + +&{/soc/power-management@280600000/power-controller@1f8} { + power-domains = <&{/soc/power-management@280600000/power-controller@1e0}>; +}; + +&{/soc/power-management@280600000/power-controller@208} { + power-domains = <&{/soc/power-management@280600000/power-controller@1e0}>; +}; + +&{/soc/power-management@280600000/power-controller@258} { + power-domains = <&{/soc/power-management@280600000/power-controller@1f8}>; +}; + +&{/soc/power-management@280600000/power-controller@280} { + power-domains = <&{/soc/power-management@280600000/power-controller@208}>; +}; + +&{/soc/power-management@280600000/power-controller@288} { + power-domains = <&{/soc/power-management@280600000/power-controller@208}>; +}; + +&{/soc/power-management@280600000/power-controller@290} { + power-domains = <&{/soc/power-management@280600000/power-controller@210}>; +}; + +&{/soc/power-management@280600000/power-controller@298} { + power-domains = <&{/soc/power-management@280600000/power-controller@210}>; +}; + +&{/soc/power-management@280600000/power-controller@2f0} { + power-domains = <&{/soc/power-management@280600000/power-controller@238}>; +}; + +&{/soc/power-management@280600000/power-controller@300} { + power-domains = <&{/soc/power-management@280600000/power-controller@240}>; +}; + +&{/soc/power-management@280600000/power-controller@338} { + power-domains = <&{/soc/power-management@280600000/power-controller@280}>; +}; + +&{/soc/power-management@280600000/power-controller@340} { + power-domains = <&{/soc/power-management@280600000/power-controller@280}>; +}; + +&{/soc/power-management@280600000/power-controller@348} { + power-domains = <&{/soc/power-management@280600000/power-controller@280} &{/soc/power-management@280600000/power-controller@248}>; +}; + +&{/soc/power-management@280600000/power-controller@350} { + power-domains = <&{/soc/power-management@280600000/power-controller@290}>; +}; + +&{/soc/power-management@280600000/power-controller@358} { + power-domains = <&{/soc/power-management@280600000/power-controller@290}>; +}; + +&{/soc/power-management@280600000/power-controller@360} { + power-domains = <&{/soc/power-management@280600000/power-controller@290} &{/soc/power-management@280600000/power-controller@248}>; +}; + +&{/soc/power-management@280600000/power-controller@270} { +}; + +&{/soc/power-management@280600000/power-controller@2d8} { +}; + +&{/soc/power-management@280900000} { +}; + +&{/soc/power-management@280900000/power-controller@2a8} { +}; + +&{/soc/power-management@280900000/power-controller@2b0} { +}; + +&{/soc/power-management@280900000/power-controller@2b8} { +}; + +&{/soc/power-management@280900000/power-controller@2c8} { +}; + +&{/soc/power-management@280900000/power-controller@2d0} { +}; + +&{/soc/power-management@280900000/power-controller@308} { +}; + +&{/soc/power-management@280900000/power-controller@350} { + power-domains = <&{/soc/power-management@280900000/power-controller@308}>; +}; + +&{/soc/power-management@280900000/power-controller@100} { +}; + +&{/soc/power-management@280900000/power-controller@108} { +}; + +&{/soc/power-management@280900000/power-controller@110} { +}; + +&{/soc/power-management@280900000/power-controller@118} { +}; + +&{/soc/power-management@280900000/power-controller@120} { +}; + +&{/soc/power-management@280900000/power-controller@128} { +}; + +&{/soc/power-management@280900000/power-controller@130} { +}; + +&{/soc/power-management@280900000/power-controller@138} { + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; +}; + +&{/soc/power-management@280900000/power-controller@140} { + power-domains = <&{/soc/power-management@280900000/power-controller@138}>; +}; + +&{/soc/power-management@280900000/power-controller@148} { + power-domains = <&{/soc/power-management@280900000/power-controller@118} &{/soc/power-management@280900000/power-controller@138}>; +}; + +&{/soc/power-management@280900000/power-controller@150} { + power-domains = <&{/soc/power-management@280900000/power-controller@128} &{/soc/power-management@280900000/power-controller@140}>; +}; + +&{/soc/power-management@280900000/power-controller@158} { + power-domains = <&{/soc/power-management@280900000/power-controller@130} &{/soc/power-management@280900000/power-controller@140}>; +}; + +&{/soc/power-management@280900000/power-controller@178} { + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; +}; + +&{/soc/power-management@280900000/power-controller@180} { + power-domains = <&{/soc/power-management@280900000/power-controller@178}>; +}; + +&{/soc/power-management@280900000/power-controller@188} { + power-domains = <&{/soc/power-management@280900000/power-controller@120} &{/soc/power-management@280900000/power-controller@138}>; +}; + +&{/soc/power-management@280900000/power-controller@190} { + power-domains = <&{/soc/power-management@280900000/power-controller@178}>; +}; + +&{/soc/power-management@280900000/power-controller@198} { + power-domains = <&{/soc/power-management@280900000/power-controller@180}>; +}; + +&{/soc/power-management@280900000/power-controller@1a8} { + power-domains = <&{/soc/power-management@280900000/power-controller@198}>; +}; + +&{/soc/power-management@280900000/power-controller@1b0} { + power-domains = <&{/soc/power-management@280900000/power-controller@148} &{/soc/power-management@280900000/power-controller@188}>; +}; + +&{/soc/power-management@280900000/power-controller@240} { + power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; +}; + +&{/soc/power-management@280900000/power-controller@248} { + power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; +}; + +&{/soc/power-management@280900000/power-controller@250} { + power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; +}; + +&{/soc/power-management@280900000/power-controller@258} { + power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; +}; + +&{/soc/power-management@280900000/power-controller@268} { + power-domains = <&{/soc/power-management@280900000/power-controller@240}>; +}; + +&{/soc/power-management@280900000/power-controller@270} { + power-domains = <&{/soc/power-management@280900000/power-controller@248}>; +}; + +&{/soc/power-management@280900000/power-controller@278} { + power-domains = <&{/soc/power-management@280900000/power-controller@250}>; +}; + +&{/soc/power-management@280900000/power-controller@280} { + power-domains = <&{/soc/power-management@280900000/power-controller@258}>; +}; + +&{/soc/power-management@280900000/power-controller@288} { + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; +}; + +&{/soc/power-management@280900000/power-controller@290} { + power-domains = <&{/soc/power-management@280900000/power-controller@288}>; +}; + +&{/soc/power-management@280900000/power-controller@298} { + power-domains = <&{/soc/power-management@280900000/power-controller@288}>; +}; + +&{/soc/power-management@280900000/power-controller@2a0} { + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; +}; + +&{/soc/power-management@280900000/power-controller@2c0} { + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; +}; + +&{/soc/power-management@280900000/power-controller@2d8} { + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; +}; + +&{/soc/power-management@280900000/power-controller@2e0} { + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; +}; + +&{/soc/power-management@280900000/power-controller@2e8} { + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; +}; + +&{/soc/power-management@280900000/power-controller@2f0} { + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; +}; + +&{/soc/power-management@280900000/power-controller@2f8} { + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; +}; + +&{/soc/power-management@280900000/power-controller@300} { + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; +}; + +&{/soc/power-management@280900000/power-controller@310} { + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; +}; + +&{/soc/power-management@280900000/power-controller@318} { + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; +}; + +&{/soc/power-management@280900000/power-controller@330} { + power-domains = <&{/soc/power-management@280900000/power-controller@308}>; +}; + +&{/soc/power-management@280900000/power-controller@338} { + power-domains = <&{/soc/power-management@280900000/power-controller@308}>; +}; + +&{/soc/power-management@280900000/power-controller@340} { + power-domains = <&{/soc/power-management@280900000/power-controller@308}>; +}; + +&{/soc/power-management@280900000/power-controller@360} { + power-domains = <&{/soc/power-management@280900000/power-controller@310}>; +}; + +&{/soc/power-management@280900000/power-controller@398} { + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; +}; + +&{/soc/power-management@280900000/power-controller@3a0} { + power-domains = <&{/soc/power-management@280900000/power-controller@398}>; +}; + +&{/soc/power-management@280900000/power-controller@3c8} { +}; + +&{/soc/power-management@280900000/power-controller@3f8} { +}; + +&{/soc/power-management@288300000} { +}; + +&{/soc/power-management@288300000/power-controller@160} { +}; + +&{/soc/power-management@288300000/power-controller@168} { + power-domains = <&{/soc/power-management@280600000/power-controller@210} &{/soc/power-management@288300000/power-controller@160}>; +}; + +&{/soc/power-management@288300000/power-controller@170} { + power-domains = <&{/soc/power-management@280600000/power-controller@210} &{/soc/power-management@288300000/power-controller@160}>; +}; + +&{/soc/power-management@288300000/power-controller@178} { +}; + +&{/soc/power-management@288300000/power-controller@188} { + power-domains = <&{/soc/power-management@280600000/power-controller@238} &{/soc/power-management@288300000/power-controller@178}>; +}; + +&{/soc/power-management@288300000/power-controller@180} { + power-domains = <&{/soc/power-management@280600000/power-controller@238} &{/soc/power-management@288300000/power-controller@178}>; +}; + +&{/soc/power-management@288300000/power-controller@190} { +}; + +&{/soc/power-management@288300000/power-controller@198} { + power-domains = <&{/soc/power-management@280600000/power-controller@240} &{/soc/power-management@288300000/power-controller@190}>; +}; + +&{/soc/power-management@288300000/power-controller@1a0} { + power-domains = <&{/soc/power-management@280600000/power-controller@240} &{/soc/power-management@288300000/power-controller@190}>; +}; + +&{/soc/power-management@288300000/power-controller@58} { +}; + +&{/soc/power-management@288300000/power-controller@98} { +}; + +&{/soc/power-management@288300000/power-controller@a0} { +}; + +&{/soc/power-management@288300000/power-controller@a8} { +}; + +&{/soc/power-management@288300000/power-controller@b0} { +}; + +&{/soc/power-management@288300000/power-controller@b8} { +}; + +&{/soc/power-management@288300000/power-controller@c0} { +}; + +&{/soc/power-management@288300000/power-controller@c8} { +}; + +&{/soc/power-management@288300000/power-controller@d0} { +}; + +&{/soc/power-management@288300000/power-controller@d8} { +}; + +&{/soc/power-management@288300000/power-controller@e0} { +}; + +&{/soc/power-management@288300000/power-controller@e8} { +}; + +&{/soc/power-management@288300000/power-controller@f0} { +}; + +&{/soc/power-management@288300000/power-controller@f8} { +}; + +&{/soc/power-management@288300000/power-controller@100} { +}; + +&{/soc/power-management@288300000/power-controller@108} { +}; + +&{/soc/power-management@288300000/power-controller@110} { +}; + +&{/soc/power-management@288300000/power-controller@148} { +}; + +&{/soc/power-management@288300000/power-controller@150} { + power-domains = <&{/soc/power-management@280600000/power-controller@208} &{/soc/power-management@288300000/power-controller@148}>; +}; + +&{/soc/power-management@288300000/power-controller@158} { + power-domains = <&{/soc/power-management@280600000/power-controller@208} &{/soc/power-management@288300000/power-controller@148}>; +}; + +&{/soc/iommu@2b2340000} { +}; + +&{/soc/iommu@2b2300000} { +}; + +&{/soc/mailbox@2b2e08000} { +}; + +&{/soc/pmc-metadata@286700000} { +}; + +&{/soc/dcp@2b2e00000} { + mboxes = <&{/soc/mailbox@2b2e08000}>; + iommus = <&{/soc/iommu@2b2340000} 0x17>; + apple,bw-scratch = <&{/soc/pmc-metadata@286700000} 0x0 0x5 0x2c000>; + phys = <&{/soc/phy@383000000} 0x6 &{/soc/phy@2ab000000} 0x6 &{/soc/phy@38b000000} 0x6 &{/soc/phy@2a3000000} 0x6>; + mux-controls = <&{/soc/mux@38324c000} 0x0 &{/soc/mux@2ab24c000} 0x0 &{/soc/mux@38b24c000} 0x0 &{/soc/mux@2a324c000} 0x0>; +}; + +&{/soc/dcp@2b2e00000/piodma} { + iommus = <&{/soc/iommu@2b2300000} 0x10>; +}; + +&{/soc/dcp@2b2e00000/typec-routes} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@0} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@0/port} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@0/port/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@2/endpoint}>; +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@1} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@1/port} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@1/port/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@2/endpoint}>; +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@2} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@2/port} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@2/port/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@2/endpoint}>; +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@3} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@3/port} { +}; + +&{/soc/dcp@2b2e00000/typec-routes/route@3/port/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@2/endpoint}>; +}; + +&{/soc/dcp@2b2e00000/ports} { +}; + +&{/soc/dcp@2b2e00000/ports/port@0} { +}; + +&{/soc/dcp@2b2e00000/ports/port@0/endpoint} { + remote-endpoint = <&{/audio-controller-dispext0/ports/port@0/endpoint}>; +}; + +&{/soc/mailbox@2ab148000} { + status = "okay"; +}; + +&{/soc/phy@2ab000000} { + mboxes = <&{/soc/mailbox@2ab148000}>; + power-domains = <&{/soc/power-management@288300000/power-controller@160} &{/soc/power-management@280600000/power-controller@210} &{/soc/power-management@288300000/power-controller@170} &{/soc/power-management@288300000/power-controller@168}>; +}; + +&{/soc/phy@2ab000000/port} { +}; + +&{/soc/phy@2ab000000/port/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@1/endpoint}>; +}; + +&{/soc/usb@2aa280000} { + iommus = <&{/soc/iommu@2aaf00000} 0x0 &{/soc/iommu@2aaf80000} 0x1>; + power-domains = <&{/soc/power-management@288300000/power-controller@168}>; + resets = <&{/soc/phy@2ab000000} 0x0>; + phys = <&{/soc/phy@2ab000000} 0x3 &{/soc/phy@2ab000000} 0x4>; +}; + +&{/soc/usb@2aa280000/port} { +}; + +&{/soc/usb@2aa280000/port/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@0/endpoint}>; +}; + +&{/soc/iommu@2aaf00000} { + power-domains = <&{/soc/power-management@288300000/power-controller@168}>; +}; + +&{/soc/iommu@2aaf80000} { + power-domains = <&{/soc/power-management@288300000/power-controller@168}>; +}; + +&{/soc/interrupt-controller@280400000} { +}; + +&{/soc/serial@288e3c000} { +}; + +&{/soc/watchdog@28836c000} { + clocks = <&{/clock-ref}>; +}; + +&{/soc/mailbox@28c608000} { +}; + +&{/soc/pinctrl@290824000} { + gpio-ranges = <&{/soc/pinctrl@290824000} 0x0 0x0 0x55>; + interrupt-parent = <&{/soc/interrupt-controller@280400000}>; +}; + +&{/soc/pinctrl@290824000/acio0-lstx-pins} { +}; + +&{/soc/pinctrl@290824000/acio1-lstx-pins} { +}; + +&{/soc/pinctrl@290824000/acio3-lstx-pins} { +}; + +&{/soc/pinctrl@290824000/acio2-lstx-pins} { +}; + +&{/soc/smc@28c600000} { + mboxes = <&{/soc/mailbox@28c608000}>; +}; + +&{/soc/smc@28c600000/gpio-low} { +}; + +&{/soc/smc@28c600000/hwmon} { +}; + +&{/soc/smc@28c600000/hwmon/fan-F0Ac} { +}; + +&{/soc/smc@28c600000/hwmon/fan-F1Ac} { +}; + +&{/soc/smc@28c600000/reboot} { + nvmem-cells = <&{/soc/spmi@28a014000/pmic@e/nvmem-layout/shutdown-flag@f80f,3} &{/soc/spmi@28a014000/pmic@e/nvmem-layout/boot-stage@f801} &{/soc/spmi@28a014000/pmic@e/nvmem-layout/boot-error-count@f802,0} &{/soc/spmi@28a014000/pmic@e/nvmem-layout/panic-count@f802,4} &{/soc/spmi@28a014000/pmic@e/nvmem-layout/pm-setting@2001}>; +}; + +&{/soc/smc@28c600000/gpio} { +}; + +&{/soc/smc@28c600000/rtc} { + /delete-property/ wakeup-source; + /delete-property/ interrupts-extended; + nvmem-cells = <&{/soc/spmi@28a014000/pmic@e/nvmem-layout/rtc-offset@2100}>; + nvmem-cell-names = "rtc_offset"; +}; + +&{/soc/iommu@41dc50000} { +}; + +&{/soc/mailbox@419608000} { +}; + +&{/soc/nvme@45dcc0000} { + mboxes = <&{/soc/mailbox@419608000}>; + apple,sart = <&{/soc/iommu@41dc50000}>; +}; + +&{/soc/iommu@412000000} { +}; + +&{/soc/iommu@410000000} { +}; + +&{/soc/iommu@413000000} { +}; + +&{/soc/spmi@28a014000} { +}; + +&{/soc/spmi@28a014000/pmic@e} { +}; + +&{/soc/spmi@28a014000/pmic@e/nvmem-layout} { +}; + +&{/soc/spmi@28a014000/pmic@e/nvmem-layout/pm-setting@2001} { +}; + +&{/soc/spmi@28a014000/pmic@e/nvmem-layout/rtc-offset@2100} { +}; + +&{/soc/spmi@28a014000/pmic@e/nvmem-layout/boot-stage@f801} { +}; + +&{/soc/spmi@28a014000/pmic@e/nvmem-layout/boot-error-count@f802,0} { +}; + +&{/soc/spmi@28a014000/pmic@e/nvmem-layout/panic-count@f802,4} { +}; + +&{/soc/spmi@28a014000/pmic@e/nvmem-layout/shutdown-flag@f80f,3} { +}; + +&{/soc/power-management@286806000} { +}; + +&{/soc/power-management@286806000/performance-controller@1} { + apple,smc = <&smc>; +}; + +&{/soc/reset-controller@280620000} { + status = "okay"; +}; + +&{/soc/mailbox@383148000} { +}; + +&{/soc/phy@383000000} { + mboxes = <&{/soc/mailbox@383148000}>; + power-domains = <&{/soc/power-management@288300000/power-controller@178} &{/soc/power-management@280600000/power-controller@238} &{/soc/power-management@288300000/power-controller@188} &{/soc/power-management@288300000/power-controller@180}>; +}; + +&{/soc/phy@383000000/port} { +}; + +&{/soc/phy@383000000/port/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@1/endpoint}>; +}; + +&{/soc/mux@38324c000} { + power-domains = <&{/soc/power-management@288300000/power-controller@178} &{/soc/power-management@280600000/power-controller@238}>; +}; + +&{/soc/spmi@28a188000} { + status = "okay"; +}; + +&{/soc/spmi@28a188000/usb-pd@c} { +}; + +&{/soc/spmi@28a188000/usb-pd@c/connector} { +}; + +&{/soc/spmi@28a188000/usb-pd@c/connector/ports} { +}; + +&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@0} { +}; + +&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@0/endpoint} { + remote-endpoint = <&{/soc/usb@2a2280000/port/endpoint}>; +}; + +&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@1} { +}; + +&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@1/endpoint} { + remote-endpoint = <&{/soc/phy@2a3000000/port/endpoint}>; +}; + +&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@3} { +}; + +&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@3/endpoint} { + remote-endpoint = <&{/soc/acio@2a1ac0000/ports/port@1/endpoint}>; +}; + +&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@2} { +}; + +&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@2/endpoint} { + remote-endpoint = <&{/soc/dcp@2b2e00000/typec-routes/route@3/port/endpoint}>; +}; + +&{/soc/spmi@28a188000/usb-pd@a} { +}; + +&{/soc/spmi@28a188000/usb-pd@a/connector} { +}; + +&{/soc/spmi@28a188000/usb-pd@a/connector/ports} { +}; + +&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@0} { +}; + +&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@0/endpoint} { + remote-endpoint = <&{/soc/usb@2aa280000/port/endpoint}>; +}; + +&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@1} { +}; + +&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@1/endpoint} { + remote-endpoint = <&{/soc/phy@2ab000000/port/endpoint}>; +}; + +&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@3} { +}; + +&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@3/endpoint} { + remote-endpoint = <&{/soc/acio@2a9ac0000/ports/port@1/endpoint}>; +}; + +&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@2} { +}; + +&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@2/endpoint} { + remote-endpoint = <&{/soc/dcp@2b2e00000/typec-routes/route@1/port/endpoint}>; +}; + +&{/soc/spmi@28a188000/usb-pd@8} { +}; + +&{/soc/spmi@28a188000/usb-pd@8/connector} { +}; + +&{/soc/spmi@28a188000/usb-pd@8/connector/ports} { +}; + +&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@0} { +}; + +&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@0/endpoint} { + remote-endpoint = <&{/soc/usb@382280000/port/endpoint}>; +}; + +&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@1} { +}; + +&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@1/endpoint} { + remote-endpoint = <&{/soc/phy@383000000/port/endpoint}>; +}; + +&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@3} { +}; + +&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@3/endpoint} { + remote-endpoint = <&{/soc/acio@381ac0000/ports/port@1/endpoint}>; +}; + +&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@2} { +}; + +&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@2/endpoint} { + remote-endpoint = <&{/soc/dcp@2b2e00000/typec-routes/route@0/port/endpoint}>; +}; + +&{/soc/spmi@28a188000/usb-pd@6} { +}; + +&{/soc/spmi@28a188000/usb-pd@6/connector} { +}; + +&{/soc/spmi@28a188000/usb-pd@6/connector/ports} { +}; + +&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@0} { +}; + +&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@0/endpoint} { + remote-endpoint = <&{/soc/usb@38a280000/port/endpoint}>; +}; + +&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@1} { +}; + +&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@1/endpoint} { + remote-endpoint = <&{/soc/phy@38b000000/port/endpoint}>; +}; + +&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@3} { +}; + +&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@3/endpoint} { + remote-endpoint = <&{/soc/acio@389ac0000/ports/port@1/endpoint}>; +}; + +&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@2} { +}; + +&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@2/endpoint} { + remote-endpoint = <&{/soc/dcp@2b2e00000/typec-routes/route@2/port/endpoint}>; +}; + +&{/soc/usb@382280000} { + iommus = <&{/soc/iommu@382f00000} 0x0 &{/soc/iommu@382f80000} 0x1>; + power-domains = <&{/soc/power-management@288300000/power-controller@180}>; + resets = <&{/soc/phy@383000000} 0x0>; + phys = <&{/soc/phy@383000000} 0x3 &{/soc/phy@383000000} 0x4>; +}; + +&{/soc/usb@382280000/port} { +}; + +&{/soc/usb@382280000/port/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@0/endpoint}>; +}; + +&{/soc/iommu@382f00000} { + power-domains = <&{/soc/power-management@288300000/power-controller@180}>; +}; + +&{/soc/iommu@382f80000} { + power-domains = <&{/soc/power-management@288300000/power-controller@180}>; +}; + +&{/soc/mailbox@38b148000} { + status = "okay"; +}; + +&{/soc/phy@38b000000} { + mboxes = <&{/soc/mailbox@38b148000}>; + power-domains = <&{/soc/power-management@288300000/power-controller@190} &{/soc/power-management@280600000/power-controller@240} &{/soc/power-management@288300000/power-controller@1a0} &{/soc/power-management@288300000/power-controller@198}>; +}; + +&{/soc/phy@38b000000/port} { +}; + +&{/soc/phy@38b000000/port/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@1/endpoint}>; +}; + +&{/soc/usb@38a280000} { + iommus = <&{/soc/iommu@38af00000} 0x0 &{/soc/iommu@38af80000} 0x1>; + power-domains = <&{/soc/power-management@288300000/power-controller@198}>; + resets = <&{/soc/phy@38b000000} 0x0>; + phys = <&{/soc/phy@38b000000} 0x3 &{/soc/phy@38b000000} 0x4>; +}; + +&{/soc/usb@38a280000/port} { +}; + +&{/soc/usb@38a280000/port/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@0/endpoint}>; +}; + +&{/soc/iommu@38af00000} { + power-domains = <&{/soc/power-management@288300000/power-controller@198}>; +}; + +&{/soc/iommu@38af80000} { + power-domains = <&{/soc/power-management@288300000/power-controller@198}>; +}; + +&{/soc/spmi@28a1c8000} { +}; + +&{/soc/pinctrl@29c000000} { + gpio-ranges = <&{/soc/pinctrl@29c000000} 0x0 0x0 0xdd>; + interrupt-parent = <&{/soc/interrupt-controller@280400000}>; +}; + +&{/soc/i2c@505014000} { + clocks = <&{/clock-ref}>; + interrupt-parent = <&{/soc/interrupt-controller@280400000}>; + power-domains = <&{/soc/power-management@280900000/power-controller@2c8}>; +}; + +&{/soc/i2c@505014000/codec@38} { + shutdown-gpios = <&{/soc/pinctrl@29c000000} 0x6b 0x0>; + interrupts-extended = <&{/soc/pinctrl@29c000000} 0x6a 0x8>; +}; + +&{/soc/i2c@505018000} { + clocks = <&{/clock-ref}>; + interrupt-parent = <&{/soc/interrupt-controller@280400000}>; + power-domains = <&{/soc/power-management@280900000/power-controller@2d0}>; +}; + +&{/soc/i2c@505018000/codec@4b} { + reset-gpios = <&{/soc/pinctrl@29c000000} 0x8b 0x0>; + interrupts-extended = <&{/soc/pinctrl@29c000000} 0x86 0x8>; +}; + +&{/soc/pwm@505040000} { + clocks = <&{/clock-ref}>; + power-domains = <&{/soc/power-management@280900000/power-controller@2a8}>; +}; + +&{/soc/pwm@505044000} { + clocks = <&{/clock-ref}>; + power-domains = <&{/soc/power-management@280900000/power-controller@2b0}>; +}; + +&{/soc/pwm@505048000} { + clocks = <&{/clock-ref}>; + power-domains = <&{/soc/power-management@280900000/power-controller@2b8}>; +}; + +&{/soc/spi@505118000} { + clocks = <&{/clock-405m}>; + interrupt-parent = <&{/soc/interrupt-controller@280400000}>; + power-domains = <&{/soc/power-management@280900000/power-controller@350}>; +}; + +&{/soc/spi@505118000/flash@0} { +}; + +&{/soc/spi@505118000/flash@0/partitions} { +}; + +&{/soc/spi@505118000/flash@0/partitions/partition@700000} { +}; + +&{/soc/mailbox@290608000} { +}; + +&{/soc/iommu@290fc0000} { + interrupt-parent = <&{/soc/interrupt-controller@280400000}>; +}; + +&{/soc/dma-controller@293800000} { + interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x27d 0x4 0 0 0>; + iommus = <&{/soc/iommu@290fc0000} 0x8>; +}; + +&{/soc/aop@290c00000} { + mboxes = <&{/soc/mailbox@290608000}>; + iommus = <&{/soc/iommu@290fc0000} 0x0>; +}; + +&{/soc/aop@290c00000/audio} { + dmas = <&{/soc/dma-controller@293800000} 0x4 &{/soc/dma-controller@293800000} 0x5 &{/soc/dma-controller@293800000} 0x0 &{/soc/dma-controller@293800000} 0x1>; +}; + +&{/soc/mailbox@2a1108000} { +}; + +&{/soc/acio@2a1ac0000} { + mboxes = <&{/soc/mailbox@2a1108000}>; + resets = <&{/soc/reset-controller@280620000} 0x0>; + power-domains = <&{/soc/power-management@280600000/power-controller@280} &{/soc/power-management@280600000/power-controller@338} &{/soc/power-management@280600000/power-controller@340} &{/soc/power-management@280600000/power-controller@348}>; + pinctrl-0 = <&{/soc/pinctrl@290824000/acio0-lstx-pins}>; + lstx-gpios = <&{/soc/pinctrl@290824000} 0x4d 0x0>; + apple,tunable-pcie-adapter = <0x1008 0x6 0x6>; + apple,tunable-router-ap-fw = <0x8 0xff2 0x482>; +}; + +&{/soc/acio@2a1ac0000/iommu@a80000} { + power-domains = <&{/soc/power-management@280600000/power-controller@280}>; +}; + +&{/soc/acio@2a1ac0000/nhi@f00000} { + iommus = <&{/soc/acio@2a1ac0000/iommu@a80000} 0x0 &{/soc/acio@2a1ac0000/iommu@a80000} 0x1 &{/soc/acio@2a1ac0000/iommu@a80000} 0x2 &{/soc/acio@2a1ac0000/iommu@a80000} 0x3 &{/soc/acio@2a1ac0000/iommu@a80000} 0x4 &{/soc/acio@2a1ac0000/iommu@a80000} 0x5 &{/soc/acio@2a1ac0000/iommu@a80000} 0x6 &{/soc/acio@2a1ac0000/iommu@a80000} 0x7 &{/soc/acio@2a1ac0000/iommu@a80000} 0x8 &{/soc/acio@2a1ac0000/iommu@a80000} 0x9 &{/soc/acio@2a1ac0000/iommu@a80000} 0xa &{/soc/acio@2a1ac0000/iommu@a80000} 0xb &{/soc/acio@2a1ac0000/iommu@a80000} 0x10 &{/soc/acio@2a1ac0000/iommu@a80000} 0x11 &{/soc/acio@2a1ac0000/iommu@a80000} 0x12 &{/soc/acio@2a1ac0000/iommu@a80000} 0x13 &{/soc/acio@2a1ac0000/iommu@a80000} 0x14 &{/soc/acio@2a1ac0000/iommu@a80000} 0x15 &{/soc/acio@2a1ac0000/iommu@a80000} 0x16 &{/soc/acio@2a1ac0000/iommu@a80000} 0x17 &{/soc/acio@2a1ac0000/iommu@a80000} 0x18 &{/soc/acio@2a1ac0000/iommu@a80000} 0x19 &{/soc/acio@2a1ac0000/iommu@a80000} 0x1a &{/soc/acio@2a1ac0000/iommu@a80000} 0x1b>; +}; + +&{/soc/acio@2a1ac0000/ports} { +}; + +&{/soc/acio@2a1ac0000/ports/port@1} { +}; + +&{/soc/acio@2a1ac0000/ports/port@1/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@3/endpoint}>; +}; + +&{/soc/mailbox@2a9108000} { +}; + +&{/soc/acio@2a9ac0000} { + mboxes = <&{/soc/mailbox@2a9108000}>; + resets = <&{/soc/reset-controller@280620000} 0x1>; + power-domains = <&{/soc/power-management@280600000/power-controller@290} &{/soc/power-management@280600000/power-controller@350} &{/soc/power-management@280600000/power-controller@358} &{/soc/power-management@280600000/power-controller@360}>; + pinctrl-0 = <&{/soc/pinctrl@290824000/acio1-lstx-pins}>; + lstx-gpios = <&{/soc/pinctrl@290824000} 0x4f 0x0>; + apple,tunable-pcie-adapter = <0x1008 0x6 0x6>; + apple,tunable-router-ap-fw = <0x8 0xff2 0x482>; +}; + +&{/soc/acio@2a9ac0000/iommu@a80000} { + power-domains = <&{/soc/power-management@280600000/power-controller@290}>; +}; + +&{/soc/acio@2a9ac0000/nhi@f00000} { + iommus = <&{/soc/acio@2a9ac0000/iommu@a80000} 0x0 &{/soc/acio@2a9ac0000/iommu@a80000} 0x1 &{/soc/acio@2a9ac0000/iommu@a80000} 0x2 &{/soc/acio@2a9ac0000/iommu@a80000} 0x3 &{/soc/acio@2a9ac0000/iommu@a80000} 0x4 &{/soc/acio@2a9ac0000/iommu@a80000} 0x5 &{/soc/acio@2a9ac0000/iommu@a80000} 0x6 &{/soc/acio@2a9ac0000/iommu@a80000} 0x7 &{/soc/acio@2a9ac0000/iommu@a80000} 0x8 &{/soc/acio@2a9ac0000/iommu@a80000} 0x9 &{/soc/acio@2a9ac0000/iommu@a80000} 0xa &{/soc/acio@2a9ac0000/iommu@a80000} 0xb &{/soc/acio@2a9ac0000/iommu@a80000} 0x10 &{/soc/acio@2a9ac0000/iommu@a80000} 0x11 &{/soc/acio@2a9ac0000/iommu@a80000} 0x12 &{/soc/acio@2a9ac0000/iommu@a80000} 0x13 &{/soc/acio@2a9ac0000/iommu@a80000} 0x14 &{/soc/acio@2a9ac0000/iommu@a80000} 0x15 &{/soc/acio@2a9ac0000/iommu@a80000} 0x16 &{/soc/acio@2a9ac0000/iommu@a80000} 0x17 &{/soc/acio@2a9ac0000/iommu@a80000} 0x18 &{/soc/acio@2a9ac0000/iommu@a80000} 0x19 &{/soc/acio@2a9ac0000/iommu@a80000} 0x1a &{/soc/acio@2a9ac0000/iommu@a80000} 0x1b>; +}; + +&{/soc/acio@2a9ac0000/ports} { +}; + +&{/soc/acio@2a9ac0000/ports/port@1} { +}; + +&{/soc/acio@2a9ac0000/ports/port@1/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@3/endpoint}>; +}; + +&{/soc/mailbox@389108000} { +}; + +&{/soc/acio@389ac0000} { + mboxes = <&{/soc/mailbox@389108000}>; + resets = <&{/soc/reset-controller@280620000} 0x3>; + power-domains = <&{/soc/power-management@280600000/power-controller@2f8} &{/soc/power-management@280600000/power-controller@410} &{/soc/power-management@280600000/power-controller@418} &{/soc/power-management@280600000/power-controller@420}>; + pinctrl-0 = <&{/soc/pinctrl@290824000/acio3-lstx-pins}>; + lstx-gpios = <&{/soc/pinctrl@290824000} 0x53 0x0>; + apple,tunable-pcie-adapter = <0x1008 0x6 0x6>; + apple,tunable-router-ap-fw = <0x8 0xff2 0x482>; +}; + +&{/soc/acio@389ac0000/iommu@a80000} { + power-domains = <&{/soc/power-management@280600000/power-controller@2f8}>; +}; + +&{/soc/acio@389ac0000/nhi@f00000} { + iommus = <&{/soc/acio@389ac0000/iommu@a80000} 0x0 &{/soc/acio@389ac0000/iommu@a80000} 0x1 &{/soc/acio@389ac0000/iommu@a80000} 0x2 &{/soc/acio@389ac0000/iommu@a80000} 0x3 &{/soc/acio@389ac0000/iommu@a80000} 0x4 &{/soc/acio@389ac0000/iommu@a80000} 0x5 &{/soc/acio@389ac0000/iommu@a80000} 0x6 &{/soc/acio@389ac0000/iommu@a80000} 0x7 &{/soc/acio@389ac0000/iommu@a80000} 0x8 &{/soc/acio@389ac0000/iommu@a80000} 0x9 &{/soc/acio@389ac0000/iommu@a80000} 0xa &{/soc/acio@389ac0000/iommu@a80000} 0xb &{/soc/acio@389ac0000/iommu@a80000} 0x10 &{/soc/acio@389ac0000/iommu@a80000} 0x11 &{/soc/acio@389ac0000/iommu@a80000} 0x12 &{/soc/acio@389ac0000/iommu@a80000} 0x13 &{/soc/acio@389ac0000/iommu@a80000} 0x14 &{/soc/acio@389ac0000/iommu@a80000} 0x15 &{/soc/acio@389ac0000/iommu@a80000} 0x16 &{/soc/acio@389ac0000/iommu@a80000} 0x17 &{/soc/acio@389ac0000/iommu@a80000} 0x18 &{/soc/acio@389ac0000/iommu@a80000} 0x19 &{/soc/acio@389ac0000/iommu@a80000} 0x1a &{/soc/acio@389ac0000/iommu@a80000} 0x1b>; +}; + +&{/soc/acio@389ac0000/ports} { +}; + +&{/soc/acio@389ac0000/ports/port@1} { +}; + +&{/soc/acio@389ac0000/ports/port@1/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@3/endpoint}>; +}; + +&{/soc/mailbox@294608000} { +}; + +&{/soc/iommu@294800000} { + /delete-property/ status; +}; + +&{/soc/mtp@294600000} { + mboxes = <&{/soc/mailbox@294608000}>; + iommus = <&{/soc/iommu@294800000} 0x0>; +}; + +&{/soc/fifo@294b14000} { +}; + +&{/soc/mailbox@381108000} { +}; + +&{/soc/acio@381ac0000} { + mboxes = <&{/soc/mailbox@381108000}>; + resets = <&{/soc/reset-controller@280620000} 0x2>; + power-domains = <&{/soc/power-management@280600000/power-controller@2e8} &{/soc/power-management@280600000/power-controller@3f8} &{/soc/power-management@280600000/power-controller@400} &{/soc/power-management@280600000/power-controller@408}>; + pinctrl-0 = <&{/soc/pinctrl@290824000/acio2-lstx-pins}>; + lstx-gpios = <&{/soc/pinctrl@290824000} 0x51 0x0>; + apple,tunable-pcie-adapter = <0x1008 0x6 0x6>; + apple,tunable-router-ap-fw = <0x8 0xff2 0x482>; +}; + +&{/soc/acio@381ac0000/iommu@a80000} { + power-domains = <&{/soc/power-management@280600000/power-controller@2e8}>; +}; + +&{/soc/acio@381ac0000/nhi@f00000} { + iommus = <&{/soc/acio@381ac0000/iommu@a80000} 0x0 &{/soc/acio@381ac0000/iommu@a80000} 0x1 &{/soc/acio@381ac0000/iommu@a80000} 0x2 &{/soc/acio@381ac0000/iommu@a80000} 0x3 &{/soc/acio@381ac0000/iommu@a80000} 0x4 &{/soc/acio@381ac0000/iommu@a80000} 0x5 &{/soc/acio@381ac0000/iommu@a80000} 0x6 &{/soc/acio@381ac0000/iommu@a80000} 0x7 &{/soc/acio@381ac0000/iommu@a80000} 0x8 &{/soc/acio@381ac0000/iommu@a80000} 0x9 &{/soc/acio@381ac0000/iommu@a80000} 0xa &{/soc/acio@381ac0000/iommu@a80000} 0xb &{/soc/acio@381ac0000/iommu@a80000} 0x10 &{/soc/acio@381ac0000/iommu@a80000} 0x11 &{/soc/acio@381ac0000/iommu@a80000} 0x12 &{/soc/acio@381ac0000/iommu@a80000} 0x13 &{/soc/acio@381ac0000/iommu@a80000} 0x14 &{/soc/acio@381ac0000/iommu@a80000} 0x15 &{/soc/acio@381ac0000/iommu@a80000} 0x16 &{/soc/acio@381ac0000/iommu@a80000} 0x17 &{/soc/acio@381ac0000/iommu@a80000} 0x18 &{/soc/acio@381ac0000/iommu@a80000} 0x19 &{/soc/acio@381ac0000/iommu@a80000} 0x1a &{/soc/acio@381ac0000/iommu@a80000} 0x1b>; +}; + +&{/soc/acio@381ac0000/ports} { +}; + +&{/soc/acio@381ac0000/ports/port@1} { +}; + +&{/soc/acio@381ac0000/ports/port@1/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@3/endpoint}>; +}; + +&{/soc/sep@502600000} { + mboxes = <&{/soc/mailbox@502608000}>; + iommus = <&{/soc/iommu@500b80000} 0x0>; + power-domains = <&{/soc/power-management@280900000/power-controller@298}>; + clocks = <&{/soc/clock-controller@280600000} 0x1bf>; +}; + +&{/soc/mailbox@502608000} { +}; + +&{/soc/iommu@500b80000} { +}; + +&{/soc/mailbox@2a3148000} { +}; + +&{/soc/phy@2a3000000} { + mboxes = <&{/soc/mailbox@2a3148000}>; + power-domains = <&{/soc/power-management@288300000/power-controller@148} &{/soc/power-management@280600000/power-controller@208} &{/soc/power-management@288300000/power-controller@158} &{/soc/power-management@288300000/power-controller@150}>; +}; + +&{/soc/phy@2a3000000/port} { +}; + +&{/soc/phy@2a3000000/port/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@1/endpoint}>; +}; + +&{/pcie@1cb0000000} { + msi-parent = <&{/pcie@1cb0000000}>; + iommu-map = <0x100 &{/soc/iommu@412000000} 0x1 0x1 0x200 &{/soc/iommu@413000000} 0x1 0x1 0x300 &{/soc/iommu@410000000} 0x1 0x3 0x400 &{/soc/iommu@411000000} 0x1 0x1>; +}; + +&{/pcie@1cb0000000/pci@2,0} { + interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@2,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@2,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@2,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@2,0} 0x0 0x0 0x0 0x3>; +}; + +&{/pcie@1cb0000000/pci@2,0/ethernet@0,0} { +}; + +&{/pcie@1cb0000000/pci@3,0} { + interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@3,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@3,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@3,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@3,0} 0x0 0x0 0x0 0x3>; +}; + +&{/pcie@1cb0000000/pci@0,0} { + reset-gpios = <&{/soc/pinctrl@29c000000} 0x50 0x1>; + interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@0,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@0,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@0,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@0,0} 0x0 0x0 0x0 0x3>; +}; + +&{/pcie@1cb0000000/pci@0,0/control@0,0} { +}; + +&{/pcie@1cb0000000/pci@0,0/wifi@0,1} { +}; + +&{/pcie@1cb0000000/pci@0,0/bluetooth@0,2} { +}; + +&{/pcie@1cb0000000/pci@1,0} { + interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x3>; +}; + +&{/pcie@1cb0000000/pci@1,0/sdcard@0,0} { +}; + +&{/aliases} { + serial0 = "/soc/serial@288e3c000"; + nvram = "/soc/spi@505118000/flash@0/partitions/partition@700000"; + atcphy0 = "/soc/phy@2a3000000"; + atcphy1 = "/soc/phy@2ab000000"; + atcphy2 = "/soc/phy@383000000"; + atcphy3 = "/soc/phy@38b000000"; + usb4-0-acio = "/soc/acio@2a1ac0000"; + usb4-0-nhi = "/soc/acio@2a1ac0000/nhi@f00000"; + usb4-1-acio = "/soc/acio@2a9ac0000"; + usb4-1-nhi = "/soc/acio@2a9ac0000/nhi@f00000"; + usb4-2-acio = "/soc/acio@381ac0000"; + usb4-2-nhi = "/soc/acio@381ac0000/nhi@f00000"; + usb4-3-acio = "/soc/acio@389ac0000"; + usb4-3-nhi = "/soc/acio@389ac0000/nhi@f00000"; +}; + +&{/chosen} { + /delete-property/ bootargs; +}; + +&{/soc/power-management@2380600000} { +}; + +&{/soc/power-management@2380600000/power-controller@1b0} { +}; + +&{/soc/power-management@2380600000/power-controller@1d8} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1b0}>; +}; + +&{/soc/power-management@2380600000/power-controller@1a0} { +}; + +&{/soc/power-management@2380600000/power-controller@1a8} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1a0}>; +}; + +&{/soc/power-management@2380600000/power-controller@1b8} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1a0}>; +}; + +&{/soc/power-management@2380600000/power-controller@1c0} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1a8}>; +}; + +&{/soc/power-management@2380600000/power-controller@1c8} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1a8}>; +}; + +&{/soc/power-management@2380600000/power-controller@1d0} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1a8}>; +}; + +&{/soc/power-management@2380600000/power-controller@1e0} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1b0}>; +}; + +&{/soc/power-management@2380600000/power-controller@1f0} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1b8}>; +}; + +&{/soc/power-management@2380600000/power-controller@1f8} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1b8}>; +}; + +&{/soc/power-management@2380600000/power-controller@200} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1c8}>; +}; + +&{/soc/power-management@2380600000/power-controller@208} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1f8}>; +}; + +&{/soc/power-management@2380600000/power-controller@8000} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1c0}>; +}; + +&{/soc/power-management@2380600000/power-controller@8008} { + power-domains = <&{/soc/power-management@2380600000/power-controller@8000}>; +}; + +&{/soc/power-management@2380600000/power-controller@8010} { + power-domains = <&{/soc/power-management@2380600000/power-controller@8000}>; +}; + +&{/soc/power-management@2380600000/power-controller@8018} { + power-domains = <&{/soc/power-management@2380600000/power-controller@8000}>; +}; + +&{/soc/power-management@2380600000/power-controller@8020} { + power-domains = <&{/soc/power-management@2380600000/power-controller@8018}>; +}; + +&{/soc/power-management@2380600000/power-controller@8028} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1f0}>; +}; + +&{/soc/power-management@2380600000/power-controller@8030} { + power-domains = <&{/soc/power-management@2380600000/power-controller@8028}>; +}; + +&{/soc/power-management@2380600000/power-controller@8038} { + power-domains = <&{/soc/power-management@2380600000/power-controller@8028}>; +}; + +&{/soc/power-management@2380600000/power-controller@8040} { + power-domains = <&{/soc/power-management@2380600000/power-controller@8028}>; +}; + +&{/soc/power-management@2380600000/power-controller@8048} { + power-domains = <&{/soc/power-management@2380600000/power-controller@8040}>; +}; + +&{/soc/iommu@2309020000} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1d8}>; + status = "disabled"; +}; + +&{/soc@2300000000/power-management@2300e80000} { +}; + +&{/soc@2300000000/power-management@2300e80000/power-controller@0} { +}; + +&{/soc@2300000000/power-management@2300e80000/power-controller@100} { +}; + +&{/soc@2300000000/power-management@2300e80000/power-controller@110} { + power-domains = <&{/soc@2300000000/power-management@2300e80000/power-controller@100} &{/soc@2300000000/power-management@2300e80000/power-controller@0}>; +}; + +&{/soc/clock-controller@280600000} { + apple,pmgr = <&{/soc/power-management@280600000}>; +}; + +&{/soc/spmi@28a054000} { +}; + +&{/soc/spmi@28a114000} { +}; + +&{/soc/i2c@505024000} { + power-domains = <&{/soc/power-management@280900000/power-controller@2e8}>; + clocks = <&{/soc/clock-controller@280600000} 0x4>; +}; + +&{/soc/i2c@505010000} { + power-domains = <&{/soc/power-management@280900000/power-controller@2c0}>; + clocks = <&{/soc/clock-controller@280600000} 0x4>; +}; + +&{/soc/i2c@505020000} { + power-domains = <&{/soc/power-management@280900000/power-controller@2e0}>; + clocks = <&{/soc/clock-controller@280600000} 0x4>; +}; + +&{/soc/i2c@505028000} { + power-domains = <&{/soc/power-management@280900000/power-controller@2f0}>; + clocks = <&{/soc/clock-controller@280600000} 0x4>; +}; + +&{/soc/i2c@505030000} { + power-domains = <&{/soc/power-management@280900000/power-controller@300}>; + clocks = <&{/soc/clock-controller@280600000} 0x4>; +}; + +&{/soc/dma-controller@410030000} { + iommus = <&{/soc/iommu@410000000} 0x11>; +}; + +&{/soc/iommu@411000000} { +}; + +&{/soc/dma-controller@411030000} { + iommus = <&{/soc/iommu@411000000} 0x11>; +}; + +&{/soc/iommu@2a4000000} { +}; + +&{/soc/dma-controller@2a4068000} { + iommus = <&{/soc/iommu@2a4000000} 0xfe>; +}; + +&{/soc/iommu@2ac000000} { +}; + +&{/soc/dma-controller@2ac068000} { + iommus = <&{/soc/iommu@2ac000000} 0xfe>; +}; + +&{/soc/iommu@384000000} { +}; + +&{/soc/dma-controller@384068000} { + iommus = <&{/soc/iommu@384000000} 0xfe>; +}; + +&{/soc/mux@2a324c000} { +}; + +&{/soc/dpin@2a1e50000} { +}; + +&{/soc/dpin@2a1e58000} { +}; + +&{/soc/dpin@2a1e68000} { +}; + +&{/soc/dpin@2a1e70000} { +}; + +&{/soc/mux@2ab24c000} { +}; + +&{/soc/dpin@2a9e50000} { +}; + +&{/soc/dpin@2a9e58000} { +}; + +&{/soc/dpin@2a9e68000} { +}; + +&{/soc/dpin@2a9e70000} { +}; + +&{/soc/dpin@381e50000} { +}; + +&{/soc/dpin@381e58000} { +}; + +&{/soc/dpin@381e68000} { +}; + +&{/soc/dpin@381e70000} { +}; + +&{/soc/mux@38b24c000} { +}; + +&{/soc/aic-timebase@280580000} { +}; + +&{/soc/error-handler@2220000000} { +}; + +&{/soc/crypto@50500c000} { + iommus = <&{/soc/iommu@505060000} 0x1>; + power-domains = <&{/soc/power-management@280900000/power-controller@318}>; +}; + +&{/soc/phy-coproc@395d08000} { +}; + +&{/soc/pinctrl@2881e4000} { + /delete-property/ gpio-line-names; + /delete-property/ interrupt-parent; + status = "okay"; + gpio-ranges = <&{/soc/pinctrl@2881e4000} 0x0 0x0 0x3d>; +}; + +&{/soc/pinctrl@2881e4000/usb3hub-rst-hog} { +}; + +&{/soc/mailbox@4d067c000} { + iommus = <&{/soc/iommu@290fc0000} 0x1>; +}; + +&{/soc/aop@291600000} { + iommus = <&{/soc/iommu@290fc0000} 0x10>; +}; + +&{/soc/event-log@280040000} { +}; + +&{/soc/dma-controller@505e00000} { + iommus = <&{/soc/iommu@505060000} 0x0>; + power-domains = <&{/soc/power-management@280900000/power-controller@2a0}>; + clocks = <&{/soc/clock-controller@280600000} 0x167 &{/soc/clock-controller@280600000} 0x166>; +}; + +&{/soc/iommu@505060000} { + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; +}; + +&{/soc/pmp@284e00000} { + mboxes = <&{/soc/mailbox@284e08000}>; + iommus = <&{/soc/iommu@2841a0000} 0x0>; + power-domains = <&{/soc/power-management@280600000/power-controller@128} &{/soc/power-management@280600000/power-controller@130}>; +}; + +&{/soc/mailbox@284e08000} { + power-domains = <&{/soc/power-management@280600000/power-controller@128}>; +}; + +&{/soc/pmp-report@284240000} { + power-domains = <&{/soc/power-management@280600000/power-controller@130}>; +}; + +&{/soc/pmp-report@284240000/report@c} { +}; + +&{/soc/pmp-report@284240000/report@d} { +}; + +&{/soc/pmp-report@284240000/report@e} { +}; + +&{/soc/pmp-report@284240000/report@f} { + power-domains = <&{/soc@2300000000/power-management@2300e80000/power-controller@110}>; +}; + +&{/soc/pmp-report@284240000/report@12} { +}; + +&{/soc/pmp-report@284240000/report@24} { +}; + +&{/soc/iommu@2841a0000} { + power-domains = <&{/soc/power-management@280600000/power-controller@128}>; +}; + +&{/soc/aon-ptd@28cdc0000} { +}; + +&{/soc/rsm@288825000} { + iommus = <&{/soc/iommu@2889a0000} 0x0>; + power-domains = <&{/soc/power-management@288300000/power-controller@58}>; +}; + +&{/soc/iommu@2889a0000} { + power-domains = <&{/soc/power-management@288300000/power-controller@58}>; +}; + +&{/soc/serial@505200000} { + power-domains = <&{/soc/power-management@280900000/power-controller@360}>; + clocks = <&{/soc/clock-controller@280600000} 0x1c9 &{/soc/clock-controller@280600000} 0x4>; +}; + +&{/soc/iommu@2a2f00000} { + power-domains = <&{/soc/power-management@288300000/power-controller@150}>; +}; + +&{/soc/iommu@2a2f80000} { + power-domains = <&{/soc/power-management@288300000/power-controller@150}>; +}; + +&{/soc/usb@2a2280000} { + iommus = <&{/soc/iommu@2a2f00000} 0x0 &{/soc/iommu@2a2f80000} 0x1>; + power-domains = <&{/soc/power-management@288300000/power-controller@150}>; + resets = <&{/soc/phy@2a3000000} 0x0>; + phys = <&{/soc/phy@2a3000000} 0x3 &{/soc/phy@2a3000000} 0x4>; +}; + +&{/soc/usb@2a2280000/port} { +}; + +&{/soc/usb@2a2280000/port/endpoint} { + remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@0/endpoint}>; +}; + +&{/soc/iommu@395d60000} { + power-domains = <&{/soc/power-management@280600000/power-controller@248}>; +}; + +&{/soc/usb@3953f0000} { + iommus = <&{/soc/iommu@395d60000} 0x0>; + power-domains = <&{/soc/power-management@280600000/power-controller@248}>; +}; + +&{/soc/spmi@28a094000} { +}; + +&{/soc/spmi@28a0d4000} { +}; + +&{/soc/spmi@290914000} { +}; + +&{/soc/aux@29c260000} { + power-domains = <&{/soc/power-management@280900000/power-controller@108}>; +}; + +&{/soc/aux@29c264000} { + power-domains = <&{/soc/power-management@280900000/power-controller@110}>; +}; + +&{/soc/iommu@48a300000} { +}; + +&{/soc/dcp-expert@48a3ac058} { +}; + +&{/soc/mailbox@48ae08000} { +}; + +&{/soc/iommu@48a340000} { +}; + +&{/soc/iommu@48a180000} { +}; + +&{/soc/dma-controller@48a140000} { + interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x3f4 0x4 0 0 0>; + iommus = <&{/soc/iommu@48a180000} 0x1e>; +}; + +&{/soc/dma-control@48a2f4000} { +}; + +&{/soc/dcp-expert@2b23ac058} { +}; + +&{/soc/iommu@2b2180000} { + power-domains = <&{/soc/power-management@280600000/power-controller@270}>; +}; + +&{/soc/dma-controller@2b2140000} { + interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x444 0x4 0 0 0>; + iommus = <&{/soc/iommu@2b2180000} 0x1e>; + power-domains = <&{/soc/power-management@280600000/power-controller@270}>; +}; + +&{/soc/dma-control@2b22f4000} { +}; + +&{/soc/dcp-expert@3923ac058} { +}; + +&{/soc/mailbox@392e08000} { +}; + +&{/soc/dcp@392e00000} { + mboxes = <&{/soc/mailbox@392e08000}>; + iommus = <&{/soc/iommu@392340000} 0x17>; + apple,bw-scratch = <&{/soc/pmc-metadata@286700000} 0x0 0x5 0x30000>; + phys = <&{/soc/phy@29c200000}>; + hdmi-hpd-gpios = <&{/soc/pinctrl@290824000} 0xe 0x0>; + hdmi-pwren-gpios = <&{/soc/smc@28c600000/gpio} 0x0 0x0>; + dp2hdmi-pwren-gpios = <&{/soc/smc@28c600000/gpio} 0x1 0x0>; +}; + +&{/soc/dcp@392e00000/piodma} { + iommus = <&{/soc/iommu@392300000} 0x10>; +}; + +&{/soc/dcp@392e00000/ports} { +}; + +&{/soc/dcp@392e00000/ports/port@0} { +}; + +&{/soc/dcp@392e00000/ports/port@0/endpoint} { + remote-endpoint = <&{/audio-controller-dispext1/ports/port@0/endpoint}>; +}; + +&{/soc/iommu@392340000} { +}; + +&{/soc/iommu@392300000} { +}; + +&{/soc/iommu@392180000} { + power-domains = <&{/soc/power-management@280600000/power-controller@2d8}>; +}; + +&{/soc/dma-controller@392140000} { + interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x48c 0x4 0 0 0>; + iommus = <&{/soc/iommu@392180000} 0x1e>; + power-domains = <&{/soc/power-management@280600000/power-controller@2d8}>; +}; + +&{/soc/dma-control@3922f4000} { +}; + +&{/soc/dcp-expert@3023ac058} { +}; + +&{/soc/mailbox@302e08000} { +}; + +&{/soc/dcp@302e00000} { + mboxes = <&{/soc/mailbox@302e08000}>; + iommus = <&{/soc/iommu@302340000} 0x17>; +}; + +&{/soc/dcp@302e00000/piodma} { + iommus = <&{/soc/iommu@302300000} 0x10>; +}; + +&{/soc/iommu@302340000} { +}; + +&{/soc/iommu@302300000} { +}; + +&{/soc/iommu@302180000} { +}; + +&{/soc/dma-controller@302140000} { + interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x4d4 0x4 0 0 0>; + iommus = <&{/soc/iommu@302180000} 0x1e>; +}; + +&{/soc/dma-control@3022f4000} { +}; + +&{/soc/dcp-expert@3063ac058} { +}; + +&{/soc/mailbox@306e08000} { +}; + +&{/soc/dcp@306e00000} { + mboxes = <&{/soc/mailbox@306e08000}>; + iommus = <&{/soc/iommu@306340000} 0x17>; +}; + +&{/soc/dcp@306e00000/piodma} { + iommus = <&{/soc/iommu@306300000} 0x10>; +}; + +&{/soc/iommu@306340000} { +}; + +&{/soc/iommu@306300000} { +}; + +&{/soc/iommu@306180000} { +}; + +&{/soc/dma-controller@306140000} { + interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x51c 0x4 0 0 0>; + iommus = <&{/soc/iommu@306180000} 0x1e>; +}; + +&{/soc/dma-control@3062f4000} { +}; + +&{/soc/scaler@2285000000} { + iommus = <&{/soc/iommu@2285260000} 0x0 &{/soc/iommu@2285260000} 0x1>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1c8} &{/soc/power-management@2380600000/power-controller@200}>; + clocks = <&{/soc/clock-controller@280600000} 0x1f0>; + resets = <&{/soc/power-management@2380600000/power-controller@1c8}>; +}; + +&{/soc/iommu@2285260000} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1c8}>; +}; + +&{/soc/scaler@23a1000000} { + iommus = <&{/soc/iommu@23a1260000} 0x0 &{/soc/iommu@23a1260000} 0x1>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1f8} &{/soc/power-management@2380600000/power-controller@208}>; + clocks = <&{/soc/clock-controller@280600000} 0x1f1>; + resets = <&{/soc/power-management@2380600000/power-controller@1f8}>; +}; + +&{/soc/iommu@23a1260000} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1f8}>; +}; + +&{/soc/video-encoder@2283100000} { + iommus = <&{/soc/iommu@22830a0000} 0x0 &{/soc/iommu@2283080000} 0x0>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1c0} &{/soc/power-management@2380600000/power-controller@8008} &{/soc/power-management@2380600000/power-controller@8010} &{/soc/power-management@2380600000/power-controller@8018} &{/soc/power-management@2380600000/power-controller@8020} &{/soc/power-management@2380600000/power-controller@8000}>; + clocks = <&{/soc/clock-controller@280600000} 0x1f7>; +}; + +&{/soc/iommu@22830a0000} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1c0}>; +}; + +&{/soc/iommu@2283080000} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1c0}>; +}; + +&{/soc/video-encoder@23a3100000} { + iommus = <&{/soc/iommu@23a30a0000} 0x0 &{/soc/iommu@23a3080000} 0x0>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1f0} &{/soc/power-management@2380600000/power-controller@8030} &{/soc/power-management@2380600000/power-controller@8038} &{/soc/power-management@2380600000/power-controller@8040} &{/soc/power-management@2380600000/power-controller@8048} &{/soc/power-management@2380600000/power-controller@8028}>; + clocks = <&{/soc/clock-controller@280600000} 0x1f8>; +}; + +&{/soc/iommu@23a30a0000} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1f0}>; +}; + +&{/soc/iommu@23a3080000} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1f0}>; +}; + +&{/soc/prores@48d000000} { + reg-names = "core", "wrapper", "aux", "ctrl", "ctrl1"; + resets = <&{/soc/power-management@280900000/power-controller@190}>; + iommus = <&{/soc/iommu@48d020000} 0x1>; + power-domains = <&{/soc/power-management@280900000/power-controller@190}>; +}; + +&{/soc/iommu@48d020000} { + apple,dma-range = <0x100 0x0 0x300 0x0>; + power-domains = <&{/soc/power-management@280900000/power-controller@190}>; +}; + +&{/soc/iommu@230b020000} { + power-domains = <&{/soc/power-management@2380600000/power-controller@1e0}>; +}; + +&{/soc/jpeg@2281000000} { + iommus = <&{/soc/iommu@2281020000} 0x0>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1d0}>; + clocks = <&{/soc/clock-controller@280600000} 0x1e6 &{/soc/clock-controller@280600000} 0x1e7>; +}; + +&{/soc/jpeg@2281060000} { + iommus = <&{/soc/iommu@2281020000} 0x1>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1d0}>; + clocks = <&{/soc/clock-controller@280600000} 0x1e6 &{/soc/clock-controller@280600000} 0x1e7>; +}; + +&{/soc/iommu@2281020000} { + apple,dma-range = <0x100 0x0 0x300 0x0>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1d0}>; +}; + +&{/soc/neural-processor@508000000} { + iommus = <&{/soc/iommu@509800000} 0x0 &{/soc/iommu@509820000} 0x0 &{/soc/iommu@509840000} 0x0>; + power-domains = <&{/soc/power-management@280900000/power-controller@3c8}>; + clocks = <&{/soc/clock-controller@280600000} 0x14f &{/soc/clock-controller@280600000} 0x14e &{/soc/clock-controller@280600000} 0x17d>; +}; + +&{/soc/iommu@509800000} { + /delete-property/ apple,dma-range; + /delete-property/ interrupt-parent; + /delete-property/ power-domains; + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x5 0x9800000 0x0 0xc000 0x5 0x9810000 0x0 0x4000>; + status = "disabled"; +}; + +&{/soc/iommu@509820000} { + /delete-property/ apple,dma-range; + /delete-property/ interrupt-parent; + /delete-property/ power-domains; + compatible = "apple,t6050-dart", "apple,t8110-dart"; + status = "disabled"; +}; + +&{/soc/iommu@509840000} { + /delete-property/ apple,dma-range; + /delete-property/ interrupt-parent; + /delete-property/ power-domains; + compatible = "apple,t6050-dart", "apple,t8110-dart"; + status = "disabled"; +}; + +&{/soc/video-decoder@2308000000} { + iommus = <&{/soc/iommu@2309020000} 0x0 &{/soc/iommu@2309020000} 0x1 &{/soc/iommu@2309020000} 0x2>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1d8}>; + clocks = <&{/soc/clock-controller@280600000} 0x1e8>; +}; + +&{/soc/dma-controller@293300000} { + interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x27f 0x4 0 0 0>; + iommus = <&{/soc/iommu@290fc0000} 0xa>; +}; + +&{/soc/dma-control@293c80000} { +}; + +&{/soc/message-controller@29b000000} { + power-domains = <&{/soc/power-management@280600000/power-controller@258}>; +}; + +&{/soc/dma-controller@412030000} { + iommus = <&{/soc/iommu@412000000} 0x11>; +}; + +&{/soc/dma-controller@413030000} { + iommus = <&{/soc/iommu@413000000} 0x11>; +}; + +&{/soc/spi@50510c000} { + power-domains = <&{/soc/power-management@280900000/power-controller@338}>; + clocks = <&{/soc/clock-controller@280600000} 0x1c4>; +}; + +&{/soc/iommu@38c000000} { +}; + +&{/soc/dma-controller@38c068000} { + iommus = <&{/soc/iommu@38c000000} 0xfe>; +}; + +&{/soc/dpin@389e50000} { +}; + +&{/soc/dpin@389e58000} { +}; + +&{/soc/dpin@389e68000} { +}; + +&{/soc/dpin@389e70000} { +}; + +&{/soc/phy@29c200000} { + power-domains = <&{/soc/power-management@280900000/power-controller@3f8}>; +}; + +&{/display-subsystem} { + iommus = <&{/soc/iommu@2b2300000} 0x0 &{/soc/iommu@392300000} 0x0>; +}; + +&{/sound} { +}; + +&{/sound/dai-link@0} { +}; + +&{/sound/dai-link@0/cpu} { + sound-dai = <&{/soc/aop@290c00000/audio} 0x0>; +}; + +&{/sound/dai-link@0/codec} { + sound-dai = <&{/soc/i2c@505018000/codec@4b}>; +}; + +&{/sound/dai-link@1} { +}; + +&{/sound/dai-link@1/cpu} { + sound-dai = <&{/soc/aop@290c00000/audio} 0x3>; +}; + +&{/sound/dai-link@1/codec} { + sound-dai = <&{/soc/i2c@505014000/codec@38}>; +}; + +&{/audio-controller-dispext0} { + dmas = <&{/soc/dma-controller@2b2140000} 0x0>; +}; + +&{/audio-controller-dispext0/ports} { +}; + +&{/audio-controller-dispext0/ports/port@0} { +}; + +&{/audio-controller-dispext0/ports/port@0/endpoint} { + remote-endpoint = <&{/soc/dcp@2b2e00000/ports/port@0/endpoint}>; +}; + +&{/audio-controller-dispext1} { + dmas = <&{/soc/dma-controller@392140000} 0x0>; +}; + +&{/audio-controller-dispext1/ports} { +}; + +&{/audio-controller-dispext1/ports/port@0} { +}; + +&{/audio-controller-dispext1/ports/port@0/endpoint} { + remote-endpoint = <&{/soc/dcp@392e00000/ports/port@0/endpoint}>; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-sd.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-sd.dtsi new file mode 100644 index 0000000000000..291a87c46ed4d --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-sd.dtsi @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* Property migration from Satya Benson's 86b1f365 J775c stack. + * Retained board sources remain the baseline; this group is independently booted. + * Copyright The Asahi Linux Contributors + */ +&{/pcie@1cb0000000/pci@1,0} { + interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x3>; +}; + +&{/pcie@1cb0000000/pci@1,0/sdcard@0,0} { +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-spmi.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-spmi.dtsi new file mode 100644 index 0000000000000..d2d8daf5856d4 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-spmi.dtsi @@ -0,0 +1,47 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* Property migration from Satya Benson's 86b1f365 J775c stack. + * Retained board sources remain the baseline; this group is independently booted. + * Copyright The Asahi Linux Contributors + */ +&{/soc/smc@28c600000} { + gpio-low { + compatible = "apple,smc-low-gpio"; + gpio-controller; + #gpio-cells = <0x2>; + }; +}; + +&{/soc/spmi@28a014000} { + /delete-property/ #interrupt-cells; + /delete-property/ interrupt-parent; + /delete-property/ interrupts; + /delete-property/ interrupt-controller; +}; + +&{/soc/spmi@28a014000/pmic@e} { +}; + +&{/soc/spmi@28a014000/pmic@e/nvmem-layout} { +}; + +&{/soc/spmi@28a014000/pmic@e/nvmem-layout/pm-setting@2001} { +}; + +&{/soc/spmi@28a014000/pmic@e/nvmem-layout/rtc-offset@2100} { +}; + +&{/soc/spmi@28a014000/pmic@e/nvmem-layout/boot-stage@f801} { +}; + +&{/soc/spmi@28a014000/pmic@e/nvmem-layout/boot-error-count@f802,0} { +}; + +&{/soc/spmi@28a014000/pmic@e/nvmem-layout/panic-count@f802,4} { +}; + +&{/soc/spmi@28a014000/pmic@e/nvmem-layout/shutdown-flag@f80f,3} { +}; + +&{/soc/spmi@28a1c8000} { + /delete-property/ status; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-usbpolicy.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-usbpolicy.dtsi new file mode 100644 index 0000000000000..5d20209cb5706 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-usbpolicy.dtsi @@ -0,0 +1,185 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* Property migration from Satya Benson's 86b1f365 J775c stack. + * Retained board sources remain the baseline; this group is independently booted. + * Copyright The Asahi Linux Contributors + */ +&{/soc/phy@2ab000000} { + mboxes = <&{/soc/mailbox@2ab148000}>; + power-domains = <&{/soc/power-management@288300000/power-controller@160} &{/soc/power-management@280600000/power-controller@210} &{/soc/power-management@288300000/power-controller@170} &{/soc/power-management@288300000/power-controller@168}>; + status = "okay"; +}; + +&{/soc/usb@2aa280000} { + iommus = <&{/soc/iommu@2aaf00000} 0x0 &{/soc/iommu@2aaf80000} 0x1>; + power-domains = <&{/soc/power-management@288300000/power-controller@168}>; + resets = <&{/soc/phy@2ab000000} 0x0>; + phys = <&{/soc/phy@2ab000000} 0x3 &{/soc/phy@2ab000000} 0x4>; + status = "okay"; +}; + +&{/soc/iommu@2aaf00000} { + power-domains = <&{/soc/power-management@288300000/power-controller@168}>; + status = "okay"; +}; + +&{/soc/iommu@2aaf80000} { + power-domains = <&{/soc/power-management@288300000/power-controller@168}>; + status = "okay"; +}; + +&{/soc/phy@383000000} { + mboxes = <&{/soc/mailbox@383148000}>; + power-domains = <&{/soc/power-management@288300000/power-controller@178} &{/soc/power-management@280600000/power-controller@238} &{/soc/power-management@288300000/power-controller@188} &{/soc/power-management@288300000/power-controller@180}>; +}; + +&{/soc/mux@38324c000} { + power-domains = <&{/soc/power-management@288300000/power-controller@178} &{/soc/power-management@280600000/power-controller@238}>; +}; + +&{/soc/usb@382280000} { + iommus = <&{/soc/iommu@382f00000} 0x0 &{/soc/iommu@382f80000} 0x1>; + power-domains = <&{/soc/power-management@288300000/power-controller@180}>; + resets = <&{/soc/phy@383000000} 0x0>; + phys = <&{/soc/phy@383000000} 0x3 &{/soc/phy@383000000} 0x4>; +}; + +&{/soc/iommu@382f00000} { + power-domains = <&{/soc/power-management@288300000/power-controller@180}>; +}; + +&{/soc/iommu@382f80000} { + power-domains = <&{/soc/power-management@288300000/power-controller@180}>; +}; + +&{/soc/phy@38b000000} { + mboxes = <&{/soc/mailbox@38b148000}>; + power-domains = <&{/soc/power-management@288300000/power-controller@190} &{/soc/power-management@280600000/power-controller@240} &{/soc/power-management@288300000/power-controller@1a0} &{/soc/power-management@288300000/power-controller@198}>; + status = "okay"; +}; + +&{/soc/usb@38a280000} { + iommus = <&{/soc/iommu@38af00000} 0x0 &{/soc/iommu@38af80000} 0x1>; + power-domains = <&{/soc/power-management@288300000/power-controller@198}>; + resets = <&{/soc/phy@38b000000} 0x0>; + phys = <&{/soc/phy@38b000000} 0x3 &{/soc/phy@38b000000} 0x4>; + status = "okay"; +}; + +&{/soc/iommu@38af00000} { + power-domains = <&{/soc/power-management@288300000/power-controller@198}>; + status = "okay"; +}; + +&{/soc/iommu@38af80000} { + power-domains = <&{/soc/power-management@288300000/power-controller@198}>; + status = "okay"; +}; + +&{/soc/phy@2a3000000} { + /delete-property/ apple,boot-link-released; + mboxes = <&{/soc/mailbox@2a3148000}>; + power-domains = <&{/soc/power-management@288300000/power-controller@148} &{/soc/power-management@280600000/power-controller@208} &{/soc/power-management@288300000/power-controller@158} &{/soc/power-management@288300000/power-controller@150}>; +}; + +&{/soc} { + iommu@2a4000000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x2 0xa4000000 0x0 0x20000>; + interrupts = <0x0 0x0 0x57e 0x4>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@2ac000000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x2 0xac000000 0x0 0x20000>; + interrupts = <0x0 0x0 0x59e 0x4>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@384000000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x3 0x84000000 0x0 0x20000>; + interrupts = <0x0 0x0 0x5be 0x4>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc/mux@2a324c000} { + /delete-property/ power-domain-names; + /delete-property/ power-domains; + status = "okay"; +}; + +&{/soc/mux@2ab24c000} { + /delete-property/ power-domain-names; + /delete-property/ power-domains; + status = "okay"; +}; + +&{/soc/mux@38b24c000} { + /delete-property/ power-domain-names; + /delete-property/ power-domains; + status = "okay"; +}; + +&{/soc/iommu@2a2f00000} { + /delete-property/ apple,dma-range; + power-domains = <&{/soc/power-management@288300000/power-controller@150}>; + status = "okay"; +}; + +&{/soc/iommu@2a2f80000} { + /delete-property/ apple,dma-range; + power-domains = <&{/soc/power-management@288300000/power-controller@150}>; + status = "okay"; +}; + +&{/soc/usb@2a2280000} { + iommus = <&{/soc/iommu@2a2f00000} 0x0 &{/soc/iommu@2a2f80000} 0x1>; + power-domains = <&{/soc/power-management@288300000/power-controller@150}>; + status = "okay"; + resets = <&{/soc/phy@2a3000000} 0x0>; + phys = <&{/soc/phy@2a3000000} 0x3 &{/soc/phy@2a3000000} 0x4>; +}; + +&{/soc} { + iommu@395d60000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x3 0x95d60000 0x0 0xc000>; + interrupts = <0x0 0x0 0x927 0x4>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc} { + usb@3953f0000 { + compatible = "apple,t6050-usb-auss"; + reg = <0x3 0x953f0000 0x0 0x4600 0x3 0x95800000 0x0 0x4000 0x3 0x95803c00 0x0 0x4000 0x3 0x95804000 0x0 0x4000 0x3 0x94000000 0x0 0x8000 0x3 0x95d80000 0x0 0x4000 0x3 0x95d84000 0x0 0x4000 0x3 0x95e40000 0x0 0x4000 0x3 0x95e3c000 0x0 0x4000 0x3 0x95d98000 0x0 0x4000>; + interrupts = <0x0 0x0 0x923 0x4 0x0 0x0 0x924 0x4 0x0 0x0 0x925 0x4 0x0 0x0 0x926 0x4>; + iommus = <&{/soc/iommu@395d60000} 0x0>; + power-domains = <&{/soc/power-management@280600000/power-controller@248}>; + status = "disabled"; + }; +}; + +&{/soc} { + iommu@38c000000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x3 0x8c000000 0x0 0x20000>; + interrupts = <0x0 0x0 0x5de 0x4>; + #iommu-cells = <0x1>; + status = "disabled"; + }; +}; + +&{/soc/phy@29c200000} { + power-domains = <&{/soc/power-management@280900000/power-controller@3f8}>; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-legacy.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-legacy.dtsi new file mode 100644 index 0000000000000..b3de00ae25957 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-legacy.dtsi @@ -0,0 +1,3190 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple T6050 "M5 Ultra" SoC + * + * Two dies. Die 0's MMIO window is 0x2_00000000 and die 1's 0x42_00000000 + * (die stride 0x40_00000000); each has its own simple-bus, which the boot + * loader looks up by unit address. Unit addresses are CPU physical + * addresses. The boot loader starts the secondary CPUs and fills in their + * release addresses, the memory node and its own reservations. + * + * Copyright The Asahi Linux Contributors + */ + +#include +#include +#include +#include +#include + +/* Reuse integration's common nodes; retain the booted peripheral inventory below. */ +#include "t6050-j775c-base.dtsi" + +/ { + compatible = "apple,t6050", "apple,arm-platform"; + #address-cells = <2>; + #size-cells = <2>; + interrupt-parent = <&aic>; + + /* The boot loader replaces reg with the usable RAM. */ + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + /* The boot loader adds its own reservations. */ + + /* + * The GPU's, all filled in and enabled by Aura's dt_set_gpu_t6050 from /arm-io/sgx and + * the gfx(1)-asc segment-ranges. Each lies outside /memory (below and above Linux's RAM). + * The UAT ranges (gpu-region, gfx-shared-region, gfx-shared-l2-region, gfx-handoff): + * both firmware roles publish their kernel roots into uat-pagetables while they boot. + */ + uat_handoff: uat-handoff { + reg = <0 0 0 0>; + no-map; + status = "disabled"; + }; + + uat_l2_pagetables: uat-l2-pagetables { + reg = <0 0 0 0>; + no-map; + status = "disabled"; + }; + + uat_pagetables: uat-pagetables { + reg = <0 0 0 0>; + no-map; + status = "disabled"; + }; + + uat_ttbs: uat-ttbs { + reg = <0 0 0 0>; + no-map; + status = "disabled"; + }; + + /* Both roles' __TEXT, contiguous: GFX's, then GFX1's. */ + gpu_fw_text: gpu-fw-text { + reg = <0 0 0 0>; + no-map; + status = "disabled"; + }; + + /* + * Both roles' __DATA and __DATA_SHARED_RO, contiguous (gfx-data, gfx-data-shared-ro, + * gfx1-data, gfx1-data-shared-ro). Each role asks for its crash log at the physical + * address of its __DATA_SHARED_RO (evidence/gpu/2026-10-31-gfx-rtkit-boot.md). + */ + gpu_fw_data: gpu-fw-data { + reg = <0 0 0 0>; + no-map; + status = "disabled"; + }; + + /* + * The ANE firmware preload. The loader fills reg from the ADT + * /arm-io/ane0 segment-ranges (TEXT 0xc0000 bytes, DATA 0x2ac000 + * bytes), renames each node to its physical address and enables + * it, together with /chosen/apple,ane-cold-boot (Aura's + * dt_set_ane_node). Left disabled, the ANE driver does not start + * the engine. Neither segment may be reclaimed before reboot. + */ + ane_fw_text: ane-firmware-text@0 { + compatible = "apple,asc-mem"; + reg = <0 0 0 0>; + no-map; + status = "disabled"; + }; + + ane_fw_data: ane-firmware-data@0 { + compatible = "apple,asc-mem"; + reg = <0 0 0 0>; + no-map; + status = "disabled"; + }; + }; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + /* + * Die d, cluster c, core n has MPIDR Aff2 4 for the two M-tier + * (apple,sawtooth) clusters and 1 for the P-tier (apple,everest) + * cluster, Aff1 0x10 * d + c and Aff0 n. Labels number the cores + * 18 * d + 6 * c + n. Die 0 comes first, so nr_cpus= brings the + * CPUs up in that order. The boot loader removes the nodes of the + * cores it did not start. + */ + cpu0: cpu@40000 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x40000>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc00>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m00>; /* to be filled by the loader */ + }; + + cpu1: cpu@40001 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x40001>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc00>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m00>; + }; + + cpu2: cpu@40002 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x40002>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc00>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m00>; + }; + + cpu3: cpu@40003 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x40003>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc00>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m00>; + }; + + cpu4: cpu@40004 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x40004>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc00>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m00>; + }; + cpu5: cpu@40005 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x40005>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc00>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m00>; + }; + + cpu6: cpu@40100 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x40100>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc10>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m01>; + }; + + cpu7: cpu@40101 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x40101>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc10>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m01>; + }; + + cpu8: cpu@40102 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x40102>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc10>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m01>; + }; + + cpu9: cpu@40103 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x40103>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc10>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m01>; + }; + + cpu10: cpu@40104 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x40104>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc10>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m01>; + }; + cpu11: cpu@40105 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x40105>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc10>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m01>; + }; + + cpu12: cpu@10200 { + compatible = "apple,everest"; + capacity-dmips-mhz = <1024>; + device_type = "cpu"; + reg = <0x0 0x10200>; + enable-method = "spin-table"; + operating-points-v2 = <&pcluster_opp>; + performance-domains = <&cpufreq_pc0>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_p0_0>; + }; + + cpu13: cpu@10201 { + compatible = "apple,everest"; + capacity-dmips-mhz = <1024>; + device_type = "cpu"; + reg = <0x0 0x10201>; + enable-method = "spin-table"; + operating-points-v2 = <&pcluster_opp>; + performance-domains = <&cpufreq_pc0>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_p0_1>; + }; + + cpu14: cpu@10202 { + compatible = "apple,everest"; + capacity-dmips-mhz = <1024>; + device_type = "cpu"; + reg = <0x0 0x10202>; + enable-method = "spin-table"; + operating-points-v2 = <&pcluster_opp>; + performance-domains = <&cpufreq_pc0>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_p0_2>; + }; + + cpu15: cpu@10203 { + compatible = "apple,everest"; + capacity-dmips-mhz = <1024>; + device_type = "cpu"; + reg = <0x0 0x10203>; + enable-method = "spin-table"; + operating-points-v2 = <&pcluster_opp>; + performance-domains = <&cpufreq_pc0>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_p0_3>; + }; + + cpu16: cpu@10204 { + compatible = "apple,everest"; + capacity-dmips-mhz = <1024>; + device_type = "cpu"; + reg = <0x0 0x10204>; + enable-method = "spin-table"; + operating-points-v2 = <&pcluster_opp>; + performance-domains = <&cpufreq_pc0>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_p0_4>; + }; + cpu17: cpu@10205 { + compatible = "apple,everest"; + capacity-dmips-mhz = <1024>; + device_type = "cpu"; + reg = <0x0 0x10205>; + enable-method = "spin-table"; + operating-points-v2 = <&pcluster_opp>; + performance-domains = <&cpufreq_pc0>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_p0_5>; + }; + + cpu18: cpu@41000 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x41000>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc01>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m10>; + }; + + cpu19: cpu@41001 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x41001>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc01>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m10>; + }; + + cpu20: cpu@41002 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x41002>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc01>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m10>; + }; + + cpu21: cpu@41003 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x41003>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc01>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m10>; + }; + + cpu22: cpu@41004 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x41004>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc01>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m10>; + }; + + cpu24: cpu@41100 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x41100>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc11>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m11>; + }; + + cpu25: cpu@41101 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x41101>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc11>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m11>; + }; + + cpu26: cpu@41102 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x41102>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc11>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m11>; + }; + + cpu27: cpu@41103 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x41103>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc11>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m11>; + }; + + cpu28: cpu@41104 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <794>; + device_type = "cpu"; + reg = <0x0 0x41104>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc11>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_m11>; + }; + + cpu30: cpu@11200 { + compatible = "apple,everest"; + capacity-dmips-mhz = <1024>; + device_type = "cpu"; + reg = <0x0 0x11200>; + enable-method = "spin-table"; + operating-points-v2 = <&pcluster_opp>; + performance-domains = <&cpufreq_pc1>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_p1_0>; + }; + + cpu31: cpu@11201 { + compatible = "apple,everest"; + capacity-dmips-mhz = <1024>; + device_type = "cpu"; + reg = <0x0 0x11201>; + enable-method = "spin-table"; + operating-points-v2 = <&pcluster_opp>; + performance-domains = <&cpufreq_pc1>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_p1_1>; + }; + + cpu32: cpu@11202 { + compatible = "apple,everest"; + capacity-dmips-mhz = <1024>; + device_type = "cpu"; + reg = <0x0 0x11202>; + enable-method = "spin-table"; + operating-points-v2 = <&pcluster_opp>; + performance-domains = <&cpufreq_pc1>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_p1_2>; + }; + + cpu33: cpu@11203 { + compatible = "apple,everest"; + capacity-dmips-mhz = <1024>; + device_type = "cpu"; + reg = <0x0 0x11203>; + enable-method = "spin-table"; + operating-points-v2 = <&pcluster_opp>; + performance-domains = <&cpufreq_pc1>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_p1_3>; + }; + + cpu34: cpu@11204 { + compatible = "apple,everest"; + capacity-dmips-mhz = <1024>; + device_type = "cpu"; + reg = <0x0 0x11204>; + enable-method = "spin-table"; + operating-points-v2 = <&pcluster_opp>; + performance-domains = <&cpufreq_pc1>; + cpu-release-addr = <0 0>; + next-level-cache = <&l2_cache_p1_4>; + }; + + /* + * Caches beyond L1. Each Sawtooth (M) cluster shares an 8 MiB L2. + * An Everest (S) core has a private L2, and its cluster shares a + * 16 MiB L3. CLIDR_EL1 reports three cache levels on Everest and + * two on Sawtooth; macOS reports 16 MiB and 8 MiB per six cores + * (hw.perflevelN.l2cachesize, cpusperl2); dependent loads on J775c + * take 0.7 ns up to 128 KiB, 2.8 ns up to 512 KiB and 5-11 ns up + * to 8 MiB on an Everest core, and 1.0 ns up to 64 KiB and 4.7 ns + * up to 3 MiB on a Sawtooth core. The size of the Everest L2 is + * not established. Every CPU node must reach as many levels as + * CLIDR_EL1 reports, or cacheinfo ignores these nodes and treats + * every level above L1 as shared by all CPUs, which makes the + * scheduler's last-level-cache domain span all the clusters. + */ + l2_cache_m00: l2-cache-m00 { + compatible = "cache"; + cache-level = <2>; + cache-unified; + cache-size = <0x800000>; + }; + + l2_cache_m01: l2-cache-m01 { + compatible = "cache"; + cache-level = <2>; + cache-unified; + cache-size = <0x800000>; + }; + + l3_cache_p0: l3-cache-p0 { + compatible = "cache"; + cache-level = <3>; + cache-unified; + cache-size = <0x1000000>; + }; + + l2_cache_p0_0: l2-cache-p0-0 { + compatible = "cache"; + cache-level = <2>; + cache-unified; + next-level-cache = <&l3_cache_p0>; + }; + + l2_cache_p0_1: l2-cache-p0-1 { + compatible = "cache"; + cache-level = <2>; + cache-unified; + next-level-cache = <&l3_cache_p0>; + }; + + l2_cache_p0_2: l2-cache-p0-2 { + compatible = "cache"; + cache-level = <2>; + cache-unified; + next-level-cache = <&l3_cache_p0>; + }; + + l2_cache_p0_3: l2-cache-p0-3 { + compatible = "cache"; + cache-level = <2>; + cache-unified; + next-level-cache = <&l3_cache_p0>; + }; + + l2_cache_p0_4: l2-cache-p0-4 { + compatible = "cache"; + cache-level = <2>; + cache-unified; + next-level-cache = <&l3_cache_p0>; + }; + + l2_cache_p0_5: l2-cache-p0-5 { + compatible = "cache"; + cache-level = <2>; + cache-unified; + next-level-cache = <&l3_cache_p0>; + }; + + l2_cache_m10: l2-cache-m10 { + compatible = "cache"; + cache-level = <2>; + cache-unified; + cache-size = <0x800000>; + }; + + l2_cache_m11: l2-cache-m11 { + compatible = "cache"; + cache-level = <2>; + cache-unified; + cache-size = <0x800000>; + }; + + l3_cache_p1: l3-cache-p1 { + compatible = "cache"; + cache-level = <3>; + cache-unified; + cache-size = <0x1000000>; + }; + + l2_cache_p1_0: l2-cache-p1-0 { + compatible = "cache"; + cache-level = <2>; + cache-unified; + next-level-cache = <&l3_cache_p1>; + }; + + l2_cache_p1_1: l2-cache-p1-1 { + compatible = "cache"; + cache-level = <2>; + cache-unified; + next-level-cache = <&l3_cache_p1>; + }; + + l2_cache_p1_2: l2-cache-p1-2 { + compatible = "cache"; + cache-level = <2>; + cache-unified; + next-level-cache = <&l3_cache_p1>; + }; + + l2_cache_p1_3: l2-cache-p1-3 { + compatible = "cache"; + cache-level = <2>; + cache-unified; + next-level-cache = <&l3_cache_p1>; + }; + + l2_cache_p1_4: l2-cache-p1-4 { + compatible = "cache"; + cache-level = <2>; + cache-unified; + next-level-cache = <&l3_cache_p1>; + }; + + l2_cache_p1_5: l2-cache-p1-5 { + compatible = "cache"; + cache-level = <2>; + cache-unified; + next-level-cache = <&l3_cache_p1>; + }; + }; + + /* + * CPU OPPs, from the ADT: /arm-io/pmgr acc-clusters maps clusters 0, 1 and 2 of each die to voltage-states 22, + * 23 and 5, and their -sram tables give the frequencies (kHz). 22 and 23 list the same frequencies, so the two + * M clusters share one table. Levels are DVFS command states: state 1 is 300 MHz and state k the table's + * (k-1)-th entry from state 2, as on T8142 (measured on J775D: every state's clock from a dependent-add chain, + * cpm4 window, evidence/power/2026-11-02-cpupm). iBoot leaves die 0's and die 1's M cluster 0 in state 6 + * (2652 MHz), the other clusters in state 2. + * + * Bring-up: the controllers below assert apple,firmware-managed-thermal, which the T6050 profile requires, + * before that ownership is qualified on this boot chain (no Linux PMP driver runs; the SMC drives the fans). + * The cpm windows qualify it: an all-core load at the top states, watching TCMb, the fans and the measured + * clock (specs/2026-11-02-t6050-cpupm.md). + */ + + + /* The 24 MHz reference clock of the watchdog */ + + /* The QSPI controller's input: ADT /arm-io/qspi clock-ids 440, /arm-io clock-frequencies[440 - 256] */ + + + /* Die 0 MMIO */ + die0: soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + nonposted-mmio; + + /* + * The clusters' DVFS command apertures: /arm-io/pmgr reg 16, 26 and 36 (0x12e8 each, the driver uses + * the first 0x1000). apple,firmware-managed-thermal: see the CPU OPP tables. + */ + cpufreq_mc00: performance-controller@210e20000 { + compatible = "apple,t6050-cluster-cpufreq"; + reg = <0x2 0x10e20000 0x0 0x1000>; + #performance-domain-cells = <0>; + apple,firmware-managed-thermal; + }; + + cpufreq_mc10: performance-controller@211e20000 { + compatible = "apple,t6050-cluster-cpufreq"; + reg = <0x2 0x11e20000 0x0 0x1000>; + #performance-domain-cells = <0>; + apple,firmware-managed-thermal; + }; + + cpufreq_pc0: performance-controller@212e20000 { + compatible = "apple,t6050-cluster-cpufreq"; + reg = <0x2 0x12e20000 0x0 0x1000>; + #performance-domain-cells = <0>; + apple,firmware-managed-thermal; + }; + + /* One AIC3 for both dies, 3104 interrupts each */ + aic: interrupt-controller@280400000 { + compatible = "apple,t6050-aic3", "apple,t8122-aic3"; + interrupt-controller; + #interrupt-cells = <4>; + reg = <0x2 0x80400000 0x0 0x1cc000>, + <0x2 0x80440000 0x0 0x4000>; + reg-names = "core", "event"; + }; + + /* + * DockChannel channel 1, the one the USB debug link carries. + * Its FIFO raises no interrupt on receive, so it is drained in + * software. + */ + dockchannel: serial@288e3c000 { + compatible = "apple,dockchannel-uart"; + reg = <0x2 0x88e3c000 0x0 0x30>, + <0x2 0x88e38000 0x0 0x8>, + <0x2 0x88e0c000 0x0 0x18>; + reg-names = "data", "config", "irq"; + interrupts = ; + apple,channel = <1>; + apple,sw-drain; + status = "disabled"; + }; + + wdt: watchdog@28836c000 { + compatible = "apple,t6050-wdt", "apple,t8103-wdt"; + reg = <0x2 0x8836c000 0x0 0x4000>; + clocks = <&clkref>; + interrupts = ; + }; + + /* + * /arm-io/smc: reg[0] 0x8c600000 +0x88000 (the ASC; the SMC driver maps none of it), its mailbox + * the ASC v4 block at +0x8000 as on ANS. ADT interrupts [900, 899, 902, 901]: 899..902 in the + * send-empty, send-not-empty, recv-empty, recv-not-empty order. iop-smc-nub region-base + * 0x28de00000 +0x140000 is already a CPU address: the SRAM its RTKit buffers and key replies use. + * iBoot leaves the firmware (t6050smc) running. + */ + smc_mbox: mailbox@28c608000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x2 0x8c608000 0x0 0x4000>; + interrupts = , + , + , + ; + interrupt-names = "send-empty", "send-not-empty", + "recv-empty", "recv-not-empty"; + #mbox-cells = <0>; + }; + + /* + * The AOP's GPIO controller (ADT /arm-io/aop-gpio0, gpio,t8101, 85 pins), for the HDMI + * port's hotplug input (pin 14, active high). The AOP keeps interrupt groups 0-3; the + * AP's are 4-6 (supported-int-groups), AIC 572-574. Like T8132's, the block has slots + * that fault when read, so it is matched as T8132's (no register cache read-back). + * Pin 15 (force-dpfu) is never requested. + */ + pinctrl_aop: pinctrl@290824000 { + compatible = "apple,t6050-pinctrl", "apple,t8132-pinctrl"; + reg = <0x2 0x90824000 0x0 0x4000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_aop 0 0 85>; + apple,npins = <85>; + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + ; + apple,irq-group-base = <4>; + /* Aura enables it with dcpext4 (its hotplug input). */ + status = "disabled"; + }; + + smc: smc@28c600000 { + compatible = "apple,t6050-smc"; + reg = <0x2 0x8c600000 0x0 0x4000>, + <0x2 0x8de00000 0x0 0x140000>; + reg-names = "smc", "sram"; + mboxes = <&smc_mbox>; + + /* T8142's key discovery (every readable T* float key); the Studio's two fans below. */ + smc_hwmon: hwmon { + compatible = "apple,smc-hwmon"; + apple,discover-temperatures; + /* macsmc_soc_die: the SoC hotspot the SMC computes (TCMb, 47.8 C at idle) */ + apple,soc-die-keys = "TCMb"; + + /* PSTR and PDTR read 0 on the Studio; PD0R is its DC input (36.5 W at an idle desktop). */ + power-PD0R { + apple,key-id = "PD0R"; + label = "DC Input Power"; + }; + }; + + /* + * The PMU's legacy scratchpad (info-leg_scrpad 0xf800) cells, as on T6040, and its + * power-on policy byte (info-pm_setting 0x2001, as on T6030) for ac_power_mode. + */ + smc_reboot: reboot { + compatible = "apple,smc-reboot"; + nvmem-cells = <&shutdown_flag>, <&boot_stage>, + <&boot_error_count>, <&panic_count>, <&pm_setting>; + nvmem-cell-names = "shutdown_flag", "boot_stage", + "boot_error_count", "panic_count", "pm_setting"; + }; + + /* + * The HDMI converter's two power outputs, SMC pcIO commands (ADT dp2hdmi-gpio1, + * pKW8('pcIO', lo, hi) templates (hi << 32) | lo, the level in bits 15:0): + * line 0 hdmi_pwr_en ('pcIO', 0x800000, 0xf0000), line 1 dp2hdmi_pwr_en + * ('pcIO', 0x0, 0x1a0000). Nothing drives them until the HDMI output does. + */ + smc_pcio: gpio { + compatible = "apple,smc-pcio-gpio"; + gpio-controller; + #gpio-cells = <2>; + apple,output-commands = /bits/ 64 <0x000f000000800000 0x001a000000000000>; + }; + + /* ADT info-clock_offset [0x2100, 6]: M1-style 32768 Hz ticks, as on T6040. */ + smc_rtc: rtc { + compatible = "apple,smc-rtc"; + nvmem-cells = <&rtc_offset>, <&rtc_ctrl>, <&rtc_alarm>, + <&rtc_alarm_mask>; + nvmem-cell-names = "rtc_offset", "rtc_ctrl", "rtc_alarm", + "rtc_alarm_mask"; + /* The PMU alarm: its peripheral interrupt 2 (ADT smc-pmu wake source bit 48, rtc) */ + interrupts-extended = <&nub_spmi0 2 IRQ_TYPE_EDGE_RISING>; + wakeup-source; + }; + }; + + /* + * The storage SART. The boot loader's entries (outside the + * kernel's memory) stay in place. + */ + ans_sart: iommu@41dc50000 { + compatible = "apple,t6050-sart"; + reg = <0x4 0x1dc50000 0x0 0xc000>; + }; + + ans_mbox: mailbox@419608000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x4 0x19608000 0x0 0x4000>; + interrupts = , + , + , + ; + interrupt-names = "send-empty", "send-not-empty", + "recv-empty", "recv-not-empty"; + #mbox-cells = <0>; + }; + + /* + * The boot loader leaves ANS running with the controller shut + * down. Its power stays with the firmware, and post-M4 ANS is + * never reset through PMGR, so the node names no power domain + * and no reset. + */ + nvme: nvme@45dcc0000 { + compatible = "apple,t6050-nvme-ans2"; + reg = <0x4 0x5dcc0000 0x0 0x10000>, + <0x4 0x19600000 0x0 0x4000>, + <0x4 0x1dcc0000 0x0 0x60000>; + reg-names = "nvme", "ans", "nvmmu"; + interrupts = ; + mboxes = <&ans_mbox>; + apple,sart = <&ans_sart>; + }; + + /* The DARTs of PCIe ports 2 and 3 */ + dart_apcie2: iommu@412000000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x4 0x12000000 0x0 0x20000>; + interrupts = ; + #iommu-cells = <1>; + status = "disabled"; + }; + + /* + * /arm-io/dart-apcie0: the N1's (apcie port 0). Its mappers are Control, Alpha and Beta + * on streams 1, 2 and 3. Disabled, like port 0, until the bootloader trains that port. + */ + dart_apcie0: iommu@410000000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x4 0x10000000 0x0 0x20000>; + interrupts = ; + #iommu-cells = <1>; + status = "disabled"; + }; + + dart_apcie3: iommu@413000000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x4 0x13000000 0x0 0x20000>; + interrupts = ; + #iommu-cells = <1>; + status = "disabled"; + }; + + /* + * /arm-io/nub-spmi0: reg[0] 0x8a014000 +0x4000, generation 4. Its AIC line is ADT interrupts[1] + * (726; the others are the controller's own numbers: 256 the command notify, 281 fatal, then the + * error and other lists). Its peripheral interrupts carry the PMU's (spmi-abbeyL1: 2, 62). + * No power-domains: NUB_SPMI0 is critical and on (Aura talks to the PMU here every boot), and + * binding the pwrstate driver would write the PS register at probe. + */ + nub_spmi0: spmi@28a014000 { + compatible = "apple,t6050-spmi", "apple,t8142-spmi"; + reg = <0x2 0x8a014000 0x0 0x4000>; + #address-cells = <2>; + #size-cells = <0>; + interrupt-parent = <&aic>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <2>; + + /* spmi-abbeyL1, is-primary: USID 0xe. Read-only use: cells, never a whole-device read. */ + pmu: pmic@e { + compatible = "apple,abbey-pmic", "apple,spmi-nvmem"; + reg = <0xe SPMI_USID>; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + /* + * The PMU alarm: ADT info-rtc_alarm_ctrl 0x2000 (monitor bit 0, event bit 1, + * enable bit 6), info-rtc_alarm_offset 0x2008, info-rtc_irq_mask_offset 0x200e. + */ + rtc_ctrl: rtc-ctrl@2000 { + reg = <0x2000 1>; + }; + + /* ADT info-pm_setting: bit 0 no restore, bit 5 no power-on at connect */ + pm_setting: pm-setting@2001 { + reg = <0x2001 1>; + }; + + rtc_alarm: rtc-alarm@2008 { + reg = <0x2008 4>; + }; + + rtc_alarm_mask: rtc-alarm-mask@200e { + reg = <0x200e 1>; + }; + + rtc_offset: rtc-offset@2100 { + reg = <0x2100 6>; /* ADT info-clock_offset */ + }; + + /* Abbey conventions (research 14; 0xf802 is the counter Aura clears). */ + boot_stage: boot-stage@f801 { + reg = <0xf801 1>; + }; + + boot_error_count: boot-error-count@f802,0 { + reg = <0xf802 1>; + bits = <0 4>; + }; + + panic_count: panic-count@f802,4 { + reg = <0xf802 1>; + bits = <4 4>; + }; + + shutdown_flag: shutdown-flag@f80f,3 { + reg = <0xf80f 1>; + bits = <3 1>; + }; + }; + }; + }; + /* + * dcpext0, the first external display engine (die 0), as iBoot leaves it: powered, its ASC + * running, both DARTs locked (PROTECT 0xff / 0xb9) on its own four-level tables, DCP SID 23, + * scanout SID 0 and PIODMA SID 16 (evidence/display/2026-10-30-dcpext-inventory.md). From the + * ADT (/arm-io/dcpext0, dispext0, dart-dcpext0, dart-dispext0; arm-io ranges +0x200000000) + * and the M5 guest's validated dcp@70000000 (aura-internal data/m5-apif-guest.dts), whose + * physical addresses these are. No power-domains: the blocks run with auto-enable, and the + * pwrstate driver would write PS at probe. All disabled here: Aura enables them only when its + * checks of that state pass and it has reserved vram (patches/aura). + */ + dart_dcpext0: iommu@2b2340000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x2 0xb2340000 0x0 0x20000>; + /* dart-dcpext0 and dart-dispext0 share ADT interrupt 1070 */ + interrupts = ; + #iommu-cells = <1>; + /* ADT vm-base 1 TiB, vm-size 3 TiB */ + apple,dma-range = <0x100 0x0 0x300 0x0>; + status = "disabled"; + }; + + dart_dispext0: iommu@2b2300000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + /* reg[0] only; the ADT's second bank (0xb2314000) and shared 0x803f0000 are not ours */ + reg = <0x2 0xb2300000 0x0 0xc000>; + interrupts = ; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x0 0x300 0x0>; + status = "disabled"; + }; + + /* The ASC v4 mailbox at dcpext0 + 0x8000; ADT interrupts 1123..1126 in mailbox order */ + dcpext0_mbox: mailbox@2b2e08000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x2 0xb2e08000 0x0 0x4000>; + interrupts = , + , + , + ; + interrupt-names = "send-empty", "send-not-empty", + "recv-empty", "recv-not-empty"; + #mbox-cells = <0>; + status = "disabled"; + }; + + /* dispext0 reg[4]: the PMC metadata the bandwidth scratch lives in */ + dcpext0_pmc: pmc-metadata@286700000 { + reg = <0x2 0x86700000 0x0 0x114000>; + #apple,bw-scratch-cells = <3>; + status = "disabled"; + }; + + /* + * The PMC voter interface (die 0): agent a's floor word at "voters" + 0x4000 * a, with a + * pending word after it, and the honoured floors and rail enable words at "rails". Both lie + * inside dispext0's PMC range above, which the DCP driver only hands to its firmware. Agents + * (ADT voter-agent): PMP 0, CLPC 1, GFX 2, AP 3, PMP1 4. The boot loader enables none on any + * rail; CLPC and AP become static voters. The PMP and GFX agents stay as the boot left them. + */ + pmc: power-management@286806000 { + compatible = "apple,t6050-pmc"; + reg = <0x2 0x86806000 0x0 0x3000>, + <0x2 0x86700000 0x0 0x14000>; + reg-names = "rails", "voters"; + #address-cells = <1>; + #size-cells = <0>; + apple,static-voters = <1 3>; + + clpc: performance-controller@1 { + compatible = "apple,t6050-clpc", "apple,t6041-clpc"; + reg = <1>; + }; + }; + + dcpext0: dcp@2b2e00000 { + compatible = "apple,t6050-dcpext", "apple,dcpext"; + reg = <0x2 0xb2e00000 0x0 0x4000>, + <0x2 0xb0000000 0x0 0x4000000>, + <0x2 0xb2240000 0x0 0x10000>, + <0x2 0xb23ac000 0x0 0x4000>, + <0x2 0xb2800000 0x0 0x800000>, + <0x2 0x86700000 0x0 0x114000>, + <0x2 0xb2850000 0x0 0x4000>; + reg-names = "coproc", "disp-0", "disp-1", "disp-2", "disp-3", "disp-4", "iop-vbar"; + mboxes = <&dcpext0_mbox>; + mbox-names = "mbox"; + iommus = <&dart_dcpext0 23>; + apple,bw-scratch = <&dcpext0_pmc 0 5 0x2c000>; + apple,dcp-index = <1>; + /* dcpext has no firmware clocks (the M5 guest's empty list) */ + apple,clock-ids; + /* + * apple,firmware-version/-compat come from Aura's handoff (aura/0034): the stub's + * firmware, 27.0 or 27.2, whose IOMFB method IDs differ (iomfb_v27.c). + */ + /* + * DisplayPort out on the rear USB-C ports. Route 0 is port 3 (HPM2, "back-left-middle", + * ATC2), the M5 guest's route for this engine (crossbar index 0, typec-dptx-phys 2), + * which Aura's display handoff enables and binds to its HPM. Routes 1-3 are ports 2, 4 + * and 1 (ATC1, ATC3, ATC0): the same crossbar input on each port's crossbar, and the + * port's own DPTX PHY, as the other Apple boards that route one engine to every port. + */ + apple,connector-type = "USB-C"; + apple,dptx-die = <0>; + apple,typec-dptx-phys = <2 1 3 0>; + apple,typec-mux-indices = <0 0 0 0>; + phys = <&atc2_phy 6>, <&atc1_phy 6>, <&atc3_phy 6>, <&atc0_phy 6>; + phy-names = "typec0", "typec1", "typec2", "typec3"; + mux-controls = <&atc2_xbar 0>, <&atc1_xbar 0>, <&atc3_xbar 0>, <&atc0_xbar 0>; + mux-control-names = "typec0", "typec1", "typec2", "typec3"; + status = "disabled"; + + piodma { + iommus = <&dart_dispext0 16>; + }; + + typec-routes { + #address-cells = <1>; + #size-cells = <0>; + + route@0 { + reg = <0>; + mode-switch; + + port { + dcpext0_typec: endpoint { + remote-endpoint = <&hpm2_dp>; + }; + }; + }; + + route@1 { + reg = <1>; + mode-switch; + + port { + dcpext0_typec1: endpoint { + remote-endpoint = <&hpm1_dp>; + }; + }; + }; + + route@2 { + reg = <2>; + mode-switch; + + port { + dcpext0_typec2: endpoint { + remote-endpoint = <&hpm3_dp>; + }; + }; + }; + + route@3 { + reg = <3>; + mode-switch; + + port { + dcpext0_typec3: endpoint { + remote-endpoint = <&hpm0_dp>; + }; + }; + }; + }; + }; + + /* + * The Type-C chain of rear port 3, all disabled: Aura's T6050 display handoff enables + * what dcpext0 references (phys, mux-controls, the PHY's mailbox and power domains, + * the typec route's HPM and its SPMI bus). Addresses from the ADT (arm-io ranges + * +0x200000000); PMGR offsets from tools/aura's pmgr_adt2dt.py over the same ADT. + */ + pmgr0: power-management@280600000 { + compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; + reg = <0x2 0x80600000 0x0 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + + /* Rear port 1 (ATC0), ADT pmgr ATC0_COMMON. */ + ps_atc0_common: power-controller@208 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x208 4>; + label = "atc0_common"; + #power-domain-cells = <0>; + #reset-cells = <0>; + }; + + /* Rear port 2's (ATC1) chain is described enabled: nothing hands it off. */ + ps_atc1_common: power-controller@210 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x210 4>; + label = "atc1_common"; + #power-domain-cells = <0>; + #reset-cells = <0>; + }; + + ps_atc2_common: power-controller@238 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x238 4>; + label = "atc2_common"; + #power-domain-cells = <0>; + #reset-cells = <0>; + status = "disabled"; + }; + + /* Rear port 4 (ATC3), ADT gate 62. Its parent FAB5_SOC (+0x1f0) is critical: always on. */ + ps_atc3_common: power-controller@240 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x240 4>; + label = "atc3_common"; + #power-domain-cells = <0>; + #reset-cells = <0>; + }; + }; + + pmgr2: power-management@288300000 { + compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; + reg = <0x2 0x88300000 0x0 0xc000>; + #address-cells = <1>; + #size-cells = <1>; + + /* Rear port 1 (ATC0): ADT pmgr ATC0_USB_AON, ATC0_USB, ATC0_PHYMXWRAP. */ + ps_atc0_usb_aon: power-controller@148 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x148 4>; + label = "atc0_usb_aon"; + #power-domain-cells = <0>; + #reset-cells = <0>; + }; + + ps_atc0_usb: power-controller@150 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x150 4>; + label = "atc0_usb"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc0_common>, <&ps_atc0_usb_aon>; + }; + + ps_atc0_phymxwrap: power-controller@158 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x158 4>; + label = "atc0_phymxwrap"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc0_common>, <&ps_atc0_usb_aon>; + }; + + ps_atc1_usb_aon: power-controller@160 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x160 4>; + label = "atc1_usb_aon"; + #power-domain-cells = <0>; + #reset-cells = <0>; + }; + + /* usb-drd1's clock gate (its DARTs' too); the PHY's USB2 banks need it as well */ + ps_atc1_usb: power-controller@168 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x168 4>; + label = "atc1_usb"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc1_common>, <&ps_atc1_usb_aon>; + }; + + ps_atc1_phymxwrap: power-controller@170 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x170 4>; + label = "atc1_phymxwrap"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc1_common>, <&ps_atc1_usb_aon>; + }; + + ps_atc2_usb_aon: power-controller@178 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x178 4>; + label = "atc2_usb_aon"; + #power-domain-cells = <0>; + #reset-cells = <0>; + status = "disabled"; + }; + + ps_atc2_phymxwrap: power-controller@188 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x188 4>; + label = "atc2_phymxwrap"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc2_common>, <&ps_atc2_usb_aon>; + status = "disabled"; + }; + + /* usb-drd2's clock gate; the PHY's USB2 banks need it too */ + ps_atc2_usb: power-controller@180 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x180 4>; + label = "atc2_usb"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc2_common>, <&ps_atc2_usb_aon>; + status = "disabled"; + }; + + /* Rear port 4 (ATC3): ADT gates 269, 270 (usb-drd3) and 271 */ + ps_atc3_usb_aon: power-controller@190 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x190 4>; + label = "atc3_usb_aon"; + #power-domain-cells = <0>; + #reset-cells = <0>; + }; + + ps_atc3_usb: power-controller@198 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x198 4>; + label = "atc3_usb"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc3_common>, <&ps_atc3_usb_aon>; + }; + + ps_atc3_phymxwrap: power-controller@1a0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1a0 4>; + label = "atc3_phymxwrap"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc3_common>, <&ps_atc3_usb_aon>; + }; + }; + + /* /arm-io/acio-phy-cpu2 reg[0]: the PHY firmware's mailbox (it runs, pre-loaded by iBoot) */ + atc2_phy_mbox: mailbox@383148000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x3 0x83148000 0x0 0x4000>; + interrupts = , + , + , + ; + interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; + #mbox-cells = <0>; + status = "disabled"; + }; + + /* /arm-io/atc-phy2 regs [2] [0] usb-drd2[4] [39] [40] [41] [42] [43] [38] [37] usb-drd2[3] */ + atc2_phy: phy@383000000 { + compatible = "apple,t6050-combo-phy"; + reg = <0x3 0x83000000 0x0 0x2c000>, + <0x3 0x82a90000 0x0 0x4000>, + <0x3 0x82800000 0x0 0x4000>, + <0x3 0x83200000 0x0 0x4000>, + <0x3 0x83244000 0x0 0x4000>, + <0x3 0x80000000 0x0 0x8000>, + <0x3 0x80020000 0x0 0x4000>, + <0x3 0x83250000 0x0 0x4000>, + <0x3 0x83140000 0x0 0x4000>, + <0x3 0x830c0000 0x0 0x10000>, + <0x3 0x82a84000 0x0 0x4000>; + reg-names = "core", "usb2phy", "usb2-digital", "reset", "fabric", "axi2af", "lioa", + "common-cfg", "usb-control", "firmware-data", "pipehandler"; + #phy-cells = <1>; + #reset-cells = <1>; + apple,port-index = <2>; + /* The binding's name for "no other owner"; nothing else drives this port here. */ + apple,guest-port-reserved; + mode-switch; + orientation-switch; + mboxes = <&atc2_phy_mbox>; + power-domains = <&ps_atc2_usb_aon>, <&ps_atc2_common>, <&ps_atc2_phymxwrap>, + <&ps_atc2_usb>; + power-domain-names = "usb-aon", "common", "wrapper", "usb"; + status = "disabled"; + + port { + atc2_phy_ep: endpoint { + remote-endpoint = <&hpm2_ss>; + }; + }; + }; + + /* /arm-io/atc0-dpxbar */ + + /* /arm-io/atc1-dpxbar */ + + /* /arm-io/atc3-dpxbar */ + + /* /arm-io/atc2-dpxbar */ + atc2_xbar: mux@38324c000 { + compatible = "apple,t6050-display-crossbar", "apple,t8142-display-crossbar"; + reg = <0x3 0x8324c000 0x0 0x4000>; + #mux-control-cells = <1>; + power-domains = <&ps_atc2_usb_aon>, <&ps_atc2_common>; + power-domain-names = "usb-aon", "common"; + status = "disabled"; + }; + + /* + * /arm-io/nub-spmi-a0: reg[0] 0x8a188000, generation 4. The HPM is polled (no + * interrupts), so the bus needs none either. + */ + /* Enabled for rear port 2's HPM; the display handoff still enables hpm2 itself. */ + nub_spmi_a0: spmi@28a188000 { + compatible = "apple,t6050-spmi", "apple,t8142-spmi"; + reg = <0x2 0x8a188000 0x0 0x4000>; + #address-cells = <2>; + #size-cells = <0>; + + /* + * /arm-io/nub-spmi-a0/hpm0: SN201202x (ACE3), SPMI address 0xc, port-number 1 (back-right): + * the DFU port. Bring-up kept it disabled for the DFU cable's host-side VDM reboot path and + * the debug console (KIS); a smart plug now covers power-cycles, and full parity needs the + * port. While Linux runs, this driver owns the controller, as on other Apple machines. + */ + hpm0: usb-pd@c { + compatible = "apple,sn201202x"; + reg = <0xc SPMI_USID>; + + connector { + compatible = "usb-c-connector"; + label = "USB-C Back-right"; + power-role = "dual"; + data-role = "host"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + hpm0_hs: endpoint { + remote-endpoint = <&usb_drd0_hs>; + }; + }; + + port@1 { + reg = <1>; + hpm0_ss: endpoint { + remote-endpoint = <&atc0_phy_ep>; + }; + }; + + port@2 { + reg = <2>; + hpm0_dp: endpoint { + remote-endpoint = <&dcpext0_typec3>; + }; + }; + }; + }; + }; + + /* /arm-io/nub-spmi-a0/hpm1: SN201202x (ACE3), SPMI address 0xa, port-number 2 */ + hpm1: usb-pd@a { + compatible = "apple,sn201202x"; + reg = <0xa SPMI_USID>; + + connector { + compatible = "usb-c-connector"; + label = "USB-C Back-right-middle"; + power-role = "dual"; + data-role = "host"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + hpm1_hs: endpoint { + remote-endpoint = <&usb_drd1_hs>; + }; + }; + + port@1 { + reg = <1>; + hpm1_ss: endpoint { + remote-endpoint = <&atc1_phy_ep>; + }; + }; + + port@2 { + reg = <2>; + hpm1_dp: endpoint { + remote-endpoint = <&dcpext0_typec1>; + }; + }; + }; + }; + }; + + /* /arm-io/nub-spmi-a0/hpm2: SN201202x (ACE3), SPMI address 8, port-number 3 */ + hpm2: usb-pd@8 { + compatible = "apple,sn201202x"; + reg = <0x8 SPMI_USID>; + status = "disabled"; + + connector { + compatible = "usb-c-connector"; + label = "USB-C Back-left-middle"; + power-role = "dual"; + data-role = "dual"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + hpm2_hs: endpoint { + remote-endpoint = <&usb_drd2_hs>; + }; + }; + + port@1 { + reg = <1>; + hpm2_ss: endpoint { + remote-endpoint = <&atc2_phy_ep>; + }; + }; + + port@2 { + reg = <2>; + hpm2_dp: endpoint { + remote-endpoint = <&dcpext0_typec>; + }; + }; + }; + }; + }; + + /* /arm-io/nub-spmi-a0/hpm3: SN201202x (ACE3), SPMI address 6, port-number 4 */ + hpm3: usb-pd@6 { + compatible = "apple,sn201202x"; + reg = <0x6 SPMI_USID>; + + connector { + compatible = "usb-c-connector"; + label = "USB-C Back-left"; + power-role = "dual"; + data-role = "host"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + hpm3_hs: endpoint { + remote-endpoint = <&usb_drd3_hs>; + }; + }; + + port@1 { + reg = <1>; + hpm3_ss: endpoint { + remote-endpoint = <&atc3_phy_ep>; + }; + }; + + port@2 { + reg = <2>; + hpm3_dp: endpoint { + remote-endpoint = <&dcpext0_typec2>; + }; + }; + }; + }; + }; + }; + + /* + * Rear USB-C port 2 (HPM1, "back-right-middle"), USB data: ATC1's combo PHY, usb-drd1 and + * dart-usb1, as port 3's above with ADT /arm-io/atc-phy1, usb-drd1 and acio-phy-cpu1. + */ + /* + * Rear USB-C port 1 (HPM0, "back-right" in the ADT, leftmost seen from behind; the DFU + * port): ATC0's combo PHY, usb-drd0 and dart-usb0, as port 2's below. ADT /arm-io/atc-phy0, + * usb-drd0, dart-usb0 and acio-phy-cpu0: every register ATC1's - 0x08000000, the same + * properties and tunables (usb-drd0 adds only usb-restore-disable and the restore NCM address). + */ + /* /arm-io/acio-phy-cpu0 reg[0]: the PHY firmware's mailbox */ + atc0_phy_mbox: mailbox@2a3148000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x2 0xa3148000 0x0 0x4000>; + interrupts = , + , + , + ; + interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; + #mbox-cells = <0>; + }; + + /* /arm-io/atc-phy0 regs [2] [0] usb-drd0[4] [39] [40] [41] [42] [43] [38] [37] usb-drd0[3] */ + atc0_phy: phy@2a3000000 { + compatible = "apple,t6050-combo-phy"; + reg = <0x2 0xa3000000 0x0 0x2c000>, + <0x2 0xa2a90000 0x0 0x4000>, + <0x2 0xa2800000 0x0 0x4000>, + <0x2 0xa3200000 0x0 0x4000>, + <0x2 0xa3244000 0x0 0x4000>, + <0x2 0xa0000000 0x0 0x8000>, + <0x2 0xa0020000 0x0 0x4000>, + <0x2 0xa3250000 0x0 0x4000>, + <0x2 0xa3140000 0x0 0x4000>, + <0x2 0xa30c0000 0x0 0x10000>, + <0x2 0xa2a84000 0x0 0x4000>; + reg-names = "core", "usb2phy", "usb2-digital", "reset", "fabric", "axi2af", "lioa", + "common-cfg", "usb-control", "firmware-data", "pipehandler"; + #phy-cells = <1>; + #reset-cells = <1>; + apple,port-index = <0>; + /* The DFU cable's debug link is no longer used on J775c: port 0 is ordinary. */ + apple,boot-link-released; + apple,guest-port-reserved; + mode-switch; + orientation-switch; + mboxes = <&atc0_phy_mbox>; + power-domains = <&ps_atc0_usb_aon>, <&ps_atc0_common>, <&ps_atc0_phymxwrap>, + <&ps_atc0_usb>; + power-domain-names = "usb-aon", "common", "wrapper", "usb"; + + port { + atc0_phy_ep: endpoint { + remote-endpoint = <&hpm0_ss>; + }; + }; + }; + + /* + * /arm-io/usb-drd0: reg[0] (core and Apple regions), reg[1] (drd-cfg), interrupt 1419. The + * tunables are its ADT tables (DRD_USB31_GBL_DEFAULT with GCTL.PWRDNSCALE = 0xd, as on + * T6040; GBL_HOST, DBG, CFG_HOST, LINK_REGS, CIO_REGS); PIPE_HANDLER goes to the PHY. + */ + + /* /arm-io/dart-usb0 reg[0] and reg[1], interrupt 1423; vm-base 0x10000004000 +0xffff0000 */ + + + /* /arm-io/acio-phy-cpu1 reg[0]: the PHY firmware's mailbox */ + atc1_phy_mbox: mailbox@2ab148000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x2 0xab148000 0x0 0x4000>; + interrupts = , + , + , + ; + interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; + #mbox-cells = <0>; + }; + + /* /arm-io/atc-phy1 regs [2] [0] usb-drd1[4] [39] [40] [41] [42] [43] [38] [37] usb-drd1[3] */ + atc1_phy: phy@2ab000000 { + compatible = "apple,t6050-combo-phy"; + reg = <0x2 0xab000000 0x0 0x2c000>, + <0x2 0xaaa90000 0x0 0x4000>, + <0x2 0xaa800000 0x0 0x4000>, + <0x2 0xab200000 0x0 0x4000>, + <0x2 0xab244000 0x0 0x4000>, + <0x2 0xa8000000 0x0 0x8000>, + <0x2 0xa8020000 0x0 0x4000>, + <0x2 0xab250000 0x0 0x4000>, + <0x2 0xab140000 0x0 0x4000>, + <0x2 0xab0c0000 0x0 0x10000>, + <0x2 0xaaa84000 0x0 0x4000>; + reg-names = "core", "usb2phy", "usb2-digital", "reset", "fabric", "axi2af", "lioa", + "common-cfg", "usb-control", "firmware-data", "pipehandler"; + #phy-cells = <1>; + #reset-cells = <1>; + apple,port-index = <1>; + apple,guest-port-reserved; + mode-switch; + orientation-switch; + mboxes = <&atc1_phy_mbox>; + power-domains = <&ps_atc1_usb_aon>, <&ps_atc1_common>, <&ps_atc1_phymxwrap>, + <&ps_atc1_usb>; + power-domain-names = "usb-aon", "common", "wrapper", "usb"; + + port { + atc1_phy_ep: endpoint { + remote-endpoint = <&hpm1_ss>; + }; + }; + }; + + /* + * /arm-io/usb-drd1: reg[0] (core and Apple regions), reg[1] (drd-cfg), interrupt 1451. The + * tunables are its ADT tables (DRD_USB31_GBL_DEFAULT with GCTL.PWRDNSCALE = 0xd, as on + * T6040; GBL_HOST, DBG, CFG_HOST, LINK_REGS, CIO_REGS); PIPE_HANDLER goes to the PHY. + */ + usb_drd1: usb@2aa280000 { + compatible = "apple,t6050-dwc3", "apple,t8103-dwc3"; + reg = <0x2 0xaa280000 0x0 0xcd00>, + <0x2 0xaa28cd00 0x0 0x4b00>, + <0x2 0xaa200000 0x0 0x4000>; + reg-names = "dwc3-core", "dwc3-apple", "drd-cfg"; + interrupts = ; + dr_mode = "otg"; + usb-role-switch; + role-switch-default-mode = "host"; + iommus = <&usb_drd1_dart_0 0>, <&usb_drd1_dart_1 1>; + power-domains = <&ps_atc1_usb>; + resets = <&atc1_phy 0>; + phys = <&atc1_phy PHY_TYPE_USB2>, <&atc1_phy PHY_TYPE_USB3>; + phy-names = "usb2-phy", "usb3-phy"; + apple,tunable-gbl-default = <0x64 0x2 0x0>, <0x10 0xfff80000 0x00680000>; + apple,tunable-gbl-host = <0x4 0x0001ef00 0x00002f00>, <0x1c 0x00000100 0x0>, + <0x2c 0x000a07ff 0x000800c8>, <0x100 0x02000100 0x02000100>, + <0x504 0x00001000 0x0>, <0x528 0xff0000ff 0x06000006>, + <0x52c 0xff0000ff 0x08000008>, <0x580 0xffffffff 0x6f000006>, + <0x584 0xffffffff 0x00060000>; + apple,tunable-dbg = <0x0 0x8 0x8>; + apple,tunable-cfg-host = <0x20 0xff 0x1b>; + apple,tunable-link = <0x10 0xff000000 0xff000000>, <0x20 0x7ff00000 0x4e900000>, + <0x24 0x001f8000 0x000b8000>, <0x60 0x0003ffff 0x00000600>; + apple,tunable-cio = <0x20 0x00ff0000 0x001e0000>; + + port { + usb_drd1_hs: endpoint { + remote-endpoint = <&hpm1_hs>; + }; + }; + }; + + /* /arm-io/dart-usb1 reg[0] and reg[1], interrupt 1455; vm-base 0x10000004000 +0xffff0000 */ + usb_drd1_dart_0: iommu@2aaf00000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x2 0xaaf00000 0x0 0xc000>; + interrupts = ; + power-domains = <&ps_atc1_usb>; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + }; + + usb_drd1_dart_1: iommu@2aaf80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x2 0xaaf80000 0x0 0xc000>; + interrupts = ; + power-domains = <&ps_atc1_usb>; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + }; + + /* + * Rear USB-C port 3 (HPM2, the display port): usb-drd2 and dart-usb2, for USB beside DisplayPort + * on ATC2. Disabled: atc2_phy and its domains are the display handoff's. + */ + /* /arm-io/usb-drd2: reg[0] (core and Apple regions), reg[1] (drd-cfg), interrupt 1483; port 2's tunables */ + usb_drd2: usb@382280000 { + compatible = "apple,t6050-dwc3", "apple,t8103-dwc3"; + reg = <0x3 0x82280000 0x0 0xcd00>, + <0x3 0x8228cd00 0x0 0x4b00>, + <0x3 0x82200000 0x0 0x4000>; + reg-names = "dwc3-core", "dwc3-apple", "drd-cfg"; + interrupts = ; + dr_mode = "otg"; + usb-role-switch; + role-switch-default-mode = "host"; + iommus = <&usb_drd2_dart_0 0>, <&usb_drd2_dart_1 1>; + power-domains = <&ps_atc2_usb>; + resets = <&atc2_phy 0>; + phys = <&atc2_phy PHY_TYPE_USB2>, <&atc2_phy PHY_TYPE_USB3>; + phy-names = "usb2-phy", "usb3-phy"; + apple,tunable-gbl-default = <0x64 0x2 0x0>, <0x10 0xfff80000 0x00680000>; + apple,tunable-gbl-host = <0x4 0x0001ef00 0x00002f00>, <0x1c 0x00000100 0x0>, + <0x2c 0x000a07ff 0x000800c8>, <0x100 0x02000100 0x02000100>, + <0x504 0x00001000 0x0>, <0x528 0xff0000ff 0x06000006>, + <0x52c 0xff0000ff 0x08000008>, <0x580 0xffffffff 0x6f000006>, + <0x584 0xffffffff 0x00060000>; + apple,tunable-dbg = <0x0 0x8 0x8>; + apple,tunable-cfg-host = <0x20 0xff 0x1b>; + apple,tunable-link = <0x10 0xff000000 0xff000000>, <0x20 0x7ff00000 0x4e900000>, + <0x24 0x001f8000 0x000b8000>, <0x60 0x0003ffff 0x00000600>; + apple,tunable-cio = <0x20 0x00ff0000 0x001e0000>; + /* USB beside DisplayPort on port 3: enabled with atc2_phy (specs/2026-11-02-usb-c-all-ports.md). */ + status = "disabled"; + + port { + usb_drd2_hs: endpoint { + remote-endpoint = <&hpm2_hs>; + }; + }; + }; + + /* /arm-io/dart-usb2 reg[0] and reg[1], interrupt 1487; vm-base 0x10000004000 +0xffff0000 */ + usb_drd2_dart_0: iommu@382f00000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x3 0x82f00000 0x0 0xc000>; + interrupts = ; + power-domains = <&ps_atc2_usb>; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + status = "disabled"; + }; + + usb_drd2_dart_1: iommu@382f80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x3 0x82f80000 0x0 0xc000>; + interrupts = ; + power-domains = <&ps_atc2_usb>; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + status = "disabled"; + }; + + /* + * Rear USB-C port 4 (HPM3, "back-left"): ATC3's combo PHY, usb-drd3 and dart-usb3, as port 2's + * (ADT /arm-io/atc-phy3, acio-phy-cpu3, usb-drd3, dart-usb3). + */ + /* /arm-io/acio-phy-cpu3 reg[0]: the PHY firmware's mailbox */ + atc3_phy_mbox: mailbox@38b148000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x3 0x8b148000 0x0 0x4000>; + interrupts = , + , + , + ; + interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; + #mbox-cells = <0>; + }; + + /* /arm-io/atc-phy3 regs [2] [0] usb-drd3[4] [39] [40] [41] [42] [43] [38] [37] usb-drd3[3] */ + atc3_phy: phy@38b000000 { + compatible = "apple,t6050-combo-phy"; + reg = <0x3 0x8b000000 0x0 0x2c000>, + <0x3 0x8aa90000 0x0 0x4000>, + <0x3 0x8a800000 0x0 0x4000>, + <0x3 0x8b200000 0x0 0x4000>, + <0x3 0x8b244000 0x0 0x4000>, + <0x3 0x88000000 0x0 0x8000>, + <0x3 0x88020000 0x0 0x4000>, + <0x3 0x8b250000 0x0 0x4000>, + <0x3 0x8b140000 0x0 0x4000>, + <0x3 0x8b0c0000 0x0 0x10000>, + <0x3 0x8aa84000 0x0 0x4000>; + reg-names = "core", "usb2phy", "usb2-digital", "reset", "fabric", "axi2af", "lioa", + "common-cfg", "usb-control", "firmware-data", "pipehandler"; + #phy-cells = <1>; + #reset-cells = <1>; + apple,port-index = <3>; + apple,guest-port-reserved; + mode-switch; + orientation-switch; + mboxes = <&atc3_phy_mbox>; + power-domains = <&ps_atc3_usb_aon>, <&ps_atc3_common>, <&ps_atc3_phymxwrap>, + <&ps_atc3_usb>; + power-domain-names = "usb-aon", "common", "wrapper", "usb"; + + port { + atc3_phy_ep: endpoint { + remote-endpoint = <&hpm3_ss>; + }; + }; + }; + + /* /arm-io/usb-drd3: reg[0] (core and Apple regions), reg[1] (drd-cfg), interrupt 1515; port 2's tunables */ + usb_drd3: usb@38a280000 { + compatible = "apple,t6050-dwc3", "apple,t8103-dwc3"; + reg = <0x3 0x8a280000 0x0 0xcd00>, + <0x3 0x8a28cd00 0x0 0x4b00>, + <0x3 0x8a200000 0x0 0x4000>; + reg-names = "dwc3-core", "dwc3-apple", "drd-cfg"; + interrupts = ; + dr_mode = "otg"; + usb-role-switch; + role-switch-default-mode = "host"; + iommus = <&usb_drd3_dart_0 0>, <&usb_drd3_dart_1 1>; + power-domains = <&ps_atc3_usb>; + resets = <&atc3_phy 0>; + phys = <&atc3_phy PHY_TYPE_USB2>, <&atc3_phy PHY_TYPE_USB3>; + phy-names = "usb2-phy", "usb3-phy"; + apple,tunable-gbl-default = <0x64 0x2 0x0>, <0x10 0xfff80000 0x00680000>; + apple,tunable-gbl-host = <0x4 0x0001ef00 0x00002f00>, <0x1c 0x00000100 0x0>, + <0x2c 0x000a07ff 0x000800c8>, <0x100 0x02000100 0x02000100>, + <0x504 0x00001000 0x0>, <0x528 0xff0000ff 0x06000006>, + <0x52c 0xff0000ff 0x08000008>, <0x580 0xffffffff 0x6f000006>, + <0x584 0xffffffff 0x00060000>; + apple,tunable-dbg = <0x0 0x8 0x8>; + apple,tunable-cfg-host = <0x20 0xff 0x1b>; + apple,tunable-link = <0x10 0xff000000 0xff000000>, <0x20 0x7ff00000 0x4e900000>, + <0x24 0x001f8000 0x000b8000>, <0x60 0x0003ffff 0x00000600>; + apple,tunable-cio = <0x20 0x00ff0000 0x001e0000>; + + port { + usb_drd3_hs: endpoint { + remote-endpoint = <&hpm3_hs>; + }; + }; + }; + + /* /arm-io/dart-usb3 reg[0] and reg[1], interrupt 1519; vm-base 0x10000004000 +0xffff0000 */ + usb_drd3_dart_0: iommu@38af00000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x3 0x8af00000 0x0 0xc000>; + interrupts = ; + power-domains = <&ps_atc3_usb>; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + }; + + usb_drd3_dart_1: iommu@38af80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x3 0x8af80000 0x0 0xc000>; + interrupts = ; + power-domains = <&ps_atc3_usb>; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + }; + + /* + * /arm-io/nub-spmi-a2: reg[0] 0x8a1c8000, generation 4, on die 0 like nub-spmi-a0 although + * the front ports' PHYs are on die 1. Its HPMs are polled, as a0's are. + */ + nub_spmi_a2: spmi@28a1c8000 { + compatible = "apple,t6050-spmi", "apple,t8142-spmi"; + reg = <0x2 0x8a1c8000 0x0 0x4000>; + #address-cells = <2>; + #size-cells = <0>; + + /* /arm-io/nub-spmi-a2/hpm4: SN201202x (ACE3), SPMI address 0xc, port-number 5 */ + hpm4: usb-pd@c { + compatible = "apple,sn201202x"; + reg = <0xc SPMI_USID>; + + connector { + compatible = "usb-c-connector"; + label = "USB-C Front-right"; + power-role = "dual"; + data-role = "host"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + hpm4_hs: endpoint { + remote-endpoint = <&usb_drd4_hs>; + }; + }; + + port@1 { + reg = <1>; + hpm4_ss: endpoint { + remote-endpoint = <&atc4_phy_ep>; + }; + }; + }; + }; + }; + + /* /arm-io/nub-spmi-a2/hpm5: SN201202x (ACE3), SPMI address 0xa, port-number 6 */ + hpm5: usb-pd@a { + compatible = "apple,sn201202x"; + reg = <0xa SPMI_USID>; + + connector { + compatible = "usb-c-connector"; + label = "USB-C Front-left"; + power-role = "dual"; + data-role = "host"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + hpm5_hs: endpoint { + remote-endpoint = <&usb_drd5_hs>; + }; + }; + + port@1 { + reg = <1>; + hpm5_ss: endpoint { + remote-endpoint = <&atc5_phy_ep>; + }; + }; + }; + }; + }; + }; + + /* + * The AOP's audio path: the AP GPIO block, the I2C1/I2C2 buses and their power states, and + * the AOP with its mailbox, dart-aop and the ADMAC its audio streams use. From the ADT + * (arm-io ranges +0x200000000). The AOP, its mailbox, dart-aop and the ADMAC are disabled: + * iBoot leaves the AOP halted on locked dart-aop tables, and Aura enables them only when its + * checks of that state pass (chosen.aurora,t6050-aop=1). + */ + pinctrl_ap: pinctrl@29c000000 { + compatible = "apple,t6050-pinctrl", "apple,t8103-pinctrl"; + reg = <0x2 0x9c000000 0x0 0x44000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_ap 0 0 221>; + apple,npins = <221>; + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + ; + }; + + /* ADT pmgr reg[1]; I2C1 and I2C2 power states (clock-gates 191, 192) */ + pmgr1: power-management@280900000 { + compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; + reg = <0x2 0x80900000 0x0 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + + ps_i2c1: power-controller@2c8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x2c8 4>; + #power-domain-cells = <0>; + #reset-cells = <0>; + label = "i2c1"; + }; + + ps_i2c2: power-controller@2d0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x2d0 4>; + #power-domain-cells = <0>; + #reset-cells = <0>; + label = "i2c2"; + }; + + /* + * The boot NOR's controller: ADT pmgr devices SPI_P (id 199, +0x308) and + * QSPI (id 208, +0x350, /arm-io/qspi clock-gates), group 1. SPI_P's parent + * SIO (184) is left undescribed, as for the I2C states above. + */ + ps_spi_p: power-controller@308 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x308 4>; + #power-domain-cells = <0>; + #reset-cells = <0>; + label = "spi_p"; + }; + + ps_qspi: power-controller@350 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x350 4>; + #power-domain-cells = <0>; + #reset-cells = <0>; + label = "qspi"; + power-domains = <&ps_spi_p>; + }; + + /* + * ADT pmgr device ANE_SYS (id 219, group 1 +0x3a8, parents FAB8_SOC + * and FAB9_SOC, left undescribed as for the I2C states). ANE_SYS_DART + * and ANE_SYS_V hang off it with no state of their own. The child + * states ANE_MPM (+0x3c0), ANE_CPU (+0x3c8) and ANE_TDBASE (+0x3d0) + * are not domains: the ANE driver (CPU, PWGATE, TDBASE, as macOS) + * and its firmware (through DAPF) sequence them. All four read + * 0x300 (ANE_CPU 0x0f000300) at boot. + */ + ps_ane_sys: power-controller@3a8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x3a8 4>; + #power-domain-cells = <0>; + #reset-cells = <0>; + label = "ane_sys"; + status = "disabled"; + }; + }; + + /* + * The Neural Engine (H17) and its DART, from the J775c ADT (macOS 27.0) + * /arm-io/ane0 (ane,t8132exclave, ane-type 0x220) and /arm-io/dart-ane0 + * (dart,t8110: LLT, BRD and BWR translation instances on interrupt 955, + * sid-count 16, vm-base 1 TiB + 3 TiB). The engine and the DARTs sit + * behind ANE_SYS: any access while it is off stalls the bus. + */ + + + + /* + * reg: the ADT engine window, the pmgr bank the ANE's power states + * live in (ADT reg[1]) and PWGATE inside ADT reg[2] (0x280920000): + * macOS 27.0 clears the request at +0x159c and checks +0x15c0, the + * window's +0xc and +0x30 (the T8140's sit at its reg[2] + 0x268c). + * xl is ADT reg[5], the ANE-XL AXI2AF bridge: macOS writes its + * tunables, and the ANE bridge's at the engine window's base, at + * every engine power-up. The ADT's other three windows (PTD + * 0x284240000, 0x212000000, 0x288374000) are not used. + * Both interrupts are requested. 954 carries the channel status: + * firmware waits sleep until it, polling as a fallback (lobata, + * 2026-11-05); 967 has not been seen to fire. Started only after + * the loader hand-off, from firmware_stage. + */ + ane: ane@508000000 { + compatible = "apple,t6050-ane"; + reg = <0x5 0x08000000 0x0 0x2000000>, + <0x2 0x80900000 0x0 0x18000>, + <0x2 0x80921590 0x0 0x34>, + <0x5 0x84000000 0x0 0x2000000>; + reg-names = "engine", "pmgr", "pwgate", "xl"; + interrupt-parent = <&aic>; + interrupts = , + ; + iommus = <&ane_dart0 0>, <&ane_dart1 0>, <&ane_dart2 0>; + power-domains = <&ps_ane_sys>; + memory-region = <&ane_fw_text>, <&ane_fw_data>; + memory-region-names = "firmware-text", "firmware-data"; + apple,ane-type = <0x220>; + apple,firmware-preloaded; + apple,firmware-iovas = /bits/ 64 <0x10000000000 0x100000c0000>; + /* Inclusive SID0 identity windows: ADT dart-ane0 dapf-instance-0. */ + apple,dapf-ranges = /bits/ 64 <0x2809003a8 0x2809003ab + 0x2809003c0 0x2809003d3 + 0x581668000 0x581668003 + 0x2302668000 0x2302668003 + 0x6302668000 0x6302668003>; + /* + * Requests hold the DRAM and fabric floor through the CLPC's + * client input (DCS 6 / fabric 3), as busy CPUs and the GPU do. + */ + apple,clpc = <&clpc>; + /* + * The ANE has no voltage rail of its own: it shares the S + * cluster's (PMGR perf domain 8 on rail 7, as domain 5), and + * each S-cluster p-state sets the ANE clock its voltage allows. + * Requests hold that cluster up. + */ + performance-domains = <&cpufreq_pc0>; + status = "disabled"; + }; + + i2c1: i2c@505014000 { + compatible = "apple,t6050-i2c", "apple,t8103-i2c"; + reg = <0x5 0x05014000 0x0 0x4000>; + clocks = <&clkref>; + interrupt-parent = <&aic>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + power-domains = <&ps_i2c1>; + }; + + i2c2: i2c@505018000 { + compatible = "apple,t6050-i2c", "apple,t8103-i2c"; + reg = <0x5 0x05018000 0x0 0x4000>; + clocks = <&clkref>; + interrupt-parent = <&aic>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + power-domains = <&ps_i2c2>; + }; + + /* + * The boot NOR (ADT /arm-io/qspi, "qspi,qspimc"): P at 0x305118000 and C at P + 0x800, + * each 0x4000 in the ADT; one resource for their union. Interrupt 1373, clock id 440 + * (/arm-io clock-frequencies[184], 405 MHz). spi-apple-qspi's T8140 policy: data + * reads anywhere, programs and erases only inside the nvram partition. + */ + qspi: spi@505118000 { + compatible = "apple,t6050-qspi", "apple,t8140-qspi"; + reg = <0x5 0x05118000 0x0 0x4800>; + clocks = <&clk_405m>; + interrupt-parent = <&aic>; + interrupts = ; + power-domains = <&ps_qspi>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + /* The ASC v4 mailbox at the AOP ASC + 0x8000; ADT interrupts 578..581 in mailbox order */ + aop_mbox: mailbox@290608000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x2 0x90608000 0x0 0x4000>; + interrupts = , + , + , + ; + interrupt-names = "send-empty", "send-not-empty", + "recv-empty", "recv-not-empty"; + #mbox-cells = <0>; + status = "disabled"; + }; + + /* + * dart-aop: streams 0 (AOP), 3, 8 (admac-base-ns), 10 and 16 are the AP's; 1, 9 and 11 are + * exclave streams. iBoot leaves its tables locked on the ADT's l1-tt roots: each consumer + * binds one stream and the locked-DART path publishes into its free slots. + */ + aop_dart: iommu@290fc0000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x2 0x90fc0000 0x0 0xc000>; + #iommu-cells = <1>; + interrupt-parent = <&aic>; + interrupts = ; + status = "disabled"; + }; + + /* ADT admac-base-ns: 13 TX and 13 RX channels; the AOP firmware owns its fabric */ + admac_base_ns: dma-controller@293800000 { + compatible = "apple,t6050-admac", "apple,t8140-admac"; + reg = <0x2 0x93800000 0x0 0x34000>; + dma-channels = <13>; + interrupts-extended = <&aic AIC_IRQ 0 637 IRQ_TYPE_LEVEL_HIGH>, + <0>, <0>, <0>; + #dma-cells = <1>; + iommus = <&aop_dart 8>; + apple,dma-range = <0x110 0x00000000 0x0 0x10000000>; + status = "disabled"; + }; + + /* + * The AOP: its SRAM window (ADT reg[2]) and its ASC (reg[0]). Firmware j775daop, loaded + * and left halted by iBoot. Booted as on T8152, over the RTKit mailbox alone: the ADT's + * aop-exclave-mailbox (the setup port T8140 and T8142 boot through) is exclave-assigned + * here and takes an SError from the AP. + */ + aop: aop@290c00000 { + compatible = "apple,t6050-aop", "apple,t8152-aop"; + reg = <0x2 0x90c00000 0x0 0x1e0000>, + <0x2 0x90600000 0x0 0x4000>; + reg-names = "mmio", "asc"; + mboxes = <&aop_mbox>; + mbox-names = "mbox"; + iommus = <&aop_dart 0>; + apple,dma-range = <0x110 0x0 0x10 0x0>; + status = "disabled"; + + /* + * ADT iop-audio-controller: cout/cin (the jack) on base-ns TX2/RX2, spkr on TX0 with + * the amp's V/I sense on RX0 (Linux channel 2N for TX N, 2N+1 for RX N). + */ + aop_audio: audio { + compatible = "apple,t6050-aop-audio"; + dmas = <&admac_base_ns 4>, <&admac_base_ns 5>, + <&admac_base_ns 0>, <&admac_base_ns 1>; + dma-names = "cout", "cin", "spkr", "sense"; + #sound-dai-cells = <1>; + }; + }; + }; + + /* + * The GPU's 14 performance states, in their ADT order (/arm-io/sgx perf-states: one table per + * cluster, two dies x four), with one voltage cell per cluster. Aura fills them in. + */ + gpu_opp: opp-table-gpu { + compatible = "operating-points-v2"; + + opp00 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0 0 0 0 0>; + opp-microvolt-sram = <0 0 0 0 0 0 0 0>; + }; + opp01 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0 0 0 0 0>; + opp-microvolt-sram = <0 0 0 0 0 0 0 0>; + }; + opp02 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0 0 0 0 0>; + opp-microvolt-sram = <0 0 0 0 0 0 0 0>; + }; + opp03 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0 0 0 0 0>; + opp-microvolt-sram = <0 0 0 0 0 0 0 0>; + }; + opp04 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0 0 0 0 0>; + opp-microvolt-sram = <0 0 0 0 0 0 0 0>; + }; + opp05 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0 0 0 0 0>; + opp-microvolt-sram = <0 0 0 0 0 0 0 0>; + }; + opp06 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0 0 0 0 0>; + opp-microvolt-sram = <0 0 0 0 0 0 0 0>; + }; + opp07 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0 0 0 0 0>; + opp-microvolt-sram = <0 0 0 0 0 0 0 0>; + }; + opp08 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0 0 0 0 0>; + opp-microvolt-sram = <0 0 0 0 0 0 0 0>; + }; + opp09 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0 0 0 0 0>; + opp-microvolt-sram = <0 0 0 0 0 0 0 0>; + }; + opp10 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0 0 0 0 0>; + opp-microvolt-sram = <0 0 0 0 0 0 0 0>; + }; + opp11 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0 0 0 0 0>; + opp-microvolt-sram = <0 0 0 0 0 0 0 0>; + }; + opp12 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0 0 0 0 0>; + opp-microvolt-sram = <0 0 0 0 0 0 0 0>; + }; + opp13 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0 0 0 0 0>; + opp-microvolt-sram = <0 0 0 0 0 0 0 0>; + }; + }; + + /* The GPU AFR clock domain's states (ADT afr-perf-states), one voltage per die; Aura fills them. */ + gpu_afr_opp: opp-table-gpu-afr { + compatible = "operating-points-v2"; + + opp00 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp01 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp02 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp03 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp04 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp05 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp06 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp07 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp08 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp09 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp10 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp11 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp12 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp13 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + }; + + /* The GPU CS clock domain's states (ADT cs-perf-states), one voltage per die; Aura fills them. */ + gpu_cs_opp: opp-table-gpu-cs { + compatible = "operating-points-v2"; + + opp00 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp01 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp02 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp03 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp04 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp05 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp06 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp07 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp08 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp09 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp10 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp11 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp12 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + opp13 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0>; + }; + }; + + /* + * The GPU aperture, die 0 (ADT sgx reg 0x2100000000 through arm-io's ranges): SGX, both + * firmware ASCs and the GPU's PMGR block. All disabled; Aura's dt_set_gpu_t6050 enables them. + */ + soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + nonposted-mmio; + + /* ADT pmgr reg 51; GPX and AFR are critical there (always-on), GFX's parents are both. */ + + + /* ADT gfx-asc interrupts 2798, 2797, 2800, 2799: send-empty is 2797, recv-not-empty 2800. */ + + /* ADT gfx1-asc interrupts 2802, 2801, 2804, 2803; its second extent is 0x60000, the VBAR its first 8 bytes. */ + }; + + /* + * Die 1's GPU power states (the die-0 block plus 0x4000000000). Both firmware roles run on die 0, + * but the firmware drives both dies' GPU, so die 1's GFX chain is held on (always-on) while the + * M5 bring-up qualifies initialization (research 49). Aura's dt_set_gpu_t6050 enables them. + */ + soc@6300000000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x63 0x0 0x63 0x0 0x0 0x1000000>; + nonposted-mmio; + + pmgr3_die1: power-management@6300e80000 { + compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; + reg = <0x63 0x00e80000 0x0 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + + ps_gpx_die1: power-controller@0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x0 4>; + label = "gpx_die1"; + #power-domain-cells = <0>; + #reset-cells = <0>; + apple,always-on; + status = "disabled"; + }; + + ps_afr_die1: power-controller@100 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x100 4>; + label = "afr_die1"; + #power-domain-cells = <0>; + #reset-cells = <0>; + apple,always-on; + status = "disabled"; + }; + + ps_gfx_die1: power-controller@110 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x110 4>; + label = "gfx_die1"; + #power-domain-cells = <0>; + power-domains = <&ps_afr_die1>, <&ps_gpx_die1>; + #reset-cells = <0>; + apple,always-on; + status = "disabled"; + }; + }; + }; + + /* + * Die 0's video decoder (ADT /arm-io/avd0, avd-version 4, the T8142 generation): reg[0] + * 0x2308000000 + 0x1404000 through arm-io's ranges, windows in the T8142/T6041 layout (CM3 code + * and SRAM 0x14000 each at +0x1080000, mailbox +0x10a8000, decode control +0x1100000); ADT + * interrupts 2417, 2418 (die 0 IRQs 2417, 2418). dart-avd0 at +0x1020000, + * interrupt 2424 (die 0 2424), SIDs 0-2 (mapper, piodma, adsbuf). Power: the clock + * gates AVD_SYS_V and AVD_SOC_DART have no PS register; both hang off AVD_SYS (PMGR block + * 0x2380600000 + 0x1d8, also the ARST reset), whose parent FAB1_SOC (+0x1b0) is critical. + */ + soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + nonposted-mmio; + + pmgr4: power-management@2380600000 { + compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; + reg = <0x23 0x80600000 0x0 0xc000>; + #address-cells = <1>; + #size-cells = <1>; + + ps_fab1_soc: power-controller@1b0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1b0 4>; + label = "fab1_soc"; + #power-domain-cells = <0>; + #reset-cells = <0>; + apple,always-on; + }; + + ps_avd_sys: power-controller@1d8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1d8 4>; + label = "avd_sys"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_fab1_soc>; + }; + }; + + avd: avd@2309080000 { + compatible = "apple,t6050-avd", "apple,t8142-avd"; + reg = <0x23 0x09080000 0x0 0x14000>, + <0x23 0x09094000 0x0 0x14000>, + <0x23 0x090a8000 0x0 0x4000>, + <0x23 0x09100000 0x0 0x10000>; + reg-names = "code", "sram", "mbox", "ctrl"; + interrupts = , + ; + power-domains = <&ps_avd_sys>; + resets = <&ps_avd_sys>; + iommus = <&avd_dart 0>, <&avd_dart 1>, <&avd_dart 2>; + }; + + avd_dart: iommu@2309020000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x23 0x09020000 0x0 0x20000>; + #iommu-cells = <1>; + interrupts = ; + power-domains = <&ps_avd_sys>; + }; + }; + + /* + * Die 1's video decoder (ADT /arm-io/avd1, avd-version 4, the T8142 generation): reg[0] + * 0x6308000000 + 0x1404000 through arm-io's ranges, windows in the T8142/T6041 layout (CM3 code + * and SRAM 0x14000 each at +0x1080000, mailbox +0x10a8000, decode control +0x1100000); ADT + * interrupts 5521, 5522 (die 1 IRQs 2417, 2418). dart-avd1 at +0x1020000, + * interrupt 5528 (die 1 2424), SIDs 0-2 (mapper, piodma, adsbuf). Power: the clock + * gates AVD_SYS_V and AVD_SOC_DART have no PS register; both hang off AVD_SYS (PMGR block + * 0x6380600000 + 0x1d8, also the ARST reset), whose parent FAB1_SOC (+0x1b0) is critical. + */ + soc@6308000000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x63 0x08000000 0x63 0x08000000 0x0 0x1404000>, + <0x63 0x80600000 0x63 0x80600000 0x0 0xc000>; + nonposted-mmio; + + pmgr4_die1: power-management@6380600000 { + compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; + reg = <0x63 0x80600000 0x0 0xc000>; + #address-cells = <1>; + #size-cells = <1>; + + ps_fab1_soc_die1: power-controller@1b0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1b0 4>; + label = "fab1_soc_die1"; + #power-domain-cells = <0>; + #reset-cells = <0>; + apple,always-on; + }; + + ps_avd_sys_die1: power-controller@1d8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x1d8 4>; + label = "avd_sys_die1"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_fab1_soc_die1>; + }; + }; + + avd_die1: avd@6309080000 { + compatible = "apple,t6050-avd", "apple,t8142-avd"; + reg = <0x63 0x09080000 0x0 0x14000>, + <0x63 0x09094000 0x0 0x14000>, + <0x63 0x090a8000 0x0 0x4000>, + <0x63 0x09100000 0x0 0x10000>; + reg-names = "code", "sram", "mbox", "ctrl"; + interrupts = , + ; + power-domains = <&ps_avd_sys_die1>; + resets = <&ps_avd_sys_die1>; + iommus = <&avd_dart_die1 0>, <&avd_dart_die1 1>, <&avd_dart_die1 2>; + }; + + avd_dart_die1: iommu@6309020000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x63 0x09020000 0x0 0x20000>; + #iommu-cells = <1>; + interrupts = ; + power-domains = <&ps_avd_sys_die1>; + }; + }; + + /* + * The DRM master: scanout buffers map through dart-dispext0 SID 0. Aura enables it with + * dcpext0, and appends each other engine's display DART (SID 0) as it hands that engine + * off: dcpext4's for the HDMI port. A disabled DART listed here would leave it no IOMMU. + */ + display: display-subsystem { + compatible = "apple,display-subsystem"; + iommus = <&dart_dispext0 0>; + status = "disabled"; + }; + + /* + * The memory cache controllers: eight AMCCs of four planes on each die (ADT /arm-io/mcc: + * amcc-count 8, dcs-count-per-amcc 4, die-enable-mask 3, AMCC a of die d at 0x2220000000 + + * d * 0x4000000000 + a * 0x2000000 through arm-io's ranges), one 16 KiB block per plane. + * The boot loader leaves every plane's ways enabled and powered with allocation disabled, so + * the system level cache holds no data until apple-mcc allows it. + */ + soc@2220000000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x22 0x20000000 0x22 0x20000000 0x0 0x10000000>, + <0x62 0x20000000 0x62 0x20000000 0x0 0x10000000>; + nonposted-mmio; + + mcc: memory-controller@2220000000 { + compatible = "apple,t6050-mcc"; + reg = <0x22 0x20000000 0x0 0x4000>, + <0x22 0x20040000 0x0 0x4000>, + <0x22 0x20080000 0x0 0x4000>, + <0x22 0x200c0000 0x0 0x4000>, + <0x22 0x22000000 0x0 0x4000>, + <0x22 0x22040000 0x0 0x4000>, + <0x22 0x22080000 0x0 0x4000>, + <0x22 0x220c0000 0x0 0x4000>, + <0x22 0x24000000 0x0 0x4000>, + <0x22 0x24040000 0x0 0x4000>, + <0x22 0x24080000 0x0 0x4000>, + <0x22 0x240c0000 0x0 0x4000>, + <0x22 0x26000000 0x0 0x4000>, + <0x22 0x26040000 0x0 0x4000>, + <0x22 0x26080000 0x0 0x4000>, + <0x22 0x260c0000 0x0 0x4000>, + <0x22 0x28000000 0x0 0x4000>, + <0x22 0x28040000 0x0 0x4000>, + <0x22 0x28080000 0x0 0x4000>, + <0x22 0x280c0000 0x0 0x4000>, + <0x22 0x2a000000 0x0 0x4000>, + <0x22 0x2a040000 0x0 0x4000>, + <0x22 0x2a080000 0x0 0x4000>, + <0x22 0x2a0c0000 0x0 0x4000>, + <0x22 0x2c000000 0x0 0x4000>, + <0x22 0x2c040000 0x0 0x4000>, + <0x22 0x2c080000 0x0 0x4000>, + <0x22 0x2c0c0000 0x0 0x4000>, + <0x22 0x2e000000 0x0 0x4000>, + <0x22 0x2e040000 0x0 0x4000>, + <0x22 0x2e080000 0x0 0x4000>, + <0x22 0x2e0c0000 0x0 0x4000>, + <0x62 0x20000000 0x0 0x4000>, + <0x62 0x20040000 0x0 0x4000>, + <0x62 0x20080000 0x0 0x4000>, + <0x62 0x200c0000 0x0 0x4000>, + <0x62 0x22000000 0x0 0x4000>, + <0x62 0x22040000 0x0 0x4000>, + <0x62 0x22080000 0x0 0x4000>, + <0x62 0x220c0000 0x0 0x4000>, + <0x62 0x24000000 0x0 0x4000>, + <0x62 0x24040000 0x0 0x4000>, + <0x62 0x24080000 0x0 0x4000>, + <0x62 0x240c0000 0x0 0x4000>, + <0x62 0x26000000 0x0 0x4000>, + <0x62 0x26040000 0x0 0x4000>, + <0x62 0x26080000 0x0 0x4000>, + <0x62 0x260c0000 0x0 0x4000>, + <0x62 0x28000000 0x0 0x4000>, + <0x62 0x28040000 0x0 0x4000>, + <0x62 0x28080000 0x0 0x4000>, + <0x62 0x280c0000 0x0 0x4000>, + <0x62 0x2a000000 0x0 0x4000>, + <0x62 0x2a040000 0x0 0x4000>, + <0x62 0x2a080000 0x0 0x4000>, + <0x62 0x2a0c0000 0x0 0x4000>, + <0x62 0x2c000000 0x0 0x4000>, + <0x62 0x2c040000 0x0 0x4000>, + <0x62 0x2c080000 0x0 0x4000>, + <0x62 0x2c0c0000 0x0 0x4000>, + <0x62 0x2e000000 0x0 0x4000>, + <0x62 0x2e040000 0x0 0x4000>, + <0x62 0x2e080000 0x0 0x4000>, + <0x62 0x2e0c0000 0x0 0x4000>; + apple,boot-dma-devices = <&display>; + }; + }; + + /* Die 1 MMIO. The boot loader needs each die's bus. */ + soc@4200000000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x42 0x0 0x42 0x0 0x3 0xc0000000>; + nonposted-mmio; + + /* + * dcpext4, die 1's first external display engine: the one the HDMI port's fixed + * route starts from (die 1's display crossbar, ufp endpoint 0, to lpdptx-phy1, dfp + * endpoint 4). iBoot leaves it as it leaves dcpext0: powered, its ASC running, both + * DARTs locked on its own four-level tables (DCP SID 23, scanout SID 0, PIODMA SID 16). + * Each block is dcpext0's at the die stride (ADT /arm-io/dcpext4, dispext4, + * dart-dcpext4, dart-dispext4, die 1's arm-io ranges +0x200000000); die 1's interrupts + * are dcpext0's numbers on AIC die 1, and its bandwidth request is dcpext0's (BIRQ 0x36) + * on die 1's PMC. All disabled: Aura's T6050 handoff enables them with dcpext0 when + * the engine passes the same checks. No output yet: the HDMI PHY, its converter's power + * and hotplug come with their drivers. + */ + dart_dcpext4: iommu@42b2340000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x42 0xb2340000 0x0 0x20000>; + /* dart-dcpext4 and dart-dispext4 share ADT interrupt 4174 (die 1 1070) */ + interrupts = ; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x0 0x300 0x0>; + status = "disabled"; + }; + + dart_dispext4: iommu@42b2300000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x42 0xb2300000 0x0 0xc000>; + interrupts = ; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x0 0x300 0x0>; + status = "disabled"; + }; + + dcpext4_mbox: mailbox@42b2e08000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x42 0xb2e08000 0x0 0x4000>; + interrupts = , + , + , + ; + interrupt-names = "send-empty", "send-not-empty", + "recv-empty", "recv-not-empty"; + #mbox-cells = <0>; + status = "disabled"; + }; + + dcpext4_pmc: pmc-metadata@4286700000 { + reg = <0x42 0x86700000 0x0 0x114000>; + #apple,bw-scratch-cells = <3>; + status = "disabled"; + }; + + dcpext4: dcp@42b2e00000 { + compatible = "apple,t6050-dcpext", "apple,dcpext"; + reg = <0x42 0xb2e00000 0x0 0x4000>, + <0x42 0xb0000000 0x0 0x4000000>, + <0x42 0xb2240000 0x0 0x10000>, + <0x42 0xb23ac000 0x0 0x4000>, + <0x42 0xb2800000 0x0 0x800000>, + <0x42 0x86700000 0x0 0x114000>, + <0x42 0xb2850000 0x0 0x4000>; + reg-names = "coproc", "disp-0", "disp-1", "disp-2", "disp-3", "disp-4", "iop-vbar"; + mboxes = <&dcpext4_mbox>; + mbox-names = "mbox"; + iommus = <&dart_dcpext4 23>; + apple,bw-scratch = <&dcpext4_pmc 0 5 0x2c000>; + /* + * The die-local index, as for the M2 Ultra's die-1 dcpext0 (t602x-dieX.dtsi): + * crossbar ufp endpoint 0 on its die, like dcpext0. The ADT's firmware-facing + * external-index is 5. + */ + apple,dcp-index = <1>; + apple,clock-ids; + apple,connector-type = "HDMI-A"; + apple,dptx-die = <1>; + apple,dptx-phy = <4>; + /* + * The fixed HDMI route: the PHY (its source select picks this engine: the + * crossbar has no registers), the converter's hotplug output (AOP GPIO 14, + * active high) and its two power enables (the SMC's pcIO pins 15 and 26). + */ + phys = <&lpdptx_phy1>; + phy-names = "dp-phy"; + hdmi-hpd-gpios = <&pinctrl_aop 14 GPIO_ACTIVE_HIGH>; + hdmi-pwren-gpios = <&smc_pcio 0 GPIO_ACTIVE_HIGH>; + dp2hdmi-pwren-gpios = <&smc_pcio 1 GPIO_ACTIVE_HIGH>; + status = "disabled"; + + piodma { + iommus = <&dart_dispext4 16>; + }; + }; + + /* + * The HDMI port's PHY (ADT /arm-io/lpdptx-phy1, dptx-phy,t6050) and its power gate + * (die 1's PMGR block at the die stride from die 0's 0x280900000, DPTX_PHY at 0x3f8, + * no parent domains). The PLL core calibration is the ADT node's DCOCFG, DTCVREG, + * DTCCAL, DCDADJ and DLFCFG (RODCOROLEAKCOMP is absent there), with its pclkdrv-select. + * dcpext4's phy: Aura enables it when it hands dcpext4 off. The power gate stays enabled + * (with no consumer it stays off). + */ + pmgr1_die1: power-management@4280900000 { + compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; + reg = <0x42 0x80900000 0x0 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + + ps_dptx_phy_die1: power-controller@3f8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x3f8 4>; + label = "die1_dptx_phy"; + #power-domain-cells = <0>; + #reset-cells = <0>; + }; + }; + + lpdptx_phy1: phy@429c200000 { + compatible = "apple,t6050-dptx-phy"; + reg = <0x42 0x9c200000 0x0 0x4000>, + <0x42 0x9c240000 0x0 0x10000>; + reg-names = "core", "dptx"; + power-domains = <&ps_dptx_phy_die1>; + #phy-cells = <0>; + #reset-cells = <0>; + apple,pll-dcocfg = <3>; + apple,pll-dtcvreg = <15>; + apple,pll-dtccal = <2>; + apple,pll-dcdadj = <16>; + apple,pll-dlfcfg = <3>; + apple,pclkdrv-select = <1>; + /* dcpext4's route: the die-1 crossbar's ufp endpoint 0 (source select 1) */ + apple,ufp-endpoint = <0>; + /* Aura enables it with dcpext4. */ + status = "disabled"; + }; + + /* Die 1's clusters, at the ADT's die-stride (0x4000000000); not in pmgr's reg list. */ + cpufreq_mc01: performance-controller@4210e20000 { + compatible = "apple,t6050-cluster-cpufreq"; + reg = <0x42 0x10e20000 0x0 0x1000>; + #performance-domain-cells = <0>; + apple,firmware-managed-thermal; + }; + + cpufreq_mc11: performance-controller@4211e20000 { + compatible = "apple,t6050-cluster-cpufreq"; + reg = <0x42 0x11e20000 0x0 0x1000>; + #performance-domain-cells = <0>; + apple,firmware-managed-thermal; + }; + + cpufreq_pc1: performance-controller@4212e20000 { + compatible = "apple,t6050-cluster-cpufreq"; + reg = <0x42 0x12e20000 0x0 0x1000>; + #performance-domain-cells = <0>; + apple,firmware-managed-thermal; + }; + + /* + * The front USB-C ports (5, front-right: ATC4; 6, front-left: ATC5) are on die 1: its + * ATC0 and ATC1 at the die stride from rear ports 1 and 2. Their power states are die 1's + * PMGR records for ATC0/ATC1 (ADT gate IDs +0x10000000), in die 1's groups G0 (0x4280600000) + * and G2 (0x4288300000); interrupts are die 0's numbers on AIC die 1. The HPMs are on + * nub-spmi-a2, on die 0. + */ + pmgr0_die1: power-management@4280600000 { + compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; + reg = <0x42 0x80600000 0x0 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + + /* die 1 ATC0_COMMON (gate 55): port 5 */ + ps_atc4_common: power-controller@208 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x208 4>; + label = "atc4_common"; + #power-domain-cells = <0>; + #reset-cells = <0>; + }; + + /* die 1 ATC1_COMMON (gate 56): port 6 */ + ps_atc5_common: power-controller@210 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x210 4>; + label = "atc5_common"; + #power-domain-cells = <0>; + #reset-cells = <0>; + }; + }; + + pmgr2_die1: power-management@4288300000 { + compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; + reg = <0x42 0x88300000 0x0 0xc000>; + #address-cells = <1>; + #size-cells = <1>; + + /* die 1 ATC0 (port 5): gates 260, 261, 262 */ + ps_atc4_usb_aon: power-controller@148 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x148 4>; + label = "atc4_usb_aon"; + #power-domain-cells = <0>; + #reset-cells = <0>; + }; + + ps_atc4_usb: power-controller@150 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x150 4>; + label = "atc4_usb"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc4_common>, <&ps_atc4_usb_aon>; + }; + + ps_atc4_phymxwrap: power-controller@158 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x158 4>; + label = "atc4_phymxwrap"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc4_common>, <&ps_atc4_usb_aon>; + }; + + /* die 1 ATC1 (port 6): gates 263, 264, 265 */ + ps_atc5_usb_aon: power-controller@160 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x160 4>; + label = "atc5_usb_aon"; + #power-domain-cells = <0>; + #reset-cells = <0>; + }; + + ps_atc5_usb: power-controller@168 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x168 4>; + label = "atc5_usb"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc5_common>, <&ps_atc5_usb_aon>; + }; + + ps_atc5_phymxwrap: power-controller@170 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x170 4>; + label = "atc5_phymxwrap"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc5_common>, <&ps_atc5_usb_aon>; + }; + }; + + /* Front USB-C port 5 (HPM4, "front-right") */ + /* /arm-io/acio-phy-cpu4 reg[0]: the PHY firmware's mailbox */ + atc4_phy_mbox: mailbox@42a3148000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x42 0xa3148000 0x0 0x4000>; + interrupts = , + , + , + ; + interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; + #mbox-cells = <0>; + }; + + /* /arm-io/atc-phy4 regs [2] [0] usb-drd4[4] [39] [40] [41] [42] [43] [38] [37] usb-drd4[3] */ + atc4_phy: phy@42a3000000 { + compatible = "apple,t6050-combo-phy"; + reg = <0x42 0xa3000000 0x0 0x2c000>, + <0x42 0xa2a90000 0x0 0x4000>, + <0x42 0xa2800000 0x0 0x4000>, + <0x42 0xa3200000 0x0 0x4000>, + <0x42 0xa3244000 0x0 0x4000>, + <0x42 0xa0000000 0x0 0x8000>, + <0x42 0xa0020000 0x0 0x4000>, + <0x42 0xa3250000 0x0 0x4000>, + <0x42 0xa3140000 0x0 0x4000>, + <0x42 0xa30c0000 0x0 0x10000>, + <0x42 0xa2a84000 0x0 0x4000>; + reg-names = "core", "usb2phy", "usb2-digital", "reset", "fabric", "axi2af", "lioa", + "common-cfg", "usb-control", "firmware-data", "pipehandler"; + #phy-cells = <1>; + #reset-cells = <1>; + apple,port-index = <4>; + apple,guest-port-reserved; + mode-switch; + orientation-switch; + mboxes = <&atc4_phy_mbox>; + power-domains = <&ps_atc4_usb_aon>, <&ps_atc4_common>, <&ps_atc4_phymxwrap>, + <&ps_atc4_usb>; + power-domain-names = "usb-aon", "common", "wrapper", "usb"; + + port { + atc4_phy_ep: endpoint { + remote-endpoint = <&hpm4_ss>; + }; + }; + }; + + /* /arm-io/usb-drd4: reg[0] (core and Apple regions), reg[1] (drd-cfg), interrupt 4523; port 2's tunables */ + usb_drd4: usb@42a2280000 { + compatible = "apple,t6050-dwc3", "apple,t8103-dwc3"; + reg = <0x42 0xa2280000 0x0 0xcd00>, + <0x42 0xa228cd00 0x0 0x4b00>, + <0x42 0xa2200000 0x0 0x4000>; + reg-names = "dwc3-core", "dwc3-apple", "drd-cfg"; + interrupts = ; + dr_mode = "otg"; + usb-role-switch; + role-switch-default-mode = "host"; + iommus = <&usb_drd4_dart_0 0>, <&usb_drd4_dart_1 1>; + power-domains = <&ps_atc4_usb>; + resets = <&atc4_phy 0>; + phys = <&atc4_phy PHY_TYPE_USB2>, <&atc4_phy PHY_TYPE_USB3>; + phy-names = "usb2-phy", "usb3-phy"; + apple,tunable-gbl-default = <0x64 0x2 0x0>, <0x10 0xfff80000 0x00680000>; + apple,tunable-gbl-host = <0x4 0x0001ef00 0x00002f00>, <0x1c 0x00000100 0x0>, + <0x2c 0x000a07ff 0x000800c8>, <0x100 0x02000100 0x02000100>, + <0x504 0x00001000 0x0>, <0x528 0xff0000ff 0x06000006>, + <0x52c 0xff0000ff 0x08000008>, <0x580 0xffffffff 0x6f000006>, + <0x584 0xffffffff 0x00060000>; + apple,tunable-dbg = <0x0 0x8 0x8>; + apple,tunable-cfg-host = <0x20 0xff 0x1b>; + apple,tunable-link = <0x10 0xff000000 0xff000000>, <0x20 0x7ff00000 0x4e900000>, + <0x24 0x001f8000 0x000b8000>, <0x60 0x0003ffff 0x00000600>; + apple,tunable-cio = <0x20 0x00ff0000 0x001e0000>; + + port { + usb_drd4_hs: endpoint { + remote-endpoint = <&hpm4_hs>; + }; + }; + }; + + /* /arm-io/dart-usb4 reg[0] and reg[1], interrupt 4527; vm-base 0x10000004000 +0xffff0000 */ + usb_drd4_dart_0: iommu@42a2f00000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x42 0xa2f00000 0x0 0xc000>; + interrupts = ; + power-domains = <&ps_atc4_usb>; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + }; + + usb_drd4_dart_1: iommu@42a2f80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x42 0xa2f80000 0x0 0xc000>; + interrupts = ; + power-domains = <&ps_atc4_usb>; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + }; + + /* Front USB-C port 6 (HPM5, "front-left") */ + /* /arm-io/acio-phy-cpu5 reg[0]: the PHY firmware's mailbox */ + atc5_phy_mbox: mailbox@42ab148000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x42 0xab148000 0x0 0x4000>; + interrupts = , + , + , + ; + interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; + #mbox-cells = <0>; + }; + + /* /arm-io/atc-phy5 regs [2] [0] usb-drd5[4] [39] [40] [41] [42] [43] [38] [37] usb-drd5[3] */ + atc5_phy: phy@42ab000000 { + compatible = "apple,t6050-combo-phy"; + reg = <0x42 0xab000000 0x0 0x2c000>, + <0x42 0xaaa90000 0x0 0x4000>, + <0x42 0xaa800000 0x0 0x4000>, + <0x42 0xab200000 0x0 0x4000>, + <0x42 0xab244000 0x0 0x4000>, + <0x42 0xa8000000 0x0 0x8000>, + <0x42 0xa8020000 0x0 0x4000>, + <0x42 0xab250000 0x0 0x4000>, + <0x42 0xab140000 0x0 0x4000>, + <0x42 0xab0c0000 0x0 0x10000>, + <0x42 0xaaa84000 0x0 0x4000>; + reg-names = "core", "usb2phy", "usb2-digital", "reset", "fabric", "axi2af", "lioa", + "common-cfg", "usb-control", "firmware-data", "pipehandler"; + #phy-cells = <1>; + #reset-cells = <1>; + apple,port-index = <5>; + apple,guest-port-reserved; + mode-switch; + orientation-switch; + mboxes = <&atc5_phy_mbox>; + power-domains = <&ps_atc5_usb_aon>, <&ps_atc5_common>, <&ps_atc5_phymxwrap>, + <&ps_atc5_usb>; + power-domain-names = "usb-aon", "common", "wrapper", "usb"; + + port { + atc5_phy_ep: endpoint { + remote-endpoint = <&hpm5_ss>; + }; + }; + }; + + /* /arm-io/usb-drd5: reg[0] (core and Apple regions), reg[1] (drd-cfg), interrupt 4555; port 2's tunables */ + usb_drd5: usb@42aa280000 { + compatible = "apple,t6050-dwc3", "apple,t8103-dwc3"; + reg = <0x42 0xaa280000 0x0 0xcd00>, + <0x42 0xaa28cd00 0x0 0x4b00>, + <0x42 0xaa200000 0x0 0x4000>; + reg-names = "dwc3-core", "dwc3-apple", "drd-cfg"; + interrupts = ; + dr_mode = "otg"; + usb-role-switch; + role-switch-default-mode = "host"; + iommus = <&usb_drd5_dart_0 0>, <&usb_drd5_dart_1 1>; + power-domains = <&ps_atc5_usb>; + resets = <&atc5_phy 0>; + phys = <&atc5_phy PHY_TYPE_USB2>, <&atc5_phy PHY_TYPE_USB3>; + phy-names = "usb2-phy", "usb3-phy"; + apple,tunable-gbl-default = <0x64 0x2 0x0>, <0x10 0xfff80000 0x00680000>; + apple,tunable-gbl-host = <0x4 0x0001ef00 0x00002f00>, <0x1c 0x00000100 0x0>, + <0x2c 0x000a07ff 0x000800c8>, <0x100 0x02000100 0x02000100>, + <0x504 0x00001000 0x0>, <0x528 0xff0000ff 0x06000006>, + <0x52c 0xff0000ff 0x08000008>, <0x580 0xffffffff 0x6f000006>, + <0x584 0xffffffff 0x00060000>; + apple,tunable-dbg = <0x0 0x8 0x8>; + apple,tunable-cfg-host = <0x20 0xff 0x1b>; + apple,tunable-link = <0x10 0xff000000 0xff000000>, <0x20 0x7ff00000 0x4e900000>, + <0x24 0x001f8000 0x000b8000>, <0x60 0x0003ffff 0x00000600>; + apple,tunable-cio = <0x20 0x00ff0000 0x001e0000>; + + port { + usb_drd5_hs: endpoint { + remote-endpoint = <&hpm5_hs>; + }; + }; + }; + + /* /arm-io/dart-usb5 reg[0] and reg[1], interrupt 4559; vm-base 0x10000004000 +0xffff0000 */ + usb_drd5_dart_0: iommu@42aaf00000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x42 0xaaf00000 0x0 0xc000>; + interrupts = ; + power-domains = <&ps_atc5_usb>; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + }; + + usb_drd5_dart_1: iommu@42aaf80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x42 0xaaf80000 0x0 0xc000>; + interrupts = ; + power-domains = <&ps_atc5_usb>; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-loader-gpu.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-loader-gpu.dtsi new file mode 100644 index 0000000000000..cd6b317801737 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-loader-gpu.dtsi @@ -0,0 +1,98 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* Retained candidate44 definitions at installed Aura GPU handoff paths. */ +/ { + soc@2300000000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x23 0 0x23 0 0 0x4000000>; + nonposted-mmio; + + gpu: gpu@2302600000 { + compatible = "apple,agx-g17c", "apple,agx-g17s", "apple,agx-t6050"; + reg = <0x23 0x02600000 0x0 0x88000>, + <0x23 0x00000000 0x0 0x4000000>; + reg-names = "asc", "sgx"; + mboxes = <&gfx_mbox>, <&gfx1_mbox>; + power-domains = <&ps_gfx>; + memory-region = <&uat_ttbs>, <&uat_pagetables>, <&uat_handoff>, + <&gpu_fw_data>, <&uat_l2_pagetables>, <&gpu_fw_text>; + memory-region-names = "ttbs", "pagetables", "handoff", "fw-data", + "l2-pagetables", "fw-text"; + operating-points-v2 = <&gpu_opp>; + apple,afr-opp = <&gpu_afr_opp>; + apple,cs-opp = <&gpu_cs_opp>; + /* Submissions hold the memory and fabric floor while the GPU has work. */ + apple,clpc = <&clpc>; + apple,csafr-min-sram-microvolt = <0>; + /* The six AON power-telemetry records the firmware samples: FourCC and two words each. */ + apple,aon-ptd = <0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0>; + status = "disabled"; + }; + + gfx_mbox: mailbox@2302600000 { + compatible = "apple,t6050-j775d-ascwrap-v6"; + reg = <0x23 0x02600000 0x0 0x88000>, + <0x23 0x02050000 0x0 0x8>; + reg-names = "wrapper", "iop-vbar"; + interrupts = , + ; + interrupt-names = "send-empty", "recv-not-empty"; + apple,firmware-role = "GFX"; + power-domains = <&ps_gfx>; + #mbox-cells = <0>; + status = "disabled"; + }; + + gfx1_mbox: mailbox@2302e00000 { + compatible = "apple,t6050-j775d-ascwrap-v6"; + reg = <0x23 0x02e00000 0x0 0x88000>, + <0x23 0x02850000 0x0 0x8>; + reg-names = "wrapper", "iop-vbar"; + interrupts = , + ; + interrupt-names = "send-empty", "recv-not-empty"; + apple,firmware-role = "GFX1"; + power-domains = <&ps_gfx>; + #mbox-cells = <0>; + status = "disabled"; + }; + + pmgr3: power-management@2300e80000 { + compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; + reg = <0x23 0x00e80000 0x0 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + + ps_gpx: power-controller@0 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x0 4>; + label = "gpx"; + #power-domain-cells = <0>; + #reset-cells = <0>; + apple,always-on; + status = "disabled"; + }; + + ps_afr: power-controller@100 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x100 4>; + label = "afr"; + #power-domain-cells = <0>; + #reset-cells = <0>; + apple,always-on; + status = "disabled"; + }; + + ps_gfx: power-controller@110 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x110 4>; + label = "gfx"; + #power-domain-cells = <0>; + power-domains = <&ps_afr>, <&ps_gpx>; + #reset-cells = <0>; + status = "disabled"; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-rebased-peripherals.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-rebased-peripherals.dtsi new file mode 100644 index 0000000000000..1c0b9b4434674 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-rebased-peripherals.dtsi @@ -0,0 +1,302 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Retained candidate-44 peripheral definitions, moved to integration's + * identity-mapped peripheral bus. Original authorship and definitions + * are retained from the T6050/J775c sources. + * Copyright The Asahi Linux Contributors + */ +/ { + soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + nonposted-mmio; + + dart_apcie1: iommu@411000000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x4 0x11000000 0x0 0x20000>; + interrupts = ; + #iommu-cells = <1>; + status = "disabled"; + }; + + atc0_xbar: mux@2a324c000 { + compatible = "apple,t6050-display-crossbar", "apple,t8142-display-crossbar"; + reg = <0x2 0xa324c000 0x0 0x4000>; + #mux-control-cells = <1>; + power-domains = <&ps_atc0_usb_aon>, <&ps_atc0_common>; + power-domain-names = "usb-aon", "common"; + }; + + atc1_xbar: mux@2ab24c000 { + compatible = "apple,t6050-display-crossbar", "apple,t8142-display-crossbar"; + reg = <0x2 0xab24c000 0x0 0x4000>; + #mux-control-cells = <1>; + power-domains = <&ps_atc1_usb_aon>, <&ps_atc1_common>; + power-domain-names = "usb-aon", "common"; + }; + + atc3_xbar: mux@38b24c000 { + compatible = "apple,t6050-display-crossbar", "apple,t8142-display-crossbar"; + reg = <0x3 0x8b24c000 0x0 0x4000>; + #mux-control-cells = <1>; + power-domains = <&ps_atc3_usb_aon>, <&ps_atc3_common>; + power-domain-names = "usb-aon", "common"; + }; + + pinctrl_nub: pinctrl@2881e4000 { + compatible = "apple,t6050-pinctrl", "apple,t8103-pinctrl"; + reg = <0x2 0x881e4000 0x0 0x4000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_nub 0 0 61>; + apple,npins = <61>; + gpio-reserved-ranges = <0 14>, <15 46>; + gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "", "", + "usb3hub_rst"; + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + ; + + usb3hub-rst-hog { + gpio-hog; + gpios = <14 GPIO_ACTIVE_LOW>; + output-low; + line-name = "usb3hub_rst"; + }; + }; + + usb_drd0_dart_0: iommu@2a2f00000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x2 0xa2f00000 0x0 0xc000>; + interrupts = ; + power-domains = <&ps_atc0_usb>; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + }; + + usb_drd0_dart_1: iommu@2a2f80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x2 0xa2f80000 0x0 0xc000>; + interrupts = ; + power-domains = <&ps_atc0_usb>; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + }; + + usb_drd0: usb@2a2280000 { + compatible = "apple,t6050-dwc3", "apple,t8103-dwc3"; + reg = <0x2 0xa2280000 0x0 0xcd00>, + <0x2 0xa228cd00 0x0 0x4b00>, + <0x2 0xa2200000 0x0 0x4000>; + reg-names = "dwc3-core", "dwc3-apple", "drd-cfg"; + interrupts = ; + dr_mode = "otg"; + usb-role-switch; + role-switch-default-mode = "host"; + iommus = <&usb_drd0_dart_0 0>, <&usb_drd0_dart_1 1>; + power-domains = <&ps_atc0_usb>; + resets = <&atc0_phy 0>; + phys = <&atc0_phy PHY_TYPE_USB2>, <&atc0_phy PHY_TYPE_USB3>; + phy-names = "usb2-phy", "usb3-phy"; + apple,tunable-gbl-default = <0x64 0x2 0x0>, <0x10 0xfff80000 0x00680000>; + apple,tunable-gbl-host = <0x4 0x0001ef00 0x00002f00>, <0x1c 0x00000100 0x0>, + <0x2c 0x000a07ff 0x000800c8>, <0x100 0x02000100 0x02000100>, + <0x504 0x00001000 0x0>, <0x528 0xff0000ff 0x06000006>, + <0x52c 0xff0000ff 0x08000008>, <0x580 0xffffffff 0x6f000006>, + <0x584 0xffffffff 0x00060000>; + apple,tunable-dbg = <0x0 0x8 0x8>; + apple,tunable-cfg-host = <0x20 0xff 0x1b>; + apple,tunable-link = <0x10 0xff000000 0xff000000>, <0x20 0x7ff00000 0x4e900000>, + <0x24 0x001f8000 0x000b8000>, <0x60 0x0003ffff 0x00000600>; + apple,tunable-cio = <0x20 0x00ff0000 0x001e0000>; + + port { + usb_drd0_hs: endpoint { + remote-endpoint = <&hpm0_hs>; + }; + }; + }; + + dart_dispext0_isoc: iommu@2b2180000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x2 0xb2180000 0x0 0x20000>; + interrupts = ; + #iommu-cells = <1>; + power-domains = <&ps_dispext0_adma>; + apple,dma-range = <0x100 0x0 0x10 0x0>; + }; + + admac_dispext0: dma-controller@2b2140000 { + compatible = "apple,t6050-admac", "apple,t8140-admac"; + reg = <0x2 0xb2140000 0x0 0x24000>; + dma-channels = <1>; + interrupts-extended = <&aic AIC_IRQ 0 1092 IRQ_TYPE_LEVEL_HIGH>, + <0>, <0>, <0>; + #dma-cells = <1>; + iommus = <&dart_dispext0_isoc 30>; + power-domains = <&ps_dispext0_adma>; + apple,dma-range = <0x100 0x0 0x10 0x0>; + }; + + dcpext1_mbox: mailbox@392e08000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x3 0x92e08000 0x0 0x4000>; + interrupts = , + , + , + ; + interrupt-names = "send-empty", "send-not-empty", + "recv-empty", "recv-not-empty"; + #mbox-cells = <0>; + status = "disabled"; + }; + + dcpext1: dcp@392e00000 { + compatible = "apple,t6050-dcpext", "apple,dcpext"; + reg = <0x3 0x92e00000 0x0 0x4000>, + <0x3 0x90000000 0x0 0x4000000>, + <0x3 0x92240000 0x0 0x10000>, + <0x3 0x923ac000 0x0 0x4000>, + <0x3 0x92800000 0x0 0x800000>, + <0x2 0x86700000 0x0 0x114000>, + <0x3 0x92850000 0x0 0x4000>; + reg-names = "coproc", "disp-0", "disp-1", "disp-2", "disp-3", "disp-4", "iop-vbar"; + mboxes = <&dcpext1_mbox>; + mbox-names = "mbox"; + iommus = <&dart_dcpext1 23>; + /* The PMC metadata is die 0's one block, dcpext0_pmc; DISP_EXT1's slot in it */ + apple,bw-scratch = <&dcpext0_pmc 0 5 0x30000>; + /* The ADT external-index (iop-dcpext1-nub), as dcpext0's 1 */ + apple,dcp-index = <2>; + apple,clock-ids; + apple,connector-type = "HDMI-A"; + apple,dptx-die = <0>; + apple,dptx-phy = <4>; + /* + * The fixed HDMI route: the PHY (its source select picks this engine), the + * converter's hotplug output (AOP GPIO 14, active high) and its two power + * enables (the SMC's pcIO lines). + */ + phys = <&lpdptx_phy0>; + phy-names = "dp-phy"; + hdmi-hpd-gpios = <&pinctrl_aop 14 GPIO_ACTIVE_HIGH>; + hdmi-pwren-gpios = <&smc_pcio 0 GPIO_ACTIVE_HIGH>; + dp2hdmi-pwren-gpios = <&smc_pcio 1 GPIO_ACTIVE_HIGH>; + status = "disabled"; + + piodma { + iommus = <&dart_dispext1 16>; + }; + }; + + dart_dcpext1: iommu@392340000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x3 0x92340000 0x0 0x20000>; + /* dart-dcpext1 and dart-dispext1 share ADT interrupt 1142 */ + interrupts = ; + #iommu-cells = <1>; + /* ADT vm-base 1 TiB, vm-size 3 TiB */ + apple,dma-range = <0x100 0x0 0x300 0x0>; + status = "disabled"; + }; + + dart_dispext1: iommu@392300000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + /* reg[0] only, as for dart-dispext0 */ + reg = <0x3 0x92300000 0x0 0xc000>; + interrupts = ; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x0 0x300 0x0>; + status = "disabled"; + }; + + dart_dispext1_isoc: iommu@392180000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x3 0x92180000 0x0 0x20000>; + interrupts = ; + #iommu-cells = <1>; + power-domains = <&ps_dispext1_adma>; + /* ADT vm-base 1 TiB, vm-size 64 GiB */ + apple,dma-range = <0x100 0x0 0x10 0x0>; + }; + + admac_dispext1: dma-controller@392140000 { + compatible = "apple,t6050-admac", "apple,t8140-admac"; + reg = <0x3 0x92140000 0x0 0x24000>; + /* One TX channel: Linux channel 0 */ + dma-channels = <1>; + interrupts-extended = <&aic AIC_IRQ 0 1164 IRQ_TYPE_LEVEL_HIGH>, + <0>, <0>, <0>; + #dma-cells = <1>; + iommus = <&dart_dispext1_isoc 30>; + power-domains = <&ps_dispext1_adma>; + apple,dma-range = <0x100 0x0 0x10 0x0>; + }; + + ane_dart0: iommu@509800000 { + compatible = "apple,t6050-ane-dart", "apple,t6050-dart", + "apple,t8110-dart"; + reg = <0x5 0x09800000 0x0 0xc000>; + #iommu-cells = <1>; + interrupt-parent = <&aic>; + interrupts = ; + power-domains = <&ps_ane_sys>; + /* The firmware DVAs reach 0x100_xxxx_xxxx. */ + apple,dma-range = <0x0 0x0 0x400 0x0>; + status = "disabled"; + }; + + ane_dart1: iommu@509820000 { + compatible = "apple,t6050-ane-dart", "apple,t6050-dart", + "apple,t8110-dart"; + reg = <0x5 0x09820000 0x0 0xc000>; + #iommu-cells = <1>; + interrupt-parent = <&aic>; + interrupts = ; + power-domains = <&ps_ane_sys>; + apple,dma-range = <0x0 0x0 0x400 0x0>; + status = "disabled"; + }; + + ane_dart2: iommu@509840000 { + compatible = "apple,t6050-ane-dart", "apple,t6050-dart", + "apple,t8110-dart"; + reg = <0x5 0x09840000 0x0 0xc000>; + #iommu-cells = <1>; + interrupt-parent = <&aic>; + interrupts = ; + power-domains = <&ps_ane_sys>; + apple,dma-range = <0x0 0x0 0x400 0x0>; + status = "disabled"; + }; + + lpdptx_phy0: phy@29c200000 { + compatible = "apple,t6050-dptx-phy"; + reg = <0x2 0x9c200000 0x0 0x4000>, + <0x2 0x9c240000 0x0 0x10000>; + reg-names = "core", "dptx"; + power-domains = <&ps_dptx_phy>; + #phy-cells = <0>; + #reset-cells = <0>; + apple,pll-dcocfg = <3>; + apple,pll-dtcvreg = <15>; + apple,pll-dtccal = <2>; + apple,pll-dcdadj = <16>; + apple,pll-dlfcfg = <3>; + apple,pclkdrv-select = <1>; + /* dcpext1's route: the crossbar's ufp endpoint 1 (source select 2) */ + apple,ufp-endpoint = <1>; + /* Aura enables it with dcpext1. */ + status = "disabled"; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-usb4-capture.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-usb4-capture.dtsi new file mode 100644 index 0000000000000..83938904e80ce --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-usb4-capture.dtsi @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Diagnostic-only ramoops region, inside the J775c's reported System RAM + * 0x10003d70000..0x10fcf3effff and outside its existing reserved ranges. + * Excluded by memblock before allocation; no-map avoids a cached linear alias. + * Reset/firmware retention is measured separately, never assumed. + */ +/ { + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + usb4_ramoops: ramoops@10100000000 { + compatible = "ramoops"; + reg = <0x101 0x0 0x0 0x200000>; + no-map; + record-size = <0x40000>; + console-size = <0x80000>; + pmsg-size = <0x40000>; + ecc-size = <16>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-usb4.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-usb4.dtsi new file mode 100644 index 0000000000000..d0fe27c0d3a4e --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-j775c-usb4.dtsi @@ -0,0 +1,424 @@ +/* J775c rear USB4 routers. Per-controller resources and tunables from J775c ADT. */ + + +&{/aliases} { + usb4-0-acio = &acio0; + usb4-0-nhi = &acio0_nhi; + usb4-1-acio = &acio1; + usb4-1-nhi = &acio1_nhi; + usb4-2-acio = &acio2; + usb4-2-nhi = &acio2_nhi; + usb4-3-acio = &acio3; + usb4-3-nhi = &acio3_nhi; +}; + + +&pmgr0 { + + ps_atc0_cio: power-controller@280 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x280 4>; + label = "atc0_cio"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc0_common>; + }; + + ps_atc0_cio_pcie: power-controller@338 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x338 4>; + label = "atc0_cio_pcie"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc0_cio>; + }; + + ps_atc0_cio_usb: power-controller@340 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x340 4>; + label = "atc0_cio_usb"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc0_cio>; + }; + + ps_atc0_cio_auss: power-controller@348 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x348 4>; + label = "atc0_cio_auss"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc0_cio>, <&ps_auss>; + }; + + ps_atc1_cio: power-controller@290 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x290 4>; + label = "atc1_cio"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc1_common>; + }; + + ps_atc1_cio_pcie: power-controller@350 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x350 4>; + label = "atc1_cio_pcie"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc1_cio>; + }; + + ps_atc1_cio_usb: power-controller@358 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x358 4>; + label = "atc1_cio_usb"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc1_cio>; + }; + + ps_atc1_cio_auss: power-controller@360 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x360 4>; + label = "atc1_cio_auss"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc1_cio>, <&ps_auss>; + }; + + ps_atc2_cio: power-controller@2e8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x2e8 4>; + label = "atc2_cio"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc2_common>; + }; + + ps_atc2_cio_pcie: power-controller@3f8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x3f8 4>; + label = "atc2_cio_pcie"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc2_cio>; + }; + + ps_atc2_cio_usb: power-controller@400 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x400 4>; + label = "atc2_cio_usb"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc2_cio>; + }; + + ps_atc2_cio_auss: power-controller@408 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x408 4>; + label = "atc2_cio_auss"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc2_cio>, <&ps_auss>; + }; + + ps_atc3_cio: power-controller@2f8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x2f8 4>; + label = "atc3_cio"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc3_common>; + }; + + ps_atc3_cio_pcie: power-controller@410 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x410 4>; + label = "atc3_cio_pcie"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc3_cio>; + }; + + ps_atc3_cio_usb: power-controller@418 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x418 4>; + label = "atc3_cio_usb"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc3_cio>; + }; + + ps_atc3_cio_auss: power-controller@420 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x420 4>; + label = "atc3_cio_auss"; + #power-domain-cells = <0>; + #reset-cells = <0>; + power-domains = <&ps_atc3_cio>, <&ps_auss>; + }; + + ps_auss: power-controller@248 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x248 4>; + label = "auss"; + #power-domain-cells = <0>; + #reset-cells = <0>; + apple,always-on; + }; +}; + + +&atc0_phy { + apple,tunable-lane0-rx-top-cio = <0x35c 0xe00 0x200>; + apple,tunable-lane1-rx-top-cio = <0x35c 0xe00 0x200>; +}; + + +&atc1_phy { + apple,tunable-lane0-rx-top-cio = <0x35c 0xe00 0x200>; + apple,tunable-lane1-rx-top-cio = <0x35c 0xe00 0x200>; +}; + + +&atc2_phy { + apple,tunable-lane0-rx-top-cio = <0x35c 0xe00 0x200>; + apple,tunable-lane1-rx-top-cio = <0x35c 0xe00 0x200>; +}; + + +&atc3_phy { + apple,tunable-lane0-rx-top-cio = <0x35c 0xe00 0x200>; + apple,tunable-lane1-rx-top-cio = <0x35c 0xe00 0x200>; +}; + + +&pinctrl_aop { + /* Keep HDMI GPIO 14 available, and reserve every pin except CIO LSTX 77/79/81/83. */ + gpio-reserved-ranges = <0 14>, <15 62>, <78 1>, <80 1>, <82 1>, <84 1>; + status = "okay"; + + + + acio2_lstx_pins: acio2-lstx-pins { + pinmux = <0x10051>; + }; + + +}; + + +&hpm0 { + connector { + ports { + port@3 { + reg = <3>; + hpm0_usb4: endpoint { + remote-endpoint = <&acio0_tbt>; + }; + }; + }; + }; +}; + + +&hpm1 { + connector { + ports { + port@3 { + reg = <3>; + hpm1_usb4: endpoint { + remote-endpoint = <&acio1_tbt>; + }; + }; + }; + }; +}; + + +&hpm2 { + connector { + ports { + port@3 { + reg = <3>; + hpm2_usb4: endpoint { + remote-endpoint = <&acio2_tbt>; + }; + }; + }; + }; +}; + + +&hpm3 { + connector { + ports { + port@3 { + reg = <3>; + hpm3_usb4: endpoint { + remote-endpoint = <&acio3_tbt>; + }; + }; + }; + }; +}; + + +&{/soc} { + cio_reconfig0: cio_reset: reset-controller@280620000 { + compatible = "apple,t6050-cio-reset"; + reg = <0x2 0x80620000 0x0 0x4000>; + #reset-cells = <1>; + }; + + + + + + acio2_mbox: mailbox@381108000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x3 0x81108000 0x0 0x4000>; + interrupts = , + , + , + ; + interrupt-names = "send-empty", "send-not-empty", + "recv-empty", "recv-not-empty"; + #mbox-cells = <0>; +#if !(defined(T6050_J714C) || defined(T6050_J714S) || defined(T6050_J716C)) + status = "disabled"; +#endif + }; + + acio2: acio@381ac0000 { + compatible = "apple,t6050-usb4-acio"; + reg = <0x3 0x81ac0000 0x0 0xc000>, + <0x3 0x81080000 0x0 0x26000>, + <0x3 0x81e44000 0x0 0x4000>, + <0x3 0x81100000 0x0 0x4000>, + <0x3 0x81c80000 0x0 0x4000>; + reg-names = "rc", "sram", "pcie-adapter", "cpu", "router-ap-fw"; + mboxes = <&acio2_mbox>; + resets = <&cio_reconfig0 2>; + power-domains = <&ps_atc2_cio>, <&ps_atc2_cio_pcie>, + <&ps_atc2_cio_usb>, <&ps_atc2_cio_auss>; + thunderbolt-switch; +#if !(defined(T6050_J714C) || defined(T6050_J714S) || defined(T6050_J716C)) + status = "disabled"; +#endif + pinctrl-0 = <&acio2_lstx_pins>; + pinctrl-names = "lstx"; + lstx-gpios = <&pinctrl_aop 81 GPIO_ACTIVE_HIGH>; + + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x3 0x81000000 0x1000000>; + nonposted-mmio; + + /* + * /arm-io/dart-acio2, populated with the NHI once the router runs, so that it is + * first read with the router up. Nothing initialises it before Linux: its tunables + * (dart-tunables-instance-0), stream 15 (bypass-15) in bypass, every error + * reported and the context cache flushed. vm-base 0x100_0000_0000. + */ + acio2_dart: iommu@a80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0xa80000 0xc000>; + interrupts = ; + power-domains = <&ps_atc2_cio>; + #iommu-cells = <1>; + apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; + apple,bypass-sids = <15>; + apple,full-error-reporting; + apple,ctc-flush; + }; + + /* Interrupts 0x66b.. are the TX rings and 0x677.. the RX rings */ + acio2_nhi: nhi@f00000 { + compatible = "apple,t6050-usb4-nhi"; + reg = <0xf00000 0x100000>; + reg-names = "nhi"; + /* The board or boot loader supplies the host DROM. */ + apple,thunderbolt-drom = [00]; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + interrupt-names = "txring0", "txring1", "txring2", "txring3", "txring4", "txring5", + "txring6", "txring7", "txring8", "txring9", "txring10", "txring11", + "rxring0", "rxring1", "rxring2", "rxring3", "rxring4", "rxring5", + "rxring6", "rxring7", "rxring8", "rxring9", "rxring10", "rxring11", + "parity"; + iommus = <&acio2_dart 0>, + <&acio2_dart 1>, + <&acio2_dart 2>, + <&acio2_dart 3>, + <&acio2_dart 4>, + <&acio2_dart 5>, + <&acio2_dart 6>, + <&acio2_dart 7>, + <&acio2_dart 8>, + <&acio2_dart 9>, + <&acio2_dart 10>, + <&acio2_dart 11>, + <&acio2_dart 16>, + <&acio2_dart 17>, + <&acio2_dart 18>, + <&acio2_dart 19>, + <&acio2_dart 20>, + <&acio2_dart 21>, + <&acio2_dart 22>, + <&acio2_dart 23>, + <&acio2_dart 24>, + <&acio2_dart 25>, + <&acio2_dart 26>, + <&acio2_dart 27>; + }; + }; + + + +}; + +/* The inherited USB DARTs have no secure-monitor power-down operation in + * Linux's direct T8110 backend. Do not cut their domain from pre-freezer + * Type-C teardown or system PM. Router-only CIO domains remain cycleable. + * Keeping USB also retains its AON/common suppliers for wake. This can be + * relaxed only with a qualified DART ownership/power-down handoff. */ +&ps_atc0_usb { apple,always-on; }; +&ps_atc1_usb { apple,always-on; }; +&ps_atc2_usb { apple,always-on; }; +&ps_atc3_usb { apple,always-on; }; + +&acio2_mbox { status = "okay"; }; +&acio2 { + status = "okay"; + + port { + acio2_tbt: endpoint { + remote-endpoint = <&hpm2_usb4>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c.dts b/arch/arm64/boot/dts/apple/t6050-j775c.dts index 65d92d3a17480..64bb1a784f6ef 100644 --- a/arch/arm64/boot/dts/apple/t6050-j775c.dts +++ b/arch/arm64/boot/dts/apple/t6050-j775c.dts @@ -2,35 +2,1184 @@ /* * Mac Studio (M5 Max, 2026) * - * target-type: J775c + * target-type: J775c, board-id 0x10, chip-id 0x6050 (one die, 18 CPUs: 2x6 M + 6 P) * - * One T6050 die (t6050-max.dtsi). Nobody has booted Linux on this board - * yet: beyond the SoC this file only adds the board's hardware inventory - * (t6050-peripherals.dtsi), all of it disabled, from the board's ADT. + * The J775D (M5 Ultra) Studio's board on the one-die T6050 of the M5 Max, generated by + * make-j775c-dts.py: + * - the CPU, die-1 and GPU parts are t6050-j716c.dts's (M5 Max): die 1, its CPUs and buses go, + * each cluster's sixth core comes in, the GPU's OPP and AON tables are one die's (Aura fills + * them from the ADT), and the die-1 HPMs and nub-spmi-a2 go; + * - the board parts are t6050-j775d.dts's: PCIe ports 2 (RTL8127A), 3 (ASM3142 USB-A) and 0 (N1), + * audio (SN012776 on i2c1 0x38, CS42L84 on i2c2 0x4b), the pins, console, DARTs, dual fans and + * the NVRAM partition. + * Checked against the J775c ADT captured 2026-11-03 (macOS 26A425): the same PCIe endpoints (lan0 + * 10ec:8127, pcie-xhci 1b21:2142, centauri 106b:1901-1903; the GL9755 SD reader on port 1 is + * described but disabled until trained by the bootloader), the same i2c addresses and GPIO pins + * (amp 106/107, jack 134/139, N1 PERST# 80), the + * same NVRAM (0x700000 + 0xc0000, 12 banks), ATC PHYs 1-3 and HPMs 0-3 on nub-spmi-a0 at J775D's + * die-0 addresses, no nub-spmi-a2, and CPU MPIDRs 0x5/0x105/0x205 for each cluster's sixth core. + * J775c-specific: the N1's platform ID and firmware name carry board 0x10. + * + * Compatibility layout booted as 9c038a05 on J775c; see commit messages. * * Copyright The Asahi Linux Contributors */ /dts-v1/; -#include "t6050-max.dtsi" +#include "t6050-j775c-legacy.dtsi" +#include "t6050-j775c-rebased-peripherals.dtsi" +#include "t6050-j775c-loader-gpu.dtsi" + +/delete-node/ &cpu18; +/delete-node/ &cpu19; +/delete-node/ &cpu20; +/delete-node/ &cpu21; +/delete-node/ &cpu22; +/delete-node/ &cpu24; +/delete-node/ &cpu25; +/delete-node/ &cpu26; +/delete-node/ &cpu27; +/delete-node/ &cpu28; +/delete-node/ &cpu30; +/delete-node/ &cpu31; +/delete-node/ &cpu32; +/delete-node/ &cpu33; +/delete-node/ &cpu34; / { compatible = "apple,j775c", "apple,t6050", "apple,arm-platform"; model = "Apple Mac Studio (M5 Max, 2026)"; chassis-type = "desktop"; + aliases { + serial0 = &dockchannel; + /* the boot loader fills in the MAC address through this alias */ + ethernet0 = ðernet0; + /* kboot fills the N1's factory addresses from /chosen through these */ + wifi0 = &n1_alpha; + bluetooth0 = &n1_beta; + /* Aura's kboot_setup_atc() fills this PHY's tunables from /arm-io/atc-phy2. */ + atcphy2 = &atc2_phy; + /* And /arm-io/atc-phy0's (rear USB-C port 1, the DFU port). */ + atcphy0 = &atc0_phy; + /* The same fills /arm-io/atc-phy1's (rear USB-C port 2, USB data). */ + atcphy1 = &atc1_phy; + /* And rear port 4's (atc-phy3, die 0); J775D's die-1 PHYs 4 and 5 don't exist on J775c. */ + atcphy3 = &atc3_phy; + /* asahi-bless and the boot loader's dt_set_nvram find the partition by this alias */ + nvram = &nvram; + }; + + /* + * No stdout-path: the boot loader passes the console on the command + * line when it wants one. + */ chosen { #address-cells = <2>; #size-cells = <2>; ranges; + /* + * Normally replaced by the loader. With no console= named, + * NULL_TTY_DEFAULT_CONSOLE makes the console ttynull. + */ + bootargs = "maxcpus=1 rdinit=/init"; + }; + + /* + * PCIe ports 2 (the onboard 10 Gb Ethernet) and 3 (the rear USB-A + * xHCI). The boot loader powers and trains both links and keeps power, + * clocks, the PHYs and PERST; Linux owns the routing, MSI and the + * DARTs. The boot loader disables a port, and its DART, whose link did + * not come up. + * + * Port 0 carries the N1 (Wi-Fi and Bluetooth), described disabled until the + * boot loader trains it (pci@0,0 below). + */ + pcie0: pcie@1cb0000000 { + compatible = "apple,t6050-pcie"; + device_type = "pci"; + reg = <0x1c 0xb0000000 0x0 0x10000000>, + <0x4 0x14000000 0x0 0x4000>, + <0x4 0x12028000 0x0 0x8000>, + <0x4 0x17018000 0x0 0x4000>, + <0x4 0x12024000 0x0 0x4000>, + <0x4 0x13028000 0x0 0x8000>, + <0x4 0x1701c000 0x0 0x4000>, + <0x4 0x13024000 0x0 0x4000>, + <0x4 0x10028000 0x0 0x8000>, + <0x4 0x17010000 0x0 0x4000>, + <0x4 0x10024000 0x0 0x4000>, + <0x4 0x11028000 0x0 0x8000>, + <0x4 0x17014000 0x0 0x4000>, + <0x4 0x11024000 0x0 0x4000>; + reg-names = "config", "rc", "port2", "phy2", "intr2axi2", + "port3", "phy3", "intr2axi3", + "port0", "phy0", "intr2axi0", + "port1", "phy1", "intr2axi1"; + nonposted-mmio; + interrupts = , + , + , + ; + interrupt-names = "port2", "port3", "port0", "port1"; + + /* One shared MSI domain for the GP ports: vectors 64-127 */ + msi-controller; + msi-parent = <&pcie0>; + msi-ranges = <&aic AIC_IRQ 0 1888 IRQ_TYPE_EDGE_RISING 64>; + apple,msi-vector-base = <64>; + + /* + * The boot loader numbers port 2's secondary bus 1 and port 3's 2; + * port 0's is 3 until a boot loader that trains it renumbers all three + * in the PCI core's order. The N1's three functions are on DART + * streams 1-3. + */ + iommu-map = <0x100 &dart_apcie2 1 1>, + <0x200 &dart_apcie3 1 1>, + <0x300 &dart_apcie0 1 3>, + <0x400 &dart_apcie1 1 1>; + iommu-map-mask = <0xffff>; + dma-coherent; + linux,pci-domain = <0>; + bus-range = <0 4>; + #address-cells = <3>; + #size-cells = <2>; + ranges = <0x02000000 0x0 0x80000000 0xb 0x80000000 0x0 0x40000000>, + <0x43000000 0xb 0xc0000000 0xb 0xc0000000 0x0 0x20000000>; + + /* ADT apcie0/pci-bridge1/pcie-sdreader: Genesys GL9755, 17a0:9755. + * Aura powers it via SMC pcIO (0, 0x190000), trains the link, + * then enables this node and its DART and renumbers the buses. + */ + + port02: pci@2,0 { + device_type = "pci"; + reg = <0x1000 0 0 0 0>; + bus-range = <1 1>; + apple,link-trained-by-bootloader; + + #address-cells = <3>; + #size-cells = <2>; + ranges; + + interrupt-controller; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &port02 0 0 0 0>, + <0 0 0 2 &port02 0 0 0 1>, + <0 0 0 3 &port02 0 0 0 2>, + <0 0 0 4 &port02 0 0 0 3>; + + /* The RTL8127A keeps no MAC address of its own */ + ethernet0: ethernet@0,0 { + reg = <0x10000 0x0 0x0 0x0 0x0>; + /* To be filled by the loader */ + local-mac-address = [00 00 00 00 00 00]; + }; + }; + + port03: pci@3,0 { + device_type = "pci"; + reg = <0x1800 0 0 0 0>; + bus-range = <2 2>; + apple,link-trained-by-bootloader; + + #address-cells = <3>; + #size-cells = <2>; + ranges; + + interrupt-controller; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &port03 0 0 0 0>, + <0 0 0 2 &port03 0 0 0 1>, + <0 0 0 3 &port03 0 0 0 2>, + <0 0 0 4 &port03 0 0 0 3>; + }; + + /* + * The N1 Wi-Fi/Bluetooth (106b:1900, its ROM), trained by the bootloader after the SMC + * releases its reset. Its driver boots the firmware and has this port reset after the ROM + * stage; Control, Alpha (Wi-Fi) and Beta (Bluetooth) then answer at functions 0-2. + * Disabled with its DART: a bootloader that trains the port enables both and renumbers the + * buses here (bus-range, reg, iommu-map) to the PCI core's order, port 0 first. + */ + port00: pci@0,0 { + device_type = "pci"; + reg = <0x0 0 0 0 0>; + bus-range = <3 3>; + apple,link-trained-by-bootloader; + /* + * Its PERST# (pci-bridge0 function-perst): /arm-io/gpio0 pin 0x50, pad + * register 0x140 of pinctrl_ap, which owns the pad (and exposes it: see + * its gpio-reserved-ranges below). Driven only by the root-port reset after + * the N1's ROM stage. + */ + reset-gpios = <&pinctrl_ap 80 GPIO_ACTIVE_LOW>; + status = "disabled"; + + #address-cells = <3>; + #size-cells = <2>; + ranges; + + interrupt-controller; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &port00 0 0 0 0>, + <0 0 0 2 &port00 0 0 0 1>, + <0 0 0 3 &port00 0 0 0 2>, + <0 0 0 4 &port00 0 0 0 3>; + + /* The firmware: the chip's image with this board's ticket; platform ID is + * (board 0x10 << 16) | chip 0x6050, from J775c's /chosen board-id */ + n1_control: control@0,0 { + compatible = "pci106b,1900"; + reg = <0x30000 0x0 0x0 0x0 0x0>; + firmware-name = "apple/centauri/j775c-ftab.bin"; + apple,centauri-platform-id = <0x00106050>; + apple,centauri-protocol = <27>; + }; + + n1_alpha: wifi@0,1 { + compatible = "pci106b,1902"; + reg = <0x30100 0x0 0x0 0x0 0x0>; + local-mac-address = [00 00 00 00 00 00]; + }; + + n1_beta: bluetooth@0,2 { + compatible = "pci106b,1903"; + reg = <0x30200 0x0 0x0 0x0 0x0>; + local-bd-address = [00 00 00 00 00 00]; + }; + }; + port01: pci@1,0 { + device_type = "pci"; + reg = <0x800 0 0 0 0>; + bus-range = <4 4>; + apple,link-trained-by-bootloader; + status = "disabled"; + #address-cells = <3>; + #size-cells = <2>; + ranges; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &port01 0 0 0 0>, + <0 0 0 2 &port01 0 0 0 1>, + <0 0 0 3 &port01 0 0 0 2>, + <0 0 0 4 &port01 0 0 0 3>; + + /* ADT card-detect-polarity = write-protect-polarity = 1. */ + sdcard@0,0 { + compatible = "pci17a0,9755"; + reg = <0x40000 0 0 0 0>; + cd-inverted; + wp-inverted; + }; + }; + }; + + /* + * The jack (CS42L84) and the speaker (SN012776) through the AOP's audio services. The card waits + * for its CPU component, the AOP audio node, which exists only after Aura's AOP handoff. + */ + sound { + compatible = "apple,j775c-macaudio", "apple,j775d-macaudio", "apple,macaudio"; + /* + * No variant letter, as on J375/J475/J575: userspace (speakersafetyd, + * the UCM profile, asahi-audio) keys on the card id "AppleJ775". + */ + model = "Mac Studio J775"; + #address-cells = <1>; + #size-cells = <0>; + + dai-link@0 { + reg = <0>; + link-name = "Headphone Jack"; + + cpu { + sound-dai = <&aop_audio 0>; + }; + + codec { + sound-dai = <&jack_codec>; + }; + }; + + dai-link@1 { + reg = <1>; + link-name = "Speaker"; + + cpu { + sound-dai = <&aop_audio 3>; + }; + + codec { + sound-dai = <&speaker_amp>; + }; + }; + }; + + /delete-node/ soc@6300000000; + /delete-node/ soc@2308000000; + /delete-node/ soc@6308000000; + /delete-node/ soc@2220000000; + /delete-node/ soc@4200000000; + + /* + * The memory cache controller of the one die: eight AMCCs of four planes (ADT /arm-io/mcc: + * amcc-count 8, dcs-count-per-amcc 4, die-enable-mask 1). The dtsi's node also lists die 1's + * planes, so it goes with the die-1 buses above. Without this one the system level cache + * never allocates: the boot loader leaves allocation disabled on every plane. + * + * Each plane window reaches past the DSID quota and occupancy registers (+0xa000 to + * +0xc300); the ADT gives each AMCC 0x140000, its planes 0x40000 apart. + */ + soc@2220000000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x22 0x20000000 0x22 0x20000000 0x0 0x10000000>; + nonposted-mmio; + + memory-controller@2220000000 { + compatible = "apple,t6050-mcc"; + reg = <0x22 0x20000000 0x0 0x10000>, + <0x22 0x20040000 0x0 0x10000>, + <0x22 0x20080000 0x0 0x10000>, + <0x22 0x200c0000 0x0 0x10000>, + <0x22 0x22000000 0x0 0x10000>, + <0x22 0x22040000 0x0 0x10000>, + <0x22 0x22080000 0x0 0x10000>, + <0x22 0x220c0000 0x0 0x10000>, + <0x22 0x24000000 0x0 0x10000>, + <0x22 0x24040000 0x0 0x10000>, + <0x22 0x24080000 0x0 0x10000>, + <0x22 0x240c0000 0x0 0x10000>, + <0x22 0x26000000 0x0 0x10000>, + <0x22 0x26040000 0x0 0x10000>, + <0x22 0x26080000 0x0 0x10000>, + <0x22 0x260c0000 0x0 0x10000>, + <0x22 0x28000000 0x0 0x10000>, + <0x22 0x28040000 0x0 0x10000>, + <0x22 0x28080000 0x0 0x10000>, + <0x22 0x280c0000 0x0 0x10000>, + <0x22 0x2a000000 0x0 0x10000>, + <0x22 0x2a040000 0x0 0x10000>, + <0x22 0x2a080000 0x0 0x10000>, + <0x22 0x2a0c0000 0x0 0x10000>, + <0x22 0x2c000000 0x0 0x10000>, + <0x22 0x2c040000 0x0 0x10000>, + <0x22 0x2c080000 0x0 0x10000>, + <0x22 0x2c0c0000 0x0 0x10000>, + <0x22 0x2e000000 0x0 0x10000>, + <0x22 0x2e040000 0x0 0x10000>, + <0x22 0x2e080000 0x0 0x10000>, + <0x22 0x2e0c0000 0x0 0x10000>; + apple,boot-dma-devices = <&display>; + }; }; + + /* + * The GPU's OPP tables for one die: four clusters, so four voltage cells per main state, + * and one per CS/AFR state. Aura fills them in, as on J775D. + */ + /delete-node/ opp-table-gpu; + /delete-node/ opp-table-gpu-afr; + /delete-node/ opp-table-gpu-cs; + + /* /arm-io/sgx perf-states: 14 states, one table per cluster */ + gpu_opp: opp-table-gpu { + compatible = "operating-points-v2"; + + opp00 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0>; + opp-microvolt-sram = <0 0 0 0>; + }; + + opp01 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0>; + opp-microvolt-sram = <0 0 0 0>; + }; + + opp02 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0>; + opp-microvolt-sram = <0 0 0 0>; + }; + + opp03 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0>; + opp-microvolt-sram = <0 0 0 0>; + }; + + opp04 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0>; + opp-microvolt-sram = <0 0 0 0>; + }; + + opp05 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0>; + opp-microvolt-sram = <0 0 0 0>; + }; + + opp06 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0>; + opp-microvolt-sram = <0 0 0 0>; + }; + + opp07 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0>; + opp-microvolt-sram = <0 0 0 0>; + }; + + opp08 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0>; + opp-microvolt-sram = <0 0 0 0>; + }; + + opp09 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0>; + opp-microvolt-sram = <0 0 0 0>; + }; + + opp10 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0>; + opp-microvolt-sram = <0 0 0 0>; + }; + + opp11 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0>; + opp-microvolt-sram = <0 0 0 0>; + }; + + opp12 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0>; + opp-microvolt-sram = <0 0 0 0>; + }; + + opp13 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0 0 0 0>; + opp-microvolt-sram = <0 0 0 0>; + }; + }; + + /* afr-perf-states, one voltage */ + gpu_afr_opp: opp-table-gpu-afr { + compatible = "operating-points-v2"; + + opp00 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp01 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp02 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp03 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp04 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp05 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp06 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp07 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp08 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp09 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp10 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp11 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp12 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp13 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + }; + + /* cs-perf-states, one voltage */ + gpu_cs_opp: opp-table-gpu-cs { + compatible = "operating-points-v2"; + + opp00 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp01 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp02 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp03 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp04 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp05 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp06 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp07 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp08 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp09 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp10 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp11 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp12 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + + opp13 { + opp-hz = /bits/ 64 <0>; + opp-microvolt = <0>; + }; + }; +}; + + +/* The AON power-telemetry records of one die (g0TR, g1TR, r0TR), which Aura fills */ +&gpu { + apple,aon-ptd = <0 0 0 0 0 0 0 0 0>; + /* The J775c ADT's gpu-idleoff-standby-timer, 0xdac (the board default is 1500 us). */ + apple,idleoff-standby-timer = <3500>; }; -/* PCIe port 0 is not described for this board yet */ -&pcie0 { +&{/cpus} { + cpu-map { + cluster0 { + core0 { + cpu = <&cpu0>; + }; + core1 { + cpu = <&cpu1>; + }; + core2 { + cpu = <&cpu2>; + }; + core3 { + cpu = <&cpu3>; + }; + core4 { + cpu = <&cpu4>; + }; + core5 { + cpu = <&cpu5>; + }; + }; + cluster1 { + core0 { + cpu = <&cpu6>; + }; + core1 { + cpu = <&cpu7>; + }; + core2 { + cpu = <&cpu8>; + }; + core3 { + cpu = <&cpu9>; + }; + core4 { + cpu = <&cpu10>; + }; + core5 { + cpu = <&cpu11>; + }; + }; + cluster2 { + core0 { + cpu = <&cpu12>; + }; + core1 { + cpu = <&cpu13>; + }; + core2 { + cpu = <&cpu14>; + }; + core3 { + cpu = <&cpu15>; + }; + core4 { + cpu = <&cpu16>; + }; + core5 { + cpu = <&cpu17>; + }; + }; + }; + + + +}; + +/* + * CPU PMUs, one per core type. A core's PMU interrupt is a FIQ (PMCR0 + * IMODE = FIQ, as XNU programs it), which AIC hands to the PMU whose FIQ + * index lists that core. The ADT's per-core AIC interrupts (cpuN + * "interrupts", 69 + 3n on cluster 0, 101 + 3n on cluster 1, 133 + 3n on + * the P cluster) are not used. These live here rather than in t6050.dtsi + * because the core list is the board's: one die, six cores per cluster. + */ +/ { + +}; + + +/* J775D's die-1 PD controllers (hpm4, hpm5 on nub-spmi-a2) don't exist on J775c */ +/delete-node/ &hpm4; +/delete-node/ &hpm5; + +&nub_spmi_a2 { status = "disabled"; }; -#define T6050_J775C -#include "t6050-peripherals.dtsi" + +/* The pins this board's nodes name, and no others */ +&pinctrl_ap { + /* + * Every pin reads cleanly (evidence/dt/2026-10-30-gpio-qualification.md), but only + * the pins a node in this file names are exposed: 80 (PCIe port 0's PERST#, ADT + * pci-bridge0 function-perst), 106 (amp IRQ), 107 (amp shutdown), 134 (jack IRQ) + * and 139 (jack codec reset), from the ADT's audio-speaker and audio-codec-output. + * A reserved line cannot be requested (gpiolib answers -EINVAL), so a node that + * names a new pin of pinctrl_ap opens it here too. + */ + gpio-reserved-ranges = <0 80>, <81 25>, <108 26>, <135 4>, <140 81>; +}; + +&i2c1 { + /* + * ADT speaker-config 00 14 00 02: playback slot 0, amp gain 20, I sense in slot 0 + * and V sense in slot 2. The bytes are : on J316 every + * amp's row matches its validated imon/vmon pair (00 0f 00 02 is imon 0, vmon 2; + * 01 0f 04 06 is imon 4, vmon 6), and J375/J473/J575 use imon 0, vmon 2 as well. + * The firmware's speaker frame is 250 BCLKs of 12 MHz (ADT + * iop-audio-controller/audio-speaker), which the amp's ratio detection rejects. + */ + speaker_amp: codec@38 { + compatible = "ti,sn012776", "ti,tas2764"; + reg = <0x38>; + shutdown-gpios = <&pinctrl_ap 107 GPIO_ACTIVE_HIGH>; + interrupts-extended = <&pinctrl_ap 106 IRQ_TYPE_LEVEL_LOW>; + #sound-dai-cells = <0>; + ti,imon-slot-no = <0>; + ti,vmon-slot-no = <2>; + ti,bclk-ratio = <250>; + }; +}; + +&i2c2 { + jack_codec: codec@4b { + compatible = "cirrus,cs42l84"; + reg = <0x4b>; + reset-gpios = <&pinctrl_ap 139 GPIO_ACTIVE_HIGH>; + interrupts-extended = <&pinctrl_ap 134 IRQ_TYPE_LEVEL_LOW>; + #sound-dai-cells = <0>; + sound-name-prefix = "Jack"; + }; +}; + +/* + * The console is on the USB debug link, which drains only while a host reads + * it; the machine also boots with nothing attached there. + */ +&dockchannel { + apple,tx-never-wait; + status = "okay"; +}; + +&dart_apcie2 { + status = "okay"; +}; + +&dart_apcie3 { + status = "okay"; +}; + +#include "hwmon-fan-dual.dtsi" + +/* + * The Studio's SMC has F0Ac/F0Mn/F0Mx/F0Tg and F1*, but its mode keys are F0md/F1md (ui8, flags 0xd0: + * readable, writable, a function key), not the F0Md/F1Md the dtsi names; with the dtsi's names fan + * creation failed on the missing key. With the real keys the fans can be set by the kernel's + * thermal policy (the M5 GPU governor, through macsmc_hwmon_fans_request()). No + * apple,fan-manual-control: userspace still only reads them. + */ +&smc_hwmon { + fan-F0Ac { + apple,fan-mode = "F0md"; + }; + + fan-F1Ac { + apple,fan-mode = "F1md"; + }; +}; + +/* + * The boot NOR's NVRAM: the loader fills the partition from ADT /arm-io/qspi/spinor/anvram reg + * (0x700000, 0xc0000 here), 12 banks of 64 KiB (/chosen nvram-bank-count, nvram-bank-size). The + * flash is spinor's CS0 (its reg's first cell; the second is 0x19, 25), clocked as on T8140's + * J700. Only this partition is exposed (no MTD_PARTITIONED_MASTER), so the rest of the boot NOR + * has no device node, and the controller's T8140 policy admits programs and erases only inside + * this partition. + */ +&qspi { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <25000000>; + /* Single-wire, as on T8132's J713: no quad-enable status write at probe */ + spi-rx-bus-width = <1>; + spi-tx-bus-width = <1>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + nvram: partition@700000 { + label = "nvram"; + /* To be filled by the loader */ + reg = <0x0 0x0>; + status = "disabled"; + }; + }; + }; +}; + +/* + * The always-on (NUB) GPIO block, ADT /arm-io/nub-gpio0 (61 pins, no power gate). Only pin 14 is + * exposed: the rear USB-A hubs' reset, ADT spi3/usb3hub-flash/usb3hub-fw function-usb3hub_rst + * (nub-gpio0 pin 14, flags 1). Behind the ASM3142 sits a VIA VL822 USB3.1/USB2.0 hub pair + * (05ac:800e, 05ac:800d) that boots from its own SPI flash once released. The pin is left an + * undriven input, which holds the hubs in reset; driven high, both hubs and the USB-A devices + * behind them enumerate within a second (lobata, 2026-11-04), so the reset is active low. + */ +&{/soc} { +}; + +/* + * Rear USB-C port 3 (HPM2, usb-pd@8, the display port): its USB controller, enabled with + * atc2_phy as t6050.dtsi says, for USB beside DisplayPort. + */ +&usb_drd2 { + status = "okay"; +}; + +&usb_drd2_dart_0 { + status = "okay"; +}; + +&usb_drd2_dart_1 { + status = "okay"; +}; + +/* + * The HDMI port. On the one-die J775c it hangs off die 0, where J775D has it on die 1 + * (dcpext4, lpdptx-phy1, dp2hdmi-gpio1, all deleted here with the die-1 buses). From the + * J775c ADT (captured 2026-11-03, macOS 26A425; arm-io ranges child 0 -> 0x200000000): + * - display-crossbar0 (display-crossbar,t6050) has no registers. Its dfp endpoint 4 is + * lpdptx-phy0 (dp-switch-dfp-endpoint 4, transports-supported 5); its ufp endpoints are + * dispext0..7. dcpext1 is ufp endpoint 1 (dcpext0, which takes the four rear USB-C + * ports, is 0), so the PHY's source select picks it (source-select-offset 1). + * - lpdptx-phy0 (dptx-phy,t6050): reg 0x9c240000+0x10000 (dptx) and 0x9c200000+0x4000 + * (core); power-gates and clock-gates 0xe5, PMGR device DPTX_PHY (ps-group 1 + 0x3f8, + * no parents); DCOCFG 3, DTCVREG 15, DTCCAL 2, DCDADJ 16, DLFCFG 3, pclkdrv-select 1; + * RODCOROLEAKCOMP and FD0FD1SWAP absent (0xffffffff). + * - dp2hdmi-gpio0 (dp2hdmi-gpio-parent of lpdptx-phy0, pcon-stays-on): hdmi_hpd is + * aop-gpio0 pin 14, hdmi_pwr_en and dp2hdmi_pwr_en the SMC's pKW8 pcIO commands; the + * same pins as J775D's dp2hdmi-gpio1, which t6050.dtsi already describes (pinctrl_aop, + * smc_pcio). + * - dcpext1 (iop-dcpext1-nub external-index 2), dispext1, dart-dcpext1, dart-dispext1: + * dcpext0's layout at +0x1e0000000 (child 0x1_92e00000), but dispext1's reg[4], the PMC + * metadata, is the one dispext0 names. Interrupts: mailbox 1195..1198 (ADT order + * 0x4ac 0x4ab 0x4ae 0x4ad, as dcpext0's 0x464 0x463 0x466 0x465), both DARTs 1142. + * The bandwidth request is PMGR bwr-agent 4, DISP_EXT1 (BIRQ 0x3c, dispext1's + * bw_req_interrupt0); its scratch is 0x20000 + 0x4000 * agent, as DISP_INT (agent 0, + * J716c's dcp at 0x20000) and DISP_EXT0 (agent 3, dcpext0 at 0x2c000) have it. + * iBoot leaves dcpext1 as it leaves dcpext0: powered (DISPEXT1_CPU 0x2806002e0 = + * 0x1404024f), its ASC running, both DARTs locked (0xff / 0xb9) on the ADT's l1-tt roots + * for SIDs 23, 0 and 16 (Aura's T6050 inventory on lobata, 2026-11-04). All disabled: + * Aura's T6050 handoff enables dcpext1 with its nodes, the PHY and its power domain and + * pinctrl_aop when the engine passes the same checks as dcpext0, and appends + * dart_dispext1 to the display subsystem. + */ +&{/soc} { + + + + +}; + +/* The HDMI PHY's power gate (ADT pmgr DPTX_PHY, 0xe5); with no consumer it stays off */ +&pmgr1 { + ps_dptx_phy: power-controller@3f8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x3f8 4>; + label = "dptx_phy"; + #power-domain-cells = <0>; + #reset-cells = <0>; + }; +}; + +/* + * The HDMI hotplug input is the only AOP GPIO pin the AP uses; the AOP owns the rest, + * so only pin 14 is exposed (pin 15, force-dpfu, is never requested). + */ +&pinctrl_aop { + gpio-reserved-ranges = <0 14>, <15 70>; +}; + +/* + * The HDMI port's audio. On T6050 every display pipe has its own audio DMA controller (ADT + * admac-dispextN, "admac,t6050", the AOP's ADMAC family), behind its own DART + * (dart-dispextN-isoc, one mapper: dispextN-dpa, SID 30), feeding that pipe's DisplayPort + * audio interface (dp-audioN+1). M1..M4 fed it from the SIO coprocessor instead; this + * generation has no SIO DMA path for it (ADT dp-audio2 dma-parent = admac-dispext1), and + * macOS drives it from the AP (AudioDMAController-T605x on admac-dispext1, channel DX10TX; + * DCPAVAudioDMADelegate on dp-audio2). The DCP's audio service on port@0 does the rest. + * From the J775c ADT (arm-io child 0 -> 0x200000000): + * - admac-dispext1: reg 0x1_92140000+0x24000 and the shared 0x88328000+8 (the LLT vote + * register admac-base-ns names too; not needed here); one TX channel; interrupt 0x48c on + * irq-destination 0 (AIC), as admac-base-ns; channel-buffer-allocation 0x1900. + * - dart-dispext1-isoc (dart,t8110): reg 0x1_92180000+0x20000 (and the shared PS_PROT block + * at 0x803f0000), interrupt 0x48d, vm-base 1 TiB, vm-size 64 GiB, no l1-tt: iBoot sets up + * no stream on it, so it is not locked. + * - dp-audio2: power-gates/clock-gates 0x51 = PMGR DISPEXT1_ADMA (ps-group 0, 0x2d8, parent + * DISPEXT1_SYS, which iBoot leaves on with dcpext1); dma-parent admac-dispext1 channel 0. + * No AP-side registers. The ADMAC and the DART have no power gate of their own; both are + * given DISPEXT1_ADMA, which macOS turns on for the DPA. + * The audio interface itself is always available: the display subsystem waits for it as a + * component of dcpext1 (once Aura enables dcpext1), so it carries no power domain whose + * failure could hold the display back. A DMA controller that does not come up only fails + * the PCM's open. + */ +&{/soc} { + +}; + +&pmgr0 { + /* ADT pmgr DISPEXT1_ADMA (0x51): dispext1's audio DMA and DisplayPort audio */ + ps_dispext1_adma: power-controller@2d8 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x2d8 4>; + label = "dispext1_adma"; + #power-domain-cells = <0>; + #reset-cells = <0>; + }; +}; + +&dcpext1 { + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dcpext1_audio: endpoint { + remote-endpoint = <&dpaudio_dispext1_dcp>; + }; + }; + }; +}; + +/* ADT dp-audio2: no AP-side registers, so not on the SoC bus */ +/ { + dpaudio_dispext1: audio-controller-dispext1 { + compatible = "apple,t6050-dpaudio", "apple,dpaudio"; + dmas = <&admac_dispext1 0>; + dma-names = "tx"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dpaudio_dispext1_dcp: endpoint { + remote-endpoint = <&dcpext1_audio>; + }; + }; + }; + }; +}; + +/* + * DisplayPort audio on the rear USB-C ports: dcpext0's pipe, laid out as dcpext1's above. + * ADT admac-dispext0 0xb2140000 (interrupt 0x444), dart-dispext0-isoc 0xb2180000 (interrupt + * 0x445, SID 30, no l1-tt), dp-audio1 with power gate DISPEXT0_ADMA (0x44, pmgr0 0x270, + * parent DISPEXT0_SYS). + */ +&{/soc} { + +}; + +&pmgr0 { + /* ADT pmgr DISPEXT0_ADMA (0x44): dispext0's audio DMA and DisplayPort audio */ + ps_dispext0_adma: power-controller@270 { + compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x270 4>; + label = "dispext0_adma"; + #power-domain-cells = <0>; + #reset-cells = <0>; + }; +}; + +&dcpext0 { + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dcpext0_audio: endpoint { + remote-endpoint = <&dpaudio_dispext0_dcp>; + }; + }; + }; +}; + +/* ADT dp-audio1 */ +/ { + dpaudio_dispext0: audio-controller-dispext0 { + compatible = "apple,t6050-dpaudio", "apple,dpaudio"; + dmas = <&admac_dispext0 0>; + dma-names = "tx"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dpaudio_dispext0_dcp: endpoint { + remote-endpoint = <&dcpext0_audio>; + }; + }; + }; + }; +}; + +/* The untrained port's DART must not be probed; Aura enables it after link-up. */ +&{/soc} { +}; + +#include "t6050-j775c-usb4.dtsi" + +/* Diagnostic-only ramoops policy is not carried into the upstream layout. */ + +/* Match the ported board's ATC2 supplier activation. */ +&atc2_phy_mbox { status = "okay"; }; +&atc2_phy { status = "okay"; }; +&atc2_xbar { status = "okay"; }; + +/* Match the ported board's rear port 3 PD activation. */ +&hpm2 { status = "okay"; }; + +/* Activate ATC2 domain providers as a separate migration step. */ +&ps_atc2_common { status = "okay"; }; +&ps_atc2_usb_aon { status = "okay"; }; +&ps_atc2_phymxwrap { status = "okay"; }; +&ps_atc2_usb { status = "okay"; }; + +/* Exact shared ACIO0/1/3 definitions from 953cbcc0, enabled here. */ +#include "t6050-acio.dtsi" + +&acio0_mbox { status = "okay"; }; +&acio0 { + status = "okay"; + + port { + acio0_tbt: endpoint { + remote-endpoint = <&hpm0_usb4>; + }; + }; +}; + +&acio1_mbox { status = "okay"; }; +&acio1 { + status = "okay"; + + port { + acio1_tbt: endpoint { + remote-endpoint = <&hpm1_usb4>; + }; + }; +}; + +&acio3_mbox { status = "okay"; }; +&acio3 { + status = "okay"; + + port { + acio3_tbt: endpoint { + remote-endpoint = <&hpm3_usb4>; + }; + }; +}; + +#include "t6050-j775c-incremental-pmgr.dtsi" + +#include "t6050-j775c-incremental-pcie.dtsi" + +#include "t6050-j775c-incremental-display.dtsi" + +/* J775c has no internal panel: retain the booted desktop handoff selection. */ +/delete-node/ &{/soc/dcp@48ae00000}; + +#include "t6050-j775c-incremental-audio.dtsi" + +#include "t6050-j775c-incremental-sd.dtsi" + +/* Remove unreferenced die1 caches inherited by the retained source. */ +/delete-node/ &{/cpus/l2-cache-m10}; +/delete-node/ &{/cpus/l2-cache-m11}; +/delete-node/ &{/cpus/l3-cache-p1}; +/delete-node/ &{/cpus/l2-cache-p1-0}; +/delete-node/ &{/cpus/l2-cache-p1-1}; +/delete-node/ &{/cpus/l2-cache-p1-2}; +/delete-node/ &{/cpus/l2-cache-p1-3}; +/delete-node/ &{/cpus/l2-cache-p1-4}; +/delete-node/ &{/cpus/l2-cache-p1-5}; + +#include "t6050-j775c-incremental-usbpolicy.dtsi" + +#include "t6050-j775c-incremental-spmi.dtsi" + +#include "t6050-j775c-incremental-pmgr4.dtsi" + +#include "t6050-j775c-incremental-additions.dtsi" + +/* Isolate newly active MTP DART from the inventory additions. */ +&{/soc/iommu@294800000} { status = "disabled"; }; + +#include "t6050-j775c-incremental-remaining-nogpu.dtsi" + +/* Keep isolated MTP activation failure disabled after later migrations. */ +&{/soc/iommu@294800000} { status = "disabled"; }; + +#include "t6050-j775c-incremental-gpuopp.dtsi" + +/* Installed Stage2 needs the final fallback while Linux uses current G17 compatibles. */ +&gpu { compatible = "apple,agx-g17c", "apple,agx-g17s", "apple,agx-t6050"; }; + +/delete-node/ &{/opp-table-gpu-afr}; +/delete-node/ &{/opp-table-gpu-cs}; + +/* The shared router graph uses adapter port 1; drop stale duplicate links. */ +&acio0 { + /delete-node/ port; +}; + +&acio1 { + /delete-node/ port; +}; + +&acio2 { + /delete-node/ port; +}; + +&acio3 { + /delete-node/ port; +}; + +/* Name the retained second ADT window without assigning a filter role. */ +&ane_dart0 { + reg-names = "dart", "auxiliary"; +}; From 2e2905662a8c22be9e774411a9da38cb6a7df1b7 Mon Sep 17 00:00:00 2001 From: Diljit Singh Date: Mon, 16 Nov 2026 16:03:10 -0500 Subject: [PATCH 05/24] arm64: dts: apple: retain enabled laptop routers with shared inventory The shared T6050 router declarations default their status to disabled. J714s and J716c previously enabled their board-specific mailbox and router definitions implicitly, which now inherit the disabled property. Explicitly enable the six existing board nodes to preserve their prior effective status. Signed-off-by: Diljit Singh --- arch/arm64/boot/dts/apple/t6050-j714s-left-usb4.dtsi | 4 ++++ arch/arm64/boot/dts/apple/t6050-j716c-left-usb4.dtsi | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t6050-j714s-left-usb4.dtsi b/arch/arm64/boot/dts/apple/t6050-j714s-left-usb4.dtsi index 016432b78a47d..36f98814cc2e4 100644 --- a/arch/arm64/boot/dts/apple/t6050-j714s-left-usb4.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-j714s-left-usb4.dtsi @@ -49,6 +49,8 @@ &{/soc@200000000} { /* /arm-io/acio-cpu1 reg[0]: the router CPU's mailbox, inside its wrapper */ acio1_mbox: mailbox@2a9108000 { + /* This board enables the shared, disabled router inventory. */ + status = "okay"; compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; reg = <0x2 0xa9108000 0x0 0x4000>; interrupts = , @@ -61,6 +63,8 @@ }; acio1: acio@2a9ac0000 { + /* This board enables the shared, disabled router inventory. */ + status = "okay"; compatible = "apple,t6050-usb4-acio"; reg = <0x2 0xa9ac0000 0x0 0xc000>, <0x2 0xa9080000 0x0 0x26000>, diff --git a/arch/arm64/boot/dts/apple/t6050-j716c-left-usb4.dtsi b/arch/arm64/boot/dts/apple/t6050-j716c-left-usb4.dtsi index 196128d3add0c..00e14419ade39 100644 --- a/arch/arm64/boot/dts/apple/t6050-j716c-left-usb4.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-j716c-left-usb4.dtsi @@ -190,6 +190,8 @@ }; &{/soc@200000000} { acio0_mbox: mailbox@2a1108000 { + /* This board enables the shared, disabled router inventory. */ + status = "okay"; compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; reg = <0x2 0xa1108000 0x0 0x4000>; interrupts = , @@ -201,6 +203,8 @@ #mbox-cells = <0>; }; acio0: acio@2a1ac0000 { + /* This board enables the shared, disabled router inventory. */ + status = "okay"; compatible = "apple,t6050-usb4-acio"; reg = <0x2 0xa1ac0000 0x0 0xc000>, <0x2 0xa1080000 0x0 0x26000>, @@ -648,6 +652,8 @@ }; &{/soc@200000000} { acio1_mbox: mailbox@2a9108000 { + /* This board enables the shared, disabled router inventory. */ + status = "okay"; compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; reg = <0x2 0xa9108000 0x0 0x4000>; interrupts = , @@ -659,6 +665,8 @@ #mbox-cells = <0>; }; acio1: acio@2a9ac0000 { + /* This board enables the shared, disabled router inventory. */ + status = "okay"; compatible = "apple,t6050-usb4-acio"; reg = <0x2 0xa9ac0000 0x0 0xc000>, <0x2 0xa9080000 0x0 0x26000>, From 32fc7e6cdbe5dac99a62b375be554eb2ca96effb Mon Sep 17 00:00:00 2001 From: Diljit Singh Date: Mon, 16 Nov 2026 16:03:35 -0500 Subject: [PATCH 06/24] selftests: asahi: cover adopted-link Clock PM policy Run the production Clock PM helpers through root-bus and capability admission, locked and unlocked calls, PCI errors, host initialization failure and the adopted-link host gate. Reject mutations that change the mask or remove the gate. Document the rebase and the outstanding loader and hardware qualification limits. Signed-off-by: Diljit Singh --- .../devicetree/apple-j775c-compatibility.rst | 24 ++++++ tools/asahi/pcie-adopted-clkpm-tests.py | 82 +++++++++++++++++++ tools/asahi/run-host-tests.py | 1 + 3 files changed, 107 insertions(+) create mode 100644 tools/asahi/pcie-adopted-clkpm-tests.py diff --git a/Documentation/devicetree/apple-j775c-compatibility.rst b/Documentation/devicetree/apple-j775c-compatibility.rst index 7300d8160a370..229e2947ff5bf 100644 --- a/Documentation/devicetree/apple-j775c-compatibility.rst +++ b/Documentation/devicetree/apple-j775c-compatibility.rst @@ -44,3 +44,27 @@ The remaining DT gate item is the GPU loader contract migration: qualify a loader supporting modern GPU paths, compatibles and resources, then update the DT and recheck GPU handoff and HDMI on hardware. Until then, preserve the compatibility DT and keep the PR draft while CI fails. + +Rebase onto current integration +------------------------------ + +The rebased stack starts at integration commit +``677be395b9d2e15d98696107ebf88191f08efbf9``. It includes the shared, +disabled ACIO routers from PR #1579, the adopted-link Clock PM policy +from PR #1618, and the board changes from PR #1619. Satya Benson's +original board series is consolidated into one commit; the original +PRs and their branches remain unchanged. + +The rebase retains K114c in the existing Max router activation guards, +keeps the current PCIe radio and SD helpers, and preserves the T8142 +ANE binding constraints alongside the separate T6050 layout. J714s and +J716c board definitions explicitly retain their previously enabled +routers and mailboxes after inheriting shared disabled nodes. +The Clock PM host test exercises the production helper, including the +locked and unlocked PCI APIs, failures, and the adopted-host gate. +It does not exercise physical links or qualify other M5 boards. + +All hardware receipts above apply only to their stated revisions. +Neither the rebased head nor its normal and ANE wrappers have a new +hardware qualification. The GPU loader migration remains outstanding; +this rebase does not authorize installation or replace those gates. diff --git a/tools/asahi/pcie-adopted-clkpm-tests.py b/tools/asahi/pcie-adopted-clkpm-tests.py new file mode 100644 index 0000000000000..50bf753cfcb56 --- /dev/null +++ b/tools/asahi/pcie-adopted-clkpm-tests.py @@ -0,0 +1,82 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: GPL-2.0-only OR MIT +"""Exercise adopted-link Clock PM policy using the production C helpers.""" +from pathlib import Path +import re, resource, subprocess, tempfile + +resource.setrlimit(resource.RLIMIT_CORE, (0, 0)) +root=Path(__file__).resolve().parents[2] +src=(root/'drivers/pci/controller/pcie-apple.c').read_text() +def function(name): + start=re.search(r'^static (?:void|int) '+name+r'\(',src,re.M).start() + end=src.index('{',start)+1;depth=1 + while depth: + depth+=(src[end]=='{')-(src[end]=='}');end+=1 + return src[start:end] +production='\n'.join(function(n) for n in ['apple_pcie_adopted_no_clkpm','apple_pcie_adopted_no_clkpm_walk','apple_pcie_host_init']) +fixture=r''' +#include +#include +#include +#include +#include +typedef uint32_t u32; +#define PCI_EXP_LNKCAP 12 +#define PCI_EXP_LNKCAP_CLKPM (1U << 18) +#define PCIE_LINK_STATE_CLKPM (1U << 2) +struct pci_bus { bool root; }; +struct pci_dev { struct pci_bus *bus; bool pcie; }; +struct platform_device { int unused; }; +struct hw_info { bool adopt_link; }; +struct apple_pcie { struct hw_info *hw; }; +struct pci_host_bridge { struct pci_bus *bus; struct apple_pcie *priv; }; +static int reads, disables, locks, warnings, infos, walks, common_ret, disable_ret, read_ret; +static u32 cap; +static int apple_pcie_cfg_ecam_ops; +static bool pci_is_root_bus(struct pci_bus *b) { return b->root; } +static bool pci_is_pcie(struct pci_dev *p) { return p->pcie; } +static int pcie_capability_read_dword(struct pci_dev *p, int reg, u32 *v) +{ assert(reg==PCI_EXP_LNKCAP); reads++; *v=cap; return read_ret; } +static int pci_disable_link_state(struct pci_dev *p, int mask) +{ assert(mask==PCIE_LINK_STATE_CLKPM); disables++; return disable_ret; } +static int pci_disable_link_state_locked(struct pci_dev *p, int mask) +{ locks++; return pci_disable_link_state(p,mask); } +#define pci_warn(...) (warnings++) +#define pci_info(...) (infos++) +static struct apple_pcie *pci_host_bridge_priv(struct pci_host_bridge *b) { return b->priv; } +static int pci_host_common_init(struct platform_device *p, struct pci_host_bridge *b, void *ops) +{ assert(ops==&apple_pcie_cfg_ecam_ops); return common_ret; } +static void pci_walk_bus(struct pci_bus *b, int (*fn)(struct pci_dev *,void *), void *data) +{ struct pci_dev p={b,true}; walks++; assert(fn(&p,data)==0); } +/*PRODUCTION*/ +static void reset(void) +{ reads=disables=locks=warnings=infos=walks=common_ret=disable_ret=read_ret=0; cap=PCI_EXP_LNKCAP_CLKPM; } +int main(void) +{ + struct pci_bus bus={false}; struct pci_dev dev={&bus,true}; + reset();bus.root=true;apple_pcie_adopted_no_clkpm(&dev,false);assert(!reads&&!disables);bus.root=false; + reset();dev.pcie=false;apple_pcie_adopted_no_clkpm(&dev,false);assert(!reads&&!disables);dev.pcie=true; + reset();read_ret=-EIO;apple_pcie_adopted_no_clkpm(&dev,false);assert(reads==1&&!disables); + reset();cap=0;apple_pcie_adopted_no_clkpm(&dev,false);assert(reads==1&&!disables); + for(int locked=0;locked<2;locked++) { + reset();apple_pcie_adopted_no_clkpm(&dev,locked);assert(disables==1&&locks==locked&&infos==locked&&!warnings); + reset();disable_ret=-EINVAL;apple_pcie_adopted_no_clkpm(&dev,locked);assert(disables==1&&locks==locked&&!infos&&!warnings); + reset();disable_ret=-EIO;apple_pcie_adopted_no_clkpm(&dev,locked);assert(disables==1&&locks==locked&&!infos&&warnings==1); + } + struct hw_info hw={false};struct apple_pcie pcie={&hw};struct pci_host_bridge bridge={&bus,&pcie};struct platform_device platform={0}; + reset();assert(apple_pcie_host_init(&platform,&bridge)==0);assert(!walks&&!disables); + reset();hw.adopt_link=true;assert(apple_pcie_host_init(&platform,&bridge)==0);assert(walks==1&&disables==1&&locks==1); + reset();common_ret=-EIO;assert(apple_pcie_host_init(&platform,&bridge)==-EIO);assert(!walks&&!disables); + return 0; +} +''' +variants={'production':production,'wrong-mask':production.replace('PCIE_LINK_STATE_CLKPM','1',2),'lost-host-gate':production.replace('!ret && pcie->hw->adopt_link','!ret && (pcie->hw->adopt_link || true)')} +with tempfile.TemporaryDirectory() as td: + d=Path(td) + for name,body in variants.items(): + c=d/(name+'.c');exe=d/name;c.write_text(fixture.replace('/*PRODUCTION*/',body)) + subprocess.run(['clang','-std=gnu11','-Wall','-Werror','-Wno-unused-parameter',str(c),'-o',str(exe)],check=True) + r=subprocess.run([str(exe)],capture_output=True) + assert (r.returncode==0)==(name=='production'),(name,r.stderr.decode()) + print(name,'PASS' if not r.returncode else 'negative control rejected',flush=True) +print('13 production cases; 2 negative controls PASS') diff --git a/tools/asahi/run-host-tests.py b/tools/asahi/run-host-tests.py index 1af0e3c242fc4..f96c27124eee6 100755 --- a/tools/asahi/run-host-tests.py +++ b/tools/asahi/run-host-tests.py @@ -249,6 +249,7 @@ def mutations(flag, names, base, expect=KILL): + mutations('--mutation', ('sep-syscore', 'wake-irq', 'rx-suspend', 'stale-policy', 'usb-rpm', 'usb-epoch-syscore', 'vlp-client', 'six-band'), out('--output')) + [(out('--output') + ['--old-usb'], KILL), (out('--output') + ['--old-regulatory'], KILL)], + 'pcie-adopted-clkpm-tests.py': [([], PASS)], 'pciec-policy-tests.py': [(out(), PASS)], 'pmgr-bus-tests.py': [([], PASS)], 'sep-suspend-errors-tests.py': [(out(), PASS)] From 21e05e1b53af2f0817da4faadadaa771a3010a1d Mon Sep 17 00:00:00 2001 From: Diljit Singh Date: Mon, 16 Nov 2026 16:08:04 -0500 Subject: [PATCH 07/24] arm64: dts: apple: consolidate J775c into one final board description Resolve the staged board descriptions into t6050-j775c.dts, retaining symbolic references and the final device policy. Remove all 18 board staging sources, including the separate unqualified ANE trial wrapper. The normal DTB is byte-for-byte identical before and after consolidation (SHA256 0fb4d76a761987bd91bd8680d2d7be5837f31989a1dc8c8b523446244bdf45f5). No hardware is newly enabled. Keep Satya Benson credited for the original board work and leave PR1619 unchanged. Signed-off-by: Diljit Singh --- .../devicetree/apple-j775c-compatibility.rst | 100 +- arch/arm64/boot/dts/apple/t6050-j775c-ane.dts | 34 - .../boot/dts/apple/t6050-j775c-base.dtsi | 306 - .../t6050-j775c-incremental-additions.dtsi | 1046 --- .../apple/t6050-j775c-incremental-audio.dtsi | 69 - .../t6050-j775c-incremental-display.dtsi | 464 -- .../apple/t6050-j775c-incremental-gpuopp.dtsi | 277 - .../apple/t6050-j775c-incremental-pcie.dtsi | 41 - .../apple/t6050-j775c-incremental-pmgr.dtsi | 1148 --- .../apple/t6050-j775c-incremental-pmgr4.dtsi | 269 - ...050-j775c-incremental-remaining-nogpu.dtsi | 2354 ------ .../dts/apple/t6050-j775c-incremental-sd.dtsi | 11 - .../apple/t6050-j775c-incremental-spmi.dtsi | 47 - .../t6050-j775c-incremental-usbpolicy.dtsi | 185 - .../boot/dts/apple/t6050-j775c-legacy.dtsi | 3190 -------- .../dts/apple/t6050-j775c-loader-gpu.dtsi | 98 - .../t6050-j775c-rebased-peripherals.dtsi | 302 - .../dts/apple/t6050-j775c-usb4-capture.dtsi | 24 - .../boot/dts/apple/t6050-j775c-usb4.dtsi | 424 - arch/arm64/boot/dts/apple/t6050-j775c.dts | 6811 ++++++++++++++--- 20 files changed, 5943 insertions(+), 11257 deletions(-) delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-ane.dts delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-base.dtsi delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-additions.dtsi delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-audio.dtsi delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-display.dtsi delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-gpuopp.dtsi delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-pcie.dtsi delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-pmgr.dtsi delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-pmgr4.dtsi delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-remaining-nogpu.dtsi delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-sd.dtsi delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-spmi.dtsi delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-incremental-usbpolicy.dtsi delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-legacy.dtsi delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-loader-gpu.dtsi delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-rebased-peripherals.dtsi delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-usb4-capture.dtsi delete mode 100644 arch/arm64/boot/dts/apple/t6050-j775c-usb4.dtsi diff --git a/Documentation/devicetree/apple-j775c-compatibility.rst b/Documentation/devicetree/apple-j775c-compatibility.rst index 229e2947ff5bf..5f7636ae3c1c3 100644 --- a/Documentation/devicetree/apple-j775c-compatibility.rst +++ b/Documentation/devicetree/apple-j775c-compatibility.rst @@ -3,68 +3,60 @@ J775c loader compatibility and DT validation ========================================== -The J775c (Mac Studio M5 Max) description retains the GPU layout required -by the installed Aura b6e6faf4 loader: the GPU path below -``/soc@2300000000``, the ``apple,agx-t6050`` fallback compatible, and the -ASC/SGX resource pair. Migrating to the modern GPU layout requires a -separately qualified loader update. Do not remove this contract merely -to satisfy schema validation. - -At PR #1619 head 32149e08e8b191a500b40435eb0820cc78ec22fe, the -``t6050-j775c-ane.dtb`` booted with SHA256 +The J775c (Mac Studio M5 Max) board has one final description in +``arch/arm64/boot/dts/apple/t6050-j775c.dts``. The staging fragments and +separate ANE trial wrapper are not part of the board source. Consolidating +the resolved description preserves the normal board's compiled DTB byte +for byte, including its enabled and disabled device policy. + +The description retains the GPU layout required by the installed Aura +b6e6faf4 loader: the GPU path below ``/soc@2300000000``, the +``apple,agx-t6050`` fallback compatible, and the ASC/SGX resource pair. +Migrating to the modern GPU layout requires a separately qualified loader +update. Do not remove this contract merely to satisfy schema validation. + +The MTP DART remains disabled after its activation failed qualification. +The ANE DARTs retain their ANE_SYS suppliers. Neither the consolidation nor +the removal of the trial wrapper enables additional hardware. + +Historical hardware evidence +---------------------------- + +At PR #1619 head 32149e08e8b191a500b40435eb0820cc78ec22fe, the former +``t6050-j775c-ane.dtb`` trial booted with SHA256 ``dc88aa139f329bb568e48ba7ba80417e7d2c01ec6be49514a95ca24285dfd8d9``. -The hardware receipt, including the combined kernel revision and test -limits, is recorded at: +The combined kernel revision and test limits are recorded at: https://github.com/aurora-silicon/linux/pull/1619#issuecomment-6816611851 -This is a boot and health result, not qualification of GPU rendering, +That result applies only to the stated trial composition. It is not a new +qualification of this rebased head, the normal board DTB, GPU rendering, audio playback, SD media, suspend, hotplug or other boards. -At that revision the DT gate reports ten new lines, five per J775c DTB: -unmatched compatible, compatible oneOf failure, excessive reg length, -excessive reg-names length, and reg-names[0] expecting sgx. The modern -G17 binding describes one SGX bank; the retained loader contract uses -ASC and SGX. The edited bindings themselves validate, and ADT coverage -does not regress. These warnings remain visible. - -After merging integration 050f6a517, its compatible-pair recognition -removes the two unmatched-schema diagnostics. Eight new warning lines -remain, four per J775c DTB, with identical DTB bytes. The compatible list -and ASC/SGX shape still conflict with the modern binding constraints. - -``scripts/dtc/apple-dt-check.sh`` compares normalized warning sets for -all Apple DTBs at base and head. It has no warning allowlist or board -exception mechanism. ADT coverage waivers describe coverage only and -cannot waive schema diagnostics. A PR job compares its synthetic merge -against that merge's first parent, not against the PR's old base or -its merge-base. - -The remaining DT gate item is the GPU loader contract migration: qualify -a loader supporting modern GPU paths, compatibles and resources, then -update the DT and recheck GPU handoff and HDMI on hardware. Until then, -preserve the compatibility DT and keep the PR draft while CI fails. - -Rebase onto current integration ------------------------------- +Rebase and remaining gates +------------------------- The rebased stack starts at integration commit -``677be395b9d2e15d98696107ebf88191f08efbf9``. It includes the shared, -disabled ACIO routers from PR #1579, the adopted-link Clock PM policy -from PR #1618, and the board changes from PR #1619. Satya Benson's -original board series is consolidated into one commit; the original +``677be395b9d2e15d98696107ebf88191f08efbf9``. It includes Satya Benson's +shared disabled ACIO routers from PR #1579, the adopted-link Clock PM +policy from PR #1618, and the final board state from PR #1619. The original PRs and their branches remain unchanged. The rebase retains K114c in the existing Max router activation guards, -keeps the current PCIe radio and SD helpers, and preserves the T8142 -ANE binding constraints alongside the separate T6050 layout. J714s and -J716c board definitions explicitly retain their previously enabled -routers and mailboxes after inheriting shared disabled nodes. -The Clock PM host test exercises the production helper, including the -locked and unlocked PCI APIs, failures, and the adopted-host gate. -It does not exercise physical links or qualify other M5 boards. - -All hardware receipts above apply only to their stated revisions. -Neither the rebased head nor its normal and ANE wrappers have a new -hardware qualification. The GPU loader migration remains outstanding; -this rebase does not authorize installation or replace those gates. +keeps the current PCIe radio and SD helpers, and preserves the T8142 ANE +binding constraints alongside the separate T6050 layout. J714s and J716c +explicitly retain their previously enabled routers and mailboxes when +inheriting the shared disabled inventory. The production-C Clock PM host +test covers the locked and unlocked PCI APIs, errors and adopted-host +gate; it does not qualify physical links or other M5 boards. + +Full-schema validation still reports the legacy GPU compatible-list +``oneOf`` failure. ``scripts/dtc/apple-dt-check.sh`` compares normalized +warning sets for all Apple DTBs at base and head. It has no warning +allowlist or board exception mechanism. ADT coverage waivers cannot waive +schema diagnostics. + +Keep this work draft until the GPU loader migration and affected-board +hardware qualification are complete. A later migration must recheck GPU +handoff and HDMI on J775c; old hardware receipts do not qualify a new +loader or kernel composition. diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-ane.dts b/arch/arm64/boot/dts/apple/t6050-j775c-ane.dts deleted file mode 100644 index 95663b200a895..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-ane.dts +++ /dev/null @@ -1,34 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* - * Apple Mac Studio (M5 Max, 2026) with the Neural Engine enabled, for a - * trial boot: J775c plus ANE_SYS, the three ANE DART instances and the - * ANE. The DARTs probe at boot (powering ANE_SYS); the ANE engine itself - * is only touched from firmware_stage, after the loader hand-off. - */ - -#include "t6050-j775c.dts" - -&ps_ane_sys { - status = "okay"; -}; - -&ane_dart0 { - status = "okay"; -}; - -&ane_dart1 { - status = "okay"; -}; - -&ane_dart2 { - status = "okay"; -}; - -&ane { - status = "okay"; -}; - -/* Retain ANE_SYS suppliers when explicitly enabling these DARTs. */ -&ane_dart0 { power-domains = <&ps_ane_sys>; }; -&ane_dart1 { power-domains = <&ps_ane_sys>; }; -&ane_dart2 { power-domains = <&ps_ane_sys>; }; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-base.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-base.dtsi deleted file mode 100644 index 171ca5c2d8c35..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-base.dtsi +++ /dev/null @@ -1,306 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* - * Nodes common to every Apple T6050 (M5 Max, M5 Ultra) SoC - * - * A T6050 is one or two identical dies: t6050-max.dtsi describes the - * one-die part and t6050-ultra.dtsi the two-die one. Each includes this - * file, t6050-die0.dtsi (the blocks used on die 0 only) and, once per die, - * the per-die template t6050-dieX.dtsi. Die 0's MMIO window is - * 0x2_00000000 and die 1's 0x42_00000000 (die stride 0x40_00000000); each - * die has its own simple-bus, which the boot loader looks up by unit - * address. Unit addresses are CPU physical addresses. The boot loader - * starts the secondary CPUs and fills in their release addresses, the - * memory node and its own reservations. - * - * A smaller (binned) one-die part can build on t6050-max.dtsi, as - * t6034.dtsi does on t6031.dtsi: the boot loader removes the CPU nodes of - * the cores a part lacks. - * - * Copyright The Asahi Linux Contributors - */ - -/* - * The per-die template's addressing: before each inclusion of - * t6050-dieX.dtsi, the including file defines - * DIE the label suffix (empty for die 0, _die1 for die 1), - * DIE_NO the die number (the AIC's die cell), - * DIE_UNIT_PREFIX the die's MMIO offset as a unit-address prefix - * (empty for die 0, 4 for die 1), - * DIE_ATC1 the port name of the die's ATC1 (die d's ATCn is port 4d + n), - * SOC_NODE the die's bus. - * DIE_UNIT() and DIE_HI() then give a die-0 address on that die. - */ -#define DIE_UNIT(addr) __concat(DIE_UNIT_PREFIX, addr) -#define DIE_HI(hi) ((hi) + 0x40 * DIE_NO) -#define DIE_ATC1_LABEL(suffix) __stringify(__concat(DIE_ATC1, suffix)) - -/* - * CPU nodes. Die d, cluster c, core n has MPIDR Aff2 4 for the two M-tier - * (apple,sawtooth) clusters and 1 for the P-tier (apple,everest) cluster, - * Aff1 0x10 * d + c and Aff0 n; the unit address is the MPIDR. Labels - * number the cores 18 * d + 6 * c + n. The boot loader removes the nodes of - * the cores it did not start. - */ -#define T6050_CPU(label, mpidr, type, opp, cluster, cpu_cap) \ - label: cpu@mpidr { \ - compatible = type; \ - device_type = "cpu"; \ - reg = <0x0 0x ## mpidr>; \ - enable-method = "spin-table"; \ - operating-points-v2 = <&opp>; \ - performance-domains = <&cluster>; \ - capacity-dmips-mhz = ; \ - cpu-release-addr = <0 0>; /* to be filled by the loader */ \ - } - -/* - * capacity-dmips-mhz from pinned single-thread throughput with every cluster at 4284 MHz (in - * both OPP tables), normalised by each core's measured clock (J714sAP): per MHz an M core runs - * zstd -3 compression at 0.736, decompression at 0.871 and a Python dict loop at 0.728 of a P - * core, geometric mean 0.776, so M 794 and P 1024. Small L1-resident loops run at 0.92-1.01. - */ -#define T6050_M_CPU(label, mpidr, cluster) \ - T6050_CPU(label, mpidr, "apple,sawtooth", mcluster_opp, cluster, 794) -#define T6050_P_CPU(label, mpidr, cluster) \ - T6050_CPU(label, mpidr, "apple,everest", pcluster_opp, cluster, 1024) - -/ { - compatible = "apple,t6050", "apple,arm-platform"; - #address-cells = <2>; - #size-cells = <2>; - interrupt-parent = <&aic>; - - /* The boot loader replaces reg with the usable RAM. */ - memory@10000000000 { - device_type = "memory"; - reg = <0x100 0x0 0x0 0x0>; - }; - - reserved-memory { - #address-cells = <2>; - #size-cells = <2>; - ranges; - /* The boot loader adds its own reservations. */ - }; - - /* The size's file lists its CPUs (T6050_M_CPU, T6050_P_CPU). */ - cpus { - #address-cells = <2>; - #size-cells = <0>; - }; - - /* - * CPU OPPs, from the ADT: /arm-io/pmgr acc-clusters maps clusters 0, 1 and 2 of each die to - * voltage-states 22, 23 and 5, and their -sram tables give the frequencies (kHz). 22 and 23 - * list the same frequencies, so the two M clusters share one table. Levels are DVFS command - * states: state 1 is 300 MHz and state k the table's (k-1)-th entry from state 2, as on T8142 - * (measured on J775D: every state's clock from a dependent-add chain). iBoot leaves M cluster - * 0 of each die in state 6 (2652 MHz), the other clusters in state 2. - * - * Bring-up: the clusters' controllers (t6050-dieX.dtsi) assert apple,firmware-managed-thermal, - * which the T6050 profile requires, before that ownership is qualified on this boot chain (no - * Linux PMP driver runs; the SMC drives the fans). A qualification settles it: an all-core - * load at the top states, watching TCMb, the fans and the measured clock. - */ - mcluster_opp: opp-table-mcluster { - compatible = "operating-points-v2"; - opp-shared; - - opp01 { - opp-hz = /bits/ 64 <300000000>; - opp-level = <1>; - }; - opp02 { - opp-hz = /bits/ 64 <1344000000>; - opp-level = <2>; - }; - opp03 { - opp-hz = /bits/ 64 <1644000000>; - opp-level = <3>; - }; - opp04 { - opp-hz = /bits/ 64 <1992000000>; - opp-level = <4>; - }; - opp05 { - opp-hz = /bits/ 64 <2304000000>; - opp-level = <5>; - }; - opp06 { - opp-hz = /bits/ 64 <2652000000>; - opp-level = <6>; - }; - opp07 { - opp-hz = /bits/ 64 <2964000000>; - opp-level = <7>; - }; - opp08 { - opp-hz = /bits/ 64 <3240000000>; - opp-level = <8>; - }; - opp09 { - opp-hz = /bits/ 64 <3504000000>; - opp-level = <9>; - }; - opp10 { - opp-hz = /bits/ 64 <3696000000>; - opp-level = <10>; - }; - opp11 { - opp-hz = /bits/ 64 <3876000000>; - opp-level = <11>; - }; - opp12 { - opp-hz = /bits/ 64 <4044000000>; - opp-level = <12>; - }; - opp13 { - opp-hz = /bits/ 64 <4176000000>; - opp-level = <13>; - }; - opp14 { - opp-hz = /bits/ 64 <4284000000>; - opp-level = <14>; - }; - opp15 { - opp-hz = /bits/ 64 <4308000000>; - opp-level = <15>; - }; - opp16 { - opp-hz = /bits/ 64 <4380000000>; - opp-level = <16>; - }; - }; - - pcluster_opp: opp-table-pcluster { - compatible = "operating-points-v2"; - opp-shared; - - opp01 { - opp-hz = /bits/ 64 <300000000>; - opp-level = <1>; - }; - opp02 { - opp-hz = /bits/ 64 <1308000000>; - opp-level = <2>; - }; - opp03 { - opp-hz = /bits/ 64 <1620000000>; - opp-level = <3>; - }; - opp04 { - opp-hz = /bits/ 64 <1980000000>; - opp-level = <4>; - }; - opp05 { - opp-hz = /bits/ 64 <2292000000>; - opp-level = <5>; - }; - opp06 { - opp-hz = /bits/ 64 <2580000000>; - opp-level = <6>; - }; - opp07 { - opp-hz = /bits/ 64 <2880000000>; - opp-level = <7>; - }; - opp08 { - opp-hz = /bits/ 64 <3180000000>; - opp-level = <8>; - }; - opp09 { - opp-hz = /bits/ 64 <3432000000>; - opp-level = <9>; - }; - opp10 { - opp-hz = /bits/ 64 <3648000000>; - opp-level = <10>; - }; - opp11 { - opp-hz = /bits/ 64 <3828000000>; - opp-level = <11>; - }; - opp12 { - opp-hz = /bits/ 64 <3984000000>; - opp-level = <12>; - }; - opp13 { - opp-hz = /bits/ 64 <4104000000>; - opp-level = <13>; - }; - opp14 { - opp-hz = /bits/ 64 <4188000000>; - opp-level = <14>; - }; - opp15 { - opp-hz = /bits/ 64 <4236000000>; - opp-level = <15>; - }; - opp16 { - opp-hz = /bits/ 64 <4284000000>; - opp-level = <16>; - }; - opp17 { - opp-hz = /bits/ 64 <4308000000>; - opp-level = <17>; - }; - opp18 { - opp-hz = /bits/ 64 <4332000000>; - opp-level = <18>; - }; - opp19 { - opp-hz = /bits/ 64 <4428000000>; - opp-level = <19>; - }; - opp20 { - opp-hz = /bits/ 64 <4512000000>; - opp-level = <20>; - }; - opp21 { - opp-hz = /bits/ 64 <4608000000>; - opp-level = <21>; - }; - }; - - /* The 24 MHz reference clock of the watchdog */ - clkref: clock-ref { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <24000000>; - clock-output-names = "clkref"; - }; - - /* The QSPI controller's input: ADT /arm-io/qspi clock-ids 440, /arm-io clock-frequencies[440 - 256] */ - clk_405m: clock-405m { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <405000000>; - clock-output-names = "clk_405m"; - }; - - timer { - compatible = "arm,armv8-timer"; - interrupt-parent = <&aic>; - interrupt-names = "phys", "virt", "hyp-phys", "hyp-virt"; - interrupts = , - , - , - ; - }; - - cpu_pmu: pmu { - compatible = "apple,t6050-pmu"; - interrupt-parent = <&aic>; - /* The AIC raises both core types' PMU FIQs as this one. */ - interrupts = ; - }; - - /* Die 0 MMIO */ - die0: soc { - compatible = "simple-bus"; - #address-cells = <2>; - #size-cells = <2>; - ranges; - nonposted-mmio; - }; -}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-additions.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-additions.dtsi deleted file mode 100644 index c3ddeb9740f1a..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-additions.dtsi +++ /dev/null @@ -1,1046 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* Property migration from Satya Benson's 86b1f365 J775c stack. - * Retained board sources remain the baseline; this group is independently booted. - * Copyright The Asahi Linux Contributors - */ -&{/soc} { - pwm@505040000 { - compatible = "apple,t6050-fpwm", "apple,s5l-fpwm"; - reg = <0x5 0x5040000 0x0 0x4000>; - clocks = <&{/clock-ref}>; - power-domains = <&{/soc/power-management@280900000/power-controller@2a8}>; - #pwm-cells = <0x2>; - status = "disabled"; - }; -}; - -&{/soc} { - pwm@505044000 { - compatible = "apple,t6050-fpwm", "apple,s5l-fpwm"; - reg = <0x5 0x5044000 0x0 0x4000>; - clocks = <&{/clock-ref}>; - power-domains = <&{/soc/power-management@280900000/power-controller@2b0}>; - #pwm-cells = <0x2>; - status = "disabled"; - }; -}; - -&{/soc} { - pwm@505048000 { - compatible = "apple,t6050-fpwm", "apple,s5l-fpwm"; - reg = <0x5 0x5048000 0x0 0x4000>; - clocks = <&{/clock-ref}>; - power-domains = <&{/soc/power-management@280900000/power-controller@2b8}>; - #pwm-cells = <0x2>; - status = "disabled"; - }; -}; - -&{/soc/acio@2a1ac0000} { - ports { - #address-cells = <0x1>; - #size-cells = <0x0>; - }; -}; - -&{/soc/acio@2a1ac0000/ports} { - port@1 { - reg = <0x1>; - }; -}; - -&{/soc/acio@2a1ac0000/ports/port@1} { - endpoint { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@3/endpoint}>; - }; -}; - -&{/soc/acio@2a9ac0000} { - ports { - #address-cells = <0x1>; - #size-cells = <0x0>; - }; -}; - -&{/soc/acio@2a9ac0000/ports} { - port@1 { - reg = <0x1>; - }; -}; - -&{/soc/acio@2a9ac0000/ports/port@1} { - endpoint { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@3/endpoint}>; - }; -}; - -&{/soc/acio@389ac0000} { - ports { - #address-cells = <0x1>; - #size-cells = <0x0>; - }; -}; - -&{/soc/acio@389ac0000/ports} { - port@1 { - reg = <0x1>; - }; -}; - -&{/soc/acio@389ac0000/ports/port@1} { - endpoint { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@3/endpoint}>; - }; -}; - -&{/soc} { - mailbox@294608000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x2 0x94608000 0x0 0x4000>; - interrupts = <0x0 0x0 0x2a4 0x4 0x0 0x0 0x2a5 0x4 0x0 0x0 0x2a6 0x4 0x0 0x0 0x2a7 0x4>; - interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; - #mbox-cells = <0x0>; - }; -}; - -&{/soc} { - iommu@294800000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x2 0x94800000 0x0 0xc000>; - interrupts = <0x0 0x0 0x293 0x4>; - #iommu-cells = <0x1>; - apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; - }; -}; - -&{/soc} { - mtp@294600000 { - compatible = "apple,t6050-mtp", "apple,t6050-rtk-helper-asc4", "apple,mtp", "apple,rtk-helper-asc4"; - reg = <0x2 0x94600000 0x0 0x4000 0x2 0x94c00000 0x0 0xc4000>; - reg-names = "asc", "sram"; - mboxes = <&{/soc/mailbox@294608000}>; - iommus = <&{/soc/iommu@294800000} 0x0>; - #helper-cells = <0x0>; - }; -}; - -&{/soc} { - fifo@294b14000 { - compatible = "apple,t6050-dockchannel", "apple,dockchannel"; - reg = <0x2 0x94b14000 0x0 0x1000>; - reg-names = "irq"; - interrupts = <0x0 0x0 0x294 0x4>; - ranges = <0x0 0x2 0x94b28000 0x10000>; - nonposted-mmio; - #address-cells = <0x1>; - #size-cells = <0x1>; - interrupt-controller; - #interrupt-cells = <0x2>; - }; -}; - -&{/soc/acio@381ac0000} { - ports { - #address-cells = <0x1>; - #size-cells = <0x0>; - }; -}; - -&{/soc/acio@381ac0000/ports} { - port@1 { - reg = <0x1>; - }; -}; - -&{/soc/acio@381ac0000/ports/port@1} { - endpoint { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@3/endpoint}>; - }; -}; - -&{/soc} { - sep@502600000 { - compatible = "apple,t6050-sep", "apple,sep"; - reg = <0x5 0x2600000 0x0 0x88000 0x5 0x2050000 0x0 0x4000>; - mboxes = <&{/soc/mailbox@502608000}>; - mbox-names = "mbox"; - iommus = <&{/soc/iommu@500b80000} 0x0>; - power-domains = <&{/soc/power-management@280900000/power-controller@298}>; - clocks = <&{/soc/clock-controller@280600000} 0x1bf>; - status = "disabled"; - }; -}; - -&{/soc} { - mailbox@502608000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x5 0x2608000 0x0 0x4000>; - interrupts = <0x0 0x0 0x215 0x4 0x0 0x0 0x216 0x4 0x0 0x0 0x217 0x4 0x0 0x0 0x218 0x4>; - interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; - #mbox-cells = <0x0>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@500b80000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x5 0xb80000 0x0 0x20000>; - interrupts = <0x0 0x0 0x21f 0x4>; - #iommu-cells = <0x1>; - apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; - apple,dma-offset = <0x0 0x0>; - status = "disabled"; - }; -}; - -&{/soc} { - clock-controller@280600000 { - compatible = "apple,t6050-pmgr-clocks", "apple,pmgr-clocks"; - reg = <0x2 0x80600000 0x0 0x1fc000 0x2 0x80900000 0x0 0x58000 0x2 0x80000000 0x0 0x80000 0x2 0x80210000 0x0 0x8000 0x2 0x80200000 0x0 0x4000 0x2 0x806f0000 0x0 0x4000 0x2 0x84000000 0x0 0x8000 0x2 0x84240000 0x0 0x40000 0x2 0x86000000 0x0 0x1000000 0x2 0x88300000 0x0 0x84000 0x2 0x88200000 0x0 0x80000 0x2 0x88f00000 0x0 0x18000 0x2 0x88000000 0x0 0x24000 0x2 0x88e00000 0x0 0xa8000 0x2 0x88360000 0x0 0x4000 0x5 0x9878000 0x0 0x4000 0x2 0x10e20000 0x0 0x12e8 0x2 0x10e40000 0x0 0xc020 0x2 0x10e50000 0x0 0x9048 0x2 0x10e70000 0x0 0xffe8 0x2 0x10050000 0x0 0x9018 0x2 0x10150000 0x0 0x9018 0x2 0x10250000 0x0 0x9018 0x2 0x10350000 0x0 0x9018 0x2 0x10450000 0x0 0x9018 0x2 0x10550000 0x0 0x9018 0x2 0x11e20000 0x0 0x12e8 0x2 0x11e40000 0x0 0xc020 0x2 0x11e50000 0x0 0x9048 0x2 0x11e70000 0x0 0xffe8 0x2 0x11050000 0x0 0x9018 0x2 0x11150000 0x0 0x9018 0x2 0x11250000 0x0 0x9018 0x2 0x11350000 0x0 0x9018 0x2 0x11450000 0x0 0x9018 0x2 0x11550000 0x0 0x9018 0x2 0x12e20000 0x0 0x12e8 0x2 0x12e40000 0x0 0xc020 0x2 0x12e50000 0x0 0x9048 0x2 0x12e70000 0x0 0xffe8 0x2 0x12050000 0x0 0x9018 0x2 0x12150000 0x0 0x9018 0x2 0x12250000 0x0 0x9018 0x2 0x12350000 0x0 0x9018 0x2 0x12450000 0x0 0x9018 0x2 0x12550000 0x0 0x9018 0x23 0x80600000 0x0 0x1e8000 0x23 0x80000000 0x0 0x80000 0x23 0x84000000 0x0 0x8000 0x23 0x88300000 0x0 0x84000 0x23 0x88200000 0x0 0x80000 0x23 0xe80000 0x0 0x30000 0x23 0xec0000 0x0 0x8000 0x23 0xed0000 0x0 0x8000 0x23 0xee0000 0x0 0x8000 0x23 0xef0000 0x0 0x8000 0x23 0xf00000 0x0 0x8000 0x23 0xe30000 0x0 0x8000 0x23 0xe70000 0x0 0x8000 0x23 0x88000000 0x0 0x8000>; - #clock-cells = <0x1>; - apple,pmgr = <&{/soc/power-management@280600000}>; - status = "disabled"; - }; -}; - -&{/soc} { - spmi@28a054000 { - compatible = "apple,t6050-spmi", "apple,t8142-spmi"; - reg = <0x2 0x8a054000 0x0 0x4000 0x2 0x8a044000 0x0 0x4000 0x2 0x8a040000 0x0 0x4000>; - interrupts = <0x0 0x0 0x2db 0x4>; - #address-cells = <0x2>; - #size-cells = <0x0>; - status = "disabled"; - }; -}; - -&{/soc} { - spmi@28a114000 { - compatible = "apple,t6050-spmi", "apple,t8142-spmi"; - reg = <0x2 0x8a114000 0x0 0x4000 0x2 0x8a104000 0x0 0x4000 0x2 0x8a100000 0x0 0x4000>; - interrupts = <0x0 0x0 0x2ea 0x4>; - #address-cells = <0x2>; - #size-cells = <0x0>; - status = "disabled"; - }; -}; - -&{/soc} { - i2c@505024000 { - compatible = "apple,t6050-i2c", "apple,t8103-i2c"; - reg = <0x5 0x5024000 0x0 0x4000>; - interrupts = <0x0 0x0 0x564 0x4>; - power-domains = <&{/soc/power-management@280900000/power-controller@2e8}>; - clocks = <&{/soc/clock-controller@280600000} 0x4>; - #address-cells = <0x1>; - #size-cells = <0x0>; - status = "disabled"; - }; -}; - -&{/soc} { - i2c@505010000 { - compatible = "apple,t6050-i2c", "apple,t8103-i2c"; - reg = <0x5 0x5010000 0x0 0x4000>; - interrupts = <0x0 0x0 0x55f 0x4>; - power-domains = <&{/soc/power-management@280900000/power-controller@2c0}>; - clocks = <&{/soc/clock-controller@280600000} 0x4>; - #address-cells = <0x1>; - #size-cells = <0x0>; - status = "disabled"; - }; -}; - -&{/soc} { - i2c@505020000 { - compatible = "apple,t6050-i2c", "apple,t8103-i2c"; - reg = <0x5 0x5020000 0x0 0x4000>; - interrupts = <0x0 0x0 0x563 0x4>; - power-domains = <&{/soc/power-management@280900000/power-controller@2e0}>; - clocks = <&{/soc/clock-controller@280600000} 0x4>; - #address-cells = <0x1>; - #size-cells = <0x0>; - status = "disabled"; - }; -}; - -&{/soc} { - i2c@505028000 { - compatible = "apple,t6050-i2c", "apple,t8103-i2c"; - reg = <0x5 0x5028000 0x0 0x4000>; - interrupts = <0x0 0x0 0x565 0x4>; - power-domains = <&{/soc/power-management@280900000/power-controller@2f0}>; - clocks = <&{/soc/clock-controller@280600000} 0x4>; - #address-cells = <0x1>; - #size-cells = <0x0>; - status = "disabled"; - }; -}; - -&{/soc} { - i2c@505030000 { - compatible = "apple,t6050-i2c", "apple,t8103-i2c"; - reg = <0x5 0x5030000 0x0 0x4000>; - interrupts = <0x0 0x0 0x567 0x4>; - power-domains = <&{/soc/power-management@280900000/power-controller@300}>; - clocks = <&{/soc/clock-controller@280600000} 0x4>; - #address-cells = <0x1>; - #size-cells = <0x0>; - status = "disabled"; - }; -}; - -&{/soc} { - dma-controller@410030000 { - compatible = "apple,t6050-pcie-piodma", "apple,pcie-piodma"; - reg = <0x4 0x10030000 0x0 0x4000 0x4 0x10034000 0x0 0x4000 0x4 0x10038000 0x0 0x4000>; - interrupts = <0x0 0x0 0x5f5 0x4>; - iommus = <&{/soc/iommu@410000000} 0x11>; - status = "disabled"; - }; -}; - -&{/soc} { - dma-controller@411030000 { - compatible = "apple,t6050-pcie-piodma", "apple,pcie-piodma"; - reg = <0x4 0x11030000 0x0 0x4000 0x4 0x11034000 0x0 0x4000 0x4 0x11038000 0x0 0x4000>; - interrupts = <0x0 0x0 0x5fd 0x4>; - iommus = <&{/soc/iommu@411000000} 0x11>; - status = "disabled"; - }; -}; - -&{/soc} { - dma-controller@2a4068000 { - compatible = "apple,t6050-pciec-piodma", "apple,pciec-piodma"; - reg = <0x2 0xa4068000 0x0 0x4000 0x2 0xa406c000 0x0 0x4000 0x2 0xa4070000 0x0 0x4000 0x2 0xa403c000 0x0 0x4000>; - interrupts = <0x0 0x0 0x57f 0x4>; - iommus = <&{/soc/iommu@2a4000000} 0xfe>; - status = "disabled"; - }; -}; - -&{/soc} { - dma-controller@2ac068000 { - compatible = "apple,t6050-pciec-piodma", "apple,pciec-piodma"; - reg = <0x2 0xac068000 0x0 0x4000 0x2 0xac06c000 0x0 0x4000 0x2 0xac070000 0x0 0x4000 0x2 0xac03c000 0x0 0x4000>; - interrupts = <0x0 0x0 0x59f 0x4>; - iommus = <&{/soc/iommu@2ac000000} 0xfe>; - status = "disabled"; - }; -}; - -&{/soc} { - dma-controller@384068000 { - compatible = "apple,t6050-pciec-piodma", "apple,pciec-piodma"; - reg = <0x3 0x84068000 0x0 0x4000 0x3 0x8406c000 0x0 0x4000 0x3 0x84070000 0x0 0x4000 0x3 0x8403c000 0x0 0x4000>; - interrupts = <0x0 0x0 0x5bf 0x4>; - iommus = <&{/soc/iommu@384000000} 0xfe>; - status = "disabled"; - }; -}; - -&{/soc} { - dpin@2a1e50000 { - compatible = "apple,t6050-dpin", "apple,dpin"; - reg = <0x2 0xa1e50000 0x0 0x4000>; - interrupts = <0x0 0x0 0x643 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dpin@2a1e58000 { - compatible = "apple,t6050-dpin", "apple,dpin"; - reg = <0x2 0xa1e58000 0x0 0x4000>; - interrupts = <0x0 0x0 0x644 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dpin@2a1e68000 { - compatible = "apple,t6050-dpin", "apple,dpin"; - reg = <0x2 0xa1e68000 0x0 0x4000>; - interrupts = <0x0 0x0 0x649 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dpin@2a1e70000 { - compatible = "apple,t6050-dpin", "apple,dpin"; - reg = <0x2 0xa1e70000 0x0 0x4000>; - interrupts = <0x0 0x0 0x64a 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dpin@2a9e50000 { - compatible = "apple,t6050-dpin", "apple,dpin"; - reg = <0x2 0xa9e50000 0x0 0x4000>; - interrupts = <0x0 0x0 0x663 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dpin@2a9e58000 { - compatible = "apple,t6050-dpin", "apple,dpin"; - reg = <0x2 0xa9e58000 0x0 0x4000>; - interrupts = <0x0 0x0 0x664 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dpin@2a9e68000 { - compatible = "apple,t6050-dpin", "apple,dpin"; - reg = <0x2 0xa9e68000 0x0 0x4000>; - interrupts = <0x0 0x0 0x669 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dpin@2a9e70000 { - compatible = "apple,t6050-dpin", "apple,dpin"; - reg = <0x2 0xa9e70000 0x0 0x4000>; - interrupts = <0x0 0x0 0x66a 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dpin@381e50000 { - compatible = "apple,t6050-dpin", "apple,dpin"; - reg = <0x3 0x81e50000 0x0 0x4000>; - interrupts = <0x0 0x0 0x683 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dpin@381e58000 { - compatible = "apple,t6050-dpin", "apple,dpin"; - reg = <0x3 0x81e58000 0x0 0x4000>; - interrupts = <0x0 0x0 0x684 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dpin@381e68000 { - compatible = "apple,t6050-dpin", "apple,dpin"; - reg = <0x3 0x81e68000 0x0 0x4000>; - interrupts = <0x0 0x0 0x689 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dpin@381e70000 { - compatible = "apple,t6050-dpin", "apple,dpin"; - reg = <0x3 0x81e70000 0x0 0x4000>; - interrupts = <0x0 0x0 0x68a 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - aic-timebase@280580000 { - compatible = "apple,t6050-aic-timebase", "apple,aic-timebase"; - reg = <0x2 0x80580000 0x0 0x1000>; - status = "disabled"; - }; -}; - -&{/soc} { - error-handler@2220000000 { - compatible = "apple,t6050-error-handler", "apple,soc-error-handler"; - reg = <0x22 0x20000000 0x0 0x240000 0x22 0x20270000 0x0 0x1d0000 0x22 0x20600000 0x0 0x40000 0x22 0x20670000 0x0 0x1d0000 0x22 0x22000000 0x0 0x240000 0x22 0x22270000 0x0 0x1d0000 0x22 0x22600000 0x0 0x40000 0x22 0x22670000 0x0 0x1d0000 0x2 0x80000000 0x0 0x80000 0x2 0x80650000 0x0 0x4000 0x2 0x806e0000 0x0 0xc000 0x2 0x80210000 0x0 0x4000 0x2 0x88374000 0x0 0x4000 0x2 0x86000000 0x0 0x1000000 0x2 0x84250000 0x0 0x4000 0x22 0x63000000 0x0 0x38000 0x22 0x64000000 0x0 0x38000 0x22 0x65000000 0x0 0x38000 0x2 0x63000000 0x0 0x44000 0x2 0x64000000 0x0 0x30000 0x2 0x65000000 0x0 0x3c000 0x2 0x66000000 0x0 0x34000 0x2 0x67000000 0x0 0x38000 0x2 0x68000000 0x0 0x38000 0x2 0x69000000 0x0 0x30000 0x22 0x5a100000 0x0 0x24000 0x22 0x5b100000 0x0 0x24000 0x22 0x5c100000 0x0 0x24000 0x22 0x5d100000 0x0 0x24000 0x2 0x4f000000 0x0 0x30000 0x2 0x50000000 0x0 0x30000 0x2 0x51000000 0x0 0x30000 0x2 0x52000000 0x0 0x24000 0x2 0x62000000 0x0 0x1c000 0x22 0x62000000 0x0 0x1c000 0x22 0x5a000000 0x0 0x2c000 0x22 0x5b000000 0x0 0x2c000 0x22 0x5c000000 0x0 0x2c000 0x22 0x5d000000 0x0 0x2c000 0x22 0x5a200000 0x0 0x1c000 0x22 0x5a300000 0x0 0x1c000 0x22 0x5b200000 0x0 0x1c000 0x22 0x5b300000 0x0 0x1c000 0x2 0x6a000000 0x0 0x1c000 0x2 0x6b000000 0x0 0x1c000 0x2 0x6c000000 0x0 0x1c000 0x2 0x6d000000 0x0 0x1c000 0x22 0x66000000 0x0 0x1c000 0x22 0x67000000 0x0 0x1c000 0x22 0x68000000 0x0 0x1c000 0x22 0x69000000 0x0 0x1c000 0x22 0x75000000 0x0 0x10000 0x22 0x75010000 0x0 0x10000 0x22 0x75020000 0x0 0x10000 0x22 0x75030000 0x0 0x10000 0x22 0x75400000 0x0 0x10000 0x22 0x75410000 0x0 0x10000 0x22 0x75420000 0x0 0x10000 0x22 0x75430000 0x0 0x10000 0x22 0x75800000 0x0 0x10000 0x22 0x75810000 0x0 0x10000 0x22 0x75820000 0x0 0x10000 0x22 0x75830000 0x0 0x10000 0x22 0x75c00000 0x0 0x10000 0x22 0x75c10000 0x0 0x10000 0x22 0x75c20000 0x0 0x10000 0x22 0x75c30000 0x0 0x10000 0x22 0x76000000 0x0 0x10000 0x22 0x76010000 0x0 0x10000 0x22 0x76020000 0x0 0x10000 0x22 0x76030000 0x0 0x10000 0x22 0x76400000 0x0 0x10000 0x22 0x76410000 0x0 0x10000 0x22 0x76420000 0x0 0x10000 0x22 0x76430000 0x0 0x10000 0x22 0x76800000 0x0 0x10000 0x22 0x76810000 0x0 0x10000 0x22 0x76820000 0x0 0x10000 0x22 0x76830000 0x0 0x10000 0x22 0x76c00000 0x0 0x10000 0x22 0x76c10000 0x0 0x10000 0x22 0x76c20000 0x0 0x10000 0x22 0x76c30000 0x0 0x10000 0x22 0x77000000 0x0 0x10000 0x22 0x77010000 0x0 0x10000 0x22 0x77020000 0x0 0x10000 0x22 0x77030000 0x0 0x10000 0x22 0x77040000 0x0 0x10000 0x22 0x77050000 0x0 0x10000 0x22 0x77400000 0x0 0x10000 0x22 0x77410000 0x0 0x10000 0x22 0x77420000 0x0 0x10000 0x22 0x77430000 0x0 0x10000 0x22 0x77440000 0x0 0x10000 0x22 0x77450000 0x0 0x10000 0x22 0x77800000 0x0 0x10000 0x22 0x77810000 0x0 0x10000 0x22 0x77820000 0x0 0x10000 0x22 0x77830000 0x0 0x10000 0x22 0x77840000 0x0 0x10000 0x22 0x77850000 0x0 0x10000 0x22 0x77c00000 0x0 0x10000 0x22 0x77c10000 0x0 0x10000 0x22 0x77c20000 0x0 0x10000 0x22 0x77c30000 0x0 0x10000 0x22 0x77c40000 0x0 0x10000 0x22 0x77c50000 0x0 0x10000 0x2 0x73000000 0x0 0x10000 0x2 0x73010000 0x0 0x10000 0x2 0x73020000 0x0 0x10000 0x2 0x73030000 0x0 0x10000 0x2 0x73040000 0x0 0x10000 0x2 0x73050000 0x0 0x10000 0x2 0x73060000 0x0 0x10000 0x2 0x73400000 0x0 0x10000 0x2 0x73410000 0x0 0x10000 0x2 0x73420000 0x0 0x10000 0x2 0x73430000 0x0 0x10000 0x2 0x73440000 0x0 0x10000 0x2 0x73450000 0x0 0x10000 0x2 0x73460000 0x0 0x10000 0x2 0x73800000 0x0 0x10000 0x2 0x73810000 0x0 0x10000 0x2 0x73820000 0x0 0x10000 0x2 0x73830000 0x0 0x10000 0x2 0x73840000 0x0 0x10000 0x2 0x73850000 0x0 0x10000 0x2 0x73860000 0x0 0x10000 0x2 0x73c00000 0x0 0x10000 0x2 0x73c10000 0x0 0x10000 0x2 0x73c20000 0x0 0x10000 0x2 0x73c30000 0x0 0x10000 0x2 0x73c40000 0x0 0x10000 0x2 0x73c50000 0x0 0x10000 0x2 0x73c60000 0x0 0x10000 0x22 0x75100000 0x0 0x10000 0x22 0x75110000 0x0 0x10000 0x22 0x75120000 0x0 0x10000 0x22 0x75130000 0x0 0x10000 0x22 0x75500000 0x0 0x10000 0x22 0x75510000 0x0 0x10000 0x22 0x75520000 0x0 0x10000 0x22 0x75530000 0x0 0x10000 0x22 0x75900000 0x0 0x10000 0x22 0x75910000 0x0 0x10000 0x22 0x75920000 0x0 0x10000 0x22 0x75930000 0x0 0x10000 0x22 0x75d00000 0x0 0x10000 0x22 0x75d10000 0x0 0x10000 0x22 0x75d20000 0x0 0x10000 0x22 0x75d30000 0x0 0x10000 0x22 0x76100000 0x0 0x10000 0x22 0x76110000 0x0 0x10000 0x22 0x76120000 0x0 0x10000 0x22 0x76130000 0x0 0x10000 0x22 0x76500000 0x0 0x10000 0x22 0x76510000 0x0 0x10000 0x22 0x76520000 0x0 0x10000 0x22 0x76530000 0x0 0x10000 0x22 0x76900000 0x0 0x10000 0x22 0x76910000 0x0 0x10000 0x22 0x76920000 0x0 0x10000 0x22 0x76930000 0x0 0x10000 0x22 0x76d00000 0x0 0x10000 0x22 0x76d10000 0x0 0x10000 0x22 0x76d20000 0x0 0x10000 0x22 0x76d30000 0x0 0x10000 0x2 0x58000000 0x0 0x10000 0x2 0x58010000 0x0 0x10000 0x2 0x58020000 0x0 0x10000 0x2 0x58030000 0x0 0x10000 0x2 0x58040000 0x0 0x10000 0x2 0x58400000 0x0 0x10000 0x2 0x58410000 0x0 0x10000 0x2 0x58420000 0x0 0x10000 0x2 0x58430000 0x0 0x10000 0x2 0x58440000 0x0 0x10000 0x2 0x58800000 0x0 0x10000 0x2 0x58810000 0x0 0x10000 0x2 0x58820000 0x0 0x10000 0x2 0x58830000 0x0 0x10000 0x2 0x58840000 0x0 0x10000 0x2 0x58850000 0x0 0x10000 0x5 0xd00000 0x0 0x40000 0x2 0x80078000 0x0 0x4000 0x2 0x806e4000 0x0 0x4000 0x2 0x806e8000 0x0 0x4000 0x2 0x74004000 0x0 0x4000 0x22 0x7b004000 0x0 0x4000 0x2 0x88000400 0x0 0x400 0x23 0x88000400 0x0 0x400 0x2 0x8c801000 0x0 0x400 0x2 0x84398000 0x0 0x4000 0x2 0x8620c020 0x0 0x18 0x2 0x8620c008 0x0 0x18 0x5 0x8000200 0x0 0x24 0x5 0x84000200 0x0 0x24 0x4 0x1b000200 0x0 0x24 0x2 0xa0000200 0x0 0x24 0x2 0xa8000200 0x0 0x24 0x3 0x80000200 0x0 0x24 0x3 0x88000200 0x0 0x24 0x3 0x94000200 0x0 0x24 0x23 0x8000200 0x0 0x24 0x23 0x1000200 0x0 0x24 0x5 0x80000200 0x0 0x24 0x22 0x80000200 0x0 0x24 0x4 0x16000200 0x0 0x24 0x4 0x86000200 0x0 0x40 0x23 0xa000200 0x0 0x24 0x2 0x97000200 0x0 0x24 0x23 0x8c000200 0x0 0x24 0x4 0x8c000200 0x0 0x24 0x5 0x4000200 0x0 0x24>; - interrupts = <0x0 0x0 0xa95 0x4 0x0 0x0 0xa96 0x4 0x0 0x0 0xa97 0x4 0x0 0x0 0xa98 0x4 0x0 0x0 0xa99 0x4 0x0 0x0 0xa9a 0x4 0x0 0x0 0xa9b 0x4 0x0 0x0 0xa9c 0x4 0x0 0x0 0x189 0x4 0x0 0x0 0xc3 0x4 0x0 0x0 0xc4 0x4 0x0 0x0 0xc5 0x4 0x0 0x0 0xc6 0x4 0x0 0x0 0xc7 0x4 0x0 0x0 0xc8 0x4 0x0 0x0 0xc9 0x4 0x0 0x0 0xca 0x4 0x0 0x0 0xcb 0x4 0x0 0x0 0xcc 0x4 0x0 0x0 0xa0c 0x4 0x0 0x0 0xa0d 0x4 0x0 0x0 0xa0e 0x4 0x0 0x0 0xa0f 0x4 0x0 0x0 0x99 0x4 0x0 0x0 0x9a 0x4 0x0 0x0 0x9b 0x4 0x0 0x0 0x9c 0x4 0x0 0x0 0x9d 0x4 0x0 0x0 0x9e 0x4 0x0 0x0 0xa14 0x4 0x0 0x0 0xa15 0x4 0x0 0x0 0xa16 0x4 0x0 0x0 0xa17 0x4 0x0 0x0 0xa1c 0x4 0x0 0x0 0xa1d 0x4 0x0 0x0 0xa1e 0x4 0x0 0x0 0xa1f 0x4 0x0 0x0 0xbd 0x4 0x0 0x0 0xbe 0x4 0x0 0x0 0xbf 0x4 0x0 0x0 0xc0 0x4 0x0 0x0 0xa2c 0x4 0x0 0x0 0xa2d 0x4 0x0 0x0 0xa2e 0x4 0x0 0x0 0xa2f 0x4 0x0 0x0 0xa3e 0x4 0x0 0x0 0xa3f 0x4 0x0 0x0 0xa40 0x4 0x0 0x0 0xa41 0x4 0x0 0x0 0xa42 0x4 0x0 0x0 0xa43 0x4 0x0 0x0 0xa44 0x4 0x0 0x0 0xa45 0x4 0x0 0x0 0xa46 0x4 0x0 0x0 0xa47 0x4 0x0 0x0 0xa48 0x4 0x0 0x0 0xa49 0x4 0x0 0x0 0xa4a 0x4 0x0 0x0 0xa4b 0x4 0x0 0x0 0xa4c 0x4 0x0 0x0 0xa4d 0x4 0x0 0x0 0xa36 0x4 0x0 0x0 0xa37 0x4 0x0 0x0 0xa38 0x4 0x0 0x0 0xa39 0x4 0x0 0x0 0xa3a 0x4 0x0 0x0 0xa3b 0x4 0x0 0x0 0xa3c 0x4 0x0 0x0 0xa3d 0x4 0x0 0x0 0x9f 0x4 0x0 0x0 0xa0 0x4 0x0 0x0 0xa1 0x4 0x0 0x0 0x21e 0x4 0x0 0x0 0x21d 0x4 0x0 0x0 0x222 0x4 0x0 0x0 0x223 0x4 0x0 0x0 0x224 0x4 0x0 0x0 0x225 0x4 0x0 0x0 0x144 0x4 0x0 0x0 0xc1 0x4 0x0 0x0 0xc2 0x4 0x0 0x0 0x30d 0x4 0x0 0x0 0x30e 0x4 0x0 0x0 0x387 0x4 0x0 0x0 0x16f 0x4 0x0 0x0 0x1b9 0x4 0x0 0x0 0x3bc 0x4 0x0 0x0 0x3c2 0x4 0x0 0x0 0x548 0x4 0x0 0x0 0x573 0x4 0x0 0x0 0x593 0x4 0x0 0x0 0x5b3 0x4 0x0 0x0 0x5d3 0x4 0x0 0x0 0x928 0x4 0x0 0x0 0x97c 0x4 0x0 0x0 0x997 0x4 0x0 0x0 0x214 0x4 0x0 0x0 0x54d 0x4 0x0 0x0 0x613 0x4 0x0 0x0 0x620 0x4 0x0 0x0 0x6df 0x4 0x0 0x0 0x316 0x4 0x0 0x0 0x317 0x4 0x0 0x0 0x6af 0x4 0x0 0x0 0x56d 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - crypto@50500c000 { - compatible = "apple,t6050-aes", "apple,aes"; - reg = <0x5 0x500c000 0x0 0x4000 0x2 0x88340000 0x0 0x8000 0x2 0x88090000 0x0 0x4000>; - interrupts = <0x0 0x0 0x55e 0x4>; - iommus = <&{/soc/iommu@505060000} 0x1>; - power-domains = <&{/soc/power-management@280900000/power-controller@318}>; - status = "disabled"; - }; -}; - -&{/soc} { - phy-coproc@395d08000 { - compatible = "apple,t6050-phy-coproc", "apple,phy-coproc"; - reg = <0x3 0x95d08000 0x0 0x4000 0x3 0x95d00000 0x0 0x4000>; - interrupts = <0x0 0x0 0x92b 0x4 0x0 0x0 0x92a 0x4 0x0 0x0 0x92d 0x4 0x0 0x0 0x92c 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - mailbox@4d067c000 { - compatible = "apple,t6050-secure-mailbox", "apple,secure-mailbox"; - reg = <0x4 0xd067c000 0x0 0x4000>; - interrupts = <0x0 0x0 0x249 0x4 0x0 0x0 0x246 0x4>; - iommus = <&{/soc/iommu@290fc0000} 0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - aop@291600000 { - compatible = "apple,t6050-aop2", "apple,aop2"; - reg = <0x2 0x91600000 0x0 0x88000 0x2 0x91650000 0x0 0x4000 0x2 0x9162c000 0x0 0x3c008>; - interrupts = <0x0 0x0 0x24b 0x4 0x0 0x0 0x24a 0x4 0x0 0x0 0x24d 0x4 0x0 0x0 0x24c 0x4>; - iommus = <&{/soc/iommu@290fc0000} 0x10>; - status = "disabled"; - }; -}; - -&{/soc} { - event-log@280040000 { - compatible = "apple,t6050-event-log", "apple,soc-event-log"; - reg = <0x2 0x80040000 0x0 0x4000 0x2 0x8004e000 0x0 0x4000 0x23 0x8004c800 0x0 0x4000 0x23 0x80040000 0x0 0x4000 0x2 0x80200000 0x0 0x4000 0x2 0x80000000 0x0 0x14000 0x2 0x8003c000 0x0 0x4000 0x2 0x80020000 0x0 0x10000 0x2 0x806e0000 0x0 0x4000 0x2 0x806d0000 0x0 0x4000 0x2 0x80668000 0x0 0x4000 0x2 0x80680000 0x0 0x1c000 0x2 0x807d0000 0x0 0x4000 0x2 0x806f0000 0x0 0x4000 0x2 0x80928000 0x0 0x4000 0x2 0x80938000 0x0 0x8000 0x2 0x86700000 0x0 0x114000 0x2 0x84380000 0x0 0x20000 0x2 0x85040000 0x0 0x1c000 0x2 0x84360000 0x0 0x4000 0x2 0x84370000 0x0 0x4000 0x23 0x85040000 0x0 0x1c000 0x23 0x84360000 0x0 0x4000 0x23 0x84370000 0x0 0x4000 0x5 0x9878000 0x0 0x4000 0x5 0x9868000 0x0 0x8000 0x23 0x80300000 0x0 0x8000 0x23 0x80308000 0x0 0x8000 0x2 0x80300000 0x0 0x8000 0x23 0x80034000 0x0 0x4000 0x23 0x8003c000 0x0 0x4000 0x23 0x80020000 0x0 0x10000 0x23 0x80038000 0x0 0x4000 0x23 0x80640000 0x0 0x10000 0x23 0x806d0000 0x0 0x4000 0x23 0x80668000 0x0 0x4000 0x23 0x80680000 0x0 0x1c000 0x23 0x806f0000 0x0 0x4000 0x2 0x84000000 0x0 0x4000 0x2 0x84004600 0x0 0x4000 0x2 0x84004000 0x0 0x4000 0x2 0x84004780 0x0 0x4000 0x2 0x84007400 0x0 0x4000 0x2 0x84004e00 0x0 0x4000 0x2 0x84004800 0x0 0x4000 0x2 0x84004f80 0x0 0x4000 0x2 0x84007600 0x0 0x4000 0x2 0x84005600 0x0 0x4000 0x2 0x84005000 0x0 0x4000 0x2 0x84005780 0x0 0x4000 0x2 0x84007800 0x0 0x4000 0x2 0x84005e00 0x0 0x4000 0x2 0x84005800 0x0 0x4000 0x2 0x84005f80 0x0 0x4000 0x2 0x84007a00 0x0 0x4000 0x2 0x84003e00 0x0 0x4000 0x2 0x84003800 0x0 0x4000 0x2 0x84003f80 0x0 0x4000 0x2 0x84007200 0x0 0x4000 0x2 0x84006e00 0x0 0x4000 0x2 0x84006800 0x0 0x4000 0x2 0x84006f80 0x0 0x4000 0x2 0x84007e00 0x0 0x4000 0x2 0x84006600 0x0 0x4000 0x2 0x84006000 0x0 0x4000 0x2 0x84006780 0x0 0x4000 0x2 0x84007c00 0x0 0x4000 0x2 0x84002e00 0x0 0x4000 0x2 0x84002800 0x0 0x4000 0x2 0x84002f80 0x0 0x4000 0x2 0x84007000 0x0 0x4000 0x2 0x84003600 0x0 0x4000 0x2 0x84003000 0x0 0x4000 0x2 0x84003780 0x0 0x4000 0x2 0x84000400 0x0 0x4000 0x2 0x84000400 0x0 0x4000 0x2 0x84000400 0x0 0x4000 0x2 0x84000400 0x0 0x4000 0x2 0x84000400 0x0 0x4000 0x2 0x84000400 0x0 0x4000 0x2 0x84000400 0x0 0x4000 0x2 0x84000400 0x0 0x4000 0x23 0x84000000 0x0 0x4000 0x23 0x84004e00 0x0 0x4000 0x23 0x84004800 0x0 0x4000 0x23 0x84004f80 0x0 0x4000 0x23 0x84007000 0x0 0x4000 0x23 0x84002e00 0x0 0x4000 0x23 0x84002800 0x0 0x4000 0x23 0x84002f80 0x0 0x4000 0x23 0x84006800 0x0 0x4000 0x23 0x84003600 0x0 0x4000 0x23 0x84003000 0x0 0x4000 0x23 0x84003780 0x0 0x4000 0x23 0x84006a00 0x0 0x4000 0x23 0x84005600 0x0 0x4000 0x23 0x84005000 0x0 0x4000 0x23 0x84005780 0x0 0x4000 0x23 0x84007200 0x0 0x4000 0x23 0x84006600 0x0 0x4000 0x23 0x84006000 0x0 0x4000 0x23 0x84006780 0x0 0x4000 0x23 0x84007400 0x0 0x4000 0x23 0x84005e00 0x0 0x4000 0x23 0x84005800 0x0 0x4000 0x23 0x84005f80 0x0 0x4000 0x23 0x84003e00 0x0 0x4000 0x23 0x84003800 0x0 0x4000 0x23 0x84003f80 0x0 0x4000 0x23 0x84006c00 0x0 0x4000 0x23 0x84004600 0x0 0x4000 0x23 0x84004000 0x0 0x4000 0x23 0x84004780 0x0 0x4000 0x23 0x84006e00 0x0 0x4000 0x23 0x84000400 0x0 0x4000 0x23 0x84000400 0x0 0x4000 0x23 0x84000400 0x0 0x4000 0x23 0x84000400 0x0 0x4000 0x23 0x84000400 0x0 0x4000 0x23 0x84000400 0x0 0x4000 0x23 0x84000400 0x0 0x4000 0x23 0x84000400 0x0 0x4000 0x2 0x88f00000 0x0 0x18000 0x2 0x88200000 0x0 0x4000 0x2 0x88204000 0x0 0x4000 0x2 0x8827c000 0x0 0x4000 0x2 0x8832c000 0x0 0x4000 0x2 0x88330000 0x0 0x10000 0x2 0x88360000 0x0 0x4000 0x2 0x88340000 0x0 0x8000 0x2 0x8836c000 0x0 0x4000 0x2 0x88000000 0x0 0x24000 0x23 0x88200000 0x0 0x4000 0x23 0x88204000 0x0 0x4000 0x23 0x8827c000 0x0 0x4000 0x23 0x8832c000 0x0 0x4000 0x23 0x88330000 0x0 0x10000 0x23 0x88360000 0x0 0x4000 0x23 0x88340000 0x0 0x8000 0x23 0x8836c000 0x0 0x4000 0x23 0x88000000 0x0 0x8000>; - interrupts = <0x0 0x0 0x1e 0x4 0x0 0x0 0x1f 0x4 0x0 0x0 0x22 0x4 0x0 0x0 0x23 0x4 0x0 0x0 0x24 0x4 0x0 0x0 0x37 0x4 0x0 0x0 0x38 0x4 0x0 0x0 0x13f 0x4 0x0 0x0 0x140 0x4 0x0 0x0 0x141 0x4 0x0 0x0 0x147 0x4 0x0 0x0 0x148 0x4 0x0 0x0 0x170 0x4 0x0 0x0 0x17e 0x4 0x0 0x0 0x1db 0x4 0x0 0x0 0x1e0 0x4 0x0 0x0 0x1e1 0x4 0x0 0x0 0x1e4 0x4 0x0 0x0 0x1e5 0x4 0x0 0x0 0x30f 0x4 0x0 0x0 0x310 0x4 0x0 0x0 0x3af 0x4 0x0 0x0 0x3b7 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dma-controller@505e00000 { - compatible = "apple,t6050-sio", "apple,sio"; - reg = <0x5 0x5e00000 0x0 0x88000 0x5 0x5850000 0x0 0x4000>; - interrupts = <0x0 0x0 0x570 0x4 0x0 0x0 0x56f 0x4 0x0 0x0 0x572 0x4 0x0 0x0 0x571 0x4>; - iommus = <&{/soc/iommu@505060000} 0x0>; - power-domains = <&{/soc/power-management@280900000/power-controller@2a0}>; - clocks = <&{/soc/clock-controller@280600000} 0x167 &{/soc/clock-controller@280600000} 0x166>; - #dma-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@505060000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x5 0x5060000 0x0 0x20000>; - interrupts = <0x0 0x0 0x56b 0x4>; - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - pmp@284e00000 { - compatible = "apple,t6050-pmp-v2", "apple,t6000-pmp-v2"; - reg = <0x2 0x84500000 0x0 0x100000 0x2 0x84e00000 0x0 0x4000>; - reg-names = "pmp", "asc"; - mboxes = <&{/soc/mailbox@284e08000}>; - mbox-names = "mbox"; - iommus = <&{/soc/iommu@2841a0000} 0x0>; - power-domains = <&{/soc/power-management@280600000/power-controller@128} &{/soc/power-management@280600000/power-controller@130}>; - status = "disabled"; - }; -}; - -&{/soc} { - mailbox@284e08000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x2 0x84e08000 0x0 0x4000>; - interrupts = <0x0 0x0 0x18c 0x4 0x0 0x0 0x18d 0x4 0x0 0x0 0x18e 0x4 0x0 0x0 0x18f 0x4>; - interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; - #mbox-cells = <0x0>; - power-domains = <&{/soc/power-management@280600000/power-controller@128}>; - status = "disabled"; - }; -}; - -&{/soc} { - pmp-report@284240000 { - compatible = "apple,t6050-pmp-v2-report"; - reg = <0x2 0x84240000 0x0 0x20000>; - power-domains = <&{/soc/power-management@280600000/power-controller@130}>; - #address-cells = <0x1>; - #size-cells = <0x0>; - status = "disabled"; - }; -}; - -&{/soc/pmp-report@284240000} { - report@c { - compatible = "apple,t6050-pmp-v2-report-entry", "apple,t6000-pmp-v2-report-entry"; - reg = <0xc>; - label = "pmp-macc0"; - #power-domain-cells = <0x0>; - apple,always-on; - }; -}; - -&{/soc/pmp-report@284240000} { - report@d { - compatible = "apple,t6050-pmp-v2-report-entry", "apple,t6000-pmp-v2-report-entry"; - reg = <0xd>; - label = "pmp-macc1"; - #power-domain-cells = <0x0>; - apple,always-on; - }; -}; - -&{/soc/pmp-report@284240000} { - report@e { - compatible = "apple,t6050-pmp-v2-report-entry", "apple,t6000-pmp-v2-report-entry"; - reg = <0xe>; - label = "pmp-pacc"; - #power-domain-cells = <0x0>; - apple,always-on; - }; -}; - -&{/soc/pmp-report@284240000} { - report@f { - compatible = "apple,t6050-pmp-v2-report-entry", "apple,t6000-pmp-v2-report-entry"; - reg = <0xf>; - label = "pmp-gfx"; - #power-domain-cells = <0x0>; - power-domains = <&{/soc@2300000000/power-management@2300e80000/power-controller@110}>; - }; -}; - -&{/soc/pmp-report@284240000} { - report@12 { - compatible = "apple,t6050-pmp-v2-report-entry", "apple,t6000-pmp-v2-report-entry"; - reg = <0x12>; - label = "pmp-dispint"; - #power-domain-cells = <0x0>; - apple,always-on; - }; -}; - -&{/soc/pmp-report@284240000} { - report@24 { - compatible = "apple,t6050-pmp-v2-report-entry", "apple,t6000-pmp-v2-report-entry"; - reg = <0x24>; - label = "pmp-ans"; - #power-domain-cells = <0x0>; - apple,always-on; - }; -}; - -&{/soc} { - iommu@2841a0000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x2 0x841a0000 0x0 0xc000 0x2 0x841b0000 0x0 0x4000>; - reg-names = "dart", "dapf"; - interrupts = <0x0 0x0 0x173 0x4>; - #iommu-cells = <0x1>; - apple,dma-range = <0x100 0x0 0x10 0x0>; - power-domains = <&{/soc/power-management@280600000/power-controller@128}>; - status = "disabled"; - }; -}; - -&{/soc} { - aon-ptd@28cdc0000 { - compatible = "apple,t6050-aon-ptd", "apple,aon-ptd"; - reg = <0x2 0x8cdc0000 0x0 0x4000 0x2 0x8cdd0000 0x0 0x4000 0x2 0x8cdd8000 0x0 0x4000 0x2 0x8cde0000 0x0 0x4000>; - interrupts = <0x0 0x0 0x388 0x4 0x0 0x0 0x389 0x4 0x0 0x0 0x38a 0x4 0x0 0x0 0x38b 0x4 0x0 0x0 0x38c 0x4 0x0 0x0 0x38d 0x4 0x0 0x0 0x38e 0x4 0x0 0x0 0x38f 0x4 0x0 0x0 0x390 0x4 0x0 0x0 0x391 0x4 0x0 0x0 0x392 0x4 0x0 0x0 0x393 0x4 0x0 0x0 0x394 0x4 0x0 0x0 0x395 0x4 0x0 0x0 0x396 0x4 0x0 0x0 0x397 0x4 0x0 0x0 0x398 0x4 0x0 0x0 0x399 0x4 0x0 0x0 0x39a 0x4 0x0 0x0 0x39b 0x4 0x0 0x0 0x39c 0x4 0x0 0x0 0x39d 0x4 0x0 0x0 0x39e 0x4 0x0 0x0 0x39f 0x4 0x0 0x0 0x3a0 0x4 0x0 0x0 0x3a1 0x4 0x0 0x0 0x3a2 0x4 0x0 0x0 0x3a3 0x4 0x0 0x0 0x3a4 0x4 0x0 0x0 0x3a5 0x4 0x0 0x0 0x3a6 0x4 0x0 0x0 0x3a7 0x4>; - interrupt-controller; - #interrupt-cells = <0x1>; - #address-cells = <0x0>; - status = "disabled"; - }; -}; - -&{/soc} { - rsm@288825000 { - compatible = "apple,t6050-rsm", "apple,rsm"; - reg = <0x2 0x88825000 0x0 0x4000 0x2 0x888c0000 0x0 0x4>; - interrupts = <0x0 0x0 0x1ef 0x4>; - iommus = <&{/soc/iommu@2889a0000} 0x0>; - power-domains = <&{/soc/power-management@288300000/power-controller@58}>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@2889a0000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x2 0x889a0000 0x0 0xc000>; - interrupts = <0x0 0x0 0x1f2 0x4>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - serial@505200000 { - compatible = "apple,t6050-uart", "apple,s5l-uart"; - reg = <0x5 0x5200000 0x0 0x4000>; - interrupts = <0x0 0x0 0x54f 0x4>; - power-domains = <&{/soc/power-management@280900000/power-controller@360}>; - clocks = <&{/soc/clock-controller@280600000} 0x1c9 &{/soc/clock-controller@280600000} 0x4>; - clock-names = "uart", "clk_uart_baud0"; - status = "disabled"; - }; -}; - -&{/soc} { - spmi@28a094000 { - compatible = "apple,t6050-spmi", "apple,t8142-spmi"; - reg = <0x2 0x8a094000 0x0 0x4000 0x2 0x8a084000 0x0 0x4000 0x2 0x8a080000 0x0 0x4000>; - interrupts = <0x0 0x0 0x2e0 0x4>; - #address-cells = <0x2>; - #size-cells = <0x0>; - status = "disabled"; - }; -}; - -&{/soc} { - spmi@28a0d4000 { - compatible = "apple,t6050-spmi", "apple,t8142-spmi"; - reg = <0x2 0x8a0d4000 0x0 0x4000 0x2 0x8a0c4000 0x0 0x4000 0x2 0x8a0c0000 0x0 0x4000>; - interrupts = <0x0 0x0 0x2e5 0x4>; - #address-cells = <0x2>; - #size-cells = <0x0>; - status = "disabled"; - }; -}; - -&{/soc} { - spmi@290914000 { - compatible = "apple,t6050-spmi", "apple,t8142-spmi"; - reg = <0x2 0x90914000 0x0 0x4000 0x2 0x90904000 0x0 0x4000 0x2 0x90900000 0x0 0x4000>; - interrupts = <0x0 0x0 0x26c 0x4>; - #address-cells = <0x2>; - #size-cells = <0x0>; - status = "disabled"; - }; -}; - -&{/soc} { - scaler@2285000000 { - compatible = "apple,t6050-scaler", "apple,scaler-v23"; - reg = <0x22 0x85000000 0x0 0x14000 0x22 0x85210000 0x0 0x4000 0x22 0x85204000 0x0 0x4000 0x22 0x84000000 0x0 0x8000 0x22 0x852c0000 0x0 0x40000 0x22 0x85340000 0x0 0x14c000 0x22 0x852a0000 0x0 0x4000 0x22 0x85208000 0x0 0x4000 0x22 0x85210000 0x0 0x4000 0x22 0x85220000 0x0 0x4000>; - interrupts = <0x0 0x0 0x9a4 0x4 0x0 0x0 0x9a6 0x4 0x0 0x0 0x9a7 0x4 0x0 0x0 0x9a8 0x4 0x0 0x0 0x9ac 0x4 0x0 0x0 0x9ad 0x4 0x0 0x0 0x9ae 0x4 0x0 0x0 0x9af 0x4 0x0 0x0 0x9b0 0x4 0x0 0x0 0x9b1 0x4 0x0 0x0 0x9b2 0x4 0x0 0x0 0x9b3 0x4 0x0 0x0 0x9b4 0x4 0x0 0x0 0x9b5 0x4 0x0 0x0 0x9b6 0x4 0x0 0x0 0x9b7 0x4 0x0 0x0 0x9b8 0x4 0x0 0x0 0x9b9 0x4 0x0 0x0 0x9ba 0x4 0x0 0x0 0x9bb 0x4>; - iommus = <&{/soc/iommu@2285260000} 0x0 &{/soc/iommu@2285260000} 0x1>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1c8} &{/soc/power-management@2380600000/power-controller@200}>; - clocks = <&{/soc/clock-controller@280600000} 0x1f0>; - resets = <&{/soc/power-management@2380600000/power-controller@1c8}>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@2285260000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x22 0x85260000 0x0 0x20000 0x2 0x74000000 0x0 0x4000>; - interrupts = <0x0 0x0 0x9a5 0x4>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1c8}>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - scaler@23a1000000 { - compatible = "apple,t6050-scaler", "apple,scaler-v23"; - reg = <0x23 0xa1000000 0x0 0x14000 0x23 0xa1210000 0x0 0x4000 0x23 0xa1204000 0x0 0x4000 0x23 0xa0000000 0x0 0x8000 0x23 0xa12c0000 0x0 0x40000 0x23 0xa1340000 0x0 0x14c000 0x23 0xa12a0000 0x0 0x4000 0x23 0xa1208000 0x0 0x4000 0x23 0xa1210000 0x0 0x4000 0x23 0xa1220000 0x0 0x4000>; - interrupts = <0x0 0x0 0x9bc 0x4 0x0 0x0 0x9be 0x4 0x0 0x0 0x9bf 0x4 0x0 0x0 0x9c0 0x4 0x0 0x0 0x9c4 0x4 0x0 0x0 0x9c5 0x4 0x0 0x0 0x9c6 0x4 0x0 0x0 0x9c7 0x4 0x0 0x0 0x9c8 0x4 0x0 0x0 0x9c9 0x4 0x0 0x0 0x9ca 0x4 0x0 0x0 0x9cb 0x4 0x0 0x0 0x9cc 0x4 0x0 0x0 0x9cd 0x4 0x0 0x0 0x9ce 0x4 0x0 0x0 0x9cf 0x4 0x0 0x0 0x9d0 0x4 0x0 0x0 0x9d1 0x4 0x0 0x0 0x9d2 0x4 0x0 0x0 0x9d3 0x4>; - iommus = <&{/soc/iommu@23a1260000} 0x0 &{/soc/iommu@23a1260000} 0x1>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1f8} &{/soc/power-management@2380600000/power-controller@208}>; - clocks = <&{/soc/clock-controller@280600000} 0x1f1>; - resets = <&{/soc/power-management@2380600000/power-controller@1f8}>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@23a1260000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x23 0xa1260000 0x0 0x20000 0x2 0x74000000 0x0 0x4000>; - interrupts = <0x0 0x0 0x9bd 0x4>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1f8}>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - video-encoder@2283100000 { - compatible = "apple,t6050-ave", "apple,ave"; - reg = <0x22 0x83100000 0x0 0x45c000 0x22 0x83800000 0x0 0x800000 0x22 0x83050000 0x0 0x4000 0x23 0x806001c0 0x0 0x7e64 0x22 0x82000000 0x0 0x8000>; - interrupts = <0x0 0x0 0x983 0x4 0x0 0x0 0xae6 0x4 0x0 0x0 0xae5 0x4 0x0 0x0 0xae8 0x4 0x0 0x0 0xae7 0x4>; - iommus = <&{/soc/iommu@22830a0000} 0x0 &{/soc/iommu@2283080000} 0x0>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1c0} &{/soc/power-management@2380600000/power-controller@8008} &{/soc/power-management@2380600000/power-controller@8010} &{/soc/power-management@2380600000/power-controller@8018} &{/soc/power-management@2380600000/power-controller@8020} &{/soc/power-management@2380600000/power-controller@8000}>; - clocks = <&{/soc/clock-controller@280600000} 0x1f7>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@22830a0000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x22 0x830a0000 0x0 0xc000 0x22 0x830b0000 0x0 0x4000>; - interrupts = <0x0 0x0 0x980 0x4>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1c0}>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@2283080000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x22 0x83080000 0x0 0xc000 0x22 0x83094000 0x0 0x4000>; - interrupts = <0x0 0x0 0x980 0x4>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1c0}>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - video-encoder@23a3100000 { - compatible = "apple,t6050-ave", "apple,ave"; - reg = <0x23 0xa3100000 0x0 0x45c000 0x23 0xa3800000 0x0 0x800000 0x23 0xa3050000 0x0 0x4000 0x23 0x806001f0 0x0 0x7e5c 0x23 0xa2000000 0x0 0x8000>; - interrupts = <0x0 0x0 0x98b 0x4 0x0 0x0 0xaea 0x4 0x0 0x0 0xae9 0x4 0x0 0x0 0xaec 0x4 0x0 0x0 0xaeb 0x4>; - iommus = <&{/soc/iommu@23a30a0000} 0x0 &{/soc/iommu@23a3080000} 0x0>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1f0} &{/soc/power-management@2380600000/power-controller@8030} &{/soc/power-management@2380600000/power-controller@8038} &{/soc/power-management@2380600000/power-controller@8040} &{/soc/power-management@2380600000/power-controller@8048} &{/soc/power-management@2380600000/power-controller@8028}>; - clocks = <&{/soc/clock-controller@280600000} 0x1f8>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@23a30a0000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x23 0xa30a0000 0x0 0xc000 0x23 0xa30b0000 0x0 0x4000>; - interrupts = <0x0 0x0 0x988 0x4>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1f0}>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@23a3080000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x23 0xa3080000 0x0 0xc000 0x23 0xa3094000 0x0 0x4000>; - interrupts = <0x0 0x0 0x988 0x4>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1f0}>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - prores@48d000000 { - compatible = "apple,t6050-prores", "apple,prores"; - reg = <0x4 0x8d000000 0x0 0x4000 0x4 0x8c000000 0x0 0x1000000 0x4 0x8d0c0000 0x0 0x4000 0x4 0x8d070000 0x0 0x4000 0x4 0x8d071000 0x0 0x4000>; - interrupts = <0x0 0x0 0x6b1 0x4 0x0 0x0 0x6d6 0x4>; - iommus = <&{/soc/iommu@48d020000} 0x1>; - power-domains = <&{/soc/power-management@280900000/power-controller@190}>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@48d020000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x4 0x8d020000 0x0 0xc000>; - interrupts = <0x0 0x0 0x6b0 0x4>; - power-domains = <&{/soc/power-management@280900000/power-controller@190}>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@230b020000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x23 0xb020000 0x0 0xc000 0x2 0x74000000 0x0 0x4000>; - interrupts = <0x0 0x0 0x6e0 0x4>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1e0}>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - jpeg@2281000000 { - compatible = "apple,t6050-jpeg", "apple,jpeg"; - reg = <0x22 0x81000000 0x0 0x4000>; - interrupts = <0x0 0x0 0x54b 0x4>; - iommus = <&{/soc/iommu@2281020000} 0x0>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1d0}>; - clocks = <&{/soc/clock-controller@280600000} 0x1e6 &{/soc/clock-controller@280600000} 0x1e7>; - status = "disabled"; - }; -}; - -&{/soc} { - jpeg@2281060000 { - compatible = "apple,t6050-jpeg", "apple,jpeg"; - reg = <0x22 0x81060000 0x0 0x4000>; - interrupts = <0x0 0x0 0x54e 0x4>; - iommus = <&{/soc/iommu@2281020000} 0x1>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1d0}>; - clocks = <&{/soc/clock-controller@280600000} 0x1e6 &{/soc/clock-controller@280600000} 0x1e7>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@2281020000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x22 0x81020000 0x0 0xc000 0x2 0x74000000 0x0 0x4000>; - interrupts = <0x0 0x0 0x54c 0x4>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1d0}>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - neural-processor@508000000 { - compatible = "apple,t6050-ane"; - reg = <0x5 0x8000000 0x0 0x2000000 0x2 0x80900000 0x0 0x18000 0x2 0x80920000 0x0 0x4000 0x2 0x84240000 0x0 0x40000 0x2 0x12000000 0x0 0xff4000 0x5 0x84000000 0x0 0x2000000 0x2 0x88374000 0x0 0x4000>; - reg-names = "engine", "pmgr", "aux-0", "aux-1", "aux-2", "aux-3", "aux-4"; - interrupts = <0x0 0x0 0x3ba 0x4 0x0 0x0 0x3c7 0x4>; - iommus = <&{/soc/iommu@509800000} 0x0 &{/soc/iommu@509820000} 0x0 &{/soc/iommu@509840000} 0x0>; - power-domains = <&{/soc/power-management@280900000/power-controller@3c8}>; - clocks = <&{/soc/clock-controller@280600000} 0x14f &{/soc/clock-controller@280600000} 0x14e &{/soc/clock-controller@280600000} 0x17d>; - status = "disabled"; - }; -}; - -&{/soc} { - video-decoder@2308000000 { - compatible = "apple,t6050-avd", "apple,avd"; - reg = <0x23 0x8000000 0x0 0x1404000 0x23 0x88090000 0x0 0x4000>; - interrupts = <0x0 0x0 0x971 0x4 0x0 0x0 0x972 0x4>; - iommus = <&{/soc/iommu@2309020000} 0x0 &{/soc/iommu@2309020000} 0x1 &{/soc/iommu@2309020000} 0x2>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1d8}>; - clocks = <&{/soc/clock-controller@280600000} 0x1e8>; - status = "disabled"; - }; -}; - -&{/soc} { - dma-controller@293300000 { - compatible = "apple,t6050-admac", "apple,t8140-admac"; - reg = <0x2 0x93300000 0x0 0x34000>; - dma-channels = <0x9>; - interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x27f 0x4 0 0 0>; - iommus = <&{/soc/iommu@290fc0000} 0xa>; - #dma-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - dma-control@293c80000 { - compatible = "apple,t6050-admac-control", "apple,admac-control"; - reg = <0x2 0x93c80000 0x0 0x4000 0x2 0x93c84000 0x0 0x4000>; - interrupts = <0x0 0x0 0x28c 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - message-controller@29b000000 { - compatible = "apple,t6050-msg", "apple,msg"; - reg = <0x2 0x9b000000 0x0 0xb4000 0x2 0x99000000 0x0 0x4000>; - interrupts = <0x0 0x0 0x319 0x4 0x0 0x0 0x31a 0x4 0x0 0x0 0x31b 0x4 0x0 0x0 0x31c 0x4 0x0 0x0 0x31d 0x4 0x0 0x0 0x31e 0x4 0x0 0x0 0x31f 0x4 0x0 0x0 0x320 0x4 0x0 0x0 0x321 0x4 0x0 0x0 0x322 0x4 0x0 0x0 0x323 0x4 0x0 0x0 0x324 0x4 0x0 0x0 0x325 0x4 0x0 0x0 0x326 0x4 0x0 0x0 0x327 0x4 0x0 0x0 0x328 0x4 0x0 0x0 0x329 0x4 0x0 0x0 0x32a 0x4 0x0 0x0 0x32b 0x4 0x0 0x0 0x32c 0x4 0x0 0x0 0x32d 0x4 0x0 0x0 0x32e 0x4 0x0 0x0 0x32f 0x4 0x0 0x0 0x330 0x4 0x0 0x0 0x331 0x4 0x0 0x0 0x332 0x4 0x0 0x0 0x333 0x4 0x0 0x0 0x334 0x4 0x0 0x0 0x335 0x4 0x0 0x0 0x336 0x4 0x0 0x0 0x337 0x4 0x0 0x0 0x338 0x4 0x0 0x0 0x339 0x4 0x0 0x0 0x33a 0x4 0x0 0x0 0x33b 0x4 0x0 0x0 0x33c 0x4 0x0 0x0 0x33d 0x4 0x0 0x0 0x33e 0x4 0x0 0x0 0x33f 0x4 0x0 0x0 0x340 0x4 0x0 0x0 0x318 0x4>; - power-domains = <&{/soc/power-management@280600000/power-controller@258}>; - status = "disabled"; - }; -}; - -&{/soc} { - dma-controller@412030000 { - compatible = "apple,t6050-pcie-piodma", "apple,pcie-piodma"; - reg = <0x4 0x12030000 0x0 0x4000 0x4 0x12034000 0x0 0x4000 0x4 0x12038000 0x0 0x4000>; - interrupts = <0x0 0x0 0x605 0x4>; - iommus = <&{/soc/iommu@412000000} 0x11>; - status = "disabled"; - }; -}; - -&{/soc} { - dma-controller@413030000 { - compatible = "apple,t6050-pcie-piodma", "apple,pcie-piodma"; - reg = <0x4 0x13030000 0x0 0x4000 0x4 0x13034000 0x0 0x4000 0x4 0x13038000 0x0 0x4000>; - interrupts = <0x0 0x0 0x60d 0x4>; - iommus = <&{/soc/iommu@413000000} 0x11>; - status = "disabled"; - }; -}; - -&{/soc} { - spi@50510c000 { - compatible = "apple,t6050-spi", "apple,t8103-spi"; - reg = <0x5 0x510c000 0x0 0x4000>; - interrupts = <0x0 0x0 0x55a 0x4>; - power-domains = <&{/soc/power-management@280900000/power-controller@338}>; - clocks = <&{/soc/clock-controller@280600000} 0x1c4>; - #address-cells = <0x1>; - #size-cells = <0x0>; - status = "disabled"; - }; -}; - -&{/soc} { - dma-controller@38c068000 { - compatible = "apple,t6050-pciec-piodma", "apple,pciec-piodma"; - reg = <0x3 0x8c068000 0x0 0x4000 0x3 0x8c06c000 0x0 0x4000 0x3 0x8c070000 0x0 0x4000 0x3 0x8c03c000 0x0 0x4000>; - interrupts = <0x0 0x0 0x5df 0x4>; - iommus = <&{/soc/iommu@38c000000} 0xfe>; - status = "disabled"; - }; -}; - -&{/soc} { - dpin@389e50000 { - compatible = "apple,t6050-dpin", "apple,dpin"; - reg = <0x3 0x89e50000 0x0 0x4000>; - interrupts = <0x0 0x0 0x6a3 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dpin@389e58000 { - compatible = "apple,t6050-dpin", "apple,dpin"; - reg = <0x3 0x89e58000 0x0 0x4000>; - interrupts = <0x0 0x0 0x6a4 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dpin@389e68000 { - compatible = "apple,t6050-dpin", "apple,dpin"; - reg = <0x3 0x89e68000 0x0 0x4000>; - interrupts = <0x0 0x0 0x6a9 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dpin@389e70000 { - compatible = "apple,t6050-dpin", "apple,dpin"; - reg = <0x3 0x89e70000 0x0 0x4000>; - interrupts = <0x0 0x0 0x6aa 0x4>; - status = "disabled"; - }; -}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-audio.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-audio.dtsi deleted file mode 100644 index a03cae3fd42e3..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-audio.dtsi +++ /dev/null @@ -1,69 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* Property migration from Satya Benson's 86b1f365 J775c stack. - * Retained board sources remain the baseline; this group is independently booted. - * Copyright The Asahi Linux Contributors - */ -&{/soc/i2c@505014000/codec@38} { - /delete-property/ ti,bclk-ratio; - shutdown-gpios = <&{/soc/pinctrl@29c000000} 0x6b 0x0>; - interrupts-extended = <&{/soc/pinctrl@29c000000} 0x6a 0x8>; -}; - -&{/soc/i2c@505018000/codec@4b} { - reset-gpios = <&{/soc/pinctrl@29c000000} 0x8b 0x0>; - interrupts-extended = <&{/soc/pinctrl@29c000000} 0x86 0x8>; -}; - -&{/sound} { - compatible = "apple,j775c-macaudio", "apple,macaudio"; -}; - -&{/sound/dai-link@0} { -}; - -&{/sound/dai-link@0/cpu} { - sound-dai = <&{/soc/aop@290c00000/audio} 0x0>; -}; - -&{/sound/dai-link@0/codec} { - sound-dai = <&{/soc/i2c@505018000/codec@4b}>; -}; - -&{/sound/dai-link@1} { -}; - -&{/sound/dai-link@1/cpu} { - sound-dai = <&{/soc/aop@290c00000/audio} 0x3>; -}; - -&{/sound/dai-link@1/codec} { - sound-dai = <&{/soc/i2c@505014000/codec@38}>; -}; - -&{/audio-controller-dispext0} { - dmas = <&{/soc/dma-controller@2b2140000} 0x0>; -}; - -&{/audio-controller-dispext0/ports} { -}; - -&{/audio-controller-dispext0/ports/port@0} { -}; - -&{/audio-controller-dispext0/ports/port@0/endpoint} { - remote-endpoint = <&{/soc/dcp@2b2e00000/ports/port@0/endpoint}>; -}; - -&{/audio-controller-dispext1} { - dmas = <&{/soc/dma-controller@392140000} 0x0>; -}; - -&{/audio-controller-dispext1/ports} { -}; - -&{/audio-controller-dispext1/ports/port@0} { -}; - -&{/audio-controller-dispext1/ports/port@0/endpoint} { - remote-endpoint = <&{/soc/dcp@392e00000/ports/port@0/endpoint}>; -}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-display.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-display.dtsi deleted file mode 100644 index 15d138c1a07cf..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-display.dtsi +++ /dev/null @@ -1,464 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* Property migration from Satya Benson's 86b1f365 J775c stack. - * Retained board sources remain the baseline; this group is independently booted. - * Copyright The Asahi Linux Contributors - */ -&{/soc/iommu@2b2340000} { -}; - -&{/soc/iommu@2b2300000} { -}; - -&{/soc/mailbox@2b2e08000} { -}; - -&{/soc/dcp@2b2e00000} { - mboxes = <&{/soc/mailbox@2b2e08000}>; - iommus = <&{/soc/iommu@2b2340000} 0x17>; - apple,bw-scratch = <&{/soc/pmc-metadata@286700000} 0x0 0x5 0x2c000>; - phys = <&{/soc/phy@383000000} 0x6 &{/soc/phy@2ab000000} 0x6 &{/soc/phy@38b000000} 0x6 &{/soc/phy@2a3000000} 0x6>; - mux-controls = <&{/soc/mux@38324c000} 0x0 &{/soc/mux@2ab24c000} 0x0 &{/soc/mux@38b24c000} 0x0 &{/soc/mux@2a324c000} 0x0>; -}; - -&{/soc/dcp@2b2e00000/piodma} { - iommus = <&{/soc/iommu@2b2300000} 0x10>; -}; - -&{/soc/dcp@2b2e00000/typec-routes} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@0} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@0/port} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@0/port/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@2/endpoint}>; -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@1} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@1/port} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@1/port/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@2/endpoint}>; -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@2} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@2/port} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@2/port/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@2/endpoint}>; -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@3} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@3/port} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@3/port/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@2/endpoint}>; -}; - -&{/soc/dcp@2b2e00000/ports} { -}; - -&{/soc/dcp@2b2e00000/ports/port@0} { -}; - -&{/soc/dcp@2b2e00000/ports/port@0/endpoint} { - remote-endpoint = <&{/audio-controller-dispext0/ports/port@0/endpoint}>; -}; - -&{/soc} { - aux@29c260000 { - compatible = "apple,t6050-dptx-aux", "apple,dptx-aux"; - reg = <0x2 0x9c260000 0x0 0x4000 0x2 0x9c260000 0x0 0x4000>; - power-domains = <&{/soc/power-management@280900000/power-controller@108}>; - status = "disabled"; - }; -}; - -&{/soc} { - aux@29c264000 { - compatible = "apple,t6050-dptx-aux", "apple,dptx-aux"; - reg = <0x2 0x9c264000 0x0 0x4000 0x2 0x9c264000 0x0 0x4000>; - power-domains = <&{/soc/power-management@280900000/power-controller@110}>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@48a300000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x4 0x8a300000 0x0 0xc000 0x4 0x8a314000 0x0 0x4000>; - interrupts = <0x0 0x0 0x3de 0x4>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - dcp-expert@48a3ac058 { - compatible = "apple,t6050-dcp-expert", "apple,dcp-expert"; - reg = <0x4 0x8a3ac058 0x0 0x4 0x4 0x8a374000 0x0 0x40 0x4 0x8a370000 0x0 0x40 0x4 0x8a388000 0x0 0x40 0x4 0x8a38c000 0x0 0x40 0x4 0x8a394000 0x0 0x40 0x4 0x8a398000 0x0 0x40 0x4 0x8a39c000 0x0 0x40 0x4 0x8a3a0000 0x0 0x40 0x4 0x88208000 0x0 0x40 0x4 0x8820c000 0x0 0x40 0x4 0x88210000 0x0 0x40 0x4 0x88214000 0x0 0x40>; - interrupts = <0x0 0x0 0x3d9 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - mailbox@48ae08000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x4 0x8ae08000 0x0 0x4000>; - interrupts = <0x0 0x0 0x413 0x4 0x0 0x0 0x414 0x4 0x0 0x0 0x415 0x4 0x0 0x0 0x416 0x4>; - interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; - #mbox-cells = <0x0>; - status = "disabled"; - }; -}; - -&{/soc} { - dcp@48ae00000 { - compatible = "apple,t6050-dcp", "apple,dcp"; - reg = <0x4 0x8ae00000 0x0 0x4000 0x4 0x88000000 0x0 0x4000000 0x4 0x8a240000 0x0 0x10000 0x4 0x8a3ac000 0x0 0x4000 0x4 0x8a800000 0x0 0x800000 0x2 0x86700000 0x0 0x114000 0x4 0x8a850000 0x0 0x4000>; - reg-names = "coproc", "disp-0", "disp-1", "disp-2", "disp-3", "disp-4", "iop-vbar"; - mboxes = <&{/soc/mailbox@48ae08000}>; - mbox-names = "mbox"; - iommus = <&{/soc/iommu@48a340000} 0x17>; - status = "disabled"; - }; -}; - -&{/soc/dcp@48ae00000} { - piodma { - iommus = <&{/soc/iommu@48a300000} 0x10>; - }; -}; - -&{/soc} { - iommu@48a340000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x4 0x8a340000 0x0 0x20000>; - interrupts = <0x0 0x0 0x3de 0x4>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@48a180000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x4 0x8a180000 0x0 0x20000>; - interrupts = <0x0 0x0 0x3f5 0x4>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - dma-controller@48a140000 { - compatible = "apple,t6050-admac", "apple,t8140-admac"; - reg = <0x4 0x8a140000 0x0 0x24000>; - dma-channels = <0x1>; - interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x3f4 0x4 0 0 0>; - iommus = <&{/soc/iommu@48a180000} 0x1e>; - #dma-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - dma-control@48a2f4000 { - compatible = "apple,t6050-admac-control", "apple,admac-control"; - reg = <0x4 0x8a2f4000 0x0 0x4000 0x4 0x8a1a0000 0x0 0x4000>; - interrupts = <0x0 0x0 0x3f6 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dcp-expert@2b23ac058 { - compatible = "apple,t6050-dcp-expert", "apple,dcp-expert"; - reg = <0x2 0xb23ac058 0x0 0x4 0x2 0xb2374000 0x0 0x40 0x2 0xb2370000 0x0 0x40>; - interrupts = <0x0 0x0 0x429 0x4>; - status = "disabled"; - }; -}; - -&{/soc/iommu@2b2180000} { - status = "okay"; - power-domains = <&{/soc/power-management@280600000/power-controller@270}>; -}; - -&{/soc/dma-controller@2b2140000} { - interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x444 0x4 0 0 0>; - iommus = <&{/soc/iommu@2b2180000} 0x1e>; - status = "okay"; - power-domains = <&{/soc/power-management@280600000/power-controller@270}>; -}; - -&{/soc} { - dma-control@2b22f4000 { - compatible = "apple,t6050-admac-control", "apple,admac-control"; - reg = <0x2 0xb22f4000 0x0 0x4000 0x2 0xb21a0000 0x0 0x4000>; - interrupts = <0x0 0x0 0x446 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dcp-expert@3923ac058 { - compatible = "apple,t6050-dcp-expert", "apple,dcp-expert"; - reg = <0x3 0x923ac058 0x0 0x4 0x3 0x92374000 0x0 0x40 0x3 0x92370000 0x0 0x40>; - interrupts = <0x0 0x0 0x471 0x4>; - status = "disabled"; - }; -}; - -&{/soc/mailbox@392e08000} { -}; - -&{/soc/dcp@392e00000} { - mboxes = <&{/soc/mailbox@392e08000}>; - iommus = <&{/soc/iommu@392340000} 0x17>; - apple,bw-scratch = <&{/soc/pmc-metadata@286700000} 0x0 0x5 0x30000>; - phys = <&{/soc/phy@29c200000}>; - hdmi-hpd-gpios = <&{/soc/pinctrl@290824000} 0xe 0x0>; - hdmi-pwren-gpios = <&{/soc/smc@28c600000/gpio} 0x0 0x0>; - dp2hdmi-pwren-gpios = <&{/soc/smc@28c600000/gpio} 0x1 0x0>; -}; - -&{/soc/dcp@392e00000/piodma} { - iommus = <&{/soc/iommu@392300000} 0x10>; -}; - -&{/soc/dcp@392e00000/ports} { -}; - -&{/soc/dcp@392e00000/ports/port@0} { -}; - -&{/soc/dcp@392e00000/ports/port@0/endpoint} { - remote-endpoint = <&{/audio-controller-dispext1/ports/port@0/endpoint}>; -}; - -&{/soc/iommu@392340000} { -}; - -&{/soc/iommu@392300000} { -}; - -&{/soc/iommu@392180000} { - status = "okay"; - power-domains = <&{/soc/power-management@280600000/power-controller@2d8}>; -}; - -&{/soc/dma-controller@392140000} { - interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x48c 0x4 0 0 0>; - iommus = <&{/soc/iommu@392180000} 0x1e>; - status = "okay"; - power-domains = <&{/soc/power-management@280600000/power-controller@2d8}>; -}; - -&{/soc} { - dma-control@3922f4000 { - compatible = "apple,t6050-admac-control", "apple,admac-control"; - reg = <0x3 0x922f4000 0x0 0x4000 0x3 0x921a0000 0x0 0x4000>; - interrupts = <0x0 0x0 0x48e 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dcp-expert@3023ac058 { - compatible = "apple,t6050-dcp-expert", "apple,dcp-expert"; - reg = <0x3 0x23ac058 0x0 0x4 0x3 0x2374000 0x0 0x40 0x3 0x2370000 0x0 0x40>; - interrupts = <0x0 0x0 0x4b9 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - mailbox@302e08000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x3 0x2e08000 0x0 0x4000>; - interrupts = <0x0 0x0 0x4f3 0x4 0x0 0x0 0x4f4 0x4 0x0 0x0 0x4f5 0x4 0x0 0x0 0x4f6 0x4>; - interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; - #mbox-cells = <0x0>; - status = "disabled"; - }; -}; - -&{/soc} { - dcp@302e00000 { - compatible = "apple,t6050-dcpext", "apple,dcpext"; - reg = <0x3 0x2e00000 0x0 0x4000 0x3 0x0 0x0 0x4000000 0x3 0x2240000 0x0 0x10000 0x3 0x23ac000 0x0 0x4000 0x3 0x2800000 0x0 0x800000 0x2 0x86700000 0x0 0x114000 0x3 0x2850000 0x0 0x4000>; - reg-names = "coproc", "disp-0", "disp-1", "disp-2", "disp-3", "disp-4", "iop-vbar"; - mboxes = <&{/soc/mailbox@302e08000}>; - mbox-names = "mbox"; - iommus = <&{/soc/iommu@302340000} 0x17>; - status = "disabled"; - }; -}; - -&{/soc/dcp@302e00000} { - piodma { - iommus = <&{/soc/iommu@302300000} 0x10>; - }; -}; - -&{/soc} { - iommu@302340000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x3 0x2340000 0x0 0x20000>; - interrupts = <0x0 0x0 0x4be 0x4>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@302300000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x3 0x2300000 0x0 0xc000 0x3 0x2314000 0x0 0x4000>; - interrupts = <0x0 0x0 0x4be 0x4>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@302180000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x3 0x2180000 0x0 0x20000>; - interrupts = <0x0 0x0 0x4d5 0x4>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - dma-controller@302140000 { - compatible = "apple,t6050-admac", "apple,t8140-admac"; - reg = <0x3 0x2140000 0x0 0x24000>; - dma-channels = <0x1>; - interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x4d4 0x4 0 0 0>; - iommus = <&{/soc/iommu@302180000} 0x1e>; - #dma-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - dma-control@3022f4000 { - compatible = "apple,t6050-admac-control", "apple,admac-control"; - reg = <0x3 0x22f4000 0x0 0x4000 0x3 0x21a0000 0x0 0x4000>; - interrupts = <0x0 0x0 0x4d6 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - dcp-expert@3063ac058 { - compatible = "apple,t6050-dcp-expert", "apple,dcp-expert"; - reg = <0x3 0x63ac058 0x0 0x4 0x3 0x6374000 0x0 0x40 0x3 0x6370000 0x0 0x40>; - interrupts = <0x0 0x0 0x501 0x4>; - status = "disabled"; - }; -}; - -&{/soc} { - mailbox@306e08000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x3 0x6e08000 0x0 0x4000>; - interrupts = <0x0 0x0 0x53b 0x4 0x0 0x0 0x53c 0x4 0x0 0x0 0x53d 0x4 0x0 0x0 0x53e 0x4>; - interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; - #mbox-cells = <0x0>; - status = "disabled"; - }; -}; - -&{/soc} { - dcp@306e00000 { - compatible = "apple,t6050-dcpext", "apple,dcpext"; - reg = <0x3 0x6e00000 0x0 0x4000 0x3 0x4000000 0x0 0x4000000 0x3 0x6240000 0x0 0x10000 0x3 0x63ac000 0x0 0x4000 0x3 0x6800000 0x0 0x800000 0x2 0x86700000 0x0 0x114000 0x3 0x6850000 0x0 0x4000>; - reg-names = "coproc", "disp-0", "disp-1", "disp-2", "disp-3", "disp-4", "iop-vbar"; - mboxes = <&{/soc/mailbox@306e08000}>; - mbox-names = "mbox"; - iommus = <&{/soc/iommu@306340000} 0x17>; - status = "disabled"; - }; -}; - -&{/soc/dcp@306e00000} { - piodma { - iommus = <&{/soc/iommu@306300000} 0x10>; - }; -}; - -&{/soc} { - iommu@306340000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x3 0x6340000 0x0 0x20000>; - interrupts = <0x0 0x0 0x506 0x4>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@306300000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x3 0x6300000 0x0 0xc000 0x3 0x6314000 0x0 0x4000>; - interrupts = <0x0 0x0 0x506 0x4>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@306180000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x3 0x6180000 0x0 0x20000>; - interrupts = <0x0 0x0 0x51d 0x4>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - dma-controller@306140000 { - compatible = "apple,t6050-admac", "apple,t8140-admac"; - reg = <0x3 0x6140000 0x0 0x24000>; - dma-channels = <0x1>; - interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x51c 0x4 0 0 0>; - iommus = <&{/soc/iommu@306180000} 0x1e>; - #dma-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - dma-control@3062f4000 { - compatible = "apple,t6050-admac-control", "apple,admac-control"; - reg = <0x3 0x62f4000 0x0 0x4000 0x3 0x61a0000 0x0 0x4000>; - interrupts = <0x0 0x0 0x51e 0x4>; - status = "disabled"; - }; -}; - -&{/soc/phy@29c200000} { - power-domains = <&{/soc/power-management@280900000/power-controller@3f8}>; -}; - -&{/display-subsystem} { - iommus = <&{/soc/iommu@2b2300000} 0x0 &{/soc/iommu@392300000} 0x0>; -}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-gpuopp.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-gpuopp.dtsi deleted file mode 100644 index 3b93d96b82d03..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-gpuopp.dtsi +++ /dev/null @@ -1,277 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* Property migration from Satya Benson's 86b1f365 J775c stack. - * Retained board sources remain the baseline; this group is independently booted. - * Copyright The Asahi Linux Contributors - */ -&{/opp-table-gpu} { -}; - -&{/opp-table-gpu/opp00} { -}; - -&{/opp-table-gpu/opp01} { -}; - -&{/opp-table-gpu/opp02} { -}; - -&{/opp-table-gpu/opp03} { -}; - -&{/opp-table-gpu/opp04} { -}; - -&{/opp-table-gpu/opp05} { -}; - -&{/opp-table-gpu/opp06} { -}; - -&{/opp-table-gpu/opp07} { -}; - -&{/opp-table-gpu/opp08} { -}; - -&{/opp-table-gpu/opp09} { -}; - -&{/opp-table-gpu/opp10} { -}; - -&{/opp-table-gpu/opp11} { -}; - -&{/opp-table-gpu/opp12} { -}; - -&{/opp-table-gpu/opp13} { -}; - -&{/} { - opp-table-gpuafr { - compatible = "operating-points-v2"; - }; -}; - -&{/opp-table-gpuafr} { - opp00 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpuafr} { - opp01 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpuafr} { - opp02 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpuafr} { - opp03 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpuafr} { - opp04 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpuafr} { - opp05 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpuafr} { - opp06 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpuafr} { - opp07 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpuafr} { - opp08 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpuafr} { - opp09 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpuafr} { - opp10 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpuafr} { - opp11 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpuafr} { - opp12 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpuafr} { - opp13 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/} { - opp-table-gpucs { - compatible = "operating-points-v2"; - }; -}; - -&{/opp-table-gpucs} { - opp00 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpucs} { - opp01 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpucs} { - opp02 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpucs} { - opp03 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpucs} { - opp04 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpucs} { - opp05 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpucs} { - opp06 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpucs} { - opp07 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpucs} { - opp08 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpucs} { - opp09 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpucs} { - opp10 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpucs} { - opp11 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpucs} { - opp12 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/opp-table-gpucs} { - opp13 { - opp-hz = <0x0 0x0>; - opp-microvolt = <0x0>; - }; -}; - -&{/soc@2300000000/gpu@2302600000} { - /delete-property/ apple,idleoff-standby-timer; - compatible = "apple,agx-g17c", "apple,agx-g17s"; - mboxes = <&{/soc@2300000000/mailbox@2302600000} &{/soc@2300000000/mailbox@2302e00000}>; - power-domains = <&{/soc@2300000000/power-management@2300e80000/power-controller@110}>; - apple,clpc = <&{/soc/power-management@286806000/performance-controller@1}>; - memory-region = <&{/reserved-memory/uat-ttbs} &{/reserved-memory/uat-pagetables} &{/reserved-memory/uat-handoff} &{/reserved-memory/gpu-fw-data} &{/reserved-memory/uat-l2-pagetables} &{/reserved-memory/gpu-fw-text}>; - operating-points-v2 = <&{/opp-table-gpu}>; - apple,afr-opp = <&{/opp-table-gpuafr}>; - apple,cs-opp = <&{/opp-table-gpucs}>; -}; - -&{/soc@2300000000/mailbox@2302600000} { - power-domains = <&{/soc@2300000000/power-management@2300e80000/power-controller@110}>; -}; - -&{/soc@2300000000/mailbox@2302e00000} { - power-domains = <&{/soc@2300000000/power-management@2300e80000/power-controller@110}>; -}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pcie.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pcie.dtsi deleted file mode 100644 index 0a6989093441d..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pcie.dtsi +++ /dev/null @@ -1,41 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* Property migration from Satya Benson's 86b1f365 J775c stack. - * Retained board sources remain the baseline; this group is independently booted. - * Copyright The Asahi Linux Contributors - */ -&{/pcie@1cb0000000} { - msi-parent = <&{/pcie@1cb0000000}>; - iommu-map = <0x100 &{/soc/iommu@412000000} 0x1 0x1 0x200 &{/soc/iommu@413000000} 0x1 0x1 0x300 &{/soc/iommu@410000000} 0x1 0x3 0x400 &{/soc/iommu@411000000} 0x1 0x1>; -}; - -&{/pcie@1cb0000000/pci@2,0} { - interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@2,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@2,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@2,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@2,0} 0x0 0x0 0x0 0x3>; -}; - -&{/pcie@1cb0000000/pci@2,0/ethernet@0,0} { -}; - -&{/pcie@1cb0000000/pci@3,0} { - interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@3,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@3,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@3,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@3,0} 0x0 0x0 0x0 0x3>; -}; - -&{/pcie@1cb0000000/pci@0,0} { - reset-gpios = <&{/soc/pinctrl@29c000000} 0x50 0x1>; - interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@0,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@0,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@0,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@0,0} 0x0 0x0 0x0 0x3>; -}; - -&{/pcie@1cb0000000/pci@0,0/control@0,0} { -}; - -&{/pcie@1cb0000000/pci@0,0/wifi@0,1} { -}; - -&{/pcie@1cb0000000/pci@0,0/bluetooth@0,2} { -}; - -&{/pcie@1cb0000000/pci@1,0} { - interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x3>; -}; - -&{/pcie@1cb0000000/pci@1,0/sdcard@0,0} { -}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pmgr.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pmgr.dtsi deleted file mode 100644 index 22a4c79222cdf..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pmgr.dtsi +++ /dev/null @@ -1,1148 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* Property migration from Satya Benson's 86b1f365 J775c stack. - * Retained board sources remain the baseline; this group is independently booted. - * Copyright The Asahi Linux Contributors - */ -&{/soc/power-management@280600000} { -}; - -&{/soc/power-management@280600000/power-controller@210} { - status = "okay"; -}; - -&{/soc/power-management@280600000/power-controller@238} { -}; - -&{/soc/power-management@280600000/power-controller@240} { - status = "okay"; -}; - -&{/soc/power-management@280600000/power-controller@248} { - status = "okay"; -}; - -&{/soc/power-management@280600000/power-controller@2f8} { - power-domains = <&{/soc/power-management@280600000/power-controller@240}>; - status = "okay"; -}; - -&{/soc/power-management@280600000/power-controller@410} { - power-domains = <&{/soc/power-management@280600000/power-controller@2f8}>; - status = "okay"; -}; - -&{/soc/power-management@280600000/power-controller@418} { - power-domains = <&{/soc/power-management@280600000/power-controller@2f8}>; - status = "okay"; -}; - -&{/soc/power-management@280600000/power-controller@420} { - power-domains = <&{/soc/power-management@280600000/power-controller@2f8} &{/soc/power-management@280600000/power-controller@248}>; - status = "okay"; -}; - -&{/soc/power-management@280600000/power-controller@2e8} { - label = "atc2-cio"; - power-domains = <&{/soc/power-management@280600000/power-controller@238}>; - status = "okay"; -}; - -&{/soc/power-management@280600000/power-controller@3f8} { - label = "atc2-cio-pcie"; - power-domains = <&{/soc/power-management@280600000/power-controller@2e8}>; - status = "okay"; -}; - -&{/soc/power-management@280600000/power-controller@400} { - label = "atc2-cio-usb"; - power-domains = <&{/soc/power-management@280600000/power-controller@2e8}>; - status = "okay"; -}; - -&{/soc/power-management@280600000/power-controller@408} { - label = "atc2-cio-auss"; - power-domains = <&{/soc/power-management@280600000/power-controller@2e8} &{/soc/power-management@280600000/power-controller@248}>; - status = "okay"; -}; - -&{/soc/power-management@280600000} { - power-controller@100 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x100 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "pms"; - status = "disabled"; - }; -}; - -&{/soc/power-management@280600000} { - power-controller@128 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x128 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "pmp"; - power-domains = <&{/soc/power-management@280600000/power-controller@100}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280600000} { - power-controller@130 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x130 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "pms-sram"; - power-domains = <&{/soc/power-management@280600000/power-controller@100}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280600000} { - power-controller@1d8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1d8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "fab0-piogw"; - status = "okay"; - }; -}; - -&{/soc/power-management@280600000} { - power-controller@1e0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1e0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "fab3-soc"; - power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; - status = "okay"; - }; -}; - -&{/soc/power-management@280600000} { - power-controller@1f0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1f0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "fab5-soc"; - power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280600000} { - power-controller@1f8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1f8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "sbr"; - power-domains = <&{/soc/power-management@280600000/power-controller@1e0}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280600000/power-controller@208} { - label = "atc0-common"; - power-domains = <&{/soc/power-management@280600000/power-controller@1e0}>; - status = "okay"; -}; - -&{/soc/power-management@280600000} { - power-controller@258 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x258 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "msg"; - power-domains = <&{/soc/power-management@280600000/power-controller@1f8}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280600000/power-controller@280} { - label = "atc0-cio"; - power-domains = <&{/soc/power-management@280600000/power-controller@208}>; - status = "okay"; -}; - -&{/soc/power-management@280600000} { - power-controller@288 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x288 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc0-pcie"; - power-domains = <&{/soc/power-management@280600000/power-controller@208}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280600000/power-controller@290} { - label = "atc1-cio"; - power-domains = <&{/soc/power-management@280600000/power-controller@210}>; - status = "okay"; -}; - -&{/soc/power-management@280600000} { - power-controller@298 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x298 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc1-pcie"; - power-domains = <&{/soc/power-management@280600000/power-controller@210}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280600000} { - power-controller@2f0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x2f0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc2-pcie"; - power-domains = <&{/soc/power-management@280600000/power-controller@238}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280600000} { - power-controller@300 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x300 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc3-pcie"; - power-domains = <&{/soc/power-management@280600000/power-controller@240}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280600000/power-controller@338} { - label = "atc0-cio-pcie"; - power-domains = <&{/soc/power-management@280600000/power-controller@280}>; - status = "okay"; -}; - -&{/soc/power-management@280600000/power-controller@340} { - label = "atc0-cio-usb"; - power-domains = <&{/soc/power-management@280600000/power-controller@280}>; - status = "okay"; -}; - -&{/soc/power-management@280600000/power-controller@348} { - label = "atc0-cio-auss"; - power-domains = <&{/soc/power-management@280600000/power-controller@280} &{/soc/power-management@280600000/power-controller@248}>; - status = "okay"; -}; - -&{/soc/power-management@280600000/power-controller@350} { - label = "atc1-cio-pcie"; - power-domains = <&{/soc/power-management@280600000/power-controller@290}>; - status = "okay"; -}; - -&{/soc/power-management@280600000/power-controller@358} { - label = "atc1-cio-usb"; - power-domains = <&{/soc/power-management@280600000/power-controller@290}>; - status = "okay"; -}; - -&{/soc/power-management@280600000/power-controller@360} { - label = "atc1-cio-auss"; - power-domains = <&{/soc/power-management@280600000/power-controller@290} &{/soc/power-management@280600000/power-controller@248}>; - status = "okay"; -}; - -&{/soc/power-management@280600000/power-controller@270} { -}; - -&{/soc/power-management@280600000/power-controller@2d8} { -}; - -&{/soc/power-management@280900000} { -}; - -&{/soc/power-management@280900000} { - power-controller@2a8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x2a8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "fpwm0"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@2b0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x2b0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "fpwm1"; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@2b8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x2b8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "fpwm2"; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000/power-controller@2c8} { -}; - -&{/soc/power-management@280900000/power-controller@2d0} { -}; - -&{/soc/power-management@280900000/power-controller@308} { -}; - -&{/soc/power-management@280900000/power-controller@350} { - power-domains = <&{/soc/power-management@280900000/power-controller@308}>; -}; - -&{/soc/power-management@280900000} { - power-controller@100 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x100 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "ispsens0"; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@108 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x108 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "global-aux-hpd-0"; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@110 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x110 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "global-aux-hpd-1"; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@118 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x118 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "apcie-gp"; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@120 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x120 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "apcie-ge"; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@128 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x128 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "apcie-st0"; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@130 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x130 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "apcie-st1"; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@138 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x138 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "fab6-soc"; - power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@140 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x140 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "ans"; - power-domains = <&{/soc/power-management@280900000/power-controller@138}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@148 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x148 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "apcie-sys-gp"; - power-domains = <&{/soc/power-management@280900000/power-controller@118} &{/soc/power-management@280900000/power-controller@138}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@150 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x150 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "apcie-sys-st0"; - power-domains = <&{/soc/power-management@280900000/power-controller@128} &{/soc/power-management@280900000/power-controller@140}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@158 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x158 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "apcie-sys-st1"; - power-domains = <&{/soc/power-management@280900000/power-controller@130} &{/soc/power-management@280900000/power-controller@140}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@178 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x178 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "fab7-soc"; - power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@180 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x180 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "disp-sys"; - power-domains = <&{/soc/power-management@280900000/power-controller@178}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@188 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x188 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "apcie-sys-ge"; - power-domains = <&{/soc/power-management@280900000/power-controller@120} &{/soc/power-management@280900000/power-controller@138}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@190 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x190 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "scodec"; - power-domains = <&{/soc/power-management@280900000/power-controller@178}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@198 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x198 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "disp-fe"; - power-domains = <&{/soc/power-management@280900000/power-controller@180}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@1a8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1a8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "disp-cpu"; - power-domains = <&{/soc/power-management@280900000/power-controller@198}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@1b0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1b0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "apcie-phy-sw"; - power-domains = <&{/soc/power-management@280900000/power-controller@148} &{/soc/power-management@280900000/power-controller@188}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@240 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x240 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "aphy-st0-aus5-a"; - power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@248 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x248 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "aphy-st1-aus5-a"; - power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@250 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x250 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "aphy-ge-aus5-a"; - power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@258 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x258 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "aphy-gp-aus5-a"; - power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@268 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x268 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "aphy-st0-aus5"; - power-domains = <&{/soc/power-management@280900000/power-controller@240}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@270 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x270 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "aphy-st1-aus5"; - power-domains = <&{/soc/power-management@280900000/power-controller@248}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@278 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x278 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "aphy-ge-aus5"; - power-domains = <&{/soc/power-management@280900000/power-controller@250}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@280 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x280 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "aphy-gp-aus5"; - power-domains = <&{/soc/power-management@280900000/power-controller@258}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@288 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x288 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "fab8-soc"; - power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@290 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x290 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "sio"; - power-domains = <&{/soc/power-management@280900000/power-controller@288}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@298 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x298 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "sep"; - power-domains = <&{/soc/power-management@280900000/power-controller@288}>; - apple,firmware-owned; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@2a0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x2a0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "sio-cpu"; - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@2c0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x2c0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "i2c0"; - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@2d8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x2d8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "i2c3"; - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@2e0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x2e0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "i2c4"; - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@2e8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x2e8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "i2c5"; - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@2f0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x2f0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "i2c6"; - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@2f8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x2f8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "i2c7"; - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@300 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x300 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "i2c8"; - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@310 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x310 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "uart-p"; - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@318 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x318 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "aes"; - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@330 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x330 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "spi2"; - power-domains = <&{/soc/power-management@280900000/power-controller@308}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@338 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x338 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "spi3"; - power-domains = <&{/soc/power-management@280900000/power-controller@308}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@340 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x340 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "spi4"; - power-domains = <&{/soc/power-management@280900000/power-controller@308}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@360 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x360 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "uart0"; - power-domains = <&{/soc/power-management@280900000/power-controller@310}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@398 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x398 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "fab9-soc"; - power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@3a0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x3a0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "isp-sys"; - power-domains = <&{/soc/power-management@280900000/power-controller@398}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000} { - power-controller@3c8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x3c8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "ane-cpu"; - status = "disabled"; - }; -}; - -&{/soc/power-management@280900000/power-controller@3f8} { - label = "dptx-phy"; - status = "disabled"; -}; - -&{/soc/power-management@288300000} { -}; - -&{/soc/power-management@288300000/power-controller@160} { - status = "okay"; -}; - -&{/soc/power-management@288300000/power-controller@168} { - /delete-property/ apple,always-on; - power-domains = <&{/soc/power-management@280600000/power-controller@210} &{/soc/power-management@288300000/power-controller@160}>; - status = "okay"; -}; - -&{/soc/power-management@288300000/power-controller@170} { - power-domains = <&{/soc/power-management@280600000/power-controller@210} &{/soc/power-management@288300000/power-controller@160}>; - status = "okay"; -}; - -&{/soc/power-management@288300000/power-controller@178} { -}; - -&{/soc/power-management@288300000/power-controller@188} { - power-domains = <&{/soc/power-management@280600000/power-controller@238} &{/soc/power-management@288300000/power-controller@178}>; -}; - -&{/soc/power-management@288300000/power-controller@180} { - /delete-property/ apple,always-on; - power-domains = <&{/soc/power-management@280600000/power-controller@238} &{/soc/power-management@288300000/power-controller@178}>; -}; - -&{/soc/power-management@288300000/power-controller@190} { - status = "okay"; -}; - -&{/soc/power-management@288300000/power-controller@198} { - /delete-property/ apple,always-on; - power-domains = <&{/soc/power-management@280600000/power-controller@240} &{/soc/power-management@288300000/power-controller@190}>; - status = "okay"; -}; - -&{/soc/power-management@288300000/power-controller@1a0} { - power-domains = <&{/soc/power-management@280600000/power-controller@240} &{/soc/power-management@288300000/power-controller@190}>; - status = "okay"; -}; - -&{/soc/power-management@288300000} { - power-controller@58 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x58 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "debug-gated"; - status = "disabled"; - }; -}; - -&{/soc/power-management@288300000} { - power-controller@98 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x98 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc0-common-dp-0"; - status = "disabled"; - }; -}; - -&{/soc/power-management@288300000} { - power-controller@a0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0xa0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc0-common-dp-1"; - status = "disabled"; - }; -}; - -&{/soc/power-management@288300000} { - power-controller@a8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0xa8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc0-common-dp-2"; - status = "disabled"; - }; -}; - -&{/soc/power-management@288300000} { - power-controller@b0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0xb0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc0-common-dp-3"; - status = "disabled"; - }; -}; - -&{/soc/power-management@288300000} { - power-controller@b8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0xb8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc1-common-dp-0"; - status = "disabled"; - }; -}; - -&{/soc/power-management@288300000} { - power-controller@c0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0xc0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc1-common-dp-1"; - status = "disabled"; - }; -}; - -&{/soc/power-management@288300000} { - power-controller@c8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0xc8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc1-common-dp-2"; - status = "disabled"; - }; -}; - -&{/soc/power-management@288300000} { - power-controller@d0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0xd0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc1-common-dp-3"; - status = "disabled"; - }; -}; - -&{/soc/power-management@288300000} { - power-controller@d8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0xd8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc2-common-dp-0"; - status = "disabled"; - }; -}; - -&{/soc/power-management@288300000} { - power-controller@e0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0xe0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc2-common-dp-1"; - status = "disabled"; - }; -}; - -&{/soc/power-management@288300000} { - power-controller@e8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0xe8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc2-common-dp-2"; - status = "disabled"; - }; -}; - -&{/soc/power-management@288300000} { - power-controller@f0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0xf0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc2-common-dp-3"; - status = "disabled"; - }; -}; - -&{/soc/power-management@288300000} { - power-controller@f8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0xf8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc3-common-dp-0"; - status = "disabled"; - }; -}; - -&{/soc/power-management@288300000} { - power-controller@100 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x100 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc3-common-dp-1"; - status = "disabled"; - }; -}; - -&{/soc/power-management@288300000} { - power-controller@108 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x108 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc3-common-dp-2"; - status = "disabled"; - }; -}; - -&{/soc/power-management@288300000} { - power-controller@110 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x110 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "atc3-common-dp-3"; - status = "disabled"; - }; -}; - -&{/soc/power-management@288300000/power-controller@148} { - label = "atc0-usb-aon"; - status = "okay"; -}; - -&{/soc/power-management@288300000/power-controller@150} { - /delete-property/ apple,always-on; - label = "atc0-usb"; - power-domains = <&{/soc/power-management@280600000/power-controller@208} &{/soc/power-management@288300000/power-controller@148}>; - status = "okay"; -}; - -&{/soc/power-management@288300000/power-controller@158} { - label = "atc0-phymxwrap"; - power-domains = <&{/soc/power-management@280600000/power-controller@208} &{/soc/power-management@288300000/power-controller@148}>; - status = "okay"; -}; - -&{/soc/power-management@286806000} { -}; - -&{/soc/power-management@286806000/performance-controller@1} { -}; - -&{/soc@2300000000/power-management@2300e80000} { - status = "okay"; -}; - -&{/soc@2300000000/power-management@2300e80000/power-controller@0} { -}; - -&{/soc@2300000000/power-management@2300e80000/power-controller@100} { -}; - -&{/soc@2300000000/power-management@2300e80000/power-controller@110} { - power-domains = <&{/soc@2300000000/power-management@2300e80000/power-controller@100} &{/soc@2300000000/power-management@2300e80000/power-controller@0}>; -}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pmgr4.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pmgr4.dtsi deleted file mode 100644 index e9740512533eb..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-pmgr4.dtsi +++ /dev/null @@ -1,269 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* Property migration from Satya Benson's 86b1f365 J775c stack. - * Retained board sources remain the baseline; this group is independently booted. - * Copyright The Asahi Linux Contributors - */ -&{/soc/power-management@2380600000} { - status = "disabled"; -}; - -&{/soc/power-management@2380600000/power-controller@1b0} { - /delete-property/ apple,always-on; - status = "disabled"; -}; - -&{/soc/power-management@2380600000/power-controller@1d8} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1b0}>; - status = "disabled"; -}; - -&{/soc/power-management@2380600000} { - power-controller@1a0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1a0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "fab1-piogw"; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@1a8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1a8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "fab0-soc"; - power-domains = <&{/soc/power-management@2380600000/power-controller@1a0}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@1b8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1b8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "fab2-soc"; - power-domains = <&{/soc/power-management@2380600000/power-controller@1a0}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@1c0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1c0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "venc0-sys"; - power-domains = <&{/soc/power-management@2380600000/power-controller@1a8}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@1c8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1c8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "msr0"; - power-domains = <&{/soc/power-management@2380600000/power-controller@1a8}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@1d0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1d0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "jpg"; - power-domains = <&{/soc/power-management@2380600000/power-controller@1a8}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@1e0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1e0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "prores"; - power-domains = <&{/soc/power-management@2380600000/power-controller@1b0}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@1f0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1f0 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "venc1-sys"; - power-domains = <&{/soc/power-management@2380600000/power-controller@1b8}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@1f8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1f8 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "msr1"; - power-domains = <&{/soc/power-management@2380600000/power-controller@1b8}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@200 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x200 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "msr0-ase-core"; - power-domains = <&{/soc/power-management@2380600000/power-controller@1c8}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@208 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x208 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "msr1-ase-core"; - power-domains = <&{/soc/power-management@2380600000/power-controller@1f8}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@8000 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x8000 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "venc0-dma"; - power-domains = <&{/soc/power-management@2380600000/power-controller@1c0}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@8008 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x8008 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "venc0-pipe4"; - power-domains = <&{/soc/power-management@2380600000/power-controller@8000}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@8010 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x8010 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "venc0-pipe5"; - power-domains = <&{/soc/power-management@2380600000/power-controller@8000}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@8018 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x8018 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "venc0-me0"; - power-domains = <&{/soc/power-management@2380600000/power-controller@8000}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@8020 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x8020 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "venc0-me1"; - power-domains = <&{/soc/power-management@2380600000/power-controller@8018}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@8028 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x8028 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "venc1-dma"; - power-domains = <&{/soc/power-management@2380600000/power-controller@1f0}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@8030 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x8030 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "venc1-pipe4"; - power-domains = <&{/soc/power-management@2380600000/power-controller@8028}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@8038 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x8038 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "venc1-pipe5"; - power-domains = <&{/soc/power-management@2380600000/power-controller@8028}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@8040 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x8040 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "venc1-me0"; - power-domains = <&{/soc/power-management@2380600000/power-controller@8028}>; - status = "disabled"; - }; -}; - -&{/soc/power-management@2380600000} { - power-controller@8048 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x8048 0x4>; - #power-domain-cells = <0x0>; - #reset-cells = <0x0>; - label = "venc1-me1"; - power-domains = <&{/soc/power-management@2380600000/power-controller@8040}>; - status = "disabled"; - }; -}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-remaining-nogpu.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-remaining-nogpu.dtsi deleted file mode 100644 index e038f103da61f..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-remaining-nogpu.dtsi +++ /dev/null @@ -1,2354 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* Property migration from Satya Benson's 86b1f365 J775c stack. - * Retained board sources remain the baseline; this group is independently booted. - * Copyright The Asahi Linux Contributors - */ -&{/} { - interrupt-parent = <&{/soc/interrupt-controller@280400000}>; -}; - -&{/memory@10000000000} { -}; - -&{/reserved-memory} { -}; - -&{/reserved-memory/uat-ttbs} { -}; - -&{/reserved-memory/uat-pagetables} { -}; - -&{/reserved-memory/uat-handoff} { -}; - -&{/reserved-memory/uat-l2-pagetables} { -}; - -&{/reserved-memory/gpu-fw-text} { -}; - -&{/reserved-memory/gpu-fw-data} { -}; - -&{/cpus} { -}; - -&{/cpus/cpu@40000} { - operating-points-v2 = <&{/opp-table-mcluster}>; - performance-domains = <&{/soc/performance-controller@210e20000}>; - next-level-cache = <&{/cpus/l2-cache-m00}>; -}; - -&{/cpus/cpu@40001} { - operating-points-v2 = <&{/opp-table-mcluster}>; - performance-domains = <&{/soc/performance-controller@210e20000}>; - next-level-cache = <&{/cpus/l2-cache-m00}>; -}; - -&{/cpus/cpu@40002} { - operating-points-v2 = <&{/opp-table-mcluster}>; - performance-domains = <&{/soc/performance-controller@210e20000}>; - next-level-cache = <&{/cpus/l2-cache-m00}>; -}; - -&{/cpus/cpu@40003} { - operating-points-v2 = <&{/opp-table-mcluster}>; - performance-domains = <&{/soc/performance-controller@210e20000}>; - next-level-cache = <&{/cpus/l2-cache-m00}>; -}; - -&{/cpus/cpu@40004} { - operating-points-v2 = <&{/opp-table-mcluster}>; - performance-domains = <&{/soc/performance-controller@210e20000}>; - next-level-cache = <&{/cpus/l2-cache-m00}>; -}; - -&{/cpus/cpu@40005} { - operating-points-v2 = <&{/opp-table-mcluster}>; - performance-domains = <&{/soc/performance-controller@210e20000}>; - next-level-cache = <&{/cpus/l2-cache-m00}>; -}; - -&{/cpus/cpu@40100} { - operating-points-v2 = <&{/opp-table-mcluster}>; - performance-domains = <&{/soc/performance-controller@211e20000}>; - next-level-cache = <&{/cpus/l2-cache-m01}>; -}; - -&{/cpus/cpu@40101} { - operating-points-v2 = <&{/opp-table-mcluster}>; - performance-domains = <&{/soc/performance-controller@211e20000}>; - next-level-cache = <&{/cpus/l2-cache-m01}>; -}; - -&{/cpus/cpu@40102} { - operating-points-v2 = <&{/opp-table-mcluster}>; - performance-domains = <&{/soc/performance-controller@211e20000}>; - next-level-cache = <&{/cpus/l2-cache-m01}>; -}; - -&{/cpus/cpu@40103} { - operating-points-v2 = <&{/opp-table-mcluster}>; - performance-domains = <&{/soc/performance-controller@211e20000}>; - next-level-cache = <&{/cpus/l2-cache-m01}>; -}; - -&{/cpus/cpu@40104} { - operating-points-v2 = <&{/opp-table-mcluster}>; - performance-domains = <&{/soc/performance-controller@211e20000}>; - next-level-cache = <&{/cpus/l2-cache-m01}>; -}; - -&{/cpus/cpu@40105} { - operating-points-v2 = <&{/opp-table-mcluster}>; - performance-domains = <&{/soc/performance-controller@211e20000}>; - next-level-cache = <&{/cpus/l2-cache-m01}>; -}; - -&{/cpus/cpu@10200} { - operating-points-v2 = <&{/opp-table-pcluster}>; - performance-domains = <&{/soc/performance-controller@212e20000}>; - next-level-cache = <&{/cpus/l2-cache-p0-0}>; -}; - -&{/cpus/cpu@10201} { - operating-points-v2 = <&{/opp-table-pcluster}>; - performance-domains = <&{/soc/performance-controller@212e20000}>; - next-level-cache = <&{/cpus/l2-cache-p0-1}>; -}; - -&{/cpus/cpu@10202} { - operating-points-v2 = <&{/opp-table-pcluster}>; - performance-domains = <&{/soc/performance-controller@212e20000}>; - next-level-cache = <&{/cpus/l2-cache-p0-2}>; -}; - -&{/cpus/cpu@10203} { - operating-points-v2 = <&{/opp-table-pcluster}>; - performance-domains = <&{/soc/performance-controller@212e20000}>; - next-level-cache = <&{/cpus/l2-cache-p0-3}>; -}; - -&{/cpus/cpu@10204} { - operating-points-v2 = <&{/opp-table-pcluster}>; - performance-domains = <&{/soc/performance-controller@212e20000}>; - next-level-cache = <&{/cpus/l2-cache-p0-4}>; -}; - -&{/cpus/cpu@10205} { - operating-points-v2 = <&{/opp-table-pcluster}>; - performance-domains = <&{/soc/performance-controller@212e20000}>; - next-level-cache = <&{/cpus/l2-cache-p0-5}>; -}; - -&{/cpus/cpu-map} { -}; - -&{/cpus/cpu-map/cluster0} { -}; - -&{/cpus/cpu-map/cluster0/core0} { - cpu = <&{/cpus/cpu@40000}>; -}; - -&{/cpus/cpu-map/cluster0/core1} { - cpu = <&{/cpus/cpu@40001}>; -}; - -&{/cpus/cpu-map/cluster0/core2} { - cpu = <&{/cpus/cpu@40002}>; -}; - -&{/cpus/cpu-map/cluster0/core3} { - cpu = <&{/cpus/cpu@40003}>; -}; - -&{/cpus/cpu-map/cluster0/core4} { - cpu = <&{/cpus/cpu@40004}>; -}; - -&{/cpus/cpu-map/cluster0/core5} { - cpu = <&{/cpus/cpu@40005}>; -}; - -&{/cpus/cpu-map/cluster1} { -}; - -&{/cpus/cpu-map/cluster1/core0} { - cpu = <&{/cpus/cpu@40100}>; -}; - -&{/cpus/cpu-map/cluster1/core1} { - cpu = <&{/cpus/cpu@40101}>; -}; - -&{/cpus/cpu-map/cluster1/core2} { - cpu = <&{/cpus/cpu@40102}>; -}; - -&{/cpus/cpu-map/cluster1/core3} { - cpu = <&{/cpus/cpu@40103}>; -}; - -&{/cpus/cpu-map/cluster1/core4} { - cpu = <&{/cpus/cpu@40104}>; -}; - -&{/cpus/cpu-map/cluster1/core5} { - cpu = <&{/cpus/cpu@40105}>; -}; - -&{/cpus/cpu-map/cluster2} { -}; - -&{/cpus/cpu-map/cluster2/core0} { - cpu = <&{/cpus/cpu@10200}>; -}; - -&{/cpus/cpu-map/cluster2/core1} { - cpu = <&{/cpus/cpu@10201}>; -}; - -&{/cpus/cpu-map/cluster2/core2} { - cpu = <&{/cpus/cpu@10202}>; -}; - -&{/cpus/cpu-map/cluster2/core3} { - cpu = <&{/cpus/cpu@10203}>; -}; - -&{/cpus/cpu-map/cluster2/core4} { - cpu = <&{/cpus/cpu@10204}>; -}; - -&{/cpus/cpu-map/cluster2/core5} { - cpu = <&{/cpus/cpu@10205}>; -}; - -&{/cpus/l2-cache-m00} { -}; - -&{/cpus/l2-cache-m01} { -}; - -&{/cpus/l3-cache-p0} { -}; - -&{/cpus/l2-cache-p0-0} { - next-level-cache = <&{/cpus/l3-cache-p0}>; -}; - -&{/cpus/l2-cache-p0-1} { - next-level-cache = <&{/cpus/l3-cache-p0}>; -}; - -&{/cpus/l2-cache-p0-2} { - next-level-cache = <&{/cpus/l3-cache-p0}>; -}; - -&{/cpus/l2-cache-p0-3} { - next-level-cache = <&{/cpus/l3-cache-p0}>; -}; - -&{/cpus/l2-cache-p0-4} { - next-level-cache = <&{/cpus/l3-cache-p0}>; -}; - -&{/cpus/l2-cache-p0-5} { - next-level-cache = <&{/cpus/l3-cache-p0}>; -}; - -&{/opp-table-mcluster} { -}; - -&{/opp-table-mcluster/opp01} { -}; - -&{/opp-table-mcluster/opp02} { -}; - -&{/opp-table-mcluster/opp03} { -}; - -&{/opp-table-mcluster/opp04} { -}; - -&{/opp-table-mcluster/opp05} { -}; - -&{/opp-table-mcluster/opp06} { -}; - -&{/opp-table-mcluster/opp07} { -}; - -&{/opp-table-mcluster/opp08} { -}; - -&{/opp-table-mcluster/opp09} { -}; - -&{/opp-table-mcluster/opp10} { -}; - -&{/opp-table-mcluster/opp11} { -}; - -&{/opp-table-mcluster/opp12} { -}; - -&{/opp-table-mcluster/opp13} { -}; - -&{/opp-table-mcluster/opp14} { -}; - -&{/opp-table-mcluster/opp15} { -}; - -&{/opp-table-mcluster/opp16} { -}; - -&{/opp-table-pcluster} { -}; - -&{/opp-table-pcluster/opp01} { -}; - -&{/opp-table-pcluster/opp02} { -}; - -&{/opp-table-pcluster/opp03} { -}; - -&{/opp-table-pcluster/opp04} { -}; - -&{/opp-table-pcluster/opp05} { -}; - -&{/opp-table-pcluster/opp06} { -}; - -&{/opp-table-pcluster/opp07} { -}; - -&{/opp-table-pcluster/opp08} { -}; - -&{/opp-table-pcluster/opp09} { -}; - -&{/opp-table-pcluster/opp10} { -}; - -&{/opp-table-pcluster/opp11} { -}; - -&{/opp-table-pcluster/opp12} { -}; - -&{/opp-table-pcluster/opp13} { -}; - -&{/opp-table-pcluster/opp14} { -}; - -&{/opp-table-pcluster/opp15} { -}; - -&{/opp-table-pcluster/opp16} { -}; - -&{/opp-table-pcluster/opp17} { -}; - -&{/opp-table-pcluster/opp18} { -}; - -&{/opp-table-pcluster/opp19} { -}; - -&{/opp-table-pcluster/opp20} { -}; - -&{/opp-table-pcluster/opp21} { -}; - -&{/clock-ref} { -}; - -&{/clock-405m} { -}; - -&{/timer} { - interrupt-parent = <&{/soc/interrupt-controller@280400000}>; -}; - -&{/soc/performance-controller@210e20000} { -}; - -&{/soc/performance-controller@211e20000} { -}; - -&{/soc/performance-controller@212e20000} { -}; - -&{/soc/power-management@280600000} { -}; - -&{/soc/power-management@280600000/power-controller@210} { -}; - -&{/soc/power-management@280600000/power-controller@238} { -}; - -&{/soc/power-management@280600000/power-controller@240} { -}; - -&{/soc/power-management@280600000/power-controller@248} { -}; - -&{/soc/power-management@280600000/power-controller@2f8} { - power-domains = <&{/soc/power-management@280600000/power-controller@240}>; -}; - -&{/soc/power-management@280600000/power-controller@410} { - power-domains = <&{/soc/power-management@280600000/power-controller@2f8}>; -}; - -&{/soc/power-management@280600000/power-controller@418} { - power-domains = <&{/soc/power-management@280600000/power-controller@2f8}>; -}; - -&{/soc/power-management@280600000/power-controller@420} { - power-domains = <&{/soc/power-management@280600000/power-controller@2f8} &{/soc/power-management@280600000/power-controller@248}>; -}; - -&{/soc/power-management@280600000/power-controller@2e8} { - power-domains = <&{/soc/power-management@280600000/power-controller@238}>; -}; - -&{/soc/power-management@280600000/power-controller@3f8} { - power-domains = <&{/soc/power-management@280600000/power-controller@2e8}>; -}; - -&{/soc/power-management@280600000/power-controller@400} { - power-domains = <&{/soc/power-management@280600000/power-controller@2e8}>; -}; - -&{/soc/power-management@280600000/power-controller@408} { - power-domains = <&{/soc/power-management@280600000/power-controller@2e8} &{/soc/power-management@280600000/power-controller@248}>; -}; - -&{/soc/power-management@280600000/power-controller@100} { -}; - -&{/soc/power-management@280600000/power-controller@128} { - power-domains = <&{/soc/power-management@280600000/power-controller@100}>; -}; - -&{/soc/power-management@280600000/power-controller@130} { - power-domains = <&{/soc/power-management@280600000/power-controller@100}>; -}; - -&{/soc/power-management@280600000/power-controller@1d8} { -}; - -&{/soc/power-management@280600000/power-controller@1e0} { - power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; -}; - -&{/soc/power-management@280600000/power-controller@1f0} { - power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; -}; - -&{/soc/power-management@280600000/power-controller@1f8} { - power-domains = <&{/soc/power-management@280600000/power-controller@1e0}>; -}; - -&{/soc/power-management@280600000/power-controller@208} { - power-domains = <&{/soc/power-management@280600000/power-controller@1e0}>; -}; - -&{/soc/power-management@280600000/power-controller@258} { - power-domains = <&{/soc/power-management@280600000/power-controller@1f8}>; -}; - -&{/soc/power-management@280600000/power-controller@280} { - power-domains = <&{/soc/power-management@280600000/power-controller@208}>; -}; - -&{/soc/power-management@280600000/power-controller@288} { - power-domains = <&{/soc/power-management@280600000/power-controller@208}>; -}; - -&{/soc/power-management@280600000/power-controller@290} { - power-domains = <&{/soc/power-management@280600000/power-controller@210}>; -}; - -&{/soc/power-management@280600000/power-controller@298} { - power-domains = <&{/soc/power-management@280600000/power-controller@210}>; -}; - -&{/soc/power-management@280600000/power-controller@2f0} { - power-domains = <&{/soc/power-management@280600000/power-controller@238}>; -}; - -&{/soc/power-management@280600000/power-controller@300} { - power-domains = <&{/soc/power-management@280600000/power-controller@240}>; -}; - -&{/soc/power-management@280600000/power-controller@338} { - power-domains = <&{/soc/power-management@280600000/power-controller@280}>; -}; - -&{/soc/power-management@280600000/power-controller@340} { - power-domains = <&{/soc/power-management@280600000/power-controller@280}>; -}; - -&{/soc/power-management@280600000/power-controller@348} { - power-domains = <&{/soc/power-management@280600000/power-controller@280} &{/soc/power-management@280600000/power-controller@248}>; -}; - -&{/soc/power-management@280600000/power-controller@350} { - power-domains = <&{/soc/power-management@280600000/power-controller@290}>; -}; - -&{/soc/power-management@280600000/power-controller@358} { - power-domains = <&{/soc/power-management@280600000/power-controller@290}>; -}; - -&{/soc/power-management@280600000/power-controller@360} { - power-domains = <&{/soc/power-management@280600000/power-controller@290} &{/soc/power-management@280600000/power-controller@248}>; -}; - -&{/soc/power-management@280600000/power-controller@270} { -}; - -&{/soc/power-management@280600000/power-controller@2d8} { -}; - -&{/soc/power-management@280900000} { -}; - -&{/soc/power-management@280900000/power-controller@2a8} { -}; - -&{/soc/power-management@280900000/power-controller@2b0} { -}; - -&{/soc/power-management@280900000/power-controller@2b8} { -}; - -&{/soc/power-management@280900000/power-controller@2c8} { -}; - -&{/soc/power-management@280900000/power-controller@2d0} { -}; - -&{/soc/power-management@280900000/power-controller@308} { -}; - -&{/soc/power-management@280900000/power-controller@350} { - power-domains = <&{/soc/power-management@280900000/power-controller@308}>; -}; - -&{/soc/power-management@280900000/power-controller@100} { -}; - -&{/soc/power-management@280900000/power-controller@108} { -}; - -&{/soc/power-management@280900000/power-controller@110} { -}; - -&{/soc/power-management@280900000/power-controller@118} { -}; - -&{/soc/power-management@280900000/power-controller@120} { -}; - -&{/soc/power-management@280900000/power-controller@128} { -}; - -&{/soc/power-management@280900000/power-controller@130} { -}; - -&{/soc/power-management@280900000/power-controller@138} { - power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; -}; - -&{/soc/power-management@280900000/power-controller@140} { - power-domains = <&{/soc/power-management@280900000/power-controller@138}>; -}; - -&{/soc/power-management@280900000/power-controller@148} { - power-domains = <&{/soc/power-management@280900000/power-controller@118} &{/soc/power-management@280900000/power-controller@138}>; -}; - -&{/soc/power-management@280900000/power-controller@150} { - power-domains = <&{/soc/power-management@280900000/power-controller@128} &{/soc/power-management@280900000/power-controller@140}>; -}; - -&{/soc/power-management@280900000/power-controller@158} { - power-domains = <&{/soc/power-management@280900000/power-controller@130} &{/soc/power-management@280900000/power-controller@140}>; -}; - -&{/soc/power-management@280900000/power-controller@178} { - power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; -}; - -&{/soc/power-management@280900000/power-controller@180} { - power-domains = <&{/soc/power-management@280900000/power-controller@178}>; -}; - -&{/soc/power-management@280900000/power-controller@188} { - power-domains = <&{/soc/power-management@280900000/power-controller@120} &{/soc/power-management@280900000/power-controller@138}>; -}; - -&{/soc/power-management@280900000/power-controller@190} { - power-domains = <&{/soc/power-management@280900000/power-controller@178}>; -}; - -&{/soc/power-management@280900000/power-controller@198} { - power-domains = <&{/soc/power-management@280900000/power-controller@180}>; -}; - -&{/soc/power-management@280900000/power-controller@1a8} { - power-domains = <&{/soc/power-management@280900000/power-controller@198}>; -}; - -&{/soc/power-management@280900000/power-controller@1b0} { - power-domains = <&{/soc/power-management@280900000/power-controller@148} &{/soc/power-management@280900000/power-controller@188}>; -}; - -&{/soc/power-management@280900000/power-controller@240} { - power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; -}; - -&{/soc/power-management@280900000/power-controller@248} { - power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; -}; - -&{/soc/power-management@280900000/power-controller@250} { - power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; -}; - -&{/soc/power-management@280900000/power-controller@258} { - power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; -}; - -&{/soc/power-management@280900000/power-controller@268} { - power-domains = <&{/soc/power-management@280900000/power-controller@240}>; -}; - -&{/soc/power-management@280900000/power-controller@270} { - power-domains = <&{/soc/power-management@280900000/power-controller@248}>; -}; - -&{/soc/power-management@280900000/power-controller@278} { - power-domains = <&{/soc/power-management@280900000/power-controller@250}>; -}; - -&{/soc/power-management@280900000/power-controller@280} { - power-domains = <&{/soc/power-management@280900000/power-controller@258}>; -}; - -&{/soc/power-management@280900000/power-controller@288} { - power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; -}; - -&{/soc/power-management@280900000/power-controller@290} { - power-domains = <&{/soc/power-management@280900000/power-controller@288}>; -}; - -&{/soc/power-management@280900000/power-controller@298} { - power-domains = <&{/soc/power-management@280900000/power-controller@288}>; -}; - -&{/soc/power-management@280900000/power-controller@2a0} { - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; -}; - -&{/soc/power-management@280900000/power-controller@2c0} { - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; -}; - -&{/soc/power-management@280900000/power-controller@2d8} { - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; -}; - -&{/soc/power-management@280900000/power-controller@2e0} { - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; -}; - -&{/soc/power-management@280900000/power-controller@2e8} { - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; -}; - -&{/soc/power-management@280900000/power-controller@2f0} { - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; -}; - -&{/soc/power-management@280900000/power-controller@2f8} { - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; -}; - -&{/soc/power-management@280900000/power-controller@300} { - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; -}; - -&{/soc/power-management@280900000/power-controller@310} { - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; -}; - -&{/soc/power-management@280900000/power-controller@318} { - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; -}; - -&{/soc/power-management@280900000/power-controller@330} { - power-domains = <&{/soc/power-management@280900000/power-controller@308}>; -}; - -&{/soc/power-management@280900000/power-controller@338} { - power-domains = <&{/soc/power-management@280900000/power-controller@308}>; -}; - -&{/soc/power-management@280900000/power-controller@340} { - power-domains = <&{/soc/power-management@280900000/power-controller@308}>; -}; - -&{/soc/power-management@280900000/power-controller@360} { - power-domains = <&{/soc/power-management@280900000/power-controller@310}>; -}; - -&{/soc/power-management@280900000/power-controller@398} { - power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; -}; - -&{/soc/power-management@280900000/power-controller@3a0} { - power-domains = <&{/soc/power-management@280900000/power-controller@398}>; -}; - -&{/soc/power-management@280900000/power-controller@3c8} { -}; - -&{/soc/power-management@280900000/power-controller@3f8} { -}; - -&{/soc/power-management@288300000} { -}; - -&{/soc/power-management@288300000/power-controller@160} { -}; - -&{/soc/power-management@288300000/power-controller@168} { - power-domains = <&{/soc/power-management@280600000/power-controller@210} &{/soc/power-management@288300000/power-controller@160}>; -}; - -&{/soc/power-management@288300000/power-controller@170} { - power-domains = <&{/soc/power-management@280600000/power-controller@210} &{/soc/power-management@288300000/power-controller@160}>; -}; - -&{/soc/power-management@288300000/power-controller@178} { -}; - -&{/soc/power-management@288300000/power-controller@188} { - power-domains = <&{/soc/power-management@280600000/power-controller@238} &{/soc/power-management@288300000/power-controller@178}>; -}; - -&{/soc/power-management@288300000/power-controller@180} { - power-domains = <&{/soc/power-management@280600000/power-controller@238} &{/soc/power-management@288300000/power-controller@178}>; -}; - -&{/soc/power-management@288300000/power-controller@190} { -}; - -&{/soc/power-management@288300000/power-controller@198} { - power-domains = <&{/soc/power-management@280600000/power-controller@240} &{/soc/power-management@288300000/power-controller@190}>; -}; - -&{/soc/power-management@288300000/power-controller@1a0} { - power-domains = <&{/soc/power-management@280600000/power-controller@240} &{/soc/power-management@288300000/power-controller@190}>; -}; - -&{/soc/power-management@288300000/power-controller@58} { -}; - -&{/soc/power-management@288300000/power-controller@98} { -}; - -&{/soc/power-management@288300000/power-controller@a0} { -}; - -&{/soc/power-management@288300000/power-controller@a8} { -}; - -&{/soc/power-management@288300000/power-controller@b0} { -}; - -&{/soc/power-management@288300000/power-controller@b8} { -}; - -&{/soc/power-management@288300000/power-controller@c0} { -}; - -&{/soc/power-management@288300000/power-controller@c8} { -}; - -&{/soc/power-management@288300000/power-controller@d0} { -}; - -&{/soc/power-management@288300000/power-controller@d8} { -}; - -&{/soc/power-management@288300000/power-controller@e0} { -}; - -&{/soc/power-management@288300000/power-controller@e8} { -}; - -&{/soc/power-management@288300000/power-controller@f0} { -}; - -&{/soc/power-management@288300000/power-controller@f8} { -}; - -&{/soc/power-management@288300000/power-controller@100} { -}; - -&{/soc/power-management@288300000/power-controller@108} { -}; - -&{/soc/power-management@288300000/power-controller@110} { -}; - -&{/soc/power-management@288300000/power-controller@148} { -}; - -&{/soc/power-management@288300000/power-controller@150} { - power-domains = <&{/soc/power-management@280600000/power-controller@208} &{/soc/power-management@288300000/power-controller@148}>; -}; - -&{/soc/power-management@288300000/power-controller@158} { - power-domains = <&{/soc/power-management@280600000/power-controller@208} &{/soc/power-management@288300000/power-controller@148}>; -}; - -&{/soc/iommu@2b2340000} { -}; - -&{/soc/iommu@2b2300000} { -}; - -&{/soc/mailbox@2b2e08000} { -}; - -&{/soc/pmc-metadata@286700000} { -}; - -&{/soc/dcp@2b2e00000} { - mboxes = <&{/soc/mailbox@2b2e08000}>; - iommus = <&{/soc/iommu@2b2340000} 0x17>; - apple,bw-scratch = <&{/soc/pmc-metadata@286700000} 0x0 0x5 0x2c000>; - phys = <&{/soc/phy@383000000} 0x6 &{/soc/phy@2ab000000} 0x6 &{/soc/phy@38b000000} 0x6 &{/soc/phy@2a3000000} 0x6>; - mux-controls = <&{/soc/mux@38324c000} 0x0 &{/soc/mux@2ab24c000} 0x0 &{/soc/mux@38b24c000} 0x0 &{/soc/mux@2a324c000} 0x0>; -}; - -&{/soc/dcp@2b2e00000/piodma} { - iommus = <&{/soc/iommu@2b2300000} 0x10>; -}; - -&{/soc/dcp@2b2e00000/typec-routes} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@0} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@0/port} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@0/port/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@2/endpoint}>; -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@1} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@1/port} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@1/port/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@2/endpoint}>; -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@2} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@2/port} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@2/port/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@2/endpoint}>; -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@3} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@3/port} { -}; - -&{/soc/dcp@2b2e00000/typec-routes/route@3/port/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@2/endpoint}>; -}; - -&{/soc/dcp@2b2e00000/ports} { -}; - -&{/soc/dcp@2b2e00000/ports/port@0} { -}; - -&{/soc/dcp@2b2e00000/ports/port@0/endpoint} { - remote-endpoint = <&{/audio-controller-dispext0/ports/port@0/endpoint}>; -}; - -&{/soc/mailbox@2ab148000} { - status = "okay"; -}; - -&{/soc/phy@2ab000000} { - mboxes = <&{/soc/mailbox@2ab148000}>; - power-domains = <&{/soc/power-management@288300000/power-controller@160} &{/soc/power-management@280600000/power-controller@210} &{/soc/power-management@288300000/power-controller@170} &{/soc/power-management@288300000/power-controller@168}>; -}; - -&{/soc/phy@2ab000000/port} { -}; - -&{/soc/phy@2ab000000/port/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@1/endpoint}>; -}; - -&{/soc/usb@2aa280000} { - iommus = <&{/soc/iommu@2aaf00000} 0x0 &{/soc/iommu@2aaf80000} 0x1>; - power-domains = <&{/soc/power-management@288300000/power-controller@168}>; - resets = <&{/soc/phy@2ab000000} 0x0>; - phys = <&{/soc/phy@2ab000000} 0x3 &{/soc/phy@2ab000000} 0x4>; -}; - -&{/soc/usb@2aa280000/port} { -}; - -&{/soc/usb@2aa280000/port/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@0/endpoint}>; -}; - -&{/soc/iommu@2aaf00000} { - power-domains = <&{/soc/power-management@288300000/power-controller@168}>; -}; - -&{/soc/iommu@2aaf80000} { - power-domains = <&{/soc/power-management@288300000/power-controller@168}>; -}; - -&{/soc/interrupt-controller@280400000} { -}; - -&{/soc/serial@288e3c000} { -}; - -&{/soc/watchdog@28836c000} { - clocks = <&{/clock-ref}>; -}; - -&{/soc/mailbox@28c608000} { -}; - -&{/soc/pinctrl@290824000} { - gpio-ranges = <&{/soc/pinctrl@290824000} 0x0 0x0 0x55>; - interrupt-parent = <&{/soc/interrupt-controller@280400000}>; -}; - -&{/soc/pinctrl@290824000/acio0-lstx-pins} { -}; - -&{/soc/pinctrl@290824000/acio1-lstx-pins} { -}; - -&{/soc/pinctrl@290824000/acio3-lstx-pins} { -}; - -&{/soc/pinctrl@290824000/acio2-lstx-pins} { -}; - -&{/soc/smc@28c600000} { - mboxes = <&{/soc/mailbox@28c608000}>; -}; - -&{/soc/smc@28c600000/gpio-low} { -}; - -&{/soc/smc@28c600000/hwmon} { -}; - -&{/soc/smc@28c600000/hwmon/fan-F0Ac} { -}; - -&{/soc/smc@28c600000/hwmon/fan-F1Ac} { -}; - -&{/soc/smc@28c600000/reboot} { - nvmem-cells = <&{/soc/spmi@28a014000/pmic@e/nvmem-layout/shutdown-flag@f80f,3} &{/soc/spmi@28a014000/pmic@e/nvmem-layout/boot-stage@f801} &{/soc/spmi@28a014000/pmic@e/nvmem-layout/boot-error-count@f802,0} &{/soc/spmi@28a014000/pmic@e/nvmem-layout/panic-count@f802,4} &{/soc/spmi@28a014000/pmic@e/nvmem-layout/pm-setting@2001}>; -}; - -&{/soc/smc@28c600000/gpio} { -}; - -&{/soc/smc@28c600000/rtc} { - /delete-property/ wakeup-source; - /delete-property/ interrupts-extended; - nvmem-cells = <&{/soc/spmi@28a014000/pmic@e/nvmem-layout/rtc-offset@2100}>; - nvmem-cell-names = "rtc_offset"; -}; - -&{/soc/iommu@41dc50000} { -}; - -&{/soc/mailbox@419608000} { -}; - -&{/soc/nvme@45dcc0000} { - mboxes = <&{/soc/mailbox@419608000}>; - apple,sart = <&{/soc/iommu@41dc50000}>; -}; - -&{/soc/iommu@412000000} { -}; - -&{/soc/iommu@410000000} { -}; - -&{/soc/iommu@413000000} { -}; - -&{/soc/spmi@28a014000} { -}; - -&{/soc/spmi@28a014000/pmic@e} { -}; - -&{/soc/spmi@28a014000/pmic@e/nvmem-layout} { -}; - -&{/soc/spmi@28a014000/pmic@e/nvmem-layout/pm-setting@2001} { -}; - -&{/soc/spmi@28a014000/pmic@e/nvmem-layout/rtc-offset@2100} { -}; - -&{/soc/spmi@28a014000/pmic@e/nvmem-layout/boot-stage@f801} { -}; - -&{/soc/spmi@28a014000/pmic@e/nvmem-layout/boot-error-count@f802,0} { -}; - -&{/soc/spmi@28a014000/pmic@e/nvmem-layout/panic-count@f802,4} { -}; - -&{/soc/spmi@28a014000/pmic@e/nvmem-layout/shutdown-flag@f80f,3} { -}; - -&{/soc/power-management@286806000} { -}; - -&{/soc/power-management@286806000/performance-controller@1} { - apple,smc = <&smc>; -}; - -&{/soc/reset-controller@280620000} { - status = "okay"; -}; - -&{/soc/mailbox@383148000} { -}; - -&{/soc/phy@383000000} { - mboxes = <&{/soc/mailbox@383148000}>; - power-domains = <&{/soc/power-management@288300000/power-controller@178} &{/soc/power-management@280600000/power-controller@238} &{/soc/power-management@288300000/power-controller@188} &{/soc/power-management@288300000/power-controller@180}>; -}; - -&{/soc/phy@383000000/port} { -}; - -&{/soc/phy@383000000/port/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@1/endpoint}>; -}; - -&{/soc/mux@38324c000} { - power-domains = <&{/soc/power-management@288300000/power-controller@178} &{/soc/power-management@280600000/power-controller@238}>; -}; - -&{/soc/spmi@28a188000} { - status = "okay"; -}; - -&{/soc/spmi@28a188000/usb-pd@c} { -}; - -&{/soc/spmi@28a188000/usb-pd@c/connector} { -}; - -&{/soc/spmi@28a188000/usb-pd@c/connector/ports} { -}; - -&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@0} { -}; - -&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@0/endpoint} { - remote-endpoint = <&{/soc/usb@2a2280000/port/endpoint}>; -}; - -&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@1} { -}; - -&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@1/endpoint} { - remote-endpoint = <&{/soc/phy@2a3000000/port/endpoint}>; -}; - -&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@3} { -}; - -&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@3/endpoint} { - remote-endpoint = <&{/soc/acio@2a1ac0000/ports/port@1/endpoint}>; -}; - -&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@2} { -}; - -&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@2/endpoint} { - remote-endpoint = <&{/soc/dcp@2b2e00000/typec-routes/route@3/port/endpoint}>; -}; - -&{/soc/spmi@28a188000/usb-pd@a} { -}; - -&{/soc/spmi@28a188000/usb-pd@a/connector} { -}; - -&{/soc/spmi@28a188000/usb-pd@a/connector/ports} { -}; - -&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@0} { -}; - -&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@0/endpoint} { - remote-endpoint = <&{/soc/usb@2aa280000/port/endpoint}>; -}; - -&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@1} { -}; - -&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@1/endpoint} { - remote-endpoint = <&{/soc/phy@2ab000000/port/endpoint}>; -}; - -&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@3} { -}; - -&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@3/endpoint} { - remote-endpoint = <&{/soc/acio@2a9ac0000/ports/port@1/endpoint}>; -}; - -&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@2} { -}; - -&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@2/endpoint} { - remote-endpoint = <&{/soc/dcp@2b2e00000/typec-routes/route@1/port/endpoint}>; -}; - -&{/soc/spmi@28a188000/usb-pd@8} { -}; - -&{/soc/spmi@28a188000/usb-pd@8/connector} { -}; - -&{/soc/spmi@28a188000/usb-pd@8/connector/ports} { -}; - -&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@0} { -}; - -&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@0/endpoint} { - remote-endpoint = <&{/soc/usb@382280000/port/endpoint}>; -}; - -&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@1} { -}; - -&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@1/endpoint} { - remote-endpoint = <&{/soc/phy@383000000/port/endpoint}>; -}; - -&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@3} { -}; - -&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@3/endpoint} { - remote-endpoint = <&{/soc/acio@381ac0000/ports/port@1/endpoint}>; -}; - -&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@2} { -}; - -&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@2/endpoint} { - remote-endpoint = <&{/soc/dcp@2b2e00000/typec-routes/route@0/port/endpoint}>; -}; - -&{/soc/spmi@28a188000/usb-pd@6} { -}; - -&{/soc/spmi@28a188000/usb-pd@6/connector} { -}; - -&{/soc/spmi@28a188000/usb-pd@6/connector/ports} { -}; - -&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@0} { -}; - -&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@0/endpoint} { - remote-endpoint = <&{/soc/usb@38a280000/port/endpoint}>; -}; - -&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@1} { -}; - -&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@1/endpoint} { - remote-endpoint = <&{/soc/phy@38b000000/port/endpoint}>; -}; - -&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@3} { -}; - -&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@3/endpoint} { - remote-endpoint = <&{/soc/acio@389ac0000/ports/port@1/endpoint}>; -}; - -&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@2} { -}; - -&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@2/endpoint} { - remote-endpoint = <&{/soc/dcp@2b2e00000/typec-routes/route@2/port/endpoint}>; -}; - -&{/soc/usb@382280000} { - iommus = <&{/soc/iommu@382f00000} 0x0 &{/soc/iommu@382f80000} 0x1>; - power-domains = <&{/soc/power-management@288300000/power-controller@180}>; - resets = <&{/soc/phy@383000000} 0x0>; - phys = <&{/soc/phy@383000000} 0x3 &{/soc/phy@383000000} 0x4>; -}; - -&{/soc/usb@382280000/port} { -}; - -&{/soc/usb@382280000/port/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@0/endpoint}>; -}; - -&{/soc/iommu@382f00000} { - power-domains = <&{/soc/power-management@288300000/power-controller@180}>; -}; - -&{/soc/iommu@382f80000} { - power-domains = <&{/soc/power-management@288300000/power-controller@180}>; -}; - -&{/soc/mailbox@38b148000} { - status = "okay"; -}; - -&{/soc/phy@38b000000} { - mboxes = <&{/soc/mailbox@38b148000}>; - power-domains = <&{/soc/power-management@288300000/power-controller@190} &{/soc/power-management@280600000/power-controller@240} &{/soc/power-management@288300000/power-controller@1a0} &{/soc/power-management@288300000/power-controller@198}>; -}; - -&{/soc/phy@38b000000/port} { -}; - -&{/soc/phy@38b000000/port/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@1/endpoint}>; -}; - -&{/soc/usb@38a280000} { - iommus = <&{/soc/iommu@38af00000} 0x0 &{/soc/iommu@38af80000} 0x1>; - power-domains = <&{/soc/power-management@288300000/power-controller@198}>; - resets = <&{/soc/phy@38b000000} 0x0>; - phys = <&{/soc/phy@38b000000} 0x3 &{/soc/phy@38b000000} 0x4>; -}; - -&{/soc/usb@38a280000/port} { -}; - -&{/soc/usb@38a280000/port/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@0/endpoint}>; -}; - -&{/soc/iommu@38af00000} { - power-domains = <&{/soc/power-management@288300000/power-controller@198}>; -}; - -&{/soc/iommu@38af80000} { - power-domains = <&{/soc/power-management@288300000/power-controller@198}>; -}; - -&{/soc/spmi@28a1c8000} { -}; - -&{/soc/pinctrl@29c000000} { - gpio-ranges = <&{/soc/pinctrl@29c000000} 0x0 0x0 0xdd>; - interrupt-parent = <&{/soc/interrupt-controller@280400000}>; -}; - -&{/soc/i2c@505014000} { - clocks = <&{/clock-ref}>; - interrupt-parent = <&{/soc/interrupt-controller@280400000}>; - power-domains = <&{/soc/power-management@280900000/power-controller@2c8}>; -}; - -&{/soc/i2c@505014000/codec@38} { - shutdown-gpios = <&{/soc/pinctrl@29c000000} 0x6b 0x0>; - interrupts-extended = <&{/soc/pinctrl@29c000000} 0x6a 0x8>; -}; - -&{/soc/i2c@505018000} { - clocks = <&{/clock-ref}>; - interrupt-parent = <&{/soc/interrupt-controller@280400000}>; - power-domains = <&{/soc/power-management@280900000/power-controller@2d0}>; -}; - -&{/soc/i2c@505018000/codec@4b} { - reset-gpios = <&{/soc/pinctrl@29c000000} 0x8b 0x0>; - interrupts-extended = <&{/soc/pinctrl@29c000000} 0x86 0x8>; -}; - -&{/soc/pwm@505040000} { - clocks = <&{/clock-ref}>; - power-domains = <&{/soc/power-management@280900000/power-controller@2a8}>; -}; - -&{/soc/pwm@505044000} { - clocks = <&{/clock-ref}>; - power-domains = <&{/soc/power-management@280900000/power-controller@2b0}>; -}; - -&{/soc/pwm@505048000} { - clocks = <&{/clock-ref}>; - power-domains = <&{/soc/power-management@280900000/power-controller@2b8}>; -}; - -&{/soc/spi@505118000} { - clocks = <&{/clock-405m}>; - interrupt-parent = <&{/soc/interrupt-controller@280400000}>; - power-domains = <&{/soc/power-management@280900000/power-controller@350}>; -}; - -&{/soc/spi@505118000/flash@0} { -}; - -&{/soc/spi@505118000/flash@0/partitions} { -}; - -&{/soc/spi@505118000/flash@0/partitions/partition@700000} { -}; - -&{/soc/mailbox@290608000} { -}; - -&{/soc/iommu@290fc0000} { - interrupt-parent = <&{/soc/interrupt-controller@280400000}>; -}; - -&{/soc/dma-controller@293800000} { - interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x27d 0x4 0 0 0>; - iommus = <&{/soc/iommu@290fc0000} 0x8>; -}; - -&{/soc/aop@290c00000} { - mboxes = <&{/soc/mailbox@290608000}>; - iommus = <&{/soc/iommu@290fc0000} 0x0>; -}; - -&{/soc/aop@290c00000/audio} { - dmas = <&{/soc/dma-controller@293800000} 0x4 &{/soc/dma-controller@293800000} 0x5 &{/soc/dma-controller@293800000} 0x0 &{/soc/dma-controller@293800000} 0x1>; -}; - -&{/soc/mailbox@2a1108000} { -}; - -&{/soc/acio@2a1ac0000} { - mboxes = <&{/soc/mailbox@2a1108000}>; - resets = <&{/soc/reset-controller@280620000} 0x0>; - power-domains = <&{/soc/power-management@280600000/power-controller@280} &{/soc/power-management@280600000/power-controller@338} &{/soc/power-management@280600000/power-controller@340} &{/soc/power-management@280600000/power-controller@348}>; - pinctrl-0 = <&{/soc/pinctrl@290824000/acio0-lstx-pins}>; - lstx-gpios = <&{/soc/pinctrl@290824000} 0x4d 0x0>; - apple,tunable-pcie-adapter = <0x1008 0x6 0x6>; - apple,tunable-router-ap-fw = <0x8 0xff2 0x482>; -}; - -&{/soc/acio@2a1ac0000/iommu@a80000} { - power-domains = <&{/soc/power-management@280600000/power-controller@280}>; -}; - -&{/soc/acio@2a1ac0000/nhi@f00000} { - iommus = <&{/soc/acio@2a1ac0000/iommu@a80000} 0x0 &{/soc/acio@2a1ac0000/iommu@a80000} 0x1 &{/soc/acio@2a1ac0000/iommu@a80000} 0x2 &{/soc/acio@2a1ac0000/iommu@a80000} 0x3 &{/soc/acio@2a1ac0000/iommu@a80000} 0x4 &{/soc/acio@2a1ac0000/iommu@a80000} 0x5 &{/soc/acio@2a1ac0000/iommu@a80000} 0x6 &{/soc/acio@2a1ac0000/iommu@a80000} 0x7 &{/soc/acio@2a1ac0000/iommu@a80000} 0x8 &{/soc/acio@2a1ac0000/iommu@a80000} 0x9 &{/soc/acio@2a1ac0000/iommu@a80000} 0xa &{/soc/acio@2a1ac0000/iommu@a80000} 0xb &{/soc/acio@2a1ac0000/iommu@a80000} 0x10 &{/soc/acio@2a1ac0000/iommu@a80000} 0x11 &{/soc/acio@2a1ac0000/iommu@a80000} 0x12 &{/soc/acio@2a1ac0000/iommu@a80000} 0x13 &{/soc/acio@2a1ac0000/iommu@a80000} 0x14 &{/soc/acio@2a1ac0000/iommu@a80000} 0x15 &{/soc/acio@2a1ac0000/iommu@a80000} 0x16 &{/soc/acio@2a1ac0000/iommu@a80000} 0x17 &{/soc/acio@2a1ac0000/iommu@a80000} 0x18 &{/soc/acio@2a1ac0000/iommu@a80000} 0x19 &{/soc/acio@2a1ac0000/iommu@a80000} 0x1a &{/soc/acio@2a1ac0000/iommu@a80000} 0x1b>; -}; - -&{/soc/acio@2a1ac0000/ports} { -}; - -&{/soc/acio@2a1ac0000/ports/port@1} { -}; - -&{/soc/acio@2a1ac0000/ports/port@1/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@3/endpoint}>; -}; - -&{/soc/mailbox@2a9108000} { -}; - -&{/soc/acio@2a9ac0000} { - mboxes = <&{/soc/mailbox@2a9108000}>; - resets = <&{/soc/reset-controller@280620000} 0x1>; - power-domains = <&{/soc/power-management@280600000/power-controller@290} &{/soc/power-management@280600000/power-controller@350} &{/soc/power-management@280600000/power-controller@358} &{/soc/power-management@280600000/power-controller@360}>; - pinctrl-0 = <&{/soc/pinctrl@290824000/acio1-lstx-pins}>; - lstx-gpios = <&{/soc/pinctrl@290824000} 0x4f 0x0>; - apple,tunable-pcie-adapter = <0x1008 0x6 0x6>; - apple,tunable-router-ap-fw = <0x8 0xff2 0x482>; -}; - -&{/soc/acio@2a9ac0000/iommu@a80000} { - power-domains = <&{/soc/power-management@280600000/power-controller@290}>; -}; - -&{/soc/acio@2a9ac0000/nhi@f00000} { - iommus = <&{/soc/acio@2a9ac0000/iommu@a80000} 0x0 &{/soc/acio@2a9ac0000/iommu@a80000} 0x1 &{/soc/acio@2a9ac0000/iommu@a80000} 0x2 &{/soc/acio@2a9ac0000/iommu@a80000} 0x3 &{/soc/acio@2a9ac0000/iommu@a80000} 0x4 &{/soc/acio@2a9ac0000/iommu@a80000} 0x5 &{/soc/acio@2a9ac0000/iommu@a80000} 0x6 &{/soc/acio@2a9ac0000/iommu@a80000} 0x7 &{/soc/acio@2a9ac0000/iommu@a80000} 0x8 &{/soc/acio@2a9ac0000/iommu@a80000} 0x9 &{/soc/acio@2a9ac0000/iommu@a80000} 0xa &{/soc/acio@2a9ac0000/iommu@a80000} 0xb &{/soc/acio@2a9ac0000/iommu@a80000} 0x10 &{/soc/acio@2a9ac0000/iommu@a80000} 0x11 &{/soc/acio@2a9ac0000/iommu@a80000} 0x12 &{/soc/acio@2a9ac0000/iommu@a80000} 0x13 &{/soc/acio@2a9ac0000/iommu@a80000} 0x14 &{/soc/acio@2a9ac0000/iommu@a80000} 0x15 &{/soc/acio@2a9ac0000/iommu@a80000} 0x16 &{/soc/acio@2a9ac0000/iommu@a80000} 0x17 &{/soc/acio@2a9ac0000/iommu@a80000} 0x18 &{/soc/acio@2a9ac0000/iommu@a80000} 0x19 &{/soc/acio@2a9ac0000/iommu@a80000} 0x1a &{/soc/acio@2a9ac0000/iommu@a80000} 0x1b>; -}; - -&{/soc/acio@2a9ac0000/ports} { -}; - -&{/soc/acio@2a9ac0000/ports/port@1} { -}; - -&{/soc/acio@2a9ac0000/ports/port@1/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@a/connector/ports/port@3/endpoint}>; -}; - -&{/soc/mailbox@389108000} { -}; - -&{/soc/acio@389ac0000} { - mboxes = <&{/soc/mailbox@389108000}>; - resets = <&{/soc/reset-controller@280620000} 0x3>; - power-domains = <&{/soc/power-management@280600000/power-controller@2f8} &{/soc/power-management@280600000/power-controller@410} &{/soc/power-management@280600000/power-controller@418} &{/soc/power-management@280600000/power-controller@420}>; - pinctrl-0 = <&{/soc/pinctrl@290824000/acio3-lstx-pins}>; - lstx-gpios = <&{/soc/pinctrl@290824000} 0x53 0x0>; - apple,tunable-pcie-adapter = <0x1008 0x6 0x6>; - apple,tunable-router-ap-fw = <0x8 0xff2 0x482>; -}; - -&{/soc/acio@389ac0000/iommu@a80000} { - power-domains = <&{/soc/power-management@280600000/power-controller@2f8}>; -}; - -&{/soc/acio@389ac0000/nhi@f00000} { - iommus = <&{/soc/acio@389ac0000/iommu@a80000} 0x0 &{/soc/acio@389ac0000/iommu@a80000} 0x1 &{/soc/acio@389ac0000/iommu@a80000} 0x2 &{/soc/acio@389ac0000/iommu@a80000} 0x3 &{/soc/acio@389ac0000/iommu@a80000} 0x4 &{/soc/acio@389ac0000/iommu@a80000} 0x5 &{/soc/acio@389ac0000/iommu@a80000} 0x6 &{/soc/acio@389ac0000/iommu@a80000} 0x7 &{/soc/acio@389ac0000/iommu@a80000} 0x8 &{/soc/acio@389ac0000/iommu@a80000} 0x9 &{/soc/acio@389ac0000/iommu@a80000} 0xa &{/soc/acio@389ac0000/iommu@a80000} 0xb &{/soc/acio@389ac0000/iommu@a80000} 0x10 &{/soc/acio@389ac0000/iommu@a80000} 0x11 &{/soc/acio@389ac0000/iommu@a80000} 0x12 &{/soc/acio@389ac0000/iommu@a80000} 0x13 &{/soc/acio@389ac0000/iommu@a80000} 0x14 &{/soc/acio@389ac0000/iommu@a80000} 0x15 &{/soc/acio@389ac0000/iommu@a80000} 0x16 &{/soc/acio@389ac0000/iommu@a80000} 0x17 &{/soc/acio@389ac0000/iommu@a80000} 0x18 &{/soc/acio@389ac0000/iommu@a80000} 0x19 &{/soc/acio@389ac0000/iommu@a80000} 0x1a &{/soc/acio@389ac0000/iommu@a80000} 0x1b>; -}; - -&{/soc/acio@389ac0000/ports} { -}; - -&{/soc/acio@389ac0000/ports/port@1} { -}; - -&{/soc/acio@389ac0000/ports/port@1/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@6/connector/ports/port@3/endpoint}>; -}; - -&{/soc/mailbox@294608000} { -}; - -&{/soc/iommu@294800000} { - /delete-property/ status; -}; - -&{/soc/mtp@294600000} { - mboxes = <&{/soc/mailbox@294608000}>; - iommus = <&{/soc/iommu@294800000} 0x0>; -}; - -&{/soc/fifo@294b14000} { -}; - -&{/soc/mailbox@381108000} { -}; - -&{/soc/acio@381ac0000} { - mboxes = <&{/soc/mailbox@381108000}>; - resets = <&{/soc/reset-controller@280620000} 0x2>; - power-domains = <&{/soc/power-management@280600000/power-controller@2e8} &{/soc/power-management@280600000/power-controller@3f8} &{/soc/power-management@280600000/power-controller@400} &{/soc/power-management@280600000/power-controller@408}>; - pinctrl-0 = <&{/soc/pinctrl@290824000/acio2-lstx-pins}>; - lstx-gpios = <&{/soc/pinctrl@290824000} 0x51 0x0>; - apple,tunable-pcie-adapter = <0x1008 0x6 0x6>; - apple,tunable-router-ap-fw = <0x8 0xff2 0x482>; -}; - -&{/soc/acio@381ac0000/iommu@a80000} { - power-domains = <&{/soc/power-management@280600000/power-controller@2e8}>; -}; - -&{/soc/acio@381ac0000/nhi@f00000} { - iommus = <&{/soc/acio@381ac0000/iommu@a80000} 0x0 &{/soc/acio@381ac0000/iommu@a80000} 0x1 &{/soc/acio@381ac0000/iommu@a80000} 0x2 &{/soc/acio@381ac0000/iommu@a80000} 0x3 &{/soc/acio@381ac0000/iommu@a80000} 0x4 &{/soc/acio@381ac0000/iommu@a80000} 0x5 &{/soc/acio@381ac0000/iommu@a80000} 0x6 &{/soc/acio@381ac0000/iommu@a80000} 0x7 &{/soc/acio@381ac0000/iommu@a80000} 0x8 &{/soc/acio@381ac0000/iommu@a80000} 0x9 &{/soc/acio@381ac0000/iommu@a80000} 0xa &{/soc/acio@381ac0000/iommu@a80000} 0xb &{/soc/acio@381ac0000/iommu@a80000} 0x10 &{/soc/acio@381ac0000/iommu@a80000} 0x11 &{/soc/acio@381ac0000/iommu@a80000} 0x12 &{/soc/acio@381ac0000/iommu@a80000} 0x13 &{/soc/acio@381ac0000/iommu@a80000} 0x14 &{/soc/acio@381ac0000/iommu@a80000} 0x15 &{/soc/acio@381ac0000/iommu@a80000} 0x16 &{/soc/acio@381ac0000/iommu@a80000} 0x17 &{/soc/acio@381ac0000/iommu@a80000} 0x18 &{/soc/acio@381ac0000/iommu@a80000} 0x19 &{/soc/acio@381ac0000/iommu@a80000} 0x1a &{/soc/acio@381ac0000/iommu@a80000} 0x1b>; -}; - -&{/soc/acio@381ac0000/ports} { -}; - -&{/soc/acio@381ac0000/ports/port@1} { -}; - -&{/soc/acio@381ac0000/ports/port@1/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@8/connector/ports/port@3/endpoint}>; -}; - -&{/soc/sep@502600000} { - mboxes = <&{/soc/mailbox@502608000}>; - iommus = <&{/soc/iommu@500b80000} 0x0>; - power-domains = <&{/soc/power-management@280900000/power-controller@298}>; - clocks = <&{/soc/clock-controller@280600000} 0x1bf>; -}; - -&{/soc/mailbox@502608000} { -}; - -&{/soc/iommu@500b80000} { -}; - -&{/soc/mailbox@2a3148000} { -}; - -&{/soc/phy@2a3000000} { - mboxes = <&{/soc/mailbox@2a3148000}>; - power-domains = <&{/soc/power-management@288300000/power-controller@148} &{/soc/power-management@280600000/power-controller@208} &{/soc/power-management@288300000/power-controller@158} &{/soc/power-management@288300000/power-controller@150}>; -}; - -&{/soc/phy@2a3000000/port} { -}; - -&{/soc/phy@2a3000000/port/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@1/endpoint}>; -}; - -&{/pcie@1cb0000000} { - msi-parent = <&{/pcie@1cb0000000}>; - iommu-map = <0x100 &{/soc/iommu@412000000} 0x1 0x1 0x200 &{/soc/iommu@413000000} 0x1 0x1 0x300 &{/soc/iommu@410000000} 0x1 0x3 0x400 &{/soc/iommu@411000000} 0x1 0x1>; -}; - -&{/pcie@1cb0000000/pci@2,0} { - interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@2,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@2,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@2,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@2,0} 0x0 0x0 0x0 0x3>; -}; - -&{/pcie@1cb0000000/pci@2,0/ethernet@0,0} { -}; - -&{/pcie@1cb0000000/pci@3,0} { - interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@3,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@3,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@3,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@3,0} 0x0 0x0 0x0 0x3>; -}; - -&{/pcie@1cb0000000/pci@0,0} { - reset-gpios = <&{/soc/pinctrl@29c000000} 0x50 0x1>; - interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@0,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@0,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@0,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@0,0} 0x0 0x0 0x0 0x3>; -}; - -&{/pcie@1cb0000000/pci@0,0/control@0,0} { -}; - -&{/pcie@1cb0000000/pci@0,0/wifi@0,1} { -}; - -&{/pcie@1cb0000000/pci@0,0/bluetooth@0,2} { -}; - -&{/pcie@1cb0000000/pci@1,0} { - interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x3>; -}; - -&{/pcie@1cb0000000/pci@1,0/sdcard@0,0} { -}; - -&{/aliases} { - serial0 = "/soc/serial@288e3c000"; - nvram = "/soc/spi@505118000/flash@0/partitions/partition@700000"; - atcphy0 = "/soc/phy@2a3000000"; - atcphy1 = "/soc/phy@2ab000000"; - atcphy2 = "/soc/phy@383000000"; - atcphy3 = "/soc/phy@38b000000"; - usb4-0-acio = "/soc/acio@2a1ac0000"; - usb4-0-nhi = "/soc/acio@2a1ac0000/nhi@f00000"; - usb4-1-acio = "/soc/acio@2a9ac0000"; - usb4-1-nhi = "/soc/acio@2a9ac0000/nhi@f00000"; - usb4-2-acio = "/soc/acio@381ac0000"; - usb4-2-nhi = "/soc/acio@381ac0000/nhi@f00000"; - usb4-3-acio = "/soc/acio@389ac0000"; - usb4-3-nhi = "/soc/acio@389ac0000/nhi@f00000"; -}; - -&{/chosen} { - /delete-property/ bootargs; -}; - -&{/soc/power-management@2380600000} { -}; - -&{/soc/power-management@2380600000/power-controller@1b0} { -}; - -&{/soc/power-management@2380600000/power-controller@1d8} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1b0}>; -}; - -&{/soc/power-management@2380600000/power-controller@1a0} { -}; - -&{/soc/power-management@2380600000/power-controller@1a8} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1a0}>; -}; - -&{/soc/power-management@2380600000/power-controller@1b8} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1a0}>; -}; - -&{/soc/power-management@2380600000/power-controller@1c0} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1a8}>; -}; - -&{/soc/power-management@2380600000/power-controller@1c8} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1a8}>; -}; - -&{/soc/power-management@2380600000/power-controller@1d0} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1a8}>; -}; - -&{/soc/power-management@2380600000/power-controller@1e0} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1b0}>; -}; - -&{/soc/power-management@2380600000/power-controller@1f0} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1b8}>; -}; - -&{/soc/power-management@2380600000/power-controller@1f8} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1b8}>; -}; - -&{/soc/power-management@2380600000/power-controller@200} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1c8}>; -}; - -&{/soc/power-management@2380600000/power-controller@208} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1f8}>; -}; - -&{/soc/power-management@2380600000/power-controller@8000} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1c0}>; -}; - -&{/soc/power-management@2380600000/power-controller@8008} { - power-domains = <&{/soc/power-management@2380600000/power-controller@8000}>; -}; - -&{/soc/power-management@2380600000/power-controller@8010} { - power-domains = <&{/soc/power-management@2380600000/power-controller@8000}>; -}; - -&{/soc/power-management@2380600000/power-controller@8018} { - power-domains = <&{/soc/power-management@2380600000/power-controller@8000}>; -}; - -&{/soc/power-management@2380600000/power-controller@8020} { - power-domains = <&{/soc/power-management@2380600000/power-controller@8018}>; -}; - -&{/soc/power-management@2380600000/power-controller@8028} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1f0}>; -}; - -&{/soc/power-management@2380600000/power-controller@8030} { - power-domains = <&{/soc/power-management@2380600000/power-controller@8028}>; -}; - -&{/soc/power-management@2380600000/power-controller@8038} { - power-domains = <&{/soc/power-management@2380600000/power-controller@8028}>; -}; - -&{/soc/power-management@2380600000/power-controller@8040} { - power-domains = <&{/soc/power-management@2380600000/power-controller@8028}>; -}; - -&{/soc/power-management@2380600000/power-controller@8048} { - power-domains = <&{/soc/power-management@2380600000/power-controller@8040}>; -}; - -&{/soc/iommu@2309020000} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1d8}>; - status = "disabled"; -}; - -&{/soc@2300000000/power-management@2300e80000} { -}; - -&{/soc@2300000000/power-management@2300e80000/power-controller@0} { -}; - -&{/soc@2300000000/power-management@2300e80000/power-controller@100} { -}; - -&{/soc@2300000000/power-management@2300e80000/power-controller@110} { - power-domains = <&{/soc@2300000000/power-management@2300e80000/power-controller@100} &{/soc@2300000000/power-management@2300e80000/power-controller@0}>; -}; - -&{/soc/clock-controller@280600000} { - apple,pmgr = <&{/soc/power-management@280600000}>; -}; - -&{/soc/spmi@28a054000} { -}; - -&{/soc/spmi@28a114000} { -}; - -&{/soc/i2c@505024000} { - power-domains = <&{/soc/power-management@280900000/power-controller@2e8}>; - clocks = <&{/soc/clock-controller@280600000} 0x4>; -}; - -&{/soc/i2c@505010000} { - power-domains = <&{/soc/power-management@280900000/power-controller@2c0}>; - clocks = <&{/soc/clock-controller@280600000} 0x4>; -}; - -&{/soc/i2c@505020000} { - power-domains = <&{/soc/power-management@280900000/power-controller@2e0}>; - clocks = <&{/soc/clock-controller@280600000} 0x4>; -}; - -&{/soc/i2c@505028000} { - power-domains = <&{/soc/power-management@280900000/power-controller@2f0}>; - clocks = <&{/soc/clock-controller@280600000} 0x4>; -}; - -&{/soc/i2c@505030000} { - power-domains = <&{/soc/power-management@280900000/power-controller@300}>; - clocks = <&{/soc/clock-controller@280600000} 0x4>; -}; - -&{/soc/dma-controller@410030000} { - iommus = <&{/soc/iommu@410000000} 0x11>; -}; - -&{/soc/iommu@411000000} { -}; - -&{/soc/dma-controller@411030000} { - iommus = <&{/soc/iommu@411000000} 0x11>; -}; - -&{/soc/iommu@2a4000000} { -}; - -&{/soc/dma-controller@2a4068000} { - iommus = <&{/soc/iommu@2a4000000} 0xfe>; -}; - -&{/soc/iommu@2ac000000} { -}; - -&{/soc/dma-controller@2ac068000} { - iommus = <&{/soc/iommu@2ac000000} 0xfe>; -}; - -&{/soc/iommu@384000000} { -}; - -&{/soc/dma-controller@384068000} { - iommus = <&{/soc/iommu@384000000} 0xfe>; -}; - -&{/soc/mux@2a324c000} { -}; - -&{/soc/dpin@2a1e50000} { -}; - -&{/soc/dpin@2a1e58000} { -}; - -&{/soc/dpin@2a1e68000} { -}; - -&{/soc/dpin@2a1e70000} { -}; - -&{/soc/mux@2ab24c000} { -}; - -&{/soc/dpin@2a9e50000} { -}; - -&{/soc/dpin@2a9e58000} { -}; - -&{/soc/dpin@2a9e68000} { -}; - -&{/soc/dpin@2a9e70000} { -}; - -&{/soc/dpin@381e50000} { -}; - -&{/soc/dpin@381e58000} { -}; - -&{/soc/dpin@381e68000} { -}; - -&{/soc/dpin@381e70000} { -}; - -&{/soc/mux@38b24c000} { -}; - -&{/soc/aic-timebase@280580000} { -}; - -&{/soc/error-handler@2220000000} { -}; - -&{/soc/crypto@50500c000} { - iommus = <&{/soc/iommu@505060000} 0x1>; - power-domains = <&{/soc/power-management@280900000/power-controller@318}>; -}; - -&{/soc/phy-coproc@395d08000} { -}; - -&{/soc/pinctrl@2881e4000} { - /delete-property/ gpio-line-names; - /delete-property/ interrupt-parent; - status = "okay"; - gpio-ranges = <&{/soc/pinctrl@2881e4000} 0x0 0x0 0x3d>; -}; - -&{/soc/pinctrl@2881e4000/usb3hub-rst-hog} { -}; - -&{/soc/mailbox@4d067c000} { - iommus = <&{/soc/iommu@290fc0000} 0x1>; -}; - -&{/soc/aop@291600000} { - iommus = <&{/soc/iommu@290fc0000} 0x10>; -}; - -&{/soc/event-log@280040000} { -}; - -&{/soc/dma-controller@505e00000} { - iommus = <&{/soc/iommu@505060000} 0x0>; - power-domains = <&{/soc/power-management@280900000/power-controller@2a0}>; - clocks = <&{/soc/clock-controller@280600000} 0x167 &{/soc/clock-controller@280600000} 0x166>; -}; - -&{/soc/iommu@505060000} { - power-domains = <&{/soc/power-management@280900000/power-controller@290}>; -}; - -&{/soc/pmp@284e00000} { - mboxes = <&{/soc/mailbox@284e08000}>; - iommus = <&{/soc/iommu@2841a0000} 0x0>; - power-domains = <&{/soc/power-management@280600000/power-controller@128} &{/soc/power-management@280600000/power-controller@130}>; -}; - -&{/soc/mailbox@284e08000} { - power-domains = <&{/soc/power-management@280600000/power-controller@128}>; -}; - -&{/soc/pmp-report@284240000} { - power-domains = <&{/soc/power-management@280600000/power-controller@130}>; -}; - -&{/soc/pmp-report@284240000/report@c} { -}; - -&{/soc/pmp-report@284240000/report@d} { -}; - -&{/soc/pmp-report@284240000/report@e} { -}; - -&{/soc/pmp-report@284240000/report@f} { - power-domains = <&{/soc@2300000000/power-management@2300e80000/power-controller@110}>; -}; - -&{/soc/pmp-report@284240000/report@12} { -}; - -&{/soc/pmp-report@284240000/report@24} { -}; - -&{/soc/iommu@2841a0000} { - power-domains = <&{/soc/power-management@280600000/power-controller@128}>; -}; - -&{/soc/aon-ptd@28cdc0000} { -}; - -&{/soc/rsm@288825000} { - iommus = <&{/soc/iommu@2889a0000} 0x0>; - power-domains = <&{/soc/power-management@288300000/power-controller@58}>; -}; - -&{/soc/iommu@2889a0000} { - power-domains = <&{/soc/power-management@288300000/power-controller@58}>; -}; - -&{/soc/serial@505200000} { - power-domains = <&{/soc/power-management@280900000/power-controller@360}>; - clocks = <&{/soc/clock-controller@280600000} 0x1c9 &{/soc/clock-controller@280600000} 0x4>; -}; - -&{/soc/iommu@2a2f00000} { - power-domains = <&{/soc/power-management@288300000/power-controller@150}>; -}; - -&{/soc/iommu@2a2f80000} { - power-domains = <&{/soc/power-management@288300000/power-controller@150}>; -}; - -&{/soc/usb@2a2280000} { - iommus = <&{/soc/iommu@2a2f00000} 0x0 &{/soc/iommu@2a2f80000} 0x1>; - power-domains = <&{/soc/power-management@288300000/power-controller@150}>; - resets = <&{/soc/phy@2a3000000} 0x0>; - phys = <&{/soc/phy@2a3000000} 0x3 &{/soc/phy@2a3000000} 0x4>; -}; - -&{/soc/usb@2a2280000/port} { -}; - -&{/soc/usb@2a2280000/port/endpoint} { - remote-endpoint = <&{/soc/spmi@28a188000/usb-pd@c/connector/ports/port@0/endpoint}>; -}; - -&{/soc/iommu@395d60000} { - power-domains = <&{/soc/power-management@280600000/power-controller@248}>; -}; - -&{/soc/usb@3953f0000} { - iommus = <&{/soc/iommu@395d60000} 0x0>; - power-domains = <&{/soc/power-management@280600000/power-controller@248}>; -}; - -&{/soc/spmi@28a094000} { -}; - -&{/soc/spmi@28a0d4000} { -}; - -&{/soc/spmi@290914000} { -}; - -&{/soc/aux@29c260000} { - power-domains = <&{/soc/power-management@280900000/power-controller@108}>; -}; - -&{/soc/aux@29c264000} { - power-domains = <&{/soc/power-management@280900000/power-controller@110}>; -}; - -&{/soc/iommu@48a300000} { -}; - -&{/soc/dcp-expert@48a3ac058} { -}; - -&{/soc/mailbox@48ae08000} { -}; - -&{/soc/iommu@48a340000} { -}; - -&{/soc/iommu@48a180000} { -}; - -&{/soc/dma-controller@48a140000} { - interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x3f4 0x4 0 0 0>; - iommus = <&{/soc/iommu@48a180000} 0x1e>; -}; - -&{/soc/dma-control@48a2f4000} { -}; - -&{/soc/dcp-expert@2b23ac058} { -}; - -&{/soc/iommu@2b2180000} { - power-domains = <&{/soc/power-management@280600000/power-controller@270}>; -}; - -&{/soc/dma-controller@2b2140000} { - interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x444 0x4 0 0 0>; - iommus = <&{/soc/iommu@2b2180000} 0x1e>; - power-domains = <&{/soc/power-management@280600000/power-controller@270}>; -}; - -&{/soc/dma-control@2b22f4000} { -}; - -&{/soc/dcp-expert@3923ac058} { -}; - -&{/soc/mailbox@392e08000} { -}; - -&{/soc/dcp@392e00000} { - mboxes = <&{/soc/mailbox@392e08000}>; - iommus = <&{/soc/iommu@392340000} 0x17>; - apple,bw-scratch = <&{/soc/pmc-metadata@286700000} 0x0 0x5 0x30000>; - phys = <&{/soc/phy@29c200000}>; - hdmi-hpd-gpios = <&{/soc/pinctrl@290824000} 0xe 0x0>; - hdmi-pwren-gpios = <&{/soc/smc@28c600000/gpio} 0x0 0x0>; - dp2hdmi-pwren-gpios = <&{/soc/smc@28c600000/gpio} 0x1 0x0>; -}; - -&{/soc/dcp@392e00000/piodma} { - iommus = <&{/soc/iommu@392300000} 0x10>; -}; - -&{/soc/dcp@392e00000/ports} { -}; - -&{/soc/dcp@392e00000/ports/port@0} { -}; - -&{/soc/dcp@392e00000/ports/port@0/endpoint} { - remote-endpoint = <&{/audio-controller-dispext1/ports/port@0/endpoint}>; -}; - -&{/soc/iommu@392340000} { -}; - -&{/soc/iommu@392300000} { -}; - -&{/soc/iommu@392180000} { - power-domains = <&{/soc/power-management@280600000/power-controller@2d8}>; -}; - -&{/soc/dma-controller@392140000} { - interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x48c 0x4 0 0 0>; - iommus = <&{/soc/iommu@392180000} 0x1e>; - power-domains = <&{/soc/power-management@280600000/power-controller@2d8}>; -}; - -&{/soc/dma-control@3922f4000} { -}; - -&{/soc/dcp-expert@3023ac058} { -}; - -&{/soc/mailbox@302e08000} { -}; - -&{/soc/dcp@302e00000} { - mboxes = <&{/soc/mailbox@302e08000}>; - iommus = <&{/soc/iommu@302340000} 0x17>; -}; - -&{/soc/dcp@302e00000/piodma} { - iommus = <&{/soc/iommu@302300000} 0x10>; -}; - -&{/soc/iommu@302340000} { -}; - -&{/soc/iommu@302300000} { -}; - -&{/soc/iommu@302180000} { -}; - -&{/soc/dma-controller@302140000} { - interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x4d4 0x4 0 0 0>; - iommus = <&{/soc/iommu@302180000} 0x1e>; -}; - -&{/soc/dma-control@3022f4000} { -}; - -&{/soc/dcp-expert@3063ac058} { -}; - -&{/soc/mailbox@306e08000} { -}; - -&{/soc/dcp@306e00000} { - mboxes = <&{/soc/mailbox@306e08000}>; - iommus = <&{/soc/iommu@306340000} 0x17>; -}; - -&{/soc/dcp@306e00000/piodma} { - iommus = <&{/soc/iommu@306300000} 0x10>; -}; - -&{/soc/iommu@306340000} { -}; - -&{/soc/iommu@306300000} { -}; - -&{/soc/iommu@306180000} { -}; - -&{/soc/dma-controller@306140000} { - interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x51c 0x4 0 0 0>; - iommus = <&{/soc/iommu@306180000} 0x1e>; -}; - -&{/soc/dma-control@3062f4000} { -}; - -&{/soc/scaler@2285000000} { - iommus = <&{/soc/iommu@2285260000} 0x0 &{/soc/iommu@2285260000} 0x1>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1c8} &{/soc/power-management@2380600000/power-controller@200}>; - clocks = <&{/soc/clock-controller@280600000} 0x1f0>; - resets = <&{/soc/power-management@2380600000/power-controller@1c8}>; -}; - -&{/soc/iommu@2285260000} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1c8}>; -}; - -&{/soc/scaler@23a1000000} { - iommus = <&{/soc/iommu@23a1260000} 0x0 &{/soc/iommu@23a1260000} 0x1>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1f8} &{/soc/power-management@2380600000/power-controller@208}>; - clocks = <&{/soc/clock-controller@280600000} 0x1f1>; - resets = <&{/soc/power-management@2380600000/power-controller@1f8}>; -}; - -&{/soc/iommu@23a1260000} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1f8}>; -}; - -&{/soc/video-encoder@2283100000} { - iommus = <&{/soc/iommu@22830a0000} 0x0 &{/soc/iommu@2283080000} 0x0>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1c0} &{/soc/power-management@2380600000/power-controller@8008} &{/soc/power-management@2380600000/power-controller@8010} &{/soc/power-management@2380600000/power-controller@8018} &{/soc/power-management@2380600000/power-controller@8020} &{/soc/power-management@2380600000/power-controller@8000}>; - clocks = <&{/soc/clock-controller@280600000} 0x1f7>; -}; - -&{/soc/iommu@22830a0000} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1c0}>; -}; - -&{/soc/iommu@2283080000} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1c0}>; -}; - -&{/soc/video-encoder@23a3100000} { - iommus = <&{/soc/iommu@23a30a0000} 0x0 &{/soc/iommu@23a3080000} 0x0>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1f0} &{/soc/power-management@2380600000/power-controller@8030} &{/soc/power-management@2380600000/power-controller@8038} &{/soc/power-management@2380600000/power-controller@8040} &{/soc/power-management@2380600000/power-controller@8048} &{/soc/power-management@2380600000/power-controller@8028}>; - clocks = <&{/soc/clock-controller@280600000} 0x1f8>; -}; - -&{/soc/iommu@23a30a0000} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1f0}>; -}; - -&{/soc/iommu@23a3080000} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1f0}>; -}; - -&{/soc/prores@48d000000} { - reg-names = "core", "wrapper", "aux", "ctrl", "ctrl1"; - resets = <&{/soc/power-management@280900000/power-controller@190}>; - iommus = <&{/soc/iommu@48d020000} 0x1>; - power-domains = <&{/soc/power-management@280900000/power-controller@190}>; -}; - -&{/soc/iommu@48d020000} { - apple,dma-range = <0x100 0x0 0x300 0x0>; - power-domains = <&{/soc/power-management@280900000/power-controller@190}>; -}; - -&{/soc/iommu@230b020000} { - power-domains = <&{/soc/power-management@2380600000/power-controller@1e0}>; -}; - -&{/soc/jpeg@2281000000} { - iommus = <&{/soc/iommu@2281020000} 0x0>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1d0}>; - clocks = <&{/soc/clock-controller@280600000} 0x1e6 &{/soc/clock-controller@280600000} 0x1e7>; -}; - -&{/soc/jpeg@2281060000} { - iommus = <&{/soc/iommu@2281020000} 0x1>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1d0}>; - clocks = <&{/soc/clock-controller@280600000} 0x1e6 &{/soc/clock-controller@280600000} 0x1e7>; -}; - -&{/soc/iommu@2281020000} { - apple,dma-range = <0x100 0x0 0x300 0x0>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1d0}>; -}; - -&{/soc/neural-processor@508000000} { - iommus = <&{/soc/iommu@509800000} 0x0 &{/soc/iommu@509820000} 0x0 &{/soc/iommu@509840000} 0x0>; - power-domains = <&{/soc/power-management@280900000/power-controller@3c8}>; - clocks = <&{/soc/clock-controller@280600000} 0x14f &{/soc/clock-controller@280600000} 0x14e &{/soc/clock-controller@280600000} 0x17d>; -}; - -&{/soc/iommu@509800000} { - /delete-property/ apple,dma-range; - /delete-property/ interrupt-parent; - /delete-property/ power-domains; - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x5 0x9800000 0x0 0xc000 0x5 0x9810000 0x0 0x4000>; - status = "disabled"; -}; - -&{/soc/iommu@509820000} { - /delete-property/ apple,dma-range; - /delete-property/ interrupt-parent; - /delete-property/ power-domains; - compatible = "apple,t6050-dart", "apple,t8110-dart"; - status = "disabled"; -}; - -&{/soc/iommu@509840000} { - /delete-property/ apple,dma-range; - /delete-property/ interrupt-parent; - /delete-property/ power-domains; - compatible = "apple,t6050-dart", "apple,t8110-dart"; - status = "disabled"; -}; - -&{/soc/video-decoder@2308000000} { - iommus = <&{/soc/iommu@2309020000} 0x0 &{/soc/iommu@2309020000} 0x1 &{/soc/iommu@2309020000} 0x2>; - power-domains = <&{/soc/power-management@2380600000/power-controller@1d8}>; - clocks = <&{/soc/clock-controller@280600000} 0x1e8>; -}; - -&{/soc/dma-controller@293300000} { - interrupts-extended = <&{/soc/interrupt-controller@280400000} 0x0 0x0 0x27f 0x4 0 0 0>; - iommus = <&{/soc/iommu@290fc0000} 0xa>; -}; - -&{/soc/dma-control@293c80000} { -}; - -&{/soc/message-controller@29b000000} { - power-domains = <&{/soc/power-management@280600000/power-controller@258}>; -}; - -&{/soc/dma-controller@412030000} { - iommus = <&{/soc/iommu@412000000} 0x11>; -}; - -&{/soc/dma-controller@413030000} { - iommus = <&{/soc/iommu@413000000} 0x11>; -}; - -&{/soc/spi@50510c000} { - power-domains = <&{/soc/power-management@280900000/power-controller@338}>; - clocks = <&{/soc/clock-controller@280600000} 0x1c4>; -}; - -&{/soc/iommu@38c000000} { -}; - -&{/soc/dma-controller@38c068000} { - iommus = <&{/soc/iommu@38c000000} 0xfe>; -}; - -&{/soc/dpin@389e50000} { -}; - -&{/soc/dpin@389e58000} { -}; - -&{/soc/dpin@389e68000} { -}; - -&{/soc/dpin@389e70000} { -}; - -&{/soc/phy@29c200000} { - power-domains = <&{/soc/power-management@280900000/power-controller@3f8}>; -}; - -&{/display-subsystem} { - iommus = <&{/soc/iommu@2b2300000} 0x0 &{/soc/iommu@392300000} 0x0>; -}; - -&{/sound} { -}; - -&{/sound/dai-link@0} { -}; - -&{/sound/dai-link@0/cpu} { - sound-dai = <&{/soc/aop@290c00000/audio} 0x0>; -}; - -&{/sound/dai-link@0/codec} { - sound-dai = <&{/soc/i2c@505018000/codec@4b}>; -}; - -&{/sound/dai-link@1} { -}; - -&{/sound/dai-link@1/cpu} { - sound-dai = <&{/soc/aop@290c00000/audio} 0x3>; -}; - -&{/sound/dai-link@1/codec} { - sound-dai = <&{/soc/i2c@505014000/codec@38}>; -}; - -&{/audio-controller-dispext0} { - dmas = <&{/soc/dma-controller@2b2140000} 0x0>; -}; - -&{/audio-controller-dispext0/ports} { -}; - -&{/audio-controller-dispext0/ports/port@0} { -}; - -&{/audio-controller-dispext0/ports/port@0/endpoint} { - remote-endpoint = <&{/soc/dcp@2b2e00000/ports/port@0/endpoint}>; -}; - -&{/audio-controller-dispext1} { - dmas = <&{/soc/dma-controller@392140000} 0x0>; -}; - -&{/audio-controller-dispext1/ports} { -}; - -&{/audio-controller-dispext1/ports/port@0} { -}; - -&{/audio-controller-dispext1/ports/port@0/endpoint} { - remote-endpoint = <&{/soc/dcp@392e00000/ports/port@0/endpoint}>; -}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-sd.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-sd.dtsi deleted file mode 100644 index 291a87c46ed4d..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-sd.dtsi +++ /dev/null @@ -1,11 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* Property migration from Satya Benson's 86b1f365 J775c stack. - * Retained board sources remain the baseline; this group is independently booted. - * Copyright The Asahi Linux Contributors - */ -&{/pcie@1cb0000000/pci@1,0} { - interrupt-map = <0x0 0x0 0x0 0x1 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x2 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x3 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x2 0x0 0x0 0x0 0x4 &{/pcie@1cb0000000/pci@1,0} 0x0 0x0 0x0 0x3>; -}; - -&{/pcie@1cb0000000/pci@1,0/sdcard@0,0} { -}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-spmi.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-spmi.dtsi deleted file mode 100644 index d2d8daf5856d4..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-spmi.dtsi +++ /dev/null @@ -1,47 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* Property migration from Satya Benson's 86b1f365 J775c stack. - * Retained board sources remain the baseline; this group is independently booted. - * Copyright The Asahi Linux Contributors - */ -&{/soc/smc@28c600000} { - gpio-low { - compatible = "apple,smc-low-gpio"; - gpio-controller; - #gpio-cells = <0x2>; - }; -}; - -&{/soc/spmi@28a014000} { - /delete-property/ #interrupt-cells; - /delete-property/ interrupt-parent; - /delete-property/ interrupts; - /delete-property/ interrupt-controller; -}; - -&{/soc/spmi@28a014000/pmic@e} { -}; - -&{/soc/spmi@28a014000/pmic@e/nvmem-layout} { -}; - -&{/soc/spmi@28a014000/pmic@e/nvmem-layout/pm-setting@2001} { -}; - -&{/soc/spmi@28a014000/pmic@e/nvmem-layout/rtc-offset@2100} { -}; - -&{/soc/spmi@28a014000/pmic@e/nvmem-layout/boot-stage@f801} { -}; - -&{/soc/spmi@28a014000/pmic@e/nvmem-layout/boot-error-count@f802,0} { -}; - -&{/soc/spmi@28a014000/pmic@e/nvmem-layout/panic-count@f802,4} { -}; - -&{/soc/spmi@28a014000/pmic@e/nvmem-layout/shutdown-flag@f80f,3} { -}; - -&{/soc/spmi@28a1c8000} { - /delete-property/ status; -}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-usbpolicy.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-incremental-usbpolicy.dtsi deleted file mode 100644 index 5d20209cb5706..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-incremental-usbpolicy.dtsi +++ /dev/null @@ -1,185 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* Property migration from Satya Benson's 86b1f365 J775c stack. - * Retained board sources remain the baseline; this group is independently booted. - * Copyright The Asahi Linux Contributors - */ -&{/soc/phy@2ab000000} { - mboxes = <&{/soc/mailbox@2ab148000}>; - power-domains = <&{/soc/power-management@288300000/power-controller@160} &{/soc/power-management@280600000/power-controller@210} &{/soc/power-management@288300000/power-controller@170} &{/soc/power-management@288300000/power-controller@168}>; - status = "okay"; -}; - -&{/soc/usb@2aa280000} { - iommus = <&{/soc/iommu@2aaf00000} 0x0 &{/soc/iommu@2aaf80000} 0x1>; - power-domains = <&{/soc/power-management@288300000/power-controller@168}>; - resets = <&{/soc/phy@2ab000000} 0x0>; - phys = <&{/soc/phy@2ab000000} 0x3 &{/soc/phy@2ab000000} 0x4>; - status = "okay"; -}; - -&{/soc/iommu@2aaf00000} { - power-domains = <&{/soc/power-management@288300000/power-controller@168}>; - status = "okay"; -}; - -&{/soc/iommu@2aaf80000} { - power-domains = <&{/soc/power-management@288300000/power-controller@168}>; - status = "okay"; -}; - -&{/soc/phy@383000000} { - mboxes = <&{/soc/mailbox@383148000}>; - power-domains = <&{/soc/power-management@288300000/power-controller@178} &{/soc/power-management@280600000/power-controller@238} &{/soc/power-management@288300000/power-controller@188} &{/soc/power-management@288300000/power-controller@180}>; -}; - -&{/soc/mux@38324c000} { - power-domains = <&{/soc/power-management@288300000/power-controller@178} &{/soc/power-management@280600000/power-controller@238}>; -}; - -&{/soc/usb@382280000} { - iommus = <&{/soc/iommu@382f00000} 0x0 &{/soc/iommu@382f80000} 0x1>; - power-domains = <&{/soc/power-management@288300000/power-controller@180}>; - resets = <&{/soc/phy@383000000} 0x0>; - phys = <&{/soc/phy@383000000} 0x3 &{/soc/phy@383000000} 0x4>; -}; - -&{/soc/iommu@382f00000} { - power-domains = <&{/soc/power-management@288300000/power-controller@180}>; -}; - -&{/soc/iommu@382f80000} { - power-domains = <&{/soc/power-management@288300000/power-controller@180}>; -}; - -&{/soc/phy@38b000000} { - mboxes = <&{/soc/mailbox@38b148000}>; - power-domains = <&{/soc/power-management@288300000/power-controller@190} &{/soc/power-management@280600000/power-controller@240} &{/soc/power-management@288300000/power-controller@1a0} &{/soc/power-management@288300000/power-controller@198}>; - status = "okay"; -}; - -&{/soc/usb@38a280000} { - iommus = <&{/soc/iommu@38af00000} 0x0 &{/soc/iommu@38af80000} 0x1>; - power-domains = <&{/soc/power-management@288300000/power-controller@198}>; - resets = <&{/soc/phy@38b000000} 0x0>; - phys = <&{/soc/phy@38b000000} 0x3 &{/soc/phy@38b000000} 0x4>; - status = "okay"; -}; - -&{/soc/iommu@38af00000} { - power-domains = <&{/soc/power-management@288300000/power-controller@198}>; - status = "okay"; -}; - -&{/soc/iommu@38af80000} { - power-domains = <&{/soc/power-management@288300000/power-controller@198}>; - status = "okay"; -}; - -&{/soc/phy@2a3000000} { - /delete-property/ apple,boot-link-released; - mboxes = <&{/soc/mailbox@2a3148000}>; - power-domains = <&{/soc/power-management@288300000/power-controller@148} &{/soc/power-management@280600000/power-controller@208} &{/soc/power-management@288300000/power-controller@158} &{/soc/power-management@288300000/power-controller@150}>; -}; - -&{/soc} { - iommu@2a4000000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x2 0xa4000000 0x0 0x20000>; - interrupts = <0x0 0x0 0x57e 0x4>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@2ac000000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x2 0xac000000 0x0 0x20000>; - interrupts = <0x0 0x0 0x59e 0x4>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@384000000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x3 0x84000000 0x0 0x20000>; - interrupts = <0x0 0x0 0x5be 0x4>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc/mux@2a324c000} { - /delete-property/ power-domain-names; - /delete-property/ power-domains; - status = "okay"; -}; - -&{/soc/mux@2ab24c000} { - /delete-property/ power-domain-names; - /delete-property/ power-domains; - status = "okay"; -}; - -&{/soc/mux@38b24c000} { - /delete-property/ power-domain-names; - /delete-property/ power-domains; - status = "okay"; -}; - -&{/soc/iommu@2a2f00000} { - /delete-property/ apple,dma-range; - power-domains = <&{/soc/power-management@288300000/power-controller@150}>; - status = "okay"; -}; - -&{/soc/iommu@2a2f80000} { - /delete-property/ apple,dma-range; - power-domains = <&{/soc/power-management@288300000/power-controller@150}>; - status = "okay"; -}; - -&{/soc/usb@2a2280000} { - iommus = <&{/soc/iommu@2a2f00000} 0x0 &{/soc/iommu@2a2f80000} 0x1>; - power-domains = <&{/soc/power-management@288300000/power-controller@150}>; - status = "okay"; - resets = <&{/soc/phy@2a3000000} 0x0>; - phys = <&{/soc/phy@2a3000000} 0x3 &{/soc/phy@2a3000000} 0x4>; -}; - -&{/soc} { - iommu@395d60000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x3 0x95d60000 0x0 0xc000>; - interrupts = <0x0 0x0 0x927 0x4>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc} { - usb@3953f0000 { - compatible = "apple,t6050-usb-auss"; - reg = <0x3 0x953f0000 0x0 0x4600 0x3 0x95800000 0x0 0x4000 0x3 0x95803c00 0x0 0x4000 0x3 0x95804000 0x0 0x4000 0x3 0x94000000 0x0 0x8000 0x3 0x95d80000 0x0 0x4000 0x3 0x95d84000 0x0 0x4000 0x3 0x95e40000 0x0 0x4000 0x3 0x95e3c000 0x0 0x4000 0x3 0x95d98000 0x0 0x4000>; - interrupts = <0x0 0x0 0x923 0x4 0x0 0x0 0x924 0x4 0x0 0x0 0x925 0x4 0x0 0x0 0x926 0x4>; - iommus = <&{/soc/iommu@395d60000} 0x0>; - power-domains = <&{/soc/power-management@280600000/power-controller@248}>; - status = "disabled"; - }; -}; - -&{/soc} { - iommu@38c000000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x3 0x8c000000 0x0 0x20000>; - interrupts = <0x0 0x0 0x5de 0x4>; - #iommu-cells = <0x1>; - status = "disabled"; - }; -}; - -&{/soc/phy@29c200000} { - power-domains = <&{/soc/power-management@280900000/power-controller@3f8}>; -}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-legacy.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-legacy.dtsi deleted file mode 100644 index b3de00ae25957..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-legacy.dtsi +++ /dev/null @@ -1,3190 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* - * Apple T6050 "M5 Ultra" SoC - * - * Two dies. Die 0's MMIO window is 0x2_00000000 and die 1's 0x42_00000000 - * (die stride 0x40_00000000); each has its own simple-bus, which the boot - * loader looks up by unit address. Unit addresses are CPU physical - * addresses. The boot loader starts the secondary CPUs and fills in their - * release addresses, the memory node and its own reservations. - * - * Copyright The Asahi Linux Contributors - */ - -#include -#include -#include -#include -#include - -/* Reuse integration's common nodes; retain the booted peripheral inventory below. */ -#include "t6050-j775c-base.dtsi" - -/ { - compatible = "apple,t6050", "apple,arm-platform"; - #address-cells = <2>; - #size-cells = <2>; - interrupt-parent = <&aic>; - - /* The boot loader replaces reg with the usable RAM. */ - - reserved-memory { - #address-cells = <2>; - #size-cells = <2>; - ranges; - /* The boot loader adds its own reservations. */ - - /* - * The GPU's, all filled in and enabled by Aura's dt_set_gpu_t6050 from /arm-io/sgx and - * the gfx(1)-asc segment-ranges. Each lies outside /memory (below and above Linux's RAM). - * The UAT ranges (gpu-region, gfx-shared-region, gfx-shared-l2-region, gfx-handoff): - * both firmware roles publish their kernel roots into uat-pagetables while they boot. - */ - uat_handoff: uat-handoff { - reg = <0 0 0 0>; - no-map; - status = "disabled"; - }; - - uat_l2_pagetables: uat-l2-pagetables { - reg = <0 0 0 0>; - no-map; - status = "disabled"; - }; - - uat_pagetables: uat-pagetables { - reg = <0 0 0 0>; - no-map; - status = "disabled"; - }; - - uat_ttbs: uat-ttbs { - reg = <0 0 0 0>; - no-map; - status = "disabled"; - }; - - /* Both roles' __TEXT, contiguous: GFX's, then GFX1's. */ - gpu_fw_text: gpu-fw-text { - reg = <0 0 0 0>; - no-map; - status = "disabled"; - }; - - /* - * Both roles' __DATA and __DATA_SHARED_RO, contiguous (gfx-data, gfx-data-shared-ro, - * gfx1-data, gfx1-data-shared-ro). Each role asks for its crash log at the physical - * address of its __DATA_SHARED_RO (evidence/gpu/2026-10-31-gfx-rtkit-boot.md). - */ - gpu_fw_data: gpu-fw-data { - reg = <0 0 0 0>; - no-map; - status = "disabled"; - }; - - /* - * The ANE firmware preload. The loader fills reg from the ADT - * /arm-io/ane0 segment-ranges (TEXT 0xc0000 bytes, DATA 0x2ac000 - * bytes), renames each node to its physical address and enables - * it, together with /chosen/apple,ane-cold-boot (Aura's - * dt_set_ane_node). Left disabled, the ANE driver does not start - * the engine. Neither segment may be reclaimed before reboot. - */ - ane_fw_text: ane-firmware-text@0 { - compatible = "apple,asc-mem"; - reg = <0 0 0 0>; - no-map; - status = "disabled"; - }; - - ane_fw_data: ane-firmware-data@0 { - compatible = "apple,asc-mem"; - reg = <0 0 0 0>; - no-map; - status = "disabled"; - }; - }; - - cpus { - #address-cells = <2>; - #size-cells = <0>; - - /* - * Die d, cluster c, core n has MPIDR Aff2 4 for the two M-tier - * (apple,sawtooth) clusters and 1 for the P-tier (apple,everest) - * cluster, Aff1 0x10 * d + c and Aff0 n. Labels number the cores - * 18 * d + 6 * c + n. Die 0 comes first, so nr_cpus= brings the - * CPUs up in that order. The boot loader removes the nodes of the - * cores it did not start. - */ - cpu0: cpu@40000 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x40000>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc00>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m00>; /* to be filled by the loader */ - }; - - cpu1: cpu@40001 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x40001>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc00>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m00>; - }; - - cpu2: cpu@40002 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x40002>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc00>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m00>; - }; - - cpu3: cpu@40003 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x40003>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc00>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m00>; - }; - - cpu4: cpu@40004 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x40004>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc00>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m00>; - }; - cpu5: cpu@40005 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x40005>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc00>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m00>; - }; - - cpu6: cpu@40100 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x40100>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc10>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m01>; - }; - - cpu7: cpu@40101 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x40101>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc10>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m01>; - }; - - cpu8: cpu@40102 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x40102>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc10>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m01>; - }; - - cpu9: cpu@40103 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x40103>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc10>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m01>; - }; - - cpu10: cpu@40104 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x40104>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc10>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m01>; - }; - cpu11: cpu@40105 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x40105>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc10>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m01>; - }; - - cpu12: cpu@10200 { - compatible = "apple,everest"; - capacity-dmips-mhz = <1024>; - device_type = "cpu"; - reg = <0x0 0x10200>; - enable-method = "spin-table"; - operating-points-v2 = <&pcluster_opp>; - performance-domains = <&cpufreq_pc0>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_p0_0>; - }; - - cpu13: cpu@10201 { - compatible = "apple,everest"; - capacity-dmips-mhz = <1024>; - device_type = "cpu"; - reg = <0x0 0x10201>; - enable-method = "spin-table"; - operating-points-v2 = <&pcluster_opp>; - performance-domains = <&cpufreq_pc0>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_p0_1>; - }; - - cpu14: cpu@10202 { - compatible = "apple,everest"; - capacity-dmips-mhz = <1024>; - device_type = "cpu"; - reg = <0x0 0x10202>; - enable-method = "spin-table"; - operating-points-v2 = <&pcluster_opp>; - performance-domains = <&cpufreq_pc0>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_p0_2>; - }; - - cpu15: cpu@10203 { - compatible = "apple,everest"; - capacity-dmips-mhz = <1024>; - device_type = "cpu"; - reg = <0x0 0x10203>; - enable-method = "spin-table"; - operating-points-v2 = <&pcluster_opp>; - performance-domains = <&cpufreq_pc0>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_p0_3>; - }; - - cpu16: cpu@10204 { - compatible = "apple,everest"; - capacity-dmips-mhz = <1024>; - device_type = "cpu"; - reg = <0x0 0x10204>; - enable-method = "spin-table"; - operating-points-v2 = <&pcluster_opp>; - performance-domains = <&cpufreq_pc0>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_p0_4>; - }; - cpu17: cpu@10205 { - compatible = "apple,everest"; - capacity-dmips-mhz = <1024>; - device_type = "cpu"; - reg = <0x0 0x10205>; - enable-method = "spin-table"; - operating-points-v2 = <&pcluster_opp>; - performance-domains = <&cpufreq_pc0>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_p0_5>; - }; - - cpu18: cpu@41000 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x41000>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc01>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m10>; - }; - - cpu19: cpu@41001 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x41001>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc01>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m10>; - }; - - cpu20: cpu@41002 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x41002>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc01>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m10>; - }; - - cpu21: cpu@41003 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x41003>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc01>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m10>; - }; - - cpu22: cpu@41004 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x41004>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc01>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m10>; - }; - - cpu24: cpu@41100 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x41100>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc11>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m11>; - }; - - cpu25: cpu@41101 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x41101>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc11>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m11>; - }; - - cpu26: cpu@41102 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x41102>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc11>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m11>; - }; - - cpu27: cpu@41103 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x41103>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc11>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m11>; - }; - - cpu28: cpu@41104 { - compatible = "apple,sawtooth"; - capacity-dmips-mhz = <794>; - device_type = "cpu"; - reg = <0x0 0x41104>; - enable-method = "spin-table"; - operating-points-v2 = <&mcluster_opp>; - performance-domains = <&cpufreq_mc11>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_m11>; - }; - - cpu30: cpu@11200 { - compatible = "apple,everest"; - capacity-dmips-mhz = <1024>; - device_type = "cpu"; - reg = <0x0 0x11200>; - enable-method = "spin-table"; - operating-points-v2 = <&pcluster_opp>; - performance-domains = <&cpufreq_pc1>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_p1_0>; - }; - - cpu31: cpu@11201 { - compatible = "apple,everest"; - capacity-dmips-mhz = <1024>; - device_type = "cpu"; - reg = <0x0 0x11201>; - enable-method = "spin-table"; - operating-points-v2 = <&pcluster_opp>; - performance-domains = <&cpufreq_pc1>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_p1_1>; - }; - - cpu32: cpu@11202 { - compatible = "apple,everest"; - capacity-dmips-mhz = <1024>; - device_type = "cpu"; - reg = <0x0 0x11202>; - enable-method = "spin-table"; - operating-points-v2 = <&pcluster_opp>; - performance-domains = <&cpufreq_pc1>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_p1_2>; - }; - - cpu33: cpu@11203 { - compatible = "apple,everest"; - capacity-dmips-mhz = <1024>; - device_type = "cpu"; - reg = <0x0 0x11203>; - enable-method = "spin-table"; - operating-points-v2 = <&pcluster_opp>; - performance-domains = <&cpufreq_pc1>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_p1_3>; - }; - - cpu34: cpu@11204 { - compatible = "apple,everest"; - capacity-dmips-mhz = <1024>; - device_type = "cpu"; - reg = <0x0 0x11204>; - enable-method = "spin-table"; - operating-points-v2 = <&pcluster_opp>; - performance-domains = <&cpufreq_pc1>; - cpu-release-addr = <0 0>; - next-level-cache = <&l2_cache_p1_4>; - }; - - /* - * Caches beyond L1. Each Sawtooth (M) cluster shares an 8 MiB L2. - * An Everest (S) core has a private L2, and its cluster shares a - * 16 MiB L3. CLIDR_EL1 reports three cache levels on Everest and - * two on Sawtooth; macOS reports 16 MiB and 8 MiB per six cores - * (hw.perflevelN.l2cachesize, cpusperl2); dependent loads on J775c - * take 0.7 ns up to 128 KiB, 2.8 ns up to 512 KiB and 5-11 ns up - * to 8 MiB on an Everest core, and 1.0 ns up to 64 KiB and 4.7 ns - * up to 3 MiB on a Sawtooth core. The size of the Everest L2 is - * not established. Every CPU node must reach as many levels as - * CLIDR_EL1 reports, or cacheinfo ignores these nodes and treats - * every level above L1 as shared by all CPUs, which makes the - * scheduler's last-level-cache domain span all the clusters. - */ - l2_cache_m00: l2-cache-m00 { - compatible = "cache"; - cache-level = <2>; - cache-unified; - cache-size = <0x800000>; - }; - - l2_cache_m01: l2-cache-m01 { - compatible = "cache"; - cache-level = <2>; - cache-unified; - cache-size = <0x800000>; - }; - - l3_cache_p0: l3-cache-p0 { - compatible = "cache"; - cache-level = <3>; - cache-unified; - cache-size = <0x1000000>; - }; - - l2_cache_p0_0: l2-cache-p0-0 { - compatible = "cache"; - cache-level = <2>; - cache-unified; - next-level-cache = <&l3_cache_p0>; - }; - - l2_cache_p0_1: l2-cache-p0-1 { - compatible = "cache"; - cache-level = <2>; - cache-unified; - next-level-cache = <&l3_cache_p0>; - }; - - l2_cache_p0_2: l2-cache-p0-2 { - compatible = "cache"; - cache-level = <2>; - cache-unified; - next-level-cache = <&l3_cache_p0>; - }; - - l2_cache_p0_3: l2-cache-p0-3 { - compatible = "cache"; - cache-level = <2>; - cache-unified; - next-level-cache = <&l3_cache_p0>; - }; - - l2_cache_p0_4: l2-cache-p0-4 { - compatible = "cache"; - cache-level = <2>; - cache-unified; - next-level-cache = <&l3_cache_p0>; - }; - - l2_cache_p0_5: l2-cache-p0-5 { - compatible = "cache"; - cache-level = <2>; - cache-unified; - next-level-cache = <&l3_cache_p0>; - }; - - l2_cache_m10: l2-cache-m10 { - compatible = "cache"; - cache-level = <2>; - cache-unified; - cache-size = <0x800000>; - }; - - l2_cache_m11: l2-cache-m11 { - compatible = "cache"; - cache-level = <2>; - cache-unified; - cache-size = <0x800000>; - }; - - l3_cache_p1: l3-cache-p1 { - compatible = "cache"; - cache-level = <3>; - cache-unified; - cache-size = <0x1000000>; - }; - - l2_cache_p1_0: l2-cache-p1-0 { - compatible = "cache"; - cache-level = <2>; - cache-unified; - next-level-cache = <&l3_cache_p1>; - }; - - l2_cache_p1_1: l2-cache-p1-1 { - compatible = "cache"; - cache-level = <2>; - cache-unified; - next-level-cache = <&l3_cache_p1>; - }; - - l2_cache_p1_2: l2-cache-p1-2 { - compatible = "cache"; - cache-level = <2>; - cache-unified; - next-level-cache = <&l3_cache_p1>; - }; - - l2_cache_p1_3: l2-cache-p1-3 { - compatible = "cache"; - cache-level = <2>; - cache-unified; - next-level-cache = <&l3_cache_p1>; - }; - - l2_cache_p1_4: l2-cache-p1-4 { - compatible = "cache"; - cache-level = <2>; - cache-unified; - next-level-cache = <&l3_cache_p1>; - }; - - l2_cache_p1_5: l2-cache-p1-5 { - compatible = "cache"; - cache-level = <2>; - cache-unified; - next-level-cache = <&l3_cache_p1>; - }; - }; - - /* - * CPU OPPs, from the ADT: /arm-io/pmgr acc-clusters maps clusters 0, 1 and 2 of each die to voltage-states 22, - * 23 and 5, and their -sram tables give the frequencies (kHz). 22 and 23 list the same frequencies, so the two - * M clusters share one table. Levels are DVFS command states: state 1 is 300 MHz and state k the table's - * (k-1)-th entry from state 2, as on T8142 (measured on J775D: every state's clock from a dependent-add chain, - * cpm4 window, evidence/power/2026-11-02-cpupm). iBoot leaves die 0's and die 1's M cluster 0 in state 6 - * (2652 MHz), the other clusters in state 2. - * - * Bring-up: the controllers below assert apple,firmware-managed-thermal, which the T6050 profile requires, - * before that ownership is qualified on this boot chain (no Linux PMP driver runs; the SMC drives the fans). - * The cpm windows qualify it: an all-core load at the top states, watching TCMb, the fans and the measured - * clock (specs/2026-11-02-t6050-cpupm.md). - */ - - - /* The 24 MHz reference clock of the watchdog */ - - /* The QSPI controller's input: ADT /arm-io/qspi clock-ids 440, /arm-io clock-frequencies[440 - 256] */ - - - /* Die 0 MMIO */ - die0: soc { - compatible = "simple-bus"; - #address-cells = <2>; - #size-cells = <2>; - ranges; - nonposted-mmio; - - /* - * The clusters' DVFS command apertures: /arm-io/pmgr reg 16, 26 and 36 (0x12e8 each, the driver uses - * the first 0x1000). apple,firmware-managed-thermal: see the CPU OPP tables. - */ - cpufreq_mc00: performance-controller@210e20000 { - compatible = "apple,t6050-cluster-cpufreq"; - reg = <0x2 0x10e20000 0x0 0x1000>; - #performance-domain-cells = <0>; - apple,firmware-managed-thermal; - }; - - cpufreq_mc10: performance-controller@211e20000 { - compatible = "apple,t6050-cluster-cpufreq"; - reg = <0x2 0x11e20000 0x0 0x1000>; - #performance-domain-cells = <0>; - apple,firmware-managed-thermal; - }; - - cpufreq_pc0: performance-controller@212e20000 { - compatible = "apple,t6050-cluster-cpufreq"; - reg = <0x2 0x12e20000 0x0 0x1000>; - #performance-domain-cells = <0>; - apple,firmware-managed-thermal; - }; - - /* One AIC3 for both dies, 3104 interrupts each */ - aic: interrupt-controller@280400000 { - compatible = "apple,t6050-aic3", "apple,t8122-aic3"; - interrupt-controller; - #interrupt-cells = <4>; - reg = <0x2 0x80400000 0x0 0x1cc000>, - <0x2 0x80440000 0x0 0x4000>; - reg-names = "core", "event"; - }; - - /* - * DockChannel channel 1, the one the USB debug link carries. - * Its FIFO raises no interrupt on receive, so it is drained in - * software. - */ - dockchannel: serial@288e3c000 { - compatible = "apple,dockchannel-uart"; - reg = <0x2 0x88e3c000 0x0 0x30>, - <0x2 0x88e38000 0x0 0x8>, - <0x2 0x88e0c000 0x0 0x18>; - reg-names = "data", "config", "irq"; - interrupts = ; - apple,channel = <1>; - apple,sw-drain; - status = "disabled"; - }; - - wdt: watchdog@28836c000 { - compatible = "apple,t6050-wdt", "apple,t8103-wdt"; - reg = <0x2 0x8836c000 0x0 0x4000>; - clocks = <&clkref>; - interrupts = ; - }; - - /* - * /arm-io/smc: reg[0] 0x8c600000 +0x88000 (the ASC; the SMC driver maps none of it), its mailbox - * the ASC v4 block at +0x8000 as on ANS. ADT interrupts [900, 899, 902, 901]: 899..902 in the - * send-empty, send-not-empty, recv-empty, recv-not-empty order. iop-smc-nub region-base - * 0x28de00000 +0x140000 is already a CPU address: the SRAM its RTKit buffers and key replies use. - * iBoot leaves the firmware (t6050smc) running. - */ - smc_mbox: mailbox@28c608000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x2 0x8c608000 0x0 0x4000>; - interrupts = , - , - , - ; - interrupt-names = "send-empty", "send-not-empty", - "recv-empty", "recv-not-empty"; - #mbox-cells = <0>; - }; - - /* - * The AOP's GPIO controller (ADT /arm-io/aop-gpio0, gpio,t8101, 85 pins), for the HDMI - * port's hotplug input (pin 14, active high). The AOP keeps interrupt groups 0-3; the - * AP's are 4-6 (supported-int-groups), AIC 572-574. Like T8132's, the block has slots - * that fault when read, so it is matched as T8132's (no register cache read-back). - * Pin 15 (force-dpfu) is never requested. - */ - pinctrl_aop: pinctrl@290824000 { - compatible = "apple,t6050-pinctrl", "apple,t8132-pinctrl"; - reg = <0x2 0x90824000 0x0 0x4000>; - gpio-controller; - #gpio-cells = <2>; - gpio-ranges = <&pinctrl_aop 0 0 85>; - apple,npins = <85>; - interrupt-controller; - #interrupt-cells = <2>; - interrupt-parent = <&aic>; - interrupts = , - , - ; - apple,irq-group-base = <4>; - /* Aura enables it with dcpext4 (its hotplug input). */ - status = "disabled"; - }; - - smc: smc@28c600000 { - compatible = "apple,t6050-smc"; - reg = <0x2 0x8c600000 0x0 0x4000>, - <0x2 0x8de00000 0x0 0x140000>; - reg-names = "smc", "sram"; - mboxes = <&smc_mbox>; - - /* T8142's key discovery (every readable T* float key); the Studio's two fans below. */ - smc_hwmon: hwmon { - compatible = "apple,smc-hwmon"; - apple,discover-temperatures; - /* macsmc_soc_die: the SoC hotspot the SMC computes (TCMb, 47.8 C at idle) */ - apple,soc-die-keys = "TCMb"; - - /* PSTR and PDTR read 0 on the Studio; PD0R is its DC input (36.5 W at an idle desktop). */ - power-PD0R { - apple,key-id = "PD0R"; - label = "DC Input Power"; - }; - }; - - /* - * The PMU's legacy scratchpad (info-leg_scrpad 0xf800) cells, as on T6040, and its - * power-on policy byte (info-pm_setting 0x2001, as on T6030) for ac_power_mode. - */ - smc_reboot: reboot { - compatible = "apple,smc-reboot"; - nvmem-cells = <&shutdown_flag>, <&boot_stage>, - <&boot_error_count>, <&panic_count>, <&pm_setting>; - nvmem-cell-names = "shutdown_flag", "boot_stage", - "boot_error_count", "panic_count", "pm_setting"; - }; - - /* - * The HDMI converter's two power outputs, SMC pcIO commands (ADT dp2hdmi-gpio1, - * pKW8('pcIO', lo, hi) templates (hi << 32) | lo, the level in bits 15:0): - * line 0 hdmi_pwr_en ('pcIO', 0x800000, 0xf0000), line 1 dp2hdmi_pwr_en - * ('pcIO', 0x0, 0x1a0000). Nothing drives them until the HDMI output does. - */ - smc_pcio: gpio { - compatible = "apple,smc-pcio-gpio"; - gpio-controller; - #gpio-cells = <2>; - apple,output-commands = /bits/ 64 <0x000f000000800000 0x001a000000000000>; - }; - - /* ADT info-clock_offset [0x2100, 6]: M1-style 32768 Hz ticks, as on T6040. */ - smc_rtc: rtc { - compatible = "apple,smc-rtc"; - nvmem-cells = <&rtc_offset>, <&rtc_ctrl>, <&rtc_alarm>, - <&rtc_alarm_mask>; - nvmem-cell-names = "rtc_offset", "rtc_ctrl", "rtc_alarm", - "rtc_alarm_mask"; - /* The PMU alarm: its peripheral interrupt 2 (ADT smc-pmu wake source bit 48, rtc) */ - interrupts-extended = <&nub_spmi0 2 IRQ_TYPE_EDGE_RISING>; - wakeup-source; - }; - }; - - /* - * The storage SART. The boot loader's entries (outside the - * kernel's memory) stay in place. - */ - ans_sart: iommu@41dc50000 { - compatible = "apple,t6050-sart"; - reg = <0x4 0x1dc50000 0x0 0xc000>; - }; - - ans_mbox: mailbox@419608000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x4 0x19608000 0x0 0x4000>; - interrupts = , - , - , - ; - interrupt-names = "send-empty", "send-not-empty", - "recv-empty", "recv-not-empty"; - #mbox-cells = <0>; - }; - - /* - * The boot loader leaves ANS running with the controller shut - * down. Its power stays with the firmware, and post-M4 ANS is - * never reset through PMGR, so the node names no power domain - * and no reset. - */ - nvme: nvme@45dcc0000 { - compatible = "apple,t6050-nvme-ans2"; - reg = <0x4 0x5dcc0000 0x0 0x10000>, - <0x4 0x19600000 0x0 0x4000>, - <0x4 0x1dcc0000 0x0 0x60000>; - reg-names = "nvme", "ans", "nvmmu"; - interrupts = ; - mboxes = <&ans_mbox>; - apple,sart = <&ans_sart>; - }; - - /* The DARTs of PCIe ports 2 and 3 */ - dart_apcie2: iommu@412000000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x4 0x12000000 0x0 0x20000>; - interrupts = ; - #iommu-cells = <1>; - status = "disabled"; - }; - - /* - * /arm-io/dart-apcie0: the N1's (apcie port 0). Its mappers are Control, Alpha and Beta - * on streams 1, 2 and 3. Disabled, like port 0, until the bootloader trains that port. - */ - dart_apcie0: iommu@410000000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x4 0x10000000 0x0 0x20000>; - interrupts = ; - #iommu-cells = <1>; - status = "disabled"; - }; - - dart_apcie3: iommu@413000000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x4 0x13000000 0x0 0x20000>; - interrupts = ; - #iommu-cells = <1>; - status = "disabled"; - }; - - /* - * /arm-io/nub-spmi0: reg[0] 0x8a014000 +0x4000, generation 4. Its AIC line is ADT interrupts[1] - * (726; the others are the controller's own numbers: 256 the command notify, 281 fatal, then the - * error and other lists). Its peripheral interrupts carry the PMU's (spmi-abbeyL1: 2, 62). - * No power-domains: NUB_SPMI0 is critical and on (Aura talks to the PMU here every boot), and - * binding the pwrstate driver would write the PS register at probe. - */ - nub_spmi0: spmi@28a014000 { - compatible = "apple,t6050-spmi", "apple,t8142-spmi"; - reg = <0x2 0x8a014000 0x0 0x4000>; - #address-cells = <2>; - #size-cells = <0>; - interrupt-parent = <&aic>; - interrupts = ; - interrupt-controller; - #interrupt-cells = <2>; - - /* spmi-abbeyL1, is-primary: USID 0xe. Read-only use: cells, never a whole-device read. */ - pmu: pmic@e { - compatible = "apple,abbey-pmic", "apple,spmi-nvmem"; - reg = <0xe SPMI_USID>; - - nvmem-layout { - compatible = "fixed-layout"; - #address-cells = <1>; - #size-cells = <1>; - - /* - * The PMU alarm: ADT info-rtc_alarm_ctrl 0x2000 (monitor bit 0, event bit 1, - * enable bit 6), info-rtc_alarm_offset 0x2008, info-rtc_irq_mask_offset 0x200e. - */ - rtc_ctrl: rtc-ctrl@2000 { - reg = <0x2000 1>; - }; - - /* ADT info-pm_setting: bit 0 no restore, bit 5 no power-on at connect */ - pm_setting: pm-setting@2001 { - reg = <0x2001 1>; - }; - - rtc_alarm: rtc-alarm@2008 { - reg = <0x2008 4>; - }; - - rtc_alarm_mask: rtc-alarm-mask@200e { - reg = <0x200e 1>; - }; - - rtc_offset: rtc-offset@2100 { - reg = <0x2100 6>; /* ADT info-clock_offset */ - }; - - /* Abbey conventions (research 14; 0xf802 is the counter Aura clears). */ - boot_stage: boot-stage@f801 { - reg = <0xf801 1>; - }; - - boot_error_count: boot-error-count@f802,0 { - reg = <0xf802 1>; - bits = <0 4>; - }; - - panic_count: panic-count@f802,4 { - reg = <0xf802 1>; - bits = <4 4>; - }; - - shutdown_flag: shutdown-flag@f80f,3 { - reg = <0xf80f 1>; - bits = <3 1>; - }; - }; - }; - }; - /* - * dcpext0, the first external display engine (die 0), as iBoot leaves it: powered, its ASC - * running, both DARTs locked (PROTECT 0xff / 0xb9) on its own four-level tables, DCP SID 23, - * scanout SID 0 and PIODMA SID 16 (evidence/display/2026-10-30-dcpext-inventory.md). From the - * ADT (/arm-io/dcpext0, dispext0, dart-dcpext0, dart-dispext0; arm-io ranges +0x200000000) - * and the M5 guest's validated dcp@70000000 (aura-internal data/m5-apif-guest.dts), whose - * physical addresses these are. No power-domains: the blocks run with auto-enable, and the - * pwrstate driver would write PS at probe. All disabled here: Aura enables them only when its - * checks of that state pass and it has reserved vram (patches/aura). - */ - dart_dcpext0: iommu@2b2340000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x2 0xb2340000 0x0 0x20000>; - /* dart-dcpext0 and dart-dispext0 share ADT interrupt 1070 */ - interrupts = ; - #iommu-cells = <1>; - /* ADT vm-base 1 TiB, vm-size 3 TiB */ - apple,dma-range = <0x100 0x0 0x300 0x0>; - status = "disabled"; - }; - - dart_dispext0: iommu@2b2300000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - /* reg[0] only; the ADT's second bank (0xb2314000) and shared 0x803f0000 are not ours */ - reg = <0x2 0xb2300000 0x0 0xc000>; - interrupts = ; - #iommu-cells = <1>; - apple,dma-range = <0x100 0x0 0x300 0x0>; - status = "disabled"; - }; - - /* The ASC v4 mailbox at dcpext0 + 0x8000; ADT interrupts 1123..1126 in mailbox order */ - dcpext0_mbox: mailbox@2b2e08000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x2 0xb2e08000 0x0 0x4000>; - interrupts = , - , - , - ; - interrupt-names = "send-empty", "send-not-empty", - "recv-empty", "recv-not-empty"; - #mbox-cells = <0>; - status = "disabled"; - }; - - /* dispext0 reg[4]: the PMC metadata the bandwidth scratch lives in */ - dcpext0_pmc: pmc-metadata@286700000 { - reg = <0x2 0x86700000 0x0 0x114000>; - #apple,bw-scratch-cells = <3>; - status = "disabled"; - }; - - /* - * The PMC voter interface (die 0): agent a's floor word at "voters" + 0x4000 * a, with a - * pending word after it, and the honoured floors and rail enable words at "rails". Both lie - * inside dispext0's PMC range above, which the DCP driver only hands to its firmware. Agents - * (ADT voter-agent): PMP 0, CLPC 1, GFX 2, AP 3, PMP1 4. The boot loader enables none on any - * rail; CLPC and AP become static voters. The PMP and GFX agents stay as the boot left them. - */ - pmc: power-management@286806000 { - compatible = "apple,t6050-pmc"; - reg = <0x2 0x86806000 0x0 0x3000>, - <0x2 0x86700000 0x0 0x14000>; - reg-names = "rails", "voters"; - #address-cells = <1>; - #size-cells = <0>; - apple,static-voters = <1 3>; - - clpc: performance-controller@1 { - compatible = "apple,t6050-clpc", "apple,t6041-clpc"; - reg = <1>; - }; - }; - - dcpext0: dcp@2b2e00000 { - compatible = "apple,t6050-dcpext", "apple,dcpext"; - reg = <0x2 0xb2e00000 0x0 0x4000>, - <0x2 0xb0000000 0x0 0x4000000>, - <0x2 0xb2240000 0x0 0x10000>, - <0x2 0xb23ac000 0x0 0x4000>, - <0x2 0xb2800000 0x0 0x800000>, - <0x2 0x86700000 0x0 0x114000>, - <0x2 0xb2850000 0x0 0x4000>; - reg-names = "coproc", "disp-0", "disp-1", "disp-2", "disp-3", "disp-4", "iop-vbar"; - mboxes = <&dcpext0_mbox>; - mbox-names = "mbox"; - iommus = <&dart_dcpext0 23>; - apple,bw-scratch = <&dcpext0_pmc 0 5 0x2c000>; - apple,dcp-index = <1>; - /* dcpext has no firmware clocks (the M5 guest's empty list) */ - apple,clock-ids; - /* - * apple,firmware-version/-compat come from Aura's handoff (aura/0034): the stub's - * firmware, 27.0 or 27.2, whose IOMFB method IDs differ (iomfb_v27.c). - */ - /* - * DisplayPort out on the rear USB-C ports. Route 0 is port 3 (HPM2, "back-left-middle", - * ATC2), the M5 guest's route for this engine (crossbar index 0, typec-dptx-phys 2), - * which Aura's display handoff enables and binds to its HPM. Routes 1-3 are ports 2, 4 - * and 1 (ATC1, ATC3, ATC0): the same crossbar input on each port's crossbar, and the - * port's own DPTX PHY, as the other Apple boards that route one engine to every port. - */ - apple,connector-type = "USB-C"; - apple,dptx-die = <0>; - apple,typec-dptx-phys = <2 1 3 0>; - apple,typec-mux-indices = <0 0 0 0>; - phys = <&atc2_phy 6>, <&atc1_phy 6>, <&atc3_phy 6>, <&atc0_phy 6>; - phy-names = "typec0", "typec1", "typec2", "typec3"; - mux-controls = <&atc2_xbar 0>, <&atc1_xbar 0>, <&atc3_xbar 0>, <&atc0_xbar 0>; - mux-control-names = "typec0", "typec1", "typec2", "typec3"; - status = "disabled"; - - piodma { - iommus = <&dart_dispext0 16>; - }; - - typec-routes { - #address-cells = <1>; - #size-cells = <0>; - - route@0 { - reg = <0>; - mode-switch; - - port { - dcpext0_typec: endpoint { - remote-endpoint = <&hpm2_dp>; - }; - }; - }; - - route@1 { - reg = <1>; - mode-switch; - - port { - dcpext0_typec1: endpoint { - remote-endpoint = <&hpm1_dp>; - }; - }; - }; - - route@2 { - reg = <2>; - mode-switch; - - port { - dcpext0_typec2: endpoint { - remote-endpoint = <&hpm3_dp>; - }; - }; - }; - - route@3 { - reg = <3>; - mode-switch; - - port { - dcpext0_typec3: endpoint { - remote-endpoint = <&hpm0_dp>; - }; - }; - }; - }; - }; - - /* - * The Type-C chain of rear port 3, all disabled: Aura's T6050 display handoff enables - * what dcpext0 references (phys, mux-controls, the PHY's mailbox and power domains, - * the typec route's HPM and its SPMI bus). Addresses from the ADT (arm-io ranges - * +0x200000000); PMGR offsets from tools/aura's pmgr_adt2dt.py over the same ADT. - */ - pmgr0: power-management@280600000 { - compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; - reg = <0x2 0x80600000 0x0 0x4000>; - #address-cells = <1>; - #size-cells = <1>; - - /* Rear port 1 (ATC0), ADT pmgr ATC0_COMMON. */ - ps_atc0_common: power-controller@208 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x208 4>; - label = "atc0_common"; - #power-domain-cells = <0>; - #reset-cells = <0>; - }; - - /* Rear port 2's (ATC1) chain is described enabled: nothing hands it off. */ - ps_atc1_common: power-controller@210 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x210 4>; - label = "atc1_common"; - #power-domain-cells = <0>; - #reset-cells = <0>; - }; - - ps_atc2_common: power-controller@238 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x238 4>; - label = "atc2_common"; - #power-domain-cells = <0>; - #reset-cells = <0>; - status = "disabled"; - }; - - /* Rear port 4 (ATC3), ADT gate 62. Its parent FAB5_SOC (+0x1f0) is critical: always on. */ - ps_atc3_common: power-controller@240 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x240 4>; - label = "atc3_common"; - #power-domain-cells = <0>; - #reset-cells = <0>; - }; - }; - - pmgr2: power-management@288300000 { - compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; - reg = <0x2 0x88300000 0x0 0xc000>; - #address-cells = <1>; - #size-cells = <1>; - - /* Rear port 1 (ATC0): ADT pmgr ATC0_USB_AON, ATC0_USB, ATC0_PHYMXWRAP. */ - ps_atc0_usb_aon: power-controller@148 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x148 4>; - label = "atc0_usb_aon"; - #power-domain-cells = <0>; - #reset-cells = <0>; - }; - - ps_atc0_usb: power-controller@150 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x150 4>; - label = "atc0_usb"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc0_common>, <&ps_atc0_usb_aon>; - }; - - ps_atc0_phymxwrap: power-controller@158 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x158 4>; - label = "atc0_phymxwrap"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc0_common>, <&ps_atc0_usb_aon>; - }; - - ps_atc1_usb_aon: power-controller@160 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x160 4>; - label = "atc1_usb_aon"; - #power-domain-cells = <0>; - #reset-cells = <0>; - }; - - /* usb-drd1's clock gate (its DARTs' too); the PHY's USB2 banks need it as well */ - ps_atc1_usb: power-controller@168 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x168 4>; - label = "atc1_usb"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc1_common>, <&ps_atc1_usb_aon>; - }; - - ps_atc1_phymxwrap: power-controller@170 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x170 4>; - label = "atc1_phymxwrap"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc1_common>, <&ps_atc1_usb_aon>; - }; - - ps_atc2_usb_aon: power-controller@178 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x178 4>; - label = "atc2_usb_aon"; - #power-domain-cells = <0>; - #reset-cells = <0>; - status = "disabled"; - }; - - ps_atc2_phymxwrap: power-controller@188 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x188 4>; - label = "atc2_phymxwrap"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc2_common>, <&ps_atc2_usb_aon>; - status = "disabled"; - }; - - /* usb-drd2's clock gate; the PHY's USB2 banks need it too */ - ps_atc2_usb: power-controller@180 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x180 4>; - label = "atc2_usb"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc2_common>, <&ps_atc2_usb_aon>; - status = "disabled"; - }; - - /* Rear port 4 (ATC3): ADT gates 269, 270 (usb-drd3) and 271 */ - ps_atc3_usb_aon: power-controller@190 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x190 4>; - label = "atc3_usb_aon"; - #power-domain-cells = <0>; - #reset-cells = <0>; - }; - - ps_atc3_usb: power-controller@198 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x198 4>; - label = "atc3_usb"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc3_common>, <&ps_atc3_usb_aon>; - }; - - ps_atc3_phymxwrap: power-controller@1a0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1a0 4>; - label = "atc3_phymxwrap"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc3_common>, <&ps_atc3_usb_aon>; - }; - }; - - /* /arm-io/acio-phy-cpu2 reg[0]: the PHY firmware's mailbox (it runs, pre-loaded by iBoot) */ - atc2_phy_mbox: mailbox@383148000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x3 0x83148000 0x0 0x4000>; - interrupts = , - , - , - ; - interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; - #mbox-cells = <0>; - status = "disabled"; - }; - - /* /arm-io/atc-phy2 regs [2] [0] usb-drd2[4] [39] [40] [41] [42] [43] [38] [37] usb-drd2[3] */ - atc2_phy: phy@383000000 { - compatible = "apple,t6050-combo-phy"; - reg = <0x3 0x83000000 0x0 0x2c000>, - <0x3 0x82a90000 0x0 0x4000>, - <0x3 0x82800000 0x0 0x4000>, - <0x3 0x83200000 0x0 0x4000>, - <0x3 0x83244000 0x0 0x4000>, - <0x3 0x80000000 0x0 0x8000>, - <0x3 0x80020000 0x0 0x4000>, - <0x3 0x83250000 0x0 0x4000>, - <0x3 0x83140000 0x0 0x4000>, - <0x3 0x830c0000 0x0 0x10000>, - <0x3 0x82a84000 0x0 0x4000>; - reg-names = "core", "usb2phy", "usb2-digital", "reset", "fabric", "axi2af", "lioa", - "common-cfg", "usb-control", "firmware-data", "pipehandler"; - #phy-cells = <1>; - #reset-cells = <1>; - apple,port-index = <2>; - /* The binding's name for "no other owner"; nothing else drives this port here. */ - apple,guest-port-reserved; - mode-switch; - orientation-switch; - mboxes = <&atc2_phy_mbox>; - power-domains = <&ps_atc2_usb_aon>, <&ps_atc2_common>, <&ps_atc2_phymxwrap>, - <&ps_atc2_usb>; - power-domain-names = "usb-aon", "common", "wrapper", "usb"; - status = "disabled"; - - port { - atc2_phy_ep: endpoint { - remote-endpoint = <&hpm2_ss>; - }; - }; - }; - - /* /arm-io/atc0-dpxbar */ - - /* /arm-io/atc1-dpxbar */ - - /* /arm-io/atc3-dpxbar */ - - /* /arm-io/atc2-dpxbar */ - atc2_xbar: mux@38324c000 { - compatible = "apple,t6050-display-crossbar", "apple,t8142-display-crossbar"; - reg = <0x3 0x8324c000 0x0 0x4000>; - #mux-control-cells = <1>; - power-domains = <&ps_atc2_usb_aon>, <&ps_atc2_common>; - power-domain-names = "usb-aon", "common"; - status = "disabled"; - }; - - /* - * /arm-io/nub-spmi-a0: reg[0] 0x8a188000, generation 4. The HPM is polled (no - * interrupts), so the bus needs none either. - */ - /* Enabled for rear port 2's HPM; the display handoff still enables hpm2 itself. */ - nub_spmi_a0: spmi@28a188000 { - compatible = "apple,t6050-spmi", "apple,t8142-spmi"; - reg = <0x2 0x8a188000 0x0 0x4000>; - #address-cells = <2>; - #size-cells = <0>; - - /* - * /arm-io/nub-spmi-a0/hpm0: SN201202x (ACE3), SPMI address 0xc, port-number 1 (back-right): - * the DFU port. Bring-up kept it disabled for the DFU cable's host-side VDM reboot path and - * the debug console (KIS); a smart plug now covers power-cycles, and full parity needs the - * port. While Linux runs, this driver owns the controller, as on other Apple machines. - */ - hpm0: usb-pd@c { - compatible = "apple,sn201202x"; - reg = <0xc SPMI_USID>; - - connector { - compatible = "usb-c-connector"; - label = "USB-C Back-right"; - power-role = "dual"; - data-role = "host"; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - hpm0_hs: endpoint { - remote-endpoint = <&usb_drd0_hs>; - }; - }; - - port@1 { - reg = <1>; - hpm0_ss: endpoint { - remote-endpoint = <&atc0_phy_ep>; - }; - }; - - port@2 { - reg = <2>; - hpm0_dp: endpoint { - remote-endpoint = <&dcpext0_typec3>; - }; - }; - }; - }; - }; - - /* /arm-io/nub-spmi-a0/hpm1: SN201202x (ACE3), SPMI address 0xa, port-number 2 */ - hpm1: usb-pd@a { - compatible = "apple,sn201202x"; - reg = <0xa SPMI_USID>; - - connector { - compatible = "usb-c-connector"; - label = "USB-C Back-right-middle"; - power-role = "dual"; - data-role = "host"; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - hpm1_hs: endpoint { - remote-endpoint = <&usb_drd1_hs>; - }; - }; - - port@1 { - reg = <1>; - hpm1_ss: endpoint { - remote-endpoint = <&atc1_phy_ep>; - }; - }; - - port@2 { - reg = <2>; - hpm1_dp: endpoint { - remote-endpoint = <&dcpext0_typec1>; - }; - }; - }; - }; - }; - - /* /arm-io/nub-spmi-a0/hpm2: SN201202x (ACE3), SPMI address 8, port-number 3 */ - hpm2: usb-pd@8 { - compatible = "apple,sn201202x"; - reg = <0x8 SPMI_USID>; - status = "disabled"; - - connector { - compatible = "usb-c-connector"; - label = "USB-C Back-left-middle"; - power-role = "dual"; - data-role = "dual"; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - hpm2_hs: endpoint { - remote-endpoint = <&usb_drd2_hs>; - }; - }; - - port@1 { - reg = <1>; - hpm2_ss: endpoint { - remote-endpoint = <&atc2_phy_ep>; - }; - }; - - port@2 { - reg = <2>; - hpm2_dp: endpoint { - remote-endpoint = <&dcpext0_typec>; - }; - }; - }; - }; - }; - - /* /arm-io/nub-spmi-a0/hpm3: SN201202x (ACE3), SPMI address 6, port-number 4 */ - hpm3: usb-pd@6 { - compatible = "apple,sn201202x"; - reg = <0x6 SPMI_USID>; - - connector { - compatible = "usb-c-connector"; - label = "USB-C Back-left"; - power-role = "dual"; - data-role = "host"; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - hpm3_hs: endpoint { - remote-endpoint = <&usb_drd3_hs>; - }; - }; - - port@1 { - reg = <1>; - hpm3_ss: endpoint { - remote-endpoint = <&atc3_phy_ep>; - }; - }; - - port@2 { - reg = <2>; - hpm3_dp: endpoint { - remote-endpoint = <&dcpext0_typec2>; - }; - }; - }; - }; - }; - }; - - /* - * Rear USB-C port 2 (HPM1, "back-right-middle"), USB data: ATC1's combo PHY, usb-drd1 and - * dart-usb1, as port 3's above with ADT /arm-io/atc-phy1, usb-drd1 and acio-phy-cpu1. - */ - /* - * Rear USB-C port 1 (HPM0, "back-right" in the ADT, leftmost seen from behind; the DFU - * port): ATC0's combo PHY, usb-drd0 and dart-usb0, as port 2's below. ADT /arm-io/atc-phy0, - * usb-drd0, dart-usb0 and acio-phy-cpu0: every register ATC1's - 0x08000000, the same - * properties and tunables (usb-drd0 adds only usb-restore-disable and the restore NCM address). - */ - /* /arm-io/acio-phy-cpu0 reg[0]: the PHY firmware's mailbox */ - atc0_phy_mbox: mailbox@2a3148000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x2 0xa3148000 0x0 0x4000>; - interrupts = , - , - , - ; - interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; - #mbox-cells = <0>; - }; - - /* /arm-io/atc-phy0 regs [2] [0] usb-drd0[4] [39] [40] [41] [42] [43] [38] [37] usb-drd0[3] */ - atc0_phy: phy@2a3000000 { - compatible = "apple,t6050-combo-phy"; - reg = <0x2 0xa3000000 0x0 0x2c000>, - <0x2 0xa2a90000 0x0 0x4000>, - <0x2 0xa2800000 0x0 0x4000>, - <0x2 0xa3200000 0x0 0x4000>, - <0x2 0xa3244000 0x0 0x4000>, - <0x2 0xa0000000 0x0 0x8000>, - <0x2 0xa0020000 0x0 0x4000>, - <0x2 0xa3250000 0x0 0x4000>, - <0x2 0xa3140000 0x0 0x4000>, - <0x2 0xa30c0000 0x0 0x10000>, - <0x2 0xa2a84000 0x0 0x4000>; - reg-names = "core", "usb2phy", "usb2-digital", "reset", "fabric", "axi2af", "lioa", - "common-cfg", "usb-control", "firmware-data", "pipehandler"; - #phy-cells = <1>; - #reset-cells = <1>; - apple,port-index = <0>; - /* The DFU cable's debug link is no longer used on J775c: port 0 is ordinary. */ - apple,boot-link-released; - apple,guest-port-reserved; - mode-switch; - orientation-switch; - mboxes = <&atc0_phy_mbox>; - power-domains = <&ps_atc0_usb_aon>, <&ps_atc0_common>, <&ps_atc0_phymxwrap>, - <&ps_atc0_usb>; - power-domain-names = "usb-aon", "common", "wrapper", "usb"; - - port { - atc0_phy_ep: endpoint { - remote-endpoint = <&hpm0_ss>; - }; - }; - }; - - /* - * /arm-io/usb-drd0: reg[0] (core and Apple regions), reg[1] (drd-cfg), interrupt 1419. The - * tunables are its ADT tables (DRD_USB31_GBL_DEFAULT with GCTL.PWRDNSCALE = 0xd, as on - * T6040; GBL_HOST, DBG, CFG_HOST, LINK_REGS, CIO_REGS); PIPE_HANDLER goes to the PHY. - */ - - /* /arm-io/dart-usb0 reg[0] and reg[1], interrupt 1423; vm-base 0x10000004000 +0xffff0000 */ - - - /* /arm-io/acio-phy-cpu1 reg[0]: the PHY firmware's mailbox */ - atc1_phy_mbox: mailbox@2ab148000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x2 0xab148000 0x0 0x4000>; - interrupts = , - , - , - ; - interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; - #mbox-cells = <0>; - }; - - /* /arm-io/atc-phy1 regs [2] [0] usb-drd1[4] [39] [40] [41] [42] [43] [38] [37] usb-drd1[3] */ - atc1_phy: phy@2ab000000 { - compatible = "apple,t6050-combo-phy"; - reg = <0x2 0xab000000 0x0 0x2c000>, - <0x2 0xaaa90000 0x0 0x4000>, - <0x2 0xaa800000 0x0 0x4000>, - <0x2 0xab200000 0x0 0x4000>, - <0x2 0xab244000 0x0 0x4000>, - <0x2 0xa8000000 0x0 0x8000>, - <0x2 0xa8020000 0x0 0x4000>, - <0x2 0xab250000 0x0 0x4000>, - <0x2 0xab140000 0x0 0x4000>, - <0x2 0xab0c0000 0x0 0x10000>, - <0x2 0xaaa84000 0x0 0x4000>; - reg-names = "core", "usb2phy", "usb2-digital", "reset", "fabric", "axi2af", "lioa", - "common-cfg", "usb-control", "firmware-data", "pipehandler"; - #phy-cells = <1>; - #reset-cells = <1>; - apple,port-index = <1>; - apple,guest-port-reserved; - mode-switch; - orientation-switch; - mboxes = <&atc1_phy_mbox>; - power-domains = <&ps_atc1_usb_aon>, <&ps_atc1_common>, <&ps_atc1_phymxwrap>, - <&ps_atc1_usb>; - power-domain-names = "usb-aon", "common", "wrapper", "usb"; - - port { - atc1_phy_ep: endpoint { - remote-endpoint = <&hpm1_ss>; - }; - }; - }; - - /* - * /arm-io/usb-drd1: reg[0] (core and Apple regions), reg[1] (drd-cfg), interrupt 1451. The - * tunables are its ADT tables (DRD_USB31_GBL_DEFAULT with GCTL.PWRDNSCALE = 0xd, as on - * T6040; GBL_HOST, DBG, CFG_HOST, LINK_REGS, CIO_REGS); PIPE_HANDLER goes to the PHY. - */ - usb_drd1: usb@2aa280000 { - compatible = "apple,t6050-dwc3", "apple,t8103-dwc3"; - reg = <0x2 0xaa280000 0x0 0xcd00>, - <0x2 0xaa28cd00 0x0 0x4b00>, - <0x2 0xaa200000 0x0 0x4000>; - reg-names = "dwc3-core", "dwc3-apple", "drd-cfg"; - interrupts = ; - dr_mode = "otg"; - usb-role-switch; - role-switch-default-mode = "host"; - iommus = <&usb_drd1_dart_0 0>, <&usb_drd1_dart_1 1>; - power-domains = <&ps_atc1_usb>; - resets = <&atc1_phy 0>; - phys = <&atc1_phy PHY_TYPE_USB2>, <&atc1_phy PHY_TYPE_USB3>; - phy-names = "usb2-phy", "usb3-phy"; - apple,tunable-gbl-default = <0x64 0x2 0x0>, <0x10 0xfff80000 0x00680000>; - apple,tunable-gbl-host = <0x4 0x0001ef00 0x00002f00>, <0x1c 0x00000100 0x0>, - <0x2c 0x000a07ff 0x000800c8>, <0x100 0x02000100 0x02000100>, - <0x504 0x00001000 0x0>, <0x528 0xff0000ff 0x06000006>, - <0x52c 0xff0000ff 0x08000008>, <0x580 0xffffffff 0x6f000006>, - <0x584 0xffffffff 0x00060000>; - apple,tunable-dbg = <0x0 0x8 0x8>; - apple,tunable-cfg-host = <0x20 0xff 0x1b>; - apple,tunable-link = <0x10 0xff000000 0xff000000>, <0x20 0x7ff00000 0x4e900000>, - <0x24 0x001f8000 0x000b8000>, <0x60 0x0003ffff 0x00000600>; - apple,tunable-cio = <0x20 0x00ff0000 0x001e0000>; - - port { - usb_drd1_hs: endpoint { - remote-endpoint = <&hpm1_hs>; - }; - }; - }; - - /* /arm-io/dart-usb1 reg[0] and reg[1], interrupt 1455; vm-base 0x10000004000 +0xffff0000 */ - usb_drd1_dart_0: iommu@2aaf00000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x2 0xaaf00000 0x0 0xc000>; - interrupts = ; - power-domains = <&ps_atc1_usb>; - #iommu-cells = <1>; - apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; - }; - - usb_drd1_dart_1: iommu@2aaf80000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x2 0xaaf80000 0x0 0xc000>; - interrupts = ; - power-domains = <&ps_atc1_usb>; - #iommu-cells = <1>; - apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; - }; - - /* - * Rear USB-C port 3 (HPM2, the display port): usb-drd2 and dart-usb2, for USB beside DisplayPort - * on ATC2. Disabled: atc2_phy and its domains are the display handoff's. - */ - /* /arm-io/usb-drd2: reg[0] (core and Apple regions), reg[1] (drd-cfg), interrupt 1483; port 2's tunables */ - usb_drd2: usb@382280000 { - compatible = "apple,t6050-dwc3", "apple,t8103-dwc3"; - reg = <0x3 0x82280000 0x0 0xcd00>, - <0x3 0x8228cd00 0x0 0x4b00>, - <0x3 0x82200000 0x0 0x4000>; - reg-names = "dwc3-core", "dwc3-apple", "drd-cfg"; - interrupts = ; - dr_mode = "otg"; - usb-role-switch; - role-switch-default-mode = "host"; - iommus = <&usb_drd2_dart_0 0>, <&usb_drd2_dart_1 1>; - power-domains = <&ps_atc2_usb>; - resets = <&atc2_phy 0>; - phys = <&atc2_phy PHY_TYPE_USB2>, <&atc2_phy PHY_TYPE_USB3>; - phy-names = "usb2-phy", "usb3-phy"; - apple,tunable-gbl-default = <0x64 0x2 0x0>, <0x10 0xfff80000 0x00680000>; - apple,tunable-gbl-host = <0x4 0x0001ef00 0x00002f00>, <0x1c 0x00000100 0x0>, - <0x2c 0x000a07ff 0x000800c8>, <0x100 0x02000100 0x02000100>, - <0x504 0x00001000 0x0>, <0x528 0xff0000ff 0x06000006>, - <0x52c 0xff0000ff 0x08000008>, <0x580 0xffffffff 0x6f000006>, - <0x584 0xffffffff 0x00060000>; - apple,tunable-dbg = <0x0 0x8 0x8>; - apple,tunable-cfg-host = <0x20 0xff 0x1b>; - apple,tunable-link = <0x10 0xff000000 0xff000000>, <0x20 0x7ff00000 0x4e900000>, - <0x24 0x001f8000 0x000b8000>, <0x60 0x0003ffff 0x00000600>; - apple,tunable-cio = <0x20 0x00ff0000 0x001e0000>; - /* USB beside DisplayPort on port 3: enabled with atc2_phy (specs/2026-11-02-usb-c-all-ports.md). */ - status = "disabled"; - - port { - usb_drd2_hs: endpoint { - remote-endpoint = <&hpm2_hs>; - }; - }; - }; - - /* /arm-io/dart-usb2 reg[0] and reg[1], interrupt 1487; vm-base 0x10000004000 +0xffff0000 */ - usb_drd2_dart_0: iommu@382f00000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x3 0x82f00000 0x0 0xc000>; - interrupts = ; - power-domains = <&ps_atc2_usb>; - #iommu-cells = <1>; - apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; - status = "disabled"; - }; - - usb_drd2_dart_1: iommu@382f80000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x3 0x82f80000 0x0 0xc000>; - interrupts = ; - power-domains = <&ps_atc2_usb>; - #iommu-cells = <1>; - apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; - status = "disabled"; - }; - - /* - * Rear USB-C port 4 (HPM3, "back-left"): ATC3's combo PHY, usb-drd3 and dart-usb3, as port 2's - * (ADT /arm-io/atc-phy3, acio-phy-cpu3, usb-drd3, dart-usb3). - */ - /* /arm-io/acio-phy-cpu3 reg[0]: the PHY firmware's mailbox */ - atc3_phy_mbox: mailbox@38b148000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x3 0x8b148000 0x0 0x4000>; - interrupts = , - , - , - ; - interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; - #mbox-cells = <0>; - }; - - /* /arm-io/atc-phy3 regs [2] [0] usb-drd3[4] [39] [40] [41] [42] [43] [38] [37] usb-drd3[3] */ - atc3_phy: phy@38b000000 { - compatible = "apple,t6050-combo-phy"; - reg = <0x3 0x8b000000 0x0 0x2c000>, - <0x3 0x8aa90000 0x0 0x4000>, - <0x3 0x8a800000 0x0 0x4000>, - <0x3 0x8b200000 0x0 0x4000>, - <0x3 0x8b244000 0x0 0x4000>, - <0x3 0x88000000 0x0 0x8000>, - <0x3 0x88020000 0x0 0x4000>, - <0x3 0x8b250000 0x0 0x4000>, - <0x3 0x8b140000 0x0 0x4000>, - <0x3 0x8b0c0000 0x0 0x10000>, - <0x3 0x8aa84000 0x0 0x4000>; - reg-names = "core", "usb2phy", "usb2-digital", "reset", "fabric", "axi2af", "lioa", - "common-cfg", "usb-control", "firmware-data", "pipehandler"; - #phy-cells = <1>; - #reset-cells = <1>; - apple,port-index = <3>; - apple,guest-port-reserved; - mode-switch; - orientation-switch; - mboxes = <&atc3_phy_mbox>; - power-domains = <&ps_atc3_usb_aon>, <&ps_atc3_common>, <&ps_atc3_phymxwrap>, - <&ps_atc3_usb>; - power-domain-names = "usb-aon", "common", "wrapper", "usb"; - - port { - atc3_phy_ep: endpoint { - remote-endpoint = <&hpm3_ss>; - }; - }; - }; - - /* /arm-io/usb-drd3: reg[0] (core and Apple regions), reg[1] (drd-cfg), interrupt 1515; port 2's tunables */ - usb_drd3: usb@38a280000 { - compatible = "apple,t6050-dwc3", "apple,t8103-dwc3"; - reg = <0x3 0x8a280000 0x0 0xcd00>, - <0x3 0x8a28cd00 0x0 0x4b00>, - <0x3 0x8a200000 0x0 0x4000>; - reg-names = "dwc3-core", "dwc3-apple", "drd-cfg"; - interrupts = ; - dr_mode = "otg"; - usb-role-switch; - role-switch-default-mode = "host"; - iommus = <&usb_drd3_dart_0 0>, <&usb_drd3_dart_1 1>; - power-domains = <&ps_atc3_usb>; - resets = <&atc3_phy 0>; - phys = <&atc3_phy PHY_TYPE_USB2>, <&atc3_phy PHY_TYPE_USB3>; - phy-names = "usb2-phy", "usb3-phy"; - apple,tunable-gbl-default = <0x64 0x2 0x0>, <0x10 0xfff80000 0x00680000>; - apple,tunable-gbl-host = <0x4 0x0001ef00 0x00002f00>, <0x1c 0x00000100 0x0>, - <0x2c 0x000a07ff 0x000800c8>, <0x100 0x02000100 0x02000100>, - <0x504 0x00001000 0x0>, <0x528 0xff0000ff 0x06000006>, - <0x52c 0xff0000ff 0x08000008>, <0x580 0xffffffff 0x6f000006>, - <0x584 0xffffffff 0x00060000>; - apple,tunable-dbg = <0x0 0x8 0x8>; - apple,tunable-cfg-host = <0x20 0xff 0x1b>; - apple,tunable-link = <0x10 0xff000000 0xff000000>, <0x20 0x7ff00000 0x4e900000>, - <0x24 0x001f8000 0x000b8000>, <0x60 0x0003ffff 0x00000600>; - apple,tunable-cio = <0x20 0x00ff0000 0x001e0000>; - - port { - usb_drd3_hs: endpoint { - remote-endpoint = <&hpm3_hs>; - }; - }; - }; - - /* /arm-io/dart-usb3 reg[0] and reg[1], interrupt 1519; vm-base 0x10000004000 +0xffff0000 */ - usb_drd3_dart_0: iommu@38af00000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x3 0x8af00000 0x0 0xc000>; - interrupts = ; - power-domains = <&ps_atc3_usb>; - #iommu-cells = <1>; - apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; - }; - - usb_drd3_dart_1: iommu@38af80000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x3 0x8af80000 0x0 0xc000>; - interrupts = ; - power-domains = <&ps_atc3_usb>; - #iommu-cells = <1>; - apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; - }; - - /* - * /arm-io/nub-spmi-a2: reg[0] 0x8a1c8000, generation 4, on die 0 like nub-spmi-a0 although - * the front ports' PHYs are on die 1. Its HPMs are polled, as a0's are. - */ - nub_spmi_a2: spmi@28a1c8000 { - compatible = "apple,t6050-spmi", "apple,t8142-spmi"; - reg = <0x2 0x8a1c8000 0x0 0x4000>; - #address-cells = <2>; - #size-cells = <0>; - - /* /arm-io/nub-spmi-a2/hpm4: SN201202x (ACE3), SPMI address 0xc, port-number 5 */ - hpm4: usb-pd@c { - compatible = "apple,sn201202x"; - reg = <0xc SPMI_USID>; - - connector { - compatible = "usb-c-connector"; - label = "USB-C Front-right"; - power-role = "dual"; - data-role = "host"; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - hpm4_hs: endpoint { - remote-endpoint = <&usb_drd4_hs>; - }; - }; - - port@1 { - reg = <1>; - hpm4_ss: endpoint { - remote-endpoint = <&atc4_phy_ep>; - }; - }; - }; - }; - }; - - /* /arm-io/nub-spmi-a2/hpm5: SN201202x (ACE3), SPMI address 0xa, port-number 6 */ - hpm5: usb-pd@a { - compatible = "apple,sn201202x"; - reg = <0xa SPMI_USID>; - - connector { - compatible = "usb-c-connector"; - label = "USB-C Front-left"; - power-role = "dual"; - data-role = "host"; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - hpm5_hs: endpoint { - remote-endpoint = <&usb_drd5_hs>; - }; - }; - - port@1 { - reg = <1>; - hpm5_ss: endpoint { - remote-endpoint = <&atc5_phy_ep>; - }; - }; - }; - }; - }; - }; - - /* - * The AOP's audio path: the AP GPIO block, the I2C1/I2C2 buses and their power states, and - * the AOP with its mailbox, dart-aop and the ADMAC its audio streams use. From the ADT - * (arm-io ranges +0x200000000). The AOP, its mailbox, dart-aop and the ADMAC are disabled: - * iBoot leaves the AOP halted on locked dart-aop tables, and Aura enables them only when its - * checks of that state pass (chosen.aurora,t6050-aop=1). - */ - pinctrl_ap: pinctrl@29c000000 { - compatible = "apple,t6050-pinctrl", "apple,t8103-pinctrl"; - reg = <0x2 0x9c000000 0x0 0x44000>; - gpio-controller; - #gpio-cells = <2>; - gpio-ranges = <&pinctrl_ap 0 0 221>; - apple,npins = <221>; - interrupt-controller; - #interrupt-cells = <2>; - interrupt-parent = <&aic>; - interrupts = , - , - , - , - , - , - ; - }; - - /* ADT pmgr reg[1]; I2C1 and I2C2 power states (clock-gates 191, 192) */ - pmgr1: power-management@280900000 { - compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; - reg = <0x2 0x80900000 0x0 0x4000>; - #address-cells = <1>; - #size-cells = <1>; - - ps_i2c1: power-controller@2c8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x2c8 4>; - #power-domain-cells = <0>; - #reset-cells = <0>; - label = "i2c1"; - }; - - ps_i2c2: power-controller@2d0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x2d0 4>; - #power-domain-cells = <0>; - #reset-cells = <0>; - label = "i2c2"; - }; - - /* - * The boot NOR's controller: ADT pmgr devices SPI_P (id 199, +0x308) and - * QSPI (id 208, +0x350, /arm-io/qspi clock-gates), group 1. SPI_P's parent - * SIO (184) is left undescribed, as for the I2C states above. - */ - ps_spi_p: power-controller@308 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x308 4>; - #power-domain-cells = <0>; - #reset-cells = <0>; - label = "spi_p"; - }; - - ps_qspi: power-controller@350 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x350 4>; - #power-domain-cells = <0>; - #reset-cells = <0>; - label = "qspi"; - power-domains = <&ps_spi_p>; - }; - - /* - * ADT pmgr device ANE_SYS (id 219, group 1 +0x3a8, parents FAB8_SOC - * and FAB9_SOC, left undescribed as for the I2C states). ANE_SYS_DART - * and ANE_SYS_V hang off it with no state of their own. The child - * states ANE_MPM (+0x3c0), ANE_CPU (+0x3c8) and ANE_TDBASE (+0x3d0) - * are not domains: the ANE driver (CPU, PWGATE, TDBASE, as macOS) - * and its firmware (through DAPF) sequence them. All four read - * 0x300 (ANE_CPU 0x0f000300) at boot. - */ - ps_ane_sys: power-controller@3a8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x3a8 4>; - #power-domain-cells = <0>; - #reset-cells = <0>; - label = "ane_sys"; - status = "disabled"; - }; - }; - - /* - * The Neural Engine (H17) and its DART, from the J775c ADT (macOS 27.0) - * /arm-io/ane0 (ane,t8132exclave, ane-type 0x220) and /arm-io/dart-ane0 - * (dart,t8110: LLT, BRD and BWR translation instances on interrupt 955, - * sid-count 16, vm-base 1 TiB + 3 TiB). The engine and the DARTs sit - * behind ANE_SYS: any access while it is off stalls the bus. - */ - - - - /* - * reg: the ADT engine window, the pmgr bank the ANE's power states - * live in (ADT reg[1]) and PWGATE inside ADT reg[2] (0x280920000): - * macOS 27.0 clears the request at +0x159c and checks +0x15c0, the - * window's +0xc and +0x30 (the T8140's sit at its reg[2] + 0x268c). - * xl is ADT reg[5], the ANE-XL AXI2AF bridge: macOS writes its - * tunables, and the ANE bridge's at the engine window's base, at - * every engine power-up. The ADT's other three windows (PTD - * 0x284240000, 0x212000000, 0x288374000) are not used. - * Both interrupts are requested. 954 carries the channel status: - * firmware waits sleep until it, polling as a fallback (lobata, - * 2026-11-05); 967 has not been seen to fire. Started only after - * the loader hand-off, from firmware_stage. - */ - ane: ane@508000000 { - compatible = "apple,t6050-ane"; - reg = <0x5 0x08000000 0x0 0x2000000>, - <0x2 0x80900000 0x0 0x18000>, - <0x2 0x80921590 0x0 0x34>, - <0x5 0x84000000 0x0 0x2000000>; - reg-names = "engine", "pmgr", "pwgate", "xl"; - interrupt-parent = <&aic>; - interrupts = , - ; - iommus = <&ane_dart0 0>, <&ane_dart1 0>, <&ane_dart2 0>; - power-domains = <&ps_ane_sys>; - memory-region = <&ane_fw_text>, <&ane_fw_data>; - memory-region-names = "firmware-text", "firmware-data"; - apple,ane-type = <0x220>; - apple,firmware-preloaded; - apple,firmware-iovas = /bits/ 64 <0x10000000000 0x100000c0000>; - /* Inclusive SID0 identity windows: ADT dart-ane0 dapf-instance-0. */ - apple,dapf-ranges = /bits/ 64 <0x2809003a8 0x2809003ab - 0x2809003c0 0x2809003d3 - 0x581668000 0x581668003 - 0x2302668000 0x2302668003 - 0x6302668000 0x6302668003>; - /* - * Requests hold the DRAM and fabric floor through the CLPC's - * client input (DCS 6 / fabric 3), as busy CPUs and the GPU do. - */ - apple,clpc = <&clpc>; - /* - * The ANE has no voltage rail of its own: it shares the S - * cluster's (PMGR perf domain 8 on rail 7, as domain 5), and - * each S-cluster p-state sets the ANE clock its voltage allows. - * Requests hold that cluster up. - */ - performance-domains = <&cpufreq_pc0>; - status = "disabled"; - }; - - i2c1: i2c@505014000 { - compatible = "apple,t6050-i2c", "apple,t8103-i2c"; - reg = <0x5 0x05014000 0x0 0x4000>; - clocks = <&clkref>; - interrupt-parent = <&aic>; - interrupts = ; - #address-cells = <1>; - #size-cells = <0>; - power-domains = <&ps_i2c1>; - }; - - i2c2: i2c@505018000 { - compatible = "apple,t6050-i2c", "apple,t8103-i2c"; - reg = <0x5 0x05018000 0x0 0x4000>; - clocks = <&clkref>; - interrupt-parent = <&aic>; - interrupts = ; - #address-cells = <1>; - #size-cells = <0>; - power-domains = <&ps_i2c2>; - }; - - /* - * The boot NOR (ADT /arm-io/qspi, "qspi,qspimc"): P at 0x305118000 and C at P + 0x800, - * each 0x4000 in the ADT; one resource for their union. Interrupt 1373, clock id 440 - * (/arm-io clock-frequencies[184], 405 MHz). spi-apple-qspi's T8140 policy: data - * reads anywhere, programs and erases only inside the nvram partition. - */ - qspi: spi@505118000 { - compatible = "apple,t6050-qspi", "apple,t8140-qspi"; - reg = <0x5 0x05118000 0x0 0x4800>; - clocks = <&clk_405m>; - interrupt-parent = <&aic>; - interrupts = ; - power-domains = <&ps_qspi>; - #address-cells = <1>; - #size-cells = <0>; - status = "disabled"; - }; - - /* The ASC v4 mailbox at the AOP ASC + 0x8000; ADT interrupts 578..581 in mailbox order */ - aop_mbox: mailbox@290608000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x2 0x90608000 0x0 0x4000>; - interrupts = , - , - , - ; - interrupt-names = "send-empty", "send-not-empty", - "recv-empty", "recv-not-empty"; - #mbox-cells = <0>; - status = "disabled"; - }; - - /* - * dart-aop: streams 0 (AOP), 3, 8 (admac-base-ns), 10 and 16 are the AP's; 1, 9 and 11 are - * exclave streams. iBoot leaves its tables locked on the ADT's l1-tt roots: each consumer - * binds one stream and the locked-DART path publishes into its free slots. - */ - aop_dart: iommu@290fc0000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x2 0x90fc0000 0x0 0xc000>; - #iommu-cells = <1>; - interrupt-parent = <&aic>; - interrupts = ; - status = "disabled"; - }; - - /* ADT admac-base-ns: 13 TX and 13 RX channels; the AOP firmware owns its fabric */ - admac_base_ns: dma-controller@293800000 { - compatible = "apple,t6050-admac", "apple,t8140-admac"; - reg = <0x2 0x93800000 0x0 0x34000>; - dma-channels = <13>; - interrupts-extended = <&aic AIC_IRQ 0 637 IRQ_TYPE_LEVEL_HIGH>, - <0>, <0>, <0>; - #dma-cells = <1>; - iommus = <&aop_dart 8>; - apple,dma-range = <0x110 0x00000000 0x0 0x10000000>; - status = "disabled"; - }; - - /* - * The AOP: its SRAM window (ADT reg[2]) and its ASC (reg[0]). Firmware j775daop, loaded - * and left halted by iBoot. Booted as on T8152, over the RTKit mailbox alone: the ADT's - * aop-exclave-mailbox (the setup port T8140 and T8142 boot through) is exclave-assigned - * here and takes an SError from the AP. - */ - aop: aop@290c00000 { - compatible = "apple,t6050-aop", "apple,t8152-aop"; - reg = <0x2 0x90c00000 0x0 0x1e0000>, - <0x2 0x90600000 0x0 0x4000>; - reg-names = "mmio", "asc"; - mboxes = <&aop_mbox>; - mbox-names = "mbox"; - iommus = <&aop_dart 0>; - apple,dma-range = <0x110 0x0 0x10 0x0>; - status = "disabled"; - - /* - * ADT iop-audio-controller: cout/cin (the jack) on base-ns TX2/RX2, spkr on TX0 with - * the amp's V/I sense on RX0 (Linux channel 2N for TX N, 2N+1 for RX N). - */ - aop_audio: audio { - compatible = "apple,t6050-aop-audio"; - dmas = <&admac_base_ns 4>, <&admac_base_ns 5>, - <&admac_base_ns 0>, <&admac_base_ns 1>; - dma-names = "cout", "cin", "spkr", "sense"; - #sound-dai-cells = <1>; - }; - }; - }; - - /* - * The GPU's 14 performance states, in their ADT order (/arm-io/sgx perf-states: one table per - * cluster, two dies x four), with one voltage cell per cluster. Aura fills them in. - */ - gpu_opp: opp-table-gpu { - compatible = "operating-points-v2"; - - opp00 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0 0 0 0 0>; - opp-microvolt-sram = <0 0 0 0 0 0 0 0>; - }; - opp01 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0 0 0 0 0>; - opp-microvolt-sram = <0 0 0 0 0 0 0 0>; - }; - opp02 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0 0 0 0 0>; - opp-microvolt-sram = <0 0 0 0 0 0 0 0>; - }; - opp03 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0 0 0 0 0>; - opp-microvolt-sram = <0 0 0 0 0 0 0 0>; - }; - opp04 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0 0 0 0 0>; - opp-microvolt-sram = <0 0 0 0 0 0 0 0>; - }; - opp05 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0 0 0 0 0>; - opp-microvolt-sram = <0 0 0 0 0 0 0 0>; - }; - opp06 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0 0 0 0 0>; - opp-microvolt-sram = <0 0 0 0 0 0 0 0>; - }; - opp07 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0 0 0 0 0>; - opp-microvolt-sram = <0 0 0 0 0 0 0 0>; - }; - opp08 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0 0 0 0 0>; - opp-microvolt-sram = <0 0 0 0 0 0 0 0>; - }; - opp09 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0 0 0 0 0>; - opp-microvolt-sram = <0 0 0 0 0 0 0 0>; - }; - opp10 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0 0 0 0 0>; - opp-microvolt-sram = <0 0 0 0 0 0 0 0>; - }; - opp11 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0 0 0 0 0>; - opp-microvolt-sram = <0 0 0 0 0 0 0 0>; - }; - opp12 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0 0 0 0 0>; - opp-microvolt-sram = <0 0 0 0 0 0 0 0>; - }; - opp13 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0 0 0 0 0>; - opp-microvolt-sram = <0 0 0 0 0 0 0 0>; - }; - }; - - /* The GPU AFR clock domain's states (ADT afr-perf-states), one voltage per die; Aura fills them. */ - gpu_afr_opp: opp-table-gpu-afr { - compatible = "operating-points-v2"; - - opp00 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp01 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp02 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp03 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp04 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp05 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp06 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp07 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp08 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp09 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp10 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp11 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp12 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp13 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - }; - - /* The GPU CS clock domain's states (ADT cs-perf-states), one voltage per die; Aura fills them. */ - gpu_cs_opp: opp-table-gpu-cs { - compatible = "operating-points-v2"; - - opp00 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp01 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp02 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp03 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp04 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp05 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp06 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp07 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp08 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp09 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp10 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp11 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp12 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - opp13 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0>; - }; - }; - - /* - * The GPU aperture, die 0 (ADT sgx reg 0x2100000000 through arm-io's ranges): SGX, both - * firmware ASCs and the GPU's PMGR block. All disabled; Aura's dt_set_gpu_t6050 enables them. - */ - soc { - compatible = "simple-bus"; - #address-cells = <2>; - #size-cells = <2>; - ranges; - nonposted-mmio; - - /* ADT pmgr reg 51; GPX and AFR are critical there (always-on), GFX's parents are both. */ - - - /* ADT gfx-asc interrupts 2798, 2797, 2800, 2799: send-empty is 2797, recv-not-empty 2800. */ - - /* ADT gfx1-asc interrupts 2802, 2801, 2804, 2803; its second extent is 0x60000, the VBAR its first 8 bytes. */ - }; - - /* - * Die 1's GPU power states (the die-0 block plus 0x4000000000). Both firmware roles run on die 0, - * but the firmware drives both dies' GPU, so die 1's GFX chain is held on (always-on) while the - * M5 bring-up qualifies initialization (research 49). Aura's dt_set_gpu_t6050 enables them. - */ - soc@6300000000 { - compatible = "simple-bus"; - #address-cells = <2>; - #size-cells = <2>; - ranges = <0x63 0x0 0x63 0x0 0x0 0x1000000>; - nonposted-mmio; - - pmgr3_die1: power-management@6300e80000 { - compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; - reg = <0x63 0x00e80000 0x0 0x4000>; - #address-cells = <1>; - #size-cells = <1>; - - ps_gpx_die1: power-controller@0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x0 4>; - label = "gpx_die1"; - #power-domain-cells = <0>; - #reset-cells = <0>; - apple,always-on; - status = "disabled"; - }; - - ps_afr_die1: power-controller@100 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x100 4>; - label = "afr_die1"; - #power-domain-cells = <0>; - #reset-cells = <0>; - apple,always-on; - status = "disabled"; - }; - - ps_gfx_die1: power-controller@110 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x110 4>; - label = "gfx_die1"; - #power-domain-cells = <0>; - power-domains = <&ps_afr_die1>, <&ps_gpx_die1>; - #reset-cells = <0>; - apple,always-on; - status = "disabled"; - }; - }; - }; - - /* - * Die 0's video decoder (ADT /arm-io/avd0, avd-version 4, the T8142 generation): reg[0] - * 0x2308000000 + 0x1404000 through arm-io's ranges, windows in the T8142/T6041 layout (CM3 code - * and SRAM 0x14000 each at +0x1080000, mailbox +0x10a8000, decode control +0x1100000); ADT - * interrupts 2417, 2418 (die 0 IRQs 2417, 2418). dart-avd0 at +0x1020000, - * interrupt 2424 (die 0 2424), SIDs 0-2 (mapper, piodma, adsbuf). Power: the clock - * gates AVD_SYS_V and AVD_SOC_DART have no PS register; both hang off AVD_SYS (PMGR block - * 0x2380600000 + 0x1d8, also the ARST reset), whose parent FAB1_SOC (+0x1b0) is critical. - */ - soc { - compatible = "simple-bus"; - #address-cells = <2>; - #size-cells = <2>; - ranges; - nonposted-mmio; - - pmgr4: power-management@2380600000 { - compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; - reg = <0x23 0x80600000 0x0 0xc000>; - #address-cells = <1>; - #size-cells = <1>; - - ps_fab1_soc: power-controller@1b0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1b0 4>; - label = "fab1_soc"; - #power-domain-cells = <0>; - #reset-cells = <0>; - apple,always-on; - }; - - ps_avd_sys: power-controller@1d8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1d8 4>; - label = "avd_sys"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_fab1_soc>; - }; - }; - - avd: avd@2309080000 { - compatible = "apple,t6050-avd", "apple,t8142-avd"; - reg = <0x23 0x09080000 0x0 0x14000>, - <0x23 0x09094000 0x0 0x14000>, - <0x23 0x090a8000 0x0 0x4000>, - <0x23 0x09100000 0x0 0x10000>; - reg-names = "code", "sram", "mbox", "ctrl"; - interrupts = , - ; - power-domains = <&ps_avd_sys>; - resets = <&ps_avd_sys>; - iommus = <&avd_dart 0>, <&avd_dart 1>, <&avd_dart 2>; - }; - - avd_dart: iommu@2309020000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x23 0x09020000 0x0 0x20000>; - #iommu-cells = <1>; - interrupts = ; - power-domains = <&ps_avd_sys>; - }; - }; - - /* - * Die 1's video decoder (ADT /arm-io/avd1, avd-version 4, the T8142 generation): reg[0] - * 0x6308000000 + 0x1404000 through arm-io's ranges, windows in the T8142/T6041 layout (CM3 code - * and SRAM 0x14000 each at +0x1080000, mailbox +0x10a8000, decode control +0x1100000); ADT - * interrupts 5521, 5522 (die 1 IRQs 2417, 2418). dart-avd1 at +0x1020000, - * interrupt 5528 (die 1 2424), SIDs 0-2 (mapper, piodma, adsbuf). Power: the clock - * gates AVD_SYS_V and AVD_SOC_DART have no PS register; both hang off AVD_SYS (PMGR block - * 0x6380600000 + 0x1d8, also the ARST reset), whose parent FAB1_SOC (+0x1b0) is critical. - */ - soc@6308000000 { - compatible = "simple-bus"; - #address-cells = <2>; - #size-cells = <2>; - ranges = <0x63 0x08000000 0x63 0x08000000 0x0 0x1404000>, - <0x63 0x80600000 0x63 0x80600000 0x0 0xc000>; - nonposted-mmio; - - pmgr4_die1: power-management@6380600000 { - compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; - reg = <0x63 0x80600000 0x0 0xc000>; - #address-cells = <1>; - #size-cells = <1>; - - ps_fab1_soc_die1: power-controller@1b0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1b0 4>; - label = "fab1_soc_die1"; - #power-domain-cells = <0>; - #reset-cells = <0>; - apple,always-on; - }; - - ps_avd_sys_die1: power-controller@1d8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x1d8 4>; - label = "avd_sys_die1"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_fab1_soc_die1>; - }; - }; - - avd_die1: avd@6309080000 { - compatible = "apple,t6050-avd", "apple,t8142-avd"; - reg = <0x63 0x09080000 0x0 0x14000>, - <0x63 0x09094000 0x0 0x14000>, - <0x63 0x090a8000 0x0 0x4000>, - <0x63 0x09100000 0x0 0x10000>; - reg-names = "code", "sram", "mbox", "ctrl"; - interrupts = , - ; - power-domains = <&ps_avd_sys_die1>; - resets = <&ps_avd_sys_die1>; - iommus = <&avd_dart_die1 0>, <&avd_dart_die1 1>, <&avd_dart_die1 2>; - }; - - avd_dart_die1: iommu@6309020000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x63 0x09020000 0x0 0x20000>; - #iommu-cells = <1>; - interrupts = ; - power-domains = <&ps_avd_sys_die1>; - }; - }; - - /* - * The DRM master: scanout buffers map through dart-dispext0 SID 0. Aura enables it with - * dcpext0, and appends each other engine's display DART (SID 0) as it hands that engine - * off: dcpext4's for the HDMI port. A disabled DART listed here would leave it no IOMMU. - */ - display: display-subsystem { - compatible = "apple,display-subsystem"; - iommus = <&dart_dispext0 0>; - status = "disabled"; - }; - - /* - * The memory cache controllers: eight AMCCs of four planes on each die (ADT /arm-io/mcc: - * amcc-count 8, dcs-count-per-amcc 4, die-enable-mask 3, AMCC a of die d at 0x2220000000 + - * d * 0x4000000000 + a * 0x2000000 through arm-io's ranges), one 16 KiB block per plane. - * The boot loader leaves every plane's ways enabled and powered with allocation disabled, so - * the system level cache holds no data until apple-mcc allows it. - */ - soc@2220000000 { - compatible = "simple-bus"; - #address-cells = <2>; - #size-cells = <2>; - ranges = <0x22 0x20000000 0x22 0x20000000 0x0 0x10000000>, - <0x62 0x20000000 0x62 0x20000000 0x0 0x10000000>; - nonposted-mmio; - - mcc: memory-controller@2220000000 { - compatible = "apple,t6050-mcc"; - reg = <0x22 0x20000000 0x0 0x4000>, - <0x22 0x20040000 0x0 0x4000>, - <0x22 0x20080000 0x0 0x4000>, - <0x22 0x200c0000 0x0 0x4000>, - <0x22 0x22000000 0x0 0x4000>, - <0x22 0x22040000 0x0 0x4000>, - <0x22 0x22080000 0x0 0x4000>, - <0x22 0x220c0000 0x0 0x4000>, - <0x22 0x24000000 0x0 0x4000>, - <0x22 0x24040000 0x0 0x4000>, - <0x22 0x24080000 0x0 0x4000>, - <0x22 0x240c0000 0x0 0x4000>, - <0x22 0x26000000 0x0 0x4000>, - <0x22 0x26040000 0x0 0x4000>, - <0x22 0x26080000 0x0 0x4000>, - <0x22 0x260c0000 0x0 0x4000>, - <0x22 0x28000000 0x0 0x4000>, - <0x22 0x28040000 0x0 0x4000>, - <0x22 0x28080000 0x0 0x4000>, - <0x22 0x280c0000 0x0 0x4000>, - <0x22 0x2a000000 0x0 0x4000>, - <0x22 0x2a040000 0x0 0x4000>, - <0x22 0x2a080000 0x0 0x4000>, - <0x22 0x2a0c0000 0x0 0x4000>, - <0x22 0x2c000000 0x0 0x4000>, - <0x22 0x2c040000 0x0 0x4000>, - <0x22 0x2c080000 0x0 0x4000>, - <0x22 0x2c0c0000 0x0 0x4000>, - <0x22 0x2e000000 0x0 0x4000>, - <0x22 0x2e040000 0x0 0x4000>, - <0x22 0x2e080000 0x0 0x4000>, - <0x22 0x2e0c0000 0x0 0x4000>, - <0x62 0x20000000 0x0 0x4000>, - <0x62 0x20040000 0x0 0x4000>, - <0x62 0x20080000 0x0 0x4000>, - <0x62 0x200c0000 0x0 0x4000>, - <0x62 0x22000000 0x0 0x4000>, - <0x62 0x22040000 0x0 0x4000>, - <0x62 0x22080000 0x0 0x4000>, - <0x62 0x220c0000 0x0 0x4000>, - <0x62 0x24000000 0x0 0x4000>, - <0x62 0x24040000 0x0 0x4000>, - <0x62 0x24080000 0x0 0x4000>, - <0x62 0x240c0000 0x0 0x4000>, - <0x62 0x26000000 0x0 0x4000>, - <0x62 0x26040000 0x0 0x4000>, - <0x62 0x26080000 0x0 0x4000>, - <0x62 0x260c0000 0x0 0x4000>, - <0x62 0x28000000 0x0 0x4000>, - <0x62 0x28040000 0x0 0x4000>, - <0x62 0x28080000 0x0 0x4000>, - <0x62 0x280c0000 0x0 0x4000>, - <0x62 0x2a000000 0x0 0x4000>, - <0x62 0x2a040000 0x0 0x4000>, - <0x62 0x2a080000 0x0 0x4000>, - <0x62 0x2a0c0000 0x0 0x4000>, - <0x62 0x2c000000 0x0 0x4000>, - <0x62 0x2c040000 0x0 0x4000>, - <0x62 0x2c080000 0x0 0x4000>, - <0x62 0x2c0c0000 0x0 0x4000>, - <0x62 0x2e000000 0x0 0x4000>, - <0x62 0x2e040000 0x0 0x4000>, - <0x62 0x2e080000 0x0 0x4000>, - <0x62 0x2e0c0000 0x0 0x4000>; - apple,boot-dma-devices = <&display>; - }; - }; - - /* Die 1 MMIO. The boot loader needs each die's bus. */ - soc@4200000000 { - compatible = "simple-bus"; - #address-cells = <2>; - #size-cells = <2>; - ranges = <0x42 0x0 0x42 0x0 0x3 0xc0000000>; - nonposted-mmio; - - /* - * dcpext4, die 1's first external display engine: the one the HDMI port's fixed - * route starts from (die 1's display crossbar, ufp endpoint 0, to lpdptx-phy1, dfp - * endpoint 4). iBoot leaves it as it leaves dcpext0: powered, its ASC running, both - * DARTs locked on its own four-level tables (DCP SID 23, scanout SID 0, PIODMA SID 16). - * Each block is dcpext0's at the die stride (ADT /arm-io/dcpext4, dispext4, - * dart-dcpext4, dart-dispext4, die 1's arm-io ranges +0x200000000); die 1's interrupts - * are dcpext0's numbers on AIC die 1, and its bandwidth request is dcpext0's (BIRQ 0x36) - * on die 1's PMC. All disabled: Aura's T6050 handoff enables them with dcpext0 when - * the engine passes the same checks. No output yet: the HDMI PHY, its converter's power - * and hotplug come with their drivers. - */ - dart_dcpext4: iommu@42b2340000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x42 0xb2340000 0x0 0x20000>; - /* dart-dcpext4 and dart-dispext4 share ADT interrupt 4174 (die 1 1070) */ - interrupts = ; - #iommu-cells = <1>; - apple,dma-range = <0x100 0x0 0x300 0x0>; - status = "disabled"; - }; - - dart_dispext4: iommu@42b2300000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x42 0xb2300000 0x0 0xc000>; - interrupts = ; - #iommu-cells = <1>; - apple,dma-range = <0x100 0x0 0x300 0x0>; - status = "disabled"; - }; - - dcpext4_mbox: mailbox@42b2e08000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x42 0xb2e08000 0x0 0x4000>; - interrupts = , - , - , - ; - interrupt-names = "send-empty", "send-not-empty", - "recv-empty", "recv-not-empty"; - #mbox-cells = <0>; - status = "disabled"; - }; - - dcpext4_pmc: pmc-metadata@4286700000 { - reg = <0x42 0x86700000 0x0 0x114000>; - #apple,bw-scratch-cells = <3>; - status = "disabled"; - }; - - dcpext4: dcp@42b2e00000 { - compatible = "apple,t6050-dcpext", "apple,dcpext"; - reg = <0x42 0xb2e00000 0x0 0x4000>, - <0x42 0xb0000000 0x0 0x4000000>, - <0x42 0xb2240000 0x0 0x10000>, - <0x42 0xb23ac000 0x0 0x4000>, - <0x42 0xb2800000 0x0 0x800000>, - <0x42 0x86700000 0x0 0x114000>, - <0x42 0xb2850000 0x0 0x4000>; - reg-names = "coproc", "disp-0", "disp-1", "disp-2", "disp-3", "disp-4", "iop-vbar"; - mboxes = <&dcpext4_mbox>; - mbox-names = "mbox"; - iommus = <&dart_dcpext4 23>; - apple,bw-scratch = <&dcpext4_pmc 0 5 0x2c000>; - /* - * The die-local index, as for the M2 Ultra's die-1 dcpext0 (t602x-dieX.dtsi): - * crossbar ufp endpoint 0 on its die, like dcpext0. The ADT's firmware-facing - * external-index is 5. - */ - apple,dcp-index = <1>; - apple,clock-ids; - apple,connector-type = "HDMI-A"; - apple,dptx-die = <1>; - apple,dptx-phy = <4>; - /* - * The fixed HDMI route: the PHY (its source select picks this engine: the - * crossbar has no registers), the converter's hotplug output (AOP GPIO 14, - * active high) and its two power enables (the SMC's pcIO pins 15 and 26). - */ - phys = <&lpdptx_phy1>; - phy-names = "dp-phy"; - hdmi-hpd-gpios = <&pinctrl_aop 14 GPIO_ACTIVE_HIGH>; - hdmi-pwren-gpios = <&smc_pcio 0 GPIO_ACTIVE_HIGH>; - dp2hdmi-pwren-gpios = <&smc_pcio 1 GPIO_ACTIVE_HIGH>; - status = "disabled"; - - piodma { - iommus = <&dart_dispext4 16>; - }; - }; - - /* - * The HDMI port's PHY (ADT /arm-io/lpdptx-phy1, dptx-phy,t6050) and its power gate - * (die 1's PMGR block at the die stride from die 0's 0x280900000, DPTX_PHY at 0x3f8, - * no parent domains). The PLL core calibration is the ADT node's DCOCFG, DTCVREG, - * DTCCAL, DCDADJ and DLFCFG (RODCOROLEAKCOMP is absent there), with its pclkdrv-select. - * dcpext4's phy: Aura enables it when it hands dcpext4 off. The power gate stays enabled - * (with no consumer it stays off). - */ - pmgr1_die1: power-management@4280900000 { - compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; - reg = <0x42 0x80900000 0x0 0x4000>; - #address-cells = <1>; - #size-cells = <1>; - - ps_dptx_phy_die1: power-controller@3f8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x3f8 4>; - label = "die1_dptx_phy"; - #power-domain-cells = <0>; - #reset-cells = <0>; - }; - }; - - lpdptx_phy1: phy@429c200000 { - compatible = "apple,t6050-dptx-phy"; - reg = <0x42 0x9c200000 0x0 0x4000>, - <0x42 0x9c240000 0x0 0x10000>; - reg-names = "core", "dptx"; - power-domains = <&ps_dptx_phy_die1>; - #phy-cells = <0>; - #reset-cells = <0>; - apple,pll-dcocfg = <3>; - apple,pll-dtcvreg = <15>; - apple,pll-dtccal = <2>; - apple,pll-dcdadj = <16>; - apple,pll-dlfcfg = <3>; - apple,pclkdrv-select = <1>; - /* dcpext4's route: the die-1 crossbar's ufp endpoint 0 (source select 1) */ - apple,ufp-endpoint = <0>; - /* Aura enables it with dcpext4. */ - status = "disabled"; - }; - - /* Die 1's clusters, at the ADT's die-stride (0x4000000000); not in pmgr's reg list. */ - cpufreq_mc01: performance-controller@4210e20000 { - compatible = "apple,t6050-cluster-cpufreq"; - reg = <0x42 0x10e20000 0x0 0x1000>; - #performance-domain-cells = <0>; - apple,firmware-managed-thermal; - }; - - cpufreq_mc11: performance-controller@4211e20000 { - compatible = "apple,t6050-cluster-cpufreq"; - reg = <0x42 0x11e20000 0x0 0x1000>; - #performance-domain-cells = <0>; - apple,firmware-managed-thermal; - }; - - cpufreq_pc1: performance-controller@4212e20000 { - compatible = "apple,t6050-cluster-cpufreq"; - reg = <0x42 0x12e20000 0x0 0x1000>; - #performance-domain-cells = <0>; - apple,firmware-managed-thermal; - }; - - /* - * The front USB-C ports (5, front-right: ATC4; 6, front-left: ATC5) are on die 1: its - * ATC0 and ATC1 at the die stride from rear ports 1 and 2. Their power states are die 1's - * PMGR records for ATC0/ATC1 (ADT gate IDs +0x10000000), in die 1's groups G0 (0x4280600000) - * and G2 (0x4288300000); interrupts are die 0's numbers on AIC die 1. The HPMs are on - * nub-spmi-a2, on die 0. - */ - pmgr0_die1: power-management@4280600000 { - compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; - reg = <0x42 0x80600000 0x0 0x4000>; - #address-cells = <1>; - #size-cells = <1>; - - /* die 1 ATC0_COMMON (gate 55): port 5 */ - ps_atc4_common: power-controller@208 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x208 4>; - label = "atc4_common"; - #power-domain-cells = <0>; - #reset-cells = <0>; - }; - - /* die 1 ATC1_COMMON (gate 56): port 6 */ - ps_atc5_common: power-controller@210 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x210 4>; - label = "atc5_common"; - #power-domain-cells = <0>; - #reset-cells = <0>; - }; - }; - - pmgr2_die1: power-management@4288300000 { - compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; - reg = <0x42 0x88300000 0x0 0xc000>; - #address-cells = <1>; - #size-cells = <1>; - - /* die 1 ATC0 (port 5): gates 260, 261, 262 */ - ps_atc4_usb_aon: power-controller@148 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x148 4>; - label = "atc4_usb_aon"; - #power-domain-cells = <0>; - #reset-cells = <0>; - }; - - ps_atc4_usb: power-controller@150 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x150 4>; - label = "atc4_usb"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc4_common>, <&ps_atc4_usb_aon>; - }; - - ps_atc4_phymxwrap: power-controller@158 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x158 4>; - label = "atc4_phymxwrap"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc4_common>, <&ps_atc4_usb_aon>; - }; - - /* die 1 ATC1 (port 6): gates 263, 264, 265 */ - ps_atc5_usb_aon: power-controller@160 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x160 4>; - label = "atc5_usb_aon"; - #power-domain-cells = <0>; - #reset-cells = <0>; - }; - - ps_atc5_usb: power-controller@168 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x168 4>; - label = "atc5_usb"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc5_common>, <&ps_atc5_usb_aon>; - }; - - ps_atc5_phymxwrap: power-controller@170 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x170 4>; - label = "atc5_phymxwrap"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc5_common>, <&ps_atc5_usb_aon>; - }; - }; - - /* Front USB-C port 5 (HPM4, "front-right") */ - /* /arm-io/acio-phy-cpu4 reg[0]: the PHY firmware's mailbox */ - atc4_phy_mbox: mailbox@42a3148000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x42 0xa3148000 0x0 0x4000>; - interrupts = , - , - , - ; - interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; - #mbox-cells = <0>; - }; - - /* /arm-io/atc-phy4 regs [2] [0] usb-drd4[4] [39] [40] [41] [42] [43] [38] [37] usb-drd4[3] */ - atc4_phy: phy@42a3000000 { - compatible = "apple,t6050-combo-phy"; - reg = <0x42 0xa3000000 0x0 0x2c000>, - <0x42 0xa2a90000 0x0 0x4000>, - <0x42 0xa2800000 0x0 0x4000>, - <0x42 0xa3200000 0x0 0x4000>, - <0x42 0xa3244000 0x0 0x4000>, - <0x42 0xa0000000 0x0 0x8000>, - <0x42 0xa0020000 0x0 0x4000>, - <0x42 0xa3250000 0x0 0x4000>, - <0x42 0xa3140000 0x0 0x4000>, - <0x42 0xa30c0000 0x0 0x10000>, - <0x42 0xa2a84000 0x0 0x4000>; - reg-names = "core", "usb2phy", "usb2-digital", "reset", "fabric", "axi2af", "lioa", - "common-cfg", "usb-control", "firmware-data", "pipehandler"; - #phy-cells = <1>; - #reset-cells = <1>; - apple,port-index = <4>; - apple,guest-port-reserved; - mode-switch; - orientation-switch; - mboxes = <&atc4_phy_mbox>; - power-domains = <&ps_atc4_usb_aon>, <&ps_atc4_common>, <&ps_atc4_phymxwrap>, - <&ps_atc4_usb>; - power-domain-names = "usb-aon", "common", "wrapper", "usb"; - - port { - atc4_phy_ep: endpoint { - remote-endpoint = <&hpm4_ss>; - }; - }; - }; - - /* /arm-io/usb-drd4: reg[0] (core and Apple regions), reg[1] (drd-cfg), interrupt 4523; port 2's tunables */ - usb_drd4: usb@42a2280000 { - compatible = "apple,t6050-dwc3", "apple,t8103-dwc3"; - reg = <0x42 0xa2280000 0x0 0xcd00>, - <0x42 0xa228cd00 0x0 0x4b00>, - <0x42 0xa2200000 0x0 0x4000>; - reg-names = "dwc3-core", "dwc3-apple", "drd-cfg"; - interrupts = ; - dr_mode = "otg"; - usb-role-switch; - role-switch-default-mode = "host"; - iommus = <&usb_drd4_dart_0 0>, <&usb_drd4_dart_1 1>; - power-domains = <&ps_atc4_usb>; - resets = <&atc4_phy 0>; - phys = <&atc4_phy PHY_TYPE_USB2>, <&atc4_phy PHY_TYPE_USB3>; - phy-names = "usb2-phy", "usb3-phy"; - apple,tunable-gbl-default = <0x64 0x2 0x0>, <0x10 0xfff80000 0x00680000>; - apple,tunable-gbl-host = <0x4 0x0001ef00 0x00002f00>, <0x1c 0x00000100 0x0>, - <0x2c 0x000a07ff 0x000800c8>, <0x100 0x02000100 0x02000100>, - <0x504 0x00001000 0x0>, <0x528 0xff0000ff 0x06000006>, - <0x52c 0xff0000ff 0x08000008>, <0x580 0xffffffff 0x6f000006>, - <0x584 0xffffffff 0x00060000>; - apple,tunable-dbg = <0x0 0x8 0x8>; - apple,tunable-cfg-host = <0x20 0xff 0x1b>; - apple,tunable-link = <0x10 0xff000000 0xff000000>, <0x20 0x7ff00000 0x4e900000>, - <0x24 0x001f8000 0x000b8000>, <0x60 0x0003ffff 0x00000600>; - apple,tunable-cio = <0x20 0x00ff0000 0x001e0000>; - - port { - usb_drd4_hs: endpoint { - remote-endpoint = <&hpm4_hs>; - }; - }; - }; - - /* /arm-io/dart-usb4 reg[0] and reg[1], interrupt 4527; vm-base 0x10000004000 +0xffff0000 */ - usb_drd4_dart_0: iommu@42a2f00000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x42 0xa2f00000 0x0 0xc000>; - interrupts = ; - power-domains = <&ps_atc4_usb>; - #iommu-cells = <1>; - apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; - }; - - usb_drd4_dart_1: iommu@42a2f80000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x42 0xa2f80000 0x0 0xc000>; - interrupts = ; - power-domains = <&ps_atc4_usb>; - #iommu-cells = <1>; - apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; - }; - - /* Front USB-C port 6 (HPM5, "front-left") */ - /* /arm-io/acio-phy-cpu5 reg[0]: the PHY firmware's mailbox */ - atc5_phy_mbox: mailbox@42ab148000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x42 0xab148000 0x0 0x4000>; - interrupts = , - , - , - ; - interrupt-names = "send-empty", "send-not-empty", "recv-empty", "recv-not-empty"; - #mbox-cells = <0>; - }; - - /* /arm-io/atc-phy5 regs [2] [0] usb-drd5[4] [39] [40] [41] [42] [43] [38] [37] usb-drd5[3] */ - atc5_phy: phy@42ab000000 { - compatible = "apple,t6050-combo-phy"; - reg = <0x42 0xab000000 0x0 0x2c000>, - <0x42 0xaaa90000 0x0 0x4000>, - <0x42 0xaa800000 0x0 0x4000>, - <0x42 0xab200000 0x0 0x4000>, - <0x42 0xab244000 0x0 0x4000>, - <0x42 0xa8000000 0x0 0x8000>, - <0x42 0xa8020000 0x0 0x4000>, - <0x42 0xab250000 0x0 0x4000>, - <0x42 0xab140000 0x0 0x4000>, - <0x42 0xab0c0000 0x0 0x10000>, - <0x42 0xaaa84000 0x0 0x4000>; - reg-names = "core", "usb2phy", "usb2-digital", "reset", "fabric", "axi2af", "lioa", - "common-cfg", "usb-control", "firmware-data", "pipehandler"; - #phy-cells = <1>; - #reset-cells = <1>; - apple,port-index = <5>; - apple,guest-port-reserved; - mode-switch; - orientation-switch; - mboxes = <&atc5_phy_mbox>; - power-domains = <&ps_atc5_usb_aon>, <&ps_atc5_common>, <&ps_atc5_phymxwrap>, - <&ps_atc5_usb>; - power-domain-names = "usb-aon", "common", "wrapper", "usb"; - - port { - atc5_phy_ep: endpoint { - remote-endpoint = <&hpm5_ss>; - }; - }; - }; - - /* /arm-io/usb-drd5: reg[0] (core and Apple regions), reg[1] (drd-cfg), interrupt 4555; port 2's tunables */ - usb_drd5: usb@42aa280000 { - compatible = "apple,t6050-dwc3", "apple,t8103-dwc3"; - reg = <0x42 0xaa280000 0x0 0xcd00>, - <0x42 0xaa28cd00 0x0 0x4b00>, - <0x42 0xaa200000 0x0 0x4000>; - reg-names = "dwc3-core", "dwc3-apple", "drd-cfg"; - interrupts = ; - dr_mode = "otg"; - usb-role-switch; - role-switch-default-mode = "host"; - iommus = <&usb_drd5_dart_0 0>, <&usb_drd5_dart_1 1>; - power-domains = <&ps_atc5_usb>; - resets = <&atc5_phy 0>; - phys = <&atc5_phy PHY_TYPE_USB2>, <&atc5_phy PHY_TYPE_USB3>; - phy-names = "usb2-phy", "usb3-phy"; - apple,tunable-gbl-default = <0x64 0x2 0x0>, <0x10 0xfff80000 0x00680000>; - apple,tunable-gbl-host = <0x4 0x0001ef00 0x00002f00>, <0x1c 0x00000100 0x0>, - <0x2c 0x000a07ff 0x000800c8>, <0x100 0x02000100 0x02000100>, - <0x504 0x00001000 0x0>, <0x528 0xff0000ff 0x06000006>, - <0x52c 0xff0000ff 0x08000008>, <0x580 0xffffffff 0x6f000006>, - <0x584 0xffffffff 0x00060000>; - apple,tunable-dbg = <0x0 0x8 0x8>; - apple,tunable-cfg-host = <0x20 0xff 0x1b>; - apple,tunable-link = <0x10 0xff000000 0xff000000>, <0x20 0x7ff00000 0x4e900000>, - <0x24 0x001f8000 0x000b8000>, <0x60 0x0003ffff 0x00000600>; - apple,tunable-cio = <0x20 0x00ff0000 0x001e0000>; - - port { - usb_drd5_hs: endpoint { - remote-endpoint = <&hpm5_hs>; - }; - }; - }; - - /* /arm-io/dart-usb5 reg[0] and reg[1], interrupt 4559; vm-base 0x10000004000 +0xffff0000 */ - usb_drd5_dart_0: iommu@42aaf00000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x42 0xaaf00000 0x0 0xc000>; - interrupts = ; - power-domains = <&ps_atc5_usb>; - #iommu-cells = <1>; - apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; - }; - - usb_drd5_dart_1: iommu@42aaf80000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x42 0xaaf80000 0x0 0xc000>; - interrupts = ; - power-domains = <&ps_atc5_usb>; - #iommu-cells = <1>; - apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; - }; - }; -}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-loader-gpu.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-loader-gpu.dtsi deleted file mode 100644 index cd6b317801737..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-loader-gpu.dtsi +++ /dev/null @@ -1,98 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* Retained candidate44 definitions at installed Aura GPU handoff paths. */ -/ { - soc@2300000000 { - compatible = "simple-bus"; - #address-cells = <2>; - #size-cells = <2>; - ranges = <0x23 0 0x23 0 0 0x4000000>; - nonposted-mmio; - - gpu: gpu@2302600000 { - compatible = "apple,agx-g17c", "apple,agx-g17s", "apple,agx-t6050"; - reg = <0x23 0x02600000 0x0 0x88000>, - <0x23 0x00000000 0x0 0x4000000>; - reg-names = "asc", "sgx"; - mboxes = <&gfx_mbox>, <&gfx1_mbox>; - power-domains = <&ps_gfx>; - memory-region = <&uat_ttbs>, <&uat_pagetables>, <&uat_handoff>, - <&gpu_fw_data>, <&uat_l2_pagetables>, <&gpu_fw_text>; - memory-region-names = "ttbs", "pagetables", "handoff", "fw-data", - "l2-pagetables", "fw-text"; - operating-points-v2 = <&gpu_opp>; - apple,afr-opp = <&gpu_afr_opp>; - apple,cs-opp = <&gpu_cs_opp>; - /* Submissions hold the memory and fabric floor while the GPU has work. */ - apple,clpc = <&clpc>; - apple,csafr-min-sram-microvolt = <0>; - /* The six AON power-telemetry records the firmware samples: FourCC and two words each. */ - apple,aon-ptd = <0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0>; - status = "disabled"; - }; - - gfx_mbox: mailbox@2302600000 { - compatible = "apple,t6050-j775d-ascwrap-v6"; - reg = <0x23 0x02600000 0x0 0x88000>, - <0x23 0x02050000 0x0 0x8>; - reg-names = "wrapper", "iop-vbar"; - interrupts = , - ; - interrupt-names = "send-empty", "recv-not-empty"; - apple,firmware-role = "GFX"; - power-domains = <&ps_gfx>; - #mbox-cells = <0>; - status = "disabled"; - }; - - gfx1_mbox: mailbox@2302e00000 { - compatible = "apple,t6050-j775d-ascwrap-v6"; - reg = <0x23 0x02e00000 0x0 0x88000>, - <0x23 0x02850000 0x0 0x8>; - reg-names = "wrapper", "iop-vbar"; - interrupts = , - ; - interrupt-names = "send-empty", "recv-not-empty"; - apple,firmware-role = "GFX1"; - power-domains = <&ps_gfx>; - #mbox-cells = <0>; - status = "disabled"; - }; - - pmgr3: power-management@2300e80000 { - compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; - reg = <0x23 0x00e80000 0x0 0x4000>; - #address-cells = <1>; - #size-cells = <1>; - - ps_gpx: power-controller@0 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x0 4>; - label = "gpx"; - #power-domain-cells = <0>; - #reset-cells = <0>; - apple,always-on; - status = "disabled"; - }; - - ps_afr: power-controller@100 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x100 4>; - label = "afr"; - #power-domain-cells = <0>; - #reset-cells = <0>; - apple,always-on; - status = "disabled"; - }; - - ps_gfx: power-controller@110 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x110 4>; - label = "gfx"; - #power-domain-cells = <0>; - power-domains = <&ps_afr>, <&ps_gpx>; - #reset-cells = <0>; - status = "disabled"; - }; - }; - }; -}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-rebased-peripherals.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-rebased-peripherals.dtsi deleted file mode 100644 index 1c0b9b4434674..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-rebased-peripherals.dtsi +++ /dev/null @@ -1,302 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* - * Retained candidate-44 peripheral definitions, moved to integration's - * identity-mapped peripheral bus. Original authorship and definitions - * are retained from the T6050/J775c sources. - * Copyright The Asahi Linux Contributors - */ -/ { - soc { - compatible = "simple-bus"; - #address-cells = <2>; - #size-cells = <2>; - ranges; - nonposted-mmio; - - dart_apcie1: iommu@411000000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x4 0x11000000 0x0 0x20000>; - interrupts = ; - #iommu-cells = <1>; - status = "disabled"; - }; - - atc0_xbar: mux@2a324c000 { - compatible = "apple,t6050-display-crossbar", "apple,t8142-display-crossbar"; - reg = <0x2 0xa324c000 0x0 0x4000>; - #mux-control-cells = <1>; - power-domains = <&ps_atc0_usb_aon>, <&ps_atc0_common>; - power-domain-names = "usb-aon", "common"; - }; - - atc1_xbar: mux@2ab24c000 { - compatible = "apple,t6050-display-crossbar", "apple,t8142-display-crossbar"; - reg = <0x2 0xab24c000 0x0 0x4000>; - #mux-control-cells = <1>; - power-domains = <&ps_atc1_usb_aon>, <&ps_atc1_common>; - power-domain-names = "usb-aon", "common"; - }; - - atc3_xbar: mux@38b24c000 { - compatible = "apple,t6050-display-crossbar", "apple,t8142-display-crossbar"; - reg = <0x3 0x8b24c000 0x0 0x4000>; - #mux-control-cells = <1>; - power-domains = <&ps_atc3_usb_aon>, <&ps_atc3_common>; - power-domain-names = "usb-aon", "common"; - }; - - pinctrl_nub: pinctrl@2881e4000 { - compatible = "apple,t6050-pinctrl", "apple,t8103-pinctrl"; - reg = <0x2 0x881e4000 0x0 0x4000>; - gpio-controller; - #gpio-cells = <2>; - gpio-ranges = <&pinctrl_nub 0 0 61>; - apple,npins = <61>; - gpio-reserved-ranges = <0 14>, <15 46>; - gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "", "", - "usb3hub_rst"; - interrupt-controller; - #interrupt-cells = <2>; - interrupt-parent = <&aic>; - interrupts = , - , - , - , - , - , - ; - - usb3hub-rst-hog { - gpio-hog; - gpios = <14 GPIO_ACTIVE_LOW>; - output-low; - line-name = "usb3hub_rst"; - }; - }; - - usb_drd0_dart_0: iommu@2a2f00000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x2 0xa2f00000 0x0 0xc000>; - interrupts = ; - power-domains = <&ps_atc0_usb>; - #iommu-cells = <1>; - apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; - }; - - usb_drd0_dart_1: iommu@2a2f80000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x2 0xa2f80000 0x0 0xc000>; - interrupts = ; - power-domains = <&ps_atc0_usb>; - #iommu-cells = <1>; - apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; - }; - - usb_drd0: usb@2a2280000 { - compatible = "apple,t6050-dwc3", "apple,t8103-dwc3"; - reg = <0x2 0xa2280000 0x0 0xcd00>, - <0x2 0xa228cd00 0x0 0x4b00>, - <0x2 0xa2200000 0x0 0x4000>; - reg-names = "dwc3-core", "dwc3-apple", "drd-cfg"; - interrupts = ; - dr_mode = "otg"; - usb-role-switch; - role-switch-default-mode = "host"; - iommus = <&usb_drd0_dart_0 0>, <&usb_drd0_dart_1 1>; - power-domains = <&ps_atc0_usb>; - resets = <&atc0_phy 0>; - phys = <&atc0_phy PHY_TYPE_USB2>, <&atc0_phy PHY_TYPE_USB3>; - phy-names = "usb2-phy", "usb3-phy"; - apple,tunable-gbl-default = <0x64 0x2 0x0>, <0x10 0xfff80000 0x00680000>; - apple,tunable-gbl-host = <0x4 0x0001ef00 0x00002f00>, <0x1c 0x00000100 0x0>, - <0x2c 0x000a07ff 0x000800c8>, <0x100 0x02000100 0x02000100>, - <0x504 0x00001000 0x0>, <0x528 0xff0000ff 0x06000006>, - <0x52c 0xff0000ff 0x08000008>, <0x580 0xffffffff 0x6f000006>, - <0x584 0xffffffff 0x00060000>; - apple,tunable-dbg = <0x0 0x8 0x8>; - apple,tunable-cfg-host = <0x20 0xff 0x1b>; - apple,tunable-link = <0x10 0xff000000 0xff000000>, <0x20 0x7ff00000 0x4e900000>, - <0x24 0x001f8000 0x000b8000>, <0x60 0x0003ffff 0x00000600>; - apple,tunable-cio = <0x20 0x00ff0000 0x001e0000>; - - port { - usb_drd0_hs: endpoint { - remote-endpoint = <&hpm0_hs>; - }; - }; - }; - - dart_dispext0_isoc: iommu@2b2180000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x2 0xb2180000 0x0 0x20000>; - interrupts = ; - #iommu-cells = <1>; - power-domains = <&ps_dispext0_adma>; - apple,dma-range = <0x100 0x0 0x10 0x0>; - }; - - admac_dispext0: dma-controller@2b2140000 { - compatible = "apple,t6050-admac", "apple,t8140-admac"; - reg = <0x2 0xb2140000 0x0 0x24000>; - dma-channels = <1>; - interrupts-extended = <&aic AIC_IRQ 0 1092 IRQ_TYPE_LEVEL_HIGH>, - <0>, <0>, <0>; - #dma-cells = <1>; - iommus = <&dart_dispext0_isoc 30>; - power-domains = <&ps_dispext0_adma>; - apple,dma-range = <0x100 0x0 0x10 0x0>; - }; - - dcpext1_mbox: mailbox@392e08000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x3 0x92e08000 0x0 0x4000>; - interrupts = , - , - , - ; - interrupt-names = "send-empty", "send-not-empty", - "recv-empty", "recv-not-empty"; - #mbox-cells = <0>; - status = "disabled"; - }; - - dcpext1: dcp@392e00000 { - compatible = "apple,t6050-dcpext", "apple,dcpext"; - reg = <0x3 0x92e00000 0x0 0x4000>, - <0x3 0x90000000 0x0 0x4000000>, - <0x3 0x92240000 0x0 0x10000>, - <0x3 0x923ac000 0x0 0x4000>, - <0x3 0x92800000 0x0 0x800000>, - <0x2 0x86700000 0x0 0x114000>, - <0x3 0x92850000 0x0 0x4000>; - reg-names = "coproc", "disp-0", "disp-1", "disp-2", "disp-3", "disp-4", "iop-vbar"; - mboxes = <&dcpext1_mbox>; - mbox-names = "mbox"; - iommus = <&dart_dcpext1 23>; - /* The PMC metadata is die 0's one block, dcpext0_pmc; DISP_EXT1's slot in it */ - apple,bw-scratch = <&dcpext0_pmc 0 5 0x30000>; - /* The ADT external-index (iop-dcpext1-nub), as dcpext0's 1 */ - apple,dcp-index = <2>; - apple,clock-ids; - apple,connector-type = "HDMI-A"; - apple,dptx-die = <0>; - apple,dptx-phy = <4>; - /* - * The fixed HDMI route: the PHY (its source select picks this engine), the - * converter's hotplug output (AOP GPIO 14, active high) and its two power - * enables (the SMC's pcIO lines). - */ - phys = <&lpdptx_phy0>; - phy-names = "dp-phy"; - hdmi-hpd-gpios = <&pinctrl_aop 14 GPIO_ACTIVE_HIGH>; - hdmi-pwren-gpios = <&smc_pcio 0 GPIO_ACTIVE_HIGH>; - dp2hdmi-pwren-gpios = <&smc_pcio 1 GPIO_ACTIVE_HIGH>; - status = "disabled"; - - piodma { - iommus = <&dart_dispext1 16>; - }; - }; - - dart_dcpext1: iommu@392340000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x3 0x92340000 0x0 0x20000>; - /* dart-dcpext1 and dart-dispext1 share ADT interrupt 1142 */ - interrupts = ; - #iommu-cells = <1>; - /* ADT vm-base 1 TiB, vm-size 3 TiB */ - apple,dma-range = <0x100 0x0 0x300 0x0>; - status = "disabled"; - }; - - dart_dispext1: iommu@392300000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - /* reg[0] only, as for dart-dispext0 */ - reg = <0x3 0x92300000 0x0 0xc000>; - interrupts = ; - #iommu-cells = <1>; - apple,dma-range = <0x100 0x0 0x300 0x0>; - status = "disabled"; - }; - - dart_dispext1_isoc: iommu@392180000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0x3 0x92180000 0x0 0x20000>; - interrupts = ; - #iommu-cells = <1>; - power-domains = <&ps_dispext1_adma>; - /* ADT vm-base 1 TiB, vm-size 64 GiB */ - apple,dma-range = <0x100 0x0 0x10 0x0>; - }; - - admac_dispext1: dma-controller@392140000 { - compatible = "apple,t6050-admac", "apple,t8140-admac"; - reg = <0x3 0x92140000 0x0 0x24000>; - /* One TX channel: Linux channel 0 */ - dma-channels = <1>; - interrupts-extended = <&aic AIC_IRQ 0 1164 IRQ_TYPE_LEVEL_HIGH>, - <0>, <0>, <0>; - #dma-cells = <1>; - iommus = <&dart_dispext1_isoc 30>; - power-domains = <&ps_dispext1_adma>; - apple,dma-range = <0x100 0x0 0x10 0x0>; - }; - - ane_dart0: iommu@509800000 { - compatible = "apple,t6050-ane-dart", "apple,t6050-dart", - "apple,t8110-dart"; - reg = <0x5 0x09800000 0x0 0xc000>; - #iommu-cells = <1>; - interrupt-parent = <&aic>; - interrupts = ; - power-domains = <&ps_ane_sys>; - /* The firmware DVAs reach 0x100_xxxx_xxxx. */ - apple,dma-range = <0x0 0x0 0x400 0x0>; - status = "disabled"; - }; - - ane_dart1: iommu@509820000 { - compatible = "apple,t6050-ane-dart", "apple,t6050-dart", - "apple,t8110-dart"; - reg = <0x5 0x09820000 0x0 0xc000>; - #iommu-cells = <1>; - interrupt-parent = <&aic>; - interrupts = ; - power-domains = <&ps_ane_sys>; - apple,dma-range = <0x0 0x0 0x400 0x0>; - status = "disabled"; - }; - - ane_dart2: iommu@509840000 { - compatible = "apple,t6050-ane-dart", "apple,t6050-dart", - "apple,t8110-dart"; - reg = <0x5 0x09840000 0x0 0xc000>; - #iommu-cells = <1>; - interrupt-parent = <&aic>; - interrupts = ; - power-domains = <&ps_ane_sys>; - apple,dma-range = <0x0 0x0 0x400 0x0>; - status = "disabled"; - }; - - lpdptx_phy0: phy@29c200000 { - compatible = "apple,t6050-dptx-phy"; - reg = <0x2 0x9c200000 0x0 0x4000>, - <0x2 0x9c240000 0x0 0x10000>; - reg-names = "core", "dptx"; - power-domains = <&ps_dptx_phy>; - #phy-cells = <0>; - #reset-cells = <0>; - apple,pll-dcocfg = <3>; - apple,pll-dtcvreg = <15>; - apple,pll-dtccal = <2>; - apple,pll-dcdadj = <16>; - apple,pll-dlfcfg = <3>; - apple,pclkdrv-select = <1>; - /* dcpext1's route: the crossbar's ufp endpoint 1 (source select 2) */ - apple,ufp-endpoint = <1>; - /* Aura enables it with dcpext1. */ - status = "disabled"; - }; - }; -}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-usb4-capture.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-usb4-capture.dtsi deleted file mode 100644 index 83938904e80ce..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-usb4-capture.dtsi +++ /dev/null @@ -1,24 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT -/* - * Diagnostic-only ramoops region, inside the J775c's reported System RAM - * 0x10003d70000..0x10fcf3effff and outside its existing reserved ranges. - * Excluded by memblock before allocation; no-map avoids a cached linear alias. - * Reset/firmware retention is measured separately, never assumed. - */ -/ { - reserved-memory { - #address-cells = <2>; - #size-cells = <2>; - ranges; - - usb4_ramoops: ramoops@10100000000 { - compatible = "ramoops"; - reg = <0x101 0x0 0x0 0x200000>; - no-map; - record-size = <0x40000>; - console-size = <0x80000>; - pmsg-size = <0x40000>; - ecc-size = <16>; - }; - }; -}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c-usb4.dtsi b/arch/arm64/boot/dts/apple/t6050-j775c-usb4.dtsi deleted file mode 100644 index d0fe27c0d3a4e..0000000000000 --- a/arch/arm64/boot/dts/apple/t6050-j775c-usb4.dtsi +++ /dev/null @@ -1,424 +0,0 @@ -/* J775c rear USB4 routers. Per-controller resources and tunables from J775c ADT. */ - - -&{/aliases} { - usb4-0-acio = &acio0; - usb4-0-nhi = &acio0_nhi; - usb4-1-acio = &acio1; - usb4-1-nhi = &acio1_nhi; - usb4-2-acio = &acio2; - usb4-2-nhi = &acio2_nhi; - usb4-3-acio = &acio3; - usb4-3-nhi = &acio3_nhi; -}; - - -&pmgr0 { - - ps_atc0_cio: power-controller@280 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x280 4>; - label = "atc0_cio"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc0_common>; - }; - - ps_atc0_cio_pcie: power-controller@338 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x338 4>; - label = "atc0_cio_pcie"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc0_cio>; - }; - - ps_atc0_cio_usb: power-controller@340 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x340 4>; - label = "atc0_cio_usb"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc0_cio>; - }; - - ps_atc0_cio_auss: power-controller@348 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x348 4>; - label = "atc0_cio_auss"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc0_cio>, <&ps_auss>; - }; - - ps_atc1_cio: power-controller@290 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x290 4>; - label = "atc1_cio"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc1_common>; - }; - - ps_atc1_cio_pcie: power-controller@350 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x350 4>; - label = "atc1_cio_pcie"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc1_cio>; - }; - - ps_atc1_cio_usb: power-controller@358 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x358 4>; - label = "atc1_cio_usb"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc1_cio>; - }; - - ps_atc1_cio_auss: power-controller@360 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x360 4>; - label = "atc1_cio_auss"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc1_cio>, <&ps_auss>; - }; - - ps_atc2_cio: power-controller@2e8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x2e8 4>; - label = "atc2_cio"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc2_common>; - }; - - ps_atc2_cio_pcie: power-controller@3f8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x3f8 4>; - label = "atc2_cio_pcie"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc2_cio>; - }; - - ps_atc2_cio_usb: power-controller@400 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x400 4>; - label = "atc2_cio_usb"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc2_cio>; - }; - - ps_atc2_cio_auss: power-controller@408 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x408 4>; - label = "atc2_cio_auss"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc2_cio>, <&ps_auss>; - }; - - ps_atc3_cio: power-controller@2f8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x2f8 4>; - label = "atc3_cio"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc3_common>; - }; - - ps_atc3_cio_pcie: power-controller@410 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x410 4>; - label = "atc3_cio_pcie"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc3_cio>; - }; - - ps_atc3_cio_usb: power-controller@418 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x418 4>; - label = "atc3_cio_usb"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc3_cio>; - }; - - ps_atc3_cio_auss: power-controller@420 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x420 4>; - label = "atc3_cio_auss"; - #power-domain-cells = <0>; - #reset-cells = <0>; - power-domains = <&ps_atc3_cio>, <&ps_auss>; - }; - - ps_auss: power-controller@248 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x248 4>; - label = "auss"; - #power-domain-cells = <0>; - #reset-cells = <0>; - apple,always-on; - }; -}; - - -&atc0_phy { - apple,tunable-lane0-rx-top-cio = <0x35c 0xe00 0x200>; - apple,tunable-lane1-rx-top-cio = <0x35c 0xe00 0x200>; -}; - - -&atc1_phy { - apple,tunable-lane0-rx-top-cio = <0x35c 0xe00 0x200>; - apple,tunable-lane1-rx-top-cio = <0x35c 0xe00 0x200>; -}; - - -&atc2_phy { - apple,tunable-lane0-rx-top-cio = <0x35c 0xe00 0x200>; - apple,tunable-lane1-rx-top-cio = <0x35c 0xe00 0x200>; -}; - - -&atc3_phy { - apple,tunable-lane0-rx-top-cio = <0x35c 0xe00 0x200>; - apple,tunable-lane1-rx-top-cio = <0x35c 0xe00 0x200>; -}; - - -&pinctrl_aop { - /* Keep HDMI GPIO 14 available, and reserve every pin except CIO LSTX 77/79/81/83. */ - gpio-reserved-ranges = <0 14>, <15 62>, <78 1>, <80 1>, <82 1>, <84 1>; - status = "okay"; - - - - acio2_lstx_pins: acio2-lstx-pins { - pinmux = <0x10051>; - }; - - -}; - - -&hpm0 { - connector { - ports { - port@3 { - reg = <3>; - hpm0_usb4: endpoint { - remote-endpoint = <&acio0_tbt>; - }; - }; - }; - }; -}; - - -&hpm1 { - connector { - ports { - port@3 { - reg = <3>; - hpm1_usb4: endpoint { - remote-endpoint = <&acio1_tbt>; - }; - }; - }; - }; -}; - - -&hpm2 { - connector { - ports { - port@3 { - reg = <3>; - hpm2_usb4: endpoint { - remote-endpoint = <&acio2_tbt>; - }; - }; - }; - }; -}; - - -&hpm3 { - connector { - ports { - port@3 { - reg = <3>; - hpm3_usb4: endpoint { - remote-endpoint = <&acio3_tbt>; - }; - }; - }; - }; -}; - - -&{/soc} { - cio_reconfig0: cio_reset: reset-controller@280620000 { - compatible = "apple,t6050-cio-reset"; - reg = <0x2 0x80620000 0x0 0x4000>; - #reset-cells = <1>; - }; - - - - - - acio2_mbox: mailbox@381108000 { - compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; - reg = <0x3 0x81108000 0x0 0x4000>; - interrupts = , - , - , - ; - interrupt-names = "send-empty", "send-not-empty", - "recv-empty", "recv-not-empty"; - #mbox-cells = <0>; -#if !(defined(T6050_J714C) || defined(T6050_J714S) || defined(T6050_J716C)) - status = "disabled"; -#endif - }; - - acio2: acio@381ac0000 { - compatible = "apple,t6050-usb4-acio"; - reg = <0x3 0x81ac0000 0x0 0xc000>, - <0x3 0x81080000 0x0 0x26000>, - <0x3 0x81e44000 0x0 0x4000>, - <0x3 0x81100000 0x0 0x4000>, - <0x3 0x81c80000 0x0 0x4000>; - reg-names = "rc", "sram", "pcie-adapter", "cpu", "router-ap-fw"; - mboxes = <&acio2_mbox>; - resets = <&cio_reconfig0 2>; - power-domains = <&ps_atc2_cio>, <&ps_atc2_cio_pcie>, - <&ps_atc2_cio_usb>, <&ps_atc2_cio_auss>; - thunderbolt-switch; -#if !(defined(T6050_J714C) || defined(T6050_J714S) || defined(T6050_J716C)) - status = "disabled"; -#endif - pinctrl-0 = <&acio2_lstx_pins>; - pinctrl-names = "lstx"; - lstx-gpios = <&pinctrl_aop 81 GPIO_ACTIVE_HIGH>; - - #address-cells = <1>; - #size-cells = <1>; - ranges = <0x0 0x3 0x81000000 0x1000000>; - nonposted-mmio; - - /* - * /arm-io/dart-acio2, populated with the NHI once the router runs, so that it is - * first read with the router up. Nothing initialises it before Linux: its tunables - * (dart-tunables-instance-0), stream 15 (bypass-15) in bypass, every error - * reported and the context cache flushed. vm-base 0x100_0000_0000. - */ - acio2_dart: iommu@a80000 { - compatible = "apple,t6050-dart", "apple,t8110-dart"; - reg = <0xa80000 0xc000>; - interrupts = ; - power-domains = <&ps_atc2_cio>; - #iommu-cells = <1>; - apple,dma-range = <0x100 0x4000 0x0 0xffff0000>; - apple,bypass-sids = <15>; - apple,full-error-reporting; - apple,ctc-flush; - }; - - /* Interrupts 0x66b.. are the TX rings and 0x677.. the RX rings */ - acio2_nhi: nhi@f00000 { - compatible = "apple,t6050-usb4-nhi"; - reg = <0xf00000 0x100000>; - reg-names = "nhi"; - /* The board or boot loader supplies the host DROM. */ - apple,thunderbolt-drom = [00]; - interrupts = , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - ; - interrupt-names = "txring0", "txring1", "txring2", "txring3", "txring4", "txring5", - "txring6", "txring7", "txring8", "txring9", "txring10", "txring11", - "rxring0", "rxring1", "rxring2", "rxring3", "rxring4", "rxring5", - "rxring6", "rxring7", "rxring8", "rxring9", "rxring10", "rxring11", - "parity"; - iommus = <&acio2_dart 0>, - <&acio2_dart 1>, - <&acio2_dart 2>, - <&acio2_dart 3>, - <&acio2_dart 4>, - <&acio2_dart 5>, - <&acio2_dart 6>, - <&acio2_dart 7>, - <&acio2_dart 8>, - <&acio2_dart 9>, - <&acio2_dart 10>, - <&acio2_dart 11>, - <&acio2_dart 16>, - <&acio2_dart 17>, - <&acio2_dart 18>, - <&acio2_dart 19>, - <&acio2_dart 20>, - <&acio2_dart 21>, - <&acio2_dart 22>, - <&acio2_dart 23>, - <&acio2_dart 24>, - <&acio2_dart 25>, - <&acio2_dart 26>, - <&acio2_dart 27>; - }; - }; - - - -}; - -/* The inherited USB DARTs have no secure-monitor power-down operation in - * Linux's direct T8110 backend. Do not cut their domain from pre-freezer - * Type-C teardown or system PM. Router-only CIO domains remain cycleable. - * Keeping USB also retains its AON/common suppliers for wake. This can be - * relaxed only with a qualified DART ownership/power-down handoff. */ -&ps_atc0_usb { apple,always-on; }; -&ps_atc1_usb { apple,always-on; }; -&ps_atc2_usb { apple,always-on; }; -&ps_atc3_usb { apple,always-on; }; - -&acio2_mbox { status = "okay"; }; -&acio2 { - status = "okay"; - - port { - acio2_tbt: endpoint { - remote-endpoint = <&hpm2_usb4>; - }; - }; -}; diff --git a/arch/arm64/boot/dts/apple/t6050-j775c.dts b/arch/arm64/boot/dts/apple/t6050-j775c.dts index 64bb1a784f6ef..125b527eb7e78 100644 --- a/arch/arm64/boot/dts/apple/t6050-j775c.dts +++ b/arch/arm64/boot/dts/apple/t6050-j775c.dts @@ -1,1185 +1,6168 @@ // SPDX-License-Identifier: GPL-2.0+ OR MIT /* - * Mac Studio (M5 Max, 2026) + * Apple Mac Studio (M5 Max, 2026) * - * target-type: J775c, board-id 0x10, chip-id 0x6050 (one die, 18 CPUs: 2x6 M + 6 P) - * - * The J775D (M5 Ultra) Studio's board on the one-die T6050 of the M5 Max, generated by - * make-j775c-dts.py: - * - the CPU, die-1 and GPU parts are t6050-j716c.dts's (M5 Max): die 1, its CPUs and buses go, - * each cluster's sixth core comes in, the GPU's OPP and AON tables are one die's (Aura fills - * them from the ADT), and the die-1 HPMs and nub-spmi-a2 go; - * - the board parts are t6050-j775d.dts's: PCIe ports 2 (RTL8127A), 3 (ASM3142 USB-A) and 0 (N1), - * audio (SN012776 on i2c1 0x38, CS42L84 on i2c2 0x4b), the pins, console, DARTs, dual fans and - * the NVRAM partition. - * Checked against the J775c ADT captured 2026-11-03 (macOS 26A425): the same PCIe endpoints (lan0 - * 10ec:8127, pcie-xhci 1b21:2142, centauri 106b:1901-1903; the GL9755 SD reader on port 1 is - * described but disabled until trained by the bootloader), the same i2c addresses and GPIO pins - * (amp 106/107, jack 134/139, N1 PERST# 80), the - * same NVRAM (0x700000 + 0xc0000, 12 banks), ATC PHYs 1-3 and HPMs 0-3 on nub-spmi-a0 at J775D's - * die-0 addresses, no nub-spmi-a2, and CPU MPIDRs 0x5/0x105/0x205 for each cluster's sixth core. - * J775c-specific: the N1's platform ID and firmware name carry board 0x10. - * - * Compatibility layout booted as 9c038a05 on J775c; see commit messages. + * target-type: J775c, board-id: 0x10, chip-id: 0x6050 + * One die, 18 CPUs: two six-core M clusters and one six-core P cluster. * + * Board support by Satya Benson. * Copyright The Asahi Linux Contributors + * + * This is the final board description, including the compatibility layout + * required by installed Aura b6e6faf4. Keep the GPU below /soc@2300000000 + * and its ASC/SGX resources until a modern loader is qualified on J775c. + * See Documentation/devicetree/apple-j775c-compatibility.rst. */ /dts-v1/; -#include "t6050-j775c-legacy.dtsi" -#include "t6050-j775c-rebased-peripherals.dtsi" -#include "t6050-j775c-loader-gpu.dtsi" - -/delete-node/ &cpu18; -/delete-node/ &cpu19; -/delete-node/ &cpu20; -/delete-node/ &cpu21; -/delete-node/ &cpu22; -/delete-node/ &cpu24; -/delete-node/ &cpu25; -/delete-node/ &cpu26; -/delete-node/ &cpu27; -/delete-node/ &cpu28; -/delete-node/ &cpu30; -/delete-node/ &cpu31; -/delete-node/ &cpu32; -/delete-node/ &cpu33; -/delete-node/ &cpu34; - / { compatible = "apple,j775c", "apple,t6050", "apple,arm-platform"; + #address-cells = <0x02>; + #size-cells = <0x02>; + interrupt-parent = <&aic>; model = "Apple Mac Studio (M5 Max, 2026)"; chassis-type = "desktop"; - aliases { - serial0 = &dockchannel; - /* the boot loader fills in the MAC address through this alias */ - ethernet0 = ðernet0; - /* kboot fills the N1's factory addresses from /chosen through these */ - wifi0 = &n1_alpha; - bluetooth0 = &n1_beta; - /* Aura's kboot_setup_atc() fills this PHY's tunables from /arm-io/atc-phy2. */ - atcphy2 = &atc2_phy; - /* And /arm-io/atc-phy0's (rear USB-C port 1, the DFU port). */ - atcphy0 = &atc0_phy; - /* The same fills /arm-io/atc-phy1's (rear USB-C port 2, USB data). */ - atcphy1 = &atc1_phy; - /* And rear port 4's (atc-phy3, die 0); J775D's die-1 PHYs 4 and 5 don't exist on J775c. */ - atcphy3 = &atc3_phy; - /* asahi-bless and the boot loader's dt_set_nvram find the partition by this alias */ - nvram = &nvram; + memory@10000000000 { + device_type = "memory"; + reg = <0x100 0x00 0x00 0x00>; }; - /* - * No stdout-path: the boot loader passes the console on the command - * line when it wants one. - */ - chosen { - #address-cells = <2>; - #size-cells = <2>; + /* The loader fills the reserved-memory ranges before starting Linux. */ + reserved-memory { + #address-cells = <0x02>; + #size-cells = <0x02>; ranges; - /* - * Normally replaced by the loader. With no console= named, - * NULL_TTY_DEFAULT_CONSOLE makes the console ttynull. - */ - bootargs = "maxcpus=1 rdinit=/init"; - }; - /* - * PCIe ports 2 (the onboard 10 Gb Ethernet) and 3 (the rear USB-A - * xHCI). The boot loader powers and trains both links and keeps power, - * clocks, the PHYs and PERST; Linux owns the routing, MSI and the - * DARTs. The boot loader disables a port, and its DART, whose link did - * not come up. - * - * Port 0 carries the N1 (Wi-Fi and Bluetooth), described disabled until the - * boot loader trains it (pci@0,0 below). - */ - pcie0: pcie@1cb0000000 { - compatible = "apple,t6050-pcie"; - device_type = "pci"; - reg = <0x1c 0xb0000000 0x0 0x10000000>, - <0x4 0x14000000 0x0 0x4000>, - <0x4 0x12028000 0x0 0x8000>, - <0x4 0x17018000 0x0 0x4000>, - <0x4 0x12024000 0x0 0x4000>, - <0x4 0x13028000 0x0 0x8000>, - <0x4 0x1701c000 0x0 0x4000>, - <0x4 0x13024000 0x0 0x4000>, - <0x4 0x10028000 0x0 0x8000>, - <0x4 0x17010000 0x0 0x4000>, - <0x4 0x10024000 0x0 0x4000>, - <0x4 0x11028000 0x0 0x8000>, - <0x4 0x17014000 0x0 0x4000>, - <0x4 0x11024000 0x0 0x4000>; - reg-names = "config", "rc", "port2", "phy2", "intr2axi2", - "port3", "phy3", "intr2axi3", - "port0", "phy0", "intr2axi0", - "port1", "phy1", "intr2axi1"; - nonposted-mmio; - interrupts = , - , - , - ; - interrupt-names = "port2", "port3", "port0", "port1"; - - /* One shared MSI domain for the GP ports: vectors 64-127 */ - msi-controller; - msi-parent = <&pcie0>; - msi-ranges = <&aic AIC_IRQ 0 1888 IRQ_TYPE_EDGE_RISING 64>; - apple,msi-vector-base = <64>; - - /* - * The boot loader numbers port 2's secondary bus 1 and port 3's 2; - * port 0's is 3 until a boot loader that trains it renumbers all three - * in the PCI core's order. The N1's three functions are on DART - * streams 1-3. - */ - iommu-map = <0x100 &dart_apcie2 1 1>, - <0x200 &dart_apcie3 1 1>, - <0x300 &dart_apcie0 1 3>, - <0x400 &dart_apcie1 1 1>; - iommu-map-mask = <0xffff>; - dma-coherent; - linux,pci-domain = <0>; - bus-range = <0 4>; - #address-cells = <3>; - #size-cells = <2>; - ranges = <0x02000000 0x0 0x80000000 0xb 0x80000000 0x0 0x40000000>, - <0x43000000 0xb 0xc0000000 0xb 0xc0000000 0x0 0x20000000>; - - /* ADT apcie0/pci-bridge1/pcie-sdreader: Genesys GL9755, 17a0:9755. - * Aura powers it via SMC pcIO (0, 0x190000), trains the link, - * then enables this node and its DART and renumbers the buses. - */ - - port02: pci@2,0 { - device_type = "pci"; - reg = <0x1000 0 0 0 0>; - bus-range = <1 1>; - apple,link-trained-by-bootloader; + uat_handoff: uat-handoff { + reg = <0x00 0x00 0x00 0x00>; + no-map; + status = "disabled"; + }; - #address-cells = <3>; - #size-cells = <2>; - ranges; + uat_l2_pagetables: uat-l2-pagetables { + reg = <0x00 0x00 0x00 0x00>; + no-map; + status = "disabled"; + }; - interrupt-controller; - #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 7>; - interrupt-map = <0 0 0 1 &port02 0 0 0 0>, - <0 0 0 2 &port02 0 0 0 1>, - <0 0 0 3 &port02 0 0 0 2>, - <0 0 0 4 &port02 0 0 0 3>; - - /* The RTL8127A keeps no MAC address of its own */ - ethernet0: ethernet@0,0 { - reg = <0x10000 0x0 0x0 0x0 0x0>; - /* To be filled by the loader */ - local-mac-address = [00 00 00 00 00 00]; - }; + uat_pagetables: uat-pagetables { + reg = <0x00 0x00 0x00 0x00>; + no-map; + status = "disabled"; }; - port03: pci@3,0 { - device_type = "pci"; - reg = <0x1800 0 0 0 0>; - bus-range = <2 2>; - apple,link-trained-by-bootloader; + uat_ttbs: uat-ttbs { + reg = <0x00 0x00 0x00 0x00>; + no-map; + status = "disabled"; + }; - #address-cells = <3>; - #size-cells = <2>; - ranges; + gpu_fw_text: gpu-fw-text { + reg = <0x00 0x00 0x00 0x00>; + no-map; + status = "disabled"; + }; - interrupt-controller; - #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 7>; - interrupt-map = <0 0 0 1 &port03 0 0 0 0>, - <0 0 0 2 &port03 0 0 0 1>, - <0 0 0 3 &port03 0 0 0 2>, - <0 0 0 4 &port03 0 0 0 3>; - }; - - /* - * The N1 Wi-Fi/Bluetooth (106b:1900, its ROM), trained by the bootloader after the SMC - * releases its reset. Its driver boots the firmware and has this port reset after the ROM - * stage; Control, Alpha (Wi-Fi) and Beta (Bluetooth) then answer at functions 0-2. - * Disabled with its DART: a bootloader that trains the port enables both and renumbers the - * buses here (bus-range, reg, iommu-map) to the PCI core's order, port 0 first. - */ - port00: pci@0,0 { - device_type = "pci"; - reg = <0x0 0 0 0 0>; - bus-range = <3 3>; - apple,link-trained-by-bootloader; - /* - * Its PERST# (pci-bridge0 function-perst): /arm-io/gpio0 pin 0x50, pad - * register 0x140 of pinctrl_ap, which owns the pad (and exposes it: see - * its gpio-reserved-ranges below). Driven only by the root-port reset after - * the N1's ROM stage. - */ - reset-gpios = <&pinctrl_ap 80 GPIO_ACTIVE_LOW>; + gpu_fw_data: gpu-fw-data { + reg = <0x00 0x00 0x00 0x00>; + no-map; status = "disabled"; + }; - #address-cells = <3>; - #size-cells = <2>; - ranges; + ane_fw_text: ane-firmware-text@0 { + compatible = "apple,asc-mem"; + reg = <0x00 0x00 0x00 0x00>; + no-map; + status = "disabled"; + }; - interrupt-controller; - #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 7>; - interrupt-map = <0 0 0 1 &port00 0 0 0 0>, - <0 0 0 2 &port00 0 0 0 1>, - <0 0 0 3 &port00 0 0 0 2>, - <0 0 0 4 &port00 0 0 0 3>; - - /* The firmware: the chip's image with this board's ticket; platform ID is - * (board 0x10 << 16) | chip 0x6050, from J775c's /chosen board-id */ - n1_control: control@0,0 { - compatible = "pci106b,1900"; - reg = <0x30000 0x0 0x0 0x0 0x0>; - firmware-name = "apple/centauri/j775c-ftab.bin"; - apple,centauri-platform-id = <0x00106050>; - apple,centauri-protocol = <27>; - }; + ane_fw_data: ane-firmware-data@0 { + compatible = "apple,asc-mem"; + reg = <0x00 0x00 0x00 0x00>; + no-map; + status = "disabled"; + }; + }; - n1_alpha: wifi@0,1 { - compatible = "pci106b,1902"; - reg = <0x30100 0x0 0x0 0x0 0x0>; - local-mac-address = [00 00 00 00 00 00]; - }; + /* Single-die CPU inventory; the loader prunes cores that are not present. */ + cpus { + #address-cells = <0x02>; + #size-cells = <0x00>; + + cpu0: cpu@40000 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <0x31a>; + device_type = "cpu"; + reg = <0x00 0x40000>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc00>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_m00>; + }; - n1_beta: bluetooth@0,2 { - compatible = "pci106b,1903"; - reg = <0x30200 0x0 0x0 0x0 0x0>; - local-bd-address = [00 00 00 00 00 00]; - }; + cpu1: cpu@40001 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <0x31a>; + device_type = "cpu"; + reg = <0x00 0x40001>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc00>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_m00>; }; - port01: pci@1,0 { - device_type = "pci"; - reg = <0x800 0 0 0 0>; - bus-range = <4 4>; - apple,link-trained-by-bootloader; - status = "disabled"; - #address-cells = <3>; - #size-cells = <2>; - ranges; - interrupt-controller; - #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 7>; - interrupt-map = <0 0 0 1 &port01 0 0 0 0>, - <0 0 0 2 &port01 0 0 0 1>, - <0 0 0 3 &port01 0 0 0 2>, - <0 0 0 4 &port01 0 0 0 3>; - - /* ADT card-detect-polarity = write-protect-polarity = 1. */ - sdcard@0,0 { - compatible = "pci17a0,9755"; - reg = <0x40000 0 0 0 0>; - cd-inverted; - wp-inverted; - }; + + cpu2: cpu@40002 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <0x31a>; + device_type = "cpu"; + reg = <0x00 0x40002>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc00>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_m00>; }; - }; - /* - * The jack (CS42L84) and the speaker (SN012776) through the AOP's audio services. The card waits - * for its CPU component, the AOP audio node, which exists only after Aura's AOP handoff. - */ - sound { - compatible = "apple,j775c-macaudio", "apple,j775d-macaudio", "apple,macaudio"; - /* - * No variant letter, as on J375/J475/J575: userspace (speakersafetyd, - * the UCM profile, asahi-audio) keys on the card id "AppleJ775". - */ - model = "Mac Studio J775"; - #address-cells = <1>; - #size-cells = <0>; + cpu3: cpu@40003 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <0x31a>; + device_type = "cpu"; + reg = <0x00 0x40003>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc00>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_m00>; + }; - dai-link@0 { - reg = <0>; - link-name = "Headphone Jack"; + cpu4: cpu@40004 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <0x31a>; + device_type = "cpu"; + reg = <0x00 0x40004>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc00>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_m00>; + }; - cpu { - sound-dai = <&aop_audio 0>; - }; + cpu5: cpu@40005 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <0x31a>; + device_type = "cpu"; + reg = <0x00 0x40005>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc00>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_m00>; + }; - codec { - sound-dai = <&jack_codec>; - }; + cpu6: cpu@40100 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <0x31a>; + device_type = "cpu"; + reg = <0x00 0x40100>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc10>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_m01>; }; - dai-link@1 { - reg = <1>; - link-name = "Speaker"; + cpu7: cpu@40101 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <0x31a>; + device_type = "cpu"; + reg = <0x00 0x40101>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc10>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_m01>; + }; - cpu { - sound-dai = <&aop_audio 3>; - }; + cpu8: cpu@40102 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <0x31a>; + device_type = "cpu"; + reg = <0x00 0x40102>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc10>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_m01>; + }; - codec { - sound-dai = <&speaker_amp>; - }; + cpu9: cpu@40103 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <0x31a>; + device_type = "cpu"; + reg = <0x00 0x40103>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc10>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_m01>; }; - }; - /delete-node/ soc@6300000000; - /delete-node/ soc@2308000000; - /delete-node/ soc@6308000000; - /delete-node/ soc@2220000000; - /delete-node/ soc@4200000000; - - /* - * The memory cache controller of the one die: eight AMCCs of four planes (ADT /arm-io/mcc: - * amcc-count 8, dcs-count-per-amcc 4, die-enable-mask 1). The dtsi's node also lists die 1's - * planes, so it goes with the die-1 buses above. Without this one the system level cache - * never allocates: the boot loader leaves allocation disabled on every plane. - * - * Each plane window reaches past the DSID quota and occupancy registers (+0xa000 to - * +0xc300); the ADT gives each AMCC 0x140000, its planes 0x40000 apart. - */ - soc@2220000000 { - compatible = "simple-bus"; - #address-cells = <2>; - #size-cells = <2>; - ranges = <0x22 0x20000000 0x22 0x20000000 0x0 0x10000000>; - nonposted-mmio; + cpu10: cpu@40104 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <0x31a>; + device_type = "cpu"; + reg = <0x00 0x40104>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc10>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_m01>; + }; - memory-controller@2220000000 { - compatible = "apple,t6050-mcc"; - reg = <0x22 0x20000000 0x0 0x10000>, - <0x22 0x20040000 0x0 0x10000>, - <0x22 0x20080000 0x0 0x10000>, - <0x22 0x200c0000 0x0 0x10000>, - <0x22 0x22000000 0x0 0x10000>, - <0x22 0x22040000 0x0 0x10000>, - <0x22 0x22080000 0x0 0x10000>, - <0x22 0x220c0000 0x0 0x10000>, - <0x22 0x24000000 0x0 0x10000>, - <0x22 0x24040000 0x0 0x10000>, - <0x22 0x24080000 0x0 0x10000>, - <0x22 0x240c0000 0x0 0x10000>, - <0x22 0x26000000 0x0 0x10000>, - <0x22 0x26040000 0x0 0x10000>, - <0x22 0x26080000 0x0 0x10000>, - <0x22 0x260c0000 0x0 0x10000>, - <0x22 0x28000000 0x0 0x10000>, - <0x22 0x28040000 0x0 0x10000>, - <0x22 0x28080000 0x0 0x10000>, - <0x22 0x280c0000 0x0 0x10000>, - <0x22 0x2a000000 0x0 0x10000>, - <0x22 0x2a040000 0x0 0x10000>, - <0x22 0x2a080000 0x0 0x10000>, - <0x22 0x2a0c0000 0x0 0x10000>, - <0x22 0x2c000000 0x0 0x10000>, - <0x22 0x2c040000 0x0 0x10000>, - <0x22 0x2c080000 0x0 0x10000>, - <0x22 0x2c0c0000 0x0 0x10000>, - <0x22 0x2e000000 0x0 0x10000>, - <0x22 0x2e040000 0x0 0x10000>, - <0x22 0x2e080000 0x0 0x10000>, - <0x22 0x2e0c0000 0x0 0x10000>; - apple,boot-dma-devices = <&display>; + cpu11: cpu@40105 { + compatible = "apple,sawtooth"; + capacity-dmips-mhz = <0x31a>; + device_type = "cpu"; + reg = <0x00 0x40105>; + enable-method = "spin-table"; + operating-points-v2 = <&mcluster_opp>; + performance-domains = <&cpufreq_mc10>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_m01>; }; - }; - /* - * The GPU's OPP tables for one die: four clusters, so four voltage cells per main state, - * and one per CS/AFR state. Aura fills them in, as on J775D. - */ - /delete-node/ opp-table-gpu; - /delete-node/ opp-table-gpu-afr; - /delete-node/ opp-table-gpu-cs; + cpu12: cpu@10200 { + compatible = "apple,everest"; + capacity-dmips-mhz = <0x400>; + device_type = "cpu"; + reg = <0x00 0x10200>; + enable-method = "spin-table"; + operating-points-v2 = <&pcluster_opp>; + performance-domains = <&cpufreq_pc0>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_p0_0>; + }; - /* /arm-io/sgx perf-states: 14 states, one table per cluster */ - gpu_opp: opp-table-gpu { - compatible = "operating-points-v2"; + cpu13: cpu@10201 { + compatible = "apple,everest"; + capacity-dmips-mhz = <0x400>; + device_type = "cpu"; + reg = <0x00 0x10201>; + enable-method = "spin-table"; + operating-points-v2 = <&pcluster_opp>; + performance-domains = <&cpufreq_pc0>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_p0_1>; + }; - opp00 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0>; - opp-microvolt-sram = <0 0 0 0>; + cpu14: cpu@10202 { + compatible = "apple,everest"; + capacity-dmips-mhz = <0x400>; + device_type = "cpu"; + reg = <0x00 0x10202>; + enable-method = "spin-table"; + operating-points-v2 = <&pcluster_opp>; + performance-domains = <&cpufreq_pc0>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_p0_2>; }; - opp01 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0>; - opp-microvolt-sram = <0 0 0 0>; + cpu15: cpu@10203 { + compatible = "apple,everest"; + capacity-dmips-mhz = <0x400>; + device_type = "cpu"; + reg = <0x00 0x10203>; + enable-method = "spin-table"; + operating-points-v2 = <&pcluster_opp>; + performance-domains = <&cpufreq_pc0>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_p0_3>; }; - opp02 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0>; - opp-microvolt-sram = <0 0 0 0>; + cpu16: cpu@10204 { + compatible = "apple,everest"; + capacity-dmips-mhz = <0x400>; + device_type = "cpu"; + reg = <0x00 0x10204>; + enable-method = "spin-table"; + operating-points-v2 = <&pcluster_opp>; + performance-domains = <&cpufreq_pc0>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_p0_4>; }; - opp03 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0>; - opp-microvolt-sram = <0 0 0 0>; + cpu17: cpu@10205 { + compatible = "apple,everest"; + capacity-dmips-mhz = <0x400>; + device_type = "cpu"; + reg = <0x00 0x10205>; + enable-method = "spin-table"; + operating-points-v2 = <&pcluster_opp>; + performance-domains = <&cpufreq_pc0>; + cpu-release-addr = <0x00 0x00>; + next-level-cache = <&l2_cache_p0_5>; }; - opp04 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0>; - opp-microvolt-sram = <0 0 0 0>; + l2_cache_m00: l2-cache-m00 { + compatible = "cache"; + cache-level = <0x02>; + cache-unified; + cache-size = <0x800000>; }; - opp05 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0>; - opp-microvolt-sram = <0 0 0 0>; + l2_cache_m01: l2-cache-m01 { + compatible = "cache"; + cache-level = <0x02>; + cache-unified; + cache-size = <0x800000>; }; - opp06 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0>; - opp-microvolt-sram = <0 0 0 0>; + l3_cache_p0: l3-cache-p0 { + compatible = "cache"; + cache-level = <0x03>; + cache-unified; + cache-size = <0x1000000>; }; - opp07 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0>; - opp-microvolt-sram = <0 0 0 0>; + l2_cache_p0_0: l2-cache-p0-0 { + compatible = "cache"; + cache-level = <0x02>; + cache-unified; + next-level-cache = <&l3_cache_p0>; }; - opp08 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0>; - opp-microvolt-sram = <0 0 0 0>; + l2_cache_p0_1: l2-cache-p0-1 { + compatible = "cache"; + cache-level = <0x02>; + cache-unified; + next-level-cache = <&l3_cache_p0>; }; - opp09 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0>; - opp-microvolt-sram = <0 0 0 0>; + l2_cache_p0_2: l2-cache-p0-2 { + compatible = "cache"; + cache-level = <0x02>; + cache-unified; + next-level-cache = <&l3_cache_p0>; }; - opp10 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0>; - opp-microvolt-sram = <0 0 0 0>; + l2_cache_p0_3: l2-cache-p0-3 { + compatible = "cache"; + cache-level = <0x02>; + cache-unified; + next-level-cache = <&l3_cache_p0>; }; - opp11 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0>; - opp-microvolt-sram = <0 0 0 0>; + l2_cache_p0_4: l2-cache-p0-4 { + compatible = "cache"; + cache-level = <0x02>; + cache-unified; + next-level-cache = <&l3_cache_p0>; }; - opp12 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0>; - opp-microvolt-sram = <0 0 0 0>; + l2_cache_p0_5: l2-cache-p0-5 { + compatible = "cache"; + cache-level = <0x02>; + cache-unified; + next-level-cache = <&l3_cache_p0>; }; - opp13 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0 0 0 0>; - opp-microvolt-sram = <0 0 0 0>; + cpu-map { + + cluster0 { + + core0 { + cpu = <&cpu0>; + }; + + core1 { + cpu = <&cpu1>; + }; + + core2 { + cpu = <&cpu2>; + }; + + core3 { + cpu = <&cpu3>; + }; + + core4 { + cpu = <&cpu4>; + }; + + core5 { + cpu = <&cpu5>; + }; + }; + + cluster1 { + + core0 { + cpu = <&cpu6>; + }; + + core1 { + cpu = <&cpu7>; + }; + + core2 { + cpu = <&cpu8>; + }; + + core3 { + cpu = <&cpu9>; + }; + + core4 { + cpu = <&cpu10>; + }; + + core5 { + cpu = <&cpu11>; + }; + }; + + cluster2 { + + core0 { + cpu = <&cpu12>; + }; + + core1 { + cpu = <&cpu13>; + }; + + core2 { + cpu = <&cpu14>; + }; + + core3 { + cpu = <&cpu15>; + }; + + core4 { + cpu = <&cpu16>; + }; + + core5 { + cpu = <&cpu17>; + }; + }; }; }; - /* afr-perf-states, one voltage */ - gpu_afr_opp: opp-table-gpu-afr { + mcluster_opp: opp-table-mcluster { compatible = "operating-points-v2"; - - opp00 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; - }; + opp-shared; opp01 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0x11e1a300>; + opp-level = <0x01>; }; opp02 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0x501bd000>; + opp-level = <0x02>; }; opp03 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0x61fd7300>; + opp-level = <0x03>; }; opp04 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0x76bb8200>; + opp-level = <0x04>; }; opp05 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0x89544000>; + opp-level = <0x05>; }; opp06 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0x9e124f00>; + opp-level = <0x06>; }; opp07 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0xb0ab0d00>; + opp-level = <0x07>; }; opp08 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0xc11e7a00>; + opp-level = <0x08>; }; opp09 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0xd0dacc00>; + opp-level = <0x09>; }; opp10 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0xdc4c7c00>; + opp-level = <0x0a>; }; opp11 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0xe7071100>; + opp-level = <0x0b>; }; opp12 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0xf10a8b00>; + opp-level = <0x0c>; }; opp13 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0xf8e8b400>; + opp-level = <0x0d>; }; - }; - /* cs-perf-states, one voltage */ - gpu_cs_opp: opp-table-gpu-cs { - compatible = "operating-points-v2"; + opp14 { + opp-hz = /bits/ 64 <0xff58a700>; + opp-level = <0x0e>; + }; - opp00 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp15 { + opp-hz = /bits/ 64 <0x100c6dd00>; + opp-level = <0x0f>; + }; + + opp16 { + opp-hz = /bits/ 64 <0x105117f00>; + opp-level = <0x10>; }; + }; + + pcluster_opp: opp-table-pcluster { + compatible = "operating-points-v2"; + opp-shared; opp01 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0x11e1a300>; + opp-level = <0x01>; }; opp02 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0x4df67f00>; + opp-level = <0x02>; }; opp03 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0x608f3d00>; + opp-level = <0x03>; }; opp04 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0x76046700>; + opp-level = <0x04>; }; opp05 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0x889d2500>; + opp-level = <0x05>; }; opp06 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0x99c7ad00>; + opp-level = <0x06>; }; opp07 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0xaba95000>; + opp-level = <0x07>; }; opp08 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0xbd8af300>; + opp-level = <0x08>; }; opp09 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0xcc902a00>; + opp-level = <0x09>; }; opp10 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0xd9701000>; + opp-level = <0x0a>; }; opp11 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0xe42aa500>; + opp-level = <0x0b>; }; opp12 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0xed770400>; + opp-level = <0x0c>; }; opp13 { - opp-hz = /bits/ 64 <0>; - opp-microvolt = <0>; + opp-hz = /bits/ 64 <0xf49e1200>; + opp-level = <0x0d>; }; - }; -}; + opp14 { + opp-hz = /bits/ 64 <0xf99fcf00>; + opp-level = <0x0e>; + }; -/* The AON power-telemetry records of one die (g0TR, g1TR, r0TR), which Aura fills */ -&gpu { - apple,aon-ptd = <0 0 0 0 0 0 0 0 0>; - /* The J775c ADT's gpu-idleoff-standby-timer, 0xdac (the board default is 1500 us). */ - apple,idleoff-standby-timer = <3500>; -}; + opp15 { + opp-hz = /bits/ 64 <0xfc7c3b00>; + opp-level = <0x0f>; + }; -&{/cpus} { - cpu-map { - cluster0 { - core0 { - cpu = <&cpu0>; - }; - core1 { - cpu = <&cpu1>; - }; - core2 { - cpu = <&cpu2>; - }; - core3 { - cpu = <&cpu3>; - }; - core4 { - cpu = <&cpu4>; - }; - core5 { - cpu = <&cpu5>; - }; + opp16 { + opp-hz = /bits/ 64 <0xff58a700>; + opp-level = <0x10>; }; - cluster1 { - core0 { - cpu = <&cpu6>; - }; - core1 { - cpu = <&cpu7>; - }; - core2 { - cpu = <&cpu8>; - }; - core3 { - cpu = <&cpu9>; - }; - core4 { - cpu = <&cpu10>; - }; - core5 { - cpu = <&cpu11>; - }; + + opp17 { + opp-hz = /bits/ 64 <0x100c6dd00>; + opp-level = <0x11>; }; - cluster2 { - core0 { - cpu = <&cpu12>; - }; - core1 { - cpu = <&cpu13>; - }; - core2 { - cpu = <&cpu14>; - }; - core3 { - cpu = <&cpu15>; - }; - core4 { - cpu = <&cpu16>; - }; - core5 { - cpu = <&cpu17>; - }; + + opp18 { + opp-hz = /bits/ 64 <0x102351300>; + opp-level = <0x12>; }; - }; + opp19 { + opp-hz = /bits/ 64 <0x107edeb00>; + opp-level = <0x13>; + }; + opp20 { + opp-hz = /bits/ 64 <0x10cefa800>; + opp-level = <0x14>; + }; -}; + opp21 { + opp-hz = /bits/ 64 <0x112a88000>; + opp-level = <0x15>; + }; + }; -/* - * CPU PMUs, one per core type. A core's PMU interrupt is a FIQ (PMCR0 - * IMODE = FIQ, as XNU programs it), which AIC hands to the PMU whose FIQ - * index lists that core. The ADT's per-core AIC interrupts (cpuN - * "interrupts", 69 + 3n on cluster 0, 101 + 3n on cluster 1, 133 + 3n on - * the P cluster) are not used. These live here rather than in t6050.dtsi - * because the core list is the board's: one die, six cores per cluster. - */ -/ { + clkref: clock-ref { + compatible = "fixed-clock"; + #clock-cells = <0x00>; + clock-frequency = <0x16e3600>; + clock-output-names = "clkref"; + }; -}; + clk_405m: clock-405m { + compatible = "fixed-clock"; + #clock-cells = <0x00>; + clock-frequency = <0x1823cf40>; + clock-output-names = "clk_405m"; + }; + timer { + compatible = "arm,armv8-timer"; + interrupt-parent = <&aic>; + interrupt-names = "phys", "virt", "hyp-phys", "hyp-virt"; + interrupts = <0x01 0x00 0x02 0x04>, <0x01 0x00 0x03 0x04>, <0x01 0x00 0x00 0x04>, + <0x01 0x00 0x01 0x04>; + }; -/* J775D's die-1 PD controllers (hpm4, hpm5 on nub-spmi-a2) don't exist on J775c */ -/delete-node/ &hpm4; -/delete-node/ &hpm5; + cpu_pmu: pmu { + compatible = "apple,t6050-pmu"; + interrupt-parent = <&aic>; + interrupts = <0x01 0x00 0x05 0x04>; + }; -&nub_spmi_a2 { - status = "disabled"; -}; + die0: soc { + compatible = "simple-bus"; + #address-cells = <0x02>; + #size-cells = <0x02>; + ranges; + nonposted-mmio; + cpufreq_mc00: performance-controller@210e20000 { + compatible = "apple,t6050-cluster-cpufreq"; + reg = <0x02 0x10e20000 0x00 0x1000>; + #performance-domain-cells = <0x00>; + apple,firmware-managed-thermal; + }; -/* The pins this board's nodes name, and no others */ -&pinctrl_ap { - /* - * Every pin reads cleanly (evidence/dt/2026-10-30-gpio-qualification.md), but only - * the pins a node in this file names are exposed: 80 (PCIe port 0's PERST#, ADT - * pci-bridge0 function-perst), 106 (amp IRQ), 107 (amp shutdown), 134 (jack IRQ) - * and 139 (jack codec reset), from the ADT's audio-speaker and audio-codec-output. - * A reserved line cannot be requested (gpiolib answers -EINVAL), so a node that - * names a new pin of pinctrl_ap opens it here too. - */ - gpio-reserved-ranges = <0 80>, <81 25>, <108 26>, <135 4>, <140 81>; -}; + cpufreq_mc10: performance-controller@211e20000 { + compatible = "apple,t6050-cluster-cpufreq"; + reg = <0x02 0x11e20000 0x00 0x1000>; + #performance-domain-cells = <0x00>; + apple,firmware-managed-thermal; + }; -&i2c1 { - /* - * ADT speaker-config 00 14 00 02: playback slot 0, amp gain 20, I sense in slot 0 - * and V sense in slot 2. The bytes are : on J316 every - * amp's row matches its validated imon/vmon pair (00 0f 00 02 is imon 0, vmon 2; - * 01 0f 04 06 is imon 4, vmon 6), and J375/J473/J575 use imon 0, vmon 2 as well. - * The firmware's speaker frame is 250 BCLKs of 12 MHz (ADT - * iop-audio-controller/audio-speaker), which the amp's ratio detection rejects. - */ - speaker_amp: codec@38 { - compatible = "ti,sn012776", "ti,tas2764"; - reg = <0x38>; - shutdown-gpios = <&pinctrl_ap 107 GPIO_ACTIVE_HIGH>; - interrupts-extended = <&pinctrl_ap 106 IRQ_TYPE_LEVEL_LOW>; - #sound-dai-cells = <0>; - ti,imon-slot-no = <0>; - ti,vmon-slot-no = <2>; - ti,bclk-ratio = <250>; - }; -}; + cpufreq_pc0: performance-controller@212e20000 { + compatible = "apple,t6050-cluster-cpufreq"; + reg = <0x02 0x12e20000 0x00 0x1000>; + #performance-domain-cells = <0x00>; + apple,firmware-managed-thermal; + }; -&i2c2 { - jack_codec: codec@4b { - compatible = "cirrus,cs42l84"; - reg = <0x4b>; - reset-gpios = <&pinctrl_ap 139 GPIO_ACTIVE_HIGH>; - interrupts-extended = <&pinctrl_ap 134 IRQ_TYPE_LEVEL_LOW>; - #sound-dai-cells = <0>; - sound-name-prefix = "Jack"; - }; -}; + aic: interrupt-controller@280400000 { + compatible = "apple,t6050-aic3", "apple,t8122-aic3"; + interrupt-controller; + #interrupt-cells = <0x04>; + reg = <0x02 0x80400000 0x00 0x1cc000>, <0x02 0x80440000 0x00 0x4000>; + reg-names = "core", "event"; + }; -/* - * The console is on the USB debug link, which drains only while a host reads - * it; the machine also boots with nothing attached there. - */ -&dockchannel { - apple,tx-never-wait; - status = "okay"; -}; + dockchannel: serial@288e3c000 { + compatible = "apple,dockchannel-uart"; + reg = <0x02 0x88e3c000 0x00 0x30>, <0x02 0x88e38000 0x00 0x08>, <0x02 + 0x88e0c000 0x00 0x18>; + reg-names = "data", "config", "irq"; + interrupts = <0x00 0x00 0x168 0x04>; + apple,channel = <0x01>; + apple,sw-drain; + status = "okay"; + apple,tx-never-wait; + }; -&dart_apcie2 { - status = "okay"; -}; + wdt: watchdog@28836c000 { + compatible = "apple,t6050-wdt", "apple,t8103-wdt"; + reg = <0x02 0x8836c000 0x00 0x4000>; + clocks = <&clkref>; + interrupts = <0x00 0x00 0x2d1 0x04>; + }; -&dart_apcie3 { - status = "okay"; -}; + smc_mbox: mailbox@28c608000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x02 0x8c608000 0x00 0x4000>; + interrupts = <0x00 0x00 0x383 0x04>, <0x00 0x00 0x384 0x04>, <0x00 0x00 + 0x385 0x04>, <0x00 0x00 0x386 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + }; -#include "hwmon-fan-dual.dtsi" + pinctrl_aop: pinctrl@290824000 { + compatible = "apple,t6050-pinctrl", "apple,t8132-pinctrl"; + reg = <0x02 0x90824000 0x00 0x4000>; + gpio-controller; + #gpio-cells = <0x02>; + gpio-ranges = <&pinctrl_aop 0x00 0x00 0x55>; + apple,npins = <0x55>; + interrupt-controller; + #interrupt-cells = <0x02>; + interrupt-parent = <&aic>; + interrupts = <0x00 0x00 0x23c 0x04>, <0x00 0x00 0x23d 0x04>, <0x00 0x00 + 0x23e 0x04>; + apple,irq-group-base = <0x04>; + status = "okay"; + gpio-reserved-ranges = <0x00 0x0e>, <0x0f 0x3e>, <0x4e 0x01>, <0x50 0x01>, + <0x52 0x01>, <0x54 0x01>; + + acio2_lstx_pins: acio2-lstx-pins { + pinmux = <0x10051>; + }; -/* - * The Studio's SMC has F0Ac/F0Mn/F0Mx/F0Tg and F1*, but its mode keys are F0md/F1md (ui8, flags 0xd0: - * readable, writable, a function key), not the F0Md/F1Md the dtsi names; with the dtsi's names fan - * creation failed on the missing key. With the real keys the fans can be set by the kernel's - * thermal policy (the M5 GPU governor, through macsmc_hwmon_fans_request()). No - * apple,fan-manual-control: userspace still only reads them. - */ -&smc_hwmon { - fan-F0Ac { - apple,fan-mode = "F0md"; - }; + acio0_lstx_pins: acio0-lstx-pins { + pinmux = <0x1004d>; + }; - fan-F1Ac { - apple,fan-mode = "F1md"; - }; -}; + acio1_lstx_pins: acio1-lstx-pins { + pinmux = <0x1004f>; + }; + + acio3_lstx_pins: acio3-lstx-pins { + pinmux = <0x10053>; + }; + }; + + smc: smc@28c600000 { + compatible = "apple,t6050-smc"; + reg = <0x02 0x8c600000 0x00 0x4000>, <0x02 0x8de00000 0x00 0x140000>; + reg-names = "smc", "sram"; + mboxes = <&smc_mbox>; + + smc_hwmon: hwmon { + compatible = "apple,smc-hwmon"; + apple,discover-temperatures; + apple,soc-die-keys = "TCMb"; + + power-PD0R { + apple,key-id = "PD0R"; + label = "DC Input Power"; + }; + + fan-F0Ac { + apple,key-id = "F0Ac"; + label = "Fan 1"; + apple,fan-minimum = "F0Mn"; + apple,fan-maximum = "F0Mx"; + apple,fan-target = "F0Tg"; + apple,fan-mode = "F0md"; + }; + + 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"; + }; + }; + + smc_reboot: reboot { + compatible = "apple,smc-reboot"; + nvmem-cells = <&shutdown_flag + &boot_stage + &boot_error_count + &panic_count + &pm_setting>; + nvmem-cell-names = "shutdown_flag" , "boot_stage" , + "boot_error_count" , "panic_count" , "pm_setting" ; + }; + + smc_pcio: gpio { + compatible = "apple,smc-pcio-gpio"; + gpio-controller; + #gpio-cells = <0x02>; + apple,output-commands = /bits/ 64 <0xf000000800000 + 0x1a000000000000>; + }; + + smc_rtc: rtc { + compatible = "apple,smc-rtc"; + nvmem-cells = <&rtc_offset>; + nvmem-cell-names = "rtc_offset"; + }; + + gpio-low { + compatible = "apple,smc-low-gpio"; + gpio-controller; + #gpio-cells = <0x02>; + }; + }; + + ans_sart: iommu@41dc50000 { + compatible = "apple,t6050-sart"; + reg = <0x04 0x1dc50000 0x00 0xc000>; + }; + + ans_mbox: mailbox@419608000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x04 0x19608000 0x00 0x4000>; + interrupts = <0x00 0x00 0x543 0x04>, <0x00 0x00 0x544 0x04>, <0x00 0x00 + 0x545 0x04>, <0x00 0x00 0x546 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + }; + + nvme: nvme@45dcc0000 { + compatible = "apple,t6050-nvme-ans2"; + reg = <0x04 0x5dcc0000 0x00 0x10000>, <0x04 0x19600000 0x00 0x4000>, <0x04 + 0x1dcc0000 0x00 0x60000>; + reg-names = "nvme", "ans", "nvmmu"; + interrupts = <0x00 0x00 0x922 0x04>; + mboxes = <&ans_mbox>; + apple,sart = <&ans_sart>; + }; + + dart_apcie2: iommu@412000000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x04 0x12000000 0x00 0x20000>; + interrupts = <0x00 0x00 0x604 0x04>; + #iommu-cells = <0x01>; + status = "okay"; + }; + + dart_apcie0: iommu@410000000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x04 0x10000000 0x00 0x20000>; + interrupts = <0x00 0x00 0x5f4 0x04>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + dart_apcie3: iommu@413000000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x04 0x13000000 0x00 0x20000>; + interrupts = <0x00 0x00 0x60c 0x04>; + #iommu-cells = <0x01>; + status = "okay"; + }; + + nub_spmi0: spmi@28a014000 { + compatible = "apple,t6050-spmi", "apple,t8142-spmi"; + reg = <0x02 0x8a014000 0x00 0x4000>; + #address-cells = <0x02>; + #size-cells = <0x00>; + + pmu: pmic@e { + compatible = "apple,abbey-pmic", "apple,spmi-nvmem"; + reg = <0x0e 0x00>; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <0x01>; + #size-cells = <0x01>; + + rtc_ctrl: rtc-ctrl@2000 { + reg = <0x2000 0x01>; + }; + + pm_setting: pm-setting@2001 { + reg = <0x2001 0x01>; + }; + + rtc_alarm: rtc-alarm@2008 { + reg = <0x2008 0x04>; + }; + + rtc_alarm_mask: rtc-alarm-mask@200e { + reg = <0x200e 0x01>; + }; + + rtc_offset: rtc-offset@2100 { + reg = <0x2100 0x06>; + }; + + boot_stage: boot-stage@f801 { + reg = <0xf801 0x01>; + }; + + boot_error_count: boot-error-count@f802,0 { + reg = <0xf802 0x01>; + bits = <0x00 0x04>; + }; + + panic_count: panic-count@f802,4 { + reg = <0xf802 0x01>; + bits = <0x04 0x04>; + }; + + shutdown_flag: shutdown-flag@f80f,3 { + reg = <0xf80f 0x01>; + bits = <0x03 0x01>; + }; + }; + }; + }; + + dart_dcpext0: iommu@2b2340000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x02 0xb2340000 0x00 0x20000>; + interrupts = <0x00 0x00 0x42e 0x04>; + #iommu-cells = <0x01>; + apple,dma-range = <0x100 0x00 0x300 0x00>; + status = "disabled"; + }; + + dart_dispext0: iommu@2b2300000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x02 0xb2300000 0x00 0xc000>; + interrupts = <0x00 0x00 0x42e 0x04>; + #iommu-cells = <0x01>; + apple,dma-range = <0x100 0x00 0x300 0x00>; + status = "disabled"; + }; + + dcpext0_mbox: mailbox@2b2e08000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x02 0xb2e08000 0x00 0x4000>; + interrupts = <0x00 0x00 0x463 0x04>, <0x00 0x00 0x464 0x04>, <0x00 0x00 + 0x465 0x04>, <0x00 0x00 0x466 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + status = "disabled"; + }; + + dcpext0_pmc: pmc-metadata@286700000 { + reg = <0x02 0x86700000 0x00 0x114000>; + #apple,bw-scratch-cells = <0x03>; + status = "disabled"; + }; + + pmc: power-management@286806000 { + compatible = "apple,t6050-pmc"; + reg = <0x02 0x86806000 0x00 0x3000>, <0x02 0x86700000 0x00 0x14000>; + reg-names = "rails", "voters"; + #address-cells = <0x01>; + #size-cells = <0x00>; + apple,static-voters = <0x01 0x03>; + + clpc: performance-controller@1 { + compatible = "apple,t6050-clpc", "apple,t6041-clpc"; + reg = <0x01>; + apple,smc = <&smc>; + }; + }; + + dcpext0: dcp@2b2e00000 { + compatible = "apple,t6050-dcpext", "apple,dcpext"; + reg = <0x02 0xb2e00000 0x00 0x4000>, <0x02 0xb0000000 0x00 0x4000000>, <0x02 + 0xb2240000 0x00 0x10000>, <0x02 0xb23ac000 0x00 0x4000>, <0x02 + 0xb2800000 0x00 0x800000>, <0x02 0x86700000 0x00 0x114000>, <0x02 + 0xb2850000 0x00 0x4000>; + reg-names = "coproc" , "disp-0" , "disp-1" , "disp-2" , "disp-3" , "disp-4" + , "iop-vbar" ; + mboxes = <&dcpext0_mbox>; + mbox-names = "mbox"; + iommus = <&dart_dcpext0 0x17>; + apple,bw-scratch = <&dcpext0_pmc 0x00 0x05 0x2c000>; + apple,dcp-index = <0x01>; + apple,clock-ids; + apple,connector-type = "USB-C"; + apple,dptx-die = <0x00>; + apple,typec-dptx-phys = <0x02 0x01 0x03 0x00>; + apple,typec-mux-indices = <0x00 0x00 0x00 0x00>; + phys = <&atc2_phy 0x06 &atc1_phy 0x06 + &atc3_phy 0x06 &atc0_phy 0x06>; + phy-names = "typec0", "typec1", "typec2", "typec3"; + mux-controls = <&atc2_xbar 0x00 &atc1_xbar 0x00 + &atc3_xbar 0x00 &atc0_xbar 0x00>; + mux-control-names = "typec0", "typec1", "typec2", "typec3"; + status = "disabled"; + + piodma { + iommus = <&dart_dispext0 0x10>; + }; + + typec-routes { + #address-cells = <0x01>; + #size-cells = <0x00>; + + route@0 { + reg = <0x00>; + mode-switch; + + port { + + dcpext0_typec: endpoint { + remote-endpoint = <&hpm2_dp>; + }; + }; + }; + + route@1 { + reg = <0x01>; + mode-switch; + + port { + + dcpext0_typec1: endpoint { + remote-endpoint = <&hpm1_dp>; + }; + }; + }; + + route@2 { + reg = <0x02>; + mode-switch; + + port { + + dcpext0_typec2: endpoint { + remote-endpoint = <&hpm3_dp>; + }; + }; + }; + + route@3 { + reg = <0x03>; + mode-switch; + + port { + + dcpext0_typec3: endpoint { + remote-endpoint = <&hpm0_dp>; + }; + }; + }; + }; + + ports { + #address-cells = <0x01>; + #size-cells = <0x00>; + + port@0 { + reg = <0x00>; + + dcpext0_audio: endpoint { + remote-endpoint = <&dpaudio_dispext0_dcp>; + }; + }; + }; + }; + + pmgr0: power-management@280600000 { + compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; + reg = <0x02 0x80600000 0x00 0x4000>; + #address-cells = <0x01>; + #size-cells = <0x01>; + + ps_atc0_common: power-controller@208 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x208 0x04>; + label = "atc0-common"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&{/soc/power-management@280600000/power-controller@1e0}>; + status = "okay"; + }; + + ps_atc1_common: power-controller@210 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x210 0x04>; + label = "atc1_common"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + status = "okay"; + }; + + ps_atc2_common: power-controller@238 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x238 0x04>; + label = "atc2_common"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + status = "okay"; + }; + + ps_atc3_common: power-controller@240 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x240 0x04>; + label = "atc3_common"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + status = "okay"; + }; + + ps_dispext1_adma: power-controller@2d8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x2d8 0x04>; + label = "dispext1_adma"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + }; + + ps_dispext0_adma: power-controller@270 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x270 0x04>; + label = "dispext0_adma"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + }; + + ps_atc0_cio: power-controller@280 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x280 0x04>; + label = "atc0-cio"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc0_common>; + status = "okay"; + }; + + ps_atc0_cio_pcie: power-controller@338 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x338 0x04>; + label = "atc0-cio-pcie"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc0_cio>; + status = "okay"; + }; + + ps_atc0_cio_usb: power-controller@340 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x340 0x04>; + label = "atc0-cio-usb"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc0_cio>; + status = "okay"; + }; + + ps_atc0_cio_auss: power-controller@348 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x348 0x04>; + label = "atc0-cio-auss"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc0_cio + &ps_auss>; + status = "okay"; + }; + + ps_atc1_cio: power-controller@290 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x290 0x04>; + label = "atc1-cio"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc1_common>; + status = "okay"; + }; + + ps_atc1_cio_pcie: power-controller@350 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x350 0x04>; + label = "atc1-cio-pcie"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc1_cio>; + status = "okay"; + }; + + ps_atc1_cio_usb: power-controller@358 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x358 0x04>; + label = "atc1-cio-usb"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc1_cio>; + status = "okay"; + }; + + ps_atc1_cio_auss: power-controller@360 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x360 0x04>; + label = "atc1-cio-auss"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc1_cio + &ps_auss>; + status = "okay"; + }; + + ps_atc2_cio: power-controller@2e8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x2e8 0x04>; + label = "atc2-cio"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc2_common>; + status = "okay"; + }; + + ps_atc2_cio_pcie: power-controller@3f8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x3f8 0x04>; + label = "atc2-cio-pcie"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc2_cio>; + status = "okay"; + }; + + ps_atc2_cio_usb: power-controller@400 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x400 0x04>; + label = "atc2-cio-usb"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc2_cio>; + status = "okay"; + }; + + ps_atc2_cio_auss: power-controller@408 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x408 0x04>; + label = "atc2-cio-auss"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc2_cio + &ps_auss>; + status = "okay"; + }; + + ps_atc3_cio: power-controller@2f8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x2f8 0x04>; + label = "atc3_cio"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc3_common>; + status = "okay"; + }; + + ps_atc3_cio_pcie: power-controller@410 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x410 0x04>; + label = "atc3_cio_pcie"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc3_cio>; + status = "okay"; + }; + + ps_atc3_cio_usb: power-controller@418 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x418 0x04>; + label = "atc3_cio_usb"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc3_cio>; + status = "okay"; + }; + + ps_atc3_cio_auss: power-controller@420 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x420 0x04>; + label = "atc3_cio_auss"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc3_cio + &ps_auss>; + status = "okay"; + }; + + ps_auss: power-controller@248 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x248 0x04>; + label = "auss"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + apple,always-on; + status = "okay"; + }; + + power-controller@100 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x100 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "pms"; + status = "disabled"; + }; + + power-controller@128 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x128 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "pmp"; + power-domains = <&{/soc/power-management@280600000/power-controller@100}>; + status = "disabled"; + }; + + power-controller@130 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x130 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "pms-sram"; + power-domains = <&{/soc/power-management@280600000/power-controller@100}>; + status = "disabled"; + }; + + power-controller@1d8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1d8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "fab0-piogw"; + status = "okay"; + }; + + power-controller@1e0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1e0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "fab3-soc"; + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; + status = "okay"; + }; + + power-controller@1f0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1f0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "fab5-soc"; + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; + status = "disabled"; + }; + + power-controller@1f8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1f8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "sbr"; + power-domains = <&{/soc/power-management@280600000/power-controller@1e0}>; + status = "disabled"; + }; + + power-controller@258 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x258 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "msg"; + power-domains = <&{/soc/power-management@280600000/power-controller@1f8}>; + status = "disabled"; + }; + + power-controller@288 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x288 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc0-pcie"; + power-domains = <&ps_atc0_common>; + status = "disabled"; + }; + + power-controller@298 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x298 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc1-pcie"; + power-domains = <&ps_atc1_common>; + status = "disabled"; + }; + + power-controller@2f0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x2f0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc2-pcie"; + power-domains = <&ps_atc2_common>; + status = "disabled"; + }; + + power-controller@300 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x300 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc3-pcie"; + power-domains = <&ps_atc3_common>; + status = "disabled"; + }; + }; + + pmgr2: power-management@288300000 { + compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; + reg = <0x02 0x88300000 0x00 0xc000>; + #address-cells = <0x01>; + #size-cells = <0x01>; + + ps_atc0_usb_aon: power-controller@148 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x148 0x04>; + label = "atc0-usb-aon"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + status = "okay"; + }; + + ps_atc0_usb: power-controller@150 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x150 0x04>; + label = "atc0-usb"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc0_common + &ps_atc0_usb_aon>; + status = "okay"; + }; + + ps_atc0_phymxwrap: power-controller@158 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x158 0x04>; + label = "atc0-phymxwrap"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc0_common + &ps_atc0_usb_aon>; + status = "okay"; + }; + + ps_atc1_usb_aon: power-controller@160 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x160 0x04>; + label = "atc1_usb_aon"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + status = "okay"; + }; + + ps_atc1_usb: power-controller@168 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x168 0x04>; + label = "atc1_usb"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc1_common + &ps_atc1_usb_aon>; + status = "okay"; + }; + + ps_atc1_phymxwrap: power-controller@170 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x170 0x04>; + label = "atc1_phymxwrap"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc1_common + &ps_atc1_usb_aon>; + status = "okay"; + }; + + ps_atc2_usb_aon: power-controller@178 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x178 0x04>; + label = "atc2_usb_aon"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + status = "okay"; + }; + + ps_atc2_phymxwrap: power-controller@188 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x188 0x04>; + label = "atc2_phymxwrap"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc2_common + &ps_atc2_usb_aon>; + status = "okay"; + }; + + ps_atc2_usb: power-controller@180 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x180 0x04>; + label = "atc2_usb"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc2_common + &ps_atc2_usb_aon>; + status = "okay"; + }; + + ps_atc3_usb_aon: power-controller@190 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x190 0x04>; + label = "atc3_usb_aon"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + status = "okay"; + }; + + ps_atc3_usb: power-controller@198 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x198 0x04>; + label = "atc3_usb"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc3_common + &ps_atc3_usb_aon>; + status = "okay"; + }; + + ps_atc3_phymxwrap: power-controller@1a0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1a0 0x04>; + label = "atc3_phymxwrap"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_atc3_common + &ps_atc3_usb_aon>; + status = "okay"; + }; + + power-controller@58 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x58 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "debug-gated"; + status = "disabled"; + }; + + power-controller@98 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x98 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc0-common-dp-0"; + status = "disabled"; + }; + + power-controller@a0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0xa0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc0-common-dp-1"; + status = "disabled"; + }; + + power-controller@a8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0xa8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc0-common-dp-2"; + status = "disabled"; + }; + + power-controller@b0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0xb0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc0-common-dp-3"; + status = "disabled"; + }; + + power-controller@b8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0xb8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc1-common-dp-0"; + status = "disabled"; + }; + + power-controller@c0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0xc0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc1-common-dp-1"; + status = "disabled"; + }; + + power-controller@c8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0xc8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc1-common-dp-2"; + status = "disabled"; + }; + + power-controller@d0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0xd0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc1-common-dp-3"; + status = "disabled"; + }; + + power-controller@d8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0xd8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc2-common-dp-0"; + status = "disabled"; + }; + + power-controller@e0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0xe0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc2-common-dp-1"; + status = "disabled"; + }; + + power-controller@e8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0xe8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc2-common-dp-2"; + status = "disabled"; + }; + + power-controller@f0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0xf0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc2-common-dp-3"; + status = "disabled"; + }; + + power-controller@f8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0xf8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc3-common-dp-0"; + status = "disabled"; + }; + + power-controller@100 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x100 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc3-common-dp-1"; + status = "disabled"; + }; + + power-controller@108 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x108 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc3-common-dp-2"; + status = "disabled"; + }; + + power-controller@110 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x110 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "atc3-common-dp-3"; + status = "disabled"; + }; + }; + + atc2_phy_mbox: mailbox@383148000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x03 0x83148000 0x00 0x4000>; + interrupts = <0x00 0x00 0x35d 0x04>, <0x00 0x00 0x35e 0x04>, <0x00 0x00 + 0x35f 0x04>, <0x00 0x00 0x360 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + status = "okay"; + }; + + atc2_phy: phy@383000000 { + compatible = "apple,t6050-combo-phy"; + reg = <0x03 0x83000000 0x00 0x2c000>, <0x03 0x82a90000 0x00 0x4000>, <0x03 + 0x82800000 0x00 0x4000>, <0x03 0x83200000 0x00 0x4000>, <0x03 + 0x83244000 0x00 0x4000>, <0x03 0x80000000 0x00 0x8000>, <0x03 + 0x80020000 0x00 0x4000>, <0x03 0x83250000 0x00 0x4000>, <0x03 + 0x83140000 0x00 0x4000>, <0x03 0x830c0000 0x00 0x10000>, <0x03 + 0x82a84000 0x00 0x4000>; + reg-names = "core" , "usb2phy" , "usb2-digital" , "reset" , "fabric" , + "axi2af" , "lioa" , "common-cfg" , "usb-control" , "firmware-data" , + "pipehandler" ; + #phy-cells = <0x01>; + #reset-cells = <0x01>; + apple,port-index = <0x02>; + apple,guest-port-reserved; + mode-switch; + orientation-switch; + mboxes = <&atc2_phy_mbox>; + power-domains = <&ps_atc2_usb_aon + &ps_atc2_common + &ps_atc2_phymxwrap + &ps_atc2_usb>; + power-domain-names = "usb-aon", "common", "wrapper", "usb"; + status = "okay"; + apple,tunable-lane0-rx-top-cio = <0x35c 0xe00 0x200>; + apple,tunable-lane1-rx-top-cio = <0x35c 0xe00 0x200>; + + port { + + atc2_phy_ep: endpoint { + remote-endpoint = <&hpm2_ss>; + }; + }; + }; + + atc2_xbar: mux@38324c000 { + compatible = "apple,t6050-display-crossbar", "apple,t8142-display-crossbar"; + reg = <0x03 0x8324c000 0x00 0x4000>; + #mux-control-cells = <0x01>; + power-domains = <&ps_atc2_usb_aon + &ps_atc2_common>; + power-domain-names = "usb-aon", "common"; + status = "okay"; + }; + + nub_spmi_a0: spmi@28a188000 { + compatible = "apple,t6050-spmi", "apple,t8142-spmi"; + reg = <0x02 0x8a188000 0x00 0x4000>; + #address-cells = <0x02>; + #size-cells = <0x00>; + status = "okay"; + + hpm0: usb-pd@c { + compatible = "apple,sn201202x"; + reg = <0x0c 0x00>; + + connector { + compatible = "usb-c-connector"; + label = "USB-C Back-right"; + power-role = "dual"; + data-role = "host"; + + ports { + #address-cells = <0x01>; + #size-cells = <0x00>; + + port@0 { + reg = <0x00>; + + hpm0_hs: endpoint { + remote-endpoint = <&usb_drd0_hs>; + }; + }; + + port@1 { + reg = <0x01>; + + hpm0_ss: endpoint { + remote-endpoint = <&atc0_phy_ep>; + }; + }; + + port@2 { + reg = <0x02>; + + hpm0_dp: endpoint { + remote-endpoint = <&dcpext0_typec3>; + }; + }; + + port@3 { + reg = <0x03>; + + hpm0_usb4: endpoint { + remote-endpoint = <&{/soc/acio@2a1ac0000/ports/port@1/endpoint}>; + }; + }; + }; + }; + }; + + hpm1: usb-pd@a { + compatible = "apple,sn201202x"; + reg = <0x0a 0x00>; + + connector { + compatible = "usb-c-connector"; + label = "USB-C Back-right-middle"; + power-role = "dual"; + data-role = "host"; + + ports { + #address-cells = <0x01>; + #size-cells = <0x00>; + + port@0 { + reg = <0x00>; + + hpm1_hs: endpoint { + remote-endpoint = <&usb_drd1_hs>; + }; + }; + + port@1 { + reg = <0x01>; + + hpm1_ss: endpoint { + remote-endpoint = <&atc1_phy_ep>; + }; + }; + + port@2 { + reg = <0x02>; + + hpm1_dp: endpoint { + remote-endpoint = <&dcpext0_typec1>; + }; + }; + + port@3 { + reg = <0x03>; + + hpm1_usb4: endpoint { + remote-endpoint = <&{/soc/acio@2a9ac0000/ports/port@1/endpoint}>; + }; + }; + }; + }; + }; + + hpm2: usb-pd@8 { + compatible = "apple,sn201202x"; + reg = <0x08 0x00>; + status = "okay"; + + connector { + compatible = "usb-c-connector"; + label = "USB-C Back-left-middle"; + power-role = "dual"; + data-role = "dual"; + + ports { + #address-cells = <0x01>; + #size-cells = <0x00>; + + port@0 { + reg = <0x00>; + + hpm2_hs: endpoint { + remote-endpoint = <&usb_drd2_hs>; + }; + }; + + port@1 { + reg = <0x01>; + + hpm2_ss: endpoint { + remote-endpoint = <&atc2_phy_ep>; + }; + }; + + port@2 { + reg = <0x02>; + + hpm2_dp: endpoint { + remote-endpoint = <&dcpext0_typec>; + }; + }; + + port@3 { + reg = <0x03>; + + hpm2_usb4: endpoint { + remote-endpoint = <&{/soc/acio@381ac0000/ports/port@1/endpoint}>; + }; + }; + }; + }; + }; + + hpm3: usb-pd@6 { + compatible = "apple,sn201202x"; + reg = <0x06 0x00>; + + connector { + compatible = "usb-c-connector"; + label = "USB-C Back-left"; + power-role = "dual"; + data-role = "host"; + + ports { + #address-cells = <0x01>; + #size-cells = <0x00>; + + port@0 { + reg = <0x00>; + + hpm3_hs: endpoint { + remote-endpoint = <&usb_drd3_hs>; + }; + }; + + port@1 { + reg = <0x01>; + + hpm3_ss: endpoint { + remote-endpoint = <&atc3_phy_ep>; + }; + }; + + port@2 { + reg = <0x02>; + + hpm3_dp: endpoint { + remote-endpoint = <&dcpext0_typec2>; + }; + }; + + port@3 { + reg = <0x03>; + + hpm3_usb4: endpoint { + remote-endpoint = <&{/soc/acio@389ac0000/ports/port@1/endpoint}>; + }; + }; + }; + }; + }; + }; + + atc0_phy_mbox: mailbox@2a3148000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x02 0xa3148000 0x00 0x4000>; + interrupts = <0x00 0x00 0x349 0x04>, <0x00 0x00 0x34a 0x04>, <0x00 0x00 + 0x34b 0x04>, <0x00 0x00 0x34c 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + }; + + atc0_phy: phy@2a3000000 { + compatible = "apple,t6050-combo-phy"; + reg = <0x02 0xa3000000 0x00 0x2c000>, <0x02 0xa2a90000 0x00 0x4000>, <0x02 + 0xa2800000 0x00 0x4000>, <0x02 0xa3200000 0x00 0x4000>, <0x02 + 0xa3244000 0x00 0x4000>, <0x02 0xa0000000 0x00 0x8000>, <0x02 + 0xa0020000 0x00 0x4000>, <0x02 0xa3250000 0x00 0x4000>, <0x02 + 0xa3140000 0x00 0x4000>, <0x02 0xa30c0000 0x00 0x10000>, <0x02 + 0xa2a84000 0x00 0x4000>; + reg-names = "core" , "usb2phy" , "usb2-digital" , "reset" , "fabric" , + "axi2af" , "lioa" , "common-cfg" , "usb-control" , "firmware-data" , + "pipehandler" ; + #phy-cells = <0x01>; + #reset-cells = <0x01>; + apple,port-index = <0x00>; + apple,guest-port-reserved; + mode-switch; + orientation-switch; + mboxes = <&atc0_phy_mbox>; + power-domains = <&ps_atc0_usb_aon + &ps_atc0_common + &ps_atc0_phymxwrap + &ps_atc0_usb>; + power-domain-names = "usb-aon", "common", "wrapper", "usb"; + apple,tunable-lane0-rx-top-cio = <0x35c 0xe00 0x200>; + apple,tunable-lane1-rx-top-cio = <0x35c 0xe00 0x200>; + + port { + + atc0_phy_ep: endpoint { + remote-endpoint = <&hpm0_ss>; + }; + }; + }; + + atc1_phy_mbox: mailbox@2ab148000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x02 0xab148000 0x00 0x4000>; + interrupts = <0x00 0x00 0x353 0x04>, <0x00 0x00 0x354 0x04>, <0x00 0x00 + 0x355 0x04>, <0x00 0x00 0x356 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + status = "okay"; + }; + + atc1_phy: phy@2ab000000 { + compatible = "apple,t6050-combo-phy"; + reg = <0x02 0xab000000 0x00 0x2c000>, <0x02 0xaaa90000 0x00 0x4000>, <0x02 + 0xaa800000 0x00 0x4000>, <0x02 0xab200000 0x00 0x4000>, <0x02 + 0xab244000 0x00 0x4000>, <0x02 0xa8000000 0x00 0x8000>, <0x02 + 0xa8020000 0x00 0x4000>, <0x02 0xab250000 0x00 0x4000>, <0x02 + 0xab140000 0x00 0x4000>, <0x02 0xab0c0000 0x00 0x10000>, <0x02 + 0xaaa84000 0x00 0x4000>; + reg-names = "core" , "usb2phy" , "usb2-digital" , "reset" , "fabric" , + "axi2af" , "lioa" , "common-cfg" , "usb-control" , "firmware-data" , + "pipehandler" ; + #phy-cells = <0x01>; + #reset-cells = <0x01>; + apple,port-index = <0x01>; + apple,guest-port-reserved; + mode-switch; + orientation-switch; + mboxes = <&atc1_phy_mbox>; + power-domains = <&ps_atc1_usb_aon + &ps_atc1_common + &ps_atc1_phymxwrap + &ps_atc1_usb>; + power-domain-names = "usb-aon", "common", "wrapper", "usb"; + apple,tunable-lane0-rx-top-cio = <0x35c 0xe00 0x200>; + apple,tunable-lane1-rx-top-cio = <0x35c 0xe00 0x200>; + status = "okay"; + + port { + + atc1_phy_ep: endpoint { + remote-endpoint = <&hpm1_ss>; + }; + }; + }; + + usb_drd1: usb@2aa280000 { + compatible = "apple,t6050-dwc3", "apple,t8103-dwc3"; + reg = <0x02 0xaa280000 0x00 0xcd00>, <0x02 0xaa28cd00 0x00 0x4b00>, <0x02 + 0xaa200000 0x00 0x4000>; + reg-names = "dwc3-core", "dwc3-apple", "drd-cfg"; + interrupts = <0x00 0x00 0x5ab 0x04>; + dr_mode = "otg"; + usb-role-switch; + role-switch-default-mode = "host"; + iommus = <&usb_drd1_dart_0 0x00 &usb_drd1_dart_1 0x01>; + power-domains = <&ps_atc1_usb>; + resets = <&atc1_phy 0x00>; + phys = <&atc1_phy 0x03 &atc1_phy 0x04>; + phy-names = "usb2-phy", "usb3-phy"; + apple,tunable-gbl-default = <0x64 0x02 0x00>, <0x10 0xfff80000 0x680000>; + apple,tunable-gbl-host = <0x04 0x1ef00 0x2f00>, <0x1c 0x100 0x00>, <0x2c + 0xa07ff 0x800c8>, <0x100 0x2000100 0x2000100>, <0x504 0x1000 0x00>, + <0x528 0xff0000ff 0x6000006>, <0x52c 0xff0000ff 0x8000008>, <0x580 + 0xffffffff 0x6f000006>, <0x584 0xffffffff 0x60000>; + apple,tunable-dbg = <0x00 0x08 0x08>; + apple,tunable-cfg-host = <0x20 0xff 0x1b>; + apple,tunable-link = <0x10 0xff000000 0xff000000>, <0x20 0x7ff00000 + 0x4e900000>, <0x24 0x1f8000 0xb8000>, <0x60 0x3ffff 0x600>; + apple,tunable-cio = <0x20 0xff0000 0x1e0000>; + status = "okay"; + + port { + + usb_drd1_hs: endpoint { + remote-endpoint = <&hpm1_hs>; + }; + }; + }; + + usb_drd1_dart_0: iommu@2aaf00000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x02 0xaaf00000 0x00 0xc000>; + interrupts = <0x00 0x00 0x5af 0x04>; + power-domains = <&ps_atc1_usb>; + #iommu-cells = <0x01>; + apple,dma-range = <0x100 0x4000 0x00 0xffff0000>; + status = "okay"; + }; + + usb_drd1_dart_1: iommu@2aaf80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x02 0xaaf80000 0x00 0xc000>; + interrupts = <0x00 0x00 0x5af 0x04>; + power-domains = <&ps_atc1_usb>; + #iommu-cells = <0x01>; + apple,dma-range = <0x100 0x4000 0x00 0xffff0000>; + status = "okay"; + }; + + usb_drd2: usb@382280000 { + compatible = "apple,t6050-dwc3", "apple,t8103-dwc3"; + reg = <0x03 0x82280000 0x00 0xcd00>, <0x03 0x8228cd00 0x00 0x4b00>, <0x03 + 0x82200000 0x00 0x4000>; + reg-names = "dwc3-core", "dwc3-apple", "drd-cfg"; + interrupts = <0x00 0x00 0x5cb 0x04>; + dr_mode = "otg"; + usb-role-switch; + role-switch-default-mode = "host"; + iommus = <&usb_drd2_dart_0 0x00 &usb_drd2_dart_1 0x01>; + power-domains = <&ps_atc2_usb>; + resets = <&atc2_phy 0x00>; + phys = <&atc2_phy 0x03 &atc2_phy 0x04>; + phy-names = "usb2-phy", "usb3-phy"; + apple,tunable-gbl-default = <0x64 0x02 0x00>, <0x10 0xfff80000 0x680000>; + apple,tunable-gbl-host = <0x04 0x1ef00 0x2f00>, <0x1c 0x100 0x00>, <0x2c + 0xa07ff 0x800c8>, <0x100 0x2000100 0x2000100>, <0x504 0x1000 0x00>, + <0x528 0xff0000ff 0x6000006>, <0x52c 0xff0000ff 0x8000008>, <0x580 + 0xffffffff 0x6f000006>, <0x584 0xffffffff 0x60000>; + apple,tunable-dbg = <0x00 0x08 0x08>; + apple,tunable-cfg-host = <0x20 0xff 0x1b>; + apple,tunable-link = <0x10 0xff000000 0xff000000>, <0x20 0x7ff00000 + 0x4e900000>, <0x24 0x1f8000 0xb8000>, <0x60 0x3ffff 0x600>; + apple,tunable-cio = <0x20 0xff0000 0x1e0000>; + status = "okay"; + + port { + + usb_drd2_hs: endpoint { + remote-endpoint = <&hpm2_hs>; + }; + }; + }; + + usb_drd2_dart_0: iommu@382f00000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x03 0x82f00000 0x00 0xc000>; + interrupts = <0x00 0x00 0x5cf 0x04>; + power-domains = <&ps_atc2_usb>; + #iommu-cells = <0x01>; + apple,dma-range = <0x100 0x4000 0x00 0xffff0000>; + status = "okay"; + }; + + usb_drd2_dart_1: iommu@382f80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x03 0x82f80000 0x00 0xc000>; + interrupts = <0x00 0x00 0x5cf 0x04>; + power-domains = <&ps_atc2_usb>; + #iommu-cells = <0x01>; + apple,dma-range = <0x100 0x4000 0x00 0xffff0000>; + status = "okay"; + }; + + atc3_phy_mbox: mailbox@38b148000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x03 0x8b148000 0x00 0x4000>; + interrupts = <0x00 0x00 0x367 0x04>, <0x00 0x00 0x368 0x04>, <0x00 0x00 + 0x369 0x04>, <0x00 0x00 0x36a 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + status = "okay"; + }; + + atc3_phy: phy@38b000000 { + compatible = "apple,t6050-combo-phy"; + reg = <0x03 0x8b000000 0x00 0x2c000>, <0x03 0x8aa90000 0x00 0x4000>, <0x03 + 0x8a800000 0x00 0x4000>, <0x03 0x8b200000 0x00 0x4000>, <0x03 + 0x8b244000 0x00 0x4000>, <0x03 0x88000000 0x00 0x8000>, <0x03 + 0x88020000 0x00 0x4000>, <0x03 0x8b250000 0x00 0x4000>, <0x03 + 0x8b140000 0x00 0x4000>, <0x03 0x8b0c0000 0x00 0x10000>, <0x03 + 0x8aa84000 0x00 0x4000>; + reg-names = "core" , "usb2phy" , "usb2-digital" , "reset" , "fabric" , + "axi2af" , "lioa" , "common-cfg" , "usb-control" , "firmware-data" , + "pipehandler" ; + #phy-cells = <0x01>; + #reset-cells = <0x01>; + apple,port-index = <0x03>; + apple,guest-port-reserved; + mode-switch; + orientation-switch; + mboxes = <&atc3_phy_mbox>; + power-domains = <&ps_atc3_usb_aon + &ps_atc3_common + &ps_atc3_phymxwrap + &ps_atc3_usb>; + power-domain-names = "usb-aon", "common", "wrapper", "usb"; + apple,tunable-lane0-rx-top-cio = <0x35c 0xe00 0x200>; + apple,tunable-lane1-rx-top-cio = <0x35c 0xe00 0x200>; + status = "okay"; + + port { + + atc3_phy_ep: endpoint { + remote-endpoint = <&hpm3_ss>; + }; + }; + }; + + usb_drd3: usb@38a280000 { + compatible = "apple,t6050-dwc3", "apple,t8103-dwc3"; + reg = <0x03 0x8a280000 0x00 0xcd00>, <0x03 0x8a28cd00 0x00 0x4b00>, <0x03 + 0x8a200000 0x00 0x4000>; + reg-names = "dwc3-core", "dwc3-apple", "drd-cfg"; + interrupts = <0x00 0x00 0x5eb 0x04>; + dr_mode = "otg"; + usb-role-switch; + role-switch-default-mode = "host"; + iommus = <&usb_drd3_dart_0 0x00 &usb_drd3_dart_1 0x01>; + power-domains = <&ps_atc3_usb>; + resets = <&atc3_phy 0x00>; + phys = <&atc3_phy 0x03 &atc3_phy 0x04>; + phy-names = "usb2-phy", "usb3-phy"; + apple,tunable-gbl-default = <0x64 0x02 0x00>, <0x10 0xfff80000 0x680000>; + apple,tunable-gbl-host = <0x04 0x1ef00 0x2f00>, <0x1c 0x100 0x00>, <0x2c + 0xa07ff 0x800c8>, <0x100 0x2000100 0x2000100>, <0x504 0x1000 0x00>, + <0x528 0xff0000ff 0x6000006>, <0x52c 0xff0000ff 0x8000008>, <0x580 + 0xffffffff 0x6f000006>, <0x584 0xffffffff 0x60000>; + apple,tunable-dbg = <0x00 0x08 0x08>; + apple,tunable-cfg-host = <0x20 0xff 0x1b>; + apple,tunable-link = <0x10 0xff000000 0xff000000>, <0x20 0x7ff00000 + 0x4e900000>, <0x24 0x1f8000 0xb8000>, <0x60 0x3ffff 0x600>; + apple,tunable-cio = <0x20 0xff0000 0x1e0000>; + status = "okay"; + + port { + + usb_drd3_hs: endpoint { + remote-endpoint = <&hpm3_hs>; + }; + }; + }; + + usb_drd3_dart_0: iommu@38af00000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x03 0x8af00000 0x00 0xc000>; + interrupts = <0x00 0x00 0x5ef 0x04>; + power-domains = <&ps_atc3_usb>; + #iommu-cells = <0x01>; + apple,dma-range = <0x100 0x4000 0x00 0xffff0000>; + status = "okay"; + }; + + usb_drd3_dart_1: iommu@38af80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x03 0x8af80000 0x00 0xc000>; + interrupts = <0x00 0x00 0x5ef 0x04>; + power-domains = <&ps_atc3_usb>; + #iommu-cells = <0x01>; + apple,dma-range = <0x100 0x4000 0x00 0xffff0000>; + status = "okay"; + }; + + nub_spmi_a2: spmi@28a1c8000 { + compatible = "apple,t6050-spmi", "apple,t8142-spmi"; + reg = <0x02 0x8a1c8000 0x00 0x4000>; + #address-cells = <0x02>; + #size-cells = <0x00>; + }; + + pinctrl_ap: pinctrl@29c000000 { + compatible = "apple,t6050-pinctrl", "apple,t8103-pinctrl"; + reg = <0x02 0x9c000000 0x00 0x44000>; + gpio-controller; + #gpio-cells = <0x02>; + gpio-ranges = <&pinctrl_ap 0x00 0x00 0xdd>; + apple,npins = <0xdd>; + interrupt-controller; + #interrupt-cells = <0x02>; + interrupt-parent = <&aic>; + interrupts = <0x00 0x00 0x1e6 0x04>, <0x00 0x00 0x1e7 0x04>, <0x00 0x00 + 0x1e8 0x04>, <0x00 0x00 0x1e9 0x04>, <0x00 0x00 0x1ea 0x04>, <0x00 + 0x00 0x1eb 0x04>, <0x00 0x00 0x1ec 0x04>; + gpio-reserved-ranges = <0x00 0x50>, <0x51 0x19>, <0x6c 0x1a>, <0x87 0x04>, + <0x8c 0x51>; + }; + + pmgr1: power-management@280900000 { + compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; + reg = <0x02 0x80900000 0x00 0x4000>; + #address-cells = <0x01>; + #size-cells = <0x01>; + + ps_i2c1: power-controller@2c8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x2c8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "i2c1"; + }; + + ps_i2c2: power-controller@2d0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x2d0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "i2c2"; + }; + + ps_spi_p: power-controller@308 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x308 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "spi_p"; + }; + + ps_qspi: power-controller@350 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x350 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "qspi"; + power-domains = <&ps_spi_p>; + }; + + ps_ane_sys: power-controller@3a8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x3a8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "ane_sys"; + status = "disabled"; + }; + + ps_dptx_phy: power-controller@3f8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x3f8 0x04>; + label = "dptx-phy"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + status = "disabled"; + }; + + power-controller@2a8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x2a8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "fpwm0"; + }; + + power-controller@2b0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x2b0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "fpwm1"; + status = "disabled"; + }; + + power-controller@2b8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x2b8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "fpwm2"; + status = "disabled"; + }; + + power-controller@100 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x100 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "ispsens0"; + status = "disabled"; + }; + + power-controller@108 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x108 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "global-aux-hpd-0"; + status = "disabled"; + }; + + power-controller@110 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x110 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "global-aux-hpd-1"; + status = "disabled"; + }; + + power-controller@118 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x118 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "apcie-gp"; + status = "disabled"; + }; + + power-controller@120 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x120 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "apcie-ge"; + status = "disabled"; + }; + + power-controller@128 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x128 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "apcie-st0"; + status = "disabled"; + }; + + power-controller@130 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x130 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "apcie-st1"; + status = "disabled"; + }; + + power-controller@138 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x138 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "fab6-soc"; + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; + status = "disabled"; + }; + + power-controller@140 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x140 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "ans"; + power-domains = <&{/soc/power-management@280900000/power-controller@138}>; + status = "disabled"; + }; + + power-controller@148 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x148 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "apcie-sys-gp"; + power-domains = <&{/soc/power-management@280900000/power-controller@118} + &{/soc/power-management@280900000/power-controller@138}>; + status = "disabled"; + }; + + power-controller@150 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x150 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "apcie-sys-st0"; + power-domains = <&{/soc/power-management@280900000/power-controller@128} + &{/soc/power-management@280900000/power-controller@140}>; + status = "disabled"; + }; + + power-controller@158 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x158 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "apcie-sys-st1"; + power-domains = <&{/soc/power-management@280900000/power-controller@130} + &{/soc/power-management@280900000/power-controller@140}>; + status = "disabled"; + }; + + power-controller@178 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x178 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "fab7-soc"; + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; + status = "disabled"; + }; + + power-controller@180 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x180 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "disp-sys"; + power-domains = <&{/soc/power-management@280900000/power-controller@178}>; + status = "disabled"; + }; + + power-controller@188 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x188 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "apcie-sys-ge"; + power-domains = <&{/soc/power-management@280900000/power-controller@120} + &{/soc/power-management@280900000/power-controller@138}>; + status = "disabled"; + }; + + power-controller@190 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x190 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "scodec"; + power-domains = <&{/soc/power-management@280900000/power-controller@178}>; + status = "disabled"; + }; + + power-controller@198 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x198 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "disp-fe"; + power-domains = <&{/soc/power-management@280900000/power-controller@180}>; + status = "disabled"; + }; + + power-controller@1a8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1a8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "disp-cpu"; + power-domains = <&{/soc/power-management@280900000/power-controller@198}>; + status = "disabled"; + }; + + power-controller@1b0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1b0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "apcie-phy-sw"; + power-domains = <&{/soc/power-management@280900000/power-controller@148} + &{/soc/power-management@280900000/power-controller@188}>; + status = "disabled"; + }; + + power-controller@240 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x240 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "aphy-st0-aus5-a"; + power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; + status = "disabled"; + }; + + power-controller@248 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x248 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "aphy-st1-aus5-a"; + power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; + status = "disabled"; + }; + + power-controller@250 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x250 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "aphy-ge-aus5-a"; + power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; + status = "disabled"; + }; + + power-controller@258 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x258 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "aphy-gp-aus5-a"; + power-domains = <&{/soc/power-management@280900000/power-controller@1b0}>; + status = "disabled"; + }; + + power-controller@268 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x268 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "aphy-st0-aus5"; + power-domains = <&{/soc/power-management@280900000/power-controller@240}>; + status = "disabled"; + }; + + power-controller@270 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x270 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "aphy-st1-aus5"; + power-domains = <&{/soc/power-management@280900000/power-controller@248}>; + status = "disabled"; + }; + + power-controller@278 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x278 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "aphy-ge-aus5"; + power-domains = <&{/soc/power-management@280900000/power-controller@250}>; + status = "disabled"; + }; + + power-controller@280 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x280 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "aphy-gp-aus5"; + power-domains = <&{/soc/power-management@280900000/power-controller@258}>; + status = "disabled"; + }; + + power-controller@288 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x288 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "fab8-soc"; + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; + status = "disabled"; + }; + + power-controller@290 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x290 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "sio"; + power-domains = <&{/soc/power-management@280900000/power-controller@288}>; + status = "disabled"; + }; + + power-controller@298 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x298 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "sep"; + power-domains = <&{/soc/power-management@280900000/power-controller@288}>; + apple,firmware-owned; + status = "disabled"; + }; + + power-controller@2a0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x2a0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "sio-cpu"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; + + power-controller@2c0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x2c0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "i2c0"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; + + power-controller@2d8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x2d8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "i2c3"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; + + power-controller@2e0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x2e0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "i2c4"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; + + power-controller@2e8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x2e8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "i2c5"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; + + power-controller@2f0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x2f0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "i2c6"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; + + power-controller@2f8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x2f8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "i2c7"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; + + power-controller@300 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x300 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "i2c8"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; + + power-controller@310 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x310 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "uart-p"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; + + power-controller@318 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x318 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "aes"; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + status = "disabled"; + }; + + power-controller@330 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x330 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "spi2"; + power-domains = <&ps_spi_p>; + status = "disabled"; + }; + + power-controller@338 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x338 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "spi3"; + power-domains = <&ps_spi_p>; + status = "disabled"; + }; + + power-controller@340 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x340 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "spi4"; + power-domains = <&ps_spi_p>; + status = "disabled"; + }; + + power-controller@360 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x360 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "uart0"; + power-domains = <&{/soc/power-management@280900000/power-controller@310}>; + status = "disabled"; + }; + + power-controller@398 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x398 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "fab9-soc"; + power-domains = <&{/soc/power-management@280600000/power-controller@1d8}>; + status = "disabled"; + }; + + power-controller@3a0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x3a0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "isp-sys"; + power-domains = <&{/soc/power-management@280900000/power-controller@398}>; + status = "disabled"; + }; + + power-controller@3c8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x3c8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "ane-cpu"; + status = "disabled"; + }; + }; + + ane: ane@508000000 { + compatible = "apple,t6050-ane"; + reg = <0x05 0x8000000 0x00 0x2000000>, <0x02 0x80900000 0x00 0x18000>, <0x02 + 0x80921590 0x00 0x34>, <0x05 0x84000000 0x00 0x2000000>; + reg-names = "engine", "pmgr", "pwgate", "xl"; + interrupt-parent = <&aic>; + interrupts = <0x00 0x00 0x3ba 0x04>, <0x00 0x00 0x3c7 0x04>; + iommus = <&ane_dart0 0x00>, <&ane_dart1 0x00>, <&ane_dart2 0x00>; + power-domains = <&ps_ane_sys>; + memory-region = <&ane_fw_text>, <&ane_fw_data>; + memory-region-names = "firmware-text", "firmware-data"; + apple,ane-type = <0x220>; + apple,firmware-preloaded; + apple,firmware-iovas = /bits/ 64 <0x10000000000 0x100000c0000>; + apple,dapf-ranges = /bits/ 64 <0x2809003a8 0x2809003ab 0x2809003c0 + 0x2809003d3 0x581668000 0x581668003 0x2302668000 0x2302668003 + 0x6302668000 0x6302668003>; + apple,clpc = <&clpc>; + performance-domains = <&cpufreq_pc0>; + status = "disabled"; + }; + + i2c1: i2c@505014000 { + compatible = "apple,t6050-i2c", "apple,t8103-i2c"; + reg = <0x05 0x5014000 0x00 0x4000>; + clocks = <&clkref>; + interrupt-parent = <&aic>; + interrupts = <0x00 0x00 0x560 0x04>; + #address-cells = <0x01>; + #size-cells = <0x00>; + power-domains = <&ps_i2c1>; + + speaker_amp: codec@38 { + compatible = "ti,sn012776", "ti,tas2764"; + reg = <0x38>; + shutdown-gpios = <&pinctrl_ap 0x6b 0x00>; + interrupts-extended = <&pinctrl_ap 0x6a 0x08>; + #sound-dai-cells = <0x00>; + ti,imon-slot-no = <0x00>; + ti,vmon-slot-no = <0x02>; + }; + }; + + i2c2: i2c@505018000 { + compatible = "apple,t6050-i2c", "apple,t8103-i2c"; + reg = <0x05 0x5018000 0x00 0x4000>; + clocks = <&clkref>; + interrupt-parent = <&aic>; + interrupts = <0x00 0x00 0x561 0x04>; + #address-cells = <0x01>; + #size-cells = <0x00>; + power-domains = <&ps_i2c2>; + + jack_codec: codec@4b { + compatible = "cirrus,cs42l84"; + reg = <0x4b>; + reset-gpios = <&pinctrl_ap 0x8b 0x00>; + interrupts-extended = <&pinctrl_ap 0x86 0x08>; + #sound-dai-cells = <0x00>; + sound-name-prefix = "Jack"; + }; + }; + + qspi: spi@505118000 { + compatible = "apple,t6050-qspi", "apple,t8140-qspi"; + reg = <0x05 0x5118000 0x00 0x4800>; + clocks = <&clk_405m>; + interrupt-parent = <&aic>; + interrupts = <0x00 0x00 0x55d 0x04>; + power-domains = <&ps_qspi>; + #address-cells = <0x01>; + #size-cells = <0x00>; + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0x00>; + spi-max-frequency = <0x17d7840>; + spi-rx-bus-width = <0x01>; + spi-tx-bus-width = <0x01>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <0x01>; + #size-cells = <0x01>; + + nvram: partition@700000 { + label = "nvram"; + reg = <0x00 0x00>; + status = "disabled"; + }; + }; + }; + }; + + aop_mbox: mailbox@290608000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x02 0x90608000 0x00 0x4000>; + interrupts = <0x00 0x00 0x242 0x04>, <0x00 0x00 0x243 0x04>, <0x00 0x00 + 0x244 0x04>, <0x00 0x00 0x245 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + status = "disabled"; + }; + + aop_dart: iommu@290fc0000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x02 0x90fc0000 0x00 0xc000>; + #iommu-cells = <0x01>; + interrupt-parent = <&aic>; + interrupts = <0x00 0x00 0x268 0x04>; + status = "disabled"; + }; + + admac_base_ns: dma-controller@293800000 { + compatible = "apple,t6050-admac", "apple,t8140-admac"; + reg = <0x02 0x93800000 0x00 0x34000>; + dma-channels = <0x0d>; + interrupts-extended = <&aic 0x00 0x00 + 0x27d 0x04 0x00 0x00 0x00>; + #dma-cells = <0x01>; + iommus = <&aop_dart 0x08>; + apple,dma-range = <0x110 0x00 0x00 0x10000000>; + status = "disabled"; + }; + + aop: aop@290c00000 { + compatible = "apple,t6050-aop", "apple,t8152-aop"; + reg = <0x02 0x90c00000 0x00 0x1e0000>, <0x02 0x90600000 0x00 0x4000>; + reg-names = "mmio", "asc"; + mboxes = <&aop_mbox>; + mbox-names = "mbox"; + iommus = <&aop_dart 0x00>; + apple,dma-range = <0x110 0x00 0x10 0x00>; + status = "disabled"; + + aop_audio: audio { + compatible = "apple,t6050-aop-audio"; + dmas = <&admac_base_ns 0x04 + &admac_base_ns 0x05 + &admac_base_ns 0x00 + &admac_base_ns 0x01>; + dma-names = "cout", "cin", "spkr", "sense"; + #sound-dai-cells = <0x01>; + }; + }; + + pmgr4: power-management@2380600000 { + compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; + reg = <0x23 0x80600000 0x00 0xc000>; + #address-cells = <0x01>; + #size-cells = <0x01>; + status = "disabled"; + + ps_fab1_soc: power-controller@1b0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1b0 0x04>; + label = "fab1_soc"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + status = "disabled"; + }; + + ps_avd_sys: power-controller@1d8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1d8 0x04>; + label = "avd_sys"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + power-domains = <&ps_fab1_soc>; + status = "disabled"; + }; + + power-controller@1a0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1a0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "fab1-piogw"; + status = "disabled"; + }; + + power-controller@1a8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1a8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "fab0-soc"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1a0}>; + status = "disabled"; + }; + + power-controller@1b8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1b8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "fab2-soc"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1a0}>; + status = "disabled"; + }; + + power-controller@1c0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1c0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "venc0-sys"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1a8}>; + status = "disabled"; + }; + + power-controller@1c8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1c8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "msr0"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1a8}>; + status = "disabled"; + }; + + power-controller@1d0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1d0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "jpg"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1a8}>; + status = "disabled"; + }; + + power-controller@1e0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1e0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "prores"; + power-domains = <&ps_fab1_soc>; + status = "disabled"; + }; + + power-controller@1f0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1f0 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "venc1-sys"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1b8}>; + status = "disabled"; + }; + + power-controller@1f8 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x1f8 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "msr1"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1b8}>; + status = "disabled"; + }; + + power-controller@200 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x200 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "msr0-ase-core"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1c8}>; + status = "disabled"; + }; + + power-controller@208 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x208 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "msr1-ase-core"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1f8}>; + status = "disabled"; + }; + + power-controller@8000 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x8000 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "venc0-dma"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1c0}>; + status = "disabled"; + }; + + power-controller@8008 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x8008 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "venc0-pipe4"; + power-domains = <&{/soc/power-management@2380600000/power-controller@8000}>; + status = "disabled"; + }; + + power-controller@8010 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x8010 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "venc0-pipe5"; + power-domains = <&{/soc/power-management@2380600000/power-controller@8000}>; + status = "disabled"; + }; + + power-controller@8018 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x8018 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "venc0-me0"; + power-domains = <&{/soc/power-management@2380600000/power-controller@8000}>; + status = "disabled"; + }; + + power-controller@8020 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x8020 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "venc0-me1"; + power-domains = <&{/soc/power-management@2380600000/power-controller@8018}>; + status = "disabled"; + }; + + power-controller@8028 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x8028 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "venc1-dma"; + power-domains = <&{/soc/power-management@2380600000/power-controller@1f0}>; + status = "disabled"; + }; + + power-controller@8030 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x8030 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "venc1-pipe4"; + power-domains = <&{/soc/power-management@2380600000/power-controller@8028}>; + status = "disabled"; + }; + + power-controller@8038 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x8038 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "venc1-pipe5"; + power-domains = <&{/soc/power-management@2380600000/power-controller@8028}>; + status = "disabled"; + }; + + power-controller@8040 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x8040 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "venc1-me0"; + power-domains = <&{/soc/power-management@2380600000/power-controller@8028}>; + status = "disabled"; + }; + + power-controller@8048 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x8048 0x04>; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + label = "venc1-me1"; + power-domains = <&{/soc/power-management@2380600000/power-controller@8040}>; + status = "disabled"; + }; + }; + + avd: avd@2309080000 { + compatible = "apple,t6050-avd", "apple,t8142-avd"; + reg = <0x23 0x9080000 0x00 0x14000>, <0x23 0x9094000 0x00 0x14000>, <0x23 + 0x90a8000 0x00 0x4000>, <0x23 0x9100000 0x00 0x10000>; + reg-names = "code", "sram", "mbox", "ctrl"; + interrupts = <0x00 0x00 0x971 0x04>, <0x00 0x00 0x972 0x04>; + power-domains = <&ps_avd_sys>; + resets = <&ps_avd_sys>; + iommus = <&avd_dart 0x00>, <&avd_dart 0x01>, <&avd_dart 0x02>; + }; + + avd_dart: iommu@2309020000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x23 0x9020000 0x00 0x20000>; + #iommu-cells = <0x01>; + interrupts = <0x00 0x00 0x978 0x04>; + power-domains = <&ps_avd_sys>; + status = "disabled"; + }; + + dart_apcie1: iommu@411000000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x04 0x11000000 0x00 0x20000>; + interrupts = <0x00 0x00 0x5fc 0x04>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + atc0_xbar: mux@2a324c000 { + compatible = "apple,t6050-display-crossbar", "apple,t8142-display-crossbar"; + reg = <0x02 0xa324c000 0x00 0x4000>; + #mux-control-cells = <0x01>; + status = "okay"; + }; + + atc1_xbar: mux@2ab24c000 { + compatible = "apple,t6050-display-crossbar", "apple,t8142-display-crossbar"; + reg = <0x02 0xab24c000 0x00 0x4000>; + #mux-control-cells = <0x01>; + status = "okay"; + }; + + atc3_xbar: mux@38b24c000 { + compatible = "apple,t6050-display-crossbar", "apple,t8142-display-crossbar"; + reg = <0x03 0x8b24c000 0x00 0x4000>; + #mux-control-cells = <0x01>; + status = "okay"; + }; + + pinctrl_nub: pinctrl@2881e4000 { + compatible = "apple,t6050-pinctrl", "apple,t8103-pinctrl"; + reg = <0x02 0x881e4000 0x00 0x4000>; + gpio-controller; + #gpio-cells = <0x02>; + gpio-ranges = <&pinctrl_nub 0x00 0x00 0x3d>; + apple,npins = <0x3d>; + gpio-reserved-ranges = <0x00 0x0e>, <0x0f 0x2e>; + interrupt-controller; + #interrupt-cells = <0x02>; + interrupts = <0x00 0x00 0x2c2 0x04>, <0x00 0x00 0x2c4 0x04>, <0x00 0x00 + 0x2c6 0x04>, <0x00 0x00 0x2c8 0x04>, <0x00 0x00 0x2ca 0x04>, <0x00 + 0x00 0x2cc 0x04>, <0x00 0x00 0x2ce 0x04>; + status = "okay"; + + usb3hub-rst-hog { + gpio-hog; + gpios = <0x0e 0x01>; + output-low; + line-name = "usb3hub_rst"; + }; + }; + + usb_drd0_dart_0: iommu@2a2f00000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x02 0xa2f00000 0x00 0xc000>; + interrupts = <0x00 0x00 0x58f 0x04>; + power-domains = <&ps_atc0_usb>; + #iommu-cells = <0x01>; + status = "okay"; + }; + + usb_drd0_dart_1: iommu@2a2f80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x02 0xa2f80000 0x00 0xc000>; + interrupts = <0x00 0x00 0x58f 0x04>; + power-domains = <&ps_atc0_usb>; + #iommu-cells = <0x01>; + status = "okay"; + }; + + usb_drd0: usb@2a2280000 { + compatible = "apple,t6050-dwc3", "apple,t8103-dwc3"; + reg = <0x02 0xa2280000 0x00 0xcd00>, <0x02 0xa228cd00 0x00 0x4b00>, <0x02 + 0xa2200000 0x00 0x4000>; + reg-names = "dwc3-core", "dwc3-apple", "drd-cfg"; + interrupts = <0x00 0x00 0x58b 0x04>; + dr_mode = "otg"; + usb-role-switch; + role-switch-default-mode = "host"; + iommus = <&usb_drd0_dart_0 0x00 &usb_drd0_dart_1 0x01>; + power-domains = <&ps_atc0_usb>; + resets = <&atc0_phy 0x00>; + phys = <&atc0_phy 0x03 &atc0_phy 0x04>; + phy-names = "usb2-phy", "usb3-phy"; + apple,tunable-gbl-default = <0x64 0x02 0x00>, <0x10 0xfff80000 0x680000>; + apple,tunable-gbl-host = <0x04 0x1ef00 0x2f00>, <0x1c 0x100 0x00>, <0x2c + 0xa07ff 0x800c8>, <0x100 0x2000100 0x2000100>, <0x504 0x1000 0x00>, + <0x528 0xff0000ff 0x6000006>, <0x52c 0xff0000ff 0x8000008>, <0x580 + 0xffffffff 0x6f000006>, <0x584 0xffffffff 0x60000>; + apple,tunable-dbg = <0x00 0x08 0x08>; + apple,tunable-cfg-host = <0x20 0xff 0x1b>; + apple,tunable-link = <0x10 0xff000000 0xff000000>, <0x20 0x7ff00000 + 0x4e900000>, <0x24 0x1f8000 0xb8000>, <0x60 0x3ffff 0x600>; + apple,tunable-cio = <0x20 0xff0000 0x1e0000>; + status = "okay"; + + port { + + usb_drd0_hs: endpoint { + remote-endpoint = <&hpm0_hs>; + }; + }; + }; + + dart_dispext0_isoc: iommu@2b2180000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x02 0xb2180000 0x00 0x20000>; + interrupts = <0x00 0x00 0x445 0x04>; + #iommu-cells = <0x01>; + power-domains = <&ps_dispext0_adma>; + apple,dma-range = <0x100 0x00 0x10 0x00>; + status = "okay"; + }; + + admac_dispext0: dma-controller@2b2140000 { + compatible = "apple,t6050-admac", "apple,t8140-admac"; + reg = <0x02 0xb2140000 0x00 0x24000>; + dma-channels = <0x01>; + interrupts-extended = <&aic 0x00 0x00 + 0x444 0x04 0x00 0x00 0x00>; + #dma-cells = <0x01>; + iommus = <&dart_dispext0_isoc 0x1e>; + power-domains = <&ps_dispext0_adma>; + apple,dma-range = <0x100 0x00 0x10 0x00>; + status = "okay"; + }; + + dcpext1_mbox: mailbox@392e08000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x03 0x92e08000 0x00 0x4000>; + interrupts = <0x00 0x00 0x4ab 0x04>, <0x00 0x00 0x4ac 0x04>, <0x00 0x00 + 0x4ad 0x04>, <0x00 0x00 0x4ae 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + status = "disabled"; + }; + + dcpext1: dcp@392e00000 { + compatible = "apple,t6050-dcpext", "apple,dcpext"; + reg = <0x03 0x92e00000 0x00 0x4000>, <0x03 0x90000000 0x00 0x4000000>, <0x03 + 0x92240000 0x00 0x10000>, <0x03 0x923ac000 0x00 0x4000>, <0x03 + 0x92800000 0x00 0x800000>, <0x02 0x86700000 0x00 0x114000>, <0x03 + 0x92850000 0x00 0x4000>; + reg-names = "coproc" , "disp-0" , "disp-1" , "disp-2" , "disp-3" , "disp-4" + , "iop-vbar" ; + mboxes = <&dcpext1_mbox>; + mbox-names = "mbox"; + iommus = <&dart_dcpext1 0x17>; + apple,bw-scratch = <&dcpext0_pmc 0x00 0x05 0x30000>; + apple,dcp-index = <0x02>; + apple,clock-ids; + apple,connector-type = "HDMI-A"; + apple,dptx-die = <0x00>; + apple,dptx-phy = <0x04>; + phys = <&lpdptx_phy0>; + phy-names = "dp-phy"; + hdmi-hpd-gpios = <&pinctrl_aop 0x0e 0x00>; + hdmi-pwren-gpios = <&smc_pcio 0x00 0x00>; + dp2hdmi-pwren-gpios = <&smc_pcio 0x01 0x00>; + status = "disabled"; + + piodma { + iommus = <&dart_dispext1 0x10>; + }; + + ports { + #address-cells = <0x01>; + #size-cells = <0x00>; + + port@0 { + reg = <0x00>; + + dcpext1_audio: endpoint { + remote-endpoint = <&dpaudio_dispext1_dcp>; + }; + }; + }; + }; + + dart_dcpext1: iommu@392340000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x03 0x92340000 0x00 0x20000>; + interrupts = <0x00 0x00 0x476 0x04>; + #iommu-cells = <0x01>; + apple,dma-range = <0x100 0x00 0x300 0x00>; + status = "disabled"; + }; + + dart_dispext1: iommu@392300000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x03 0x92300000 0x00 0xc000>; + interrupts = <0x00 0x00 0x476 0x04>; + #iommu-cells = <0x01>; + apple,dma-range = <0x100 0x00 0x300 0x00>; + status = "disabled"; + }; + + dart_dispext1_isoc: iommu@392180000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x03 0x92180000 0x00 0x20000>; + interrupts = <0x00 0x00 0x48d 0x04>; + #iommu-cells = <0x01>; + power-domains = <&ps_dispext1_adma>; + apple,dma-range = <0x100 0x00 0x10 0x00>; + status = "okay"; + }; + + admac_dispext1: dma-controller@392140000 { + compatible = "apple,t6050-admac", "apple,t8140-admac"; + reg = <0x03 0x92140000 0x00 0x24000>; + dma-channels = <0x01>; + interrupts-extended = <&aic 0x00 0x00 + 0x48c 0x04 0x00 0x00 0x00>; + #dma-cells = <0x01>; + iommus = <&dart_dispext1_isoc 0x1e>; + power-domains = <&ps_dispext1_adma>; + apple,dma-range = <0x100 0x00 0x10 0x00>; + status = "okay"; + }; + + ane_dart0: iommu@509800000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x05 0x9800000 0x00 0xc000 0x05 0x9810000 0x00 0x4000>; + #iommu-cells = <0x01>; + interrupts = <0x00 0x00 0x3bb 0x04>; + status = "disabled"; + reg-names = "dart", "auxiliary"; + }; + + ane_dart1: iommu@509820000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x05 0x9820000 0x00 0xc000>; + #iommu-cells = <0x01>; + interrupts = <0x00 0x00 0x3bb 0x04>; + status = "disabled"; + }; + + ane_dart2: iommu@509840000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x05 0x9840000 0x00 0xc000>; + #iommu-cells = <0x01>; + interrupts = <0x00 0x00 0x3bb 0x04>; + status = "disabled"; + }; + + lpdptx_phy0: phy@29c200000 { + compatible = "apple,t6050-dptx-phy"; + reg = <0x02 0x9c200000 0x00 0x4000>, <0x02 0x9c240000 0x00 0x10000>; + reg-names = "core", "dptx"; + power-domains = <&ps_dptx_phy>; + #phy-cells = <0x00>; + #reset-cells = <0x00>; + apple,pll-dcocfg = <0x03>; + apple,pll-dtcvreg = <0x0f>; + apple,pll-dtccal = <0x02>; + apple,pll-dcdadj = <0x10>; + apple,pll-dlfcfg = <0x03>; + apple,pclkdrv-select = <0x01>; + apple,ufp-endpoint = <0x01>; + status = "disabled"; + }; + + cio_reconfig0: cio_reset: reset-controller@280620000 { + compatible = "apple,t6050-cio-reset"; + reg = <0x02 0x80620000 0x00 0x4000>; + #reset-cells = <0x01>; + status = "okay"; + }; + + acio2_mbox: mailbox@381108000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x03 0x81108000 0x00 0x4000>; + interrupts = <0x00 0x00 0x359 0x04>, <0x00 0x00 0x35a 0x04>, <0x00 0x00 + 0x35b 0x04>, <0x00 0x00 0x35c 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + status = "okay"; + }; + + acio2: acio@381ac0000 { + compatible = "apple,t6050-usb4-acio"; + reg = <0x03 0x81ac0000 0x00 0xc000>, <0x03 0x81080000 0x00 0x26000>, <0x03 + 0x81e44000 0x00 0x4000>, <0x03 0x81100000 0x00 0x4000>, <0x03 + 0x81c80000 0x00 0x4000>; + reg-names = "rc", "sram", "pcie-adapter", "cpu", "router-ap-fw"; + mboxes = <&acio2_mbox>; + resets = <&cio_reconfig0 0x02>; + power-domains = <&ps_atc2_cio + &ps_atc2_cio_pcie + &ps_atc2_cio_usb + &ps_atc2_cio_auss>; + thunderbolt-switch; + status = "okay"; + pinctrl-0 = <&acio2_lstx_pins>; + pinctrl-names = "lstx"; + lstx-gpios = <&pinctrl_aop 0x51 0x00>; + #address-cells = <0x01>; + #size-cells = <0x01>; + ranges = <0x00 0x03 0x81000000 0x1000000>; + nonposted-mmio; + apple,tunable-pcie-adapter = <0x1008 0x06 0x06>; + apple,tunable-router-ap-fw = <0x08 0xff2 0x482>; + + acio2_dart: iommu@a80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0xa80000 0xc000>; + interrupts = <0x00 0x00 0x686 0x04>; + power-domains = <&ps_atc2_cio>; + #iommu-cells = <0x01>; + apple,dma-range = <0x100 0x4000 0x00 0xffff0000>; + apple,bypass-sids = <0x0f>; + apple,full-error-reporting; + apple,ctc-flush; + }; + + acio2_nhi: nhi@f00000 { + compatible = "apple,t6050-usb4-nhi"; + reg = <0xf00000 0x100000>; + reg-names = "nhi"; + apple,thunderbolt-drom = [00]; + interrupts = <0x00 0x00 0x66b 0x04>, <0x00 0x00 0x66c 0x04>, <0x00 + 0x00 0x66d 0x04>, <0x00 0x00 0x66e 0x04>, <0x00 0x00 0x66f + 0x04>, <0x00 0x00 0x670 0x04>, <0x00 0x00 0x671 0x04>, <0x00 + 0x00 0x672 0x04>, <0x00 0x00 0x673 0x04>, <0x00 0x00 0x674 + 0x04>, <0x00 0x00 0x675 0x04>, <0x00 0x00 0x676 0x04>, <0x00 + 0x00 0x677 0x04>, <0x00 0x00 0x678 0x04>, <0x00 0x00 0x679 + 0x04>, <0x00 0x00 0x67a 0x04>, <0x00 0x00 0x67b 0x04>, <0x00 + 0x00 0x67c 0x04>, <0x00 0x00 0x67d 0x04>, <0x00 0x00 0x67e + 0x04>, <0x00 0x00 0x67f 0x04>, <0x00 0x00 0x680 0x04>, <0x00 + 0x00 0x681 0x04>, <0x00 0x00 0x682 0x04>, <0x00 0x00 0x688 + 0x04>; + interrupt-names = "txring0" , "txring1" , "txring2" , "txring3" , + "txring4" , "txring5" , "txring6" , "txring7" , "txring8" , + "txring9" , "txring10" , "txring11" , "rxring0" , "rxring1" + , "rxring2" , "rxring3" , "rxring4" , "rxring5" , "rxring6" + , "rxring7" , "rxring8" , "rxring9" , "rxring10" , + "rxring11" , "parity" ; + iommus = <&acio2_dart 0x00 + &acio2_dart 0x01 + &acio2_dart 0x02 + &acio2_dart 0x03 + &acio2_dart 0x04 + &acio2_dart 0x05 + &acio2_dart 0x06 + &acio2_dart 0x07 + &acio2_dart 0x08 + &acio2_dart 0x09 + &acio2_dart 0x0a + &acio2_dart 0x0b + &acio2_dart 0x10 + &acio2_dart 0x11 + &acio2_dart 0x12 + &acio2_dart 0x13 + &acio2_dart 0x14 + &acio2_dart 0x15 + &acio2_dart 0x16 + &acio2_dart 0x17 + &acio2_dart 0x18 + &acio2_dart 0x19 + &acio2_dart 0x1a + &acio2_dart 0x1b>; + }; + + ports { + #address-cells = <0x01>; + #size-cells = <0x00>; + + port@1 { + reg = <0x01>; + + endpoint { + remote-endpoint = <&hpm2_usb4>; + }; + }; + }; + }; + + acio0_mbox: mailbox@2a1108000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x02 0xa1108000 0x00 0x4000>; + interrupts = <0x00 0x00 0x345 0x04>, <0x00 0x00 0x346 0x04>, <0x00 0x00 + 0x347 0x04>, <0x00 0x00 0x348 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + status = "okay"; + }; + + acio0: acio@2a1ac0000 { + compatible = "apple,t6050-usb4-acio"; + reg = <0x02 0xa1ac0000 0x00 0xc000>, <0x02 0xa1080000 0x00 0x26000>, <0x02 + 0xa1e44000 0x00 0x4000>, <0x02 0xa1100000 0x00 0x4000>, <0x02 + 0xa1c80000 0x00 0x4000>; + reg-names = "rc", "sram", "pcie-adapter", "cpu", "router-ap-fw"; + mboxes = <&acio0_mbox>; + resets = <&cio_reconfig0 0x00>; + power-domains = <&ps_atc0_cio + &ps_atc0_cio_pcie + &ps_atc0_cio_usb + &ps_atc0_cio_auss>; + thunderbolt-switch; + status = "okay"; + pinctrl-0 = <&acio0_lstx_pins>; + pinctrl-names = "lstx"; + lstx-gpios = <&pinctrl_aop 0x4d 0x00>; + #address-cells = <0x01>; + #size-cells = <0x01>; + ranges = <0x00 0x02 0xa1000000 0x1000000>; + nonposted-mmio; + apple,tunable-pcie-adapter = <0x1008 0x06 0x06>; + apple,tunable-router-ap-fw = <0x08 0xff2 0x482>; + + acio0_dart: iommu@a80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0xa80000 0xc000>; + interrupts = <0x00 0x00 0x646 0x04>; + power-domains = <&ps_atc0_cio>; + #iommu-cells = <0x01>; + apple,dma-range = <0x100 0x4000 0x00 0xffff0000>; + apple,bypass-sids = <0x0f>; + apple,full-error-reporting; + apple,ctc-flush; + }; + + acio0_nhi: nhi@f00000 { + compatible = "apple,t6050-usb4-nhi"; + reg = <0xf00000 0x100000>; + reg-names = "nhi"; + apple,thunderbolt-drom = [00]; + interrupts = <0x00 0x00 0x62b 0x04>, <0x00 0x00 0x62c 0x04>, <0x00 + 0x00 0x62d 0x04>, <0x00 0x00 0x62e 0x04>, <0x00 0x00 0x62f + 0x04>, <0x00 0x00 0x630 0x04>, <0x00 0x00 0x631 0x04>, <0x00 + 0x00 0x632 0x04>, <0x00 0x00 0x633 0x04>, <0x00 0x00 0x634 + 0x04>, <0x00 0x00 0x635 0x04>, <0x00 0x00 0x636 0x04>, <0x00 + 0x00 0x637 0x04>, <0x00 0x00 0x638 0x04>, <0x00 0x00 0x639 + 0x04>, <0x00 0x00 0x63a 0x04>, <0x00 0x00 0x63b 0x04>, <0x00 + 0x00 0x63c 0x04>, <0x00 0x00 0x63d 0x04>, <0x00 0x00 0x63e + 0x04>, <0x00 0x00 0x63f 0x04>, <0x00 0x00 0x640 0x04>, <0x00 + 0x00 0x641 0x04>, <0x00 0x00 0x642 0x04>, <0x00 0x00 0x648 + 0x04>; + interrupt-names = "txring0" , "txring1" , "txring2" , "txring3" , + "txring4" , "txring5" , "txring6" , "txring7" , "txring8" , + "txring9" , "txring10" , "txring11" , "rxring0" , "rxring1" + , "rxring2" , "rxring3" , "rxring4" , "rxring5" , "rxring6" + , "rxring7" , "rxring8" , "rxring9" , "rxring10" , + "rxring11" , "parity" ; + iommus = <&acio0_dart 0x00 + &acio0_dart 0x01 + &acio0_dart 0x02 + &acio0_dart 0x03 + &acio0_dart 0x04 + &acio0_dart 0x05 + &acio0_dart 0x06 + &acio0_dart 0x07 + &acio0_dart 0x08 + &acio0_dart 0x09 + &acio0_dart 0x0a + &acio0_dart 0x0b + &acio0_dart 0x10 + &acio0_dart 0x11 + &acio0_dart 0x12 + &acio0_dart 0x13 + &acio0_dart 0x14 + &acio0_dart 0x15 + &acio0_dart 0x16 + &acio0_dart 0x17 + &acio0_dart 0x18 + &acio0_dart 0x19 + &acio0_dart 0x1a + &acio0_dart 0x1b>; + }; + + ports { + #address-cells = <0x01>; + #size-cells = <0x00>; + + port@1 { + reg = <0x01>; + + endpoint { + remote-endpoint = <&hpm0_usb4>; + }; + }; + }; + }; + + acio1_mbox: mailbox@2a9108000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x02 0xa9108000 0x00 0x4000>; + interrupts = <0x00 0x00 0x34f 0x04>, <0x00 0x00 0x350 0x04>, <0x00 0x00 + 0x351 0x04>, <0x00 0x00 0x352 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + status = "okay"; + }; + + acio1: acio@2a9ac0000 { + compatible = "apple,t6050-usb4-acio"; + reg = <0x02 0xa9ac0000 0x00 0xc000>, <0x02 0xa9080000 0x00 0x26000>, <0x02 + 0xa9e44000 0x00 0x4000>, <0x02 0xa9100000 0x00 0x4000>, <0x02 + 0xa9c80000 0x00 0x4000>; + reg-names = "rc", "sram", "pcie-adapter", "cpu", "router-ap-fw"; + mboxes = <&acio1_mbox>; + resets = <&cio_reconfig0 0x01>; + power-domains = <&ps_atc1_cio + &ps_atc1_cio_pcie + &ps_atc1_cio_usb + &ps_atc1_cio_auss>; + thunderbolt-switch; + status = "okay"; + pinctrl-0 = <&acio1_lstx_pins>; + pinctrl-names = "lstx"; + lstx-gpios = <&pinctrl_aop 0x4f 0x00>; + #address-cells = <0x01>; + #size-cells = <0x01>; + ranges = <0x00 0x02 0xa9000000 0x1000000>; + nonposted-mmio; + apple,tunable-pcie-adapter = <0x1008 0x06 0x06>; + apple,tunable-router-ap-fw = <0x08 0xff2 0x482>; + + acio1_dart: iommu@a80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0xa80000 0xc000>; + interrupts = <0x00 0x00 0x666 0x04>; + power-domains = <&ps_atc1_cio>; + #iommu-cells = <0x01>; + apple,dma-range = <0x100 0x4000 0x00 0xffff0000>; + apple,bypass-sids = <0x0f>; + apple,full-error-reporting; + apple,ctc-flush; + }; + + acio1_nhi: nhi@f00000 { + compatible = "apple,t6050-usb4-nhi"; + reg = <0xf00000 0x100000>; + reg-names = "nhi"; + apple,thunderbolt-drom = [00]; + interrupts = <0x00 0x00 0x64b 0x04>, <0x00 0x00 0x64c 0x04>, <0x00 + 0x00 0x64d 0x04>, <0x00 0x00 0x64e 0x04>, <0x00 0x00 0x64f + 0x04>, <0x00 0x00 0x650 0x04>, <0x00 0x00 0x651 0x04>, <0x00 + 0x00 0x652 0x04>, <0x00 0x00 0x653 0x04>, <0x00 0x00 0x654 + 0x04>, <0x00 0x00 0x655 0x04>, <0x00 0x00 0x656 0x04>, <0x00 + 0x00 0x657 0x04>, <0x00 0x00 0x658 0x04>, <0x00 0x00 0x659 + 0x04>, <0x00 0x00 0x65a 0x04>, <0x00 0x00 0x65b 0x04>, <0x00 + 0x00 0x65c 0x04>, <0x00 0x00 0x65d 0x04>, <0x00 0x00 0x65e + 0x04>, <0x00 0x00 0x65f 0x04>, <0x00 0x00 0x660 0x04>, <0x00 + 0x00 0x661 0x04>, <0x00 0x00 0x662 0x04>, <0x00 0x00 0x668 + 0x04>; + interrupt-names = "txring0" , "txring1" , "txring2" , "txring3" , + "txring4" , "txring5" , "txring6" , "txring7" , "txring8" , + "txring9" , "txring10" , "txring11" , "rxring0" , "rxring1" + , "rxring2" , "rxring3" , "rxring4" , "rxring5" , "rxring6" + , "rxring7" , "rxring8" , "rxring9" , "rxring10" , + "rxring11" , "parity" ; + iommus = <&acio1_dart 0x00 + &acio1_dart 0x01 + &acio1_dart 0x02 + &acio1_dart 0x03 + &acio1_dart 0x04 + &acio1_dart 0x05 + &acio1_dart 0x06 + &acio1_dart 0x07 + &acio1_dart 0x08 + &acio1_dart 0x09 + &acio1_dart 0x0a + &acio1_dart 0x0b + &acio1_dart 0x10 + &acio1_dart 0x11 + &acio1_dart 0x12 + &acio1_dart 0x13 + &acio1_dart 0x14 + &acio1_dart 0x15 + &acio1_dart 0x16 + &acio1_dart 0x17 + &acio1_dart 0x18 + &acio1_dart 0x19 + &acio1_dart 0x1a + &acio1_dart 0x1b>; + }; + + ports { + #address-cells = <0x01>; + #size-cells = <0x00>; + + port@1 { + reg = <0x01>; + + endpoint { + remote-endpoint = <&hpm1_usb4>; + }; + }; + }; + }; + + acio3_mbox: mailbox@389108000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x03 0x89108000 0x00 0x4000>; + interrupts = <0x00 0x00 0x363 0x04>, <0x00 0x00 0x364 0x04>, <0x00 0x00 + 0x365 0x04>, <0x00 0x00 0x366 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + status = "okay"; + }; + + acio3: acio@389ac0000 { + compatible = "apple,t6050-usb4-acio"; + reg = <0x03 0x89ac0000 0x00 0xc000>, <0x03 0x89080000 0x00 0x26000>, <0x03 + 0x89e44000 0x00 0x4000>, <0x03 0x89100000 0x00 0x4000>, <0x03 + 0x89c80000 0x00 0x4000>; + reg-names = "rc", "sram", "pcie-adapter", "cpu", "router-ap-fw"; + mboxes = <&acio3_mbox>; + resets = <&cio_reconfig0 0x03>; + power-domains = <&ps_atc3_cio + &ps_atc3_cio_pcie + &ps_atc3_cio_usb + &ps_atc3_cio_auss>; + thunderbolt-switch; + status = "okay"; + pinctrl-0 = <&acio3_lstx_pins>; + pinctrl-names = "lstx"; + lstx-gpios = <&pinctrl_aop 0x53 0x00>; + #address-cells = <0x01>; + #size-cells = <0x01>; + ranges = <0x00 0x03 0x89000000 0x1000000>; + nonposted-mmio; + apple,tunable-pcie-adapter = <0x1008 0x06 0x06>; + apple,tunable-router-ap-fw = <0x08 0xff2 0x482>; + + acio3_dart: iommu@a80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0xa80000 0xc000>; + interrupts = <0x00 0x00 0x6a6 0x04>; + power-domains = <&ps_atc3_cio>; + #iommu-cells = <0x01>; + apple,dma-range = <0x100 0x4000 0x00 0xffff0000>; + apple,bypass-sids = <0x0f>; + apple,full-error-reporting; + apple,ctc-flush; + }; + + acio3_nhi: nhi@f00000 { + compatible = "apple,t6050-usb4-nhi"; + reg = <0xf00000 0x100000>; + reg-names = "nhi"; + apple,thunderbolt-drom = [00]; + interrupts = <0x00 0x00 0x68b 0x04>, <0x00 0x00 0x68c 0x04>, <0x00 + 0x00 0x68d 0x04>, <0x00 0x00 0x68e 0x04>, <0x00 0x00 0x68f + 0x04>, <0x00 0x00 0x690 0x04>, <0x00 0x00 0x691 0x04>, <0x00 + 0x00 0x692 0x04>, <0x00 0x00 0x693 0x04>, <0x00 0x00 0x694 + 0x04>, <0x00 0x00 0x695 0x04>, <0x00 0x00 0x696 0x04>, <0x00 + 0x00 0x697 0x04>, <0x00 0x00 0x698 0x04>, <0x00 0x00 0x699 + 0x04>, <0x00 0x00 0x69a 0x04>, <0x00 0x00 0x69b 0x04>, <0x00 + 0x00 0x69c 0x04>, <0x00 0x00 0x69d 0x04>, <0x00 0x00 0x69e + 0x04>, <0x00 0x00 0x69f 0x04>, <0x00 0x00 0x6a0 0x04>, <0x00 + 0x00 0x6a1 0x04>, <0x00 0x00 0x6a2 0x04>, <0x00 0x00 0x6a8 + 0x04>; + interrupt-names = "txring0" , "txring1" , "txring2" , "txring3" , + "txring4" , "txring5" , "txring6" , "txring7" , "txring8" , + "txring9" , "txring10" , "txring11" , "rxring0" , "rxring1" + , "rxring2" , "rxring3" , "rxring4" , "rxring5" , "rxring6" + , "rxring7" , "rxring8" , "rxring9" , "rxring10" , + "rxring11" , "parity" ; + iommus = <&acio3_dart 0x00 + &acio3_dart 0x01 + &acio3_dart 0x02 + &acio3_dart 0x03 + &acio3_dart 0x04 + &acio3_dart 0x05 + &acio3_dart 0x06 + &acio3_dart 0x07 + &acio3_dart 0x08 + &acio3_dart 0x09 + &acio3_dart 0x0a + &acio3_dart 0x0b + &acio3_dart 0x10 + &acio3_dart 0x11 + &acio3_dart 0x12 + &acio3_dart 0x13 + &acio3_dart 0x14 + &acio3_dart 0x15 + &acio3_dart 0x16 + &acio3_dart 0x17 + &acio3_dart 0x18 + &acio3_dart 0x19 + &acio3_dart 0x1a + &acio3_dart 0x1b>; + }; + + ports { + #address-cells = <0x01>; + #size-cells = <0x00>; + + port@1 { + reg = <0x01>; + + endpoint { + remote-endpoint = <&hpm3_usb4>; + }; + }; + }; + }; + + aux@29c260000 { + compatible = "apple,t6050-dptx-aux", "apple,dptx-aux"; + reg = <0x02 0x9c260000 0x00 0x4000 0x02 0x9c260000 0x00 0x4000>; + power-domains = <&{/soc/power-management@280900000/power-controller@108}>; + status = "disabled"; + }; + + aux@29c264000 { + compatible = "apple,t6050-dptx-aux", "apple,dptx-aux"; + reg = <0x02 0x9c264000 0x00 0x4000 0x02 0x9c264000 0x00 0x4000>; + power-domains = <&{/soc/power-management@280900000/power-controller@110}>; + status = "disabled"; + }; + + iommu@48a300000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x04 0x8a300000 0x00 0xc000 0x04 0x8a314000 0x00 0x4000>; + interrupts = <0x00 0x00 0x3de 0x04>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + dcp-expert@48a3ac058 { + compatible = "apple,t6050-dcp-expert", "apple,dcp-expert"; + reg = <0x04 0x8a3ac058 0x00 0x04 0x04 0x8a374000 0x00 0x40 0x04 0x8a370000 + 0x00 0x40 0x04 0x8a388000 0x00 0x40 0x04 0x8a38c000 0x00 0x40 0x04 + 0x8a394000 0x00 0x40 0x04 0x8a398000 0x00 0x40 0x04 0x8a39c000 0x00 + 0x40 0x04 0x8a3a0000 0x00 0x40 0x04 0x88208000 0x00 0x40 0x04 + 0x8820c000 0x00 0x40 0x04 0x88210000 0x00 0x40 0x04 0x88214000 0x00 + 0x40>; + interrupts = <0x00 0x00 0x3d9 0x04>; + status = "disabled"; + }; + + mailbox@48ae08000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x04 0x8ae08000 0x00 0x4000>; + interrupts = <0x00 0x00 0x413 0x04 0x00 0x00 0x414 0x04 0x00 0x00 0x415 0x04 + 0x00 0x00 0x416 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + status = "disabled"; + }; + + iommu@48a340000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x04 0x8a340000 0x00 0x20000>; + interrupts = <0x00 0x00 0x3de 0x04>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + iommu@48a180000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x04 0x8a180000 0x00 0x20000>; + interrupts = <0x00 0x00 0x3f5 0x04>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + dma-controller@48a140000 { + compatible = "apple,t6050-admac", "apple,t8140-admac"; + reg = <0x04 0x8a140000 0x00 0x24000>; + dma-channels = <0x01>; + interrupts-extended = <&aic 0x00 0x00 + 0x3f4 0x04 0x00 0x00 0x00>; + iommus = <&{/soc/iommu@48a180000} 0x1e>; + #dma-cells = <0x01>; + status = "disabled"; + }; + + dma-control@48a2f4000 { + compatible = "apple,t6050-admac-control", "apple,admac-control"; + reg = <0x04 0x8a2f4000 0x00 0x4000 0x04 0x8a1a0000 0x00 0x4000>; + interrupts = <0x00 0x00 0x3f6 0x04>; + status = "disabled"; + }; + + dcp-expert@2b23ac058 { + compatible = "apple,t6050-dcp-expert", "apple,dcp-expert"; + reg = <0x02 0xb23ac058 0x00 0x04 0x02 0xb2374000 0x00 0x40 0x02 0xb2370000 + 0x00 0x40>; + interrupts = <0x00 0x00 0x429 0x04>; + status = "disabled"; + }; + + dma-control@2b22f4000 { + compatible = "apple,t6050-admac-control", "apple,admac-control"; + reg = <0x02 0xb22f4000 0x00 0x4000 0x02 0xb21a0000 0x00 0x4000>; + interrupts = <0x00 0x00 0x446 0x04>; + status = "disabled"; + }; + + dcp-expert@3923ac058 { + compatible = "apple,t6050-dcp-expert", "apple,dcp-expert"; + reg = <0x03 0x923ac058 0x00 0x04 0x03 0x92374000 0x00 0x40 0x03 0x92370000 + 0x00 0x40>; + interrupts = <0x00 0x00 0x471 0x04>; + status = "disabled"; + }; + + dma-control@3922f4000 { + compatible = "apple,t6050-admac-control", "apple,admac-control"; + reg = <0x03 0x922f4000 0x00 0x4000 0x03 0x921a0000 0x00 0x4000>; + interrupts = <0x00 0x00 0x48e 0x04>; + status = "disabled"; + }; + + dcp-expert@3023ac058 { + compatible = "apple,t6050-dcp-expert", "apple,dcp-expert"; + reg = <0x03 0x23ac058 0x00 0x04 0x03 0x2374000 0x00 0x40 0x03 0x2370000 0x00 + 0x40>; + interrupts = <0x00 0x00 0x4b9 0x04>; + status = "disabled"; + }; + + mailbox@302e08000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x03 0x2e08000 0x00 0x4000>; + interrupts = <0x00 0x00 0x4f3 0x04 0x00 0x00 0x4f4 0x04 0x00 0x00 0x4f5 0x04 + 0x00 0x00 0x4f6 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + status = "disabled"; + }; + + dcp@302e00000 { + compatible = "apple,t6050-dcpext", "apple,dcpext"; + reg = <0x03 0x2e00000 0x00 0x4000 0x03 0x00 0x00 0x4000000 0x03 0x2240000 + 0x00 0x10000 0x03 0x23ac000 0x00 0x4000 0x03 0x2800000 0x00 0x800000 + 0x02 0x86700000 0x00 0x114000 0x03 0x2850000 0x00 0x4000>; + reg-names = "coproc" , "disp-0" , "disp-1" , "disp-2" , "disp-3" , "disp-4" + , "iop-vbar" ; + mboxes = <&{/soc/mailbox@302e08000}>; + mbox-names = "mbox"; + iommus = <&{/soc/iommu@302340000} 0x17>; + status = "disabled"; + + piodma { + iommus = <&{/soc/iommu@302300000} 0x10>; + }; + }; + + iommu@302340000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x03 0x2340000 0x00 0x20000>; + interrupts = <0x00 0x00 0x4be 0x04>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + iommu@302300000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x03 0x2300000 0x00 0xc000 0x03 0x2314000 0x00 0x4000>; + interrupts = <0x00 0x00 0x4be 0x04>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + iommu@302180000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x03 0x2180000 0x00 0x20000>; + interrupts = <0x00 0x00 0x4d5 0x04>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + dma-controller@302140000 { + compatible = "apple,t6050-admac", "apple,t8140-admac"; + reg = <0x03 0x2140000 0x00 0x24000>; + dma-channels = <0x01>; + interrupts-extended = <&aic 0x00 0x00 + 0x4d4 0x04 0x00 0x00 0x00>; + iommus = <&{/soc/iommu@302180000} 0x1e>; + #dma-cells = <0x01>; + status = "disabled"; + }; + + dma-control@3022f4000 { + compatible = "apple,t6050-admac-control", "apple,admac-control"; + reg = <0x03 0x22f4000 0x00 0x4000 0x03 0x21a0000 0x00 0x4000>; + interrupts = <0x00 0x00 0x4d6 0x04>; + status = "disabled"; + }; + + dcp-expert@3063ac058 { + compatible = "apple,t6050-dcp-expert", "apple,dcp-expert"; + reg = <0x03 0x63ac058 0x00 0x04 0x03 0x6374000 0x00 0x40 0x03 0x6370000 0x00 + 0x40>; + interrupts = <0x00 0x00 0x501 0x04>; + status = "disabled"; + }; + + mailbox@306e08000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x03 0x6e08000 0x00 0x4000>; + interrupts = <0x00 0x00 0x53b 0x04 0x00 0x00 0x53c 0x04 0x00 0x00 0x53d 0x04 + 0x00 0x00 0x53e 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + status = "disabled"; + }; + + dcp@306e00000 { + compatible = "apple,t6050-dcpext", "apple,dcpext"; + reg = <0x03 0x6e00000 0x00 0x4000 0x03 0x4000000 0x00 0x4000000 0x03 + 0x6240000 0x00 0x10000 0x03 0x63ac000 0x00 0x4000 0x03 0x6800000 + 0x00 0x800000 0x02 0x86700000 0x00 0x114000 0x03 0x6850000 0x00 + 0x4000>; + reg-names = "coproc" , "disp-0" , "disp-1" , "disp-2" , "disp-3" , "disp-4" + , "iop-vbar" ; + mboxes = <&{/soc/mailbox@306e08000}>; + mbox-names = "mbox"; + iommus = <&{/soc/iommu@306340000} 0x17>; + status = "disabled"; + + piodma { + iommus = <&{/soc/iommu@306300000} 0x10>; + }; + }; + + iommu@306340000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x03 0x6340000 0x00 0x20000>; + interrupts = <0x00 0x00 0x506 0x04>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + iommu@306300000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x03 0x6300000 0x00 0xc000 0x03 0x6314000 0x00 0x4000>; + interrupts = <0x00 0x00 0x506 0x04>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + iommu@306180000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x03 0x6180000 0x00 0x20000>; + interrupts = <0x00 0x00 0x51d 0x04>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + dma-controller@306140000 { + compatible = "apple,t6050-admac", "apple,t8140-admac"; + reg = <0x03 0x6140000 0x00 0x24000>; + dma-channels = <0x01>; + interrupts-extended = <&aic 0x00 0x00 + 0x51c 0x04 0x00 0x00 0x00>; + iommus = <&{/soc/iommu@306180000} 0x1e>; + #dma-cells = <0x01>; + status = "disabled"; + }; + + dma-control@3062f4000 { + compatible = "apple,t6050-admac-control", "apple,admac-control"; + reg = <0x03 0x62f4000 0x00 0x4000 0x03 0x61a0000 0x00 0x4000>; + interrupts = <0x00 0x00 0x51e 0x04>; + status = "disabled"; + }; + + iommu@2a4000000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x02 0xa4000000 0x00 0x20000>; + interrupts = <0x00 0x00 0x57e 0x04>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + iommu@2ac000000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x02 0xac000000 0x00 0x20000>; + interrupts = <0x00 0x00 0x59e 0x04>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + iommu@384000000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x03 0x84000000 0x00 0x20000>; + interrupts = <0x00 0x00 0x5be 0x04>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + iommu@395d60000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x03 0x95d60000 0x00 0xc000>; + interrupts = <0x00 0x00 0x927 0x04>; + #iommu-cells = <0x01>; + status = "disabled"; + power-domains = <&ps_auss>; + }; + + usb@3953f0000 { + compatible = "apple,t6050-usb-auss"; + reg = <0x03 0x953f0000 0x00 0x4600 0x03 0x95800000 0x00 0x4000 0x03 + 0x95803c00 0x00 0x4000 0x03 0x95804000 0x00 0x4000 0x03 0x94000000 + 0x00 0x8000 0x03 0x95d80000 0x00 0x4000 0x03 0x95d84000 0x00 0x4000 + 0x03 0x95e40000 0x00 0x4000 0x03 0x95e3c000 0x00 0x4000 0x03 + 0x95d98000 0x00 0x4000>; + interrupts = <0x00 0x00 0x923 0x04 0x00 0x00 0x924 0x04 0x00 0x00 0x925 0x04 + 0x00 0x00 0x926 0x04>; + iommus = <&{/soc/iommu@395d60000} 0x00>; + power-domains = <&ps_auss>; + status = "disabled"; + }; + + iommu@38c000000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x03 0x8c000000 0x00 0x20000>; + interrupts = <0x00 0x00 0x5de 0x04>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + pwm@505040000 { + compatible = "apple,t6050-fpwm", "apple,s5l-fpwm"; + reg = <0x05 0x5040000 0x00 0x4000>; + clocks = <&clkref>; + power-domains = <&{/soc/power-management@280900000/power-controller@2a8}>; + #pwm-cells = <0x02>; + status = "disabled"; + }; + + pwm@505044000 { + compatible = "apple,t6050-fpwm", "apple,s5l-fpwm"; + reg = <0x05 0x5044000 0x00 0x4000>; + clocks = <&clkref>; + power-domains = <&{/soc/power-management@280900000/power-controller@2b0}>; + #pwm-cells = <0x02>; + status = "disabled"; + }; + + pwm@505048000 { + compatible = "apple,t6050-fpwm", "apple,s5l-fpwm"; + reg = <0x05 0x5048000 0x00 0x4000>; + clocks = <&clkref>; + power-domains = <&{/soc/power-management@280900000/power-controller@2b8}>; + #pwm-cells = <0x02>; + status = "disabled"; + }; + + mailbox@294608000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x02 0x94608000 0x00 0x4000>; + interrupts = <0x00 0x00 0x2a4 0x04 0x00 0x00 0x2a5 0x04 0x00 0x00 0x2a6 0x04 + 0x00 0x00 0x2a7 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + }; + + /* Keep disabled: activating this MTP DART failed board qualification. */ + iommu@294800000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x02 0x94800000 0x00 0xc000>; + interrupts = <0x00 0x00 0x293 0x04>; + #iommu-cells = <0x01>; + apple,dma-range = <0x100 0x4000 0x00 0xffff0000>; + status = "disabled"; + }; + + mtp@294600000 { + compatible = "apple,t6050-mtp" , "apple,t6050-rtk-helper-asc4" , "apple,mtp" + , "apple,rtk-helper-asc4" ; + reg = <0x02 0x94600000 0x00 0x4000 0x02 0x94c00000 0x00 0xc4000>; + reg-names = "asc", "sram"; + mboxes = <&{/soc/mailbox@294608000}>; + iommus = <&{/soc/iommu@294800000} 0x00>; + #helper-cells = <0x00>; + }; + + fifo@294b14000 { + compatible = "apple,t6050-dockchannel", "apple,dockchannel"; + reg = <0x02 0x94b14000 0x00 0x1000>; + reg-names = "irq"; + interrupts = <0x00 0x00 0x294 0x04>; + ranges = <0x00 0x02 0x94b28000 0x10000>; + nonposted-mmio; + #address-cells = <0x01>; + #size-cells = <0x01>; + interrupt-controller; + #interrupt-cells = <0x02>; + }; + + sep@502600000 { + compatible = "apple,t6050-sep", "apple,sep"; + reg = <0x05 0x2600000 0x00 0x88000 0x05 0x2050000 0x00 0x4000>; + mboxes = <&{/soc/mailbox@502608000}>; + mbox-names = "mbox"; + iommus = <&{/soc/iommu@500b80000} 0x00>; + power-domains = <&{/soc/power-management@280900000/power-controller@298}>; + clocks = <&{/soc/clock-controller@280600000} 0x1bf>; + status = "disabled"; + }; + + mailbox@502608000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x05 0x2608000 0x00 0x4000>; + interrupts = <0x00 0x00 0x215 0x04 0x00 0x00 0x216 0x04 0x00 0x00 0x217 0x04 + 0x00 0x00 0x218 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + status = "disabled"; + }; + + iommu@500b80000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x05 0xb80000 0x00 0x20000>; + interrupts = <0x00 0x00 0x21f 0x04>; + #iommu-cells = <0x01>; + apple,dma-range = <0x100 0x4000 0x00 0xffff0000>; + apple,dma-offset = <0x00 0x00>; + status = "disabled"; + }; + + clock-controller@280600000 { + compatible = "apple,t6050-pmgr-clocks", "apple,pmgr-clocks"; + reg = <0x02 0x80600000 0x00 0x1fc000 0x02 0x80900000 0x00 0x58000 0x02 + 0x80000000 0x00 0x80000 0x02 0x80210000 0x00 0x8000 0x02 0x80200000 + 0x00 0x4000 0x02 0x806f0000 0x00 0x4000 0x02 0x84000000 0x00 0x8000 + 0x02 0x84240000 0x00 0x40000 0x02 0x86000000 0x00 0x1000000 0x02 + 0x88300000 0x00 0x84000 0x02 0x88200000 0x00 0x80000 0x02 0x88f00000 + 0x00 0x18000 0x02 0x88000000 0x00 0x24000 0x02 0x88e00000 0x00 + 0xa8000 0x02 0x88360000 0x00 0x4000 0x05 0x9878000 0x00 0x4000 0x02 + 0x10e20000 0x00 0x12e8 0x02 0x10e40000 0x00 0xc020 0x02 0x10e50000 + 0x00 0x9048 0x02 0x10e70000 0x00 0xffe8 0x02 0x10050000 0x00 0x9018 + 0x02 0x10150000 0x00 0x9018 0x02 0x10250000 0x00 0x9018 0x02 + 0x10350000 0x00 0x9018 0x02 0x10450000 0x00 0x9018 0x02 0x10550000 + 0x00 0x9018 0x02 0x11e20000 0x00 0x12e8 0x02 0x11e40000 0x00 0xc020 + 0x02 0x11e50000 0x00 0x9048 0x02 0x11e70000 0x00 0xffe8 0x02 + 0x11050000 0x00 0x9018 0x02 0x11150000 0x00 0x9018 0x02 0x11250000 + 0x00 0x9018 0x02 0x11350000 0x00 0x9018 0x02 0x11450000 0x00 0x9018 + 0x02 0x11550000 0x00 0x9018 0x02 0x12e20000 0x00 0x12e8 0x02 + 0x12e40000 0x00 0xc020 0x02 0x12e50000 0x00 0x9048 0x02 0x12e70000 + 0x00 0xffe8 0x02 0x12050000 0x00 0x9018 0x02 0x12150000 0x00 0x9018 + 0x02 0x12250000 0x00 0x9018 0x02 0x12350000 0x00 0x9018 0x02 + 0x12450000 0x00 0x9018 0x02 0x12550000 0x00 0x9018 0x23 0x80600000 + 0x00 0x1e8000 0x23 0x80000000 0x00 0x80000 0x23 0x84000000 0x00 + 0x8000 0x23 0x88300000 0x00 0x84000 0x23 0x88200000 0x00 0x80000 + 0x23 0xe80000 0x00 0x30000 0x23 0xec0000 0x00 0x8000 0x23 0xed0000 + 0x00 0x8000 0x23 0xee0000 0x00 0x8000 0x23 0xef0000 0x00 0x8000 0x23 + 0xf00000 0x00 0x8000 0x23 0xe30000 0x00 0x8000 0x23 0xe70000 0x00 + 0x8000 0x23 0x88000000 0x00 0x8000>; + #clock-cells = <0x01>; + apple,pmgr = <&pmgr0>; + status = "disabled"; + }; + + spmi@28a054000 { + compatible = "apple,t6050-spmi", "apple,t8142-spmi"; + reg = <0x02 0x8a054000 0x00 0x4000 0x02 0x8a044000 0x00 0x4000 0x02 + 0x8a040000 0x00 0x4000>; + interrupts = <0x00 0x00 0x2db 0x04>; + #address-cells = <0x02>; + #size-cells = <0x00>; + status = "disabled"; + }; + + spmi@28a114000 { + compatible = "apple,t6050-spmi", "apple,t8142-spmi"; + reg = <0x02 0x8a114000 0x00 0x4000 0x02 0x8a104000 0x00 0x4000 0x02 + 0x8a100000 0x00 0x4000>; + interrupts = <0x00 0x00 0x2ea 0x04>; + #address-cells = <0x02>; + #size-cells = <0x00>; + status = "disabled"; + }; + + i2c@505024000 { + compatible = "apple,t6050-i2c", "apple,t8103-i2c"; + reg = <0x05 0x5024000 0x00 0x4000>; + interrupts = <0x00 0x00 0x564 0x04>; + power-domains = <&{/soc/power-management@280900000/power-controller@2e8}>; + clocks = <&{/soc/clock-controller@280600000} 0x04>; + #address-cells = <0x01>; + #size-cells = <0x00>; + status = "disabled"; + }; + + i2c@505010000 { + compatible = "apple,t6050-i2c", "apple,t8103-i2c"; + reg = <0x05 0x5010000 0x00 0x4000>; + interrupts = <0x00 0x00 0x55f 0x04>; + power-domains = <&{/soc/power-management@280900000/power-controller@2c0}>; + clocks = <&{/soc/clock-controller@280600000} 0x04>; + #address-cells = <0x01>; + #size-cells = <0x00>; + status = "disabled"; + }; + + i2c@505020000 { + compatible = "apple,t6050-i2c", "apple,t8103-i2c"; + reg = <0x05 0x5020000 0x00 0x4000>; + interrupts = <0x00 0x00 0x563 0x04>; + power-domains = <&{/soc/power-management@280900000/power-controller@2e0}>; + clocks = <&{/soc/clock-controller@280600000} 0x04>; + #address-cells = <0x01>; + #size-cells = <0x00>; + status = "disabled"; + }; + + i2c@505028000 { + compatible = "apple,t6050-i2c", "apple,t8103-i2c"; + reg = <0x05 0x5028000 0x00 0x4000>; + interrupts = <0x00 0x00 0x565 0x04>; + power-domains = <&{/soc/power-management@280900000/power-controller@2f0}>; + clocks = <&{/soc/clock-controller@280600000} 0x04>; + #address-cells = <0x01>; + #size-cells = <0x00>; + status = "disabled"; + }; + + i2c@505030000 { + compatible = "apple,t6050-i2c", "apple,t8103-i2c"; + reg = <0x05 0x5030000 0x00 0x4000>; + interrupts = <0x00 0x00 0x567 0x04>; + power-domains = <&{/soc/power-management@280900000/power-controller@300}>; + clocks = <&{/soc/clock-controller@280600000} 0x04>; + #address-cells = <0x01>; + #size-cells = <0x00>; + status = "disabled"; + }; + + dma-controller@410030000 { + compatible = "apple,t6050-pcie-piodma", "apple,pcie-piodma"; + reg = <0x04 0x10030000 0x00 0x4000 0x04 0x10034000 0x00 0x4000 0x04 + 0x10038000 0x00 0x4000>; + interrupts = <0x00 0x00 0x5f5 0x04>; + iommus = <&dart_apcie0 0x11>; + status = "disabled"; + }; + + dma-controller@411030000 { + compatible = "apple,t6050-pcie-piodma", "apple,pcie-piodma"; + reg = <0x04 0x11030000 0x00 0x4000 0x04 0x11034000 0x00 0x4000 0x04 + 0x11038000 0x00 0x4000>; + interrupts = <0x00 0x00 0x5fd 0x04>; + iommus = <&dart_apcie1 0x11>; + status = "disabled"; + }; + + dma-controller@2a4068000 { + compatible = "apple,t6050-pciec-piodma", "apple,pciec-piodma"; + reg = <0x02 0xa4068000 0x00 0x4000 0x02 0xa406c000 0x00 0x4000 0x02 + 0xa4070000 0x00 0x4000 0x02 0xa403c000 0x00 0x4000>; + interrupts = <0x00 0x00 0x57f 0x04>; + iommus = <&{/soc/iommu@2a4000000} 0xfe>; + status = "disabled"; + }; + + dma-controller@2ac068000 { + compatible = "apple,t6050-pciec-piodma", "apple,pciec-piodma"; + reg = <0x02 0xac068000 0x00 0x4000 0x02 0xac06c000 0x00 0x4000 0x02 + 0xac070000 0x00 0x4000 0x02 0xac03c000 0x00 0x4000>; + interrupts = <0x00 0x00 0x59f 0x04>; + iommus = <&{/soc/iommu@2ac000000} 0xfe>; + status = "disabled"; + }; + + dma-controller@384068000 { + compatible = "apple,t6050-pciec-piodma", "apple,pciec-piodma"; + reg = <0x03 0x84068000 0x00 0x4000 0x03 0x8406c000 0x00 0x4000 0x03 + 0x84070000 0x00 0x4000 0x03 0x8403c000 0x00 0x4000>; + interrupts = <0x00 0x00 0x5bf 0x04>; + iommus = <&{/soc/iommu@384000000} 0xfe>; + status = "disabled"; + }; + + dpin@2a1e50000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x02 0xa1e50000 0x00 0x4000>; + interrupts = <0x00 0x00 0x643 0x04>; + status = "disabled"; + }; + + dpin@2a1e58000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x02 0xa1e58000 0x00 0x4000>; + interrupts = <0x00 0x00 0x644 0x04>; + status = "disabled"; + }; + + dpin@2a1e68000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x02 0xa1e68000 0x00 0x4000>; + interrupts = <0x00 0x00 0x649 0x04>; + status = "disabled"; + }; + + dpin@2a1e70000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x02 0xa1e70000 0x00 0x4000>; + interrupts = <0x00 0x00 0x64a 0x04>; + status = "disabled"; + }; + + dpin@2a9e50000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x02 0xa9e50000 0x00 0x4000>; + interrupts = <0x00 0x00 0x663 0x04>; + status = "disabled"; + }; + + dpin@2a9e58000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x02 0xa9e58000 0x00 0x4000>; + interrupts = <0x00 0x00 0x664 0x04>; + status = "disabled"; + }; + + dpin@2a9e68000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x02 0xa9e68000 0x00 0x4000>; + interrupts = <0x00 0x00 0x669 0x04>; + status = "disabled"; + }; + + dpin@2a9e70000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x02 0xa9e70000 0x00 0x4000>; + interrupts = <0x00 0x00 0x66a 0x04>; + status = "disabled"; + }; + + dpin@381e50000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x03 0x81e50000 0x00 0x4000>; + interrupts = <0x00 0x00 0x683 0x04>; + status = "disabled"; + }; + + dpin@381e58000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x03 0x81e58000 0x00 0x4000>; + interrupts = <0x00 0x00 0x684 0x04>; + status = "disabled"; + }; + + dpin@381e68000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x03 0x81e68000 0x00 0x4000>; + interrupts = <0x00 0x00 0x689 0x04>; + status = "disabled"; + }; + + dpin@381e70000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x03 0x81e70000 0x00 0x4000>; + interrupts = <0x00 0x00 0x68a 0x04>; + status = "disabled"; + }; + + aic-timebase@280580000 { + compatible = "apple,t6050-aic-timebase", "apple,aic-timebase"; + reg = <0x02 0x80580000 0x00 0x1000>; + status = "disabled"; + }; + + error-handler@2220000000 { + compatible = "apple,t6050-error-handler", "apple,soc-error-handler"; + reg = <0x22 0x20000000 0x00 0x240000 0x22 0x20270000 0x00 0x1d0000 0x22 + 0x20600000 0x00 0x40000 0x22 0x20670000 0x00 0x1d0000 0x22 + 0x22000000 0x00 0x240000 0x22 0x22270000 0x00 0x1d0000 0x22 + 0x22600000 0x00 0x40000 0x22 0x22670000 0x00 0x1d0000 0x02 + 0x80000000 0x00 0x80000 0x02 0x80650000 0x00 0x4000 0x02 0x806e0000 + 0x00 0xc000 0x02 0x80210000 0x00 0x4000 0x02 0x88374000 0x00 0x4000 + 0x02 0x86000000 0x00 0x1000000 0x02 0x84250000 0x00 0x4000 0x22 + 0x63000000 0x00 0x38000 0x22 0x64000000 0x00 0x38000 0x22 0x65000000 + 0x00 0x38000 0x02 0x63000000 0x00 0x44000 0x02 0x64000000 0x00 + 0x30000 0x02 0x65000000 0x00 0x3c000 0x02 0x66000000 0x00 0x34000 + 0x02 0x67000000 0x00 0x38000 0x02 0x68000000 0x00 0x38000 0x02 + 0x69000000 0x00 0x30000 0x22 0x5a100000 0x00 0x24000 0x22 0x5b100000 + 0x00 0x24000 0x22 0x5c100000 0x00 0x24000 0x22 0x5d100000 0x00 + 0x24000 0x02 0x4f000000 0x00 0x30000 0x02 0x50000000 0x00 0x30000 + 0x02 0x51000000 0x00 0x30000 0x02 0x52000000 0x00 0x24000 0x02 + 0x62000000 0x00 0x1c000 0x22 0x62000000 0x00 0x1c000 0x22 0x5a000000 + 0x00 0x2c000 0x22 0x5b000000 0x00 0x2c000 0x22 0x5c000000 0x00 + 0x2c000 0x22 0x5d000000 0x00 0x2c000 0x22 0x5a200000 0x00 0x1c000 + 0x22 0x5a300000 0x00 0x1c000 0x22 0x5b200000 0x00 0x1c000 0x22 + 0x5b300000 0x00 0x1c000 0x02 0x6a000000 0x00 0x1c000 0x02 0x6b000000 + 0x00 0x1c000 0x02 0x6c000000 0x00 0x1c000 0x02 0x6d000000 0x00 + 0x1c000 0x22 0x66000000 0x00 0x1c000 0x22 0x67000000 0x00 0x1c000 + 0x22 0x68000000 0x00 0x1c000 0x22 0x69000000 0x00 0x1c000 0x22 + 0x75000000 0x00 0x10000 0x22 0x75010000 0x00 0x10000 0x22 0x75020000 + 0x00 0x10000 0x22 0x75030000 0x00 0x10000 0x22 0x75400000 0x00 + 0x10000 0x22 0x75410000 0x00 0x10000 0x22 0x75420000 0x00 0x10000 + 0x22 0x75430000 0x00 0x10000 0x22 0x75800000 0x00 0x10000 0x22 + 0x75810000 0x00 0x10000 0x22 0x75820000 0x00 0x10000 0x22 0x75830000 + 0x00 0x10000 0x22 0x75c00000 0x00 0x10000 0x22 0x75c10000 0x00 + 0x10000 0x22 0x75c20000 0x00 0x10000 0x22 0x75c30000 0x00 0x10000 + 0x22 0x76000000 0x00 0x10000 0x22 0x76010000 0x00 0x10000 0x22 + 0x76020000 0x00 0x10000 0x22 0x76030000 0x00 0x10000 0x22 0x76400000 + 0x00 0x10000 0x22 0x76410000 0x00 0x10000 0x22 0x76420000 0x00 + 0x10000 0x22 0x76430000 0x00 0x10000 0x22 0x76800000 0x00 0x10000 + 0x22 0x76810000 0x00 0x10000 0x22 0x76820000 0x00 0x10000 0x22 + 0x76830000 0x00 0x10000 0x22 0x76c00000 0x00 0x10000 0x22 0x76c10000 + 0x00 0x10000 0x22 0x76c20000 0x00 0x10000 0x22 0x76c30000 0x00 + 0x10000 0x22 0x77000000 0x00 0x10000 0x22 0x77010000 0x00 0x10000 + 0x22 0x77020000 0x00 0x10000 0x22 0x77030000 0x00 0x10000 0x22 + 0x77040000 0x00 0x10000 0x22 0x77050000 0x00 0x10000 0x22 0x77400000 + 0x00 0x10000 0x22 0x77410000 0x00 0x10000 0x22 0x77420000 0x00 + 0x10000 0x22 0x77430000 0x00 0x10000 0x22 0x77440000 0x00 0x10000 + 0x22 0x77450000 0x00 0x10000 0x22 0x77800000 0x00 0x10000 0x22 + 0x77810000 0x00 0x10000 0x22 0x77820000 0x00 0x10000 0x22 0x77830000 + 0x00 0x10000 0x22 0x77840000 0x00 0x10000 0x22 0x77850000 0x00 + 0x10000 0x22 0x77c00000 0x00 0x10000 0x22 0x77c10000 0x00 0x10000 + 0x22 0x77c20000 0x00 0x10000 0x22 0x77c30000 0x00 0x10000 0x22 + 0x77c40000 0x00 0x10000 0x22 0x77c50000 0x00 0x10000 0x02 0x73000000 + 0x00 0x10000 0x02 0x73010000 0x00 0x10000 0x02 0x73020000 0x00 + 0x10000 0x02 0x73030000 0x00 0x10000 0x02 0x73040000 0x00 0x10000 + 0x02 0x73050000 0x00 0x10000 0x02 0x73060000 0x00 0x10000 0x02 + 0x73400000 0x00 0x10000 0x02 0x73410000 0x00 0x10000 0x02 0x73420000 + 0x00 0x10000 0x02 0x73430000 0x00 0x10000 0x02 0x73440000 0x00 + 0x10000 0x02 0x73450000 0x00 0x10000 0x02 0x73460000 0x00 0x10000 + 0x02 0x73800000 0x00 0x10000 0x02 0x73810000 0x00 0x10000 0x02 + 0x73820000 0x00 0x10000 0x02 0x73830000 0x00 0x10000 0x02 0x73840000 + 0x00 0x10000 0x02 0x73850000 0x00 0x10000 0x02 0x73860000 0x00 + 0x10000 0x02 0x73c00000 0x00 0x10000 0x02 0x73c10000 0x00 0x10000 + 0x02 0x73c20000 0x00 0x10000 0x02 0x73c30000 0x00 0x10000 0x02 + 0x73c40000 0x00 0x10000 0x02 0x73c50000 0x00 0x10000 0x02 0x73c60000 + 0x00 0x10000 0x22 0x75100000 0x00 0x10000 0x22 0x75110000 0x00 + 0x10000 0x22 0x75120000 0x00 0x10000 0x22 0x75130000 0x00 0x10000 + 0x22 0x75500000 0x00 0x10000 0x22 0x75510000 0x00 0x10000 0x22 + 0x75520000 0x00 0x10000 0x22 0x75530000 0x00 0x10000 0x22 0x75900000 + 0x00 0x10000 0x22 0x75910000 0x00 0x10000 0x22 0x75920000 0x00 + 0x10000 0x22 0x75930000 0x00 0x10000 0x22 0x75d00000 0x00 0x10000 + 0x22 0x75d10000 0x00 0x10000 0x22 0x75d20000 0x00 0x10000 0x22 + 0x75d30000 0x00 0x10000 0x22 0x76100000 0x00 0x10000 0x22 0x76110000 + 0x00 0x10000 0x22 0x76120000 0x00 0x10000 0x22 0x76130000 0x00 + 0x10000 0x22 0x76500000 0x00 0x10000 0x22 0x76510000 0x00 0x10000 + 0x22 0x76520000 0x00 0x10000 0x22 0x76530000 0x00 0x10000 0x22 + 0x76900000 0x00 0x10000 0x22 0x76910000 0x00 0x10000 0x22 0x76920000 + 0x00 0x10000 0x22 0x76930000 0x00 0x10000 0x22 0x76d00000 0x00 + 0x10000 0x22 0x76d10000 0x00 0x10000 0x22 0x76d20000 0x00 0x10000 + 0x22 0x76d30000 0x00 0x10000 0x02 0x58000000 0x00 0x10000 0x02 + 0x58010000 0x00 0x10000 0x02 0x58020000 0x00 0x10000 0x02 0x58030000 + 0x00 0x10000 0x02 0x58040000 0x00 0x10000 0x02 0x58400000 0x00 + 0x10000 0x02 0x58410000 0x00 0x10000 0x02 0x58420000 0x00 0x10000 + 0x02 0x58430000 0x00 0x10000 0x02 0x58440000 0x00 0x10000 0x02 + 0x58800000 0x00 0x10000 0x02 0x58810000 0x00 0x10000 0x02 0x58820000 + 0x00 0x10000 0x02 0x58830000 0x00 0x10000 0x02 0x58840000 0x00 + 0x10000 0x02 0x58850000 0x00 0x10000 0x05 0xd00000 0x00 0x40000 0x02 + 0x80078000 0x00 0x4000 0x02 0x806e4000 0x00 0x4000 0x02 0x806e8000 + 0x00 0x4000 0x02 0x74004000 0x00 0x4000 0x22 0x7b004000 0x00 0x4000 + 0x02 0x88000400 0x00 0x400 0x23 0x88000400 0x00 0x400 0x02 + 0x8c801000 0x00 0x400 0x02 0x84398000 0x00 0x4000 0x02 0x8620c020 + 0x00 0x18 0x02 0x8620c008 0x00 0x18 0x05 0x8000200 0x00 0x24 0x05 + 0x84000200 0x00 0x24 0x04 0x1b000200 0x00 0x24 0x02 0xa0000200 0x00 + 0x24 0x02 0xa8000200 0x00 0x24 0x03 0x80000200 0x00 0x24 0x03 + 0x88000200 0x00 0x24 0x03 0x94000200 0x00 0x24 0x23 0x8000200 0x00 + 0x24 0x23 0x1000200 0x00 0x24 0x05 0x80000200 0x00 0x24 0x22 + 0x80000200 0x00 0x24 0x04 0x16000200 0x00 0x24 0x04 0x86000200 0x00 + 0x40 0x23 0xa000200 0x00 0x24 0x02 0x97000200 0x00 0x24 0x23 + 0x8c000200 0x00 0x24 0x04 0x8c000200 0x00 0x24 0x05 0x4000200 0x00 + 0x24>; + interrupts = <0x00 0x00 0xa95 0x04 0x00 0x00 0xa96 0x04 0x00 0x00 0xa97 0x04 + 0x00 0x00 0xa98 0x04 0x00 0x00 0xa99 0x04 0x00 0x00 0xa9a 0x04 0x00 + 0x00 0xa9b 0x04 0x00 0x00 0xa9c 0x04 0x00 0x00 0x189 0x04 0x00 0x00 + 0xc3 0x04 0x00 0x00 0xc4 0x04 0x00 0x00 0xc5 0x04 0x00 0x00 0xc6 + 0x04 0x00 0x00 0xc7 0x04 0x00 0x00 0xc8 0x04 0x00 0x00 0xc9 0x04 + 0x00 0x00 0xca 0x04 0x00 0x00 0xcb 0x04 0x00 0x00 0xcc 0x04 0x00 + 0x00 0xa0c 0x04 0x00 0x00 0xa0d 0x04 0x00 0x00 0xa0e 0x04 0x00 0x00 + 0xa0f 0x04 0x00 0x00 0x99 0x04 0x00 0x00 0x9a 0x04 0x00 0x00 0x9b + 0x04 0x00 0x00 0x9c 0x04 0x00 0x00 0x9d 0x04 0x00 0x00 0x9e 0x04 + 0x00 0x00 0xa14 0x04 0x00 0x00 0xa15 0x04 0x00 0x00 0xa16 0x04 0x00 + 0x00 0xa17 0x04 0x00 0x00 0xa1c 0x04 0x00 0x00 0xa1d 0x04 0x00 0x00 + 0xa1e 0x04 0x00 0x00 0xa1f 0x04 0x00 0x00 0xbd 0x04 0x00 0x00 0xbe + 0x04 0x00 0x00 0xbf 0x04 0x00 0x00 0xc0 0x04 0x00 0x00 0xa2c 0x04 + 0x00 0x00 0xa2d 0x04 0x00 0x00 0xa2e 0x04 0x00 0x00 0xa2f 0x04 0x00 + 0x00 0xa3e 0x04 0x00 0x00 0xa3f 0x04 0x00 0x00 0xa40 0x04 0x00 0x00 + 0xa41 0x04 0x00 0x00 0xa42 0x04 0x00 0x00 0xa43 0x04 0x00 0x00 0xa44 + 0x04 0x00 0x00 0xa45 0x04 0x00 0x00 0xa46 0x04 0x00 0x00 0xa47 0x04 + 0x00 0x00 0xa48 0x04 0x00 0x00 0xa49 0x04 0x00 0x00 0xa4a 0x04 0x00 + 0x00 0xa4b 0x04 0x00 0x00 0xa4c 0x04 0x00 0x00 0xa4d 0x04 0x00 0x00 + 0xa36 0x04 0x00 0x00 0xa37 0x04 0x00 0x00 0xa38 0x04 0x00 0x00 0xa39 + 0x04 0x00 0x00 0xa3a 0x04 0x00 0x00 0xa3b 0x04 0x00 0x00 0xa3c 0x04 + 0x00 0x00 0xa3d 0x04 0x00 0x00 0x9f 0x04 0x00 0x00 0xa0 0x04 0x00 + 0x00 0xa1 0x04 0x00 0x00 0x21e 0x04 0x00 0x00 0x21d 0x04 0x00 0x00 + 0x222 0x04 0x00 0x00 0x223 0x04 0x00 0x00 0x224 0x04 0x00 0x00 0x225 + 0x04 0x00 0x00 0x144 0x04 0x00 0x00 0xc1 0x04 0x00 0x00 0xc2 0x04 + 0x00 0x00 0x30d 0x04 0x00 0x00 0x30e 0x04 0x00 0x00 0x387 0x04 0x00 + 0x00 0x16f 0x04 0x00 0x00 0x1b9 0x04 0x00 0x00 0x3bc 0x04 0x00 0x00 + 0x3c2 0x04 0x00 0x00 0x548 0x04 0x00 0x00 0x573 0x04 0x00 0x00 0x593 + 0x04 0x00 0x00 0x5b3 0x04 0x00 0x00 0x5d3 0x04 0x00 0x00 0x928 0x04 + 0x00 0x00 0x97c 0x04 0x00 0x00 0x997 0x04 0x00 0x00 0x214 0x04 0x00 + 0x00 0x54d 0x04 0x00 0x00 0x613 0x04 0x00 0x00 0x620 0x04 0x00 0x00 + 0x6df 0x04 0x00 0x00 0x316 0x04 0x00 0x00 0x317 0x04 0x00 0x00 0x6af + 0x04 0x00 0x00 0x56d 0x04>; + status = "disabled"; + }; + + crypto@50500c000 { + compatible = "apple,t6050-aes", "apple,aes"; + reg = <0x05 0x500c000 0x00 0x4000 0x02 0x88340000 0x00 0x8000 0x02 + 0x88090000 0x00 0x4000>; + interrupts = <0x00 0x00 0x55e 0x04>; + iommus = <&{/soc/iommu@505060000} 0x01>; + power-domains = <&{/soc/power-management@280900000/power-controller@318}>; + status = "disabled"; + }; + + phy-coproc@395d08000 { + compatible = "apple,t6050-phy-coproc", "apple,phy-coproc"; + reg = <0x03 0x95d08000 0x00 0x4000 0x03 0x95d00000 0x00 0x4000>; + interrupts = <0x00 0x00 0x92b 0x04 0x00 0x00 0x92a 0x04 0x00 0x00 0x92d 0x04 + 0x00 0x00 0x92c 0x04>; + status = "disabled"; + }; + + mailbox@4d067c000 { + compatible = "apple,t6050-secure-mailbox", "apple,secure-mailbox"; + reg = <0x04 0xd067c000 0x00 0x4000>; + interrupts = <0x00 0x00 0x249 0x04 0x00 0x00 0x246 0x04>; + iommus = <&aop_dart 0x01>; + status = "disabled"; + }; + + aop@291600000 { + compatible = "apple,t6050-aop2", "apple,aop2"; + reg = <0x02 0x91600000 0x00 0x88000 0x02 0x91650000 0x00 0x4000 0x02 + 0x9162c000 0x00 0x3c008>; + interrupts = <0x00 0x00 0x24b 0x04 0x00 0x00 0x24a 0x04 0x00 0x00 0x24d 0x04 + 0x00 0x00 0x24c 0x04>; + iommus = <&aop_dart 0x10>; + status = "disabled"; + }; + + event-log@280040000 { + compatible = "apple,t6050-event-log", "apple,soc-event-log"; + reg = <0x02 0x80040000 0x00 0x4000 0x02 0x8004e000 0x00 0x4000 0x23 + 0x8004c800 0x00 0x4000 0x23 0x80040000 0x00 0x4000 0x02 0x80200000 + 0x00 0x4000 0x02 0x80000000 0x00 0x14000 0x02 0x8003c000 0x00 0x4000 + 0x02 0x80020000 0x00 0x10000 0x02 0x806e0000 0x00 0x4000 0x02 + 0x806d0000 0x00 0x4000 0x02 0x80668000 0x00 0x4000 0x02 0x80680000 + 0x00 0x1c000 0x02 0x807d0000 0x00 0x4000 0x02 0x806f0000 0x00 0x4000 + 0x02 0x80928000 0x00 0x4000 0x02 0x80938000 0x00 0x8000 0x02 + 0x86700000 0x00 0x114000 0x02 0x84380000 0x00 0x20000 0x02 + 0x85040000 0x00 0x1c000 0x02 0x84360000 0x00 0x4000 0x02 0x84370000 + 0x00 0x4000 0x23 0x85040000 0x00 0x1c000 0x23 0x84360000 0x00 0x4000 + 0x23 0x84370000 0x00 0x4000 0x05 0x9878000 0x00 0x4000 0x05 + 0x9868000 0x00 0x8000 0x23 0x80300000 0x00 0x8000 0x23 0x80308000 + 0x00 0x8000 0x02 0x80300000 0x00 0x8000 0x23 0x80034000 0x00 0x4000 + 0x23 0x8003c000 0x00 0x4000 0x23 0x80020000 0x00 0x10000 0x23 + 0x80038000 0x00 0x4000 0x23 0x80640000 0x00 0x10000 0x23 0x806d0000 + 0x00 0x4000 0x23 0x80668000 0x00 0x4000 0x23 0x80680000 0x00 0x1c000 + 0x23 0x806f0000 0x00 0x4000 0x02 0x84000000 0x00 0x4000 0x02 + 0x84004600 0x00 0x4000 0x02 0x84004000 0x00 0x4000 0x02 0x84004780 + 0x00 0x4000 0x02 0x84007400 0x00 0x4000 0x02 0x84004e00 0x00 0x4000 + 0x02 0x84004800 0x00 0x4000 0x02 0x84004f80 0x00 0x4000 0x02 + 0x84007600 0x00 0x4000 0x02 0x84005600 0x00 0x4000 0x02 0x84005000 + 0x00 0x4000 0x02 0x84005780 0x00 0x4000 0x02 0x84007800 0x00 0x4000 + 0x02 0x84005e00 0x00 0x4000 0x02 0x84005800 0x00 0x4000 0x02 + 0x84005f80 0x00 0x4000 0x02 0x84007a00 0x00 0x4000 0x02 0x84003e00 + 0x00 0x4000 0x02 0x84003800 0x00 0x4000 0x02 0x84003f80 0x00 0x4000 + 0x02 0x84007200 0x00 0x4000 0x02 0x84006e00 0x00 0x4000 0x02 + 0x84006800 0x00 0x4000 0x02 0x84006f80 0x00 0x4000 0x02 0x84007e00 + 0x00 0x4000 0x02 0x84006600 0x00 0x4000 0x02 0x84006000 0x00 0x4000 + 0x02 0x84006780 0x00 0x4000 0x02 0x84007c00 0x00 0x4000 0x02 + 0x84002e00 0x00 0x4000 0x02 0x84002800 0x00 0x4000 0x02 0x84002f80 + 0x00 0x4000 0x02 0x84007000 0x00 0x4000 0x02 0x84003600 0x00 0x4000 + 0x02 0x84003000 0x00 0x4000 0x02 0x84003780 0x00 0x4000 0x02 + 0x84000400 0x00 0x4000 0x02 0x84000400 0x00 0x4000 0x02 0x84000400 + 0x00 0x4000 0x02 0x84000400 0x00 0x4000 0x02 0x84000400 0x00 0x4000 + 0x02 0x84000400 0x00 0x4000 0x02 0x84000400 0x00 0x4000 0x02 + 0x84000400 0x00 0x4000 0x23 0x84000000 0x00 0x4000 0x23 0x84004e00 + 0x00 0x4000 0x23 0x84004800 0x00 0x4000 0x23 0x84004f80 0x00 0x4000 + 0x23 0x84007000 0x00 0x4000 0x23 0x84002e00 0x00 0x4000 0x23 + 0x84002800 0x00 0x4000 0x23 0x84002f80 0x00 0x4000 0x23 0x84006800 + 0x00 0x4000 0x23 0x84003600 0x00 0x4000 0x23 0x84003000 0x00 0x4000 + 0x23 0x84003780 0x00 0x4000 0x23 0x84006a00 0x00 0x4000 0x23 + 0x84005600 0x00 0x4000 0x23 0x84005000 0x00 0x4000 0x23 0x84005780 + 0x00 0x4000 0x23 0x84007200 0x00 0x4000 0x23 0x84006600 0x00 0x4000 + 0x23 0x84006000 0x00 0x4000 0x23 0x84006780 0x00 0x4000 0x23 + 0x84007400 0x00 0x4000 0x23 0x84005e00 0x00 0x4000 0x23 0x84005800 + 0x00 0x4000 0x23 0x84005f80 0x00 0x4000 0x23 0x84003e00 0x00 0x4000 + 0x23 0x84003800 0x00 0x4000 0x23 0x84003f80 0x00 0x4000 0x23 + 0x84006c00 0x00 0x4000 0x23 0x84004600 0x00 0x4000 0x23 0x84004000 + 0x00 0x4000 0x23 0x84004780 0x00 0x4000 0x23 0x84006e00 0x00 0x4000 + 0x23 0x84000400 0x00 0x4000 0x23 0x84000400 0x00 0x4000 0x23 + 0x84000400 0x00 0x4000 0x23 0x84000400 0x00 0x4000 0x23 0x84000400 + 0x00 0x4000 0x23 0x84000400 0x00 0x4000 0x23 0x84000400 0x00 0x4000 + 0x23 0x84000400 0x00 0x4000 0x02 0x88f00000 0x00 0x18000 0x02 + 0x88200000 0x00 0x4000 0x02 0x88204000 0x00 0x4000 0x02 0x8827c000 + 0x00 0x4000 0x02 0x8832c000 0x00 0x4000 0x02 0x88330000 0x00 0x10000 + 0x02 0x88360000 0x00 0x4000 0x02 0x88340000 0x00 0x8000 0x02 + 0x8836c000 0x00 0x4000 0x02 0x88000000 0x00 0x24000 0x23 0x88200000 + 0x00 0x4000 0x23 0x88204000 0x00 0x4000 0x23 0x8827c000 0x00 0x4000 + 0x23 0x8832c000 0x00 0x4000 0x23 0x88330000 0x00 0x10000 0x23 + 0x88360000 0x00 0x4000 0x23 0x88340000 0x00 0x8000 0x23 0x8836c000 + 0x00 0x4000 0x23 0x88000000 0x00 0x8000>; + interrupts = <0x00 0x00 0x1e 0x04 0x00 0x00 0x1f 0x04 0x00 0x00 0x22 0x04 + 0x00 0x00 0x23 0x04 0x00 0x00 0x24 0x04 0x00 0x00 0x37 0x04 0x00 + 0x00 0x38 0x04 0x00 0x00 0x13f 0x04 0x00 0x00 0x140 0x04 0x00 0x00 + 0x141 0x04 0x00 0x00 0x147 0x04 0x00 0x00 0x148 0x04 0x00 0x00 0x170 + 0x04 0x00 0x00 0x17e 0x04 0x00 0x00 0x1db 0x04 0x00 0x00 0x1e0 0x04 + 0x00 0x00 0x1e1 0x04 0x00 0x00 0x1e4 0x04 0x00 0x00 0x1e5 0x04 0x00 + 0x00 0x30f 0x04 0x00 0x00 0x310 0x04 0x00 0x00 0x3af 0x04 0x00 0x00 + 0x3b7 0x04>; + status = "disabled"; + }; + + dma-controller@505e00000 { + compatible = "apple,t6050-sio", "apple,sio"; + reg = <0x05 0x5e00000 0x00 0x88000 0x05 0x5850000 0x00 0x4000>; + interrupts = <0x00 0x00 0x570 0x04 0x00 0x00 0x56f 0x04 0x00 0x00 0x572 0x04 + 0x00 0x00 0x571 0x04>; + iommus = <&{/soc/iommu@505060000} 0x00>; + power-domains = <&{/soc/power-management@280900000/power-controller@2a0}>; + clocks = <&{/soc/clock-controller@280600000} 0x167 + &{/soc/clock-controller@280600000} 0x166>; + #dma-cells = <0x01>; + status = "disabled"; + }; + + iommu@505060000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x05 0x5060000 0x00 0x20000>; + interrupts = <0x00 0x00 0x56b 0x04>; + power-domains = <&{/soc/power-management@280900000/power-controller@290}>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + pmp@284e00000 { + compatible = "apple,t6050-pmp-v2", "apple,t6000-pmp-v2"; + reg = <0x02 0x84500000 0x00 0x100000 0x02 0x84e00000 0x00 0x4000>; + reg-names = "pmp", "asc"; + mboxes = <&{/soc/mailbox@284e08000}>; + mbox-names = "mbox"; + iommus = <&{/soc/iommu@2841a0000} 0x00>; + power-domains = <&{/soc/power-management@280600000/power-controller@128} + &{/soc/power-management@280600000/power-controller@130}>; + status = "disabled"; + }; + + mailbox@284e08000 { + compatible = "apple,t6050-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x02 0x84e08000 0x00 0x4000>; + interrupts = <0x00 0x00 0x18c 0x04 0x00 0x00 0x18d 0x04 0x00 0x00 0x18e 0x04 + 0x00 0x00 0x18f 0x04>; + interrupt-names = "send-empty" , "send-not-empty" , "recv-empty" , + "recv-not-empty" ; + #mbox-cells = <0x00>; + power-domains = <&{/soc/power-management@280600000/power-controller@128}>; + status = "disabled"; + }; + + pmp-report@284240000 { + compatible = "apple,t6050-pmp-v2-report"; + reg = <0x02 0x84240000 0x00 0x20000>; + power-domains = <&{/soc/power-management@280600000/power-controller@130}>; + #address-cells = <0x01>; + #size-cells = <0x00>; + status = "disabled"; + + report@c { + compatible = "apple,t6050-pmp-v2-report-entry" , + "apple,t6000-pmp-v2-report-entry" ; + reg = <0x0c>; + label = "pmp-macc0"; + #power-domain-cells = <0x00>; + apple,always-on; + }; + + report@d { + compatible = "apple,t6050-pmp-v2-report-entry" , + "apple,t6000-pmp-v2-report-entry" ; + reg = <0x0d>; + label = "pmp-macc1"; + #power-domain-cells = <0x00>; + apple,always-on; + }; + + report@e { + compatible = "apple,t6050-pmp-v2-report-entry" , + "apple,t6000-pmp-v2-report-entry" ; + reg = <0x0e>; + label = "pmp-pacc"; + #power-domain-cells = <0x00>; + apple,always-on; + }; + + report@f { + compatible = "apple,t6050-pmp-v2-report-entry" , + "apple,t6000-pmp-v2-report-entry" ; + reg = <0x0f>; + label = "pmp-gfx"; + #power-domain-cells = <0x00>; + power-domains = <&ps_gfx>; + }; + + report@12 { + compatible = "apple,t6050-pmp-v2-report-entry" , + "apple,t6000-pmp-v2-report-entry" ; + reg = <0x12>; + label = "pmp-dispint"; + #power-domain-cells = <0x00>; + apple,always-on; + }; + + report@24 { + compatible = "apple,t6050-pmp-v2-report-entry" , + "apple,t6000-pmp-v2-report-entry" ; + reg = <0x24>; + label = "pmp-ans"; + #power-domain-cells = <0x00>; + apple,always-on; + }; + }; + + iommu@2841a0000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x02 0x841a0000 0x00 0xc000 0x02 0x841b0000 0x00 0x4000>; + reg-names = "dart", "dapf"; + interrupts = <0x00 0x00 0x173 0x04>; + #iommu-cells = <0x01>; + apple,dma-range = <0x100 0x00 0x10 0x00>; + power-domains = <&{/soc/power-management@280600000/power-controller@128}>; + status = "disabled"; + }; + + aon-ptd@28cdc0000 { + compatible = "apple,t6050-aon-ptd", "apple,aon-ptd"; + reg = <0x02 0x8cdc0000 0x00 0x4000 0x02 0x8cdd0000 0x00 0x4000 0x02 + 0x8cdd8000 0x00 0x4000 0x02 0x8cde0000 0x00 0x4000>; + interrupts = <0x00 0x00 0x388 0x04 0x00 0x00 0x389 0x04 0x00 0x00 0x38a 0x04 + 0x00 0x00 0x38b 0x04 0x00 0x00 0x38c 0x04 0x00 0x00 0x38d 0x04 0x00 + 0x00 0x38e 0x04 0x00 0x00 0x38f 0x04 0x00 0x00 0x390 0x04 0x00 0x00 + 0x391 0x04 0x00 0x00 0x392 0x04 0x00 0x00 0x393 0x04 0x00 0x00 0x394 + 0x04 0x00 0x00 0x395 0x04 0x00 0x00 0x396 0x04 0x00 0x00 0x397 0x04 + 0x00 0x00 0x398 0x04 0x00 0x00 0x399 0x04 0x00 0x00 0x39a 0x04 0x00 + 0x00 0x39b 0x04 0x00 0x00 0x39c 0x04 0x00 0x00 0x39d 0x04 0x00 0x00 + 0x39e 0x04 0x00 0x00 0x39f 0x04 0x00 0x00 0x3a0 0x04 0x00 0x00 0x3a1 + 0x04 0x00 0x00 0x3a2 0x04 0x00 0x00 0x3a3 0x04 0x00 0x00 0x3a4 0x04 + 0x00 0x00 0x3a5 0x04 0x00 0x00 0x3a6 0x04 0x00 0x00 0x3a7 0x04>; + interrupt-controller; + #interrupt-cells = <0x01>; + #address-cells = <0x00>; + status = "disabled"; + }; + + rsm@288825000 { + compatible = "apple,t6050-rsm", "apple,rsm"; + reg = <0x02 0x88825000 0x00 0x4000 0x02 0x888c0000 0x00 0x04>; + interrupts = <0x00 0x00 0x1ef 0x04>; + iommus = <&{/soc/iommu@2889a0000} 0x00>; + power-domains = <&{/soc/power-management@288300000/power-controller@58}>; + status = "disabled"; + }; + + iommu@2889a0000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x02 0x889a0000 0x00 0xc000>; + interrupts = <0x00 0x00 0x1f2 0x04>; + #iommu-cells = <0x01>; + status = "disabled"; + power-domains = <&{/soc/power-management@288300000/power-controller@58}>; + }; + + serial@505200000 { + compatible = "apple,t6050-uart", "apple,s5l-uart"; + reg = <0x05 0x5200000 0x00 0x4000>; + interrupts = <0x00 0x00 0x54f 0x04>; + power-domains = <&{/soc/power-management@280900000/power-controller@360}>; + clocks = <&{/soc/clock-controller@280600000} 0x1c9 + &{/soc/clock-controller@280600000} 0x04>; + clock-names = "uart", "clk_uart_baud0"; + status = "disabled"; + }; + + spmi@28a094000 { + compatible = "apple,t6050-spmi", "apple,t8142-spmi"; + reg = <0x02 0x8a094000 0x00 0x4000 0x02 0x8a084000 0x00 0x4000 0x02 + 0x8a080000 0x00 0x4000>; + interrupts = <0x00 0x00 0x2e0 0x04>; + #address-cells = <0x02>; + #size-cells = <0x00>; + status = "disabled"; + }; + + spmi@28a0d4000 { + compatible = "apple,t6050-spmi", "apple,t8142-spmi"; + reg = <0x02 0x8a0d4000 0x00 0x4000 0x02 0x8a0c4000 0x00 0x4000 0x02 + 0x8a0c0000 0x00 0x4000>; + interrupts = <0x00 0x00 0x2e5 0x04>; + #address-cells = <0x02>; + #size-cells = <0x00>; + status = "disabled"; + }; + + spmi@290914000 { + compatible = "apple,t6050-spmi", "apple,t8142-spmi"; + reg = <0x02 0x90914000 0x00 0x4000 0x02 0x90904000 0x00 0x4000 0x02 + 0x90900000 0x00 0x4000>; + interrupts = <0x00 0x00 0x26c 0x04>; + #address-cells = <0x02>; + #size-cells = <0x00>; + status = "disabled"; + }; + + scaler@2285000000 { + compatible = "apple,t6050-scaler", "apple,scaler-v23"; + reg = <0x22 0x85000000 0x00 0x14000 0x22 0x85210000 0x00 0x4000 0x22 + 0x85204000 0x00 0x4000 0x22 0x84000000 0x00 0x8000 0x22 0x852c0000 + 0x00 0x40000 0x22 0x85340000 0x00 0x14c000 0x22 0x852a0000 0x00 + 0x4000 0x22 0x85208000 0x00 0x4000 0x22 0x85210000 0x00 0x4000 0x22 + 0x85220000 0x00 0x4000>; + interrupts = <0x00 0x00 0x9a4 0x04 0x00 0x00 0x9a6 0x04 0x00 0x00 0x9a7 0x04 + 0x00 0x00 0x9a8 0x04 0x00 0x00 0x9ac 0x04 0x00 0x00 0x9ad 0x04 0x00 + 0x00 0x9ae 0x04 0x00 0x00 0x9af 0x04 0x00 0x00 0x9b0 0x04 0x00 0x00 + 0x9b1 0x04 0x00 0x00 0x9b2 0x04 0x00 0x00 0x9b3 0x04 0x00 0x00 0x9b4 + 0x04 0x00 0x00 0x9b5 0x04 0x00 0x00 0x9b6 0x04 0x00 0x00 0x9b7 0x04 + 0x00 0x00 0x9b8 0x04 0x00 0x00 0x9b9 0x04 0x00 0x00 0x9ba 0x04 0x00 + 0x00 0x9bb 0x04>; + iommus = <&{/soc/iommu@2285260000} 0x00 &{/soc/iommu@2285260000} 0x01>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1c8} + &{/soc/power-management@2380600000/power-controller@200}>; + clocks = <&{/soc/clock-controller@280600000} 0x1f0>; + resets = <&{/soc/power-management@2380600000/power-controller@1c8}>; + status = "disabled"; + }; + + iommu@2285260000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x22 0x85260000 0x00 0x20000 0x02 0x74000000 0x00 0x4000>; + interrupts = <0x00 0x00 0x9a5 0x04>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1c8}>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + scaler@23a1000000 { + compatible = "apple,t6050-scaler", "apple,scaler-v23"; + reg = <0x23 0xa1000000 0x00 0x14000 0x23 0xa1210000 0x00 0x4000 0x23 + 0xa1204000 0x00 0x4000 0x23 0xa0000000 0x00 0x8000 0x23 0xa12c0000 + 0x00 0x40000 0x23 0xa1340000 0x00 0x14c000 0x23 0xa12a0000 0x00 + 0x4000 0x23 0xa1208000 0x00 0x4000 0x23 0xa1210000 0x00 0x4000 0x23 + 0xa1220000 0x00 0x4000>; + interrupts = <0x00 0x00 0x9bc 0x04 0x00 0x00 0x9be 0x04 0x00 0x00 0x9bf 0x04 + 0x00 0x00 0x9c0 0x04 0x00 0x00 0x9c4 0x04 0x00 0x00 0x9c5 0x04 0x00 + 0x00 0x9c6 0x04 0x00 0x00 0x9c7 0x04 0x00 0x00 0x9c8 0x04 0x00 0x00 + 0x9c9 0x04 0x00 0x00 0x9ca 0x04 0x00 0x00 0x9cb 0x04 0x00 0x00 0x9cc + 0x04 0x00 0x00 0x9cd 0x04 0x00 0x00 0x9ce 0x04 0x00 0x00 0x9cf 0x04 + 0x00 0x00 0x9d0 0x04 0x00 0x00 0x9d1 0x04 0x00 0x00 0x9d2 0x04 0x00 + 0x00 0x9d3 0x04>; + iommus = <&{/soc/iommu@23a1260000} 0x00 &{/soc/iommu@23a1260000} 0x01>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1f8} + &{/soc/power-management@2380600000/power-controller@208}>; + clocks = <&{/soc/clock-controller@280600000} 0x1f1>; + resets = <&{/soc/power-management@2380600000/power-controller@1f8}>; + status = "disabled"; + }; + + iommu@23a1260000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x23 0xa1260000 0x00 0x20000 0x02 0x74000000 0x00 0x4000>; + interrupts = <0x00 0x00 0x9bd 0x04>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1f8}>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + video-encoder@2283100000 { + compatible = "apple,t6050-ave", "apple,ave"; + reg = <0x22 0x83100000 0x00 0x45c000 0x22 0x83800000 0x00 0x800000 0x22 + 0x83050000 0x00 0x4000 0x23 0x806001c0 0x00 0x7e64 0x22 0x82000000 + 0x00 0x8000>; + interrupts = <0x00 0x00 0x983 0x04 0x00 0x00 0xae6 0x04 0x00 0x00 0xae5 0x04 + 0x00 0x00 0xae8 0x04 0x00 0x00 0xae7 0x04>; + iommus = <&{/soc/iommu@22830a0000} 0x00 &{/soc/iommu@2283080000} 0x00>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1c0} + &{/soc/power-management@2380600000/power-controller@8008} + &{/soc/power-management@2380600000/power-controller@8010} + &{/soc/power-management@2380600000/power-controller@8018} + &{/soc/power-management@2380600000/power-controller@8020} + &{/soc/power-management@2380600000/power-controller@8000}>; + clocks = <&{/soc/clock-controller@280600000} 0x1f7>; + status = "disabled"; + }; + + iommu@22830a0000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x22 0x830a0000 0x00 0xc000 0x22 0x830b0000 0x00 0x4000>; + interrupts = <0x00 0x00 0x980 0x04>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1c0}>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + iommu@2283080000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x22 0x83080000 0x00 0xc000 0x22 0x83094000 0x00 0x4000>; + interrupts = <0x00 0x00 0x980 0x04>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1c0}>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + video-encoder@23a3100000 { + compatible = "apple,t6050-ave", "apple,ave"; + reg = <0x23 0xa3100000 0x00 0x45c000 0x23 0xa3800000 0x00 0x800000 0x23 + 0xa3050000 0x00 0x4000 0x23 0x806001f0 0x00 0x7e5c 0x23 0xa2000000 + 0x00 0x8000>; + interrupts = <0x00 0x00 0x98b 0x04 0x00 0x00 0xaea 0x04 0x00 0x00 0xae9 0x04 + 0x00 0x00 0xaec 0x04 0x00 0x00 0xaeb 0x04>; + iommus = <&{/soc/iommu@23a30a0000} 0x00 &{/soc/iommu@23a3080000} 0x00>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1f0} + &{/soc/power-management@2380600000/power-controller@8030} + &{/soc/power-management@2380600000/power-controller@8038} + &{/soc/power-management@2380600000/power-controller@8040} + &{/soc/power-management@2380600000/power-controller@8048} + &{/soc/power-management@2380600000/power-controller@8028}>; + clocks = <&{/soc/clock-controller@280600000} 0x1f8>; + status = "disabled"; + }; + + iommu@23a30a0000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x23 0xa30a0000 0x00 0xc000 0x23 0xa30b0000 0x00 0x4000>; + interrupts = <0x00 0x00 0x988 0x04>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1f0}>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + iommu@23a3080000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x23 0xa3080000 0x00 0xc000 0x23 0xa3094000 0x00 0x4000>; + interrupts = <0x00 0x00 0x988 0x04>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1f0}>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + prores@48d000000 { + compatible = "apple,t6050-prores", "apple,prores"; + reg = <0x04 0x8d000000 0x00 0x4000 0x04 0x8c000000 0x00 0x1000000 0x04 + 0x8d0c0000 0x00 0x4000 0x04 0x8d070000 0x00 0x4000 0x04 0x8d071000 + 0x00 0x4000>; + interrupts = <0x00 0x00 0x6b1 0x04 0x00 0x00 0x6d6 0x04>; + iommus = <&{/soc/iommu@48d020000} 0x01>; + power-domains = <&{/soc/power-management@280900000/power-controller@190}>; + status = "disabled"; + reg-names = "core", "wrapper", "aux", "ctrl", "ctrl1"; + resets = <&{/soc/power-management@280900000/power-controller@190}>; + }; + + iommu@48d020000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x04 0x8d020000 0x00 0xc000>; + interrupts = <0x00 0x00 0x6b0 0x04>; + power-domains = <&{/soc/power-management@280900000/power-controller@190}>; + #iommu-cells = <0x01>; + status = "disabled"; + apple,dma-range = <0x100 0x00 0x300 0x00>; + }; + + iommu@230b020000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x23 0xb020000 0x00 0xc000 0x02 0x74000000 0x00 0x4000>; + interrupts = <0x00 0x00 0x6e0 0x04>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1e0}>; + #iommu-cells = <0x01>; + status = "disabled"; + }; + + jpeg@2281000000 { + compatible = "apple,t6050-jpeg", "apple,jpeg"; + reg = <0x22 0x81000000 0x00 0x4000>; + interrupts = <0x00 0x00 0x54b 0x04>; + iommus = <&{/soc/iommu@2281020000} 0x00>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1d0}>; + clocks = <&{/soc/clock-controller@280600000} 0x1e6 + &{/soc/clock-controller@280600000} 0x1e7>; + status = "disabled"; + }; + + jpeg@2281060000 { + compatible = "apple,t6050-jpeg", "apple,jpeg"; + reg = <0x22 0x81060000 0x00 0x4000>; + interrupts = <0x00 0x00 0x54e 0x04>; + iommus = <&{/soc/iommu@2281020000} 0x01>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1d0}>; + clocks = <&{/soc/clock-controller@280600000} 0x1e6 + &{/soc/clock-controller@280600000} 0x1e7>; + status = "disabled"; + }; + + iommu@2281020000 { + compatible = "apple,t6050-dart", "apple,t8110-dart"; + reg = <0x22 0x81020000 0x00 0xc000 0x02 0x74000000 0x00 0x4000>; + interrupts = <0x00 0x00 0x54c 0x04>; + power-domains = <&{/soc/power-management@2380600000/power-controller@1d0}>; + #iommu-cells = <0x01>; + status = "disabled"; + apple,dma-range = <0x100 0x00 0x300 0x00>; + }; + + neural-processor@508000000 { + compatible = "apple,t6050-ane"; + reg = <0x05 0x8000000 0x00 0x2000000 0x02 0x80900000 0x00 0x18000 0x02 + 0x80920000 0x00 0x4000 0x02 0x84240000 0x00 0x40000 0x02 0x12000000 + 0x00 0xff4000 0x05 0x84000000 0x00 0x2000000 0x02 0x88374000 0x00 + 0x4000>; + reg-names = "engine", "pmgr", "aux-0", "aux-1", "aux-2", "aux-3", "aux-4"; + interrupts = <0x00 0x00 0x3ba 0x04 0x00 0x00 0x3c7 0x04>; + iommus = <&ane_dart0 0x00 &ane_dart1 0x00 + &ane_dart2 0x00>; + power-domains = <&{/soc/power-management@280900000/power-controller@3c8}>; + clocks = <&{/soc/clock-controller@280600000} 0x14f + &{/soc/clock-controller@280600000} 0x14e + &{/soc/clock-controller@280600000} 0x17d>; + status = "disabled"; + }; + + video-decoder@2308000000 { + compatible = "apple,t6050-avd", "apple,avd"; + reg = <0x23 0x8000000 0x00 0x1404000 0x23 0x88090000 0x00 0x4000>; + interrupts = <0x00 0x00 0x971 0x04 0x00 0x00 0x972 0x04>; + iommus = <&avd_dart 0x00 &avd_dart 0x01 + &avd_dart 0x02>; + power-domains = <&ps_avd_sys>; + clocks = <&{/soc/clock-controller@280600000} 0x1e8>; + status = "disabled"; + }; + + dma-controller@293300000 { + compatible = "apple,t6050-admac", "apple,t8140-admac"; + reg = <0x02 0x93300000 0x00 0x34000>; + dma-channels = <0x09>; + interrupts-extended = <&aic 0x00 0x00 + 0x27f 0x04 0x00 0x00 0x00>; + iommus = <&aop_dart 0x0a>; + #dma-cells = <0x01>; + status = "disabled"; + }; + + dma-control@293c80000 { + compatible = "apple,t6050-admac-control", "apple,admac-control"; + reg = <0x02 0x93c80000 0x00 0x4000 0x02 0x93c84000 0x00 0x4000>; + interrupts = <0x00 0x00 0x28c 0x04>; + status = "disabled"; + }; + + message-controller@29b000000 { + compatible = "apple,t6050-msg", "apple,msg"; + reg = <0x02 0x9b000000 0x00 0xb4000 0x02 0x99000000 0x00 0x4000>; + interrupts = <0x00 0x00 0x319 0x04 0x00 0x00 0x31a 0x04 0x00 0x00 0x31b 0x04 + 0x00 0x00 0x31c 0x04 0x00 0x00 0x31d 0x04 0x00 0x00 0x31e 0x04 0x00 + 0x00 0x31f 0x04 0x00 0x00 0x320 0x04 0x00 0x00 0x321 0x04 0x00 0x00 + 0x322 0x04 0x00 0x00 0x323 0x04 0x00 0x00 0x324 0x04 0x00 0x00 0x325 + 0x04 0x00 0x00 0x326 0x04 0x00 0x00 0x327 0x04 0x00 0x00 0x328 0x04 + 0x00 0x00 0x329 0x04 0x00 0x00 0x32a 0x04 0x00 0x00 0x32b 0x04 0x00 + 0x00 0x32c 0x04 0x00 0x00 0x32d 0x04 0x00 0x00 0x32e 0x04 0x00 0x00 + 0x32f 0x04 0x00 0x00 0x330 0x04 0x00 0x00 0x331 0x04 0x00 0x00 0x332 + 0x04 0x00 0x00 0x333 0x04 0x00 0x00 0x334 0x04 0x00 0x00 0x335 0x04 + 0x00 0x00 0x336 0x04 0x00 0x00 0x337 0x04 0x00 0x00 0x338 0x04 0x00 + 0x00 0x339 0x04 0x00 0x00 0x33a 0x04 0x00 0x00 0x33b 0x04 0x00 0x00 + 0x33c 0x04 0x00 0x00 0x33d 0x04 0x00 0x00 0x33e 0x04 0x00 0x00 0x33f + 0x04 0x00 0x00 0x340 0x04 0x00 0x00 0x318 0x04>; + power-domains = <&{/soc/power-management@280600000/power-controller@258}>; + status = "disabled"; + }; + + dma-controller@412030000 { + compatible = "apple,t6050-pcie-piodma", "apple,pcie-piodma"; + reg = <0x04 0x12030000 0x00 0x4000 0x04 0x12034000 0x00 0x4000 0x04 + 0x12038000 0x00 0x4000>; + interrupts = <0x00 0x00 0x605 0x04>; + iommus = <&dart_apcie2 0x11>; + status = "disabled"; + }; + + dma-controller@413030000 { + compatible = "apple,t6050-pcie-piodma", "apple,pcie-piodma"; + reg = <0x04 0x13030000 0x00 0x4000 0x04 0x13034000 0x00 0x4000 0x04 + 0x13038000 0x00 0x4000>; + interrupts = <0x00 0x00 0x60d 0x04>; + iommus = <&dart_apcie3 0x11>; + status = "disabled"; + }; + + spi@50510c000 { + compatible = "apple,t6050-spi", "apple,t8103-spi"; + reg = <0x05 0x510c000 0x00 0x4000>; + interrupts = <0x00 0x00 0x55a 0x04>; + power-domains = <&{/soc/power-management@280900000/power-controller@338}>; + clocks = <&{/soc/clock-controller@280600000} 0x1c4>; + #address-cells = <0x01>; + #size-cells = <0x00>; + status = "disabled"; + }; + + dma-controller@38c068000 { + compatible = "apple,t6050-pciec-piodma", "apple,pciec-piodma"; + reg = <0x03 0x8c068000 0x00 0x4000 0x03 0x8c06c000 0x00 0x4000 0x03 + 0x8c070000 0x00 0x4000 0x03 0x8c03c000 0x00 0x4000>; + interrupts = <0x00 0x00 0x5df 0x04>; + iommus = <&{/soc/iommu@38c000000} 0xfe>; + status = "disabled"; + }; + + dpin@389e50000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x03 0x89e50000 0x00 0x4000>; + interrupts = <0x00 0x00 0x6a3 0x04>; + status = "disabled"; + }; + + dpin@389e58000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x03 0x89e58000 0x00 0x4000>; + interrupts = <0x00 0x00 0x6a4 0x04>; + status = "disabled"; + }; + + dpin@389e68000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x03 0x89e68000 0x00 0x4000>; + interrupts = <0x00 0x00 0x6a9 0x04>; + status = "disabled"; + }; + + dpin@389e70000 { + compatible = "apple,t6050-dpin", "apple,dpin"; + reg = <0x03 0x89e70000 0x00 0x4000>; + interrupts = <0x00 0x00 0x6aa 0x04>; + status = "disabled"; + }; + }; + + gpu_opp: opp-table-gpu { + compatible = "operating-points-v2"; + + opp00 { + opp-hz = /bits/ 64 <0x00>; + opp-microvolt = <0x00 0x00 0x00 0x00>; + opp-microvolt-sram = <0x00 0x00 0x00 0x00>; + }; + + opp01 { + opp-hz = /bits/ 64 <0x00>; + opp-microvolt = <0x00 0x00 0x00 0x00>; + opp-microvolt-sram = <0x00 0x00 0x00 0x00>; + }; + + opp02 { + opp-hz = /bits/ 64 <0x00>; + opp-microvolt = <0x00 0x00 0x00 0x00>; + opp-microvolt-sram = <0x00 0x00 0x00 0x00>; + }; + + opp03 { + opp-hz = /bits/ 64 <0x00>; + opp-microvolt = <0x00 0x00 0x00 0x00>; + opp-microvolt-sram = <0x00 0x00 0x00 0x00>; + }; + + opp04 { + opp-hz = /bits/ 64 <0x00>; + opp-microvolt = <0x00 0x00 0x00 0x00>; + opp-microvolt-sram = <0x00 0x00 0x00 0x00>; + }; + + opp05 { + opp-hz = /bits/ 64 <0x00>; + opp-microvolt = <0x00 0x00 0x00 0x00>; + opp-microvolt-sram = <0x00 0x00 0x00 0x00>; + }; + + opp06 { + opp-hz = /bits/ 64 <0x00>; + opp-microvolt = <0x00 0x00 0x00 0x00>; + opp-microvolt-sram = <0x00 0x00 0x00 0x00>; + }; -/* - * The boot NOR's NVRAM: the loader fills the partition from ADT /arm-io/qspi/spinor/anvram reg - * (0x700000, 0xc0000 here), 12 banks of 64 KiB (/chosen nvram-bank-count, nvram-bank-size). The - * flash is spinor's CS0 (its reg's first cell; the second is 0x19, 25), clocked as on T8140's - * J700. Only this partition is exposed (no MTD_PARTITIONED_MASTER), so the rest of the boot NOR - * has no device node, and the controller's T8140 policy admits programs and erases only inside - * this partition. - */ -&qspi { - status = "okay"; + opp07 { + opp-hz = /bits/ 64 <0x00>; + opp-microvolt = <0x00 0x00 0x00 0x00>; + opp-microvolt-sram = <0x00 0x00 0x00 0x00>; + }; + + opp08 { + opp-hz = /bits/ 64 <0x00>; + opp-microvolt = <0x00 0x00 0x00 0x00>; + opp-microvolt-sram = <0x00 0x00 0x00 0x00>; + }; + + opp09 { + opp-hz = /bits/ 64 <0x00>; + opp-microvolt = <0x00 0x00 0x00 0x00>; + opp-microvolt-sram = <0x00 0x00 0x00 0x00>; + }; + + opp10 { + opp-hz = /bits/ 64 <0x00>; + opp-microvolt = <0x00 0x00 0x00 0x00>; + opp-microvolt-sram = <0x00 0x00 0x00 0x00>; + }; + + opp11 { + opp-hz = /bits/ 64 <0x00>; + opp-microvolt = <0x00 0x00 0x00 0x00>; + opp-microvolt-sram = <0x00 0x00 0x00 0x00>; + }; + + opp12 { + opp-hz = /bits/ 64 <0x00>; + opp-microvolt = <0x00 0x00 0x00 0x00>; + opp-microvolt-sram = <0x00 0x00 0x00 0x00>; + }; + + opp13 { + opp-hz = /bits/ 64 <0x00>; + opp-microvolt = <0x00 0x00 0x00 0x00>; + opp-microvolt-sram = <0x00 0x00 0x00 0x00>; + }; + }; + + display: display-subsystem { + compatible = "apple,display-subsystem"; + iommus = <&dart_dispext0 0x00 &dart_dispext1 0x00>; + status = "disabled"; + }; + + soc@2220000000 { + compatible = "simple-bus"; + #address-cells = <0x02>; + #size-cells = <0x02>; + ranges = <0x22 0x20000000 0x22 0x20000000 0x00 0x10000000>; + nonposted-mmio; + + memory-controller@2220000000 { + compatible = "apple,t6050-mcc"; + reg = <0x22 0x20000000 0x00 0x10000>, <0x22 0x20040000 0x00 0x10000>, <0x22 + 0x20080000 0x00 0x10000>, <0x22 0x200c0000 0x00 0x10000>, <0x22 + 0x22000000 0x00 0x10000>, <0x22 0x22040000 0x00 0x10000>, <0x22 + 0x22080000 0x00 0x10000>, <0x22 0x220c0000 0x00 0x10000>, <0x22 + 0x24000000 0x00 0x10000>, <0x22 0x24040000 0x00 0x10000>, <0x22 + 0x24080000 0x00 0x10000>, <0x22 0x240c0000 0x00 0x10000>, <0x22 + 0x26000000 0x00 0x10000>, <0x22 0x26040000 0x00 0x10000>, <0x22 + 0x26080000 0x00 0x10000>, <0x22 0x260c0000 0x00 0x10000>, <0x22 + 0x28000000 0x00 0x10000>, <0x22 0x28040000 0x00 0x10000>, <0x22 + 0x28080000 0x00 0x10000>, <0x22 0x280c0000 0x00 0x10000>, <0x22 + 0x2a000000 0x00 0x10000>, <0x22 0x2a040000 0x00 0x10000>, <0x22 + 0x2a080000 0x00 0x10000>, <0x22 0x2a0c0000 0x00 0x10000>, <0x22 + 0x2c000000 0x00 0x10000>, <0x22 0x2c040000 0x00 0x10000>, <0x22 + 0x2c080000 0x00 0x10000>, <0x22 0x2c0c0000 0x00 0x10000>, <0x22 + 0x2e000000 0x00 0x10000>, <0x22 0x2e040000 0x00 0x10000>, <0x22 + 0x2e080000 0x00 0x10000>, <0x22 0x2e0c0000 0x00 0x10000>; + apple,boot-dma-devices = <&display>; + }; + }; + + soc@2300000000 { + compatible = "simple-bus"; + #address-cells = <0x02>; + #size-cells = <0x02>; + ranges = <0x23 0x00 0x23 0x00 0x00 0x4000000>; + nonposted-mmio; + + /* Installed loader contract: retain this path and both ASC/SGX banks. */ + gpu: gpu@2302600000 { + compatible = "apple,agx-g17c", "apple,agx-g17s", "apple,agx-t6050"; + reg = <0x23 0x2600000 0x00 0x88000>, <0x23 0x00 0x00 0x4000000>; + reg-names = "asc", "sgx"; + mboxes = <&gfx_mbox + &gfx1_mbox>; + power-domains = <&ps_gfx>; + memory-region = <&uat_ttbs + &uat_pagetables &uat_handoff + &gpu_fw_data + &uat_l2_pagetables + &gpu_fw_text>; + memory-region-names = "ttbs" , "pagetables" , "handoff" , "fw-data" , + "l2-pagetables" , "fw-text" ; + operating-points-v2 = <&gpu_opp>; + apple,afr-opp = <&{/opp-table-gpuafr}>; + apple,cs-opp = <&{/opp-table-gpucs}>; + apple,clpc = <&clpc>; + apple,csafr-min-sram-microvolt = <0x00>; + apple,aon-ptd = <0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00>; + status = "disabled"; + }; + + gfx_mbox: mailbox@2302600000 { + compatible = "apple,t6050-j775d-ascwrap-v6"; + reg = <0x23 0x2600000 0x00 0x88000>, <0x23 0x2050000 0x00 0x08>; + reg-names = "wrapper", "iop-vbar"; + interrupts = <0x00 0x00 0xaed 0x04>, <0x00 0x00 0xaf0 0x04>; + interrupt-names = "send-empty", "recv-not-empty"; + apple,firmware-role = "GFX"; + power-domains = <&ps_gfx>; + #mbox-cells = <0x00>; + status = "disabled"; + }; + + gfx1_mbox: mailbox@2302e00000 { + compatible = "apple,t6050-j775d-ascwrap-v6"; + reg = <0x23 0x2e00000 0x00 0x88000>, <0x23 0x2850000 0x00 0x08>; + reg-names = "wrapper", "iop-vbar"; + interrupts = <0x00 0x00 0xaf1 0x04>, <0x00 0x00 0xaf4 0x04>; + interrupt-names = "send-empty", "recv-not-empty"; + apple,firmware-role = "GFX1"; + power-domains = <&ps_gfx>; + #mbox-cells = <0x00>; + status = "disabled"; + }; - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <25000000>; - /* Single-wire, as on T8132's J713: no quad-enable status write at probe */ - spi-rx-bus-width = <1>; - spi-tx-bus-width = <1>; + pmgr3: power-management@2300e80000 { + compatible = "apple,t6050-pmgr", "apple,t8103-pmgr", "syscon", "simple-mfd"; + reg = <0x23 0xe80000 0x00 0x4000>; + #address-cells = <0x01>; + #size-cells = <0x01>; + status = "okay"; + + ps_gpx: power-controller@0 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x00 0x04>; + label = "gpx"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + apple,always-on; + status = "disabled"; + }; - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; + ps_afr: power-controller@100 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x100 0x04>; + label = "afr"; + #power-domain-cells = <0x00>; + #reset-cells = <0x00>; + apple,always-on; + status = "disabled"; + }; - nvram: partition@700000 { - label = "nvram"; - /* To be filled by the loader */ - reg = <0x0 0x0>; + ps_gfx: power-controller@110 { + compatible = "apple,t6050-pmgr-pwrstate" , + "apple,t8103-pmgr-pwrstate" ; + reg = <0x110 0x04>; + label = "gfx"; + #power-domain-cells = <0x00>; + power-domains = <&ps_afr + &ps_gpx>; + #reset-cells = <0x00>; status = "disabled"; }; }; }; -}; -/* - * The always-on (NUB) GPIO block, ADT /arm-io/nub-gpio0 (61 pins, no power gate). Only pin 14 is - * exposed: the rear USB-A hubs' reset, ADT spi3/usb3hub-flash/usb3hub-fw function-usb3hub_rst - * (nub-gpio0 pin 14, flags 1). Behind the ASM3142 sits a VIA VL822 USB3.1/USB2.0 hub pair - * (05ac:800e, 05ac:800d) that boots from its own SPI flash once released. The pin is left an - * undriven input, which holds the hubs in reset; driven high, both hubs and the USB-A devices - * behind them enumerate within a second (lobata, 2026-11-04), so the reset is active low. - */ -&{/soc} { -}; + aliases { + serial0 = &dockchannel; + ethernet0 = ðernet0; + wifi0 = &n1_alpha; + bluetooth0 = &n1_beta; + atcphy2 = &atc2_phy; + atcphy0 = &atc0_phy; + atcphy1 = &atc1_phy; + atcphy3 = &atc3_phy; + nvram = &nvram; + usb4-0-acio = &acio0; + usb4-0-nhi = &acio0_nhi; + usb4-1-acio = &acio1; + usb4-1-nhi = &acio1_nhi; + usb4-2-acio = &acio2; + usb4-2-nhi = &acio2_nhi; + usb4-3-acio = &acio3; + usb4-3-nhi = &acio3_nhi; + }; -/* - * Rear USB-C port 3 (HPM2, usb-pd@8, the display port): its USB controller, enabled with - * atc2_phy as t6050.dtsi says, for USB beside DisplayPort. - */ -&usb_drd2 { - status = "okay"; -}; + chosen { + #address-cells = <0x02>; + #size-cells = <0x02>; + ranges; + }; -&usb_drd2_dart_0 { - status = "okay"; -}; + pcie0: pcie@1cb0000000 { + compatible = "apple,t6050-pcie"; + device_type = "pci"; + reg = <0x1c 0xb0000000 0x00 0x10000000>, <0x04 0x14000000 0x00 0x4000>, <0x04 + 0x12028000 0x00 0x8000>, <0x04 0x17018000 0x00 0x4000>, <0x04 0x12024000 + 0x00 0x4000>, <0x04 0x13028000 0x00 0x8000>, <0x04 0x1701c000 0x00 0x4000>, + <0x04 0x13024000 0x00 0x4000>, <0x04 0x10028000 0x00 0x8000>, <0x04 + 0x17010000 0x00 0x4000>, <0x04 0x10024000 0x00 0x4000>, <0x04 0x11028000 + 0x00 0x8000>, <0x04 0x17014000 0x00 0x4000>, <0x04 0x11024000 0x00 0x4000>; + reg-names = "config" , "rc" , "port2" , "phy2" , "intr2axi2" , "port3" , "phy3" , + "intr2axi3" , "port0" , "phy0" , "intr2axi0" , "port1" , "phy1" , + "intr2axi1" ; + nonposted-mmio; + interrupts = <0x00 0x00 0x603 0x04>, <0x00 0x00 0x60b 0x04>, <0x00 0x00 0x5f3 0x04>, + <0x00 0x00 0x5fb 0x04>; + interrupt-names = "port2", "port3", "port0", "port1"; + msi-controller; + msi-parent = <&pcie0>; + msi-ranges = <&aic 0x00 0x00 0x760 0x01 0x40>; + apple,msi-vector-base = <0x40>; + iommu-map = <0x100 &dart_apcie2 0x01 0x01 0x200 &dart_apcie3 + 0x01 0x01 0x300 &dart_apcie0 0x01 0x03 0x400 + &dart_apcie1 0x01 0x01>; + iommu-map-mask = <0xffff>; + dma-coherent; + linux,pci-domain = <0x00>; + bus-range = <0x00 0x04>; + #address-cells = <0x03>; + #size-cells = <0x02>; + ranges = <0x2000000 0x00 0x80000000 0x0b 0x80000000 0x00 0x40000000>, <0x43000000 + 0x0b 0xc0000000 0x0b 0xc0000000 0x00 0x20000000>; -&usb_drd2_dart_1 { - status = "okay"; -}; + port02: pci@2,0 { + device_type = "pci"; + reg = <0x1000 0x00 0x00 0x00 0x00>; + bus-range = <0x01 0x01>; + apple,link-trained-by-bootloader; + #address-cells = <0x03>; + #size-cells = <0x02>; + ranges; + interrupt-controller; + #interrupt-cells = <0x01>; + interrupt-map-mask = <0x00 0x00 0x00 0x07>; + interrupt-map = <0x00 0x00 0x00 0x01 &port02 0x00 0x00 + 0x00 0x00 0x00 0x00 0x00 0x02 &port02 0x00 0x00 + 0x00 0x01 0x00 0x00 0x00 0x03 &port02 0x00 0x00 + 0x00 0x02 0x00 0x00 0x00 0x04 &port02 0x00 0x00 + 0x00 0x03>; -/* - * The HDMI port. On the one-die J775c it hangs off die 0, where J775D has it on die 1 - * (dcpext4, lpdptx-phy1, dp2hdmi-gpio1, all deleted here with the die-1 buses). From the - * J775c ADT (captured 2026-11-03, macOS 26A425; arm-io ranges child 0 -> 0x200000000): - * - display-crossbar0 (display-crossbar,t6050) has no registers. Its dfp endpoint 4 is - * lpdptx-phy0 (dp-switch-dfp-endpoint 4, transports-supported 5); its ufp endpoints are - * dispext0..7. dcpext1 is ufp endpoint 1 (dcpext0, which takes the four rear USB-C - * ports, is 0), so the PHY's source select picks it (source-select-offset 1). - * - lpdptx-phy0 (dptx-phy,t6050): reg 0x9c240000+0x10000 (dptx) and 0x9c200000+0x4000 - * (core); power-gates and clock-gates 0xe5, PMGR device DPTX_PHY (ps-group 1 + 0x3f8, - * no parents); DCOCFG 3, DTCVREG 15, DTCCAL 2, DCDADJ 16, DLFCFG 3, pclkdrv-select 1; - * RODCOROLEAKCOMP and FD0FD1SWAP absent (0xffffffff). - * - dp2hdmi-gpio0 (dp2hdmi-gpio-parent of lpdptx-phy0, pcon-stays-on): hdmi_hpd is - * aop-gpio0 pin 14, hdmi_pwr_en and dp2hdmi_pwr_en the SMC's pKW8 pcIO commands; the - * same pins as J775D's dp2hdmi-gpio1, which t6050.dtsi already describes (pinctrl_aop, - * smc_pcio). - * - dcpext1 (iop-dcpext1-nub external-index 2), dispext1, dart-dcpext1, dart-dispext1: - * dcpext0's layout at +0x1e0000000 (child 0x1_92e00000), but dispext1's reg[4], the PMC - * metadata, is the one dispext0 names. Interrupts: mailbox 1195..1198 (ADT order - * 0x4ac 0x4ab 0x4ae 0x4ad, as dcpext0's 0x464 0x463 0x466 0x465), both DARTs 1142. - * The bandwidth request is PMGR bwr-agent 4, DISP_EXT1 (BIRQ 0x3c, dispext1's - * bw_req_interrupt0); its scratch is 0x20000 + 0x4000 * agent, as DISP_INT (agent 0, - * J716c's dcp at 0x20000) and DISP_EXT0 (agent 3, dcpext0 at 0x2c000) have it. - * iBoot leaves dcpext1 as it leaves dcpext0: powered (DISPEXT1_CPU 0x2806002e0 = - * 0x1404024f), its ASC running, both DARTs locked (0xff / 0xb9) on the ADT's l1-tt roots - * for SIDs 23, 0 and 16 (Aura's T6050 inventory on lobata, 2026-11-04). All disabled: - * Aura's T6050 handoff enables dcpext1 with its nodes, the PHY and its power domain and - * pinctrl_aop when the engine passes the same checks as dcpext0, and appends - * dart_dispext1 to the display subsystem. - */ -&{/soc} { + ethernet0: ethernet@0,0 { + reg = <0x10000 0x00 0x00 0x00 0x00>; + local-mac-address = [00 00 00 00 00 00]; + }; + }; + port03: pci@3,0 { + device_type = "pci"; + reg = <0x1800 0x00 0x00 0x00 0x00>; + bus-range = <0x02 0x02>; + apple,link-trained-by-bootloader; + #address-cells = <0x03>; + #size-cells = <0x02>; + ranges; + interrupt-controller; + #interrupt-cells = <0x01>; + interrupt-map-mask = <0x00 0x00 0x00 0x07>; + interrupt-map = <0x00 0x00 0x00 0x01 &port03 0x00 0x00 + 0x00 0x00 0x00 0x00 0x00 0x02 &port03 0x00 0x00 + 0x00 0x01 0x00 0x00 0x00 0x03 &port03 0x00 0x00 + 0x00 0x02 0x00 0x00 0x00 0x04 &port03 0x00 0x00 + 0x00 0x03>; + }; + + port00: pci@0,0 { + device_type = "pci"; + reg = <0x00 0x00 0x00 0x00 0x00>; + bus-range = <0x03 0x03>; + apple,link-trained-by-bootloader; + reset-gpios = <&pinctrl_ap 0x50 0x01>; + status = "disabled"; + #address-cells = <0x03>; + #size-cells = <0x02>; + ranges; + interrupt-controller; + #interrupt-cells = <0x01>; + interrupt-map-mask = <0x00 0x00 0x00 0x07>; + interrupt-map = <0x00 0x00 0x00 0x01 &port00 0x00 0x00 + 0x00 0x00 0x00 0x00 0x00 0x02 &port00 0x00 0x00 + 0x00 0x01 0x00 0x00 0x00 0x03 &port00 0x00 0x00 + 0x00 0x02 0x00 0x00 0x00 0x04 &port00 0x00 0x00 + 0x00 0x03>; + + n1_control: control@0,0 { + compatible = "pci106b,1900"; + reg = <0x30000 0x00 0x00 0x00 0x00>; + firmware-name = "apple/centauri/j775c-ftab.bin"; + apple,centauri-platform-id = <0x106050>; + apple,centauri-protocol = <0x1b>; + }; + n1_alpha: wifi@0,1 { + compatible = "pci106b,1902"; + reg = <0x30100 0x00 0x00 0x00 0x00>; + local-mac-address = [00 00 00 00 00 00]; + }; + n1_beta: bluetooth@0,2 { + compatible = "pci106b,1903"; + reg = <0x30200 0x00 0x00 0x00 0x00>; + local-bd-address = [00 00 00 00 00 00]; + }; + }; -}; + port01: pci@1,0 { + device_type = "pci"; + reg = <0x800 0x00 0x00 0x00 0x00>; + bus-range = <0x04 0x04>; + apple,link-trained-by-bootloader; + status = "disabled"; + #address-cells = <0x03>; + #size-cells = <0x02>; + ranges; + interrupt-controller; + #interrupt-cells = <0x01>; + interrupt-map-mask = <0x00 0x00 0x00 0x07>; + interrupt-map = <0x00 0x00 0x00 0x01 &port01 0x00 0x00 + 0x00 0x00 0x00 0x00 0x00 0x02 &port01 0x00 0x00 + 0x00 0x01 0x00 0x00 0x00 0x03 &port01 0x00 0x00 + 0x00 0x02 0x00 0x00 0x00 0x04 &port01 0x00 0x00 + 0x00 0x03>; -/* The HDMI PHY's power gate (ADT pmgr DPTX_PHY, 0xe5); with no consumer it stays off */ -&pmgr1 { - ps_dptx_phy: power-controller@3f8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x3f8 4>; - label = "dptx_phy"; - #power-domain-cells = <0>; - #reset-cells = <0>; + sdcard@0,0 { + compatible = "pci17a0,9755"; + reg = <0x40000 0x00 0x00 0x00 0x00>; + cd-inverted; + wp-inverted; + }; + }; }; -}; -/* - * The HDMI hotplug input is the only AOP GPIO pin the AP uses; the AOP owns the rest, - * so only pin 14 is exposed (pin 15, force-dpfu, is never requested). - */ -&pinctrl_aop { - gpio-reserved-ranges = <0 14>, <15 70>; -}; + sound { + compatible = "apple,j775c-macaudio", "apple,macaudio"; + model = "Mac Studio J775"; + #address-cells = <0x01>; + #size-cells = <0x00>; -/* - * The HDMI port's audio. On T6050 every display pipe has its own audio DMA controller (ADT - * admac-dispextN, "admac,t6050", the AOP's ADMAC family), behind its own DART - * (dart-dispextN-isoc, one mapper: dispextN-dpa, SID 30), feeding that pipe's DisplayPort - * audio interface (dp-audioN+1). M1..M4 fed it from the SIO coprocessor instead; this - * generation has no SIO DMA path for it (ADT dp-audio2 dma-parent = admac-dispext1), and - * macOS drives it from the AP (AudioDMAController-T605x on admac-dispext1, channel DX10TX; - * DCPAVAudioDMADelegate on dp-audio2). The DCP's audio service on port@0 does the rest. - * From the J775c ADT (arm-io child 0 -> 0x200000000): - * - admac-dispext1: reg 0x1_92140000+0x24000 and the shared 0x88328000+8 (the LLT vote - * register admac-base-ns names too; not needed here); one TX channel; interrupt 0x48c on - * irq-destination 0 (AIC), as admac-base-ns; channel-buffer-allocation 0x1900. - * - dart-dispext1-isoc (dart,t8110): reg 0x1_92180000+0x20000 (and the shared PS_PROT block - * at 0x803f0000), interrupt 0x48d, vm-base 1 TiB, vm-size 64 GiB, no l1-tt: iBoot sets up - * no stream on it, so it is not locked. - * - dp-audio2: power-gates/clock-gates 0x51 = PMGR DISPEXT1_ADMA (ps-group 0, 0x2d8, parent - * DISPEXT1_SYS, which iBoot leaves on with dcpext1); dma-parent admac-dispext1 channel 0. - * No AP-side registers. The ADMAC and the DART have no power gate of their own; both are - * given DISPEXT1_ADMA, which macOS turns on for the DPA. - * The audio interface itself is always available: the display subsystem waits for it as a - * component of dcpext1 (once Aura enables dcpext1), so it carries no power domain whose - * failure could hold the display back. A DMA controller that does not come up only fails - * the PCM's open. - */ -&{/soc} { + dai-link@0 { + reg = <0x00>; + link-name = "Headphone Jack"; -}; + cpu { + sound-dai = <&aop_audio 0x00>; + }; -&pmgr0 { - /* ADT pmgr DISPEXT1_ADMA (0x51): dispext1's audio DMA and DisplayPort audio */ - ps_dispext1_adma: power-controller@2d8 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x2d8 4>; - label = "dispext1_adma"; - #power-domain-cells = <0>; - #reset-cells = <0>; - }; -}; + codec { + sound-dai = <&jack_codec>; + }; + }; + + dai-link@1 { + reg = <0x01>; + link-name = "Speaker"; -&dcpext1 { - ports { - #address-cells = <1>; - #size-cells = <0>; + cpu { + sound-dai = <&aop_audio 0x03>; + }; - port@0 { - reg = <0>; - dcpext1_audio: endpoint { - remote-endpoint = <&dpaudio_dispext1_dcp>; + codec { + sound-dai = <&speaker_amp>; }; }; }; -}; -/* ADT dp-audio2: no AP-side registers, so not on the SoC bus */ -/ { dpaudio_dispext1: audio-controller-dispext1 { compatible = "apple,t6050-dpaudio", "apple,dpaudio"; - dmas = <&admac_dispext1 0>; + dmas = <&admac_dispext1 0x00>; dma-names = "tx"; ports { - #address-cells = <1>; - #size-cells = <0>; + #address-cells = <0x01>; + #size-cells = <0x00>; port@0 { - reg = <0>; + reg = <0x00>; + dpaudio_dispext1_dcp: endpoint { remote-endpoint = <&dcpext1_audio>; }; }; }; }; -}; - -/* - * DisplayPort audio on the rear USB-C ports: dcpext0's pipe, laid out as dcpext1's above. - * ADT admac-dispext0 0xb2140000 (interrupt 0x444), dart-dispext0-isoc 0xb2180000 (interrupt - * 0x445, SID 30, no l1-tt), dp-audio1 with power gate DISPEXT0_ADMA (0x44, pmgr0 0x270, - * parent DISPEXT0_SYS). - */ -&{/soc} { - -}; - -&pmgr0 { - /* ADT pmgr DISPEXT0_ADMA (0x44): dispext0's audio DMA and DisplayPort audio */ - ps_dispext0_adma: power-controller@270 { - compatible = "apple,t6050-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; - reg = <0x270 4>; - label = "dispext0_adma"; - #power-domain-cells = <0>; - #reset-cells = <0>; - }; -}; - -&dcpext0 { - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - dcpext0_audio: endpoint { - remote-endpoint = <&dpaudio_dispext0_dcp>; - }; - }; - }; -}; -/* ADT dp-audio1 */ -/ { dpaudio_dispext0: audio-controller-dispext0 { compatible = "apple,t6050-dpaudio", "apple,dpaudio"; - dmas = <&admac_dispext0 0>; + dmas = <&admac_dispext0 0x00>; dma-names = "tx"; ports { - #address-cells = <1>; - #size-cells = <0>; + #address-cells = <0x01>; + #size-cells = <0x00>; port@0 { - reg = <0>; + reg = <0x00>; + dpaudio_dispext0_dcp: endpoint { remote-endpoint = <&dcpext0_audio>; }; }; }; }; -}; - -/* The untrained port's DART must not be probed; Aura enables it after link-up. */ -&{/soc} { -}; - -#include "t6050-j775c-usb4.dtsi" - -/* Diagnostic-only ramoops policy is not carried into the upstream layout. */ - -/* Match the ported board's ATC2 supplier activation. */ -&atc2_phy_mbox { status = "okay"; }; -&atc2_phy { status = "okay"; }; -&atc2_xbar { status = "okay"; }; -/* Match the ported board's rear port 3 PD activation. */ -&hpm2 { status = "okay"; }; - -/* Activate ATC2 domain providers as a separate migration step. */ -&ps_atc2_common { status = "okay"; }; -&ps_atc2_usb_aon { status = "okay"; }; -&ps_atc2_phymxwrap { status = "okay"; }; -&ps_atc2_usb { status = "okay"; }; + opp-table-gpuafr { + compatible = "operating-points-v2"; -/* Exact shared ACIO0/1/3 definitions from 953cbcc0, enabled here. */ -#include "t6050-acio.dtsi" + opp00 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -&acio0_mbox { status = "okay"; }; -&acio0 { - status = "okay"; + opp01 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; - port { - acio0_tbt: endpoint { - remote-endpoint = <&hpm0_usb4>; + opp02 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; }; - }; -}; -&acio1_mbox { status = "okay"; }; -&acio1 { - status = "okay"; + opp03 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; - port { - acio1_tbt: endpoint { - remote-endpoint = <&hpm1_usb4>; + opp04 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; }; - }; -}; -&acio3_mbox { status = "okay"; }; -&acio3 { - status = "okay"; + opp05 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; - port { - acio3_tbt: endpoint { - remote-endpoint = <&hpm3_usb4>; + opp06 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; }; - }; -}; -#include "t6050-j775c-incremental-pmgr.dtsi" + opp07 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -#include "t6050-j775c-incremental-pcie.dtsi" + opp08 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -#include "t6050-j775c-incremental-display.dtsi" + opp09 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -/* J775c has no internal panel: retain the booted desktop handoff selection. */ -/delete-node/ &{/soc/dcp@48ae00000}; + opp10 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -#include "t6050-j775c-incremental-audio.dtsi" + opp11 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -#include "t6050-j775c-incremental-sd.dtsi" + opp12 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -/* Remove unreferenced die1 caches inherited by the retained source. */ -/delete-node/ &{/cpus/l2-cache-m10}; -/delete-node/ &{/cpus/l2-cache-m11}; -/delete-node/ &{/cpus/l3-cache-p1}; -/delete-node/ &{/cpus/l2-cache-p1-0}; -/delete-node/ &{/cpus/l2-cache-p1-1}; -/delete-node/ &{/cpus/l2-cache-p1-2}; -/delete-node/ &{/cpus/l2-cache-p1-3}; -/delete-node/ &{/cpus/l2-cache-p1-4}; -/delete-node/ &{/cpus/l2-cache-p1-5}; + opp13 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; + }; -#include "t6050-j775c-incremental-usbpolicy.dtsi" + opp-table-gpucs { + compatible = "operating-points-v2"; -#include "t6050-j775c-incremental-spmi.dtsi" + opp00 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -#include "t6050-j775c-incremental-pmgr4.dtsi" + opp01 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -#include "t6050-j775c-incremental-additions.dtsi" + opp02 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -/* Isolate newly active MTP DART from the inventory additions. */ -&{/soc/iommu@294800000} { status = "disabled"; }; + opp03 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -#include "t6050-j775c-incremental-remaining-nogpu.dtsi" + opp04 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -/* Keep isolated MTP activation failure disabled after later migrations. */ -&{/soc/iommu@294800000} { status = "disabled"; }; + opp05 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -#include "t6050-j775c-incremental-gpuopp.dtsi" + opp06 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -/* Installed Stage2 needs the final fallback while Linux uses current G17 compatibles. */ -&gpu { compatible = "apple,agx-g17c", "apple,agx-g17s", "apple,agx-t6050"; }; + opp07 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -/delete-node/ &{/opp-table-gpu-afr}; -/delete-node/ &{/opp-table-gpu-cs}; + opp08 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -/* The shared router graph uses adapter port 1; drop stale duplicate links. */ -&acio0 { - /delete-node/ port; -}; + opp09 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -&acio1 { - /delete-node/ port; -}; + opp10 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -&acio2 { - /delete-node/ port; -}; + opp11 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -&acio3 { - /delete-node/ port; -}; + opp12 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; -/* Name the retained second ADT window without assigning a filter role. */ -&ane_dart0 { - reg-names = "dart", "auxiliary"; + opp13 { + opp-hz = <0x00 0x00>; + opp-microvolt = <0x00>; + }; + }; }; From f21ee133a2483cf64a8df1ffae5fccfca98eb4d0 Mon Sep 17 00:00:00 2001 From: Diljit Singh Date: Mon, 16 Nov 2026 16:13:58 -0500 Subject: [PATCH 08/24] dt-bindings: gpu: apple: describe the installed G17C loader fallback Allow only the exact G17C, G17S, T6050 compatible sequence required by installed loaders, alongside the existing two-item G17C form. Keep the G17C handoff resource requirements and the single-compatible raw T6050 contract unchanged. Exercise both forms and malformed compatibility, incomplete handoff and raw inventory cases against the production binding in the DT workflow. Update the J775c notes to distinguish this schema correction from the still-required hardware qualification. Signed-off-by: Diljit Singh --- .github/workflows/dt-checks.yml | 3 + .../devicetree/apple-j775c-compatibility.rst | 27 ++-- .../devicetree/bindings/gpu/apple,agx.yaml | 7 + scripts/dtc/apple-agx-binding-test.py | 142 ++++++++++++++++++ 4 files changed, 169 insertions(+), 10 deletions(-) create mode 100644 scripts/dtc/apple-agx-binding-test.py diff --git a/.github/workflows/dt-checks.yml b/.github/workflows/dt-checks.yml index 1c2d88af7bc3e..c957386db288a 100644 --- a/.github/workflows/dt-checks.yml +++ b/.github/workflows/dt-checks.yml @@ -61,6 +61,9 @@ jobs: echo "/usr/lib/llvm-$CLANG_VERSION/bin" >> "$GITHUB_PATH" pip install --quiet dtschema yamllint pylibfdt + - name: GPU binding compatibility and resource contracts + run: python3 scripts/dtc/apple-agx-binding-test.py + - name: CHECK_DTBS and dt_binding_check, base vs head id: dt env: diff --git a/Documentation/devicetree/apple-j775c-compatibility.rst b/Documentation/devicetree/apple-j775c-compatibility.rst index 5f7636ae3c1c3..0a8b7bdef0334 100644 --- a/Documentation/devicetree/apple-j775c-compatibility.rst +++ b/Documentation/devicetree/apple-j775c-compatibility.rst @@ -50,13 +50,20 @@ inheriting the shared disabled inventory. The production-C Clock PM host test covers the locked and unlocked PCI APIs, errors and adopted-host gate; it does not qualify physical links or other M5 boards. -Full-schema validation still reports the legacy GPU compatible-list -``oneOf`` failure. ``scripts/dtc/apple-dt-check.sh`` compares normalized -warning sets for all Apple DTBs at base and head. It has no warning -allowlist or board exception mechanism. ADT coverage waivers cannot waive -schema diagnostics. - -Keep this work draft until the GPU loader migration and affected-board -hardware qualification are complete. A later migration must recheck GPU -handoff and HDMI on J775c; old hardware receipts do not qualify a new -loader or kernel composition. +The GPU binding describes both the two-item G17C compatible list and the +exact three-item list carrying the installed loader's T6050 fallback. +Both forms retain the same register, mailbox, memory and performance +handoff requirements. This does not change the separate, disabled raw +T6050 GPU inventory contract. ``scripts/dtc/apple-agx-binding-test.py`` +checks both valid forms and rejects malformed lists, incomplete G17C +resources and a raw T6050 node without its required interrupt inventory. + +``scripts/dtc/apple-dt-check.sh`` compares normalized warning sets for all +Apple DTBs at base and head. It has no warning allowlist or board exception +mechanism. ADT coverage waivers cannot waive schema diagnostics. + +Keep this work draft until affected-board hardware qualification is +complete. Any later migration to a modern loader must recheck GPU handoff +and HDMI on J775c; old hardware receipts do not qualify a new loader or +kernel composition. Accepting the existing binding contract is not new +hardware qualification. diff --git a/Documentation/devicetree/bindings/gpu/apple,agx.yaml b/Documentation/devicetree/bindings/gpu/apple,agx.yaml index 7794c0e13b939..327d268de5a43 100644 --- a/Documentation/devicetree/bindings/gpu/apple,agx.yaml +++ b/Documentation/devicetree/bindings/gpu/apple,agx.yaml @@ -27,6 +27,13 @@ properties: - items: - const: apple,agx-g17c - const: apple,agx-g17s + - description: + G17C firmware handoff with the SoC fallback required by installed + boot loaders when filling operating points and firmware resources. + items: + - const: apple,agx-g17c + - const: apple,agx-g17s + - const: apple,agx-t6050 - items: - const: apple,agx-t8103 - const: apple,agx-g13g diff --git a/scripts/dtc/apple-agx-binding-test.py b/scripts/dtc/apple-agx-binding-test.py new file mode 100644 index 0000000000000..90c7bd37002d1 --- /dev/null +++ b/scripts/dtc/apple-agx-binding-test.py @@ -0,0 +1,142 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: GPL-2.0-only OR MIT +"""Validate G17 GPU compatibility and resource contracts with the real binding.""" + +from pathlib import Path +import unittest + +from dtschema import DTValidator + +ROOT = Path(__file__).resolve().parents[2] +BINDING = ROOT / "Documentation/devicetree/bindings/gpu/apple,agx.yaml" + + +def g17c(fallback=False): + compatible = ["apple,agx-g17c", "apple,agx-g17s"] + if fallback: + compatible.append("apple,agx-t6050") + return { + "compatible": compatible, + "reg": [[0x23, 0x2600000, 0, 0x88000], [0x23, 0, 0, 0x4000000]], + "reg-names": ["asc", "sgx"], + "mboxes": [[1], [2]], + "power-domains": [[3]], + "memory-region": [[4], [5], [6], [7], [8], [9]], + "memory-region-names": [ + "ttbs", "pagetables", "handoff", "fw-data", "l2-pagetables", "fw-text" + ], + "operating-points-v2": [[10]], + "apple,cs-opp": [[11]], + "apple,afr-opp": [[12]], + "apple,csafr-min-sram-microvolt": [0], + "apple,aon-ptd": [0] * 9, + "status": ["disabled"], + } + + +def raw_t6050(): + return { + "compatible": ["apple,agx-t6050"], + "reg": [[0x23, 0, 0, 0x4000000], [0x23, 0x2600000, 0, 0x88000]], + "interrupts": [[0, 0, irq, 4] for irq in range(8)], + "power-domains": [[1]], + "status": ["disabled"], + } + + +class GPUContracts(unittest.TestCase): + @classmethod + def setUpClass(cls): + cls.validator = DTValidator([str(BINDING)]) + + def errors(self, node): + return list(self.validator.iter_errors(node, filter=["gpu/apple,agx.yaml"])) + + def assert_valid(self, node): + errors = self.errors(node) + self.assertFalse(errors, "\n".join(error.message for error in errors)) + + def assert_invalid(self, node, property_name): + errors = self.errors(node) + self.assertTrue(errors, "invalid GPU description unexpectedly accepted") + def context(error): + yield error + for child in error.context: + yield from context(child) + + details = [child for error in errors for child in context(error)] + self.assertTrue( + any(property_name in error.path or property_name in error.message for error in details), + "\n".join(error.message for error in errors), + ) + + def test_g17c_modern_and_loader_fallback(self): + for fallback in (False, True): + with self.subTest(fallback=fallback): + self.assert_valid(g17c(fallback)) + + def test_compatibles_are_exact_and_ordered(self): + for compatible in ( + ["apple,agx-g17c", "apple,agx-g17s", "apple,agx-t8140"], + ["apple,agx-g17s", "apple,agx-g17c", "apple,agx-t6050"], + ["apple,agx-g17c", "apple,agx-t6050"], + ["apple,agx-g17c", "apple,agx-g17s", "apple,agx-t6050", "apple,agx-g13s"], + ): + with self.subTest(compatible=compatible): + node = g17c(True) + node["compatible"] = compatible + self.assert_invalid(node, "compatible") + + def test_g17c_resource_contract_is_not_relaxed(self): + for fallback in (False, True): + for name, value in ( + ("reg", [[0x23, 0, 0, 0x4000000]]), + ("reg-names", ["sgx", "asc"]), + ("mboxes", [[1]]), + ("memory-region", [[4], [5], [6]]), + ("memory-region-names", ["ttbs", "pagetables", "handoff"]), + ): + with self.subTest(fallback=fallback, property=name): + node = g17c(fallback) + node[name] = value + self.assert_invalid(node, name) + + def test_required_g17c_handoff_properties_remain_required(self): + for fallback in (False, True): + for name in ( + "power-domains", "operating-points-v2", "apple,cs-opp", "apple,afr-opp", + "apple,csafr-min-sram-microvolt", "apple,aon-ptd", + ): + with self.subTest(fallback=fallback, property=name): + node = g17c(fallback) + del node[name] + self.assert_invalid(node, name) + + def test_g17s_existing_single_register_form(self): + node = g17c() + node["compatible"] = ["apple,agx-g17s"] + node["reg"] = [[0x23, 0, 0, 0x4000000]] + node["reg-names"] = ["sgx"] + for name in ( + "operating-points-v2", "apple,cs-opp", "apple,afr-opp", + "apple,csafr-min-sram-microvolt", "apple,aon-ptd", + ): + del node[name] + self.assert_valid(node) + + def test_raw_t6050_remains_disabled_with_interrupt_inventory(self): + self.assert_valid(raw_t6050()) + for name, value in (("status", ["okay"]), ("interrupts", [[0, 0, 1, 4]])): + with self.subTest(property=name): + node = raw_t6050() + node[name] = value + self.assert_invalid(node, name) + + def test_raw_t6050_does_not_accept_coprocessor_only_handoff(self): + node = g17c() + node["compatible"] = ["apple,agx-t6050"] + self.assert_invalid(node, "interrupts") + + +if __name__ == "__main__": + unittest.main() From 9c5e19f116b411d9a340e3535d3f9f289051d36c Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Thu, 12 Nov 2026 18:58:54 -0600 Subject: [PATCH 09/24] drm/apple: add a best-effort software camera indicator Boards without a hardware camera light have no way to show that the camera is in use. Let a DCP carry a small kernel-owned square on a free swap slot, named per board by apple,camera-indicator-surface. The camera driver calls apple_dcp_camera_indicator_set(dcp, on). The call commits the square non-blocking and waits up to one second for a present that carried it. It returns 0 once one did and an error otherwise. It is a software indicator, not a privacy guarantee: the camera never depends on the answer. The call holds the DCP's device lock, so the DCP cannot unbind under it. The reserved overlay plane belongs to the kernel. Any userspace commit that changes it (FB_ID=0, CRTC_ID=0, a client framebuffer, a move) is put back to the plane's current state instead of failing, so a blind clear of every plane, as the console restore does, still succeeds. Carried unchanged, or disabled with the CRTC it sits on, the plane is left alone. The state policy is a pure header (dcp-indicator.h) with a KUnit suite, apple-dcp-indicator. Proof: the policy suite builds as a userspace program, 5 cases, 0 failed. drivers/gpu/drm/apple builds with LLVM, KUnit enabled; no kernel ran it and no hardware has shown the square yet. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- .../bindings/display/apple,dcp.yaml | 10 + drivers/gpu/drm/apple/Makefile | 2 + drivers/gpu/drm/apple/apple_drv.c | 20 ++ drivers/gpu/drm/apple/dcp-indicator-test.c | 97 ++++++ drivers/gpu/drm/apple/dcp-indicator.c | 278 ++++++++++++++++++ drivers/gpu/drm/apple/dcp-indicator.h | 62 ++++ drivers/gpu/drm/apple/dcp-internal.h | 19 ++ drivers/gpu/drm/apple/dcp.c | 5 + drivers/gpu/drm/apple/iomfb.c | 2 + drivers/gpu/drm/apple/plane.c | 45 +++ drivers/gpu/drm/apple/plane.h | 5 + include/linux/soc/apple/display.h | 19 ++ 12 files changed, 564 insertions(+) create mode 100644 drivers/gpu/drm/apple/dcp-indicator-test.c create mode 100644 drivers/gpu/drm/apple/dcp-indicator.c create mode 100644 drivers/gpu/drm/apple/dcp-indicator.h diff --git a/Documentation/devicetree/bindings/display/apple,dcp.yaml b/Documentation/devicetree/bindings/display/apple,dcp.yaml index d4d30bbe11ed9..552e70a76494d 100644 --- a/Documentation/devicetree/bindings/display/apple,dcp.yaml +++ b/Documentation/devicetree/bindings/display/apple,dcp.yaml @@ -192,6 +192,16 @@ properties: Per-slot enable flags, in slot order. The legacy J700 bootloader supplies a single zero to select surface zero instead. + apple,camera-indicator-surface: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 3 + description: | + Swap slot the kernel reserves for the software camera indicator, a + kernel-owned overlay on the internal panel that the camera driver shows + while it streams, on a best-effort basis: the camera does not depend on + it. The slot must not be enabled in apple,iomfb-surfaces. Userspace cannot + use the slot. This is a software indicator, not a privacy guarantee. + apple,power-lut-data-x: $ref: /schemas/types.yaml#/definitions/uint8-array minItems: 4 diff --git a/drivers/gpu/drm/apple/Makefile b/drivers/gpu/drm/apple/Makefile index 8b2d7288b5639..47746e791678f 100644 --- a/drivers/gpu/drm/apple/Makefile +++ b/drivers/gpu/drm/apple/Makefile @@ -34,6 +34,7 @@ appledrm-y += iomfb_v27.o appledrm-y += epic/dpavservep.o appledrm-y += epic/panelavep.o appledrm-y += plane.o +appledrm-y += dcp-indicator.o appledrm-$(CONFIG_TRACING) += trace.o @@ -41,6 +42,7 @@ appledrm-$(CONFIG_TRACING) += trace.o obj-$(CONFIG_DRM_APPLE) += appledrm.o obj-$(CONFIG_DRM_APPLE_KUNIT_TEST) += afk_test.o obj-$(CONFIG_DRM_APPLE_KUNIT_TEST) += dcp_backlight_test.o +obj-$(CONFIG_DRM_APPLE_KUNIT_TEST) += dcp-indicator-test.o obj-$(CONFIG_DRM_APPLE_KUNIT_TEST) += dcp-announce-test.o obj-$(CONFIG_DRM_APPLE_KUNIT_TEST) += afk-service-test.o diff --git a/drivers/gpu/drm/apple/apple_drv.c b/drivers/gpu/drm/apple/apple_drv.c index dddbacc0cf41a..7696c86c39768 100644 --- a/drivers/gpu/drm/apple/apple_drv.c +++ b/drivers/gpu/drm/apple/apple_drv.c @@ -1182,6 +1182,26 @@ static int apple_probe_per_dcp(struct device *dev, zpos++; } + if (dcp_data->camera_ind.has_surf) { + struct drm_plane *ind_plane; + + ind_plane = apple_plane_init(drm, 1U << num, dcp_data->camera_ind.surf, + supports_l10r, supports_xrgb2101010, + dcp_data->hw.iomfb_method_profile == + DCP_IOMFB_METHODS_H17G, + DRM_PLANE_TYPE_OVERLAY, false, + supports_premultiplied); + if (IS_ERR(ind_plane)) + return PTR_ERR(ind_plane); + ret = drm_plane_create_zpos_immutable_property(ind_plane, zpos++); + if (ret) + return ret; + /* Without its buffer the plane stays reserved and the camera stays off. */ + ret = dcp_indicator_attach_plane(dcp_data, drm, ind_plane); + if (ret) + dev_err(dev, "camera indicator unavailable: %d\n", ret); + } + /* * Even though we have an overlay plane, we cannot expose it to legacy * userspace for cursors as we cannot make the same guarantees as ye olde diff --git a/drivers/gpu/drm/apple/dcp-indicator-test.c b/drivers/gpu/drm/apple/dcp-indicator-test.c new file mode 100644 index 0000000000000..29b37a272edbc --- /dev/null +++ b/drivers/gpu/drm/apple/dcp-indicator-test.c @@ -0,0 +1,97 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Behaviour of the software camera indicator state. The same file builds as + * a KUnit suite in the kernel and as a plain program (-DDCP_IND_USERSPACE). + */ +#ifdef DCP_IND_USERSPACE +#include "kunit-shim.h" +#else +#include +#include +#endif + +#include "dcp-indicator.h" + +static void indicator_starts_off(struct kunit *test) +{ + struct dcp_indicator ind = {}; + + KUNIT_EXPECT_EQ(test, ind.state, DCP_IND_OFF); +} + +/* Confirmed only after a present that carried the square, never before. */ +static void indicator_confirmed_only_after_present(struct kunit *test) +{ + struct dcp_indicator ind = {}; + + KUNIT_ASSERT_EQ(test, dcp_ind_begin(&ind), 0); + KUNIT_EXPECT_EQ(test, ind.state, DCP_IND_PENDING); + /* A present without the square decides nothing. */ + dcp_ind_present_done(&ind, false); + KUNIT_EXPECT_EQ(test, ind.state, DCP_IND_PENDING); + dcp_ind_present_done(&ind, true); + KUNIT_EXPECT_EQ(test, ind.state, DCP_IND_LIT); +} + +/* Presents never start an indicator that nobody asked for. */ +static void indicator_idle_ignores_presents(struct kunit *test) +{ + struct dcp_indicator ind = {}; + + dcp_ind_present_done(&ind, true); + KUNIT_EXPECT_EQ(test, ind.state, DCP_IND_OFF); + KUNIT_ASSERT_EQ(test, dcp_ind_begin(&ind), 0); + dcp_ind_present_done(&ind, true); + dcp_ind_end(&ind); + dcp_ind_present_done(&ind, true); + KUNIT_EXPECT_EQ(test, ind.state, DCP_IND_OFF); +} + +/* One owner at a time; ending frees it for the next stream. */ +static void indicator_single_owner(struct kunit *test) +{ + struct dcp_indicator ind = {}; + + KUNIT_ASSERT_EQ(test, dcp_ind_begin(&ind), 0); + dcp_ind_present_done(&ind, true); + KUNIT_EXPECT_EQ(test, dcp_ind_begin(&ind), -EBUSY); + KUNIT_EXPECT_EQ(test, ind.state, DCP_IND_LIT); + dcp_ind_end(&ind); + KUNIT_EXPECT_EQ(test, dcp_ind_begin(&ind), 0); +} + +/* A userspace change to the reserved plane is put back, never honoured. */ +static void indicator_plane_reservation(struct kunit *test) +{ + /* An ordinary plane is never touched. */ + KUNIT_EXPECT_FALSE(test, dcp_ind_plane_must_restore(false, false, false, false)); + /* The kernel's own commit may do anything. */ + KUNIT_EXPECT_FALSE(test, dcp_ind_plane_must_restore(true, true, false, false)); + /* Userspace: carried unchanged, or disabled with its CRTC, is left alone. */ + KUNIT_EXPECT_FALSE(test, dcp_ind_plane_must_restore(true, false, true, false)); + KUNIT_EXPECT_FALSE(test, dcp_ind_plane_must_restore(true, false, false, true)); + /* Any other userspace change (own fb, FB_ID=0, CRTC_ID=0, move) is undone. */ + KUNIT_EXPECT_TRUE(test, dcp_ind_plane_must_restore(true, false, false, false)); +} + +static struct kunit_case indicator_cases[] = { + KUNIT_CASE(indicator_starts_off), + KUNIT_CASE(indicator_confirmed_only_after_present), + KUNIT_CASE(indicator_idle_ignores_presents), + KUNIT_CASE(indicator_single_owner), + KUNIT_CASE(indicator_plane_reservation), + {} +}; + +static struct kunit_suite indicator_suite = { + .name = "apple-dcp-indicator", + .test_cases = indicator_cases, +}; + +#ifdef DCP_IND_USERSPACE +KUNIT_SHIM_MAIN(indicator_suite) +#else +kunit_test_suite(indicator_suite); +MODULE_DESCRIPTION("Software camera indicator state tests"); +MODULE_LICENSE("Dual MIT/GPL"); +#endif diff --git a/drivers/gpu/drm/apple/dcp-indicator.c b/drivers/gpu/drm/apple/dcp-indicator.c new file mode 100644 index 0000000000000..843e6b012ed42 --- /dev/null +++ b/drivers/gpu/drm/apple/dcp-indicator.c @@ -0,0 +1,278 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Software camera indicator: a kernel-owned swap layer on the internal panel. + * + * The camera driver asks for it before the first frame and drops it after the + * last. Userspace has no plane, property or ioctl for it. Best effort: the + * camera does not wait on the result. A software indicator, not the secure + * one. See dcp-indicator.h. + */ +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "dcp.h" +#include "dcp-internal.h" +#include "dcp-indicator.h" +#include "plane.h" + +/* DCP rejects blended surfaces smaller than 32x32 (see plane.c). */ +#define IND_SIDE 48 +#define IND_MARGIN 12 +#define IND_BORDER 3 +#define IND_FILL 0xffff9500 +#define IND_EDGE 0xff000000 +#define IND_PRESENT_TIMEOUT msecs_to_jiffies(1000) + +int dcp_indicator_probe(struct apple_dcp *dcp) +{ + struct dcp_camera_indicator *ci = &dcp->camera_ind; + u32 surf; + + spin_lock_init(&ci->lock); + mutex_init(&ci->ctl); + init_completion(&ci->presented); + + if (of_property_read_u32(dcp->dev->of_node, "apple,camera-indicator-surface", &surf)) + return 0; + if (surf >= SWAP_SURFACES || test_bit(surf, dcp->iomfb_surfaces)) + return dev_err_probe(dcp->dev, -EINVAL, + "camera indicator surface %u is not free\n", surf); + ci->surf = surf; + ci->has_surf = true; + return 0; +} + +static void dcp_indicator_release(struct drm_device *drm, void *data) +{ + struct dcp_camera_indicator *ci = data; + + guard(mutex)(&ci->ctl); + if (ci->fb) + drm_framebuffer_put(ci->fb); + ci->fb = NULL; + ci->plane = NULL; + ci->has_surf = false; +} + +static const struct drm_framebuffer_funcs dcp_indicator_fb_funcs = { + .destroy = drm_gem_fb_destroy, + .create_handle = drm_gem_fb_create_handle, +}; + +static void dcp_indicator_paint(u32 *px) +{ + unsigned int x, y; + + for (y = 0; y < IND_SIDE; y++) + for (x = 0; x < IND_SIDE; x++) + px[y * IND_SIDE + x] = + (x < IND_BORDER || y < IND_BORDER || + x >= IND_SIDE - IND_BORDER || y >= IND_SIDE - IND_BORDER) ? + IND_EDGE : IND_FILL; +} + +/* + * Reserve the plane for the kernel and build the square it shows. A failure + * leaves the plane reserved and without a framebuffer, so userspace still + * cannot use it and the camera cannot start. + */ +int dcp_indicator_attach_plane(struct apple_dcp *dcp, struct drm_device *drm, + struct drm_plane *plane) +{ + struct dcp_camera_indicator *ci = &dcp->camera_ind; + struct drm_mode_fb_cmd2 cmd = { + .width = IND_SIDE, + .height = IND_SIDE, + .pixel_format = DRM_FORMAT_ARGB8888, + .pitches[0] = IND_SIDE * 4, + }; + struct drm_gem_dma_object *obj; + struct drm_framebuffer *fb; + int ret; + + to_apple_plane(plane)->indicator = true; + ci->plane = plane; + + obj = drm_gem_dma_create(drm, PAGE_ALIGN(IND_SIDE * IND_SIDE * 4)); + if (IS_ERR(obj)) + return PTR_ERR(obj); + dcp_indicator_paint(obj->vaddr); + + fb = kzalloc(sizeof(*fb), GFP_KERNEL); + if (!fb) { + drm_gem_object_put(&obj->base); + return -ENOMEM; + } + drm_helper_mode_fill_fb_struct(drm, fb, + drm_get_format_info(drm, cmd.pixel_format, cmd.modifier[0]), + &cmd); + fb->obj[0] = &obj->base; + ret = drm_framebuffer_init(drm, fb, &dcp_indicator_fb_funcs); + if (ret) { + drm_gem_object_put(&obj->base); + kfree(fb); + return ret; + } + /* Kernel-private: userspace must not find it by id. */ + drm_framebuffer_unregister_private(fb); + + ci->fb = fb; + to_apple_plane(plane)->indicator_fb = fb; + return drmm_add_action_or_reset(drm, dcp_indicator_release, ci); +} + +/* The atomic state the kernel itself commits: the square, or nothing. */ +static int dcp_indicator_commit(struct apple_dcp *dcp, bool on) +{ + struct dcp_camera_indicator *ci = &dcp->camera_ind; + struct drm_crtc *crtc; + struct drm_modeset_acquire_ctx ctx; + struct drm_atomic_commit *state; + struct drm_plane_state *ps; + struct drm_crtc_state *cs; + int ret; + + if (!dcp->crtc || !ci->plane || !ci->fb) + return -ENODEV; + crtc = &dcp->crtc->base; + + state = drm_atomic_commit_alloc(crtc->dev); + if (!state) + return -ENOMEM; + drm_modeset_acquire_init(&ctx, 0); + state->acquire_ctx = &ctx; +retry: + cs = drm_atomic_get_crtc_state(state, crtc); + if (IS_ERR(cs)) { + ret = PTR_ERR(cs); + goto out; + } + ps = drm_atomic_get_plane_state(state, ci->plane); + if (IS_ERR(ps)) { + ret = PTR_ERR(ps); + goto out; + } + if (on) { + if (!cs->active) { + ret = -ENODEV; + goto out; + } + ret = drm_atomic_set_crtc_for_plane(ps, crtc); + if (ret) + goto out; + drm_atomic_set_fb_for_plane(ps, ci->fb); + ps->src_x = 0; + ps->src_y = 0; + ps->src_w = IND_SIDE << 16; + ps->src_h = IND_SIDE << 16; + ps->crtc_x = cs->mode.hdisplay - IND_SIDE - IND_MARGIN; + ps->crtc_y = IND_MARGIN; + ps->crtc_w = IND_SIDE; + ps->crtc_h = IND_SIDE; + } else { + ret = drm_atomic_set_crtc_for_plane(ps, NULL); + if (ret) + goto out; + drm_atomic_set_fb_for_plane(ps, NULL); + } + WRITE_ONCE(to_apple_plane(ci->plane)->indicator_commit, state); + ret = drm_atomic_nonblocking_commit(state); + WRITE_ONCE(to_apple_plane(ci->plane)->indicator_commit, NULL); +out: + if (ret == -EDEADLK) { + drm_atomic_commit_clear(state); + ret = drm_modeset_backoff(&ctx); + if (!ret) + goto retry; + } + drm_atomic_commit_put(state); + drm_modeset_drop_locks(&ctx); + drm_modeset_acquire_fini(&ctx); + return ret; +} + +static void dcp_indicator_end(struct apple_dcp *dcp) +{ + struct dcp_camera_indicator *ci = &dcp->camera_ind; + unsigned long flags; + + spin_lock_irqsave(&ci->lock, flags); + dcp_ind_end(&ci->state); + spin_unlock_irqrestore(&ci->lock, flags); +} + +/* + * on: returns 0 once a present carried the square to the panel, within 1 s; + * otherwise an error and the indicator is left off. The caller streams either + * way. off: always succeeds. + */ +int apple_dcp_camera_indicator_set(struct device *dev, bool on) +{ + struct apple_dcp *dcp; + struct dcp_camera_indicator *ci; + unsigned long flags; + int ret; + + /* The device lock keeps the DCP bound, and its state alive, for the call. */ + guard(device)(dev); + dcp = dev_get_drvdata(dev); + if (!dcp || !dev->driver) + return on ? -ENODEV : 0; + ci = &dcp->camera_ind; + + guard(mutex)(&ci->ctl); + if (!ci->has_surf || !ci->fb) + return on ? -ENODEV : 0; + if (!on) { + dcp_indicator_end(dcp); + ret = dcp_indicator_commit(dcp, false); + if (ret) + dev_warn(dcp->dev, "camera indicator off commit failed: %d\n", ret); + return 0; + } + + spin_lock_irqsave(&ci->lock, flags); + ret = dcp_ind_begin(&ci->state); + reinit_completion(&ci->presented); + spin_unlock_irqrestore(&ci->lock, flags); + if (ret) + return ret; + + ret = dcp_indicator_commit(dcp, true); + if (!ret && !wait_for_completion_timeout(&ci->presented, IND_PRESENT_TIMEOUT)) + ret = -ETIMEDOUT; + if (ret) { + dcp_indicator_end(dcp); + dcp_indicator_commit(dcp, false); + } + return ret; +} +EXPORT_SYMBOL_GPL(apple_dcp_camera_indicator_set); + +/* A completed present: the first one that carried the square confirms it. */ +void dcp_indicator_swap_done(struct apple_dcp *dcp, struct drm_framebuffer *slot_fb) +{ + struct dcp_camera_indicator *ci = &dcp->camera_ind; + unsigned long flags; + + if (!ci->has_surf) + return; + spin_lock_irqsave(&ci->lock, flags); + dcp_ind_present_done(&ci->state, slot_fb && slot_fb == ci->fb); + if (ci->state.state == DCP_IND_LIT) + complete(&ci->presented); + spin_unlock_irqrestore(&ci->lock, flags); +} diff --git a/drivers/gpu/drm/apple/dcp-indicator.h b/drivers/gpu/drm/apple/dcp-indicator.h new file mode 100644 index 0000000000000..437fe425afefe --- /dev/null +++ b/drivers/gpu/drm/apple/dcp-indicator.h @@ -0,0 +1,62 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR MIT */ +/* + * Software camera indicator: pure state and policy. + * + * The kernel draws a small opaque square on a swap layer that userspace + * cannot address. It is best effort: the camera never waits on it and never + * depends on it. It is NOT the secure indicator Apple's firmware draws + * outside the OS: root who can run its own kernel defeats it. + */ +#ifndef DCP_INDICATOR_H +#define DCP_INDICATOR_H + +#include +#include + +enum dcp_ind_state { + DCP_IND_OFF, + /* Requested; no present carrying the square has completed yet. */ + DCP_IND_PENDING, + /* A present carrying the square completed. */ + DCP_IND_LIT, +}; + +struct dcp_indicator { + enum dcp_ind_state state; +}; + +/* One owner at a time: a second request cannot reset a running one. */ +static inline int dcp_ind_begin(struct dcp_indicator *ind) +{ + if (ind->state != DCP_IND_OFF) + return -EBUSY; + ind->state = DCP_IND_PENDING; + return 0; +} + +/* A completed present: the first one that carried the square confirms it. */ +static inline void dcp_ind_present_done(struct dcp_indicator *ind, bool dot_shown) +{ + if (ind->state == DCP_IND_PENDING && dot_shown) + ind->state = DCP_IND_LIT; +} + +static inline void dcp_ind_end(struct dcp_indicator *ind) +{ + ind->state = DCP_IND_OFF; +} + +/* + * The reserved plane belongs to the kernel. Any other commit that changes it + * (FB_ID=0, CRTC_ID=0, a client's own framebuffer, a move) is put back to the + * state the plane had, so a blind clear of every plane, as the console restore + * does, still succeeds. Carried unchanged, or disabled with the CRTC it sits + * on (DPMS off, suspend, shutdown), the plane is left alone. + */ +static inline bool dcp_ind_plane_must_restore(bool reserved_plane, bool kernel_commit, + bool unchanged, bool crtc_going_off) +{ + return reserved_plane && !kernel_commit && !unchanged && !crtc_going_off; +} + +#endif /* DCP_INDICATOR_H */ diff --git a/drivers/gpu/drm/apple/dcp-internal.h b/drivers/gpu/drm/apple/dcp-internal.h index ea38c3fd64de7..2444a29b9c79b 100644 --- a/drivers/gpu/drm/apple/dcp-internal.h +++ b/drivers/gpu/drm/apple/dcp-internal.h @@ -4,6 +4,7 @@ #ifndef __APPLE_DCP_INTERNAL_H__ #define __APPLE_DCP_INTERNAL_H__ +#include "dcp-indicator.h" #include #include #include @@ -442,7 +443,20 @@ bool dcp_panel_metadata_current(struct apple_dcp *dcp, u64 generation); void dcp_s2r_dart_power(struct apple_dcp *dcp, u32 on); +/* Kernel-owned software camera indicator; see dcp-indicator.c. */ +struct dcp_camera_indicator { + struct dcp_indicator state; + spinlock_t lock; + struct mutex ctl; + struct completion presented; + struct drm_plane *plane; + struct drm_framebuffer *fb; + u32 surf; + bool has_surf; +}; + struct apple_dcp { + struct dcp_camera_indicator camera_ind; /* Generation-specific wire/transaction state, sharing the common KMS owner. */ struct iomfb_m4 *v26_6; /* An adopted session has no confirmed firmware DMA stop boundary. */ @@ -1380,4 +1394,9 @@ void dcp_trace_panel_property(struct apple_dcp *dcp, int tag, const char *key, void dcp_panel_edid_receive(struct apple_dcp *dcp, const void *blob, size_t len); +int dcp_indicator_probe(struct apple_dcp *dcp); +int dcp_indicator_attach_plane(struct apple_dcp *dcp, struct drm_device *drm, + struct drm_plane *plane); +void dcp_indicator_swap_done(struct apple_dcp *dcp, struct drm_framebuffer *slot_fb); + #endif /* __APPLE_DCP_INTERNAL_H__ */ diff --git a/drivers/gpu/drm/apple/dcp.c b/drivers/gpu/drm/apple/dcp.c index 7cde46e009096..f101dcc6df3cc 100644 --- a/drivers/gpu/drm/apple/dcp.c +++ b/drivers/gpu/drm/apple/dcp.c @@ -7271,6 +7271,11 @@ static int dcp_platform_probe_pipe(struct platform_device *pdev) if (dcp_is_ext26(dcp)) { bitmap_zero(dcp->iomfb_surfaces, DCP_MAX_PLANES); set_bit(0, dcp->iomfb_surfaces); + { + int ret_ind = dcp_indicator_probe(dcp); + + if (ret_ind) + return ret_ind; } /* The J700 loader names surface zero rather than enabling it. */ diff --git a/drivers/gpu/drm/apple/iomfb.c b/drivers/gpu/drm/apple/iomfb.c index 1f3e97e6c5e9f..b4c83852c3dfb 100644 --- a/drivers/gpu/drm/apple/iomfb.c +++ b/drivers/gpu/drm/apple/iomfb.c @@ -3858,6 +3858,8 @@ void iomfb_scanout_complete_h17p(struct apple_dcp *dcp) scanout->request.swap.bg_color = previous->request.swap.bg_color; dcp->iomfb.scanout = scanout; dcp->iomfb.next_scanout = NULL; + if (dcp->camera_ind.has_surf) + dcp_indicator_swap_done(dcp, scanout->fb[dcp->camera_ind.surf]); iomfb_scanout_release_h17p(previous); } diff --git a/drivers/gpu/drm/apple/plane.c b/drivers/gpu/drm/apple/plane.c index e96ab8158ccc6..c30153592affc 100644 --- a/drivers/gpu/drm/apple/plane.c +++ b/drivers/gpu/drm/apple/plane.c @@ -3,11 +3,14 @@ * Copyright (C) The Asahi Linux Contributors */ +#include + #include "plane.h" #include "dcp.h" #include "dcp.h" #include "dcp-internal.h" +#include "dcp-indicator.h" #include "iomfb_internal.h" #include "iomfb_plane.h" @@ -236,6 +239,48 @@ static int apple_plane_atomic_check(struct drm_plane *plane, new_plane_state = drm_atomic_get_new_plane_state(commit, plane); + if (to_apple_plane(plane)->indicator) { + struct drm_plane_state *old = drm_atomic_get_old_plane_state(commit, plane); + struct drm_crtc_state *old_crtc_new = old->crtc ? + drm_atomic_get_new_crtc_state(commit, old->crtc) : NULL; + bool unchanged = new_plane_state->fb == old->fb && + new_plane_state->crtc == old->crtc && + new_plane_state->crtc_x == old->crtc_x && + new_plane_state->crtc_y == old->crtc_y && + new_plane_state->crtc_w == old->crtc_w && + new_plane_state->crtc_h == old->crtc_h && + new_plane_state->src_x == old->src_x && + new_plane_state->src_y == old->src_y && + new_plane_state->src_w == old->src_w && + new_plane_state->src_h == old->src_h && + new_plane_state->alpha == old->alpha && + new_plane_state->pixel_blend_mode == old->pixel_blend_mode && + new_plane_state->rotation == old->rotation; + bool going_off = !new_plane_state->fb && !new_plane_state->crtc && + old_crtc_new && !old_crtc_new->active; + + if (dcp_ind_plane_must_restore(true, + commit == READ_ONCE(to_apple_plane(plane)->indicator_commit), + unchanged, going_off)) { + int ret = drm_atomic_set_crtc_for_plane(new_plane_state, old->crtc); + + if (ret) + return ret; + drm_atomic_set_fb_for_plane(new_plane_state, old->fb); + new_plane_state->crtc_x = old->crtc_x; + new_plane_state->crtc_y = old->crtc_y; + new_plane_state->crtc_w = old->crtc_w; + new_plane_state->crtc_h = old->crtc_h; + new_plane_state->src_x = old->src_x; + new_plane_state->src_y = old->src_y; + new_plane_state->src_w = old->src_w; + new_plane_state->src_h = old->src_h; + new_plane_state->alpha = old->alpha; + new_plane_state->pixel_blend_mode = old->pixel_blend_mode; + new_plane_state->rotation = old->rotation; + } + } + if (!new_plane_state->crtc) return 0; diff --git a/drivers/gpu/drm/apple/plane.h b/drivers/gpu/drm/apple/plane.h index 8d5d25b9ffd5e..4990f04a90b74 100644 --- a/drivers/gpu/drm/apple/plane.h +++ b/drivers/gpu/drm/apple/plane.h @@ -15,6 +15,11 @@ struct apple_plane { struct drm_plane base; u32 iomfb_surf; + /* Reserved for the kernel camera indicator; userspace may not use it. */ + bool indicator; + struct drm_framebuffer *indicator_fb; + /* The kernel commit in flight, compared by pointer only. */ + const struct drm_atomic_commit *indicator_commit; }; #define to_apple_plane(x) container_of(x, struct apple_plane, base) diff --git a/include/linux/soc/apple/display.h b/include/linux/soc/apple/display.h index 1bf7c14f62178..2f4d2d8aa00e0 100644 --- a/include/linux/soc/apple/display.h +++ b/include/linux/soc/apple/display.h @@ -2,6 +2,10 @@ #ifndef _LINUX_SOC_APPLE_DISPLAY_H_ #define _LINUX_SOC_APPLE_DISPLAY_H_ +#include +#include +#include + struct device; /* Initial native display admission, before starting retained GPU firmware. */ @@ -9,4 +13,19 @@ int apple_drm_t6030_link_device(struct device *consumer); int apple_drm_t6031_link_device(struct device *consumer); int apple_drm_t8132_link_device(struct device *consumer); +/* + * Software camera indicator (interim, not the secure indicator): a + * kernel-owned overlay on the internal panel, requested best-effort by the + * camera driver. set(true) returns 0 once a present carried it to the panel; + * the camera streams regardless of the answer. + */ +#if IS_ENABLED(CONFIG_DRM_APPLE) +int apple_dcp_camera_indicator_set(struct device *dcp, bool on); +#else +static inline int apple_dcp_camera_indicator_set(struct device *dcp, bool on) +{ + return -ENODEV; +} +#endif + #endif From b093ab3e08120fb0c3a0a4c39a074b115ebefb10 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Thu, 12 Nov 2026 19:09:47 -0600 Subject: [PATCH 10/24] media: apple: isp: ask the DCP for a best-effort camera indicator The camera now requests a software indicator from the DCP named by the optional apple,camera-indicator property, before the firmware starts the channel, and removes it after the stream stops, on every stop path. The indicator never gates streaming: if the DCP is absent, unbound or cannot show the square, the driver warns once and the camera streams anyway. It is not a privacy guarantee. The DCP lookup never defers probe, and holds a device reference only when a device exists. VIDEO_APPLE_ISP depends on DRM_APPLE || !DRM_APPLE so a built-in driver cannot link a modular DCP. KUnit tests pin the contract: a failed request still streams, no DCP means no call, the request comes before the channel start and the removal after the stop, and a failed channel start or failed firmware still removes the square. Proof: built with LLVM with KUnit enabled (compile only; no kernel ran the tests and no hardware showed the square). Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- .../bindings/media/apple,t6050-isp.yaml | 8 + drivers/media/platform/apple/isp/Kconfig | 3 + .../media/platform/apple/isp/isp-cam-test.c | 144 ++++++++++++++++++ drivers/media/platform/apple/isp/isp-cam.c | 43 +++++- drivers/media/platform/apple/isp/isp-cmd.c | 10 +- drivers/media/platform/apple/isp/isp-drv.c | 27 ++++ drivers/media/platform/apple/isp/isp-drv.h | 7 + 7 files changed, 229 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/media/apple,t6050-isp.yaml b/Documentation/devicetree/bindings/media/apple,t6050-isp.yaml index 61892d3c8c17c..acae13ae04325 100644 --- a/Documentation/devicetree/bindings/media/apple,t6050-isp.yaml +++ b/Documentation/devicetree/bindings/media/apple,t6050-isp.yaml @@ -117,6 +117,14 @@ properties: description: Firmware temporal-filter strength selected for the attached sensor. + apple,camera-indicator: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Optional. The display coprocessor asked to present the software camera + indicator while the camera streams. The request is best-effort and the + camera streams whether or not the indicator is shown. The indicator is + software, not a privacy guarantee. + sensor-presets: type: object description: diff --git a/drivers/media/platform/apple/isp/Kconfig b/drivers/media/platform/apple/isp/Kconfig index 3967e51d472cf..48f9b401861b8 100644 --- a/drivers/media/platform/apple/isp/Kconfig +++ b/drivers/media/platform/apple/isp/Kconfig @@ -11,6 +11,9 @@ config VIDEO_APPLE_ISP depends on PM depends on V4L_PLATFORM_DRIVERS depends on VIDEO_DEV + # The camera indicator contract is exported by DRM_APPLE: a built-in + # ISP cannot link against a modular DRM_APPLE. + depends on DRM_APPLE || !DRM_APPLE help Driver for the image signal processor that runs the built-in camera of Apple silicon machines. The ISP firmware is loaded by diff --git a/drivers/media/platform/apple/isp/isp-cam-test.c b/drivers/media/platform/apple/isp/isp-cam-test.c index 4cb1ae2800182..cce2f59d88be5 100644 --- a/drivers/media/platform/apple/isp/isp-cam-test.c +++ b/drivers/media/platform/apple/isp/isp-cam-test.c @@ -705,6 +705,145 @@ static void isp_test_call_size_capabilities(struct kunit *test) KUNIT_EXPECT_EQ(test, isp->presets[8].output_dim.y, 1536); } +/* + * Camera indicator, best-effort: the DCP set(true) is requested before the + * firmware stream, set(false) follows the stream and the watchdog, and the + * camera streams whether or not the indicator came up. The DCP set wrapper + * and the channel commands are stubbed; the real ones are never called. + */ +struct isp_test_indicator_trace { + unsigned int order; + unsigned int fw_start_at; + unsigned int fw_stop_at; + unsigned int set_on_at; + unsigned int set_off_at; + int fw_start_result; + int set_on_result; +}; + +static int isp_test_indicator_set(struct device *dcp, bool on) +{ + struct kunit *test = kunit_get_current_test(); + struct isp_test_indicator_trace *trace = test->priv; + + if (on) { + trace->set_on_at = ++trace->order; + return trace->set_on_result; + } + trace->set_off_at = ++trace->order; + return 0; +} + +static int isp_test_fw_start(struct apple_isp *isp, u32 chan) +{ + struct kunit *test = kunit_get_current_test(); + struct isp_test_indicator_trace *trace = test->priv; + + trace->fw_start_at = ++trace->order; + return trace->fw_start_result; +} + +static int isp_test_fw_stop(struct apple_isp *isp, u32 chan) +{ + struct kunit *test = kunit_get_current_test(); + struct isp_test_indicator_trace *trace = test->priv; + + trace->fw_stop_at = ++trace->order; + return 0; +} + +static int isp_test_fw_bufret(struct apple_isp *isp, u32 chan) +{ + return 0; +} + +static struct apple_isp *isp_test_indicator_alloc(struct kunit *test) +{ + struct apple_isp *isp = isp_test_capture_alloc(test); + + isp->dcp = isp->dev; + return isp; +} + +static void isp_test_indicator_set_fails_still_streams(struct kunit *test) +{ + struct apple_isp *isp = isp_test_indicator_alloc(test); + struct isp_test_indicator_trace trace = { .set_on_result = -EIO }; + + test->priv = &trace; + kunit_activate_static_stub(test, apple_isp_dcp_indicator_set, + isp_test_indicator_set); + kunit_activate_static_stub(test, isp_cmd_ch_start, isp_test_fw_start); + KUNIT_EXPECT_EQ(test, apple_isp_start_capture(isp), 0); + KUNIT_EXPECT_EQ(test, trace.set_on_at, 1); + KUNIT_EXPECT_EQ(test, trace.fw_start_at, 2); + KUNIT_EXPECT_EQ(test, trace.set_off_at, 0); +} + +static void isp_test_no_indicator_still_streams(struct kunit *test) +{ + struct apple_isp *isp = isp_test_indicator_alloc(test); + struct isp_test_indicator_trace trace = {}; + + isp->dcp = NULL; + test->priv = &trace; + kunit_activate_static_stub(test, isp_cmd_ch_start, isp_test_fw_start); + KUNIT_EXPECT_EQ(test, apple_isp_start_capture(isp), 0); + KUNIT_EXPECT_EQ(test, trace.fw_start_at, 1); + KUNIT_EXPECT_EQ(test, trace.set_on_at, 0); +} + +static void isp_test_indicator_on_precedes_stream(struct kunit *test) +{ + struct apple_isp *isp = isp_test_indicator_alloc(test); + struct isp_test_indicator_trace trace = {}; + + test->priv = &trace; + kunit_activate_static_stub(test, apple_isp_dcp_indicator_set, + isp_test_indicator_set); + kunit_activate_static_stub(test, isp_cmd_ch_start, isp_test_fw_start); + KUNIT_EXPECT_EQ(test, apple_isp_start_capture(isp), 0); + KUNIT_EXPECT_EQ(test, trace.set_on_at, 1); + KUNIT_EXPECT_EQ(test, trace.fw_start_at, 2); + + kunit_activate_static_stub(test, isp_cmd_ch_stop, isp_test_fw_stop); + kunit_activate_static_stub(test, isp_cmd_ch_buffer_return, + isp_test_fw_bufret); + isp->fw_state = ISP_FW_RUNNING; + apple_isp_stop_capture(isp); + KUNIT_EXPECT_EQ(test, trace.fw_stop_at, 3); + KUNIT_EXPECT_EQ(test, trace.set_off_at, 4); +} + +static void isp_test_stream_failure_lights_off(struct kunit *test) +{ + struct apple_isp *isp = isp_test_indicator_alloc(test); + struct isp_test_indicator_trace trace = { .fw_start_result = -ETIME }; + + test->priv = &trace; + kunit_activate_static_stub(test, apple_isp_dcp_indicator_set, + isp_test_indicator_set); + kunit_activate_static_stub(test, isp_cmd_ch_start, isp_test_fw_start); + KUNIT_EXPECT_EQ(test, apple_isp_start_capture(isp), -ETIME); + KUNIT_EXPECT_EQ(test, trace.set_on_at, 1); + KUNIT_EXPECT_EQ(test, trace.set_off_at, 2); +} + +static void isp_test_failed_fw_stop_lights_off(struct kunit *test) +{ + struct apple_isp *isp = isp_test_indicator_alloc(test); + struct isp_test_indicator_trace trace = {}; + + isp->ipc_failed = true; + test->priv = &trace; + kunit_activate_static_stub(test, apple_isp_dcp_indicator_set, + isp_test_indicator_set); + kunit_activate_static_stub(test, isp_cmd_ch_stop, isp_test_fw_stop); + apple_isp_stop_capture(isp); + KUNIT_EXPECT_EQ(test, trace.fw_stop_at, 0); + KUNIT_EXPECT_EQ(test, trace.set_off_at, 1); +} + static struct kunit_case isp_cam_test_cases[] = { KUNIT_CASE(isp_test_call_crop), KUNIT_CASE(isp_test_call_crop_bounds), @@ -722,6 +861,11 @@ static struct kunit_case isp_cam_test_cases[] = { KUNIT_CASE(isp_test_temporal_filter_band0), KUNIT_CASE(isp_test_temporal_filter_off), KUNIT_CASE(isp_test_power_line_frequency), + KUNIT_CASE(isp_test_indicator_set_fails_still_streams), + KUNIT_CASE(isp_test_no_indicator_still_streams), + KUNIT_CASE(isp_test_indicator_on_precedes_stream), + KUNIT_CASE(isp_test_stream_failure_lights_off), + KUNIT_CASE(isp_test_failed_fw_stop_lights_off), {} }; diff --git a/drivers/media/platform/apple/isp/isp-cam.c b/drivers/media/platform/apple/isp/isp-cam.c index e3c39232e727b..34cac1eb25c2b 100644 --- a/drivers/media/platform/apple/isp/isp-cam.c +++ b/drivers/media/platform/apple/isp/isp-cam.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include "isp-cam.h" @@ -1078,29 +1079,57 @@ void apple_isp_wdt_stop(struct apple_isp *isp) isp->wdt_running = false; } +/* + * The DCP contract function is implemented by the DRM side. This wrapper is + * the seam the KUnit tests stub, and the only caller of the contract. + */ +static int apple_isp_dcp_indicator_set(struct device *dcp, bool on) +{ + KUNIT_STATIC_STUB_REDIRECT(apple_isp_dcp_indicator_set, dcp, on); + return apple_dcp_camera_indicator_set(dcp, on); +} + int apple_isp_start_capture(struct apple_isp *isp) { int err; + /* + * Best-effort software indicator, not a privacy guarantee: the dot + * is requested before the sensor may stream, but the camera does + * not depend on it. + */ + if (apple_isp_camera_indicator(isp)) { + err = apple_isp_dcp_indicator_set(isp->dcp, true); + if (err) + dev_warn_once(isp->dev, "camera indicator not shown: %d\n", err); + } + /* Serviced from before the channel starts... */ apple_isp_wdt_start(isp); err = isp_cmd_ch_start(isp, 0); // TODO channel mask - if (err) + if (err) { apple_isp_wdt_stop(isp); + if (apple_isp_camera_indicator(isp)) + apple_isp_dcp_indicator_set(isp->dcp, false); + } return err; } void apple_isp_stop_capture(struct apple_isp *isp) { - if (isp->ipc_failed || isp->fw_state != ISP_FW_RUNNING) - return; - if (!isp_cmd_ch_stop(isp, 0)) /* TODO channel mask */ - isp_cmd_ch_buffer_return(isp, isp->current_ch); + if (!isp->ipc_failed && isp->fw_state == ISP_FW_RUNNING) { + if (!isp_cmd_ch_stop(isp, 0)) /* TODO channel mask */ + isp_cmd_ch_buffer_return(isp, isp->current_ch); + + /* ... until its buffers are back. */ + apple_isp_wdt_stop(isp); + } - /* ... until its buffers are back. */ - apple_isp_wdt_stop(isp); + /* The indicator follows the stream off, however the stream stopped. */ + if (apple_isp_camera_indicator(isp)) + apple_isp_dcp_indicator_set(isp->dcp, false); } #if IS_ENABLED(CONFIG_VIDEO_APPLE_ISP_KUNIT_TEST) diff --git a/drivers/media/platform/apple/isp/isp-cmd.c b/drivers/media/platform/apple/isp/isp-cmd.c index a609fe2c34163..7fb5203e71aea 100644 --- a/drivers/media/platform/apple/isp/isp-cmd.c +++ b/drivers/media/platform/apple/isp/isp-cmd.c @@ -5,11 +5,8 @@ #include "isp-drv.h" #include "isp-iommu.h" #include "isp-ipc.h" -#include - -#if IS_ENABLED(CONFIG_VIDEO_APPLE_ISP_KUNIT_TEST) #include -#endif +#include #define CISP_OPCODE_SHIFT 32UL #define CISP_OPCODE(x) (((u64)(x)) << CISP_OPCODE_SHIFT) @@ -78,9 +75,7 @@ int isp_cmd_send(struct apple_isp *isp, void *args, u32 insize, u32 outsize, int if (READ_ONCE(isp->ipc_error)) return READ_ONCE(isp->ipc_error); -#if IS_ENABLED(CONFIG_VIDEO_APPLE_ISP_KUNIT_TEST) KUNIT_STATIC_STUB_REDIRECT(isp_cmd_send, isp, args, insize, outsize, timeout); -#endif return isp_cmd_send_chan(isp, isp->chan_io, args, insize, outsize, timeout); } @@ -288,6 +283,7 @@ int isp_cmd_fid_exit(struct apple_isp *isp) int isp_cmd_ch_start(struct apple_isp *isp, u32 chan) { + KUNIT_STATIC_STUB_REDIRECT(isp_cmd_ch_start, isp, chan); struct cmd_ch_start args = { .opcode = CISP_OPCODE(CISP_CMD_CH_START), .chan = chan, @@ -297,6 +293,7 @@ int isp_cmd_ch_start(struct apple_isp *isp, u32 chan) int isp_cmd_ch_stop(struct apple_isp *isp, u32 chan) { + KUNIT_STATIC_STUB_REDIRECT(isp_cmd_ch_stop, isp, chan); struct cmd_ch_stop args = { .opcode = CISP_OPCODE(CISP_CMD_CH_STOP), .chan = chan, @@ -370,6 +367,7 @@ int isp_cmd_ch_camera_config_select(struct apple_isp *isp, u32 chan, u32 preset) int isp_cmd_ch_buffer_return(struct apple_isp *isp, u32 chan) { + KUNIT_STATIC_STUB_REDIRECT(isp_cmd_ch_buffer_return, isp, chan); struct cmd_ch_buffer_return args = { .opcode = CISP_OPCODE(CISP_CMD_CH_BUFFER_RETURN), .chan = chan, diff --git a/drivers/media/platform/apple/isp/isp-drv.c b/drivers/media/platform/apple/isp/isp-drv.c index f0410cea88b5f..b3788ecb57d32 100644 --- a/drivers/media/platform/apple/isp/isp-drv.c +++ b/drivers/media/platform/apple/isp/isp-drv.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -687,6 +688,27 @@ static int apple_isp_pm_notify(struct notifier_block *nb, unsigned long event, return NOTIFY_DONE; } +/* + * The DCP presenting the software camera indicator (apple,camera-indicator), + * best-effort: the camera probes and streams without it. When the node names + * a DCP that exists, a device reference is held for the driver's lifetime + * and put at remove; otherwise there is no indicator and no reference. + */ +static struct device *apple_isp_indicator_dcp(struct device *dev) +{ + struct device_node *np; + struct platform_device *dcp; + + np = of_parse_phandle(dev->of_node, "apple,camera-indicator", 0); + if (!np) + return NULL; + dcp = of_find_device_by_node(np); + of_node_put(np); + if (!dcp) + return NULL; + return &dcp->dev; +} + static int apple_isp_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -708,6 +730,9 @@ static int apple_isp_probe(struct platform_device *pdev) isp->dev = dev; isp->hw = of_device_get_match_data(dev); + isp->dcp = apple_isp_indicator_dcp(dev); + if (isp->dcp) + dev_notice(dev, "best-effort software camera indicator via the DCP; not a privacy guarantee, the camera does not depend on it\n"); platform_set_drvdata(pdev, isp); dev_set_drvdata(dev, isp); @@ -895,6 +920,7 @@ static int apple_isp_probe(struct platform_device *pdev) detach_genpd: apple_isp_detach_genpd(isp); free_isp: + put_device(isp->dcp); kfree(isp->sensor_configs); /* Nothing else can reach it before the video device is registered. */ kfree(isp); @@ -918,6 +944,7 @@ static void apple_isp_remove(struct platform_device *pdev) apple_isp_free_iommu(isp); destroy_workqueue(isp->wq); apple_isp_detach_genpd(isp); + put_device(isp->dcp); /* Freed now, or when the last open file is closed. */ v4l2_device_put(&isp->v4l2_dev); } diff --git a/drivers/media/platform/apple/isp/isp-drv.h b/drivers/media/platform/apple/isp/isp-drv.h index 3551018baf174..19e913e07b6ca 100644 --- a/drivers/media/platform/apple/isp/isp-drv.h +++ b/drivers/media/platform/apple/isp/isp-drv.h @@ -354,6 +354,8 @@ struct isp_format { struct apple_isp { struct device *dev; const struct apple_isp_hw *hw; + /* The DCP presenting the software camera indicator (apple,camera-indicator) */ + struct device *dcp; enum isp_firmware_version fw_compat; bool preview_26; u32 platform_id; @@ -579,4 +581,9 @@ static inline unsigned int isp_num_meta(struct apple_isp *isp) return isp_is_p010(isp) ? 8 : ISP_MAX_BUFFERS; } +static inline bool apple_isp_camera_indicator(const struct apple_isp *isp) +{ + return !!isp->dcp; +} + #endif /* __ISP_DRV_H__ */ From 016a251fabd42de7399783068bad612c8796adc3 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Thu, 12 Nov 2026 21:46:59 -0600 Subject: [PATCH 11/24] drm/apple: camera indicator: never wait, survive a rebind, no unlocked mutex A review of the camera indicator found these faults, all in the DCP half. set(true) waited up to 1 s for the present, so a DCP that never composites the slot delayed every stream start by a second and then showed no dot. It now returns once the request is committed, and a delayed work confirms the present or withdraws the square after 1 s with a warning. Releasing the plane cleared has_surf, a device-tree constant, so after a rebind of the DRM master apple_probe_per_dcp built no plane and the indicator was gone until reboot. It also left a LIT state across the unbind because set(false) returned before it ended the state. The release now runs from the DCP's component unbind, while the DCP and the drm_device are both alive (a drmm action ran after the DCP's memory was freed), clears the plane, the framebuffer and the state, and keeps has_surf and surf. A DCP that took the ext failsafe path never ran dcp_indicator_probe, so a camera phandle pointing at it locked an uninitialised mutex. set() now tests has_surf, which is zero there, before it locks. The J700 surface-0 fix-up ran after dcp_indicator_probe, so surface 0 passed the free-surface test and then collided. The probe now runs after it. Also removes the unread indicator_fb field and two comments that said the camera stays off on failure. Tested: drivers/gpu/drm/apple builds with LLVM and no warnings. Not booted, KUnit not run. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- drivers/gpu/drm/apple/apple_drv.c | 2 +- drivers/gpu/drm/apple/dcp-indicator.c | 89 ++++++++++++++++++++------- drivers/gpu/drm/apple/dcp-internal.h | 3 +- drivers/gpu/drm/apple/dcp.c | 9 +++ drivers/gpu/drm/apple/plane.h | 1 - include/linux/soc/apple/display.h | 5 +- 6 files changed, 81 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/apple/apple_drv.c b/drivers/gpu/drm/apple/apple_drv.c index 7696c86c39768..0a14a1709133a 100644 --- a/drivers/gpu/drm/apple/apple_drv.c +++ b/drivers/gpu/drm/apple/apple_drv.c @@ -1196,7 +1196,7 @@ static int apple_probe_per_dcp(struct device *dev, ret = drm_plane_create_zpos_immutable_property(ind_plane, zpos++); if (ret) return ret; - /* Without its buffer the plane stays reserved and the camera stays off. */ + /* Without its buffer the plane stays reserved and no indicator is shown. */ ret = dcp_indicator_attach_plane(dcp_data, drm, ind_plane); if (ret) dev_err(dev, "camera indicator unavailable: %d\n", ret); diff --git a/drivers/gpu/drm/apple/dcp-indicator.c b/drivers/gpu/drm/apple/dcp-indicator.c index 843e6b012ed42..91fe26d464b98 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.c +++ b/drivers/gpu/drm/apple/dcp-indicator.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -20,7 +21,6 @@ #include #include #include -#include #include #include "dcp.h" @@ -36,6 +36,8 @@ #define IND_EDGE 0xff000000 #define IND_PRESENT_TIMEOUT msecs_to_jiffies(1000) +static void dcp_indicator_watch(struct work_struct *work); + int dcp_indicator_probe(struct apple_dcp *dcp) { struct dcp_camera_indicator *ci = &dcp->camera_ind; @@ -43,7 +45,7 @@ int dcp_indicator_probe(struct apple_dcp *dcp) spin_lock_init(&ci->lock); mutex_init(&ci->ctl); - init_completion(&ci->presented); + INIT_DELAYED_WORK(&ci->watch, dcp_indicator_watch); if (of_property_read_u32(dcp->dev->of_node, "apple,camera-indicator-surface", &surf)) return 0; @@ -55,16 +57,27 @@ int dcp_indicator_probe(struct apple_dcp *dcp) return 0; } -static void dcp_indicator_release(struct drm_device *drm, void *data) +/* + * From the DCP's component unbind, while the DCP and the drm_device are both + * alive: a drmm action would run after the DCP's memory is gone. surf and + * has_surf come from the device tree, so the next bind builds the plane again. + */ +void dcp_indicator_release(struct apple_dcp *dcp) { - struct dcp_camera_indicator *ci = data; + struct dcp_camera_indicator *ci = &dcp->camera_ind; + unsigned long flags; + if (!ci->has_surf) + return; + cancel_delayed_work_sync(&ci->watch); guard(mutex)(&ci->ctl); if (ci->fb) drm_framebuffer_put(ci->fb); ci->fb = NULL; ci->plane = NULL; - ci->has_surf = false; + spin_lock_irqsave(&ci->lock, flags); + dcp_ind_end(&ci->state); + spin_unlock_irqrestore(&ci->lock, flags); } static const struct drm_framebuffer_funcs dcp_indicator_fb_funcs = { @@ -86,8 +99,8 @@ static void dcp_indicator_paint(u32 *px) /* * Reserve the plane for the kernel and build the square it shows. A failure - * leaves the plane reserved and without a framebuffer, so userspace still - * cannot use it and the camera cannot start. + * leaves the plane reserved and without a framebuffer: userspace still + * cannot use it, no indicator is shown, and the camera streams anyway. */ int dcp_indicator_attach_plane(struct apple_dcp *dcp, struct drm_device *drm, struct drm_plane *plane) @@ -130,8 +143,7 @@ int dcp_indicator_attach_plane(struct apple_dcp *dcp, struct drm_device *drm, drm_framebuffer_unregister_private(fb); ci->fb = fb; - to_apple_plane(plane)->indicator_fb = fb; - return drmm_add_action_or_reset(drm, dcp_indicator_release, ci); + return 0; } /* The atomic state the kernel itself commits: the square, or nothing. */ @@ -215,9 +227,36 @@ static void dcp_indicator_end(struct apple_dcp *dcp) } /* - * on: returns 0 once a present carried the square to the panel, within 1 s; - * otherwise an error and the indicator is left off. The caller streams either - * way. off: always succeeds. + * One second after a request, a square that no present has carried to the + * panel is withdrawn and said so. Nothing waits for this: the camera streams + * from the moment set(true) returns. + */ +static void dcp_indicator_watch(struct work_struct *work) +{ + struct dcp_camera_indicator *ci = + container_of(work, struct dcp_camera_indicator, watch.work); + struct apple_dcp *dcp = container_of(ci, struct apple_dcp, camera_ind); + unsigned long flags; + bool pending; + + guard(mutex)(&ci->ctl); + spin_lock_irqsave(&ci->lock, flags); + pending = ci->state.state == DCP_IND_PENDING; + spin_unlock_irqrestore(&ci->lock, flags); + if (!pending) + return; + + dev_warn(dcp->dev, "camera indicator not presented within %u ms, withdrawn\n", + jiffies_to_msecs(IND_PRESENT_TIMEOUT)); + dcp_indicator_end(dcp); + dcp_indicator_commit(dcp, false); +} + +/* + * on: requests the square and returns 0 once the request is committed; the + * present that carries it is confirmed, or withdrawn, within 1 s without + * blocking the caller. An error means no indicator. off: always succeeds. The + * caller streams either way. */ int apple_dcp_camera_indicator_set(struct device *dev, bool on) { @@ -232,33 +271,39 @@ int apple_dcp_camera_indicator_set(struct device *dev, bool on) if (!dcp || !dev->driver) return on ? -ENODEV : 0; ci = &dcp->camera_ind; + /* Set from the device tree at probe, so a DCP that never probed it has no lock to take. */ + if (!ci->has_surf) + return on ? -ENODEV : 0; guard(mutex)(&ci->ctl); - if (!ci->has_surf || !ci->fb) - return on ? -ENODEV : 0; if (!on) { + cancel_delayed_work(&ci->watch); dcp_indicator_end(dcp); - ret = dcp_indicator_commit(dcp, false); - if (ret) - dev_warn(dcp->dev, "camera indicator off commit failed: %d\n", ret); + if (ci->fb) { + ret = dcp_indicator_commit(dcp, false); + if (ret) + dev_warn(dcp->dev, "camera indicator off commit failed: %d\n", + ret); + } return 0; } + if (!ci->fb) + return -ENODEV; spin_lock_irqsave(&ci->lock, flags); ret = dcp_ind_begin(&ci->state); - reinit_completion(&ci->presented); spin_unlock_irqrestore(&ci->lock, flags); if (ret) return ret; ret = dcp_indicator_commit(dcp, true); - if (!ret && !wait_for_completion_timeout(&ci->presented, IND_PRESENT_TIMEOUT)) - ret = -ETIMEDOUT; if (ret) { dcp_indicator_end(dcp); dcp_indicator_commit(dcp, false); + return ret; } - return ret; + mod_delayed_work(system_percpu_wq, &ci->watch, IND_PRESENT_TIMEOUT); + return 0; } EXPORT_SYMBOL_GPL(apple_dcp_camera_indicator_set); @@ -272,7 +317,5 @@ void dcp_indicator_swap_done(struct apple_dcp *dcp, struct drm_framebuffer *slot return; spin_lock_irqsave(&ci->lock, flags); dcp_ind_present_done(&ci->state, slot_fb && slot_fb == ci->fb); - if (ci->state.state == DCP_IND_LIT) - complete(&ci->presented); spin_unlock_irqrestore(&ci->lock, flags); } diff --git a/drivers/gpu/drm/apple/dcp-internal.h b/drivers/gpu/drm/apple/dcp-internal.h index 2444a29b9c79b..d7eeafe71b43c 100644 --- a/drivers/gpu/drm/apple/dcp-internal.h +++ b/drivers/gpu/drm/apple/dcp-internal.h @@ -448,7 +448,7 @@ struct dcp_camera_indicator { struct dcp_indicator state; spinlock_t lock; struct mutex ctl; - struct completion presented; + struct delayed_work watch; struct drm_plane *plane; struct drm_framebuffer *fb; u32 surf; @@ -1395,6 +1395,7 @@ void dcp_trace_panel_property(struct apple_dcp *dcp, int tag, const char *key, void dcp_panel_edid_receive(struct apple_dcp *dcp, const void *blob, size_t len); int dcp_indicator_probe(struct apple_dcp *dcp); +void dcp_indicator_release(struct apple_dcp *dcp); int dcp_indicator_attach_plane(struct apple_dcp *dcp, struct drm_device *drm, struct drm_plane *plane); void dcp_indicator_swap_done(struct apple_dcp *dcp, struct drm_framebuffer *slot_fb); diff --git a/drivers/gpu/drm/apple/dcp.c b/drivers/gpu/drm/apple/dcp.c index f101dcc6df3cc..dcb2d7fdcd035 100644 --- a/drivers/gpu/drm/apple/dcp.c +++ b/drivers/gpu/drm/apple/dcp.c @@ -6614,6 +6614,7 @@ VISIBLE_IF_KUNIT void dcp_comp_unbind(struct device *dev, struct device *main, v return; if (IS_ENABLED(CONFIG_APPLE_SOC_SLEEP)) apple_sleep_v27_unregister(dev); + dcp_indicator_release(dcp); dcp_peer_forget(dcp); /* * Stop the native initializer before looking up its owner, including @@ -7271,6 +7272,7 @@ static int dcp_platform_probe_pipe(struct platform_device *pdev) if (dcp_is_ext26(dcp)) { bitmap_zero(dcp->iomfb_surfaces, DCP_MAX_PLANES); set_bit(0, dcp->iomfb_surfaces); + } { int ret_ind = dcp_indicator_probe(dcp); @@ -7286,6 +7288,13 @@ static int dcp_platform_probe_pipe(struct platform_device *pdev) surf_en == 0) set_bit(0, dcp->iomfb_surfaces); + { + int ret_ind = dcp_indicator_probe(dcp); + + if (ret_ind) + return ret_ind; + } + if (dcp->phy) { int ret; /* diff --git a/drivers/gpu/drm/apple/plane.h b/drivers/gpu/drm/apple/plane.h index 4990f04a90b74..ae516b3b0b7e3 100644 --- a/drivers/gpu/drm/apple/plane.h +++ b/drivers/gpu/drm/apple/plane.h @@ -17,7 +17,6 @@ struct apple_plane { u32 iomfb_surf; /* Reserved for the kernel camera indicator; userspace may not use it. */ bool indicator; - struct drm_framebuffer *indicator_fb; /* The kernel commit in flight, compared by pointer only. */ const struct drm_atomic_commit *indicator_commit; }; diff --git a/include/linux/soc/apple/display.h b/include/linux/soc/apple/display.h index 2f4d2d8aa00e0..89e9f8d90e1f4 100644 --- a/include/linux/soc/apple/display.h +++ b/include/linux/soc/apple/display.h @@ -16,8 +16,9 @@ int apple_drm_t8132_link_device(struct device *consumer); /* * Software camera indicator (interim, not the secure indicator): a * kernel-owned overlay on the internal panel, requested best-effort by the - * camera driver. set(true) returns 0 once a present carried it to the panel; - * the camera streams regardless of the answer. + * camera driver. set(true) returns 0 once the request is committed, without + * waiting for the present; a square no present carries within 1 s is + * withdrawn with a warning. The camera streams regardless of the answer. */ #if IS_ENABLED(CONFIG_DRM_APPLE) int apple_dcp_camera_indicator_set(struct device *dcp, bool on); From 3c6965c0946cb2a7a16a38ca6101f0c8d4042367 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Thu, 12 Nov 2026 21:47:00 -0600 Subject: [PATCH 12/24] media: apple: isp: look the camera indicator DCP up at stream start The ISP looked the DCP up once at probe and, if the DCP platform device did not exist yet, silently had no indicator for the life of the driver. It now keeps the phandle's node and looks the device up when a stream starts, and says so when the DCP is still missing. Without CONFIG_DRM_APPLE the property is not looked up, so the probe notice no longer claims an indicator the stub cannot show. The failure warning is rate-limited instead of once per boot, so a later failure (panel off, timeout) is visible. The KUnit case isp_test_stream_failure_lights_off expected the indicator-off call at step 2, but the stubbed firmware start takes step 2, so off is step 3 (on=1, firmware start=2, off=3). The expectation is fixed and now also checks the firmware start. Tested: the ISP builds with LLVM and no warnings. KUnit compiled, not run. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- .../media/platform/apple/isp/isp-cam-test.c | 3 +- drivers/media/platform/apple/isp/isp-cam.c | 21 +++++++++++++- drivers/media/platform/apple/isp/isp-drv.c | 28 +++++++------------ drivers/media/platform/apple/isp/isp-drv.h | 6 +++- 4 files changed, 37 insertions(+), 21 deletions(-) diff --git a/drivers/media/platform/apple/isp/isp-cam-test.c b/drivers/media/platform/apple/isp/isp-cam-test.c index cce2f59d88be5..a306f72a4e9de 100644 --- a/drivers/media/platform/apple/isp/isp-cam-test.c +++ b/drivers/media/platform/apple/isp/isp-cam-test.c @@ -826,7 +826,8 @@ static void isp_test_stream_failure_lights_off(struct kunit *test) kunit_activate_static_stub(test, isp_cmd_ch_start, isp_test_fw_start); KUNIT_EXPECT_EQ(test, apple_isp_start_capture(isp), -ETIME); KUNIT_EXPECT_EQ(test, trace.set_on_at, 1); - KUNIT_EXPECT_EQ(test, trace.set_off_at, 2); + KUNIT_EXPECT_EQ(test, trace.fw_start_at, 2); + KUNIT_EXPECT_EQ(test, trace.set_off_at, 3); } static void isp_test_failed_fw_stop_lights_off(struct kunit *test) diff --git a/drivers/media/platform/apple/isp/isp-cam.c b/drivers/media/platform/apple/isp/isp-cam.c index 34cac1eb25c2b..83d8fc5758ac6 100644 --- a/drivers/media/platform/apple/isp/isp-cam.c +++ b/drivers/media/platform/apple/isp/isp-cam.c @@ -3,6 +3,7 @@ #include #include +#include #include #include #include @@ -1089,6 +1090,23 @@ static int apple_isp_dcp_indicator_set(struct device *dcp, bool on) return apple_dcp_camera_indicator_set(dcp, on); } +/* The DCP may probe after the ISP, so it is looked up when a stream starts. */ +static void apple_isp_indicator_bind(struct apple_isp *isp) +{ + struct platform_device *pdev; + + if (isp->dcp || !isp->dcp_np) + return; + pdev = of_find_device_by_node(isp->dcp_np); + if (!pdev) { + dev_warn_ratelimited(isp->dev, + "camera indicator: its DCP is not probed, no indicator for this stream\n"); + return; + } + isp->dcp = &pdev->dev; + dev_notice(isp->dev, "best-effort software camera indicator via the DCP; not a privacy guarantee, the camera does not depend on it\n"); +} + int apple_isp_start_capture(struct apple_isp *isp) { int err; @@ -1098,10 +1116,11 @@ int apple_isp_start_capture(struct apple_isp *isp) * is requested before the sensor may stream, but the camera does * not depend on it. */ + apple_isp_indicator_bind(isp); if (apple_isp_camera_indicator(isp)) { err = apple_isp_dcp_indicator_set(isp->dcp, true); if (err) - dev_warn_once(isp->dev, "camera indicator not shown: %d\n", err); + dev_warn_ratelimited(isp->dev, "camera indicator not shown: %d\n", err); } /* Serviced from before the channel starts... */ diff --git a/drivers/media/platform/apple/isp/isp-drv.c b/drivers/media/platform/apple/isp/isp-drv.c index b3788ecb57d32..f52732d5294cd 100644 --- a/drivers/media/platform/apple/isp/isp-drv.c +++ b/drivers/media/platform/apple/isp/isp-drv.c @@ -689,24 +689,16 @@ static int apple_isp_pm_notify(struct notifier_block *nb, unsigned long event, } /* - * The DCP presenting the software camera indicator (apple,camera-indicator), - * best-effort: the camera probes and streams without it. When the node names - * a DCP that exists, a device reference is held for the driver's lifetime - * and put at remove; otherwise there is no indicator and no reference. + * The node of the DCP presenting the software camera indicator + * (apple,camera-indicator), best-effort: the camera probes and streams without + * it. Not looked up without the DRM driver, which has nothing to ask. The DCP + * device is found when a stream starts, because it may probe after the ISP. */ -static struct device *apple_isp_indicator_dcp(struct device *dev) +static struct device_node *apple_isp_indicator_node(struct device *dev) { - struct device_node *np; - struct platform_device *dcp; - - np = of_parse_phandle(dev->of_node, "apple,camera-indicator", 0); - if (!np) - return NULL; - dcp = of_find_device_by_node(np); - of_node_put(np); - if (!dcp) + if (!IS_ENABLED(CONFIG_DRM_APPLE)) return NULL; - return &dcp->dev; + return of_parse_phandle(dev->of_node, "apple,camera-indicator", 0); } static int apple_isp_probe(struct platform_device *pdev) @@ -730,9 +722,7 @@ static int apple_isp_probe(struct platform_device *pdev) isp->dev = dev; isp->hw = of_device_get_match_data(dev); - isp->dcp = apple_isp_indicator_dcp(dev); - if (isp->dcp) - dev_notice(dev, "best-effort software camera indicator via the DCP; not a privacy guarantee, the camera does not depend on it\n"); + isp->dcp_np = apple_isp_indicator_node(dev); platform_set_drvdata(pdev, isp); dev_set_drvdata(dev, isp); @@ -921,6 +911,7 @@ static int apple_isp_probe(struct platform_device *pdev) apple_isp_detach_genpd(isp); free_isp: put_device(isp->dcp); + of_node_put(isp->dcp_np); kfree(isp->sensor_configs); /* Nothing else can reach it before the video device is registered. */ kfree(isp); @@ -945,6 +936,7 @@ static void apple_isp_remove(struct platform_device *pdev) destroy_workqueue(isp->wq); apple_isp_detach_genpd(isp); put_device(isp->dcp); + of_node_put(isp->dcp_np); /* Freed now, or when the last open file is closed. */ v4l2_device_put(&isp->v4l2_dev); } diff --git a/drivers/media/platform/apple/isp/isp-drv.h b/drivers/media/platform/apple/isp/isp-drv.h index 19e913e07b6ca..ea64384bbce70 100644 --- a/drivers/media/platform/apple/isp/isp-drv.h +++ b/drivers/media/platform/apple/isp/isp-drv.h @@ -354,7 +354,11 @@ struct isp_format { struct apple_isp { struct device *dev; const struct apple_isp_hw *hw; - /* The DCP presenting the software camera indicator (apple,camera-indicator) */ + /* + * The DCP presenting the software camera indicator (apple,camera-indicator): + * its node from probe, its device once found when a stream starts. + */ + struct device_node *dcp_np; struct device *dcp; enum isp_firmware_version fw_compat; bool preview_26; From 6336c0a9ef99f7e4a78c4844e6cb9f54f5ca66cc Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Thu, 12 Nov 2026 21:49:58 -0600 Subject: [PATCH 13/24] tools: asahi: isp host tests: stub the camera indicator The session, buffers and returns suites compile apple_isp_stop_capture and isp_cmd_send straight from the driver. The indicator change added the indicator hooks to the first and a KUNIT_STATIC_STUB_REDIRECT call to the second, and the host fixtures defined neither, so the three suites stopped compiling. The fixtures now define the redirect as a no-op and the two indicator helpers as 'no DCP, no call', with the dcp field. Tested: session, buffers, returns, queue and receive all PASS, and every negative control (send, overwrite, stop, reset; address, pool, duplicate, snapshot) still fails. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- tools/asahi/isp/buffers.c | 12 ++++++++++++ tools/asahi/isp/session.c | 14 +++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/tools/asahi/isp/buffers.c b/tools/asahi/isp/buffers.c index d52cf0f7e47d8..a85bc74fde028 100644 --- a/tools/asahi/isp/buffers.c +++ b/tools/asahi/isp/buffers.c @@ -208,6 +208,7 @@ struct hardware { }; struct apple_isp { + void *dcp; struct isp_format fmt; struct isp_channel *chan_bh; const struct hardware *hw; @@ -302,6 +303,17 @@ static void apple_isp_wdt_stop(struct apple_isp *isp) { } +/* The camera indicator is not under test here: no DCP, so no call. */ +static bool apple_isp_camera_indicator(const struct apple_isp *isp) +{ + return isp->dcp; +} + +static int apple_isp_dcp_indicator_set(void *dcp, bool on) +{ + return 0; +} + static void apple_isp_stop_capture(struct apple_isp *isp); /* These fixtures exercise the non-P010/J613 path. P010 has kernel KUnit coverage. */ diff --git a/tools/asahi/isp/session.c b/tools/asahi/isp/session.c index bb51cefdf3987..ddf524257c135 100644 --- a/tools/asahi/isp/session.c +++ b/tools/asahi/isp/session.c @@ -15,6 +15,7 @@ typedef uint32_t u32; #define WRITE_ONCE(x, v) ((x) = (v)) #define cmpxchg(p, old, v) __sync_val_compare_and_swap(p, old, v) #define dma_wmb() ((void)0) +#define KUNIT_STATIC_STUB_REDIRECT(...) ((void)0) #define dev_err(...) ((void)0) #define dev_warn(...) ((void)0) #define dev_err_ratelimited(...) ((void)0) @@ -73,7 +74,7 @@ struct apple_isp { bool ipc_failed; const struct hardware *hw; struct { bool started; } fw; - void *dev, *wq, *cmd_virt; + void *dev, *wq, *cmd_virt, *dcp; u64 cmd_iova; unsigned int current_ch; }; @@ -165,6 +166,17 @@ static void apple_isp_wdt_stop(struct apple_isp *isp) watchdog_stops++; } +/* The camera indicator is not under test here: no DCP, so no call. */ +static bool apple_isp_camera_indicator(const struct apple_isp *isp) +{ + return isp->dcp; +} + +static int apple_isp_dcp_indicator_set(void *dcp, bool on) +{ + return 0; +} + static void isp_firmware_shutdown_stage1(struct apple_isp *isp) { stop_order = ++order; From 606fb2b083cbecfd41e3210a09762e333e9bbaef Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Thu, 12 Nov 2026 22:20:13 -0600 Subject: [PATCH 14/24] camera indicator: test the stream-start DCP bind, close two review minors w7X found that the DCP lookup at stream start had no test: mutations that skipped apple_isp_indicator_bind() still passed every KUnit case, because the tests set isp->dcp by hand. Claude's review left two minors: a stale watch can withdraw a newer request, and a stream that runs across a DRM master rebind shows no dot afterwards. - isp: the platform device lookup goes through a stubbable wrapper. New case isp_test_dcp_bound_at_stream_start: no DCP means no dot for that stream, the next stream binds it and asks for the dot before the firmware start, and a bound DCP is not looked up again. - drm/apple: set(true) records a deadline. A watch armed for an earlier request that was stopped and asked for again returns when the deadline has not passed, so it cannot withdraw the newer request. - drm/apple: a request that is still wanted survives dcp_comp_unbind (dcp_ind_suspend). The first present after the next bind queues a resume that asks for the square again. A stop, a failed commit or a withdrawal ends the request, so a failing commit cannot loop. Release now drops the fb and the plane under the lock before the works are cancelled, so no present queues them again. - Pure-state case indicator_resumes_only_a_kept_request. Proof: DRM and ISP dirs build with no warnings (arm64, LLVM). ISP KUnit on arm64 QEMU, all suites pass including the new case; the pure-state suite built as a userspace program passes, and fails when dcp_ind_end() keeps the request. Not run: the resume path on a panel, and DRM_APPLE as n. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- drivers/gpu/drm/apple/dcp-indicator-test.c | 27 ++++++ drivers/gpu/drm/apple/dcp-indicator.c | 97 ++++++++++++++----- drivers/gpu/drm/apple/dcp-indicator.h | 17 ++++ drivers/gpu/drm/apple/dcp-internal.h | 2 + .../media/platform/apple/isp/isp-cam-test.c | 52 ++++++++++ drivers/media/platform/apple/isp/isp-cam.c | 8 +- 6 files changed, 178 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/apple/dcp-indicator-test.c b/drivers/gpu/drm/apple/dcp-indicator-test.c index 29b37a272edbc..6f9ff3c33b708 100644 --- a/drivers/gpu/drm/apple/dcp-indicator-test.c +++ b/drivers/gpu/drm/apple/dcp-indicator-test.c @@ -60,6 +60,32 @@ static void indicator_single_owner(struct kunit *test) KUNIT_EXPECT_EQ(test, dcp_ind_begin(&ind), 0); } +/* + * A DRM unbind drops the plane while the camera may still stream: the request + * is kept and asked for again. A request that was ended, or never made, is not. + */ +static void indicator_resumes_only_a_kept_request(struct kunit *test) +{ + struct dcp_indicator ind = {}; + + KUNIT_EXPECT_FALSE(test, dcp_ind_wants_resume(&ind)); + KUNIT_ASSERT_EQ(test, dcp_ind_begin(&ind), 0); + /* On the panel or pending, nothing to resume. */ + KUNIT_EXPECT_FALSE(test, dcp_ind_wants_resume(&ind)); + dcp_ind_present_done(&ind, true); + KUNIT_EXPECT_FALSE(test, dcp_ind_wants_resume(&ind)); + dcp_ind_suspend(&ind); + KUNIT_EXPECT_EQ(test, ind.state, DCP_IND_OFF); + KUNIT_EXPECT_TRUE(test, dcp_ind_wants_resume(&ind)); + /* Asking again is a new request, and a stop ends it for good. */ + KUNIT_ASSERT_EQ(test, dcp_ind_begin(&ind), 0); + KUNIT_EXPECT_FALSE(test, dcp_ind_wants_resume(&ind)); + dcp_ind_end(&ind); + KUNIT_EXPECT_FALSE(test, dcp_ind_wants_resume(&ind)); + dcp_ind_suspend(&ind); + KUNIT_EXPECT_FALSE(test, dcp_ind_wants_resume(&ind)); +} + /* A userspace change to the reserved plane is put back, never honoured. */ static void indicator_plane_reservation(struct kunit *test) { @@ -79,6 +105,7 @@ static struct kunit_case indicator_cases[] = { KUNIT_CASE(indicator_confirmed_only_after_present), KUNIT_CASE(indicator_idle_ignores_presents), KUNIT_CASE(indicator_single_owner), + KUNIT_CASE(indicator_resumes_only_a_kept_request), KUNIT_CASE(indicator_plane_reservation), {} }; diff --git a/drivers/gpu/drm/apple/dcp-indicator.c b/drivers/gpu/drm/apple/dcp-indicator.c index 91fe26d464b98..c35adef4aa494 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.c +++ b/drivers/gpu/drm/apple/dcp-indicator.c @@ -37,6 +37,7 @@ #define IND_PRESENT_TIMEOUT msecs_to_jiffies(1000) static void dcp_indicator_watch(struct work_struct *work); +static void dcp_indicator_resume(struct work_struct *work); int dcp_indicator_probe(struct apple_dcp *dcp) { @@ -46,6 +47,7 @@ int dcp_indicator_probe(struct apple_dcp *dcp) spin_lock_init(&ci->lock); mutex_init(&ci->ctl); INIT_DELAYED_WORK(&ci->watch, dcp_indicator_watch); + INIT_WORK(&ci->resume, dcp_indicator_resume); if (of_property_read_u32(dcp->dev->of_node, "apple,camera-indicator-surface", &surf)) return 0; @@ -61,23 +63,30 @@ int dcp_indicator_probe(struct apple_dcp *dcp) * From the DCP's component unbind, while the DCP and the drm_device are both * alive: a drmm action would run after the DCP's memory is gone. surf and * has_surf come from the device tree, so the next bind builds the plane again. + * A request that is still wanted is kept: the first present after the next + * bind asks for the square again. */ void dcp_indicator_release(struct apple_dcp *dcp) { struct dcp_camera_indicator *ci = &dcp->camera_ind; + struct drm_framebuffer *fb; unsigned long flags; if (!ci->has_surf) return; + scoped_guard(mutex, &ci->ctl) { + fb = ci->fb; + spin_lock_irqsave(&ci->lock, flags); + ci->fb = NULL; + ci->plane = NULL; + dcp_ind_suspend(&ci->state); + spin_unlock_irqrestore(&ci->lock, flags); + if (fb) + drm_framebuffer_put(fb); + } + /* With no fb nothing queues them again, and both take ctl, so cancel after dropping it. */ cancel_delayed_work_sync(&ci->watch); - guard(mutex)(&ci->ctl); - if (ci->fb) - drm_framebuffer_put(ci->fb); - ci->fb = NULL; - ci->plane = NULL; - spin_lock_irqsave(&ci->lock, flags); - dcp_ind_end(&ci->state); - spin_unlock_irqrestore(&ci->lock, flags); + cancel_work_sync(&ci->resume); } static const struct drm_framebuffer_funcs dcp_indicator_fb_funcs = { @@ -114,6 +123,7 @@ int dcp_indicator_attach_plane(struct apple_dcp *dcp, struct drm_device *drm, }; struct drm_gem_dma_object *obj; struct drm_framebuffer *fb; + unsigned long flags; int ret; to_apple_plane(plane)->indicator = true; @@ -142,7 +152,9 @@ int dcp_indicator_attach_plane(struct apple_dcp *dcp, struct drm_device *drm, /* Kernel-private: userspace must not find it by id. */ drm_framebuffer_unregister_private(fb); + spin_lock_irqsave(&ci->lock, flags); ci->fb = fb; + spin_unlock_irqrestore(&ci->lock, flags); return 0; } @@ -240,6 +252,9 @@ static void dcp_indicator_watch(struct work_struct *work) bool pending; guard(mutex)(&ci->ctl); + /* Armed for an earlier request that was stopped and asked for again: the newer watch decides. */ + if (time_before(jiffies, ci->deadline)) + return; spin_lock_irqsave(&ci->lock, flags); pending = ci->state.state == DCP_IND_PENDING; spin_unlock_irqrestore(&ci->lock, flags); @@ -252,6 +267,51 @@ static void dcp_indicator_watch(struct work_struct *work) dcp_indicator_commit(dcp, false); } +/* ctl held. Commits the square and arms the watch that withdraws it if no present carries it. */ +static int dcp_indicator_request(struct apple_dcp *dcp) +{ + struct dcp_camera_indicator *ci = &dcp->camera_ind; + unsigned long flags; + int ret; + + spin_lock_irqsave(&ci->lock, flags); + ret = dcp_ind_begin(&ci->state); + spin_unlock_irqrestore(&ci->lock, flags); + if (ret) + return ret; + + ret = dcp_indicator_commit(dcp, true); + if (ret) { + dcp_indicator_end(dcp); + dcp_indicator_commit(dcp, false); + return ret; + } + ci->deadline = jiffies + IND_PRESENT_TIMEOUT; + mod_delayed_work(system_percpu_wq, &ci->watch, IND_PRESENT_TIMEOUT); + return 0; +} + +/* After a DRM rebind: the camera still streams, so the square is asked for again. */ +static void dcp_indicator_resume(struct work_struct *work) +{ + struct dcp_camera_indicator *ci = + container_of(work, struct dcp_camera_indicator, resume); + struct apple_dcp *dcp = container_of(ci, struct apple_dcp, camera_ind); + unsigned long flags; + bool resume; + int ret; + + guard(mutex)(&ci->ctl); + spin_lock_irqsave(&ci->lock, flags); + resume = ci->fb && dcp_ind_wants_resume(&ci->state); + spin_unlock_irqrestore(&ci->lock, flags); + if (!resume) + return; + ret = dcp_indicator_request(dcp); + if (ret) + dev_warn(dcp->dev, "camera indicator not restored after a display rebind: %d\n", ret); +} + /* * on: requests the square and returns 0 once the request is committed; the * present that carries it is confirmed, or withdrawn, within 1 s without @@ -262,7 +322,6 @@ int apple_dcp_camera_indicator_set(struct device *dev, bool on) { struct apple_dcp *dcp; struct dcp_camera_indicator *ci; - unsigned long flags; int ret; /* The device lock keeps the DCP bound, and its state alive, for the call. */ @@ -289,21 +348,7 @@ int apple_dcp_camera_indicator_set(struct device *dev, bool on) } if (!ci->fb) return -ENODEV; - - spin_lock_irqsave(&ci->lock, flags); - ret = dcp_ind_begin(&ci->state); - spin_unlock_irqrestore(&ci->lock, flags); - if (ret) - return ret; - - ret = dcp_indicator_commit(dcp, true); - if (ret) { - dcp_indicator_end(dcp); - dcp_indicator_commit(dcp, false); - return ret; - } - mod_delayed_work(system_percpu_wq, &ci->watch, IND_PRESENT_TIMEOUT); - return 0; + return dcp_indicator_request(dcp); } EXPORT_SYMBOL_GPL(apple_dcp_camera_indicator_set); @@ -312,10 +357,14 @@ void dcp_indicator_swap_done(struct apple_dcp *dcp, struct drm_framebuffer *slot { struct dcp_camera_indicator *ci = &dcp->camera_ind; unsigned long flags; + bool resume; if (!ci->has_surf) return; spin_lock_irqsave(&ci->lock, flags); dcp_ind_present_done(&ci->state, slot_fb && slot_fb == ci->fb); + resume = ci->fb && dcp_ind_wants_resume(&ci->state); spin_unlock_irqrestore(&ci->lock, flags); + if (resume) + schedule_work(&ci->resume); } diff --git a/drivers/gpu/drm/apple/dcp-indicator.h b/drivers/gpu/drm/apple/dcp-indicator.h index 437fe425afefe..9ce0d5ae931eb 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.h +++ b/drivers/gpu/drm/apple/dcp-indicator.h @@ -23,6 +23,8 @@ enum dcp_ind_state { struct dcp_indicator { enum dcp_ind_state state; + /* Requested and not ended: it survives a DRM unbind, so the next bind shows it again. */ + bool wanted; }; /* One owner at a time: a second request cannot reset a running one. */ @@ -31,6 +33,7 @@ static inline int dcp_ind_begin(struct dcp_indicator *ind) if (ind->state != DCP_IND_OFF) return -EBUSY; ind->state = DCP_IND_PENDING; + ind->wanted = true; return 0; } @@ -41,9 +44,23 @@ static inline void dcp_ind_present_done(struct dcp_indicator *ind, bool dot_show ind->state = DCP_IND_LIT; } +/* The request is over: stopped, failed or withdrawn. */ static inline void dcp_ind_end(struct dcp_indicator *ind) { ind->state = DCP_IND_OFF; + ind->wanted = false; +} + +/* The plane is gone (DRM unbind) but the camera may still stream: keep the request. */ +static inline void dcp_ind_suspend(struct dcp_indicator *ind) +{ + ind->state = DCP_IND_OFF; +} + +/* Wanted but not on the panel: the next present after a rebind asks again. */ +static inline bool dcp_ind_wants_resume(const struct dcp_indicator *ind) +{ + return ind->wanted && ind->state == DCP_IND_OFF; } /* diff --git a/drivers/gpu/drm/apple/dcp-internal.h b/drivers/gpu/drm/apple/dcp-internal.h index d7eeafe71b43c..6f827a36e7c45 100644 --- a/drivers/gpu/drm/apple/dcp-internal.h +++ b/drivers/gpu/drm/apple/dcp-internal.h @@ -449,6 +449,8 @@ struct dcp_camera_indicator { spinlock_t lock; struct mutex ctl; struct delayed_work watch; + struct work_struct resume; + unsigned long deadline; struct drm_plane *plane; struct drm_framebuffer *fb; u32 surf; diff --git a/drivers/media/platform/apple/isp/isp-cam-test.c b/drivers/media/platform/apple/isp/isp-cam-test.c index a306f72a4e9de..12e2ffb3ad910 100644 --- a/drivers/media/platform/apple/isp/isp-cam-test.c +++ b/drivers/media/platform/apple/isp/isp-cam-test.c @@ -719,6 +719,8 @@ struct isp_test_indicator_trace { unsigned int set_off_at; int fw_start_result; int set_on_result; + struct platform_device *dcp_pdev; + unsigned int lookup_calls; }; static int isp_test_indicator_set(struct device *dcp, bool on) @@ -734,6 +736,15 @@ static int isp_test_indicator_set(struct device *dcp, bool on) return 0; } +static struct platform_device *isp_test_dcp_lookup(struct device_node *np) +{ + struct kunit *test = kunit_get_current_test(); + struct isp_test_indicator_trace *trace = test->priv; + + trace->lookup_calls++; + return trace->dcp_pdev; +} + static int isp_test_fw_start(struct apple_isp *isp, u32 chan) { struct kunit *test = kunit_get_current_test(); @@ -780,6 +791,46 @@ static void isp_test_indicator_set_fails_still_streams(struct kunit *test) KUNIT_EXPECT_EQ(test, trace.set_off_at, 0); } +/* + * The DCP may probe after the ISP: it is looked up when a stream starts. A DCP + * that is not there yet means no indicator for that stream, and the next stream + * finds it. A bound DCP is not looked up again. + */ +static void isp_test_dcp_bound_at_stream_start(struct kunit *test) +{ + struct apple_isp *isp = isp_test_capture_alloc(test); + struct isp_test_indicator_trace trace = {}; + struct device_node np = {}; + + isp->dcp = NULL; + isp->dcp_np = &np; + test->priv = &trace; + kunit_activate_static_stub(test, apple_isp_dcp_lookup, isp_test_dcp_lookup); + kunit_activate_static_stub(test, apple_isp_dcp_indicator_set, + isp_test_indicator_set); + kunit_activate_static_stub(test, isp_cmd_ch_start, isp_test_fw_start); + + /* The DCP has not probed: the stream runs without a dot. */ + KUNIT_EXPECT_EQ(test, apple_isp_start_capture(isp), 0); + KUNIT_EXPECT_EQ(test, trace.lookup_calls, 1); + KUNIT_EXPECT_NULL(test, isp->dcp); + KUNIT_EXPECT_EQ(test, trace.set_on_at, 0); + KUNIT_EXPECT_EQ(test, trace.fw_start_at, 1); + + /* It probed since: the next stream binds it and asks for the dot first. */ + trace.dcp_pdev = kunit_kzalloc(test, sizeof(*trace.dcp_pdev), GFP_KERNEL); + KUNIT_ASSERT_NOT_NULL(test, trace.dcp_pdev); + KUNIT_EXPECT_EQ(test, apple_isp_start_capture(isp), 0); + KUNIT_EXPECT_EQ(test, trace.lookup_calls, 2); + KUNIT_EXPECT_PTR_EQ(test, isp->dcp, &trace.dcp_pdev->dev); + KUNIT_EXPECT_EQ(test, trace.set_on_at, 2); + KUNIT_EXPECT_EQ(test, trace.fw_start_at, 3); + + /* Bound: no further lookup. */ + KUNIT_EXPECT_EQ(test, apple_isp_start_capture(isp), 0); + KUNIT_EXPECT_EQ(test, trace.lookup_calls, 2); +} + static void isp_test_no_indicator_still_streams(struct kunit *test) { struct apple_isp *isp = isp_test_indicator_alloc(test); @@ -863,6 +914,7 @@ static struct kunit_case isp_cam_test_cases[] = { KUNIT_CASE(isp_test_temporal_filter_off), KUNIT_CASE(isp_test_power_line_frequency), KUNIT_CASE(isp_test_indicator_set_fails_still_streams), + KUNIT_CASE(isp_test_dcp_bound_at_stream_start), KUNIT_CASE(isp_test_no_indicator_still_streams), KUNIT_CASE(isp_test_indicator_on_precedes_stream), KUNIT_CASE(isp_test_stream_failure_lights_off), diff --git a/drivers/media/platform/apple/isp/isp-cam.c b/drivers/media/platform/apple/isp/isp-cam.c index 83d8fc5758ac6..a9663e9904dfa 100644 --- a/drivers/media/platform/apple/isp/isp-cam.c +++ b/drivers/media/platform/apple/isp/isp-cam.c @@ -1090,6 +1090,12 @@ static int apple_isp_dcp_indicator_set(struct device *dcp, bool on) return apple_dcp_camera_indicator_set(dcp, on); } +static struct platform_device *apple_isp_dcp_lookup(struct device_node *np) +{ + KUNIT_STATIC_STUB_REDIRECT(apple_isp_dcp_lookup, np); + return of_find_device_by_node(np); +} + /* The DCP may probe after the ISP, so it is looked up when a stream starts. */ static void apple_isp_indicator_bind(struct apple_isp *isp) { @@ -1097,7 +1103,7 @@ static void apple_isp_indicator_bind(struct apple_isp *isp) if (isp->dcp || !isp->dcp_np) return; - pdev = of_find_device_by_node(isp->dcp_np); + pdev = apple_isp_dcp_lookup(isp->dcp_np); if (!pdev) { dev_warn_ratelimited(isp->dev, "camera indicator: its DCP is not probed, no indicator for this stream\n"); From 3c4b5041a12ec656f1877fb629911770b0e148c2 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Thu, 12 Nov 2026 23:03:24 -0600 Subject: [PATCH 15/24] drm/apple: retry the camera indicator off commit until it lands The off commit is nonblocking. A flip still pending on the CRTC, plane or connector makes drm_atomic_helper_setup_commit() refuse it with -EBUSY, which a live compositor causes often. The stop path and the watch withdrawal logged that refusal and reported success, so the plane stayed enabled with no retry, and plane.c then restored the square after later userspace clears. The dot stayed on after STREAMOFF. Route the stop path and the watch withdrawal through dcp_indicator_off(). A -EBUSY keeps an off_pending request and queues off_retry (50 ms) until the commit lands; any other error is warned about as final. A new request, the plane going away, or release cancels the retry. The failed-on cleanup no longer commits off: a refused on commit changed nothing on the plane. Also queue the resume work inside the ci->lock section in swap_done, so release, which drops the fb under that lock, cannot cancel before it is queued. Proof: new case indicator_off_retries_a_pending_flip in the pure-state suite. It failed on a version that treats -EBUSY as done (6 expectations), and passes with the change (7/7). The DRM and ISP objects build with no warnings. The retry itself, and a real -EBUSY from a compositor, were not run on hardware. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- drivers/gpu/drm/apple/dcp-indicator-test.c | 37 ++++++++++++ drivers/gpu/drm/apple/dcp-indicator.c | 66 ++++++++++++++++------ drivers/gpu/drm/apple/dcp-indicator.h | 26 +++++++++ drivers/gpu/drm/apple/dcp-internal.h | 1 + 4 files changed, 114 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/apple/dcp-indicator-test.c b/drivers/gpu/drm/apple/dcp-indicator-test.c index 6f9ff3c33b708..f1db0bee6b5d6 100644 --- a/drivers/gpu/drm/apple/dcp-indicator-test.c +++ b/drivers/gpu/drm/apple/dcp-indicator-test.c @@ -86,6 +86,42 @@ static void indicator_resumes_only_a_kept_request(struct kunit *test) KUNIT_EXPECT_FALSE(test, dcp_ind_wants_resume(&ind)); } +/* + * A flip still pending refuses the nonblocking off commit with -EBUSY. The + * square must still come off: the refusal is retried until the commit lands. + * Any other error is final and said so. A new request supersedes a retry. + */ +static void indicator_off_retries_a_pending_flip(struct kunit *test) +{ + struct dcp_indicator ind = {}; + + KUNIT_ASSERT_EQ(test, dcp_ind_begin(&ind), 0); + dcp_ind_end(&ind); + KUNIT_EXPECT_EQ(test, dcp_ind_off_result(&ind, 0), DCP_IND_OFF_DONE); + KUNIT_EXPECT_FALSE(test, ind.off_pending); + + KUNIT_EXPECT_EQ(test, dcp_ind_off_result(&ind, -EBUSY), DCP_IND_OFF_RETRY); + KUNIT_EXPECT_TRUE(test, ind.off_pending); + /* Still refused: still pending. Then it lands. */ + KUNIT_EXPECT_EQ(test, dcp_ind_off_result(&ind, -EBUSY), DCP_IND_OFF_RETRY); + KUNIT_EXPECT_EQ(test, dcp_ind_off_result(&ind, 0), DCP_IND_OFF_DONE); + KUNIT_EXPECT_FALSE(test, ind.off_pending); + + /* Any other error is final. */ + KUNIT_EXPECT_EQ(test, dcp_ind_off_result(&ind, -EBUSY), DCP_IND_OFF_RETRY); + KUNIT_EXPECT_EQ(test, dcp_ind_off_result(&ind, -ENODEV), DCP_IND_OFF_FAILED); + KUNIT_EXPECT_FALSE(test, ind.off_pending); + + /* A request made while a retry waits supersedes it; so does losing the plane. */ + KUNIT_EXPECT_EQ(test, dcp_ind_off_result(&ind, -EBUSY), DCP_IND_OFF_RETRY); + KUNIT_ASSERT_EQ(test, dcp_ind_begin(&ind), 0); + KUNIT_EXPECT_FALSE(test, ind.off_pending); + dcp_ind_end(&ind); + KUNIT_EXPECT_EQ(test, dcp_ind_off_result(&ind, -EBUSY), DCP_IND_OFF_RETRY); + dcp_ind_suspend(&ind); + KUNIT_EXPECT_FALSE(test, ind.off_pending); +} + /* A userspace change to the reserved plane is put back, never honoured. */ static void indicator_plane_reservation(struct kunit *test) { @@ -106,6 +142,7 @@ static struct kunit_case indicator_cases[] = { KUNIT_CASE(indicator_idle_ignores_presents), KUNIT_CASE(indicator_single_owner), KUNIT_CASE(indicator_resumes_only_a_kept_request), + KUNIT_CASE(indicator_off_retries_a_pending_flip), KUNIT_CASE(indicator_plane_reservation), {} }; diff --git a/drivers/gpu/drm/apple/dcp-indicator.c b/drivers/gpu/drm/apple/dcp-indicator.c index c35adef4aa494..d4a6df2a79e8d 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.c +++ b/drivers/gpu/drm/apple/dcp-indicator.c @@ -35,9 +35,11 @@ #define IND_FILL 0xffff9500 #define IND_EDGE 0xff000000 #define IND_PRESENT_TIMEOUT msecs_to_jiffies(1000) +#define IND_OFF_RETRY msecs_to_jiffies(50) static void dcp_indicator_watch(struct work_struct *work); static void dcp_indicator_resume(struct work_struct *work); +static void dcp_indicator_off_retry(struct work_struct *work); int dcp_indicator_probe(struct apple_dcp *dcp) { @@ -48,6 +50,7 @@ int dcp_indicator_probe(struct apple_dcp *dcp) mutex_init(&ci->ctl); INIT_DELAYED_WORK(&ci->watch, dcp_indicator_watch); INIT_WORK(&ci->resume, dcp_indicator_resume); + INIT_DELAYED_WORK(&ci->off_retry, dcp_indicator_off_retry); if (of_property_read_u32(dcp->dev->of_node, "apple,camera-indicator-surface", &surf)) return 0; @@ -84,8 +87,9 @@ void dcp_indicator_release(struct apple_dcp *dcp) if (fb) drm_framebuffer_put(fb); } - /* With no fb nothing queues them again, and both take ctl, so cancel after dropping it. */ + /* With no fb nothing queues them again, and all take ctl, so cancel after dropping it. */ cancel_delayed_work_sync(&ci->watch); + cancel_delayed_work_sync(&ci->off_retry); cancel_work_sync(&ci->resume); } @@ -238,6 +242,41 @@ static void dcp_indicator_end(struct apple_dcp *dcp) spin_unlock_irqrestore(&ci->lock, flags); } +/* + * ctl held. The off commit is nonblocking, so a flip still pending on the CRTC + * refuses it. The square must still come off, so the refusal is retried from + * a work item until it lands, never by making the camera wait. + */ +static void dcp_indicator_off(struct apple_dcp *dcp) +{ + struct dcp_camera_indicator *ci = &dcp->camera_ind; + int ret = dcp_indicator_commit(dcp, false); + + switch (dcp_ind_off_result(&ci->state, ret)) { + case DCP_IND_OFF_RETRY: + queue_delayed_work(system_percpu_wq, &ci->off_retry, IND_OFF_RETRY); + break; + case DCP_IND_OFF_FAILED: + dev_warn(dcp->dev, "camera indicator off commit failed: %d\n", ret); + break; + case DCP_IND_OFF_DONE: + break; + } +} + +static void dcp_indicator_off_retry(struct work_struct *work) +{ + struct dcp_camera_indicator *ci = + container_of(work, struct dcp_camera_indicator, off_retry.work); + struct apple_dcp *dcp = container_of(ci, struct apple_dcp, camera_ind); + + guard(mutex)(&ci->ctl); + /* A request made since, or the plane going away, ended the retry. */ + if (!ci->state.off_pending || !ci->fb) + return; + dcp_indicator_off(dcp); +} + /* * One second after a request, a square that no present has carried to the * panel is withdrawn and said so. Nothing waits for this: the camera streams @@ -264,7 +303,7 @@ static void dcp_indicator_watch(struct work_struct *work) dev_warn(dcp->dev, "camera indicator not presented within %u ms, withdrawn\n", jiffies_to_msecs(IND_PRESENT_TIMEOUT)); dcp_indicator_end(dcp); - dcp_indicator_commit(dcp, false); + dcp_indicator_off(dcp); } /* ctl held. Commits the square and arms the watch that withdraws it if no present carries it. */ @@ -280,10 +319,10 @@ static int dcp_indicator_request(struct apple_dcp *dcp) if (ret) return ret; + /* A refused commit changed nothing on the plane, so there is no square to take off. */ ret = dcp_indicator_commit(dcp, true); if (ret) { dcp_indicator_end(dcp); - dcp_indicator_commit(dcp, false); return ret; } ci->deadline = jiffies + IND_PRESENT_TIMEOUT; @@ -315,14 +354,14 @@ static void dcp_indicator_resume(struct work_struct *work) /* * on: requests the square and returns 0 once the request is committed; the * present that carries it is confirmed, or withdrawn, within 1 s without - * blocking the caller. An error means no indicator. off: always succeeds. The - * caller streams either way. + * blocking the caller. An error means no indicator. off: always succeeds, and + * a commit refused for a pending flip is retried until it lands. The caller + * streams either way. */ int apple_dcp_camera_indicator_set(struct device *dev, bool on) { struct apple_dcp *dcp; struct dcp_camera_indicator *ci; - int ret; /* The device lock keeps the DCP bound, and its state alive, for the call. */ guard(device)(dev); @@ -338,12 +377,8 @@ int apple_dcp_camera_indicator_set(struct device *dev, bool on) if (!on) { cancel_delayed_work(&ci->watch); dcp_indicator_end(dcp); - if (ci->fb) { - ret = dcp_indicator_commit(dcp, false); - if (ret) - dev_warn(dcp->dev, "camera indicator off commit failed: %d\n", - ret); - } + if (ci->fb) + dcp_indicator_off(dcp); return 0; } if (!ci->fb) @@ -357,14 +392,13 @@ void dcp_indicator_swap_done(struct apple_dcp *dcp, struct drm_framebuffer *slot { struct dcp_camera_indicator *ci = &dcp->camera_ind; unsigned long flags; - bool resume; if (!ci->has_surf) return; spin_lock_irqsave(&ci->lock, flags); dcp_ind_present_done(&ci->state, slot_fb && slot_fb == ci->fb); - resume = ci->fb && dcp_ind_wants_resume(&ci->state); - spin_unlock_irqrestore(&ci->lock, flags); - if (resume) + /* Queued under the lock: release drops the fb under it, so no work is queued after it. */ + if (ci->fb && dcp_ind_wants_resume(&ci->state)) schedule_work(&ci->resume); + spin_unlock_irqrestore(&ci->lock, flags); } diff --git a/drivers/gpu/drm/apple/dcp-indicator.h b/drivers/gpu/drm/apple/dcp-indicator.h index 9ce0d5ae931eb..5f6b568ceb20e 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.h +++ b/drivers/gpu/drm/apple/dcp-indicator.h @@ -25,6 +25,15 @@ struct dcp_indicator { enum dcp_ind_state state; /* Requested and not ended: it survives a DRM unbind, so the next bind shows it again. */ bool wanted; + /* An off commit was refused for a pending flip and is being retried. */ + bool off_pending; +}; + +enum dcp_ind_off_result { + DCP_IND_OFF_DONE, + /* A flip is still pending: ask again shortly. */ + DCP_IND_OFF_RETRY, + DCP_IND_OFF_FAILED, }; /* One owner at a time: a second request cannot reset a running one. */ @@ -34,6 +43,8 @@ static inline int dcp_ind_begin(struct dcp_indicator *ind) return -EBUSY; ind->state = DCP_IND_PENDING; ind->wanted = true; + /* This request puts the square on again, so a retried off has no meaning. */ + ind->off_pending = false; return 0; } @@ -55,6 +66,21 @@ static inline void dcp_ind_end(struct dcp_indicator *ind) static inline void dcp_ind_suspend(struct dcp_indicator *ind) { ind->state = DCP_IND_OFF; + ind->off_pending = false; +} + +/* + * The result of an off commit. The commit is nonblocking, so a flip that is + * still pending on the CRTC refuses it with -EBUSY. The square must still come + * off, so that refusal is retried until the commit lands; any other error is + * final. The camera never waits for it. + */ +static inline enum dcp_ind_off_result dcp_ind_off_result(struct dcp_indicator *ind, int err) +{ + ind->off_pending = err == -EBUSY; + if (!err) + return DCP_IND_OFF_DONE; + return err == -EBUSY ? DCP_IND_OFF_RETRY : DCP_IND_OFF_FAILED; } /* Wanted but not on the panel: the next present after a rebind asks again. */ diff --git a/drivers/gpu/drm/apple/dcp-internal.h b/drivers/gpu/drm/apple/dcp-internal.h index 6f827a36e7c45..ba1ee67ebdaf5 100644 --- a/drivers/gpu/drm/apple/dcp-internal.h +++ b/drivers/gpu/drm/apple/dcp-internal.h @@ -450,6 +450,7 @@ struct dcp_camera_indicator { struct mutex ctl; struct delayed_work watch; struct work_struct resume; + struct delayed_work off_retry; unsigned long deadline; struct drm_plane *plane; struct drm_framebuffer *fb; From a3029063169a47fac1ff89e1ee5e2faf30363ba5 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Thu, 12 Nov 2026 23:06:06 -0600 Subject: [PATCH 16/24] drm/apple: refuse a userspace assignment to the reserved indicator plane plane.c put back any userspace change to the reserved overlay, so a compositor that assigned a framebuffer to it saw the commit succeed while the kernel dropped its buffer, and could not fall back. A commit that clears the plane (FB_ID=0 and CRTC_ID=0), as the console restore does for every plane, still succeeds and is put back. Any other userspace change now returns -EINVAL from atomic_check, so the refusal shows in a TEST_ONLY commit. The kernel's own commit, a plane carried unchanged and a plane disabled with its CRTC pass as before. The decision moves from dcp_ind_plane_must_restore() to dcp_ind_plane_policy(), which returns PASS, RESTORE or REJECT. The old bool function is gone. Proof: indicator_plane_reservation now expects REJECT for an own fb and RESTORE for a clear. It failed to build against the old API, and fails (one expectation) on a version that restores instead of rejecting. The suite passes 7/7 in userspace, and the DRM objects build with no warnings. A real TEST_ONLY commit from a compositor was not run. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- drivers/gpu/drm/apple/dcp-indicator-test.c | 25 ++++++++++++++------ drivers/gpu/drm/apple/dcp-indicator.h | 27 +++++++++++++++------- drivers/gpu/drm/apple/plane.c | 14 ++++++++--- 3 files changed, 48 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/apple/dcp-indicator-test.c b/drivers/gpu/drm/apple/dcp-indicator-test.c index f1db0bee6b5d6..7333e7add8c47 100644 --- a/drivers/gpu/drm/apple/dcp-indicator-test.c +++ b/drivers/gpu/drm/apple/dcp-indicator-test.c @@ -122,18 +122,29 @@ static void indicator_off_retries_a_pending_flip(struct kunit *test) KUNIT_EXPECT_FALSE(test, ind.off_pending); } -/* A userspace change to the reserved plane is put back, never honoured. */ +/* + * Userspace never gets the reserved plane: a clear is put back, anything else + * is refused so a compositor sees it in its TEST_ONLY commit and falls back. + */ static void indicator_plane_reservation(struct kunit *test) { /* An ordinary plane is never touched. */ - KUNIT_EXPECT_FALSE(test, dcp_ind_plane_must_restore(false, false, false, false)); + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(false, false, false, false, false), + DCP_IND_PLANE_PASS); /* The kernel's own commit may do anything. */ - KUNIT_EXPECT_FALSE(test, dcp_ind_plane_must_restore(true, true, false, false)); + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, true, false, false, false), + DCP_IND_PLANE_PASS); /* Userspace: carried unchanged, or disabled with its CRTC, is left alone. */ - KUNIT_EXPECT_FALSE(test, dcp_ind_plane_must_restore(true, false, true, false)); - KUNIT_EXPECT_FALSE(test, dcp_ind_plane_must_restore(true, false, false, true)); - /* Any other userspace change (own fb, FB_ID=0, CRTC_ID=0, move) is undone. */ - KUNIT_EXPECT_TRUE(test, dcp_ind_plane_must_restore(true, false, false, false)); + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, true, false, false), + DCP_IND_PLANE_PASS); + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, true, true), + DCP_IND_PLANE_PASS); + /* A blind clear of every plane (console restore) still succeeds, undone. */ + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, false, true), + DCP_IND_PLANE_RESTORE); + /* Any other userspace assignment (own fb, a move, a property) is refused. */ + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, false, false), + DCP_IND_PLANE_REJECT); } static struct kunit_case indicator_cases[] = { diff --git a/drivers/gpu/drm/apple/dcp-indicator.h b/drivers/gpu/drm/apple/dcp-indicator.h index 5f6b568ceb20e..b858c18663131 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.h +++ b/drivers/gpu/drm/apple/dcp-indicator.h @@ -89,17 +89,28 @@ static inline bool dcp_ind_wants_resume(const struct dcp_indicator *ind) return ind->wanted && ind->state == DCP_IND_OFF; } +enum dcp_ind_plane_action { + DCP_IND_PLANE_PASS, + DCP_IND_PLANE_RESTORE, + DCP_IND_PLANE_REJECT, +}; + /* - * The reserved plane belongs to the kernel. Any other commit that changes it - * (FB_ID=0, CRTC_ID=0, a client's own framebuffer, a move) is put back to the - * state the plane had, so a blind clear of every plane, as the console restore - * does, still succeeds. Carried unchanged, or disabled with the CRTC it sits - * on (DPMS off, suspend, shutdown), the plane is left alone. + * The reserved plane belongs to the kernel. A commit that clears it (FB_ID=0 + * and CRTC_ID=0), as the console restore does for every plane, still succeeds + * and the plane is put back to the state it had. Any other userspace change (a + * client's own framebuffer, a move, a property) is refused with -EINVAL, so a + * compositor sees it in its TEST_ONLY commit and falls back instead of having + * its buffer silently dropped. Carried unchanged, or disabled with the CRTC it + * sits on (DPMS off, suspend, shutdown), the plane is left alone. */ -static inline bool dcp_ind_plane_must_restore(bool reserved_plane, bool kernel_commit, - bool unchanged, bool crtc_going_off) +static inline enum dcp_ind_plane_action dcp_ind_plane_policy(bool reserved_plane, + bool kernel_commit, bool unchanged, + bool crtc_going_off, bool clearing) { - return reserved_plane && !kernel_commit && !unchanged && !crtc_going_off; + if (!reserved_plane || kernel_commit || unchanged || crtc_going_off) + return DCP_IND_PLANE_PASS; + return clearing ? DCP_IND_PLANE_RESTORE : DCP_IND_PLANE_REJECT; } #endif /* DCP_INDICATOR_H */ diff --git a/drivers/gpu/drm/apple/plane.c b/drivers/gpu/drm/apple/plane.c index c30153592affc..f99c00679f5f8 100644 --- a/drivers/gpu/drm/apple/plane.c +++ b/drivers/gpu/drm/apple/plane.c @@ -259,9 +259,13 @@ static int apple_plane_atomic_check(struct drm_plane *plane, bool going_off = !new_plane_state->fb && !new_plane_state->crtc && old_crtc_new && !old_crtc_new->active; - if (dcp_ind_plane_must_restore(true, - commit == READ_ONCE(to_apple_plane(plane)->indicator_commit), - unchanged, going_off)) { + switch (dcp_ind_plane_policy(true, + commit == READ_ONCE(to_apple_plane(plane)->indicator_commit), + unchanged, going_off, + !new_plane_state->fb && !new_plane_state->crtc)) { + case DCP_IND_PLANE_REJECT: + return -EINVAL; + case DCP_IND_PLANE_RESTORE: { int ret = drm_atomic_set_crtc_for_plane(new_plane_state, old->crtc); if (ret) @@ -278,6 +282,10 @@ static int apple_plane_atomic_check(struct drm_plane *plane, new_plane_state->alpha = old->alpha; new_plane_state->pixel_blend_mode = old->pixel_blend_mode; new_plane_state->rotation = old->rotation; + break; + } + case DCP_IND_PLANE_PASS: + break; } } From a3f2bc075f48cf6daf89f5c612149877cb5bb4f6 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Thu, 12 Nov 2026 23:08:46 -0600 Subject: [PATCH 17/24] drm/apple: retry the camera indicator on commit too, and test the retry When the on commit got -EBUSY from a pending flip, the request ended and the camera streamed with no square showing: the off hole in reverse. Both directions now go through dcp_ind_apply(). A -EBUSY keeps the request, records which commit was refused in dcp_indicator.retry, and queues the retry work; the work asks again through dcp_ind_retry() until the commit lands. A request that ends (stop, watch withdrawal), a new request, losing the plane and release all drop or cancel the retry. The on request still arms its 1 s watch once the commit is committed or queued, so a square that never lands is withdrawn. Any other error is final: set(true) returns it, and the work warns and ends the request. The retry decision and the queueing now live in the header behind a two-call seam (commit, queue_retry), so the pure-state suite drives the same code the work item runs. The earlier off_pending flag and dcp_ind_off_result() are gone. Proof: indicator_refused_commit_is_retried and indicator_retry_ends_with_the_request drive both directions with a fake commit and queue. A mutant with queue_retry removed fails 4 expectations, and one that does not retry an on commit fails 4. The suite passes 8/8 in userspace, and the DRM objects build with no warnings. The real work item and a real -EBUSY from a compositor were not run on hardware. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- drivers/gpu/drm/apple/dcp-indicator-test.c | 109 ++++++++++++++++----- drivers/gpu/drm/apple/dcp-indicator.c | 69 +++++++------ drivers/gpu/drm/apple/dcp-indicator.h | 60 ++++++++---- drivers/gpu/drm/apple/dcp-internal.h | 2 +- 4 files changed, 163 insertions(+), 77 deletions(-) diff --git a/drivers/gpu/drm/apple/dcp-indicator-test.c b/drivers/gpu/drm/apple/dcp-indicator-test.c index 7333e7add8c47..541d09160e043 100644 --- a/drivers/gpu/drm/apple/dcp-indicator-test.c +++ b/drivers/gpu/drm/apple/dcp-indicator-test.c @@ -86,40 +86,98 @@ static void indicator_resumes_only_a_kept_request(struct kunit *test) KUNIT_EXPECT_FALSE(test, dcp_ind_wants_resume(&ind)); } +/* Stands in for the DRM commit and the work queue; the test drives the retry by hand. */ +struct fake_drm { + int results[4]; + int commits, queued; + bool last_on; +}; + +static int fake_commit(void *ctx, bool on) +{ + struct fake_drm *d = ctx; + + d->last_on = on; + return d->results[d->commits++]; +} + +static void fake_queue(void *ctx) +{ + ((struct fake_drm *)ctx)->queued++; +} + +static const struct dcp_ind_ops fake_ops = { fake_commit, fake_queue }; + /* - * A flip still pending refuses the nonblocking off commit with -EBUSY. The - * square must still come off: the refusal is retried until the commit lands. - * Any other error is final and said so. A new request supersedes a retry. + * A flip still pending refuses the nonblocking commit with -EBUSY, on or off. + * The request stands, so the commit is queued again until it lands, and the + * camera never waits for it. Any other error is final and returned. */ -static void indicator_off_retries_a_pending_flip(struct kunit *test) +static void indicator_refused_commit_is_retried(struct kunit *test) { struct dcp_indicator ind = {}; + struct fake_drm d = { .results = { -EBUSY, -EBUSY, 0 } }; + /* Off: the square must still come off. */ KUNIT_ASSERT_EQ(test, dcp_ind_begin(&ind), 0); dcp_ind_end(&ind); - KUNIT_EXPECT_EQ(test, dcp_ind_off_result(&ind, 0), DCP_IND_OFF_DONE); - KUNIT_EXPECT_FALSE(test, ind.off_pending); - - KUNIT_EXPECT_EQ(test, dcp_ind_off_result(&ind, -EBUSY), DCP_IND_OFF_RETRY); - KUNIT_EXPECT_TRUE(test, ind.off_pending); - /* Still refused: still pending. Then it lands. */ - KUNIT_EXPECT_EQ(test, dcp_ind_off_result(&ind, -EBUSY), DCP_IND_OFF_RETRY); - KUNIT_EXPECT_EQ(test, dcp_ind_off_result(&ind, 0), DCP_IND_OFF_DONE); - KUNIT_EXPECT_FALSE(test, ind.off_pending); - - /* Any other error is final. */ - KUNIT_EXPECT_EQ(test, dcp_ind_off_result(&ind, -EBUSY), DCP_IND_OFF_RETRY); - KUNIT_EXPECT_EQ(test, dcp_ind_off_result(&ind, -ENODEV), DCP_IND_OFF_FAILED); - KUNIT_EXPECT_FALSE(test, ind.off_pending); - - /* A request made while a retry waits supersedes it; so does losing the plane. */ - KUNIT_EXPECT_EQ(test, dcp_ind_off_result(&ind, -EBUSY), DCP_IND_OFF_RETRY); + KUNIT_EXPECT_EQ(test, dcp_ind_apply(&ind, false, &fake_ops, &d), 0); + KUNIT_EXPECT_EQ(test, d.queued, 1); + KUNIT_EXPECT_EQ(test, dcp_ind_retry(&ind, true, &fake_ops, &d), 0); + KUNIT_EXPECT_EQ(test, d.queued, 2); + KUNIT_EXPECT_FALSE(test, d.last_on); + KUNIT_EXPECT_EQ(test, dcp_ind_retry(&ind, true, &fake_ops, &d), 0); + KUNIT_EXPECT_EQ(test, d.commits, 3); + /* Landed: nothing left to retry. */ + KUNIT_EXPECT_EQ(test, dcp_ind_retry(&ind, true, &fake_ops, &d), 0); + KUNIT_EXPECT_EQ(test, d.commits, 3); + KUNIT_EXPECT_EQ(test, d.queued, 2); + + /* On: the request stands, so the square is asked for again. */ + d = (struct fake_drm){ .results = { -EBUSY, 0 } }; KUNIT_ASSERT_EQ(test, dcp_ind_begin(&ind), 0); - KUNIT_EXPECT_FALSE(test, ind.off_pending); + KUNIT_EXPECT_EQ(test, dcp_ind_apply(&ind, true, &fake_ops, &d), 0); + KUNIT_EXPECT_EQ(test, d.queued, 1); + KUNIT_EXPECT_EQ(test, dcp_ind_retry(&ind, true, &fake_ops, &d), 0); + KUNIT_EXPECT_TRUE(test, d.last_on); + KUNIT_EXPECT_EQ(test, d.commits, 2); + KUNIT_EXPECT_EQ(test, dcp_ind_retry(&ind, true, &fake_ops, &d), 0); + KUNIT_EXPECT_EQ(test, d.commits, 2); +} + +static void indicator_retry_ends_with_the_request(struct kunit *test) +{ + struct dcp_indicator ind = {}; + struct fake_drm d = { .results = { -EBUSY, -EIO, 0 } }; + + /* Any other error is final, and ends the retry. */ + KUNIT_ASSERT_EQ(test, dcp_ind_begin(&ind), 0); + KUNIT_EXPECT_EQ(test, dcp_ind_apply(&ind, true, &fake_ops, &d), 0); + KUNIT_EXPECT_EQ(test, dcp_ind_retry(&ind, true, &fake_ops, &d), -EIO); + KUNIT_EXPECT_EQ(test, dcp_ind_retry(&ind, true, &fake_ops, &d), 0); + KUNIT_EXPECT_EQ(test, d.commits, 2); + + /* A request that ends (stopped, withdrawn) takes its on retry with it. */ + d = (struct fake_drm){ .results = { -EBUSY, 0 } }; + dcp_ind_end(&ind); + KUNIT_ASSERT_EQ(test, dcp_ind_begin(&ind), 0); + KUNIT_EXPECT_EQ(test, dcp_ind_apply(&ind, true, &fake_ops, &d), 0); dcp_ind_end(&ind); - KUNIT_EXPECT_EQ(test, dcp_ind_off_result(&ind, -EBUSY), DCP_IND_OFF_RETRY); + KUNIT_EXPECT_EQ(test, dcp_ind_retry(&ind, true, &fake_ops, &d), 0); + KUNIT_EXPECT_EQ(test, d.commits, 1); + + /* A new request supersedes an off retry; losing the plane drops any retry. */ + d = (struct fake_drm){ .results = { -EBUSY, -EBUSY, 0 } }; + KUNIT_EXPECT_EQ(test, dcp_ind_apply(&ind, false, &fake_ops, &d), 0); + KUNIT_ASSERT_EQ(test, dcp_ind_begin(&ind), 0); + KUNIT_EXPECT_EQ(test, dcp_ind_retry(&ind, true, &fake_ops, &d), 0); + KUNIT_EXPECT_EQ(test, d.commits, 1); + KUNIT_EXPECT_EQ(test, dcp_ind_apply(&ind, true, &fake_ops, &d), 0); + KUNIT_EXPECT_EQ(test, dcp_ind_retry(&ind, false, &fake_ops, &d), 0); + KUNIT_EXPECT_EQ(test, d.commits, 2); dcp_ind_suspend(&ind); - KUNIT_EXPECT_FALSE(test, ind.off_pending); + KUNIT_EXPECT_EQ(test, dcp_ind_retry(&ind, true, &fake_ops, &d), 0); + KUNIT_EXPECT_EQ(test, d.commits, 2); } /* @@ -153,7 +211,8 @@ static struct kunit_case indicator_cases[] = { KUNIT_CASE(indicator_idle_ignores_presents), KUNIT_CASE(indicator_single_owner), KUNIT_CASE(indicator_resumes_only_a_kept_request), - KUNIT_CASE(indicator_off_retries_a_pending_flip), + KUNIT_CASE(indicator_refused_commit_is_retried), + KUNIT_CASE(indicator_retry_ends_with_the_request), KUNIT_CASE(indicator_plane_reservation), {} }; diff --git a/drivers/gpu/drm/apple/dcp-indicator.c b/drivers/gpu/drm/apple/dcp-indicator.c index d4a6df2a79e8d..a7d3e0a5cd8ea 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.c +++ b/drivers/gpu/drm/apple/dcp-indicator.c @@ -35,11 +35,11 @@ #define IND_FILL 0xffff9500 #define IND_EDGE 0xff000000 #define IND_PRESENT_TIMEOUT msecs_to_jiffies(1000) -#define IND_OFF_RETRY msecs_to_jiffies(50) +#define IND_RETRY msecs_to_jiffies(50) static void dcp_indicator_watch(struct work_struct *work); static void dcp_indicator_resume(struct work_struct *work); -static void dcp_indicator_off_retry(struct work_struct *work); +static void dcp_indicator_retry(struct work_struct *work); int dcp_indicator_probe(struct apple_dcp *dcp) { @@ -50,7 +50,7 @@ int dcp_indicator_probe(struct apple_dcp *dcp) mutex_init(&ci->ctl); INIT_DELAYED_WORK(&ci->watch, dcp_indicator_watch); INIT_WORK(&ci->resume, dcp_indicator_resume); - INIT_DELAYED_WORK(&ci->off_retry, dcp_indicator_off_retry); + INIT_DELAYED_WORK(&ci->retry, dcp_indicator_retry); if (of_property_read_u32(dcp->dev->of_node, "apple,camera-indicator-surface", &surf)) return 0; @@ -89,7 +89,7 @@ void dcp_indicator_release(struct apple_dcp *dcp) } /* With no fb nothing queues them again, and all take ctl, so cancel after dropping it. */ cancel_delayed_work_sync(&ci->watch); - cancel_delayed_work_sync(&ci->off_retry); + cancel_delayed_work_sync(&ci->retry); cancel_work_sync(&ci->resume); } @@ -242,39 +242,48 @@ static void dcp_indicator_end(struct apple_dcp *dcp) spin_unlock_irqrestore(&ci->lock, flags); } +static int dcp_indicator_do_commit(void *ctx, bool on) +{ + return dcp_indicator_commit(ctx, on); +} + +static void dcp_indicator_queue_retry(void *ctx) +{ + struct apple_dcp *dcp = ctx; + + queue_delayed_work(system_percpu_wq, &dcp->camera_ind.retry, IND_RETRY); +} + +static const struct dcp_ind_ops dcp_indicator_ops = { + .commit = dcp_indicator_do_commit, + .queue_retry = dcp_indicator_queue_retry, +}; + /* - * ctl held. The off commit is nonblocking, so a flip still pending on the CRTC - * refuses it. The square must still come off, so the refusal is retried from - * a work item until it lands, never by making the camera wait. + * ctl held. The square must come off, so a commit refused for a pending flip + * is retried from a work item until it lands. */ static void dcp_indicator_off(struct apple_dcp *dcp) { - struct dcp_camera_indicator *ci = &dcp->camera_ind; - int ret = dcp_indicator_commit(dcp, false); + int ret = dcp_ind_apply(&dcp->camera_ind.state, false, &dcp_indicator_ops, dcp); - switch (dcp_ind_off_result(&ci->state, ret)) { - case DCP_IND_OFF_RETRY: - queue_delayed_work(system_percpu_wq, &ci->off_retry, IND_OFF_RETRY); - break; - case DCP_IND_OFF_FAILED: + if (ret) dev_warn(dcp->dev, "camera indicator off commit failed: %d\n", ret); - break; - case DCP_IND_OFF_DONE: - break; - } } -static void dcp_indicator_off_retry(struct work_struct *work) +static void dcp_indicator_retry(struct work_struct *work) { struct dcp_camera_indicator *ci = - container_of(work, struct dcp_camera_indicator, off_retry.work); + container_of(work, struct dcp_camera_indicator, retry.work); struct apple_dcp *dcp = container_of(ci, struct apple_dcp, camera_ind); + int ret; guard(mutex)(&ci->ctl); - /* A request made since, or the plane going away, ended the retry. */ - if (!ci->state.off_pending || !ci->fb) - return; - dcp_indicator_off(dcp); + ret = dcp_ind_retry(&ci->state, ci->fb, &dcp_indicator_ops, dcp); + if (ret) { + dev_warn(dcp->dev, "camera indicator commit failed: %d\n", ret); + dcp_indicator_end(dcp); + } } /* @@ -320,7 +329,7 @@ static int dcp_indicator_request(struct apple_dcp *dcp) return ret; /* A refused commit changed nothing on the plane, so there is no square to take off. */ - ret = dcp_indicator_commit(dcp, true); + ret = dcp_ind_apply(&ci->state, true, &dcp_indicator_ops, dcp); if (ret) { dcp_indicator_end(dcp); return ret; @@ -352,11 +361,11 @@ static void dcp_indicator_resume(struct work_struct *work) } /* - * on: requests the square and returns 0 once the request is committed; the - * present that carries it is confirmed, or withdrawn, within 1 s without - * blocking the caller. An error means no indicator. off: always succeeds, and - * a commit refused for a pending flip is retried until it lands. The caller - * streams either way. + * on: requests the square and returns 0 once the request is committed, or + * queued after a pending flip refused it; the present that carries it is + * confirmed, or withdrawn, within 1 s without blocking the caller. An error + * means no indicator. off: always succeeds, and a commit refused for a pending + * flip is retried until it lands. The caller streams either way. */ int apple_dcp_camera_indicator_set(struct device *dev, bool on) { diff --git a/drivers/gpu/drm/apple/dcp-indicator.h b/drivers/gpu/drm/apple/dcp-indicator.h index b858c18663131..03ccfe1109c5b 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.h +++ b/drivers/gpu/drm/apple/dcp-indicator.h @@ -25,15 +25,12 @@ struct dcp_indicator { enum dcp_ind_state state; /* Requested and not ended: it survives a DRM unbind, so the next bind shows it again. */ bool wanted; - /* An off commit was refused for a pending flip and is being retried. */ - bool off_pending; -}; - -enum dcp_ind_off_result { - DCP_IND_OFF_DONE, - /* A flip is still pending: ask again shortly. */ - DCP_IND_OFF_RETRY, - DCP_IND_OFF_FAILED, + /* A commit refused for a pending flip, and which one is being retried. */ + enum { + DCP_IND_RETRY_NONE, + DCP_IND_RETRY_ON, + DCP_IND_RETRY_OFF, + } retry; }; /* One owner at a time: a second request cannot reset a running one. */ @@ -44,7 +41,7 @@ static inline int dcp_ind_begin(struct dcp_indicator *ind) ind->state = DCP_IND_PENDING; ind->wanted = true; /* This request puts the square on again, so a retried off has no meaning. */ - ind->off_pending = false; + ind->retry = DCP_IND_RETRY_NONE; return 0; } @@ -55,32 +52,53 @@ static inline void dcp_ind_present_done(struct dcp_indicator *ind, bool dot_show ind->state = DCP_IND_LIT; } -/* The request is over: stopped, failed or withdrawn. */ +/* The request is over: stopped, failed or withdrawn. An on retry has no request left. */ static inline void dcp_ind_end(struct dcp_indicator *ind) { ind->state = DCP_IND_OFF; ind->wanted = false; + ind->retry = DCP_IND_RETRY_NONE; } /* The plane is gone (DRM unbind) but the camera may still stream: keep the request. */ static inline void dcp_ind_suspend(struct dcp_indicator *ind) { ind->state = DCP_IND_OFF; - ind->off_pending = false; + ind->retry = DCP_IND_RETRY_NONE; } +struct dcp_ind_ops { + int (*commit)(void *ctx, bool on); + void (*queue_retry)(void *ctx); +}; + /* - * The result of an off commit. The commit is nonblocking, so a flip that is - * still pending on the CRTC refuses it with -EBUSY. The square must still come - * off, so that refusal is retried until the commit lands; any other error is - * final. The camera never waits for it. + * Commits the square on or off. The commit is nonblocking, so a flip still + * pending on the CRTC refuses it with -EBUSY. The request stands, so that + * refusal is queued to be asked again, never waited for: 0 means committed or + * queued. Any other error is final and returned. */ -static inline enum dcp_ind_off_result dcp_ind_off_result(struct dcp_indicator *ind, int err) +static inline int dcp_ind_apply(struct dcp_indicator *ind, bool on, + const struct dcp_ind_ops *ops, void *ctx) +{ + int ret = ops->commit(ctx, on); + + ind->retry = DCP_IND_RETRY_NONE; + if (ret == -EBUSY) { + ind->retry = on ? DCP_IND_RETRY_ON : DCP_IND_RETRY_OFF; + ops->queue_retry(ctx); + return 0; + } + return ret; +} + +/* The retry work: asks again for whatever was refused, if the plane is still there. */ +static inline int dcp_ind_retry(struct dcp_indicator *ind, bool plane, + const struct dcp_ind_ops *ops, void *ctx) { - ind->off_pending = err == -EBUSY; - if (!err) - return DCP_IND_OFF_DONE; - return err == -EBUSY ? DCP_IND_OFF_RETRY : DCP_IND_OFF_FAILED; + if (!plane || ind->retry == DCP_IND_RETRY_NONE) + return 0; + return dcp_ind_apply(ind, ind->retry == DCP_IND_RETRY_ON, ops, ctx); } /* Wanted but not on the panel: the next present after a rebind asks again. */ diff --git a/drivers/gpu/drm/apple/dcp-internal.h b/drivers/gpu/drm/apple/dcp-internal.h index ba1ee67ebdaf5..687d8b9edd149 100644 --- a/drivers/gpu/drm/apple/dcp-internal.h +++ b/drivers/gpu/drm/apple/dcp-internal.h @@ -450,7 +450,7 @@ struct dcp_camera_indicator { struct mutex ctl; struct delayed_work watch; struct work_struct resume; - struct delayed_work off_retry; + struct delayed_work retry; unsigned long deadline; struct drm_plane *plane; struct drm_framebuffer *fb; From 44bc1d8e0eb8f7cbd4e3f443ee6254fdcaa80595 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Thu, 12 Nov 2026 23:38:07 -0600 Subject: [PATCH 18/24] drm/apple: do not refuse the kernel's own indicator framebuffer on resume Refusing a userspace assignment to the reserved plane (ed1887f5c7b7) also refused the kernel's own framebuffer when resume committed it back. drm_atomic_helper_suspend() saves the lit square in the duplicated state, and drm_atomic_helper_resume() resets the plane and commits that state, so atomic_check saw an own fb on the reserved plane that was neither unchanged nor the indicator's commit, returned -EINVAL, and the panel did not come back. Userspace cannot name the framebuffer (it is unregistered, kernel-private), so a new state whose fb is that framebuffer is the kernel's. apple_plane now holds a pointer to it, set at attach and cleared at release, compared by pointer only. dcp_ind_plane_policy() takes an own_fb argument and puts such a state back like a clear: the plane resumes disabled, and the indicator's resume path asks for the square again if the camera still streams. Proof: indicator_plane_reservation pins own_fb to RESTORE, and fails on a version that ignores own_fb. The suite passes 8/8 in userspace, and the DRM objects build with no warnings. The own_fb pointer comparison in plane.c and a real suspend and resume were not run. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- drivers/gpu/drm/apple/dcp-indicator-test.c | 18 ++++++++++++------ drivers/gpu/drm/apple/dcp-indicator.c | 3 +++ drivers/gpu/drm/apple/dcp-indicator.h | 9 ++++++--- drivers/gpu/drm/apple/plane.c | 4 +++- drivers/gpu/drm/apple/plane.h | 2 ++ 5 files changed, 26 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/apple/dcp-indicator-test.c b/drivers/gpu/drm/apple/dcp-indicator-test.c index 541d09160e043..aa313d4dbdf15 100644 --- a/drivers/gpu/drm/apple/dcp-indicator-test.c +++ b/drivers/gpu/drm/apple/dcp-indicator-test.c @@ -187,21 +187,27 @@ static void indicator_retry_ends_with_the_request(struct kunit *test) static void indicator_plane_reservation(struct kunit *test) { /* An ordinary plane is never touched. */ - KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(false, false, false, false, false), + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(false, false, false, false, false, false), DCP_IND_PLANE_PASS); /* The kernel's own commit may do anything. */ - KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, true, false, false, false), + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, true, false, false, false, false), DCP_IND_PLANE_PASS); /* Userspace: carried unchanged, or disabled with its CRTC, is left alone. */ - KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, true, false, false), + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, true, false, false, false), DCP_IND_PLANE_PASS); - KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, true, true), + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, true, true, false), DCP_IND_PLANE_PASS); /* A blind clear of every plane (console restore) still succeeds, undone. */ - KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, false, true), + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, false, true, false), + DCP_IND_PLANE_RESTORE); + /* + * The kernel's own framebuffer, saved by suspend and committed back by + * resume, is not userspace: it must not fail the resume. It is undone. + */ + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, false, false, true), DCP_IND_PLANE_RESTORE); /* Any other userspace assignment (own fb, a move, a property) is refused. */ - KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, false, false), + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, false, false, false), DCP_IND_PLANE_REJECT); } diff --git a/drivers/gpu/drm/apple/dcp-indicator.c b/drivers/gpu/drm/apple/dcp-indicator.c index a7d3e0a5cd8ea..e221acd93c502 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.c +++ b/drivers/gpu/drm/apple/dcp-indicator.c @@ -79,6 +79,8 @@ void dcp_indicator_release(struct apple_dcp *dcp) return; scoped_guard(mutex, &ci->ctl) { fb = ci->fb; + if (ci->plane) + WRITE_ONCE(to_apple_plane(ci->plane)->indicator_fb, NULL); spin_lock_irqsave(&ci->lock, flags); ci->fb = NULL; ci->plane = NULL; @@ -159,6 +161,7 @@ int dcp_indicator_attach_plane(struct apple_dcp *dcp, struct drm_device *drm, spin_lock_irqsave(&ci->lock, flags); ci->fb = fb; spin_unlock_irqrestore(&ci->lock, flags); + WRITE_ONCE(to_apple_plane(plane)->indicator_fb, fb); return 0; } diff --git a/drivers/gpu/drm/apple/dcp-indicator.h b/drivers/gpu/drm/apple/dcp-indicator.h index 03ccfe1109c5b..4b120d689d5c9 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.h +++ b/drivers/gpu/drm/apple/dcp-indicator.h @@ -120,15 +120,18 @@ enum dcp_ind_plane_action { * client's own framebuffer, a move, a property) is refused with -EINVAL, so a * compositor sees it in its TEST_ONLY commit and falls back instead of having * its buffer silently dropped. Carried unchanged, or disabled with the CRTC it - * sits on (DPMS off, suspend, shutdown), the plane is left alone. + * sits on (DPMS off, suspend, shutdown), the plane is left alone. The kernel's + * own framebuffer is not userspace: suspend saves it and resume commits it + * back, and refusing that would fail the resume, so it is put back like a clear. */ static inline enum dcp_ind_plane_action dcp_ind_plane_policy(bool reserved_plane, bool kernel_commit, bool unchanged, - bool crtc_going_off, bool clearing) + bool crtc_going_off, bool clearing, + bool own_fb) { if (!reserved_plane || kernel_commit || unchanged || crtc_going_off) return DCP_IND_PLANE_PASS; - return clearing ? DCP_IND_PLANE_RESTORE : DCP_IND_PLANE_REJECT; + return clearing || own_fb ? DCP_IND_PLANE_RESTORE : DCP_IND_PLANE_REJECT; } #endif /* DCP_INDICATOR_H */ diff --git a/drivers/gpu/drm/apple/plane.c b/drivers/gpu/drm/apple/plane.c index f99c00679f5f8..dabf05443b3f8 100644 --- a/drivers/gpu/drm/apple/plane.c +++ b/drivers/gpu/drm/apple/plane.c @@ -262,7 +262,9 @@ static int apple_plane_atomic_check(struct drm_plane *plane, switch (dcp_ind_plane_policy(true, commit == READ_ONCE(to_apple_plane(plane)->indicator_commit), unchanged, going_off, - !new_plane_state->fb && !new_plane_state->crtc)) { + !new_plane_state->fb && !new_plane_state->crtc, + new_plane_state->fb && + new_plane_state->fb == READ_ONCE(to_apple_plane(plane)->indicator_fb))) { case DCP_IND_PLANE_REJECT: return -EINVAL; case DCP_IND_PLANE_RESTORE: { diff --git a/drivers/gpu/drm/apple/plane.h b/drivers/gpu/drm/apple/plane.h index ae516b3b0b7e3..ad17c93148561 100644 --- a/drivers/gpu/drm/apple/plane.h +++ b/drivers/gpu/drm/apple/plane.h @@ -19,6 +19,8 @@ struct apple_plane { bool indicator; /* The kernel commit in flight, compared by pointer only. */ const struct drm_atomic_commit *indicator_commit; + /* The kernel's own framebuffer, compared by pointer only; NULL once released. */ + const struct drm_framebuffer *indicator_fb; }; #define to_apple_plane(x) container_of(x, struct apple_plane, base) From 80611c90780d4c2647e1791ac5944e3e4a1f3624 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Thu, 12 Nov 2026 23:55:59 -0600 Subject: [PATCH 19/24] drm/apple: show the camera indicator again after a display resume A square lit when the system suspended stayed dark after resume. Resume commits the saved state with the kernel framebuffer, which the reserved-plane policy puts back disabled, while the state machine still said LIT, so nothing asked for the square again. A request made before the display was ready (the ISP resuming first) got -ENODEV, which ended the request and dropped it. - Resume: apple_drm_resume_outputs() calls dcp_indicator_display_resumed() for every CRTC after drm_mode_config_helper_resume(). The plane came back disabled, so the state goes OFF and a request that still stands queues the resume work. - Not ready: -ENODEV from the commit (CRTC inactive, DRM unbound) keeps the request with the square OFF and returns 0. The display resuming asks again. No watch is armed for a commit that did not happen. - Own framebuffer: it is now identified by its funcs, which are the indicator's alone, instead of a pointer kept on the plane. That removes the attach and release bookkeeping and the stale pointer after a rebind. A state carrying it is restored, not refused, as before. - dcp_ind_plane_policy() takes has_fb, has_crtc and own_fb, so the clear test is part of what the suite pins. - tests/kunit-shim.h is added so dcp-indicator-test.c builds as a plain program. Proof: indicator_survives_a_display_that_is_not_ready, indicator_lit_across_suspend_asks_again and the widened indicator_plane_reservation were written first and failed to build. Mutants that drop the -ENODEV keep, the resume reset, or the own-fb/clear rule each fail one case. The suite passes 10/10 in userspace, and the DRM and ISP objects build with no warnings. Not run: the glue in plane.c and apple_drv.c (the own fb argument and the resume call), a real suspend and resume, a panel. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- drivers/gpu/drm/apple/apple_drv.c | 3 + drivers/gpu/drm/apple/dcp-indicator-test.c | 70 +++++++++++++++++++--- drivers/gpu/drm/apple/dcp-indicator.c | 37 +++++++++++- drivers/gpu/drm/apple/dcp-indicator.h | 31 ++++++++-- drivers/gpu/drm/apple/dcp-internal.h | 2 + drivers/gpu/drm/apple/plane.c | 5 +- drivers/gpu/drm/apple/plane.h | 2 - drivers/gpu/drm/apple/tests/kunit-shim.h | 40 +++++++++++++ 8 files changed, 167 insertions(+), 23 deletions(-) create mode 100644 drivers/gpu/drm/apple/tests/kunit-shim.h diff --git a/drivers/gpu/drm/apple/apple_drv.c b/drivers/gpu/drm/apple/apple_drv.c index 0a14a1709133a..6fcc0008d10bf 100644 --- a/drivers/gpu/drm/apple/apple_drv.c +++ b/drivers/gpu/drm/apple/apple_drv.c @@ -2039,6 +2039,7 @@ static bool apple_drm_hold_resume_events(struct apple_drm_private *apple, u32 cr static void apple_drm_resume_outputs(struct apple_drm_private *apple) { + struct drm_crtc *crtc; u32 dropped = 0; apple->dark_held = false; @@ -2048,6 +2049,8 @@ static void apple_drm_resume_outputs(struct apple_drm_private *apple) if (dropped && apple_drm_hold_resume_events(apple, dropped)) dropped = 0; drm_mode_config_helper_resume(&apple->drm); + drm_for_each_crtc(crtc, &apple->drm) + dcp_indicator_display_resumed(platform_get_drvdata(to_apple_crtc(crtc)->dcp)); if (dropped) drm_kms_helper_hotplug_event(&apple->drm); } diff --git a/drivers/gpu/drm/apple/dcp-indicator-test.c b/drivers/gpu/drm/apple/dcp-indicator-test.c index aa313d4dbdf15..bdbae10e6f5f6 100644 --- a/drivers/gpu/drm/apple/dcp-indicator-test.c +++ b/drivers/gpu/drm/apple/dcp-indicator-test.c @@ -1,10 +1,11 @@ // SPDX-License-Identifier: GPL-2.0-only OR MIT /* * Behaviour of the software camera indicator state. The same file builds as - * a KUnit suite in the kernel and as a plain program (-DDCP_IND_USERSPACE). + * a KUnit suite in the kernel and as a plain program (-DDCP_IND_USERSPACE): + * gcc -DDCP_IND_USERSPACE -I. -o ind-test dcp-indicator-test.c && ./ind-test */ #ifdef DCP_IND_USERSPACE -#include "kunit-shim.h" +#include "tests/kunit-shim.h" #else #include #include @@ -183,32 +184,81 @@ static void indicator_retry_ends_with_the_request(struct kunit *test) /* * Userspace never gets the reserved plane: a clear is put back, anything else * is refused so a compositor sees it in its TEST_ONLY commit and falls back. + * Arguments: reserved, kernel commit, unchanged, CRTC going off, has fb, + * has crtc, own fb. */ static void indicator_plane_reservation(struct kunit *test) { /* An ordinary plane is never touched. */ - KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(false, false, false, false, false, false), + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(false, false, false, false, true, true, false), DCP_IND_PLANE_PASS); /* The kernel's own commit may do anything. */ - KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, true, false, false, false, false), + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, true, false, false, true, true, false), DCP_IND_PLANE_PASS); /* Userspace: carried unchanged, or disabled with its CRTC, is left alone. */ - KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, true, false, false, false), + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, true, false, true, true, false), DCP_IND_PLANE_PASS); - KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, true, true, false), + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, true, false, false, false), DCP_IND_PLANE_PASS); /* A blind clear of every plane (console restore) still succeeds, undone. */ - KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, false, true, false), + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, false, false, false, false), DCP_IND_PLANE_RESTORE); /* * The kernel's own framebuffer, saved by suspend and committed back by * resume, is not userspace: it must not fail the resume. It is undone. */ - KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, false, false, true), + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, false, true, true, true), DCP_IND_PLANE_RESTORE); /* Any other userspace assignment (own fb, a move, a property) is refused. */ - KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, false, false, false), + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, false, true, true, false), DCP_IND_PLANE_REJECT); + /* An fb without a CRTC is no clear: it is refused, never put back. */ + KUNIT_EXPECT_EQ(test, dcp_ind_plane_policy(true, false, false, false, true, false, false), + DCP_IND_PLANE_REJECT); +} + +/* + * The panel is not ready (suspended, or the CRTC not yet active): a request made + * then is kept and asked for again when the display resumes, not dropped. + */ +static void indicator_survives_a_display_that_is_not_ready(struct kunit *test) +{ + struct dcp_indicator ind = {}; + struct fake_drm d = { .results = { -ENODEV, -ENODEV } }; + + KUNIT_ASSERT_EQ(test, dcp_ind_begin(&ind), 0); + KUNIT_EXPECT_EQ(test, dcp_ind_apply(&ind, true, &fake_ops, &d), 0); + KUNIT_EXPECT_EQ(test, ind.state, DCP_IND_OFF); + KUNIT_EXPECT_TRUE(test, ind.wanted); + KUNIT_EXPECT_TRUE(test, dcp_ind_wants_resume(&ind)); + KUNIT_EXPECT_EQ(test, d.queued, 0); + + /* Nothing to take off a panel that is not lit. */ + dcp_ind_end(&ind); + KUNIT_EXPECT_EQ(test, dcp_ind_apply(&ind, false, &fake_ops, &d), 0); + KUNIT_EXPECT_EQ(test, d.queued, 0); + KUNIT_EXPECT_FALSE(test, dcp_ind_wants_resume(&ind)); +} + +/* + * Lit when the system suspends: resume puts the plane back disabled, so the + * display resuming makes the square OFF again and the kept request asks anew. + */ +static void indicator_lit_across_suspend_asks_again(struct kunit *test) +{ + struct dcp_indicator ind = {}; + + KUNIT_ASSERT_EQ(test, dcp_ind_begin(&ind), 0); + dcp_ind_present_done(&ind, true); + KUNIT_ASSERT_EQ(test, ind.state, DCP_IND_LIT); + KUNIT_EXPECT_FALSE(test, dcp_ind_wants_resume(&ind)); + dcp_ind_display_resumed(&ind); + KUNIT_EXPECT_TRUE(test, dcp_ind_wants_resume(&ind)); + /* Stopped during the suspend: nothing to ask for. */ + KUNIT_ASSERT_EQ(test, dcp_ind_begin(&ind), 0); + dcp_ind_end(&ind); + dcp_ind_display_resumed(&ind); + KUNIT_EXPECT_FALSE(test, dcp_ind_wants_resume(&ind)); } static struct kunit_case indicator_cases[] = { @@ -219,6 +269,8 @@ static struct kunit_case indicator_cases[] = { KUNIT_CASE(indicator_resumes_only_a_kept_request), KUNIT_CASE(indicator_refused_commit_is_retried), KUNIT_CASE(indicator_retry_ends_with_the_request), + KUNIT_CASE(indicator_survives_a_display_that_is_not_ready), + KUNIT_CASE(indicator_lit_across_suspend_asks_again), KUNIT_CASE(indicator_plane_reservation), {} }; diff --git a/drivers/gpu/drm/apple/dcp-indicator.c b/drivers/gpu/drm/apple/dcp-indicator.c index e221acd93c502..8dbea494272c1 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.c +++ b/drivers/gpu/drm/apple/dcp-indicator.c @@ -79,8 +79,6 @@ void dcp_indicator_release(struct apple_dcp *dcp) return; scoped_guard(mutex, &ci->ctl) { fb = ci->fb; - if (ci->plane) - WRITE_ONCE(to_apple_plane(ci->plane)->indicator_fb, NULL); spin_lock_irqsave(&ci->lock, flags); ci->fb = NULL; ci->plane = NULL; @@ -161,10 +159,15 @@ int dcp_indicator_attach_plane(struct apple_dcp *dcp, struct drm_device *drm, spin_lock_irqsave(&ci->lock, flags); ci->fb = fb; spin_unlock_irqrestore(&ci->lock, flags); - WRITE_ONCE(to_apple_plane(plane)->indicator_fb, fb); return 0; } +/* The framebuffer is the kernel's: its funcs are ours, and userspace cannot name it. */ +bool dcp_indicator_owns_fb(const struct drm_framebuffer *fb) +{ + return fb && fb->funcs == &dcp_indicator_fb_funcs; +} + /* The atomic state the kernel itself commits: the square, or nothing. */ static int dcp_indicator_commit(struct apple_dcp *dcp, bool on) { @@ -337,11 +340,39 @@ static int dcp_indicator_request(struct apple_dcp *dcp) dcp_indicator_end(dcp); return ret; } + /* A panel that was not ready kept the request: the display resuming asks again. */ + spin_lock_irqsave(&ci->lock, flags); + ret = dcp_ind_wants_resume(&ci->state); + spin_unlock_irqrestore(&ci->lock, flags); + if (ret) + return 0; ci->deadline = jiffies + IND_PRESENT_TIMEOUT; mod_delayed_work(system_percpu_wq, &ci->watch, IND_PRESENT_TIMEOUT); return 0; } +/* + * The display resumed: the plane came back disabled, so whatever the square was + * it is OFF now, and a request that still stands is asked for again. + */ +void dcp_indicator_display_resumed(struct apple_dcp *dcp) +{ + struct dcp_camera_indicator *ci; + unsigned long flags; + + /* A CRTC whose DCP is not bound has no drvdata. */ + if (!dcp) + return; + ci = &dcp->camera_ind; + if (!ci->has_surf) + return; + spin_lock_irqsave(&ci->lock, flags); + dcp_ind_display_resumed(&ci->state); + if (ci->fb && dcp_ind_wants_resume(&ci->state)) + schedule_work(&ci->resume); + spin_unlock_irqrestore(&ci->lock, flags); +} + /* After a DRM rebind: the camera still streams, so the square is asked for again. */ static void dcp_indicator_resume(struct work_struct *work) { diff --git a/drivers/gpu/drm/apple/dcp-indicator.h b/drivers/gpu/drm/apple/dcp-indicator.h index 4b120d689d5c9..61f04d44b758f 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.h +++ b/drivers/gpu/drm/apple/dcp-indicator.h @@ -75,8 +75,10 @@ struct dcp_ind_ops { /* * Commits the square on or off. The commit is nonblocking, so a flip still * pending on the CRTC refuses it with -EBUSY. The request stands, so that - * refusal is queued to be asked again, never waited for: 0 means committed or - * queued. Any other error is final and returned. + * refusal is queued to be asked again, never waited for. A panel that is not + * ready (-ENODEV: suspended, CRTC not active, DRM not bound) keeps the request + * too, with the square OFF, for the display resuming to ask again. 0 means + * committed, queued or kept. Any other error is final and returned. */ static inline int dcp_ind_apply(struct dcp_indicator *ind, bool on, const struct dcp_ind_ops *ops, void *ctx) @@ -89,6 +91,11 @@ static inline int dcp_ind_apply(struct dcp_indicator *ind, bool on, ops->queue_retry(ctx); return 0; } + if (ret == -ENODEV) { + /* Nothing is lit, and the request (wanted) is kept. */ + ind->state = DCP_IND_OFF; + return 0; + } return ret; } @@ -101,6 +108,15 @@ static inline int dcp_ind_retry(struct dcp_indicator *ind, bool plane, return dcp_ind_apply(ind, ind->retry == DCP_IND_RETRY_ON, ops, ctx); } +/* + * The display came back (system resume): the plane returns disabled whatever it + * showed, so the square is OFF again and a kept request asks anew. + */ +static inline void dcp_ind_display_resumed(struct dcp_indicator *ind) +{ + dcp_ind_suspend(ind); +} + /* Wanted but not on the panel: the next present after a rebind asks again. */ static inline bool dcp_ind_wants_resume(const struct dcp_indicator *ind) { @@ -122,16 +138,19 @@ enum dcp_ind_plane_action { * its buffer silently dropped. Carried unchanged, or disabled with the CRTC it * sits on (DPMS off, suspend, shutdown), the plane is left alone. The kernel's * own framebuffer is not userspace: suspend saves it and resume commits it - * back, and refusing that would fail the resume, so it is put back like a clear. + * back, and refusing that would fail the resume, so it is put back like a clear + * (the display resuming then asks for the square again). */ static inline enum dcp_ind_plane_action dcp_ind_plane_policy(bool reserved_plane, bool kernel_commit, bool unchanged, - bool crtc_going_off, bool clearing, - bool own_fb) + bool crtc_going_off, bool has_fb, + bool has_crtc, bool own_fb) { if (!reserved_plane || kernel_commit || unchanged || crtc_going_off) return DCP_IND_PLANE_PASS; - return clearing || own_fb ? DCP_IND_PLANE_RESTORE : DCP_IND_PLANE_REJECT; + if ((!has_fb && !has_crtc) || (own_fb && has_fb)) + return DCP_IND_PLANE_RESTORE; + return DCP_IND_PLANE_REJECT; } #endif /* DCP_INDICATOR_H */ diff --git a/drivers/gpu/drm/apple/dcp-internal.h b/drivers/gpu/drm/apple/dcp-internal.h index 687d8b9edd149..fdd5b9c46cf1f 100644 --- a/drivers/gpu/drm/apple/dcp-internal.h +++ b/drivers/gpu/drm/apple/dcp-internal.h @@ -1402,5 +1402,7 @@ void dcp_indicator_release(struct apple_dcp *dcp); int dcp_indicator_attach_plane(struct apple_dcp *dcp, struct drm_device *drm, struct drm_plane *plane); void dcp_indicator_swap_done(struct apple_dcp *dcp, struct drm_framebuffer *slot_fb); +void dcp_indicator_display_resumed(struct apple_dcp *dcp); +bool dcp_indicator_owns_fb(const struct drm_framebuffer *fb); #endif /* __APPLE_DCP_INTERNAL_H__ */ diff --git a/drivers/gpu/drm/apple/plane.c b/drivers/gpu/drm/apple/plane.c index dabf05443b3f8..fca70e796cf46 100644 --- a/drivers/gpu/drm/apple/plane.c +++ b/drivers/gpu/drm/apple/plane.c @@ -262,9 +262,8 @@ static int apple_plane_atomic_check(struct drm_plane *plane, switch (dcp_ind_plane_policy(true, commit == READ_ONCE(to_apple_plane(plane)->indicator_commit), unchanged, going_off, - !new_plane_state->fb && !new_plane_state->crtc, - new_plane_state->fb && - new_plane_state->fb == READ_ONCE(to_apple_plane(plane)->indicator_fb))) { + new_plane_state->fb, new_plane_state->crtc, + dcp_indicator_owns_fb(new_plane_state->fb))) { case DCP_IND_PLANE_REJECT: return -EINVAL; case DCP_IND_PLANE_RESTORE: { diff --git a/drivers/gpu/drm/apple/plane.h b/drivers/gpu/drm/apple/plane.h index ad17c93148561..ae516b3b0b7e3 100644 --- a/drivers/gpu/drm/apple/plane.h +++ b/drivers/gpu/drm/apple/plane.h @@ -19,8 +19,6 @@ struct apple_plane { bool indicator; /* The kernel commit in flight, compared by pointer only. */ const struct drm_atomic_commit *indicator_commit; - /* The kernel's own framebuffer, compared by pointer only; NULL once released. */ - const struct drm_framebuffer *indicator_fb; }; #define to_apple_plane(x) container_of(x, struct apple_plane, base) diff --git a/drivers/gpu/drm/apple/tests/kunit-shim.h b/drivers/gpu/drm/apple/tests/kunit-shim.h new file mode 100644 index 0000000000000..1f70e048116f1 --- /dev/null +++ b/drivers/gpu/drm/apple/tests/kunit-shim.h @@ -0,0 +1,40 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR MIT */ +/* + * Just enough of KUnit to build dcp-indicator-test.c as a plain program + * (-DDCP_IND_USERSPACE), for a host with no kernel tree to run the suite in. + */ +#ifndef DCP_KUNIT_SHIM_H +#define DCP_KUNIT_SHIM_H + +#include +#include +#include +#include + +struct kunit { int fail; }; +struct kunit_case { void (*run)(struct kunit *test); const char *name; }; +struct kunit_suite { const char *name; struct kunit_case *test_cases; }; + +#define KUNIT_CASE(f) { f, #f } +#define KUNIT_EXPECT_EQ(t, a, b) do { \ + if ((long)(a) != (long)(b)) { \ + printf("FAIL %s:%d\n", __FILE__, __LINE__); \ + (t)->fail = 1; \ + } \ +} while (0) +#define KUNIT_ASSERT_EQ(t, a, b) KUNIT_EXPECT_EQ(t, a, b) +#define KUNIT_EXPECT_TRUE(t, a) KUNIT_EXPECT_EQ(t, !!(a), 1) +#define KUNIT_EXPECT_FALSE(t, a) KUNIT_EXPECT_EQ(t, !!(a), 0) +#define KUNIT_SHIM_MAIN(s) int main(void) \ +{ \ + int bad = 0; \ + for (struct kunit_case *c = (s).test_cases; c->run; c++) { \ + struct kunit t = { 0 }; \ + c->run(&t); \ + printf("%s %s\n", t.fail ? "not ok" : "ok", c->name); \ + bad |= t.fail; \ + } \ + return bad; \ +} + +#endif /* DCP_KUNIT_SHIM_H */ From 8ec445e4ab4d338049337cfece9eca115f5422b7 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Fri, 13 Nov 2026 00:06:22 -0600 Subject: [PATCH 20/24] drm/apple: keep the camera indicator state through a lit resume, test the plane check Review of e8e20e8919d9 found three defects and an untested wiring. apple_drm_resume_outputs() read to_apple_crtc(crtc)->dcp for every CRTC, but a T8132 external CRTC is not a struct apple_crtc. Skip it, as the other CRTC loops do. dcp_indicator_display_resumed() reset the state to OFF under ci->lock alone. A set(true) that landed between the resume commit and the call had its state forced to OFF; the re-request then found the plane unchanged, no swap followed, and the 1 s watch withdrew the square while the camera streams. The same happened to a plane that resume had restored lit. The hook now takes ci->ctl and the plane lock, in the order dcp_indicator_commit() does, and resets the state only if the plane came back dark (dcp_ind_display_resumed(ind, plane_dark)). plane.c gathered the policy arguments inline, out of reach of any test. dcp_ind_plane_check() now computes unchanged, going_off and own_fb from the old and new plane state, and dcp_indicator_owns_fb() is gone in favour of the exported dcp_indicator_fb_funcs it compared against. A kept request (-ENODEV) logs at dev_dbg. A DCP on the H17G profile has no swap_done hook to confirm the square, so the probe leaves the indicator off there with a warning instead of arming it. Proof: the userspace test (11 cases) passes; new cases cover a lit plane surviving the resume hook and every field of the plane check, and each mutant of the helpers (own_fb, going_off, each compared field, the dark test, the kernel_commit argument) fails one case. The DRM and ISP objects build with no warnings. The apple_drv.c call, the extern, and the plane.c call site are still not run on hardware. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- drivers/gpu/drm/apple/apple_drv.c | 5 +- drivers/gpu/drm/apple/dcp-indicator-test.c | 105 ++++++++++++++++++++- drivers/gpu/drm/apple/dcp-indicator.c | 34 ++++--- drivers/gpu/drm/apple/dcp-indicator.h | 43 ++++++++- drivers/gpu/drm/apple/dcp-internal.h | 2 +- drivers/gpu/drm/apple/plane.c | 25 +---- drivers/gpu/drm/apple/tests/kunit-shim.h | 16 ++++ 7 files changed, 190 insertions(+), 40 deletions(-) diff --git a/drivers/gpu/drm/apple/apple_drv.c b/drivers/gpu/drm/apple/apple_drv.c index 6fcc0008d10bf..9acc4c4280cf9 100644 --- a/drivers/gpu/drm/apple/apple_drv.c +++ b/drivers/gpu/drm/apple/apple_drv.c @@ -2049,8 +2049,11 @@ static void apple_drm_resume_outputs(struct apple_drm_private *apple) if (dropped && apple_drm_hold_resume_events(apple, dropped)) dropped = 0; drm_mode_config_helper_resume(&apple->drm); - drm_for_each_crtc(crtc, &apple->drm) + drm_for_each_crtc(crtc, &apple->drm) { + if (t8132_ext_crtc(crtc)) + continue; dcp_indicator_display_resumed(platform_get_drvdata(to_apple_crtc(crtc)->dcp)); + } if (dropped) drm_kms_helper_hotplug_event(&apple->drm); } diff --git a/drivers/gpu/drm/apple/dcp-indicator-test.c b/drivers/gpu/drm/apple/dcp-indicator-test.c index bdbae10e6f5f6..ce73424cb1ec2 100644 --- a/drivers/gpu/drm/apple/dcp-indicator-test.c +++ b/drivers/gpu/drm/apple/dcp-indicator-test.c @@ -252,15 +252,115 @@ static void indicator_lit_across_suspend_asks_again(struct kunit *test) dcp_ind_present_done(&ind, true); KUNIT_ASSERT_EQ(test, ind.state, DCP_IND_LIT); KUNIT_EXPECT_FALSE(test, dcp_ind_wants_resume(&ind)); - dcp_ind_display_resumed(&ind); + /* A request that got its square on the plane after the resume commit keeps it. */ + dcp_ind_display_resumed(&ind, false); + KUNIT_EXPECT_EQ(test, ind.state, DCP_IND_LIT); + KUNIT_EXPECT_FALSE(test, dcp_ind_wants_resume(&ind)); + /* The plane came back dark. */ + dcp_ind_display_resumed(&ind, true); KUNIT_EXPECT_TRUE(test, dcp_ind_wants_resume(&ind)); /* Stopped during the suspend: nothing to ask for. */ KUNIT_ASSERT_EQ(test, dcp_ind_begin(&ind), 0); dcp_ind_end(&ind); - dcp_ind_display_resumed(&ind); + dcp_ind_display_resumed(&ind, true); KUNIT_EXPECT_FALSE(test, dcp_ind_wants_resume(&ind)); } +/* + * The arguments plane.c hands the policy, gathered from the old and new plane + * state: what counts as unchanged, as a clear, as the CRTC going off, and as + * the kernel's own framebuffer. + */ +static void indicator_plane_check_reads_the_plane_state(struct kunit *test) +{ + static const struct drm_framebuffer_funcs own_funcs, user_funcs; + struct drm_framebuffer own = { .funcs = &own_funcs }, other_own = { .funcs = &own_funcs }; + struct drm_framebuffer user = { .funcs = &user_funcs }; + struct drm_crtc *crtc = (struct drm_crtc *)&user_funcs; + struct drm_plane_state old = { .fb = &own, .crtc = crtc, .src_w = 16 << 16, .crtc_w = 16, + .alpha = 0xffff }, new = old; + struct drm_crtc_state active = { .active = true }, off = { .active = false }; + + /* Carried unchanged. */ + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, false, &own_funcs), + DCP_IND_PLANE_PASS); + /* The kernel's own commit. */ + new.fb = &user; + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, true, &own_funcs), + DCP_IND_PLANE_PASS); + /* A userspace fb on the plane is refused, with or without the kernel's funcs mixed up. */ + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, false, &own_funcs), + DCP_IND_PLANE_REJECT); + /* The kernel's fb committed back by resume. */ + new.fb = &other_own; + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, false, &own_funcs), + DCP_IND_PLANE_RESTORE); + /* Any other field changed is not "unchanged": the kernel's fb is put back. */ + new = old; + new.alpha = 0x8000; + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, false, &own_funcs), + DCP_IND_PLANE_RESTORE); + new = old; + new.crtc_x = 5; + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, false, &own_funcs), + DCP_IND_PLANE_RESTORE); + /* Every compared field counts. */ + new = old; + new.src_x++; + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, false, &own_funcs), + DCP_IND_PLANE_RESTORE); + new = old; + new.src_y++; + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, false, &own_funcs), + DCP_IND_PLANE_RESTORE); + new = old; + new.src_w++; + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, false, &own_funcs), + DCP_IND_PLANE_RESTORE); + new = old; + new.src_h++; + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, false, &own_funcs), + DCP_IND_PLANE_RESTORE); + new = old; + new.crtc_y = 1; + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, false, &own_funcs), + DCP_IND_PLANE_RESTORE); + new = old; + new.crtc_w++; + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, false, &own_funcs), + DCP_IND_PLANE_RESTORE); + new = old; + new.crtc_h++; + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, false, &own_funcs), + DCP_IND_PLANE_RESTORE); + new = old; + new.pixel_blend_mode++; + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, false, &own_funcs), + DCP_IND_PLANE_RESTORE); + new = old; + new.rotation++; + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, false, &own_funcs), + DCP_IND_PLANE_RESTORE); + new = old; + new.crtc = NULL; + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, false, &own_funcs), + DCP_IND_PLANE_RESTORE); + /* A userspace fb with a move is refused. */ + new = old; + new.fb = &user; + new.crtc_x = 5; + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, false, &own_funcs), + DCP_IND_PLANE_REJECT); + /* A clear is undone; with the CRTC going off it is let through. */ + new = (struct drm_plane_state){ }; + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &active, false, &own_funcs), + DCP_IND_PLANE_RESTORE); + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, &off, false, &own_funcs), + DCP_IND_PLANE_PASS); + KUNIT_EXPECT_EQ(test, dcp_ind_plane_check(&old, &new, NULL, false, &own_funcs), + DCP_IND_PLANE_RESTORE); +} + static struct kunit_case indicator_cases[] = { KUNIT_CASE(indicator_starts_off), KUNIT_CASE(indicator_confirmed_only_after_present), @@ -272,6 +372,7 @@ static struct kunit_case indicator_cases[] = { KUNIT_CASE(indicator_survives_a_display_that_is_not_ready), KUNIT_CASE(indicator_lit_across_suspend_asks_again), KUNIT_CASE(indicator_plane_reservation), + KUNIT_CASE(indicator_plane_check_reads_the_plane_state), {} }; diff --git a/drivers/gpu/drm/apple/dcp-indicator.c b/drivers/gpu/drm/apple/dcp-indicator.c index 8dbea494272c1..02041223801d3 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.c +++ b/drivers/gpu/drm/apple/dcp-indicator.c @@ -54,6 +54,11 @@ int dcp_indicator_probe(struct apple_dcp *dcp) if (of_property_read_u32(dcp->dev->of_node, "apple,camera-indicator-surface", &surf)) return 0; + /* The swap_done hook that confirms the square is on the non-H17G presents only. */ + if (dcp->hw.iomfb_method_profile == DCP_IOMFB_METHODS_H17G) { + dev_warn(dcp->dev, "no camera indicator: this DCP profile has no swap_done hook\n"); + return 0; + } if (surf >= SWAP_SURFACES || test_bit(surf, dcp->iomfb_surfaces)) return dev_err_probe(dcp->dev, -EINVAL, "camera indicator surface %u is not free\n", surf); @@ -93,7 +98,8 @@ void dcp_indicator_release(struct apple_dcp *dcp) cancel_work_sync(&ci->resume); } -static const struct drm_framebuffer_funcs dcp_indicator_fb_funcs = { +/* Its funcs name the kernel's own framebuffer; userspace cannot create one with them. */ +const struct drm_framebuffer_funcs dcp_indicator_fb_funcs = { .destroy = drm_gem_fb_destroy, .create_handle = drm_gem_fb_create_handle, }; @@ -162,12 +168,6 @@ int dcp_indicator_attach_plane(struct apple_dcp *dcp, struct drm_device *drm, return 0; } -/* The framebuffer is the kernel's: its funcs are ours, and userspace cannot name it. */ -bool dcp_indicator_owns_fb(const struct drm_framebuffer *fb) -{ - return fb && fb->funcs == &dcp_indicator_fb_funcs; -} - /* The atomic state the kernel itself commits: the square, or nothing. */ static int dcp_indicator_commit(struct apple_dcp *dcp, bool on) { @@ -344,21 +344,27 @@ static int dcp_indicator_request(struct apple_dcp *dcp) spin_lock_irqsave(&ci->lock, flags); ret = dcp_ind_wants_resume(&ci->state); spin_unlock_irqrestore(&ci->lock, flags); - if (ret) + if (ret) { + dev_dbg(dcp->dev, "camera indicator kept: the panel is not ready\n"); return 0; + } ci->deadline = jiffies + IND_PRESENT_TIMEOUT; mod_delayed_work(system_percpu_wq, &ci->watch, IND_PRESENT_TIMEOUT); return 0; } /* - * The display resumed: the plane came back disabled, so whatever the square was - * it is OFF now, and a request that still stands is asked for again. + * The display resumed and the resume commit is done: a plane that came back + * dark has no square, so it is OFF now and a request that still stands is asked + * for again. A plane that came back lit is left alone (see dcp_ind_display_resumed). + * ctl and the plane lock are taken in the order dcp_indicator_commit takes them, + * so a request cannot land between reading the plane and resetting the state. */ void dcp_indicator_display_resumed(struct apple_dcp *dcp) { struct dcp_camera_indicator *ci; unsigned long flags; + bool dark; /* A CRTC whose DCP is not bound has no drvdata. */ if (!dcp) @@ -366,8 +372,14 @@ void dcp_indicator_display_resumed(struct apple_dcp *dcp) ci = &dcp->camera_ind; if (!ci->has_surf) return; + guard(mutex)(&ci->ctl); + if (!ci->plane) + return; + drm_modeset_lock(&ci->plane->mutex, NULL); + dark = !ci->plane->state || !ci->plane->state->fb; + drm_modeset_unlock(&ci->plane->mutex); spin_lock_irqsave(&ci->lock, flags); - dcp_ind_display_resumed(&ci->state); + dcp_ind_display_resumed(&ci->state, dark); if (ci->fb && dcp_ind_wants_resume(&ci->state)) schedule_work(&ci->resume); spin_unlock_irqrestore(&ci->lock, flags); diff --git a/drivers/gpu/drm/apple/dcp-indicator.h b/drivers/gpu/drm/apple/dcp-indicator.h index 61f04d44b758f..727c66843e197 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.h +++ b/drivers/gpu/drm/apple/dcp-indicator.h @@ -12,6 +12,11 @@ #include #include +#ifndef DCP_IND_USERSPACE +#include +#include +#include +#endif enum dcp_ind_state { DCP_IND_OFF, @@ -109,12 +114,18 @@ static inline int dcp_ind_retry(struct dcp_indicator *ind, bool plane, } /* - * The display came back (system resume): the plane returns disabled whatever it - * showed, so the square is OFF again and a kept request asks anew. + * The display came back (system resume) and the resume commit is done. A plane + * that came back dark shows no square, so it is OFF again and a kept request + * asks anew. A plane that came back with the square (suspend saved it, resume + * committed it) is carried by a present that confirms it: resetting that state + * would make the new request an unchanged plane, no swap would follow, and the + * watch would withdraw the square. The same holds for a request that landed + * after the resume commit. */ -static inline void dcp_ind_display_resumed(struct dcp_indicator *ind) +static inline void dcp_ind_display_resumed(struct dcp_indicator *ind, bool plane_dark) { - dcp_ind_suspend(ind); + if (plane_dark) + dcp_ind_suspend(ind); } /* Wanted but not on the panel: the next present after a rebind asks again. */ @@ -153,4 +164,28 @@ static inline enum dcp_ind_plane_action dcp_ind_plane_policy(bool reserved_plane return DCP_IND_PLANE_REJECT; } +/* + * Gathers what dcp_ind_plane_policy() needs from the plane states of a commit. + * old_crtc_state is the new state of the CRTC the plane sat on, or NULL when the + * commit does not touch it. + */ +static inline enum dcp_ind_plane_action +dcp_ind_plane_check(const struct drm_plane_state *old, const struct drm_plane_state *new, + const struct drm_crtc_state *old_crtc_state, bool kernel_commit, + const struct drm_framebuffer_funcs *own_fb_funcs) +{ + bool unchanged = new->fb == old->fb && new->crtc == old->crtc && + new->crtc_x == old->crtc_x && new->crtc_y == old->crtc_y && + new->crtc_w == old->crtc_w && new->crtc_h == old->crtc_h && + new->src_x == old->src_x && new->src_y == old->src_y && + new->src_w == old->src_w && new->src_h == old->src_h && + new->alpha == old->alpha && + new->pixel_blend_mode == old->pixel_blend_mode && + new->rotation == old->rotation; + bool going_off = !new->fb && !new->crtc && old_crtc_state && !old_crtc_state->active; + + return dcp_ind_plane_policy(true, kernel_commit, unchanged, going_off, new->fb, + new->crtc, new->fb && new->fb->funcs == own_fb_funcs); +} + #endif /* DCP_INDICATOR_H */ diff --git a/drivers/gpu/drm/apple/dcp-internal.h b/drivers/gpu/drm/apple/dcp-internal.h index fdd5b9c46cf1f..7a5787522beae 100644 --- a/drivers/gpu/drm/apple/dcp-internal.h +++ b/drivers/gpu/drm/apple/dcp-internal.h @@ -1403,6 +1403,6 @@ int dcp_indicator_attach_plane(struct apple_dcp *dcp, struct drm_device *drm, struct drm_plane *plane); void dcp_indicator_swap_done(struct apple_dcp *dcp, struct drm_framebuffer *slot_fb); void dcp_indicator_display_resumed(struct apple_dcp *dcp); -bool dcp_indicator_owns_fb(const struct drm_framebuffer *fb); +extern const struct drm_framebuffer_funcs dcp_indicator_fb_funcs; #endif /* __APPLE_DCP_INTERNAL_H__ */ diff --git a/drivers/gpu/drm/apple/plane.c b/drivers/gpu/drm/apple/plane.c index fca70e796cf46..35b86474e8f71 100644 --- a/drivers/gpu/drm/apple/plane.c +++ b/drivers/gpu/drm/apple/plane.c @@ -243,27 +243,10 @@ static int apple_plane_atomic_check(struct drm_plane *plane, struct drm_plane_state *old = drm_atomic_get_old_plane_state(commit, plane); struct drm_crtc_state *old_crtc_new = old->crtc ? drm_atomic_get_new_crtc_state(commit, old->crtc) : NULL; - bool unchanged = new_plane_state->fb == old->fb && - new_plane_state->crtc == old->crtc && - new_plane_state->crtc_x == old->crtc_x && - new_plane_state->crtc_y == old->crtc_y && - new_plane_state->crtc_w == old->crtc_w && - new_plane_state->crtc_h == old->crtc_h && - new_plane_state->src_x == old->src_x && - new_plane_state->src_y == old->src_y && - new_plane_state->src_w == old->src_w && - new_plane_state->src_h == old->src_h && - new_plane_state->alpha == old->alpha && - new_plane_state->pixel_blend_mode == old->pixel_blend_mode && - new_plane_state->rotation == old->rotation; - bool going_off = !new_plane_state->fb && !new_plane_state->crtc && - old_crtc_new && !old_crtc_new->active; - - switch (dcp_ind_plane_policy(true, - commit == READ_ONCE(to_apple_plane(plane)->indicator_commit), - unchanged, going_off, - new_plane_state->fb, new_plane_state->crtc, - dcp_indicator_owns_fb(new_plane_state->fb))) { + + switch (dcp_ind_plane_check(old, new_plane_state, old_crtc_new, + commit == READ_ONCE(to_apple_plane(plane)->indicator_commit), + &dcp_indicator_fb_funcs)) { case DCP_IND_PLANE_REJECT: return -EINVAL; case DCP_IND_PLANE_RESTORE: { diff --git a/drivers/gpu/drm/apple/tests/kunit-shim.h b/drivers/gpu/drm/apple/tests/kunit-shim.h index 1f70e048116f1..d03cfc00a0b9f 100644 --- a/drivers/gpu/drm/apple/tests/kunit-shim.h +++ b/drivers/gpu/drm/apple/tests/kunit-shim.h @@ -11,6 +11,22 @@ #include #include +/* The fields of the DRM structs that dcp_ind_plane_check() reads. */ +struct drm_crtc; +struct drm_framebuffer_funcs { int unused; }; +struct drm_framebuffer { const struct drm_framebuffer_funcs *funcs; }; +struct drm_plane_state { + struct drm_framebuffer *fb; + struct drm_crtc *crtc; + int crtc_x, crtc_y; + unsigned int crtc_w, crtc_h; + uint32_t src_x, src_y, src_w, src_h; + uint16_t alpha; + uint16_t pixel_blend_mode; + unsigned int rotation; +}; +struct drm_crtc_state { bool active; }; + struct kunit { int fail; }; struct kunit_case { void (*run)(struct kunit *test); const char *name; }; struct kunit_suite { const char *name; struct kunit_case *test_cases; }; From 021f5c06cbe3e85dfd17425eff0e8a03bd7285b7 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Fri, 13 Nov 2026 00:15:21 -0600 Subject: [PATCH 21/24] drm/apple: send the primary surface with every camera indicator swap On the H17P firmware path a swap with no surface other than the indicator is dropped: iomfb_apply_backlight_h17p() -> dcp_bl_prepare() returns -ENODATA for !have_surface, and only firmware 27 takes surface-less swaps. The off commit holds only the indicator plane, so on a J700 it was dropped ("present dropped: backlight prepare -61", "swap failed!", once per stop, 27 times on one boot). The DRM state said the plane was off, but the firmware never saw the removal: slot 2 stayed on the panel and the DCP blend CRC stayed on the "with indicator" value after the stream stopped. Add the CRTC's other planes to the commit with drm_atomic_add_affected_planes(), so each indicator swap re-presents the primary. The on commit worked only because it carries the indicator surface itself; it takes the same path now. Found by RyanTheTide's J700 run on 648dd4ca (Aurora seq 807); the fix is his proposal. No userspace test can cover it: the rule lives in a DRM atomic call and in the firmware's reaction to it. The repro is his CRC row and the paired dmesg lines, to be rerun at the new head. Not run by me: any hardware, and T6050 may or may not need it. The DRM objects build. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- drivers/gpu/drm/apple/dcp-indicator.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/apple/dcp-indicator.c b/drivers/gpu/drm/apple/dcp-indicator.c index 02041223801d3..227db1f9c4827 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.c +++ b/drivers/gpu/drm/apple/dcp-indicator.c @@ -199,6 +199,14 @@ static int dcp_indicator_commit(struct apple_dcp *dcp, bool on) ret = PTR_ERR(ps); goto out; } + /* + * A swap that carries only the indicator plane has no primary surface, and the H17P + * firmware path drops it (backlight prepare -ENODATA), so an off commit never + * reached the panel. Re-present the CRTC's other planes with every indicator swap. + */ + ret = drm_atomic_add_affected_planes(state, crtc); + if (ret) + goto out; if (on) { if (!cs->active) { ret = -ENODEV; From 51c6780775baf214450ac683c26c338c3b6f6fe4 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Fri, 13 Nov 2026 00:25:31 -0600 Subject: [PATCH 22/24] drm/apple: draw the camera indicator green, say what a resumed plane looks like The indicator square was orange. RyanTheTide asked for green; the fill is 0xff34c759 now. Two comments said a plane can come back from a system resume lit. The resume commit names the kernel's framebuffer and gets DCP_IND_PLANE_RESTORE, which puts the plane back to the disabled state suspend left, so the dark branch is the normal path. The lit branch covers only a set(true) that lands between the resume commit and dcp_indicator_display_resumed(). The code was right; the comments are rewritten. Proof: the userspace suite still passes 11/11. No behaviour changed except the colour value, which no test reads. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- drivers/gpu/drm/apple/dcp-indicator.c | 9 +++++---- drivers/gpu/drm/apple/dcp-indicator.h | 13 +++++++------ drivers/gpu/drm/apple/dcp.c | 6 ------ 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/apple/dcp-indicator.c b/drivers/gpu/drm/apple/dcp-indicator.c index 227db1f9c4827..a6fd566f00f13 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.c +++ b/drivers/gpu/drm/apple/dcp-indicator.c @@ -32,7 +32,7 @@ #define IND_SIDE 48 #define IND_MARGIN 12 #define IND_BORDER 3 -#define IND_FILL 0xffff9500 +#define IND_FILL 0xff34c759 #define IND_EDGE 0xff000000 #define IND_PRESENT_TIMEOUT msecs_to_jiffies(1000) #define IND_RETRY msecs_to_jiffies(50) @@ -362,9 +362,10 @@ static int dcp_indicator_request(struct apple_dcp *dcp) } /* - * The display resumed and the resume commit is done: a plane that came back - * dark has no square, so it is OFF now and a request that still stands is asked - * for again. A plane that came back lit is left alone (see dcp_ind_display_resumed). + * The display resumed and the resume commit is done: the plane came back dark, + * so the square is OFF now and a request that still stands is asked for again. + * A lit plane is a set(true) that landed after the resume commit; it is left + * alone (see dcp_ind_display_resumed). * ctl and the plane lock are taken in the order dcp_indicator_commit takes them, * so a request cannot land between reading the plane and resetting the state. */ diff --git a/drivers/gpu/drm/apple/dcp-indicator.h b/drivers/gpu/drm/apple/dcp-indicator.h index 727c66843e197..3f09f240e6c78 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.h +++ b/drivers/gpu/drm/apple/dcp-indicator.h @@ -114,13 +114,14 @@ static inline int dcp_ind_retry(struct dcp_indicator *ind, bool plane, } /* - * The display came back (system resume) and the resume commit is done. A plane - * that came back dark shows no square, so it is OFF again and a kept request - * asks anew. A plane that came back with the square (suspend saved it, resume - * committed it) is carried by a present that confirms it: resetting that state + * The display came back (system resume) and the resume commit is done. The + * reserved plane comes back dark: suspend disabled it, and the resume commit + * that names the kernel's framebuffer is put back to that disabled state + * (DCP_IND_PLANE_RESTORE). So the square is OFF again and a kept request asks + * anew. A lit plane here means a set(true) landed between the resume commit + * and this call: its commit is already on the panel, and resetting its state * would make the new request an unchanged plane, no swap would follow, and the - * watch would withdraw the square. The same holds for a request that landed - * after the resume commit. + * watch would withdraw the square. */ static inline void dcp_ind_display_resumed(struct dcp_indicator *ind, bool plane_dark) { diff --git a/drivers/gpu/drm/apple/dcp.c b/drivers/gpu/drm/apple/dcp.c index dcb2d7fdcd035..307f9ef0c064d 100644 --- a/drivers/gpu/drm/apple/dcp.c +++ b/drivers/gpu/drm/apple/dcp.c @@ -7273,12 +7273,6 @@ static int dcp_platform_probe_pipe(struct platform_device *pdev) bitmap_zero(dcp->iomfb_surfaces, DCP_MAX_PLANES); set_bit(0, dcp->iomfb_surfaces); } - { - int ret_ind = dcp_indicator_probe(dcp); - - if (ret_ind) - return ret_ind; - } /* The J700 loader names surface zero rather than enabling it. */ if (of_machine_is_compatible("apple,j700") && From fd2df4e8f21da2d486edc1531735be7db963f3e8 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Thu, 19 Nov 2026 12:28:34 -0600 Subject: [PATCH 23/24] drm/apple: pass the is-ext26 flag to the indicator plane create (rebase adaptation) The base grew a parameter on the camera-indicator plane creation; pass dcp_is_ext26(dcp_data) so the probe keeps its meaning on the firmware 27 external DCP after the rebase onto f21ee133. --- drivers/gpu/drm/apple/apple_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/apple/apple_drv.c b/drivers/gpu/drm/apple/apple_drv.c index 9acc4c4280cf9..720c1dd52bec6 100644 --- a/drivers/gpu/drm/apple/apple_drv.c +++ b/drivers/gpu/drm/apple/apple_drv.c @@ -1190,7 +1190,8 @@ static int apple_probe_per_dcp(struct device *dev, dcp_data->hw.iomfb_method_profile == DCP_IOMFB_METHODS_H17G, DRM_PLANE_TYPE_OVERLAY, false, - supports_premultiplied); + supports_premultiplied, + dcp_is_ext26(dcp_data)); if (IS_ERR(ind_plane)) return PTR_ERR(ind_plane); ret = drm_plane_create_zpos_immutable_property(ind_plane, zpos++); From 61593f7875f15924da9697b5753e1f77fd09cbe8 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Thu, 19 Nov 2026 18:27:36 -0600 Subject: [PATCH 24/24] drm/apple: wait for a busy flip without polling the indicator Keep the initial submission nonblocking. If a previous flip refuses it, submit the change once from a work item with the blocking DRM commit. Remove the retry timer. Error or cancellation leaves no work to requeue. The host indicator suite passes all 11 cases, including a busy retry. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- drivers/gpu/drm/apple/dcp-indicator-test.c | 25 ++++++++---------- drivers/gpu/drm/apple/dcp-indicator.c | 30 +++++++++------------- drivers/gpu/drm/apple/dcp-indicator.h | 29 ++++++++++----------- drivers/gpu/drm/apple/dcp-internal.h | 2 +- 4 files changed, 38 insertions(+), 48 deletions(-) diff --git a/drivers/gpu/drm/apple/dcp-indicator-test.c b/drivers/gpu/drm/apple/dcp-indicator-test.c index ce73424cb1ec2..dc956dd5a8956 100644 --- a/drivers/gpu/drm/apple/dcp-indicator-test.c +++ b/drivers/gpu/drm/apple/dcp-indicator-test.c @@ -91,14 +91,15 @@ static void indicator_resumes_only_a_kept_request(struct kunit *test) struct fake_drm { int results[4]; int commits, queued; - bool last_on; + bool last_on, last_wait; }; -static int fake_commit(void *ctx, bool on) +static int fake_commit(void *ctx, bool on, bool wait) { struct fake_drm *d = ctx; d->last_on = on; + d->last_wait = wait; return d->results[d->commits++]; } @@ -109,11 +110,7 @@ static void fake_queue(void *ctx) static const struct dcp_ind_ops fake_ops = { fake_commit, fake_queue }; -/* - * A flip still pending refuses the nonblocking commit with -EBUSY, on or off. - * The request stands, so the commit is queued again until it lands, and the - * camera never waits for it. Any other error is final and returned. - */ +/* A refused nonblocking commit gets one work item, even if the work item fails. */ static void indicator_refused_commit_is_retried(struct kunit *test) { struct dcp_indicator ind = {}; @@ -123,16 +120,16 @@ static void indicator_refused_commit_is_retried(struct kunit *test) KUNIT_ASSERT_EQ(test, dcp_ind_begin(&ind), 0); dcp_ind_end(&ind); KUNIT_EXPECT_EQ(test, dcp_ind_apply(&ind, false, &fake_ops, &d), 0); + KUNIT_EXPECT_FALSE(test, d.last_wait); + KUNIT_EXPECT_EQ(test, d.queued, 1); + KUNIT_EXPECT_EQ(test, dcp_ind_retry(&ind, true, &fake_ops, &d), -EBUSY); + KUNIT_EXPECT_TRUE(test, d.last_wait); KUNIT_EXPECT_EQ(test, d.queued, 1); - KUNIT_EXPECT_EQ(test, dcp_ind_retry(&ind, true, &fake_ops, &d), 0); - KUNIT_EXPECT_EQ(test, d.queued, 2); KUNIT_EXPECT_FALSE(test, d.last_on); + KUNIT_EXPECT_EQ(test, d.commits, 2); KUNIT_EXPECT_EQ(test, dcp_ind_retry(&ind, true, &fake_ops, &d), 0); - KUNIT_EXPECT_EQ(test, d.commits, 3); - /* Landed: nothing left to retry. */ - KUNIT_EXPECT_EQ(test, dcp_ind_retry(&ind, true, &fake_ops, &d), 0); - KUNIT_EXPECT_EQ(test, d.commits, 3); - KUNIT_EXPECT_EQ(test, d.queued, 2); + KUNIT_EXPECT_EQ(test, d.commits, 2); + KUNIT_EXPECT_EQ(test, d.queued, 1); /* On: the request stands, so the square is asked for again. */ d = (struct fake_drm){ .results = { -EBUSY, 0 } }; diff --git a/drivers/gpu/drm/apple/dcp-indicator.c b/drivers/gpu/drm/apple/dcp-indicator.c index a6fd566f00f13..a7be2c0df5513 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.c +++ b/drivers/gpu/drm/apple/dcp-indicator.c @@ -35,7 +35,6 @@ #define IND_FILL 0xff34c759 #define IND_EDGE 0xff000000 #define IND_PRESENT_TIMEOUT msecs_to_jiffies(1000) -#define IND_RETRY msecs_to_jiffies(50) static void dcp_indicator_watch(struct work_struct *work); static void dcp_indicator_resume(struct work_struct *work); @@ -50,7 +49,7 @@ int dcp_indicator_probe(struct apple_dcp *dcp) mutex_init(&ci->ctl); INIT_DELAYED_WORK(&ci->watch, dcp_indicator_watch); INIT_WORK(&ci->resume, dcp_indicator_resume); - INIT_DELAYED_WORK(&ci->retry, dcp_indicator_retry); + INIT_WORK(&ci->retry, dcp_indicator_retry); if (of_property_read_u32(dcp->dev->of_node, "apple,camera-indicator-surface", &surf)) return 0; @@ -94,7 +93,7 @@ void dcp_indicator_release(struct apple_dcp *dcp) } /* With no fb nothing queues them again, and all take ctl, so cancel after dropping it. */ cancel_delayed_work_sync(&ci->watch); - cancel_delayed_work_sync(&ci->retry); + cancel_work_sync(&ci->retry); cancel_work_sync(&ci->resume); } @@ -169,7 +168,7 @@ int dcp_indicator_attach_plane(struct apple_dcp *dcp, struct drm_device *drm, } /* The atomic state the kernel itself commits: the square, or nothing. */ -static int dcp_indicator_commit(struct apple_dcp *dcp, bool on) +static int dcp_indicator_commit(struct apple_dcp *dcp, bool on, bool wait) { struct dcp_camera_indicator *ci = &dcp->camera_ind; struct drm_crtc *crtc; @@ -231,7 +230,7 @@ static int dcp_indicator_commit(struct apple_dcp *dcp, bool on) drm_atomic_set_fb_for_plane(ps, NULL); } WRITE_ONCE(to_apple_plane(ci->plane)->indicator_commit, state); - ret = drm_atomic_nonblocking_commit(state); + ret = wait ? drm_atomic_commit(state) : drm_atomic_nonblocking_commit(state); WRITE_ONCE(to_apple_plane(ci->plane)->indicator_commit, NULL); out: if (ret == -EDEADLK) { @@ -256,16 +255,16 @@ static void dcp_indicator_end(struct apple_dcp *dcp) spin_unlock_irqrestore(&ci->lock, flags); } -static int dcp_indicator_do_commit(void *ctx, bool on) +static int dcp_indicator_do_commit(void *ctx, bool on, bool wait) { - return dcp_indicator_commit(ctx, on); + return dcp_indicator_commit(ctx, on, wait); } static void dcp_indicator_queue_retry(void *ctx) { struct apple_dcp *dcp = ctx; - queue_delayed_work(system_percpu_wq, &dcp->camera_ind.retry, IND_RETRY); + schedule_work(&dcp->camera_ind.retry); } static const struct dcp_ind_ops dcp_indicator_ops = { @@ -273,10 +272,7 @@ static const struct dcp_ind_ops dcp_indicator_ops = { .queue_retry = dcp_indicator_queue_retry, }; -/* - * ctl held. The square must come off, so a commit refused for a pending flip - * is retried from a work item until it lands. - */ +/* ctl held. A pending flip defers removal to the blocking work item. */ static void dcp_indicator_off(struct apple_dcp *dcp) { int ret = dcp_ind_apply(&dcp->camera_ind.state, false, &dcp_indicator_ops, dcp); @@ -288,7 +284,7 @@ static void dcp_indicator_off(struct apple_dcp *dcp) static void dcp_indicator_retry(struct work_struct *work) { struct dcp_camera_indicator *ci = - container_of(work, struct dcp_camera_indicator, retry.work); + container_of(work, struct dcp_camera_indicator, retry); struct apple_dcp *dcp = container_of(ci, struct apple_dcp, camera_ind); int ret; @@ -416,11 +412,9 @@ static void dcp_indicator_resume(struct work_struct *work) } /* - * on: requests the square and returns 0 once the request is committed, or - * queued after a pending flip refused it; the present that carries it is - * confirmed, or withdrawn, within 1 s without blocking the caller. An error - * means no indicator. off: always succeeds, and a commit refused for a pending - * flip is retried until it lands. The caller streams either way. + * Return when the request is submitted or queued. The camera does not wait + * for the present that confirms the indicator. On stop, a pending flip defers + * the removal to the work item. */ int apple_dcp_camera_indicator_set(struct device *dev, bool on) { diff --git a/drivers/gpu/drm/apple/dcp-indicator.h b/drivers/gpu/drm/apple/dcp-indicator.h index 3f09f240e6c78..ccfef23138395 100644 --- a/drivers/gpu/drm/apple/dcp-indicator.h +++ b/drivers/gpu/drm/apple/dcp-indicator.h @@ -73,25 +73,18 @@ static inline void dcp_ind_suspend(struct dcp_indicator *ind) } struct dcp_ind_ops { - int (*commit)(void *ctx, bool on); + int (*commit)(void *ctx, bool on, bool wait); void (*queue_retry)(void *ctx); }; -/* - * Commits the square on or off. The commit is nonblocking, so a flip still - * pending on the CRTC refuses it with -EBUSY. The request stands, so that - * refusal is queued to be asked again, never waited for. A panel that is not - * ready (-ENODEV: suspended, CRTC not active, DRM not bound) keeps the request - * too, with the square OFF, for the display resuming to ask again. 0 means - * committed, queued or kept. Any other error is final and returned. - */ -static inline int dcp_ind_apply(struct dcp_indicator *ind, bool on, - const struct dcp_ind_ops *ops, void *ctx) +/* A pending flip gets one blocking commit from the work item. */ +static inline int dcp_ind_commit(struct dcp_indicator *ind, bool on, + const struct dcp_ind_ops *ops, void *ctx, bool wait) { - int ret = ops->commit(ctx, on); + int ret = ops->commit(ctx, on, wait); ind->retry = DCP_IND_RETRY_NONE; - if (ret == -EBUSY) { + if (ret == -EBUSY && !wait) { ind->retry = on ? DCP_IND_RETRY_ON : DCP_IND_RETRY_OFF; ops->queue_retry(ctx); return 0; @@ -104,13 +97,19 @@ static inline int dcp_ind_apply(struct dcp_indicator *ind, bool on, return ret; } -/* The retry work: asks again for whatever was refused, if the plane is still there. */ +static inline int dcp_ind_apply(struct dcp_indicator *ind, bool on, + const struct dcp_ind_ops *ops, void *ctx) +{ + return dcp_ind_commit(ind, on, ops, ctx, false); +} + +/* Do not poll or requeue if the blocking commit fails. */ static inline int dcp_ind_retry(struct dcp_indicator *ind, bool plane, const struct dcp_ind_ops *ops, void *ctx) { if (!plane || ind->retry == DCP_IND_RETRY_NONE) return 0; - return dcp_ind_apply(ind, ind->retry == DCP_IND_RETRY_ON, ops, ctx); + return dcp_ind_commit(ind, ind->retry == DCP_IND_RETRY_ON, ops, ctx, true); } /* diff --git a/drivers/gpu/drm/apple/dcp-internal.h b/drivers/gpu/drm/apple/dcp-internal.h index 7a5787522beae..d80bae14dc0ec 100644 --- a/drivers/gpu/drm/apple/dcp-internal.h +++ b/drivers/gpu/drm/apple/dcp-internal.h @@ -450,7 +450,7 @@ struct dcp_camera_indicator { struct mutex ctl; struct delayed_work watch; struct work_struct resume; - struct delayed_work retry; + struct work_struct retry; unsigned long deadline; struct drm_plane *plane; struct drm_framebuffer *fb;