ath79: keep DTSI files for D-Link SoC-specific

It is good practice to define device tree files based on specific
SoCs. Thus, let's not start to create files that are used across
different architectures.

Duplicate the DTSI file for D-Link DAP-2xxx in order to have one
for qca953x and one for qca955x, respectively.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2021-01-04 00:56:57 +01:00 committed by CN_SZTL
parent cd8861ed07
commit a9f8f73eeb
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
6 changed files with 62 additions and 8 deletions

View File

@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "qca953x.dtsi"
#include "qca95xx_dlink_dap-2xxx.dtsi"
#include "qca953x_dlink_dap-2xxx.dtsi"
/ {
compatible = "dlink,dap-2230-a1", "qca,qca9533";

View File

@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "qca953x.dtsi"
#include "qca95xx_dlink_dap-2xxx.dtsi"
#include "qca953x_dlink_dap-2xxx.dtsi"
/ {
compatible = "dlink,dap-3320-a1", "qca,qca9533";

View File

@ -1,5 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "qca953x.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

View File

@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "qca955x.dtsi"
#include "qca95xx_dlink_dap-2xxx.dtsi"
#include "qca955x_dlink_dap-2xxx.dtsi"
/ {
compatible = "dlink,dap-2660-a1", "qca,qca9557";

View File

@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "qca955x.dtsi"
#include "qca95xx_dlink_dap-2xxx.dtsi"
#include "qca955x_dlink_dap-2xxx.dtsi"
/ {
compatible = "dlink,dap-2680-a1", "qca,qca9558";

View File

@ -0,0 +1,56 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "qca955x.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
&spi {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <50000000>;
partitions: partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x40000>;
read-only;
};
partition@40000 {
label = "bdcfg";
reg = <0x40000 0x10000>;
read-only;
};
partition@50000 {
label = "rgdb";
reg = <0x50000 0x10000>;
read-only;
};
partition@60000 {
label = "unused";
reg = <0x60000 0x10000>;
read-only;
};
};
};
};
&uart {
status = "okay";
};
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
};