ARM: dts: NSP: Add Ax stepping modifications
authorMatthew Hagan <mnhagan88@gmail.com>
Fri, 6 Aug 2021 20:44:33 +0000 (21:44 +0100)
committerFlorian Fainelli <f.fainelli@gmail.com>
Tue, 14 Sep 2021 21:34:51 +0000 (14:34 -0700)
While uncommon, some Ax NSP SoCs exist in the wild. This stepping
requires a modified secondary CPU boot-reg and removal of DMA coherency
properties. Without these modifications, the secondary CPU will be
inactive and many peripherals will exhibit undefined behaviour.

Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm/boot/dts/bcm-nsp-ax.dtsi [new file with mode: 0644]

diff --git a/arch/arm/boot/dts/bcm-nsp-ax.dtsi b/arch/arm/boot/dts/bcm-nsp-ax.dtsi
new file mode 100644 (file)
index 0000000..f2e941d
--- /dev/null
@@ -0,0 +1,70 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Broadcom Northstar Plus Ax stepping-specific bindings.
+ * Notable differences from B0+ are the secondary-boot-reg and
+ * lack of DMA coherency.
+ */
+
+&cpu1 {
+       secondary-boot-reg = <0xffff042c>;
+};
+
+&dma {
+       /delete-property/ dma-coherent;
+};
+
+&sdio {
+       /delete-property/ dma-coherent;
+};
+
+&amac0 {
+       /delete-property/ dma-coherent;
+};
+
+&amac1 {
+       /delete-property/ dma-coherent;
+};
+
+&amac2 {
+       /delete-property/ dma-coherent;
+};
+
+&ehci0 {
+       /delete-property/ dma-coherent;
+};
+
+&mailbox {
+       /delete-property/ dma-coherent;
+};
+
+&xhci {
+       /delete-property/ dma-coherent;
+};
+
+&ehci0 {
+       /delete-property/ dma-coherent;
+};
+
+&ohci0 {
+       /delete-property/ dma-coherent;
+};
+
+&i2c0 {
+       /delete-property/ dma-coherent;
+};
+
+&sata {
+       /delete-property/ dma-coherent;
+};
+
+&pcie0 {
+       /delete-property/ dma-coherent;
+};
+
+&pcie1 {
+       /delete-property/ dma-coherent;
+};
+
+&pcie2 {
+       /delete-property/ dma-coherent;
+};