|
|
@@ -0,0 +1,177 @@
|
|
|
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
+
|
|
|
+#include <dt-bindings/gpio/gpio.h>
|
|
|
+#include <dt-bindings/input/input.h>
|
|
|
+#include <dt-bindings/leds/common.h>
|
|
|
+
|
|
|
+#include "ar9344.dtsi"
|
|
|
+
|
|
|
+/ {
|
|
|
+ aliases {
|
|
|
+ label-mac-device = ð0;
|
|
|
+ };
|
|
|
+
|
|
|
+ chosen {
|
|
|
+ /*
|
|
|
+ * don't specify bootargs property in DeviceTree to
|
|
|
+ * enable a console with a default baudrate (9600)
|
|
|
+ * or passed console= parameter from the bootloader
|
|
|
+ */
|
|
|
+ /delete-property/ bootargs;
|
|
|
+ stdout-path = &uart;
|
|
|
+ };
|
|
|
+
|
|
|
+ keys {
|
|
|
+ compatible = "gpio-keys";
|
|
|
+
|
|
|
+ button-wps {
|
|
|
+ label = "wps";
|
|
|
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
|
|
+ linux,code = <KEY_WPS_BUTTON>;
|
|
|
+ debounce-interval = <60>;
|
|
|
+ };
|
|
|
+
|
|
|
+ switch-bridge {
|
|
|
+ label = "br";
|
|
|
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
|
|
+ linux,code = <BTN_0>;
|
|
|
+ debounce-interval = <60>;
|
|
|
+ };
|
|
|
+
|
|
|
+ switch-coverter {
|
|
|
+ label = "cnv";
|
|
|
+ gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
|
|
+ linux,code = <BTN_1>;
|
|
|
+ debounce-interval = <60>;
|
|
|
+ };
|
|
|
+
|
|
|
+ button-reset {
|
|
|
+ label = "reset";
|
|
|
+ gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
|
|
+ linux,code = <KEY_RESTART>;
|
|
|
+ debounce-interval = <60>;
|
|
|
+ };
|
|
|
+ };
|
|
|
+
|
|
|
+ /* all LEDs are connected to ath10k chip (QCA9882) */
|
|
|
+};
|
|
|
+
|
|
|
+&ref {
|
|
|
+ clock-frequency = <40000000>;
|
|
|
+};
|
|
|
+
|
|
|
+&spi {
|
|
|
+ status = "okay";
|
|
|
+
|
|
|
+ flash@0 {
|
|
|
+ compatible = "jedec,spi-nor";
|
|
|
+ reg = <0>;
|
|
|
+ spi-max-frequency = <25000000>;
|
|
|
+
|
|
|
+ partitions {
|
|
|
+ compatible = "fixed-partitions";
|
|
|
+ #address-cells = <1>;
|
|
|
+ #size-cells = <1>;
|
|
|
+
|
|
|
+ /*
|
|
|
+ * since the OEM bootloader requires unknown
|
|
|
+ * filesystem on firmware area, needs to be
|
|
|
+ * replaced to u-boot before OpenWrt installation
|
|
|
+ */
|
|
|
+ partition@0 {
|
|
|
+ label = "bootloader";
|
|
|
+ reg = <0x000000 0x020000>;
|
|
|
+ };
|
|
|
+
|
|
|
+ /* not compatible with u-boot */
|
|
|
+ partition@20000 {
|
|
|
+ label = "config";
|
|
|
+ reg = <0x020000 0x010000>;
|
|
|
+ read-only;
|
|
|
+
|
|
|
+ nvmem-layout {
|
|
|
+ compatible = "fixed-layout";
|
|
|
+ #address-cells = <1>;
|
|
|
+ #size-cells = <1>;
|
|
|
+
|
|
|
+ macaddr_config_0: mac-address@0 {
|
|
|
+ reg = <0x0 0x6>;
|
|
|
+ };
|
|
|
+
|
|
|
+ macaddr_config_6: mac-address@6 {
|
|
|
+ reg = <0x6 0x6>;
|
|
|
+ };
|
|
|
+
|
|
|
+ macaddr_config_c: mac-address@c {
|
|
|
+ reg = <0xc 0x6>;
|
|
|
+ };
|
|
|
+
|
|
|
+ macaddr_config_12: mac-address@12 {
|
|
|
+ reg = <0x12 0x6>;
|
|
|
+ };
|
|
|
+ };
|
|
|
+ };
|
|
|
+
|
|
|
+ partition@30000 {
|
|
|
+ label = "art";
|
|
|
+ reg = <0x030000 0x010000>;
|
|
|
+ read-only;
|
|
|
+
|
|
|
+ nvmem-layout {
|
|
|
+ compatible = "fixed-layout";
|
|
|
+ #address-cells = <1>;
|
|
|
+ #size-cells = <1>;
|
|
|
+
|
|
|
+ cal_art_1000: calibration@1000 {
|
|
|
+ reg = <0x1000 0x440>;
|
|
|
+ };
|
|
|
+
|
|
|
+ cal_art_5000: calibration@5000 {
|
|
|
+ reg = <0x5000 0x844>;
|
|
|
+ };
|
|
|
+ };
|
|
|
+ };
|
|
|
+
|
|
|
+ partition@40000 {
|
|
|
+ compatible = "denx,uimage";
|
|
|
+ label = "firmware";
|
|
|
+ reg = <0x040000 0x7c0000>;
|
|
|
+ };
|
|
|
+ };
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+ð0 {
|
|
|
+ status = "okay";
|
|
|
+
|
|
|
+ phy-handle = <&swphy4>;
|
|
|
+
|
|
|
+ nvmem-cells = <&macaddr_config_c>;
|
|
|
+ nvmem-cell-names = "mac-address";
|
|
|
+};
|
|
|
+
|
|
|
+ð1 {
|
|
|
+ status = "okay";
|
|
|
+
|
|
|
+ nvmem-cells = <&macaddr_config_6>;
|
|
|
+ nvmem-cell-names = "mac-address";
|
|
|
+};
|
|
|
+
|
|
|
+&pcie {
|
|
|
+ status = "okay";
|
|
|
+
|
|
|
+ wifi@0,0 {
|
|
|
+ compatible = "qcom,ath10k";
|
|
|
+ reg = <0x0000 0 0 0 0>;
|
|
|
+
|
|
|
+ nvmem-cells = <&cal_art_5000>, <&macaddr_config_12>;
|
|
|
+ nvmem-cell-names = "calibration", "mac-address";
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&wmac {
|
|
|
+ status = "okay";
|
|
|
+
|
|
|
+ nvmem-cells = <&cal_art_1000>, <&macaddr_config_0>;
|
|
|
+ nvmem-cell-names = "calibration", "mac-address";
|
|
|
+};
|