From 3dbff5005e62f2dc6d1c637429ce0502e2d05d87 Mon Sep 17 00:00:00 2001 From: Espen Trydal Date: Wed, 2 Dec 2026 22:18:47 +0000 Subject: [PATCH 1/2] arm64: dts: apple: t8132-apcie-port2: keep pcie0 sleep tunable register banks t8132-apcie-port2.dtsi overrides &pcie0's reg and reg-names to add port2 and phy2, but omitted the five sleep tunable register banks (axi2af, cio3pll, clkgen, phy-block, phy-ip) defined in t8132.dtsi. On boards that include t8132-apcie-port2.dtsi (J604 and J773g), this strips those register windows from pcie0 and causes apple-sleep to refuse deep sleep with "no PCIe tunables for ANS: suspend-to-RAM with it stopped will be refused". Preserve axi2af, cio3pll, clkgen, phy-block, and phy-ip in &pcie0's reg and reg-names. Signed-off-by: Espen Trydal --- arch/arm64/boot/dts/apple/t8132-apcie-port2.dtsi | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t8132-apcie-port2.dtsi b/arch/arm64/boot/dts/apple/t8132-apcie-port2.dtsi index b6bd9793e28c1..5c10237a60b25 100644 --- a/arch/arm64/boot/dts/apple/t8132-apcie-port2.dtsi +++ b/arch/arm64/boot/dts/apple/t8132-apcie-port2.dtsi @@ -33,8 +33,14 @@ <0x4 0x90028000 0x0 0x8000>, /* port 0 */ <0x4 0x97020000 0x0 0x4000>, /* port 0 PHY glue */ <0x4 0x92028000 0x0 0x8000>, /* port 2 */ - <0x4 0x97028000 0x0 0x4000>; /* port 2 PHY glue */ - reg-names = "config", "rc", "port0", "phy0", "port2", "phy2"; + <0x4 0x97028000 0x0 0x4000>, /* port 2 PHY glue */ + <0x4 0x96000000 0x0 0x1000000>, /* axi2af */ + <0x4 0x95046200 0x0 0x4000>, /* cio3pll */ + <0x4 0x95044000 0x0 0x4000>, /* clkgen */ + <0x4 0x97000000 0x0 0x40000>, /* phy-block */ + <0x4 0x97040000 0x0 0x20000>; /* phy-ip */ + reg-names = "config", "rc", "port0", "phy0", "port2", "phy2", + "axi2af", "cio3pll", "clkgen", "phy-block", "phy-ip"; /* One per port, in port order; port 1 is unused. */ interrupts = , From c77edccad38852032d62f9d0b2b542c1d3f515f4 Mon Sep 17 00:00:00 2001 From: DjDeveloperr Date: Wed, 2 Dec 2026 17:52:50 -0500 Subject: [PATCH 2/2] dt-bindings: PCI: apple: allow the T8132 shared windows beside port 2 The T8132 pcie0 binding takes either the five shared windows or the third port, so a board that lists both, as the J604, the J773g and the iMacs now do, fails dtbs_check on reg and reg-names. Allow the shared windows after the third port's. Signed-off-by: DjDeveloperr --- .../devicetree/bindings/pci/apple,pcie.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/apple,pcie.yaml b/Documentation/devicetree/bindings/pci/apple,pcie.yaml index 79bd0d648cd80..86c4059480aa5 100644 --- a/Documentation/devicetree/bindings/pci/apple,pcie.yaml +++ b/Documentation/devicetree/bindings/pci/apple,pcie.yaml @@ -711,7 +711,7 @@ allOf: properties: reg: minItems: 4 - maxItems: 9 + maxItems: 11 reg-names: oneOf: - minItems: 4 @@ -725,14 +725,21 @@ allOf: - const: clkgen - const: phy-block - const: phy-ip - # A board that uses the third port lists it instead. - - items: + # A board that uses the third port lists it before the + # shared windows. + - minItems: 6 + items: - const: config - const: rc - const: port0 - const: phy0 - const: port2 - const: phy2 + - const: axi2af + - const: cio3pll + - const: clkgen + - const: phy-block + - const: phy-ip interrupts: maxItems: 3 else: