aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar724x_ubnt_xm.dtsi
diff options
context:
space:
mode:
authorRussell Senior <russell@personaltelco.net>2020-03-10 18:06:02 -0700
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-03-18 13:45:57 +0100
commit572278d3a0390f1ad37eefab7fe86af5050d4199 (patch)
treefb8111779942997c3dc962407a811bdc1a85aac0 /target/linux/ath79/dts/ar724x_ubnt_xm.dtsi
parentdabe8471fc4ccc9297aa88148cdf527a4fca3576 (diff)
downloadupstream-572278d3a0390f1ad37eefab7fe86af5050d4199.tar.gz
upstream-572278d3a0390f1ad37eefab7fe86af5050d4199.tar.bz2
upstream-572278d3a0390f1ad37eefab7fe86af5050d4199.zip
ath79: generalize ubnt_xm dtsi for ar7240 and ar7241
* Prepare to support the AR7240 variant of ubiquiti bullet m, by reorganizing the related dtsi files. * Distribute SOC variable across ubnt-xm devices. Signed-off-by: Russell Senior <russell@personaltelco.net>
Diffstat (limited to 'target/linux/ath79/dts/ar724x_ubnt_xm.dtsi')
-rw-r--r--target/linux/ath79/dts/ar724x_ubnt_xm.dtsi94
1 files changed, 94 insertions, 0 deletions
diff --git a/target/linux/ath79/dts/ar724x_ubnt_xm.dtsi b/target/linux/ath79/dts/ar724x_ubnt_xm.dtsi
new file mode 100644
index 0000000000..b36b0d4fe2
--- /dev/null
+++ b/target/linux/ath79/dts/ar724x_ubnt_xm.dtsi
@@ -0,0 +1,94 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ keys {
+ compatible = "gpio-keys";
+
+ reset {
+ linux,code = <KEY_RESTART>;
+ gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
+ debounce-interval = <60>;
+ };
+ };
+};
+
+&uart {
+ status = "okay";
+};
+
+&spi {
+ status = "okay";
+
+ num-cs = <1>;
+
+ flash@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <25000000>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x000000 0x040000>;
+ read-only;
+ };
+
+ partition@40000 {
+ label = "u-boot-env";
+ reg = <0x040000 0x010000>;
+ };
+
+ partition@50000 {
+ compatible = "denx,uimage";
+ label = "firmware";
+ reg = <0x050000 0x750000>;
+ };
+
+ partition@7a0000 {
+ label = "board_config";
+ reg = <0x7a0000 0x010000>;
+ read-only;
+ };
+
+ partition@7b0000 {
+ label = "cfg";
+ reg = <0x7b0000 0x040000>;
+ read-only;
+ };
+
+ art: partition@7f0000 {
+ label = "art";
+ reg = <0x7f0000 0x010000>;
+ read-only;
+ };
+ };
+ };
+};
+
+&pcie {
+ status = "okay";
+
+ wifi: wifi@0,0 {
+ reg = <0x0000 0 0 0 0>;
+ qca,no-eeprom;
+ };
+};
+
+&eth0 {
+ status = "okay";
+
+ mtd-mac-address = <&art 0x0>;
+};
+
+&eth1 {
+ status = "okay";
+
+ mtd-mac-address = <&art 0x6>;
+};