board=$(board_name)
case "$board" in
-cy-swr1100 | \
+samsung,cy-swr1100|\
dlink,dch-m225|\
-dir-645 | \
+dlink,dir-645|\
dlink,dir-860l-b1)
fix_checksum seama
;;
+++ /dev/null
-/dts-v1/;
-
-#include "rt2880.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- compatible = "airlink101,ar670w", "ralink,rt2880-soc";
- model = "Airlink101 AR670W";
-
- aliases {
- led-boot = &led_power;
- led-failsafe = &led_power;
- led-running = &led_power;
- led-upgrade = &led_power;
- };
-
- cfi@bdc00000 {
- compatible = "cfi-flash";
- reg = <0xbc400000 0x800000>;
- bank-width = <2>;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- reg = <0x0 0x30000>;
- label = "u-boot";
- read-only;
- };
-
- factory: partition@30000 {
- reg = <0x30000 0x10000>;
- label = "factory";
- read-only;
- };
-
- partition@40000 {
- compatible = "lzma";
- reg = <0x40000 0x3c0000>;
- label = "firmware";
- };
- };
- };
-
- leds {
- compatible = "gpio-leds";
-
- led_power: power {
- label = "ar670w:green:power";
- gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
- };
-
- wpsblue {
- label = "ar670w:blue:wps";
- gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
- };
- };
-
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <100>;
-
- wps {
- label = "wps";
- gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_WPS_BUTTON>;
- };
-
- reset {
- label = "reset";
- gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
- };
-};
-
-&gpio0 {
- status = "okay";
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "spi", "uartlite";
- ralink,function = "gpio";
- };
- };
-};
-
-ðernet {
- status = "okay";
- mtd-mac-address = <&factory 0x2004>;
-
- port@0 {
- phy-handle = <&phy0>;
- phy-mode = "mii";
- };
-
- mdio-bus {
- status = "okay";
-
- phy0: ethernet-phy@0 {
- phy-mode = "mii";
- reg = <0>;
- };
- };
-};
-
-&wmac {
- status = "okay";
- ralink,mtd-eeprom = <&factory 0x2000>;
-};
+++ /dev/null
-/dts-v1/;
-
-#include "rt2880.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- compatible = "airlink101,ar725w", "ralink,rt2880-soc";
- model = "Airlink101 AR725W";
-
- aliases {
- led-boot = &led_power;
- led-failsafe = &led_power;
- led-running = &led_power;
- led-upgrade = &led_power;
- };
-
- cfi@bdc00000 {
- compatible = "cfi-flash";
- reg = <0xbc400000 0x800000>;
- bank-width = <2>;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- reg = <0x0 0x30000>;
- label = "u-boot";
- read-only;
- };
-
- partition@30000 {
- reg = <0x30000 0x10000>;
- label = "u-boot-env";
- };
-
- factory: partition@40000 {
- reg = <0x40000 0x10000>;
- label = "factory";
- read-only;
- };
-
- partition@50000 {
- compatible = "denx,uimage";
- reg = <0x50000 0x3B0000>;
- label = "firmware";
- };
- };
- };
-
- leds {
- compatible = "gpio-leds";
-
- led_power: power {
- label = "ar725w:green:power";
- gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
- };
-
- wpsred {
- label = "ar725w:red:wps";
- gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
- };
-
- wpsblue {
- label = "ar725w:blue:wps";
- gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
- };
- };
-
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <100>;
-
- wps {
- label = "wps";
- gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_WPS_BUTTON>;
- };
-
- reset {
- label = "reset";
- gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
- };
-};
-
-&gpio0 {
- status = "okay";
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "spi", "uartlite";
- ralink,function = "gpio";
- };
- };
-};
-
-ðernet {
- status = "okay";
- mtd-mac-address = <&factory 0x4>;
-
- port@0 {
- phy-handle = <&phy0>;
- phy-mode = "mii";
- };
-
- mdio-bus {
- status = "okay";
-
- phy0: ethernet-phy@0 {
- phy-mode = "mii";
- reg = <0>;
- };
- };
-};
-
-&wmac {
- status = "okay";
- ralink,mtd-eeprom = <&factory 0>;
-};
+++ /dev/null
-/dts-v1/;
-
-#include "rt3883.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- compatible = "edimax,br-6475nd", "ralink,rt3883-soc";
- model = "Edimax BR-6475nD";
-
- aliases {
- led-boot = &led_power;
- led-failsafe = &led_power;
- led-running = &led_power;
- led-upgrade = &led_power;
- };
-
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <100>;
-
- reset {
- label = "reset";
- gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
-
- rfkill {
- label = "rfkill";
- gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
- linux,input-type = <EV_SW>;
- linux,code = <KEY_RFKILL>;
- };
- };
-
- leds {
- compatible = "gpio-leds";
-
- led_power: power {
- label = "br-6475nd:green:power";
- gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
- };
-
- wlan {
- label = "br-6475nd:amber:wlan";
- gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
- };
-
- wlan_5ghz {
- label = "br-6475nd:amber:wlan_5ghz";
- gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
- };
- };
-
- nor-flash@1c000000 {
- compatible = "cfi-flash";
- reg = <0x1c000000 0x800000>;
- bank-width = <2>;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- reg = <0x00000000 0x00030000>;
- label = "u-boot";
- read-only;
- };
-
- partition@30000 {
- reg = <0x00030000 0x00010000>;
- label = "nvram";
- read-only;
- };
-
- factory: partition@40000 {
- reg = <0x00040000 0x00010000>;
- label = "factory";
- read-only;
- };
-
- devdata: partition@50000 {
- reg = <0x00050000 0x00020000>;
- label = "devdata";
- read-only;
- };
-
- partition@70000 {
- compatible = "edimax,uimage";
- reg = <0x00070000 0x00790000>;
- label = "firmware";
- };
- };
- };
-
- rtl8367 {
- compatible = "realtek,rtl8367";
- gpio-sda = <&gpio0 5 GPIO_ACTIVE_HIGH>;
- gpio-sck = <&gpio0 4 GPIO_ACTIVE_HIGH>;
- realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
- };
-
- /*
- * Unclear if this is the correct gpio setup; the USB ports are
- * unpopulated on a stock BR-6475nD, even though the hardware exists
- * and the headers are there.
- */
- /*
- gpio_export {
- compatible = "gpio-export";
- #size-cells = <0>;
-
- usb {
- gpio-export,name="usb";
- gpio-export,output=<0>;
- gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
- };
- };
- */
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "spi", "jtag", "uartf";
- ralink,function = "gpio";
- };
- };
-};
-
-&timer {
- status = "okay";
-};
-
-&gpio1 {
- status = "okay";
-};
-
-&uartlite {
- status = "okay";
-};
-
-ðernet {
- status = "okay";
- mtd-mac-address = <&devdata 0x0d>;
-
- port@0 {
- mediatek,fixed-link = <1000 1 1 1>;
- };
-};
-
-&wmac {
- status = "okay";
- ralink,mtd-eeprom = <&factory 0>;
-};
-
-&pci {
- status = "okay";
-};
-
-&pci1 {
- status = "okay";
-
- wifi@0,0 {
- compatible = "pci0,0";
- reg = <0x10000 0 0 0 0>;
- ralink,5ghz = <0>;
- ralink,mtd-eeprom = <&factory 0x8000>;
- };
-};
-
-&ehci {
- status = "okay";
-};
-
-&ohci {
- status = "okay";
-};
+++ /dev/null
-/dts-v1/;
-
-#include "rt3883.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- compatible = "samsung,cy-swr1100", "ralink,rt3883-soc";
- model = "Samsung CY-SWR1100";
-
- aliases {
- led-boot = &led_wps;
- led-failsafe = &led_wps;
- };
-
- nor-flash@1c000000 {
- compatible = "cfi-flash";
- reg = <0x1c000000 0x800000>;
- bank-width = <2>;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- label = "uboot";
- reg = <0x0 0x30000>;
- read-only;
- };
-
- partition@30000 {
- label = "uboot-env";
- reg = <0x30000 0x4000>;
- read-only;
- };
-
- factory: partition@34000 {
- label = "factory";
- reg = <0x34000 0x4000>;
- read-only;
- };
-
- partition@38000 {
- label = "nvram";
- reg = <0x38000 0x8000>;
- read-only;
- };
-
- partition@40000 {
- label = "devdata";
- reg = <0x40000 0x10000>;
- };
-
- partition@50000 {
- compatible = "seama";
- label = "firmware";
- reg = <0x50000 0x7b0000>;
- };
- };
- };
-
- rtl8367 {
- compatible = "realtek,rtl8367";
- gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
- gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
- realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
- };
-
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <100>;
-
- reset {
- label = "reset";
- gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
-
- wps {
- label = "wps";
- gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_WPS_BUTTON>;
- };
- };
-
- leds {
- compatible = "gpio-leds";
-
- led_wps: wps {
- label = "cy-swr1100:blue:wps";
- gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
- };
-
- usb {
- label = "cy-swr1100:blue:usb";
- gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
- trigger-sources = <&ohci_port1>, <&ehci_port1>;
- linux,default-trigger = "usbport";
- };
- };
-};
-
-&gpio1 {
- status = "okay";
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "spi";
- ralink,function = "gpio";
- };
- };
-};
-
-ðernet {
- port@0 {
- mediatek,fixed-link = <1000 1 1 1>;
- phy-mode = "rgmii";
- };
-};
-
-&pci {
- status = "okay";
-};
-
-&pci1 {
- status = "okay";
-
- wifi@0,0 {
- compatible = "pci0,0";
- reg = <0x10000 0 0 0 0>;
- ralink,5ghz = <0>;
- ralink,mtd-eeprom = <&factory 0x2000>;
- };
-};
-
-&wmac {
- status = "okay";
- ralink,2ghz = <0>;
- ralink,mtd-eeprom = <&factory 0>;
-};
-
-&ehci {
- status = "okay";
-};
-
-&ohci {
- status = "okay";
-};
+++ /dev/null
-/dts-v1/;
-
-#include "rt2880.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- compatible = "dlink,dap-1522-a1", "ralink,rt2880-soc";
- model = "D-Link DAP-1522 A1";
-
- aliases {
- led-boot = &led_status;
- led-failsafe = &led_status;
- led-running = &led_status;
- led-upgrade = &led_status;
- };
-
- cfi@bc400000 {
- compatible = "cfi-flash";
- reg = <0xbc400000 0x800000>;
- bank-width = <2>;
- device-width = <2>;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- label = "uboot";
- reg = <0x0 0x30000>;
- read-only;
- };
-
- factory: partition@30000 {
- label = "factory";
- reg = <0x30000 0x10000>;
- read-only;
- };
-
- partition@40000 {
- compatible = "wrg";
- label = "firmware";
- reg = <0x40000 0x3a0000>;
- };
- };
- };
-
- rtl8366s {
- compatible = "realtek,rtl8366s";
- gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
- gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
- };
-
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <100>;
-
- reset {
- label = "reset";
- gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
-
- wps {
- label = "wps";
- gpios = <&gpio2 16 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_WPS_BUTTON>;
- };
-
- ap {
- label = "ap";
- gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
- linux,code = <BTN_0>;
- linux,input-type = <EV_SW>;
- };
-
- bridge {
- label = "bridge";
- gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
- linux,code = <BTN_1>;
- linux,input-type = <EV_SW>;
- };
- };
-
- leds {
- compatible = "gpio-leds";
-
- wps {
- label = "dap-1522-a1:blue:wps";
- gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
- };
-
- ap {
- label = "dap-1522-a1:blue:ap";
- gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
- };
-
- sta {
- label = "dap-1522-a1:red:sta";
- gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
- };
-
- led_status: status {
- label = "dap-1522-a1:blue:status";
- gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
- };
- };
-};
-
-&gpio0 {
- status = "okay";
-};
-
-&gpio2 {
- status = "okay";
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "uartlite", "pci";
- ralink,function = "gpio";
- };
- };
-};
-
-ðernet {
- status = "okay";
- mtd-mac-address = <&factory 0x2004>;
-
- port@0 {
- mediatek,fixed-link = <1000 1 1 1>;
- };
-
- mdio-bus {
- status = "okay";
-
- phy0: ethernet-phy@0 {
- phy-mode = "mii";
- reg = <0>;
- };
- };
-};
-
-&wmac {
- ralink,mtd-eeprom = <&factory 0x2000>;
-};
+++ /dev/null
-/dts-v1/;
-
-#include "rt3883.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- compatible = "dlink,dir-645", "ralink,rt3883-soc";
- model = "D-Link DIR-645";
-
- aliases {
- led-boot = &led_wps;
- led-failsafe = &led_wps;
- led-running = &led_wps;
- led-upgrade = &led_wps;
- };
-
- rtl8367b {
- compatible = "realtek,rtl8367b";
- gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
- gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
- realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
- };
-
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <100>;
-
- reset {
- label = "reset";
- gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
- linux,code = <KEY_RESTART>;
- };
-
- wps {
- label = "wps";
- gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
- linux,code = <KEY_WPS_BUTTON>;
- };
- };
-
- leds {
- compatible = "gpio-leds";
-
- inet {
- label = "dir-645:green:inet";
- gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
- };
-
- led_wps: wps {
- label = "dir-645:green:wps";
- gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
- };
- };
-
- gpio_export {
- compatible = "gpio-export";
- #size-cells = <0>;
-
- usb {
- gpio-export,name = "usb";
- gpio-export,output = <1>;
- gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
- };
- };
-};
-
-&gpio1 {
- status = "okay";
-};
-
-&spi0 {
- status = "okay";
-
- m25p80@0 {
- compatible = "jedec,spi-nor";
- reg = <0>;
- spi-max-frequency = <25000000>;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- label = "uboot";
- reg = <0x0 0x30000>;
- read-only;
- };
-
- partition@30000 {
- label = "uboot-env";
- reg = <0x30000 0x4000>;
- read-only;
- };
-
- factory: partition@34000 {
- label = "factory";
- reg = <0x34000 0x4000>;
- read-only;
- };
-
- partition@38000 {
- label = "nvram";
- reg = <0x38000 0x8000>;
- read-only;
- };
-
- partition@40000 {
- label = "devdata";
- reg = <0x40000 0x10000>;
- };
-
- partition@50000 {
- compatible = "seama";
- label = "firmware";
- reg = <0x50000 0x7b0000>;
- };
- };
- };
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "jtag", "uartf";
- ralink,function = "gpio";
- };
- };
-};
-
-ðernet {
- mtd-mac-address = <&factory 0x4>;
-
- port@0 {
- mediatek,fixed-link = <1000 1 1 0>;
- };
-};
-
-&wmac {
- ralink,5ghz = <0>;
- ralink,mtd-eeprom = <&factory 0>;
-};
-
-&ehci {
- status = "okay";
-};
-
-&ohci {
- status = "okay";
-};
+++ /dev/null
-/dts-v1/;
-
-#include "rt2880.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "belkin,f5d8235-v1", "ralink,rt2880-soc";
- model = "Belkin F5D8235 v1";
-
- aliases {
- led-boot = &led_wired_blue;
- led-failsafe = &led_wired_blue;
- };
-
- cfi@1f000000 {
- compatible = "cfi-flash";
- reg = <0xbc400000 0x800000>;
- bank-width = <2>;
- device-width = <2>;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- label = "uboot";
- reg = <0x0 0x30000>;
- read-only;
- };
-
- partition@30000 {
- label = "uboot-env";
- reg = <0x30000 0x10000>;
- read-only;
- };
-
- factory: partition@40000 {
- label = "factory";
- reg = <0x40000 0x10000>;
- read-only;
- };
-
- partition@50000 {
- compatible = "denx,uimage";
- label = "firmware";
- reg = <0x50000 0x7b0000>;
- };
- };
- };
-
- rtl8366s {
- compatible = "realtek,rtl8366s";
- gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
- gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
-
- realtek,initvals = <
- 0x0242 0x02BF
- 0x0245 0x02BF
- 0x0248 0x02BF
- 0x024B 0x02BF
- 0x024E 0x02BF
- 0x0251 0x02BF
- 0x0254 0x0A3F
- 0x0256 0x0A3F
- 0x0258 0x0A3F
- 0x025A 0x0A3F
- 0x025C 0x0A3F
- 0x025E 0x0A3F
- 0x0263 0x007C
- 0x0100 0x0004
- 0xBE5B 0x3500
- 0x800E 0x200F
- 0xBE1D 0x0F00
- 0x8001 0x5011
- 0x800A 0xA2F4
- 0x800B 0x17A3
- 0xBE4B 0x17A3
- 0xBE41 0x5011
- 0xBE17 0x2100
- 0x8000 0x8304
- 0xBE40 0x8304
- 0xBE4A 0xA2F4
- 0x800C 0xA8D5
- 0x8014 0x5500
- 0x8015 0x0004
- 0xBE4C 0xA8D5
- 0xBE59 0x0008
- 0xBE09 0x0E00
- 0xBE36 0x1036
- 0xBE37 0x1036
- 0x800D 0x00FF
- 0xBE4D 0x00FF
- >;
-
- realtek,green-ethernet-features;
- };
-
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <100>;
-
- wps {
- label = "wps";
- gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_WPS_BUTTON>;
- };
-
- reset {
- label = "reset";
- gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
- };
-
- leds {
- compatible = "gpio-leds";
-
- internet {
- label = "f5d8235-v1:blue:internet";
- gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
- };
-
- internet2 {
- label = "f5d8235-v1:amber:internet";
- gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
- };
-
- modem {
- label = "f5d8235-v1:blue:modem";
- gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
- };
-
- modem2 {
- label = "f5d8235-v1:amber:modem";
- gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
- };
-
- router {
- label = "f5d8235-v1:blue:router";
- gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
- };
-
- storage {
- label = "f5d8235-v1:blue:storage";
- gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
- trigger-sources = <&ohci_port1>, <&ehci_port1>;
- linux,default-trigger = "usbport";
- };
-
- storage2 {
- label = "f5d8235-v1:amber:storage";
- gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
- };
-
- security {
- label = "f5d8235-v1:blue:security";
- gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
- };
-
- security2 {
- label = "f5d8235-v1:amber:security";
- gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
- };
-
- led_wired_blue: wired {
- label = "f5d8235-v1:blue:wired";
- gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
- };
-
- wired2 {
- label = "f5d8235-v1:amber:wired";
- gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
- };
-
- wireless {
- label = "f5d8235-v1:blue:wireless";
- gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
- };
-
- wireless2 {
- label = "f5d8235-v1:amber:wireless";
- gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
- };
- };
-};
-
-&gpio0 {
- status = "okay";
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "spi", "i2c", "jtag", "mdio", "uartlite";
- ralink,function = "gpio";
- };
- };
-};
-
-ðernet {
- status = "okay";
- mtd-mac-address = <&factory 0x4>;
-
- port@0 {
- mediatek,fixed-link = <1000 1 1 1>;
- };
-};
-
-&pci {
- status = "okay";
-
- usb@11,0 {
- #address-cells = <1>;
- #size-cells = <0>;
- compatible = "pci1033,0035";
- reg = <0x8800 0 0 0 0>;
-
- ohci_port1: port@1 {
- reg = <1>;
- #trigger-source-cells = <0>;
- };
- };
-
- usb@11,1 {
- #address-cells = <1>;
- #size-cells = <0>;
- compatible = "pci1033,00e0";
- reg = <0x8900 0 0 0 0>;
-
- ehci_port1: port@1 {
- reg = <1>;
- #trigger-source-cells = <0>;
- };
- };
-};
-
-&wmac {
- status = "okay";
- ralink,mtd-eeprom = <&factory 0x0>;
-};
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
-
-#include "F9K110x.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- compatible = "belkin,f9k1109v1", "ralink,rt3883-soc";
- model = "Belkin F9K1109 Version 1.0";
-
- aliases {
- led-boot = &led_status_amber;
- led-failsafe = &led_status_amber;
- led-running = &led_status_blue;
- led-upgrade = &led_status_amber;
- };
-
- leds {
- compatible = "gpio-leds";
-
- led_status_amber: internet_amber {
- label = "f9k1109v1:amber:internet";
- gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
- };
-
- led_status_blue: internet_blue {
- label = "f9k1109v1:blue:internet";
- gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
- };
-
- usb1 {
- label = "f9k1109v1:green:usb1";
- gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
- };
-
- usb2 {
- label = "f9k1109v1:green:usb2";
- gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
- };
-
- wps_amber {
- label = "f9k1109v1:amber:wps";
- gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
- };
-
- wps_blue {
- label = "f9k1109v1:blue:wps";
- gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
- };
-
- };
-
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <100>;
-
- reset {
- label = "reset";
- gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
-
- wps {
- label = "wps";
- gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_WPS_BUTTON>;
- };
- };
-};
+++ /dev/null
-// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-
-#include "rt3883.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- compatible = "ralink,rt3883-soc";
-
- rtl8367b {
- compatible = "realtek,rtl8367b";
- gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
- gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
- realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
- };
-
-};
-
-&gpio1 {
- status = "okay";
-};
-
-&spi0 {
- status = "okay";
-
- 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 = "uboot";
- reg = <0x0 0x30000>;
- read-only;
- };
-
- partition@30000 {
- label = "uboot-env";
- reg = <0x30000 0x10000>;
- read-only;
- };
-
- factory: partition@40000 {
- label = "factory";
- reg = <0x40000 0x10000>;
- read-only;
- };
-
- partition@50000 {
- compatible = "denx,uimage";
- label = "firmware";
- reg = <0x50000 0x7a0000>;
- };
-
- partition@7f0000 {
- label = "user-cfg";
- reg = <0x7f0000 0x10000>;
- read-only;
- };
- };
- };
-};
-
-ðernet {
- port@0 {
- mediatek,fixed-link = <1000 1 1 1>;
- phy-mode = "rgmii";
- };
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "jtag", "uartf";
- ralink,function = "gpio";
- };
- };
-};
-
-&wmac {
- status = "okay";
- ralink,mtd-eeprom = <&factory 0>;
-};
-
-&pci {
- status = "okay";
-};
-
-&pci1 {
- status = "okay";
-
- wifi@1,0 {
- compatible = "pci1814,3091";
- reg = <0x10000 0 0 0 0>;
- ralink,5ghz = <0>;
- ralink,mtd-eeprom = <&factory 0x8000>;
- };
-};
-
-&ehci {
- status = "okay";
-};
-
-&ohci {
- status = "okay";
-};
+++ /dev/null
-/dts-v1/;
-
-#include "rt3883.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- compatible = "omnima,hpm", "ralink,rt3883-soc";
- model = "Omnima HPM";
-
- aliases {
- led-boot = &led_status;
- led-failsafe = &led_status;
- led-running = &led_status;
- led-upgrade = &led_status;
- };
-
- chosen {
- bootargs = "console=ttyS0,115200";
- };
-
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <100>;
-
- reset {
- label = "reset";
- gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
- linux,code = <KEY_RESTART>;
- };
- };
-
- leds {
- compatible = "gpio-leds";
-
- power {
- label = "hpm:orange:power";
- gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
- default-state = "on";
- };
-
- led_status: status {
- label = "hpm:green:status";
- gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
- default-state = "on";
- };
-
- eth {
- label = "hpm:green:eth";
- gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
- };
-
- eth2 {
- label = "hpm:red:eth";
- gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
- };
-
- wifi {
- label = "hpm:green:wifi";
- gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
- };
-
- wifi2 {
- label = "hpm:red:wifi";
- gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
- };
- };
-
- gpio_export {
- compatible = "gpio-export";
- #size-cells = <0>;
- /* gpio 12 and 13 handle the OC input */
-
- usb0 {
- gpio-export,name = "usb0";
- gpio-export,output = <1>;
- gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
- };
-
- usb1 {
- gpio-export,name = "usb1";
- gpio-export,output = <1>;
- gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
- };
- };
-};
-
-&spi0 {
- status = "okay";
-
- m25p80@0 {
- compatible = "jedec,spi-nor";
- spi-max-frequency = <25000000>;
- reg = <0>;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- reg = <0x0 0x0030000>;
- label = "u-boot";
- read-only;
- };
-
- partition@30000 {
- reg = <0x00030000 0x00010000>;
- label = "config";
- read-only;
- };
-
- factory: partition@40000 {
- reg = <0x00040000 0x00010000>;
- label = "factory";
- read-only;
- };
-
- partition@50000 {
- compatible = "denx,uimage";
- reg = <0x00050000 0x00fb0000>;
- label = "firmware";
- };
- };
- };
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "jtag", "uartf";
- ralink,function = "gpio";
- };
- };
-};
-
-ðernet {
- phy-handle = <&phy0>;
- phy-mode = "rgmii";
- mtd-mac-address = <&factory 0x28>;
-
- mdio-bus {
- status = "okay";
-
- phy0: ethernet-phy@4 {
- reg = <4>;
- };
- };
-};
-
-&wmac {
- ralink,mtd-eeprom = <&factory 0>;
-};
-
-&ehci {
- status = "okay";
-};
-
-&ohci {
- status = "okay";
-};
+++ /dev/null
-/dts-v1/;
-
-#include "rt2880.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "asus,rt-n15", "ralink,rt2880-soc";
- model = "Asus RT-N15";
-
- aliases {
- led-boot = &led_power;
- led-failsafe = &led_power;
- led-running = &led_power;
- led-upgrade = &led_power;
- };
-
- cfi@1f000000 {
- compatible = "cfi-flash";
- reg = <0x1f000000 0x800000>;
- bank-width = <2>;
- device-width = <2>;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- label = "uboot";
- reg = <0x0 0x30000>;
- read-only;
- };
-
- partition@30000 {
- label = "uboot-env";
- reg = <0x30000 0x10000>;
- read-only;
- };
-
- factory: partition@40000 {
- label = "factory";
- reg = <0x40000 0x10000>;
- read-only;
- };
-
- partition@50000 {
- compatible = "denx,uimage";
- label = "firmware";
- reg = <0x50000 0x3b0000>;
- };
- };
- };
-
- rtl8366s {
- compatible = "realtek,rtl8366s";
- gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
- gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
- };
-
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <100>;
-
- wps {
- label = "wps";
- gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
- linux,code = <KEY_WPS_BUTTON>;
- };
-
- reset {
- label = "reset";
- gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
- linux,code = <KEY_RESTART>;
- };
- };
-
- leds {
- compatible = "gpio-leds";
-
- led_power: power {
- label = "rt-n15:blue:power";
- gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
- };
- };
-};
-
-&gpio0 {
- status = "okay";
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "uartlite", "mdio";
- ralink,function = "gpio";
- };
- };
-};
-
-ðernet {
- status = "okay";
- mtd-mac-address = <&factory 0x4>;
-
- port@0 {
- mediatek,fixed-link = <1000 1 1 1>;
- };
-
- mdio-bus {
- status = "okay";
-
- phy0: ethernet-phy@0 {
- phy-mode = "mii";
- reg = <0>;
- };
- };
-};
-
-&wmac {
- ralink,mtd-eeprom = <&factory 0>;
-};
+++ /dev/null
-/dts-v1/;
-
-#include "rt3883.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- compatible = "asus,rt-n56u", "ralink,rt3883-soc";
- model = "Asus RT-N56U";
-
- aliases {
- led-boot = &led_power;
- led-failsafe = &led_power;
- led-running = &led_power;
- led-upgrade = &led_power;
- };
-
- nor-flash@1c000000 {
- compatible = "cfi-flash";
- reg = <0x1c000000 0x800000>;
- bank-width = <2>;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- reg = <0x0 0x0030000>;
- label = "u-boot";
- read-only;
- };
-
- partition@30000 {
- reg = <0x00030000 0x00010000>;
- label = "u-boot-env";
- read-only;
- };
-
- factory: partition@40000 {
- reg = <0x00040000 0x00010000>;
- label = "factory";
- read-only;
- };
-
- partition@50000 {
- compatible = "denx,uimage";
- reg = <0x00050000 0x007b0000>;
- label = "firmware";
- };
- };
- };
-
- rtl8367 {
- compatible = "realtek,rtl8367";
- gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
- gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
- realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
- };
-
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <100>;
-
- reset {
- label = "reset";
- gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
-
- wps {
- label = "wps";
- gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_WPS_BUTTON>;
- };
- };
-
- leds {
- compatible = "gpio-leds";
-
- led_power: power {
- label = "rt-n56u:blue:power";
- gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
- };
-
- lan {
- label = "rt-n56u:blue:lan";
- gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
- };
-
- wan {
- label = "rt-n56u:blue:wan";
- gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
- };
-
- usb {
- label = "rt-n56u:blue:usb";
- gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
- };
- };
-};
-
-&gpio1 {
- status = "okay";
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "spi", "i2c", "jtag", "uartf";
- ralink,function = "gpio";
- };
- };
-};
-
-ðernet {
- mtd-mac-address = <&factory 0x4>;
-
- port@0 {
- mediatek,fixed-link = <1000 1 1 1>;
- };
-};
-
-&pci {
- status = "okay";
-};
-
-&pci1 {
- status = "okay";
-
- wifi@0,0 {
- compatible = "pci1814,3091";
- reg = <0x10000 0 0 0 0>;
- ralink,mtd-eeprom = <&factory 0x8000>;
- };
-};
-
-&wmac {
- status = "okay";
- ralink,2ghz = <0>;
- ralink,mtd-eeprom = <&factory 0>;
-};
-
-&ehci {
- status = "okay";
-};
-
-&ohci {
- status = "okay";
-};
+++ /dev/null
-/dts-v1/;
-
-#include "rt3883.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- compatible = "trendnet,tew-691gr", "ralink,rt3883-soc";
- model = "TRENDnet TEW-691GR";
-
- aliases {
- led-boot = &led_wps;
- led-failsafe = &led_wps;
- led-running = &led_wps;
- led-upgrade = &led_wps;
- };
-
- nor-flash@1c000000 {
- compatible = "cfi-flash";
- reg = <0x1c000000 0x800000>;
- bank-width = <2>;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- reg = <0x0 0x0030000>;
- label = "u-boot";
- read-only;
- };
-
- partition@30000 {
- reg = <0x00030000 0x00010000>;
- label = "u-boot-env";
- read-only;
- };
-
- factory: partition@40000 {
- reg = <0x00040000 0x00010000>;
- label = "factory";
- read-only;
- };
-
- partition@50000 {
- compatible = "denx,uimage";
- reg = <0x00050000 0x007b0000>;
- label = "firmware";
- };
- };
- };
-
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <100>;
-
- reset {
- label = "reset";
- gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
-
- wps {
- label = "wps";
- gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_WPS_BUTTON>;
- };
-
- rfkill {
- label = "rfkill";
- gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RFKILL>;
- };
- };
-
- leds {
- compatible = "gpio-leds";
-
- led_wps: wps {
- label = "tew-691gr:green:wps";
- gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
- };
- };
-};
-
-&gpio1 {
- status = "okay";
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "spi", "i2c", "jtag", "uartf";
- ralink,function = "gpio";
- };
- };
-};
-
-ðernet {
- mtd-mac-address = <&factory 0x4>;
-
- port@0 {
- phy-handle = <&phy0>;
- phy-mode = "rgmii";
- };
-
- mdio-bus {
- status = "okay";
-
- phy0: ethernet-phy@0 {
- reg = <0>;
- phy-mode = "rgmii";
- };
- };
-};
-
-&wmac {
- status = "okay";
- ralink,mtd-eeprom = <&factory 0x0>;
- ralink,5ghz = <0>;
- mtd-mac-address = <&factory 0x4>;
- mtd-mac-address-increment = <1>;
-};
+++ /dev/null
-/dts-v1/;
-
-#include "rt3883.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- compatible = "trendnet,tew-692gr", "ralink,rt3883-soc";
- model = "TRENDnet TEW-692GR";
-
- aliases {
- led-boot = &led_wps_green;
- led-failsafe = &led_wps_green;
- led-running = &led_wps_green;
- led-upgrade = &led_wps_green;
- };
-
- nor-flash@1c000000 {
- compatible = "cfi-flash";
- reg = <0x1c000000 0x800000>;
- bank-width = <2>;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- reg = <0x0 0x0030000>;
- label = "u-boot";
- read-only;
- };
-
- partition@30000 {
- reg = <0x00030000 0x00010000>;
- label = "u-boot-env";
- read-only;
- };
-
- factory: partition@40000 {
- reg = <0x00040000 0x00010000>;
- label = "factory";
- read-only;
- };
-
- partition@50000 {
- compatible = "denx,uimage";
- reg = <0x00050000 0x007b0000>;
- label = "firmware";
- };
- };
- };
-
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <100>;
-
- reset {
- label = "reset";
- gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
-
- wps {
- label = "wps";
- gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_WPS_BUTTON>;
- };
- };
-
- leds {
- compatible = "gpio-leds";
-
- wps {
- label = "tew-692gr:orange:wps";
- gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
- };
-
- led_wps_green: wps2 {
- label = "tew-692gr:green:wps";
- gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
- };
- };
-};
-
-&gpio1 {
- status = "okay";
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "spi", "i2c", "jtag", "uartf";
- ralink,function = "gpio";
- };
- };
-};
-
-ðernet {
- status = "okay";
- mtd-mac-address = <&factory 0x4>;
-
- port@0 {
- phy-handle = <&phy0>;
- phy-mode = "rgmii";
- };
-
- mdio-bus {
- status = "okay";
-
- phy0: ethernet-phy@0 {
- reg = <0>;
- phy-mode = "rgmii";
-
- qca,ar8327-initvals = <
- 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
- 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
- 0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */
- 0x50 0xc437c437 /* LED Control Register 0 */
- 0x54 0xc337c337 /* LED Control Register 1 */
- 0x58 0x00000000 /* LED Control Register 2 */
- 0x5c 0x03ffff00 /* LED Control Register 3 */
- 0x7c 0x0000007e /* PORT0_STATUS */
- 0x94 0x0000007e /* PORT6 STATUS */
- >;
- };
- };
-};
-
-&pci {
- status = "okay";
-};
-
-&pci1 {
- status = "okay";
-
- wifi@0,0 {
- compatible = "pci0,0";
- reg = < 0x10000 0 0 0 0 >;
- ralink,2ghz = <0>;
- };
-};
-
-&wmac {
- status = "okay";
- ralink,mtd-eeprom = <&factory 0x0>;
- ralink,5ghz = <0>;
- mtd-mac-address = <&factory 0x4>;
- mtd-mac-address-increment = <3>;
-};
+++ /dev/null
-/dts-v1/;
-
-#include "rt2880.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- compatible = "ralink,v11st-fe", "ralink,rt2880-soc";
- model = "Ralink V11ST-FE";
-
- aliases {
- led-boot = &led_status;
- led-failsafe = &led_status;
- led-running = &led_status;
- led-upgrade = &led_status;
- };
-
- nor-flash@1c000000 {
- compatible = "cfi-flash";
- reg = <0x1c000000 0x800000>;
- bank-width = <2>;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- reg = <0x0 0x0030000>;
- label = "u-boot";
- read-only;
- };
-
- partition@30000 {
- reg = <0x00030000 0x00010000>;
- label = "u-boot-env";
- read-only;
- };
-
- factory: partition@40000 {
- reg = <0x00040000 0x00010000>;
- label = "factory";
- read-only;
- };
-
- partition@50000 {
- compatible = "denx,uimage";
- reg = <0x00050000 0x003b0000>;
- label = "firmware";
- };
- };
- };
-
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <100>;
-
- wps {
- label = "wps";
- gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
- linux,code = <KEY_WPS_BUTTON>;
- };
- };
-
- leds {
- compatible = "gpio-leds";
-
- led_status: status {
- label = "v11st-fe:green:status";
- gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
- };
- };
-};
-
-&gpio0 {
- status = "okay";
-};
-
-ðernet {
- status = "okay";
-};
-
-&pci {
- status = "okay";
-};
-
-&wmac {
- ralink,mtd-eeprom = <&factory 0>;
-};
+++ /dev/null
-/dts-v1/;
-
-#include "rt2880.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "buffalo,wli-tx4-ag300n", "ralink,rt2880-soc";
- model = "Buffalo WLI-TX4-AG300N";
-
- aliases {
- led-boot = &led_power;
- led-failsafe = &led_power;
- led-running = &led_power;
- led-upgrade = &led_power;
- };
-
- cfi@1f000000 {
- compatible = "cfi-flash";
- reg = <0x1f000000 0x800000>;
- bank-width = <2>;
- device-width = <2>;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- label = "uboot";
- reg = <0x0 0x30000>;
- read-only;
- };
-
- partition@30000 {
- label = "uboot-env";
- reg = <0x30000 0x10000>;
- read-only;
- };
-
- factory: partition@40000 {
- label = "factory";
- reg = <0x40000 0x10000>;
- read-only;
- };
-
- partition@50000 {
- compatible = "denx,uimage";
- label = "firmware";
- reg = <0x50000 0x3b0000>;
- };
- };
- };
-
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <100>;
-
- wps {
- label = "wps";
- gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_WPS_BUTTON>;
- };
-
- bandwidth {
- label = "bandwidth";
- gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
- linux,code = <KEY_RESTART>;
- };
-
- reset {
- label = "reset";
- gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
- };
-
- leds {
- compatible = "gpio-leds";
-
- diag {
- label = "wli-tx4-ag300n:red:diag";
- gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
- };
-
- led_power: power {
- label = "wli-tx4-ag300n:blue:power";
- gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
- };
-
- security {
- label = "wli-tx4-ag300n:blue:security";
- gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
- };
- };
-};
-
-&gpio0 {
- status = "okay";
-};
-
-ðernet {
- status = "okay";
- mtd-mac-address = <&factory 0x4>;
-
- port@0 {
- mediatek,fixed-link = <100 1 1 1>;
- };
-
- mdio-bus {
- status = "okay";
-
- phy0: ethernet-phy@0 {
- phy-mode = "mii";
- reg = <0>;
- };
- };
-};
-
-&wmac {
- ralink,mtd-eeprom = <&factory 0>;
-};
+++ /dev/null
-/dts-v1/;
-
-#include "rt3883.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- compatible = "sitecom,wlr-6000", "ralink,rt3883-soc";
- model = "Sitecom WLR-6000";
-
- aliases {
- led-boot = &led_power;
- led-failsafe = &led_power;
- led-running = &led_power;
- led-upgrade = &led_power;
- };
-
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <20>;
-
- reset {
- label = "reset";
- gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
- };
-
- leds {
- compatible = "gpio-leds";
-
- led_power: power {
- label = "wlr-6000:red:power";
- gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
- };
-
- ops {
- label = "wlr-6000:white:ops";
- gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
- };
- };
-
- gpio_export {
- compatible = "gpio-export";
- #size-cells = <0>;
-
- usb {
- gpio-export,name = "usb";
- gpio-export,output = <1>;
- gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
- };
- };
-};
-
-&gpio1 {
- status = "okay";
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "jtag", "uartf";
- ralink,function = "gpio";
- };
- };
-};
-
-ðernet {
- status = "okay";
- mtd-mac-address = <&factory 0x8004>;
- mtd-mac-address-increment = <1>;
-
- port@0 {
- phy-handle = <&phy0>;
- phy-mode = "rgmii";
- };
-
- mdio-bus {
- status = "okay";
-
- phy0: ethernet-phy@0 {
- reg = <0>;
- phy-mode = "rgmii";
-
- qca,ar8327-initvals = <
- 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
- 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
- 0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */
- 0x50 0xc437c437 /* LED Control Register 0 */
- 0x54 0xc337c337 /* LED Control Register 1 */
- 0x58 0x00000000 /* LED Control Register 2 */
- 0x5c 0x03ffff00 /* LED Control Register 3 */
- 0x7c 0x0000007e /* PORT0_STATUS */
- 0x94 0x0000007e /* PORT6 STATUS */
- >;
- };
- };
-};
-
-&spi0 {
- status = "okay";
-
- m25p80@0 {
- compatible = "jedec,spi-nor";
- reg = <0>;
- spi-max-frequency = <8600000>;
- m25p,fast-read;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- label = "u-boot";
- reg = <0x0 0x30000>;
- read-only;
- };
-
- partition@30000 {
- label = "u-boot-env";
- reg = <0x30000 0x10000>;
- read-only;
- };
-
- factory: partition@40000 {
- label = "factory";
- reg = <0x40000 0x10000>;
- read-only;
- };
-
- partition@50000 {
- compatible = "denx,uimage";
- label = "firmware";
- reg = <0x50000 0x713000>;
- };
-
- partition@763000 {
- label = "manufacture";
- reg = <0x763000 0x7D000>;
- read-only;
- };
-
- partition@7E0000 {
- label = "backup";
- reg = <0x7E0000 0x10000>;
- read-only;
- };
-
- partition@7F0000 {
- label = "storage";
- reg = <0x7F0000 0x10000>;
- read-only;
- };
- };
- };
-};
-
-&pci {
- status = "okay";
-};
-
-&pci1 {
- status = "okay";
-
- wifi@0,0 {
- compatible = "pci1814,3091";
- reg = <0x10000 0 0 0 0>;
- ralink,mtd-eeprom = <&factory 0x8000>;
- };
-};
-
-&wmac {
- status = "okay";
- ralink,2ghz = <0>;
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&ehci {
- status = "okay";
-};
-
-&ohci {
- status = "okay";
-};
+++ /dev/null
-/dts-v1/;
-
-#include "rt3883.dtsi"
-
-/ {
- compatible = "loewe,wmdr-143n", "ralink,rt3883-soc";
- model = "Loewe WMDR-143N";
-};
-
-&spi0 {
- status = "okay";
-
- m25p80@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 = <0x0 0x30000>;
- read-only;
- };
-
- partition@30000 {
- label = "u-boot-env";
- reg = <0x30000 0x00010000>;
- read-only;
- };
-
- factory: partition@40000 {
- label = "factory";
- reg = <0x40000 0x10000>;
- read-only;
- };
-
- partition@50000 {
- compatible = "denx,uimage";
- label = "firmware";
- reg = <0x50000 0x7b0000>;
- };
- };
- };
-};
-
-ðernet {
- port@0 {
- phy-handle = <&phy0>;
- phy-mode = "mii";
- };
- mdio-bus {
- status = "okay";
-
- phy0: ethernet-phy@0 {
- reg = <0>;
- phy-mode = "mii";
- };
- };
-};
-
-&wmac {
- status = "okay";
- ralink,mtd-eeprom = <&factory 0>;
- mtd-mac-address = <&factory 0x4>;
-};
+++ /dev/null
-/dts-v1/;
-
-#include "rt2880.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-
-/ {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "buffalo,wzr-agl300nh", "ralink,rt2880-soc";
- model = "Buffalo WZR-AGL300NH";
-
- aliases {
- led-boot = &led_router;
- led-failsafe = &led_router;
- led-running = &led_router;
- led-upgrade = &led_router;
- };
-
- cfi@1f000000 {
- compatible = "cfi-flash";
- reg = <0x1f000000 0x800000>;
- bank-width = <2>;
- device-width = <2>;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- label = "uboot";
- reg = <0x0 0x30000>;
- read-only;
- };
-
- partition@30000 {
- label = "uboot-env";
- reg = <0x30000 0x10000>;
- read-only;
- };
-
- factory: partition@40000 {
- label = "factory";
- reg = <0x40000 0x10000>;
- read-only;
- };
-
- partition@50000 {
- compatible = "denx,uimage";
- label = "firmware";
- reg = <0x50000 0x3b0000>;
- };
- };
- };
-
- rtl8366s {
- compatible = "realtek,rtl8366s";
- gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
- gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
- };
-
- keys {
- compatible = "gpio-keys-polled";
- poll-interval = <100>;
-
- wps {
- label = "wps";
- gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_WPS_BUTTON>;
- };
-
- router {
- label = "router_switch";
- gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
- linux,code = <BTN_0>;
- };
-
- reset {
- label = "reset";
- gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
- };
-
- leds {
- compatible = "gpio-leds";
-
- led_router: router {
- label = "wzr-agl300nh:green:router";
- gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
- };
-
- diag {
- label = "wzr-agl300nh:red:diag";
- gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
- };
-
- security_g {
- label = "wzr-agl300nh:orange:security_g";
- gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
- };
-
- security_n {
- label = "wzr-agl300nh:orange:security_n";
- gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
- };
- };
-};
-
-&gpio0 {
- status = "okay";
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "uartlite", "mdio";
- ralink,function = "gpio";
- };
- };
-};
-
-ðernet {
- status = "okay";
- mtd-mac-address = <&factory 0x4>;
-
- port@0 {
- mediatek,fixed-link = <1000 1 1 1>;
- };
-
- mdio-bus {
- status = "okay";
-
- phy0: ethernet-phy@0 {
- phy-mode = "mii";
- reg = <0>;
- };
- };
-};
-
-&pci {
- status = "okay";
-};
-
-&wmac {
- ralink,mtd-eeprom = <&factory 0>;
-};
--- /dev/null
+/dts-v1/;
+
+#include "rt2880.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ compatible = "airlink101,ar670w", "ralink,rt2880-soc";
+ model = "Airlink101 AR670W";
+
+ aliases {
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ led-running = &led_power;
+ led-upgrade = &led_power;
+ };
+
+ cfi@bdc00000 {
+ compatible = "cfi-flash";
+ reg = <0xbc400000 0x800000>;
+ bank-width = <2>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ reg = <0x0 0x30000>;
+ label = "u-boot";
+ read-only;
+ };
+
+ factory: partition@30000 {
+ reg = <0x30000 0x10000>;
+ label = "factory";
+ read-only;
+ };
+
+ partition@40000 {
+ compatible = "lzma";
+ reg = <0x40000 0x3c0000>;
+ label = "firmware";
+ };
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led_power: power {
+ label = "ar670w:green:power";
+ gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+ };
+
+ wpsblue {
+ label = "ar670w:blue:wps";
+ gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ };
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ wps {
+ label = "wps";
+ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+ };
+};
+
+&gpio0 {
+ status = "okay";
+};
+
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "i2c", "spi", "uartlite";
+ ralink,function = "gpio";
+ };
+ };
+};
+
+ðernet {
+ status = "okay";
+ mtd-mac-address = <&factory 0x2004>;
+
+ port@0 {
+ phy-handle = <&phy0>;
+ phy-mode = "mii";
+ };
+
+ mdio-bus {
+ status = "okay";
+
+ phy0: ethernet-phy@0 {
+ phy-mode = "mii";
+ reg = <0>;
+ };
+ };
+};
+
+&wmac {
+ status = "okay";
+ ralink,mtd-eeprom = <&factory 0x2000>;
+};
--- /dev/null
+/dts-v1/;
+
+#include "rt2880.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ compatible = "airlink101,ar725w", "ralink,rt2880-soc";
+ model = "Airlink101 AR725W";
+
+ aliases {
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ led-running = &led_power;
+ led-upgrade = &led_power;
+ };
+
+ cfi@bdc00000 {
+ compatible = "cfi-flash";
+ reg = <0xbc400000 0x800000>;
+ bank-width = <2>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ reg = <0x0 0x30000>;
+ label = "u-boot";
+ read-only;
+ };
+
+ partition@30000 {
+ reg = <0x30000 0x10000>;
+ label = "u-boot-env";
+ };
+
+ factory: partition@40000 {
+ reg = <0x40000 0x10000>;
+ label = "factory";
+ read-only;
+ };
+
+ partition@50000 {
+ compatible = "denx,uimage";
+ reg = <0x50000 0x3B0000>;
+ label = "firmware";
+ };
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led_power: power {
+ label = "ar725w:green:power";
+ gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
+ };
+
+ wpsred {
+ label = "ar725w:red:wps";
+ gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+ };
+
+ wpsblue {
+ label = "ar725w:blue:wps";
+ gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ };
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ wps {
+ label = "wps";
+ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+ };
+};
+
+&gpio0 {
+ status = "okay";
+};
+
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "i2c", "spi", "uartlite";
+ ralink,function = "gpio";
+ };
+ };
+};
+
+ðernet {
+ status = "okay";
+ mtd-mac-address = <&factory 0x4>;
+
+ port@0 {
+ phy-handle = <&phy0>;
+ phy-mode = "mii";
+ };
+
+ mdio-bus {
+ status = "okay";
+
+ phy0: ethernet-phy@0 {
+ phy-mode = "mii";
+ reg = <0>;
+ };
+ };
+};
+
+&wmac {
+ status = "okay";
+ ralink,mtd-eeprom = <&factory 0>;
+};
--- /dev/null
+/dts-v1/;
+
+#include "rt2880.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "asus,rt-n15", "ralink,rt2880-soc";
+ model = "Asus RT-N15";
+
+ aliases {
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ led-running = &led_power;
+ led-upgrade = &led_power;
+ };
+
+ cfi@1f000000 {
+ compatible = "cfi-flash";
+ reg = <0x1f000000 0x800000>;
+ bank-width = <2>;
+ device-width = <2>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "uboot";
+ reg = <0x0 0x30000>;
+ read-only;
+ };
+
+ partition@30000 {
+ label = "uboot-env";
+ reg = <0x30000 0x10000>;
+ read-only;
+ };
+
+ factory: partition@40000 {
+ label = "factory";
+ reg = <0x40000 0x10000>;
+ read-only;
+ };
+
+ partition@50000 {
+ compatible = "denx,uimage";
+ label = "firmware";
+ reg = <0x50000 0x3b0000>;
+ };
+ };
+ };
+
+ rtl8366s {
+ compatible = "realtek,rtl8366s";
+ gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+ gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ wps {
+ label = "wps";
+ gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
+ linux,code = <KEY_RESTART>;
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led_power: power {
+ label = "rt-n15:blue:power";
+ gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+ };
+ };
+};
+
+&gpio0 {
+ status = "okay";
+};
+
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "i2c", "uartlite", "mdio";
+ ralink,function = "gpio";
+ };
+ };
+};
+
+ðernet {
+ status = "okay";
+ mtd-mac-address = <&factory 0x4>;
+
+ port@0 {
+ mediatek,fixed-link = <1000 1 1 1>;
+ };
+
+ mdio-bus {
+ status = "okay";
+
+ phy0: ethernet-phy@0 {
+ phy-mode = "mii";
+ reg = <0>;
+ };
+ };
+};
+
+&wmac {
+ ralink,mtd-eeprom = <&factory 0>;
+};
--- /dev/null
+/dts-v1/;
+
+#include "rt2880.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "belkin,f5d8235-v1", "ralink,rt2880-soc";
+ model = "Belkin F5D8235 v1";
+
+ aliases {
+ led-boot = &led_wired_blue;
+ led-failsafe = &led_wired_blue;
+ };
+
+ cfi@1f000000 {
+ compatible = "cfi-flash";
+ reg = <0xbc400000 0x800000>;
+ bank-width = <2>;
+ device-width = <2>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "uboot";
+ reg = <0x0 0x30000>;
+ read-only;
+ };
+
+ partition@30000 {
+ label = "uboot-env";
+ reg = <0x30000 0x10000>;
+ read-only;
+ };
+
+ factory: partition@40000 {
+ label = "factory";
+ reg = <0x40000 0x10000>;
+ read-only;
+ };
+
+ partition@50000 {
+ compatible = "denx,uimage";
+ label = "firmware";
+ reg = <0x50000 0x7b0000>;
+ };
+ };
+ };
+
+ rtl8366s {
+ compatible = "realtek,rtl8366s";
+ gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+ gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
+
+ realtek,initvals = <
+ 0x0242 0x02BF
+ 0x0245 0x02BF
+ 0x0248 0x02BF
+ 0x024B 0x02BF
+ 0x024E 0x02BF
+ 0x0251 0x02BF
+ 0x0254 0x0A3F
+ 0x0256 0x0A3F
+ 0x0258 0x0A3F
+ 0x025A 0x0A3F
+ 0x025C 0x0A3F
+ 0x025E 0x0A3F
+ 0x0263 0x007C
+ 0x0100 0x0004
+ 0xBE5B 0x3500
+ 0x800E 0x200F
+ 0xBE1D 0x0F00
+ 0x8001 0x5011
+ 0x800A 0xA2F4
+ 0x800B 0x17A3
+ 0xBE4B 0x17A3
+ 0xBE41 0x5011
+ 0xBE17 0x2100
+ 0x8000 0x8304
+ 0xBE40 0x8304
+ 0xBE4A 0xA2F4
+ 0x800C 0xA8D5
+ 0x8014 0x5500
+ 0x8015 0x0004
+ 0xBE4C 0xA8D5
+ 0xBE59 0x0008
+ 0xBE09 0x0E00
+ 0xBE36 0x1036
+ 0xBE37 0x1036
+ 0x800D 0x00FF
+ 0xBE4D 0x00FF
+ >;
+
+ realtek,green-ethernet-features;
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ wps {
+ label = "wps";
+ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ internet {
+ label = "f5d8235-v1:blue:internet";
+ gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
+ };
+
+ internet2 {
+ label = "f5d8235-v1:amber:internet";
+ gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+ };
+
+ modem {
+ label = "f5d8235-v1:blue:modem";
+ gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ };
+
+ modem2 {
+ label = "f5d8235-v1:amber:modem";
+ gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
+ };
+
+ router {
+ label = "f5d8235-v1:blue:router";
+ gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
+ };
+
+ storage {
+ label = "f5d8235-v1:blue:storage";
+ gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
+ };
+
+ storage2 {
+ label = "f5d8235-v1:amber:storage";
+ gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+ };
+
+ security {
+ label = "f5d8235-v1:blue:security";
+ gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+ };
+
+ security2 {
+ label = "f5d8235-v1:amber:security";
+ gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
+ };
+
+ led_wired_blue: wired {
+ label = "f5d8235-v1:blue:wired";
+ gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
+ };
+
+ wired2 {
+ label = "f5d8235-v1:amber:wired";
+ gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
+ };
+
+ wireless {
+ label = "f5d8235-v1:blue:wireless";
+ gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
+ };
+
+ wireless2 {
+ label = "f5d8235-v1:amber:wireless";
+ gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
+ };
+ };
+};
+
+&gpio0 {
+ status = "okay";
+};
+
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "spi", "i2c", "jtag", "mdio", "uartlite";
+ ralink,function = "gpio";
+ };
+ };
+};
+
+ðernet {
+ status = "okay";
+ mtd-mac-address = <&factory 0x4>;
+
+ port@0 {
+ mediatek,fixed-link = <1000 1 1 1>;
+ };
+};
+
+&pci {
+ status = "okay";
+
+ usb@11,0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "pci1033,0035";
+ reg = <0x8800 0 0 0 0>;
+
+ ohci_port1: port@1 {
+ reg = <1>;
+ #trigger-source-cells = <0>;
+ };
+ };
+
+ usb@11,1 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "pci1033,00e0";
+ reg = <0x8900 0 0 0 0>;
+
+ ehci_port1: port@1 {
+ reg = <1>;
+ #trigger-source-cells = <0>;
+ };
+ };
+};
+
+&wmac {
+ status = "okay";
+ ralink,mtd-eeprom = <&factory 0x0>;
+};
--- /dev/null
+/dts-v1/;
+
+#include "rt2880.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "buffalo,wli-tx4-ag300n", "ralink,rt2880-soc";
+ model = "Buffalo WLI-TX4-AG300N";
+
+ aliases {
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ led-running = &led_power;
+ led-upgrade = &led_power;
+ };
+
+ cfi@1f000000 {
+ compatible = "cfi-flash";
+ reg = <0x1f000000 0x800000>;
+ bank-width = <2>;
+ device-width = <2>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "uboot";
+ reg = <0x0 0x30000>;
+ read-only;
+ };
+
+ partition@30000 {
+ label = "uboot-env";
+ reg = <0x30000 0x10000>;
+ read-only;
+ };
+
+ factory: partition@40000 {
+ label = "factory";
+ reg = <0x40000 0x10000>;
+ read-only;
+ };
+
+ partition@50000 {
+ compatible = "denx,uimage";
+ label = "firmware";
+ reg = <0x50000 0x3b0000>;
+ };
+ };
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ wps {
+ label = "wps";
+ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
+
+ bandwidth {
+ label = "bandwidth";
+ gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
+ linux,code = <KEY_RESTART>;
+ };
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ diag {
+ label = "wli-tx4-ag300n:red:diag";
+ gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+ };
+
+ led_power: power {
+ label = "wli-tx4-ag300n:blue:power";
+ gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
+ };
+
+ security {
+ label = "wli-tx4-ag300n:blue:security";
+ gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ };
+ };
+};
+
+&gpio0 {
+ status = "okay";
+};
+
+ðernet {
+ status = "okay";
+ mtd-mac-address = <&factory 0x4>;
+
+ port@0 {
+ mediatek,fixed-link = <100 1 1 1>;
+ };
+
+ mdio-bus {
+ status = "okay";
+
+ phy0: ethernet-phy@0 {
+ phy-mode = "mii";
+ reg = <0>;
+ };
+ };
+};
+
+&wmac {
+ ralink,mtd-eeprom = <&factory 0>;
+};
--- /dev/null
+/dts-v1/;
+
+#include "rt2880.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "buffalo,wzr-agl300nh", "ralink,rt2880-soc";
+ model = "Buffalo WZR-AGL300NH";
+
+ aliases {
+ led-boot = &led_router;
+ led-failsafe = &led_router;
+ led-running = &led_router;
+ led-upgrade = &led_router;
+ };
+
+ cfi@1f000000 {
+ compatible = "cfi-flash";
+ reg = <0x1f000000 0x800000>;
+ bank-width = <2>;
+ device-width = <2>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "uboot";
+ reg = <0x0 0x30000>;
+ read-only;
+ };
+
+ partition@30000 {
+ label = "uboot-env";
+ reg = <0x30000 0x10000>;
+ read-only;
+ };
+
+ factory: partition@40000 {
+ label = "factory";
+ reg = <0x40000 0x10000>;
+ read-only;
+ };
+
+ partition@50000 {
+ compatible = "denx,uimage";
+ label = "firmware";
+ reg = <0x50000 0x3b0000>;
+ };
+ };
+ };
+
+ rtl8366s {
+ compatible = "realtek,rtl8366s";
+ gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+ gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ wps {
+ label = "wps";
+ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
+
+ router {
+ label = "router_switch";
+ gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
+ linux,code = <BTN_0>;
+ };
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led_router: router {
+ label = "wzr-agl300nh:green:router";
+ gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+ };
+
+ diag {
+ label = "wzr-agl300nh:red:diag";
+ gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
+ };
+
+ security_g {
+ label = "wzr-agl300nh:orange:security_g";
+ gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+ };
+
+ security_n {
+ label = "wzr-agl300nh:orange:security_n";
+ gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ };
+ };
+};
+
+&gpio0 {
+ status = "okay";
+};
+
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "i2c", "uartlite", "mdio";
+ ralink,function = "gpio";
+ };
+ };
+};
+
+ðernet {
+ status = "okay";
+ mtd-mac-address = <&factory 0x4>;
+
+ port@0 {
+ mediatek,fixed-link = <1000 1 1 1>;
+ };
+
+ mdio-bus {
+ status = "okay";
+
+ phy0: ethernet-phy@0 {
+ phy-mode = "mii";
+ reg = <0>;
+ };
+ };
+};
+
+&pci {
+ status = "okay";
+};
+
+&wmac {
+ ralink,mtd-eeprom = <&factory 0>;
+};
--- /dev/null
+/dts-v1/;
+
+#include "rt2880.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ compatible = "dlink,dap-1522-a1", "ralink,rt2880-soc";
+ model = "D-Link DAP-1522 A1";
+
+ aliases {
+ led-boot = &led_status;
+ led-failsafe = &led_status;
+ led-running = &led_status;
+ led-upgrade = &led_status;
+ };
+
+ cfi@bc400000 {
+ compatible = "cfi-flash";
+ reg = <0xbc400000 0x800000>;
+ bank-width = <2>;
+ device-width = <2>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "uboot";
+ reg = <0x0 0x30000>;
+ read-only;
+ };
+
+ factory: partition@30000 {
+ label = "factory";
+ reg = <0x30000 0x10000>;
+ read-only;
+ };
+
+ partition@40000 {
+ compatible = "wrg";
+ label = "firmware";
+ reg = <0x40000 0x3a0000>;
+ };
+ };
+ };
+
+ rtl8366s {
+ compatible = "realtek,rtl8366s";
+ gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+ gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+
+ wps {
+ label = "wps";
+ gpios = <&gpio2 16 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
+
+ ap {
+ label = "ap";
+ gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
+ linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
+ };
+
+ bridge {
+ label = "bridge";
+ gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
+ linux,code = <BTN_1>;
+ linux,input-type = <EV_SW>;
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ wps {
+ label = "dap-1522-a1:blue:wps";
+ gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
+ };
+
+ ap {
+ label = "dap-1522-a1:blue:ap";
+ gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
+ };
+
+ sta {
+ label = "dap-1522-a1:red:sta";
+ gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
+ };
+
+ led_status: status {
+ label = "dap-1522-a1:blue:status";
+ gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
+ };
+ };
+};
+
+&gpio0 {
+ status = "okay";
+};
+
+&gpio2 {
+ status = "okay";
+};
+
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "i2c", "uartlite", "pci";
+ ralink,function = "gpio";
+ };
+ };
+};
+
+ðernet {
+ status = "okay";
+ mtd-mac-address = <&factory 0x2004>;
+
+ port@0 {
+ mediatek,fixed-link = <1000 1 1 1>;
+ };
+
+ mdio-bus {
+ status = "okay";
+
+ phy0: ethernet-phy@0 {
+ phy-mode = "mii";
+ reg = <0>;
+ };
+ };
+};
+
+&wmac {
+ ralink,mtd-eeprom = <&factory 0x2000>;
+};
--- /dev/null
+/dts-v1/;
+
+#include "rt2880.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ compatible = "ralink,v11st-fe", "ralink,rt2880-soc";
+ model = "Ralink V11ST-FE";
+
+ aliases {
+ led-boot = &led_status;
+ led-failsafe = &led_status;
+ led-running = &led_status;
+ led-upgrade = &led_status;
+ };
+
+ nor-flash@1c000000 {
+ compatible = "cfi-flash";
+ reg = <0x1c000000 0x800000>;
+ bank-width = <2>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ reg = <0x0 0x0030000>;
+ label = "u-boot";
+ read-only;
+ };
+
+ partition@30000 {
+ reg = <0x00030000 0x00010000>;
+ label = "u-boot-env";
+ read-only;
+ };
+
+ factory: partition@40000 {
+ reg = <0x00040000 0x00010000>;
+ label = "factory";
+ read-only;
+ };
+
+ partition@50000 {
+ compatible = "denx,uimage";
+ reg = <0x00050000 0x003b0000>;
+ label = "firmware";
+ };
+ };
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ wps {
+ label = "wps";
+ gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led_status: status {
+ label = "v11st-fe:green:status";
+ gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
+ };
+ };
+};
+
+&gpio0 {
+ status = "okay";
+};
+
+ðernet {
+ status = "okay";
+};
+
+&pci {
+ status = "okay";
+};
+
+&wmac {
+ ralink,mtd-eeprom = <&factory 0>;
+};
--- /dev/null
+/dts-v1/;
+
+#include "rt3883.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ compatible = "asus,rt-n56u", "ralink,rt3883-soc";
+ model = "Asus RT-N56U";
+
+ aliases {
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ led-running = &led_power;
+ led-upgrade = &led_power;
+ };
+
+ nor-flash@1c000000 {
+ compatible = "cfi-flash";
+ reg = <0x1c000000 0x800000>;
+ bank-width = <2>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ reg = <0x0 0x0030000>;
+ label = "u-boot";
+ read-only;
+ };
+
+ partition@30000 {
+ reg = <0x00030000 0x00010000>;
+ label = "u-boot-env";
+ read-only;
+ };
+
+ factory: partition@40000 {
+ reg = <0x00040000 0x00010000>;
+ label = "factory";
+ read-only;
+ };
+
+ partition@50000 {
+ compatible = "denx,uimage";
+ reg = <0x00050000 0x007b0000>;
+ label = "firmware";
+ };
+ };
+ };
+
+ rtl8367 {
+ compatible = "realtek,rtl8367";
+ gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+ gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
+ realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+
+ wps {
+ label = "wps";
+ gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led_power: power {
+ label = "rt-n56u:blue:power";
+ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+ };
+
+ lan {
+ label = "rt-n56u:blue:lan";
+ gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
+ };
+
+ wan {
+ label = "rt-n56u:blue:wan";
+ gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
+ };
+
+ usb {
+ label = "rt-n56u:blue:usb";
+ gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
+ };
+ };
+};
+
+&gpio1 {
+ status = "okay";
+};
+
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "spi", "i2c", "jtag", "uartf";
+ ralink,function = "gpio";
+ };
+ };
+};
+
+ðernet {
+ mtd-mac-address = <&factory 0x4>;
+
+ port@0 {
+ mediatek,fixed-link = <1000 1 1 1>;
+ };
+};
+
+&pci {
+ status = "okay";
+};
+
+&pci1 {
+ status = "okay";
+
+ wifi@0,0 {
+ compatible = "pci1814,3091";
+ reg = <0x10000 0 0 0 0>;
+ ralink,mtd-eeprom = <&factory 0x8000>;
+ };
+};
+
+&wmac {
+ status = "okay";
+ ralink,2ghz = <0>;
+ ralink,mtd-eeprom = <&factory 0>;
+};
+
+&ehci {
+ status = "okay";
+};
+
+&ohci {
+ status = "okay";
+};
--- /dev/null
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include "rt3883_belkin_f9k110x.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ compatible = "belkin,f9k1109v1", "ralink,rt3883-soc";
+ model = "Belkin F9K1109 Version 1.0";
+
+ aliases {
+ led-boot = &led_status_amber;
+ led-failsafe = &led_status_amber;
+ led-running = &led_status_blue;
+ led-upgrade = &led_status_amber;
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led_status_amber: internet_amber {
+ label = "f9k1109v1:amber:internet";
+ gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ };
+
+ led_status_blue: internet_blue {
+ label = "f9k1109v1:blue:internet";
+ gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
+ };
+
+ usb1 {
+ label = "f9k1109v1:green:usb1";
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+ };
+
+ usb2 {
+ label = "f9k1109v1:green:usb2";
+ gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+ };
+
+ wps_amber {
+ label = "f9k1109v1:amber:wps";
+ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+ };
+
+ wps_blue {
+ label = "f9k1109v1:blue:wps";
+ gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+ };
+
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+
+ wps {
+ label = "wps";
+ gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
+ };
+};
--- /dev/null
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "rt3883.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ compatible = "ralink,rt3883-soc";
+
+ rtl8367b {
+ compatible = "realtek,rtl8367b";
+ gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+ gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
+ realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
+ };
+
+};
+
+&gpio1 {
+ status = "okay";
+};
+
+&spi0 {
+ status = "okay";
+
+ 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 = "uboot";
+ reg = <0x0 0x30000>;
+ read-only;
+ };
+
+ partition@30000 {
+ label = "uboot-env";
+ reg = <0x30000 0x10000>;
+ read-only;
+ };
+
+ factory: partition@40000 {
+ label = "factory";
+ reg = <0x40000 0x10000>;
+ read-only;
+ };
+
+ partition@50000 {
+ compatible = "denx,uimage";
+ label = "firmware";
+ reg = <0x50000 0x7a0000>;
+ };
+
+ partition@7f0000 {
+ label = "user-cfg";
+ reg = <0x7f0000 0x10000>;
+ read-only;
+ };
+ };
+ };
+};
+
+ðernet {
+ port@0 {
+ mediatek,fixed-link = <1000 1 1 1>;
+ phy-mode = "rgmii";
+ };
+};
+
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "i2c", "jtag", "uartf";
+ ralink,function = "gpio";
+ };
+ };
+};
+
+&wmac {
+ status = "okay";
+ ralink,mtd-eeprom = <&factory 0>;
+};
+
+&pci {
+ status = "okay";
+};
+
+&pci1 {
+ status = "okay";
+
+ wifi@1,0 {
+ compatible = "pci1814,3091";
+ reg = <0x10000 0 0 0 0>;
+ ralink,5ghz = <0>;
+ ralink,mtd-eeprom = <&factory 0x8000>;
+ };
+};
+
+&ehci {
+ status = "okay";
+};
+
+&ohci {
+ status = "okay";
+};
--- /dev/null
+/dts-v1/;
+
+#include "rt3883.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ compatible = "dlink,dir-645", "ralink,rt3883-soc";
+ model = "D-Link DIR-645";
+
+ aliases {
+ led-boot = &led_wps;
+ led-failsafe = &led_wps;
+ led-running = &led_wps;
+ led-upgrade = &led_wps;
+ };
+
+ rtl8367b {
+ compatible = "realtek,rtl8367b";
+ gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+ gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
+ realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
+ linux,code = <KEY_RESTART>;
+ };
+
+ wps {
+ label = "wps";
+ gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ inet {
+ label = "dir-645:green:inet";
+ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+ };
+
+ led_wps: wps {
+ label = "dir-645:green:wps";
+ gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
+ };
+ };
+
+ gpio_export {
+ compatible = "gpio-export";
+ #size-cells = <0>;
+
+ usb {
+ gpio-export,name = "usb";
+ gpio-export,output = <1>;
+ gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
+ };
+ };
+};
+
+&gpio1 {
+ status = "okay";
+};
+
+&spi0 {
+ status = "okay";
+
+ m25p80@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <25000000>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "uboot";
+ reg = <0x0 0x30000>;
+ read-only;
+ };
+
+ partition@30000 {
+ label = "uboot-env";
+ reg = <0x30000 0x4000>;
+ read-only;
+ };
+
+ factory: partition@34000 {
+ label = "factory";
+ reg = <0x34000 0x4000>;
+ read-only;
+ };
+
+ partition@38000 {
+ label = "nvram";
+ reg = <0x38000 0x8000>;
+ read-only;
+ };
+
+ partition@40000 {
+ label = "devdata";
+ reg = <0x40000 0x10000>;
+ };
+
+ partition@50000 {
+ compatible = "seama";
+ label = "firmware";
+ reg = <0x50000 0x7b0000>;
+ };
+ };
+ };
+};
+
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "i2c", "jtag", "uartf";
+ ralink,function = "gpio";
+ };
+ };
+};
+
+ðernet {
+ mtd-mac-address = <&factory 0x4>;
+
+ port@0 {
+ mediatek,fixed-link = <1000 1 1 0>;
+ };
+};
+
+&wmac {
+ ralink,5ghz = <0>;
+ ralink,mtd-eeprom = <&factory 0>;
+};
+
+&ehci {
+ status = "okay";
+};
+
+&ohci {
+ status = "okay";
+};
--- /dev/null
+/dts-v1/;
+
+#include "rt3883.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ compatible = "edimax,br-6475nd", "ralink,rt3883-soc";
+ model = "Edimax BR-6475nD";
+
+ aliases {
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ led-running = &led_power;
+ led-upgrade = &led_power;
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+
+ rfkill {
+ label = "rfkill";
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+ linux,input-type = <EV_SW>;
+ linux,code = <KEY_RFKILL>;
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led_power: power {
+ label = "br-6475nd:green:power";
+ gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+ };
+
+ wlan {
+ label = "br-6475nd:amber:wlan";
+ gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+ };
+
+ wlan_5ghz {
+ label = "br-6475nd:amber:wlan_5ghz";
+ gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+ };
+ };
+
+ nor-flash@1c000000 {
+ compatible = "cfi-flash";
+ reg = <0x1c000000 0x800000>;
+ bank-width = <2>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ reg = <0x00000000 0x00030000>;
+ label = "u-boot";
+ read-only;
+ };
+
+ partition@30000 {
+ reg = <0x00030000 0x00010000>;
+ label = "nvram";
+ read-only;
+ };
+
+ factory: partition@40000 {
+ reg = <0x00040000 0x00010000>;
+ label = "factory";
+ read-only;
+ };
+
+ devdata: partition@50000 {
+ reg = <0x00050000 0x00020000>;
+ label = "devdata";
+ read-only;
+ };
+
+ partition@70000 {
+ compatible = "edimax,uimage";
+ reg = <0x00070000 0x00790000>;
+ label = "firmware";
+ };
+ };
+ };
+
+ rtl8367 {
+ compatible = "realtek,rtl8367";
+ gpio-sda = <&gpio0 5 GPIO_ACTIVE_HIGH>;
+ gpio-sck = <&gpio0 4 GPIO_ACTIVE_HIGH>;
+ realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
+ };
+
+ /*
+ * Unclear if this is the correct gpio setup; the USB ports are
+ * unpopulated on a stock BR-6475nD, even though the hardware exists
+ * and the headers are there.
+ */
+ /*
+ gpio_export {
+ compatible = "gpio-export";
+ #size-cells = <0>;
+
+ usb {
+ gpio-export,name="usb";
+ gpio-export,output=<0>;
+ gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
+ };
+ };
+ */
+};
+
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "spi", "jtag", "uartf";
+ ralink,function = "gpio";
+ };
+ };
+};
+
+&timer {
+ status = "okay";
+};
+
+&gpio1 {
+ status = "okay";
+};
+
+&uartlite {
+ status = "okay";
+};
+
+ðernet {
+ status = "okay";
+ mtd-mac-address = <&devdata 0x0d>;
+
+ port@0 {
+ mediatek,fixed-link = <1000 1 1 1>;
+ };
+};
+
+&wmac {
+ status = "okay";
+ ralink,mtd-eeprom = <&factory 0>;
+};
+
+&pci {
+ status = "okay";
+};
+
+&pci1 {
+ status = "okay";
+
+ wifi@0,0 {
+ compatible = "pci0,0";
+ reg = <0x10000 0 0 0 0>;
+ ralink,5ghz = <0>;
+ ralink,mtd-eeprom = <&factory 0x8000>;
+ };
+};
+
+&ehci {
+ status = "okay";
+};
+
+&ohci {
+ status = "okay";
+};
--- /dev/null
+/dts-v1/;
+
+#include "rt3883.dtsi"
+
+/ {
+ compatible = "loewe,wmdr-143n", "ralink,rt3883-soc";
+ model = "Loewe WMDR-143N";
+};
+
+&spi0 {
+ status = "okay";
+
+ m25p80@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 = <0x0 0x30000>;
+ read-only;
+ };
+
+ partition@30000 {
+ label = "u-boot-env";
+ reg = <0x30000 0x00010000>;
+ read-only;
+ };
+
+ factory: partition@40000 {
+ label = "factory";
+ reg = <0x40000 0x10000>;
+ read-only;
+ };
+
+ partition@50000 {
+ compatible = "denx,uimage";
+ label = "firmware";
+ reg = <0x50000 0x7b0000>;
+ };
+ };
+ };
+};
+
+ðernet {
+ port@0 {
+ phy-handle = <&phy0>;
+ phy-mode = "mii";
+ };
+ mdio-bus {
+ status = "okay";
+
+ phy0: ethernet-phy@0 {
+ reg = <0>;
+ phy-mode = "mii";
+ };
+ };
+};
+
+&wmac {
+ status = "okay";
+ ralink,mtd-eeprom = <&factory 0>;
+ mtd-mac-address = <&factory 0x4>;
+};
--- /dev/null
+/dts-v1/;
+
+#include "rt3883.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ compatible = "omnima,hpm", "ralink,rt3883-soc";
+ model = "Omnima HPM";
+
+ aliases {
+ led-boot = &led_status;
+ led-failsafe = &led_status;
+ led-running = &led_status;
+ led-upgrade = &led_status;
+ };
+
+ chosen {
+ bootargs = "console=ttyS0,115200";
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
+ linux,code = <KEY_RESTART>;
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ power {
+ label = "hpm:orange:power";
+ gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+ default-state = "on";
+ };
+
+ led_status: status {
+ label = "hpm:green:status";
+ gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
+ default-state = "on";
+ };
+
+ eth {
+ label = "hpm:green:eth";
+ gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
+ };
+
+ eth2 {
+ label = "hpm:red:eth";
+ gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+ };
+
+ wifi {
+ label = "hpm:green:wifi";
+ gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
+ };
+
+ wifi2 {
+ label = "hpm:red:wifi";
+ gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
+ };
+ };
+
+ gpio_export {
+ compatible = "gpio-export";
+ #size-cells = <0>;
+ /* gpio 12 and 13 handle the OC input */
+
+ usb0 {
+ gpio-export,name = "usb0";
+ gpio-export,output = <1>;
+ gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
+ };
+
+ usb1 {
+ gpio-export,name = "usb1";
+ gpio-export,output = <1>;
+ gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+ };
+ };
+};
+
+&spi0 {
+ status = "okay";
+
+ m25p80@0 {
+ compatible = "jedec,spi-nor";
+ spi-max-frequency = <25000000>;
+ reg = <0>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ reg = <0x0 0x0030000>;
+ label = "u-boot";
+ read-only;
+ };
+
+ partition@30000 {
+ reg = <0x00030000 0x00010000>;
+ label = "config";
+ read-only;
+ };
+
+ factory: partition@40000 {
+ reg = <0x00040000 0x00010000>;
+ label = "factory";
+ read-only;
+ };
+
+ partition@50000 {
+ compatible = "denx,uimage";
+ reg = <0x00050000 0x00fb0000>;
+ label = "firmware";
+ };
+ };
+ };
+};
+
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "i2c", "jtag", "uartf";
+ ralink,function = "gpio";
+ };
+ };
+};
+
+ðernet {
+ phy-handle = <&phy0>;
+ phy-mode = "rgmii";
+ mtd-mac-address = <&factory 0x28>;
+
+ mdio-bus {
+ status = "okay";
+
+ phy0: ethernet-phy@4 {
+ reg = <4>;
+ };
+ };
+};
+
+&wmac {
+ ralink,mtd-eeprom = <&factory 0>;
+};
+
+&ehci {
+ status = "okay";
+};
+
+&ohci {
+ status = "okay";
+};
--- /dev/null
+/dts-v1/;
+
+#include "rt3883.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ compatible = "samsung,cy-swr1100", "ralink,rt3883-soc";
+ model = "Samsung CY-SWR1100";
+
+ aliases {
+ led-boot = &led_wps;
+ led-failsafe = &led_wps;
+ };
+
+ nor-flash@1c000000 {
+ compatible = "cfi-flash";
+ reg = <0x1c000000 0x800000>;
+ bank-width = <2>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "uboot";
+ reg = <0x0 0x30000>;
+ read-only;
+ };
+
+ partition@30000 {
+ label = "uboot-env";
+ reg = <0x30000 0x4000>;
+ read-only;
+ };
+
+ factory: partition@34000 {
+ label = "factory";
+ reg = <0x34000 0x4000>;
+ read-only;
+ };
+
+ partition@38000 {
+ label = "nvram";
+ reg = <0x38000 0x8000>;
+ read-only;
+ };
+
+ partition@40000 {
+ label = "devdata";
+ reg = <0x40000 0x10000>;
+ };
+
+ partition@50000 {
+ compatible = "seama";
+ label = "firmware";
+ reg = <0x50000 0x7b0000>;
+ };
+ };
+ };
+
+ rtl8367 {
+ compatible = "realtek,rtl8367";
+ gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+ gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
+ realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+
+ wps {
+ label = "wps";
+ gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led_wps: wps {
+ label = "cy-swr1100:blue:wps";
+ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+ };
+
+ usb {
+ label = "cy-swr1100:blue:usb";
+ gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
+ };
+ };
+};
+
+&gpio1 {
+ status = "okay";
+};
+
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "i2c", "spi";
+ ralink,function = "gpio";
+ };
+ };
+};
+
+ðernet {
+ port@0 {
+ mediatek,fixed-link = <1000 1 1 1>;
+ phy-mode = "rgmii";
+ };
+};
+
+&pci {
+ status = "okay";
+};
+
+&pci1 {
+ status = "okay";
+
+ wifi@0,0 {
+ compatible = "pci0,0";
+ reg = <0x10000 0 0 0 0>;
+ ralink,5ghz = <0>;
+ ralink,mtd-eeprom = <&factory 0x2000>;
+ };
+};
+
+&wmac {
+ status = "okay";
+ ralink,2ghz = <0>;
+ ralink,mtd-eeprom = <&factory 0>;
+};
+
+&ehci {
+ status = "okay";
+};
+
+&ohci {
+ status = "okay";
+};
--- /dev/null
+/dts-v1/;
+
+#include "rt3883.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ compatible = "sitecom,wlr-6000", "ralink,rt3883-soc";
+ model = "Sitecom WLR-6000";
+
+ aliases {
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ led-running = &led_power;
+ led-upgrade = &led_power;
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <20>;
+
+ reset {
+ label = "reset";
+ gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led_power: power {
+ label = "wlr-6000:red:power";
+ gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+ };
+
+ ops {
+ label = "wlr-6000:white:ops";
+ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+ };
+ };
+
+ gpio_export {
+ compatible = "gpio-export";
+ #size-cells = <0>;
+
+ usb {
+ gpio-export,name = "usb";
+ gpio-export,output = <1>;
+ gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
+ };
+ };
+};
+
+&gpio1 {
+ status = "okay";
+};
+
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "i2c", "jtag", "uartf";
+ ralink,function = "gpio";
+ };
+ };
+};
+
+ðernet {
+ status = "okay";
+ mtd-mac-address = <&factory 0x8004>;
+ mtd-mac-address-increment = <1>;
+
+ port@0 {
+ phy-handle = <&phy0>;
+ phy-mode = "rgmii";
+ };
+
+ mdio-bus {
+ status = "okay";
+
+ phy0: ethernet-phy@0 {
+ reg = <0>;
+ phy-mode = "rgmii";
+
+ qca,ar8327-initvals = <
+ 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
+ 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
+ 0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */
+ 0x50 0xc437c437 /* LED Control Register 0 */
+ 0x54 0xc337c337 /* LED Control Register 1 */
+ 0x58 0x00000000 /* LED Control Register 2 */
+ 0x5c 0x03ffff00 /* LED Control Register 3 */
+ 0x7c 0x0000007e /* PORT0_STATUS */
+ 0x94 0x0000007e /* PORT6 STATUS */
+ >;
+ };
+ };
+};
+
+&spi0 {
+ status = "okay";
+
+ m25p80@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <8600000>;
+ m25p,fast-read;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x0 0x30000>;
+ read-only;
+ };
+
+ partition@30000 {
+ label = "u-boot-env";
+ reg = <0x30000 0x10000>;
+ read-only;
+ };
+
+ factory: partition@40000 {
+ label = "factory";
+ reg = <0x40000 0x10000>;
+ read-only;
+ };
+
+ partition@50000 {
+ compatible = "denx,uimage";
+ label = "firmware";
+ reg = <0x50000 0x713000>;
+ };
+
+ partition@763000 {
+ label = "manufacture";
+ reg = <0x763000 0x7D000>;
+ read-only;
+ };
+
+ partition@7E0000 {
+ label = "backup";
+ reg = <0x7E0000 0x10000>;
+ read-only;
+ };
+
+ partition@7F0000 {
+ label = "storage";
+ reg = <0x7F0000 0x10000>;
+ read-only;
+ };
+ };
+ };
+};
+
+&pci {
+ status = "okay";
+};
+
+&pci1 {
+ status = "okay";
+
+ wifi@0,0 {
+ compatible = "pci1814,3091";
+ reg = <0x10000 0 0 0 0>;
+ ralink,mtd-eeprom = <&factory 0x8000>;
+ };
+};
+
+&wmac {
+ status = "okay";
+ ralink,2ghz = <0>;
+ ralink,mtd-eeprom = <&factory 0x0>;
+};
+
+&ehci {
+ status = "okay";
+};
+
+&ohci {
+ status = "okay";
+};
--- /dev/null
+/dts-v1/;
+
+#include "rt3883.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ compatible = "trendnet,tew-691gr", "ralink,rt3883-soc";
+ model = "TRENDnet TEW-691GR";
+
+ aliases {
+ led-boot = &led_wps;
+ led-failsafe = &led_wps;
+ led-running = &led_wps;
+ led-upgrade = &led_wps;
+ };
+
+ nor-flash@1c000000 {
+ compatible = "cfi-flash";
+ reg = <0x1c000000 0x800000>;
+ bank-width = <2>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ reg = <0x0 0x0030000>;
+ label = "u-boot";
+ read-only;
+ };
+
+ partition@30000 {
+ reg = <0x00030000 0x00010000>;
+ label = "u-boot-env";
+ read-only;
+ };
+
+ factory: partition@40000 {
+ reg = <0x00040000 0x00010000>;
+ label = "factory";
+ read-only;
+ };
+
+ partition@50000 {
+ compatible = "denx,uimage";
+ reg = <0x00050000 0x007b0000>;
+ label = "firmware";
+ };
+ };
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+
+ wps {
+ label = "wps";
+ gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
+
+ rfkill {
+ label = "rfkill";
+ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RFKILL>;
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led_wps: wps {
+ label = "tew-691gr:green:wps";
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+ };
+ };
+};
+
+&gpio1 {
+ status = "okay";
+};
+
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "spi", "i2c", "jtag", "uartf";
+ ralink,function = "gpio";
+ };
+ };
+};
+
+ðernet {
+ mtd-mac-address = <&factory 0x4>;
+
+ port@0 {
+ phy-handle = <&phy0>;
+ phy-mode = "rgmii";
+ };
+
+ mdio-bus {
+ status = "okay";
+
+ phy0: ethernet-phy@0 {
+ reg = <0>;
+ phy-mode = "rgmii";
+ };
+ };
+};
+
+&wmac {
+ status = "okay";
+ ralink,mtd-eeprom = <&factory 0x0>;
+ ralink,5ghz = <0>;
+ mtd-mac-address = <&factory 0x4>;
+ mtd-mac-address-increment = <1>;
+};
--- /dev/null
+/dts-v1/;
+
+#include "rt3883.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ compatible = "trendnet,tew-692gr", "ralink,rt3883-soc";
+ model = "TRENDnet TEW-692GR";
+
+ aliases {
+ led-boot = &led_wps_green;
+ led-failsafe = &led_wps_green;
+ led-running = &led_wps_green;
+ led-upgrade = &led_wps_green;
+ };
+
+ nor-flash@1c000000 {
+ compatible = "cfi-flash";
+ reg = <0x1c000000 0x800000>;
+ bank-width = <2>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ reg = <0x0 0x0030000>;
+ label = "u-boot";
+ read-only;
+ };
+
+ partition@30000 {
+ reg = <0x00030000 0x00010000>;
+ label = "u-boot-env";
+ read-only;
+ };
+
+ factory: partition@40000 {
+ reg = <0x00040000 0x00010000>;
+ label = "factory";
+ read-only;
+ };
+
+ partition@50000 {
+ compatible = "denx,uimage";
+ reg = <0x00050000 0x007b0000>;
+ label = "firmware";
+ };
+ };
+ };
+
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <100>;
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+
+ wps {
+ label = "wps";
+ gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ wps {
+ label = "tew-692gr:orange:wps";
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+ };
+
+ led_wps_green: wps2 {
+ label = "tew-692gr:green:wps";
+ gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
+ };
+ };
+};
+
+&gpio1 {
+ status = "okay";
+};
+
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "spi", "i2c", "jtag", "uartf";
+ ralink,function = "gpio";
+ };
+ };
+};
+
+ðernet {
+ status = "okay";
+ mtd-mac-address = <&factory 0x4>;
+
+ port@0 {
+ phy-handle = <&phy0>;
+ phy-mode = "rgmii";
+ };
+
+ mdio-bus {
+ status = "okay";
+
+ phy0: ethernet-phy@0 {
+ reg = <0>;
+ phy-mode = "rgmii";
+
+ qca,ar8327-initvals = <
+ 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
+ 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
+ 0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */
+ 0x50 0xc437c437 /* LED Control Register 0 */
+ 0x54 0xc337c337 /* LED Control Register 1 */
+ 0x58 0x00000000 /* LED Control Register 2 */
+ 0x5c 0x03ffff00 /* LED Control Register 3 */
+ 0x7c 0x0000007e /* PORT0_STATUS */
+ 0x94 0x0000007e /* PORT6 STATUS */
+ >;
+ };
+ };
+};
+
+&pci {
+ status = "okay";
+};
+
+&pci1 {
+ status = "okay";
+
+ wifi@0,0 {
+ compatible = "pci0,0";
+ reg = < 0x10000 0 0 0 0 >;
+ ralink,2ghz = <0>;
+ };
+};
+
+&wmac {
+ status = "okay";
+ ralink,mtd-eeprom = <&factory 0x0>;
+ ralink,5ghz = <0>;
+ mtd-mac-address = <&factory 0x4>;
+ mtd-mac-address-increment = <3>;
+};
endef
define Device/airlink101_ar670w
- DTS := AR670W
+ MTK_SOC := rt2880
BLOCKSIZE := 64k
DEVICE_VENDOR := Airlink
DEVICE_MODEL := AR670W
TARGET_DEVICES += airlink101_ar670w
define Device/airlink101_ar725w
- DTS := AR725W
+ MTK_SOC := rt2880
DEVICE_VENDOR := Airlink
DEVICE_MODEL := AR725W
IMAGES += factory.bin
TARGET_DEVICES += airlink101_ar725w
define Device/dlink_dap-1522-a1
- DTS := DAP-1522-A1
+ MTK_SOC := rt2880
BLOCKSIZE := 64k
IMAGE_SIZE := 3801088
DEVICE_VENDOR := D-Link
TARGET_DEVICES += dlink_dap-1522-a1
define Device/belkin_f5d8235-v1
- DTS := F5D8235_V1
+ MTK_SOC := rt2880
IMAGE_SIZE := 7744k
DEVICE_VENDOR := Belkin
DEVICE_MODEL := F5D8235
TARGET_DEVICES += belkin_f5d8235-v1
define Device/asus_rt-n15
- DTS := RT-N15
+ MTK_SOC := rt2880
BLOCKSIZE := 64k
IMAGE_SIZE := $(ralink_default_fw_size_4M)
DEVICE_VENDOR := Asus
TARGET_DEVICES += asus_rt-n15
define Device/ralink_v11st-fe
- DTS := V11STFE
+ MTK_SOC := rt2880
BLOCKSIZE := 64k
IMAGE_SIZE := $(ralink_default_fw_size_4M)
DEVICE_VENDOR := Ralink
TARGET_DEVICES += ralink_v11st-fe
define Device/buffalo_wli-tx4-ag300n
- DTS := WLI-TX4-AG300N
+ MTK_SOC := rt2880
BLOCKSIZE := 64k
IMAGE_SIZE := $(ralink_default_fw_size_4M)
DEVICE_VENDOR := Buffalo
TARGET_DEVICES += buffalo_wli-tx4-ag300n
define Device/buffalo_wzr-agl300nh
- DTS := WZR-AGL300NH
+ MTK_SOC := rt2880
BLOCKSIZE := 64k
IMAGE_SIZE := $(ralink_default_fw_size_4M)
DEVICE_VENDOR := Buffalo
endef
define Device/edimax_br-6475nd
- DTS := BR-6475ND
+ MTK_SOC := rt3883
BLOCKSIZE := 64k
IMAGE_SIZE := 7744k
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \
define Device/samsung_cy-swr1100
$(Device/seama)
- DTS := CY-SWR1100
+ MTK_SOC := rt3883
BLOCKSIZE := 64k
KERNEL := $(KERNEL_DTB)
SEAMA_SIGNATURE := wrgnd10_samsung_ss815
define Device/dlink_dir-645
$(Device/seama)
- DTS := DIR-645
+ MTK_SOC := rt3883
BLOCKSIZE := 4k
KERNEL := $(KERNEL_DTB)
SEAMA_SIGNATURE := wrgn39_dlob.hans_dir645
define Device/belkin_f9k1109v1
- DTS := F9K1109V1
+ MTK_SOC := rt3883
BLOCKSIZE := 64k
DEVICE_VENDOR := Belkin
DEVICE_MODEL := F9K1109
TARGET_DEVICES += belkin_f9k1109v1
define Device/omnima_hpm
- DTS := HPM
+ MTK_SOC := rt3883
BLOCKSIZE := 64k
IMAGE_SIZE := 16064k
DEVICE_VENDOR := Omnima
define Device/asus_rt-n56u
- DTS := RT-N56U
+ MTK_SOC := rt3883
BLOCKSIZE := 64k
IMAGE/sysupgrade.bin += | mkrtn56uimg -s
DEVICE_VENDOR := Asus
define Device/trendnet_tew-691gr
- DTS := TEW-691GR
+ MTK_SOC := rt3883
BLOCKSIZE := 64k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
define Device/trendnet_tew-692gr
- DTS := TEW-692GR
+ MTK_SOC := rt3883
BLOCKSIZE := 64k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
define Device/sitecom_wlr-6000
- DTS := WLR-6000
+ MTK_SOC := rt3883
BLOCKSIZE := 4k
IMAGE_SIZE := 7244k
IMAGES += factory.dlf
define Device/loewe_wmdr-143n
- DTS := WMDR-143N
+ MTK_SOC := rt3883
BLOCKSIZE := 64k
DEVICE_VENDOR := Loewe
DEVICE_MODEL := WMDR-143N