|
@@ -0,0 +1,230 @@
|
|
|
|
+// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
+
|
|
|
|
+#include "bcm6368.dtsi"
|
|
|
|
+
|
|
|
|
+/ {
|
|
|
|
+ model = "Comtrend WAP-5813n";
|
|
|
|
+ compatible = "comtrend,wap-5813n", "brcm,bcm6369", "brcm,bcm6368";
|
|
|
|
+
|
|
|
|
+ aliases {
|
|
|
|
+ led-boot = &led_power_green;
|
|
|
|
+ led-failsafe = &led_power_red;
|
|
|
|
+ led-running = &led_power_green;
|
|
|
|
+ led-upgrade = &led_power_green;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ keys {
|
|
|
|
+ compatible = "gpio-keys-polled";
|
|
|
|
+ poll-interval = <100>;
|
|
|
|
+
|
|
|
|
+ wlan {
|
|
|
|
+ label = "wlan";
|
|
|
|
+ gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
|
|
|
|
+ linux,code = <KEY_WLAN>;
|
|
|
|
+ debounce-interval = <60>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ reset {
|
|
|
|
+ label = "reset";
|
|
|
|
+ gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
|
|
|
|
+ linux,code = <KEY_RESTART>;
|
|
|
|
+ debounce-interval = <60>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ wps {
|
|
|
|
+ label = "wps";
|
|
|
|
+ gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
|
|
|
|
+ linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
+ debounce-interval = <60>;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ leds {
|
|
|
|
+ compatible = "gpio-leds";
|
|
|
|
+
|
|
|
|
+ led@5 {
|
|
|
|
+ label = "green:internet";
|
|
|
|
+ gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ led@14 {
|
|
|
|
+ label = "green:usb";
|
|
|
|
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ led_power_green: led@22 {
|
|
|
|
+ label = "green:power";
|
|
|
|
+ gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ led@23 {
|
|
|
|
+ label = "green:wps";
|
|
|
|
+ gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ led_power_red: led@24 {
|
|
|
|
+ label = "red:power";
|
|
|
|
+ gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ panic-indicator;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ led@31 {
|
|
|
|
+ label = "red:internet";
|
|
|
|
+ gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ bcm4322-sprom {
|
|
|
|
+ compatible = "brcm,ssb-sprom";
|
|
|
|
+
|
|
|
|
+ pci-bus = <0>;
|
|
|
|
+ pci-dev = <1>;
|
|
|
|
+
|
|
|
|
+ nvmem-cells = <&macaddr_cfe_6a0>;
|
|
|
|
+ nvmem-cell-names = "mac-address";
|
|
|
|
+ mac-address-increment = <1>;
|
|
|
|
+
|
|
|
|
+ brcm,sprom = "brcm/bcm4322-sprom.bin";
|
|
|
|
+ brcm,sprom-fixups = <97 0xfeed>,
|
|
|
|
+ <98 0x15d1>,
|
|
|
|
+ <99 0xfb0d>,
|
|
|
|
+ <113 0xfef7>,
|
|
|
|
+ <114 0x15f7>,
|
|
|
|
+ <115 0xfb1a>;
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&ehci {
|
|
|
|
+ status = "okay";
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+ðernet {
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ nvmem-cells = <&macaddr_cfe_6a0>;
|
|
|
|
+ nvmem-cell-names = "mac-address";
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&lsspi {
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ switch@0 {
|
|
|
|
+ compatible = "brcm,bcm53115";
|
|
|
|
+ reg = <0>;
|
|
|
|
+ spi-max-frequency = <781000>;
|
|
|
|
+ dsa,member = <1 0>;
|
|
|
|
+
|
|
|
|
+ ports {
|
|
|
|
+ #address-cells = <1>;
|
|
|
|
+ #size-cells = <0>;
|
|
|
|
+
|
|
|
|
+ port@0 {
|
|
|
|
+ reg = <0>;
|
|
|
|
+ label = "lan4";
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ port@1 {
|
|
|
|
+ reg = <1>;
|
|
|
|
+ label = "lan3";
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ port@2 {
|
|
|
|
+ reg = <2>;
|
|
|
|
+ label = "lan2";
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ port@3 {
|
|
|
|
+ reg = <3>;
|
|
|
|
+ label = "lan1";
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ port@4 {
|
|
|
|
+ reg = <4>;
|
|
|
|
+ label = "wan";
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ port@5 {
|
|
|
|
+ reg = <5>;
|
|
|
|
+
|
|
|
|
+ phy-mode = "rgmii";
|
|
|
|
+ ethernet = <&switch0port4>;
|
|
|
|
+
|
|
|
|
+ fixed-link {
|
|
|
|
+ speed = <1000>;
|
|
|
|
+ full-duplex;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&pflash {
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ partitions {
|
|
|
|
+ compatible = "fixed-partitions";
|
|
|
|
+ #address-cells = <1>;
|
|
|
|
+ #size-cells = <1>;
|
|
|
|
+
|
|
|
|
+ cfe: partition@0 {
|
|
|
|
+ label = "CFE";
|
|
|
|
+ reg = <0x000000 0x010000>;
|
|
|
|
+ read-only;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ partition@20000 {
|
|
|
|
+ label = "firmware";
|
|
|
|
+ reg = <0x010000 0x7e0000>;
|
|
|
|
+ compatible = "brcm,bcm963xx-imagetag";
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ partition@fe0000 {
|
|
|
|
+ label = "nvram";
|
|
|
|
+ reg = <0x7f0000 0x010000>;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&ohci {
|
|
|
|
+ status = "okay";
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&pci {
|
|
|
|
+ status = "okay";
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&switch0 {
|
|
|
|
+ dsa,member = <0 0>;
|
|
|
|
+
|
|
|
|
+ ports {
|
|
|
|
+ switch0port4: port@4 {
|
|
|
|
+ reg = <4>;
|
|
|
|
+ label = "extsw";
|
|
|
|
+
|
|
|
|
+ phy-mode = "rgmii";
|
|
|
|
+
|
|
|
|
+ fixed-link {
|
|
|
|
+ speed = <1000>;
|
|
|
|
+ full-duplex;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&uart0 {
|
|
|
|
+ status = "okay";
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&usbh {
|
|
|
|
+ status = "okay";
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&cfe {
|
|
|
|
+ compatible = "nvmem-cells";
|
|
|
|
+ #address-cells = <1>;
|
|
|
|
+ #size-cells = <1>;
|
|
|
|
+
|
|
|
|
+ macaddr_cfe_6a0: macaddr@6a0 {
|
|
|
|
+ reg = <0x6a0 0x6>;
|
|
|
|
+ };
|
|
|
|
+};
|