]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
arm64: dts: apple: t8103: Disable unused PCIe ports
authorJanne Grunau <j@jannau.net>
Tue, 14 Feb 2023 14:07:22 +0000 (15:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:03:11 +0000 (23:03 +0900)
[ Upstream commit a0189fdfb73dac856b8fa9b9f9581e5099c9391f ]

The PCIe ports are unused (without devices) so disable them instead of
removing them.

Fixes: 7c77ab91b33d ("arm64: dts: apple: Add missing M1 (t8103) devices")
Signed-off-by: Janne Grunau <j@jannau.net>
Reviewed-by: Sven Peter <sven@svenpeter.dev>
Signed-off-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/apple/t8103-j274.dts
arch/arm64/boot/dts/apple/t8103-j293.dts
arch/arm64/boot/dts/apple/t8103-j313.dts
arch/arm64/boot/dts/apple/t8103-j456.dts
arch/arm64/boot/dts/apple/t8103-j457.dts
arch/arm64/boot/dts/apple/t8103.dtsi

index c1f3ba9c39f6a82a107ae0f40d5361a49bdc10d4..997ef90614c1102c2a1c5b65b019752257be293f 100644 (file)
 
 &port01 {
        bus-range = <2 2>;
+       status = "okay";
 };
 
 &port02 {
        bus-range = <3 3>;
+       status = "okay";
        ethernet0: ethernet@0,0 {
                reg = <0x30000 0x0 0x0 0x0 0x0>;
                /* To be filled by the loader */
        };
 };
 
+&pcie0_dart_1 {
+       status = "okay";
+};
+
+&pcie0_dart_2 {
+       status = "okay";
+};
+
 &i2c2 {
        status = "okay";
 };
index ecb10d237a053bc377c45ef89c98d4570c779af2..3fd444ac8ae4ee732c0294d68374d775dd6da9fa 100644 (file)
        brcm,board-type = "apple,honshu";
 };
 
-/*
- * Remove unused PCIe ports and disable the associated DARTs.
- */
-
-&pcie0_dart_1 {
-       status = "disabled";
-};
-
-&pcie0_dart_2 {
-       status = "disabled";
-};
-
-/delete-node/ &port01;
-/delete-node/ &port02;
-
 &i2c2 {
        status = "okay";
 };
index df741737b8e6f502366d26bde1e057d807da54b1..9399c42de8a4354717359757219f0b6133ab6f4e 100644 (file)
 &wifi0 {
        brcm,board-type = "apple,shikoku";
 };
-
-/*
- * Remove unused PCIe ports and disable the associated DARTs.
- */
-
-&pcie0_dart_1 {
-       status = "disabled";
-};
-
-&pcie0_dart_2 {
-       status = "disabled";
-};
-
-/delete-node/ &port01;
-/delete-node/ &port02;
index 8c6bf959251075cd61fd9b30fb537c01bfc27c13..d80223fa42292f1edb4d5101c4c607b047b3bd8e 100644 (file)
 
 &port01 {
        bus-range = <2 2>;
+       status = "okay";
 };
 
 &port02 {
        bus-range = <3 3>;
+       status = "okay";
        ethernet0: ethernet@0,0 {
                reg = <0x30000 0x0 0x0 0x0 0x0>;
                /* To be filled by the loader */
                local-mac-address = [00 10 18 00 00 00];
        };
 };
+
+&pcie0_dart_1 {
+       status = "okay";
+};
+
+&pcie0_dart_2 {
+       status = "okay";
+};
index fe7c0aaf7d62a7ff81ad312bff9617268315d9ab..e24ccb49e33cca79382c66ebad1340421df9fbed 100644 (file)
@@ -33,6 +33,7 @@
 
 &port02 {
        bus-range = <3 3>;
+       status = "okay";
        ethernet0: ethernet@0,0 {
                reg = <0x30000 0x0 0x0 0x0 0x0>;
                /* To be filled by the loader */
        };
 };
 
-/*
- * Remove unused PCIe port and disable the associated DART.
- */
-
-&pcie0_dart_1 {
-       status = "disabled";
+&pcie0_dart_2 {
+       status = "okay";
 };
-
-/delete-node/ &port01;
index a4d195e9eb8c805609f2d4d98654e167f830dd09..84fd1b1b48f6f6de7640581718c6ee6bdb85d6db 100644 (file)
                        interrupt-parent = <&aic>;
                        interrupts = <AIC_IRQ 699 IRQ_TYPE_LEVEL_HIGH>;
                        power-domains = <&ps_apcie_gp>;
+                       status = "disabled";
                };
 
                pcie0_dart_2: iommu@683008000 {
                        interrupt-parent = <&aic>;
                        interrupts = <AIC_IRQ 702 IRQ_TYPE_LEVEL_HIGH>;
                        power-domains = <&ps_apcie_gp>;
+                       status = "disabled";
                };
 
                pcie0: pcie@690000000 {
                                                <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>;
+                               status = "disabled";
                        };
 
                        port02: pci@2,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>;
+                               status = "disabled";
                        };
                };
        };