From: Adrian Schmutzler Date: Wed, 3 Jul 2019 21:22:36 +0000 (+0200) Subject: ramips/rt305x: Name DTS files based on scheme X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3b0264eddbc94f43a015a965b9eb3e12cfce0655;p=openwrt%2Fstaging%2Fynezz.git ramips/rt305x: Name DTS files based on scheme Signed-off-by: Adrian Schmutzler --- diff --git a/target/linux/ramips/dts/3G-6200N.dts b/target/linux/ramips/dts/3G-6200N.dts deleted file mode 100644 index 3859812217..0000000000 --- a/target/linux/ramips/dts/3G-6200N.dts +++ /dev/null @@ -1,124 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "edimax,3g-6200n", "ralink,rt3050-soc"; - model = "Edimax 3g-6200n"; - - 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 = "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@3e0000 { - label = "cimage"; - reg = <0x3e0000 0x20000>; - read-only; - }; - - partition@50000 { - compatible = "edimax,uimage"; - label = "firmware"; - reg = <0x50000 0x390000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "3g-6200n:green:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "3g-6200n:amber:wlan"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - - 3g { - label = "3g-6200n:blue:3g"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - trigger-sources = <&otg_port1>; - linux,default-trigger = "usbport"; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - rfkill { - label = "wlanswitch"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/3G-6200NL.dts b/target/linux/ramips/dts/3G-6200NL.dts deleted file mode 100644 index 7742561e50..0000000000 --- a/target/linux/ramips/dts/3G-6200NL.dts +++ /dev/null @@ -1,111 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "edimax,3g-6200nl", "ralink,rt3050-soc"; - model = "Edimax 3g-6200nl"; - - aliases { - led-boot = &led_internet; - led-failsafe = &led_internet; - led-running = &led_internet; - led-upgrade = &led_internet; - }; - - 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 = "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@3e0000 { - label = "cimage"; - reg = <0x3e0000 0x20000>; - read-only; - }; - - partition@50000 { - compatible = "edimax,uimage"; - label = "firmware"; - reg = <0x50000 0x390000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_internet: internet { - label = "3g-6200nl:green:internet"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "3g-6200nl:green:wlan"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portdisable = <0x37>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/3G150B.dts b/target/linux/ramips/dts/3G150B.dts deleted file mode 100644 index 9d13625516..0000000000 --- a/target/linux/ramips/dts/3G150B.dts +++ /dev/null @@ -1,130 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "tenda,3g150b", "ralink,rt5350-soc"; - model = "Tenda 3G150B"; - - aliases { - led-boot = &led_ap; - led-failsafe = &led_ap; - led-running = &led_ap; - led-upgrade = &led_ap; - }; - - leds { - compatible = "gpio-leds"; - - led_ap: ap { - label = "3g150b:blue:ap"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - }; - - 3g { - label = "3g150b:blue:3g"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - trigger-sources = <&ohci_port1>, <&ehci_port1>; - linux,default-trigger = "usbport"; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - gpio_export { - compatible = "gpio-export"; - #size-cells = <0>; - - usb { - gpio-export,name = "usb"; - gpio-export,output = <1>; - gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x3b0000>; - }; - }; - }; -}; - -&gpio1 { - status = "okay"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf", "led"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; - ralink,led-polarity = <1>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/3G300M.dts b/target/linux/ramips/dts/3G300M.dts deleted file mode 100644 index a463890dea..0000000000 --- a/target/linux/ramips/dts/3G300M.dts +++ /dev/null @@ -1,136 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "tenda,3g300m", "ralink,rt3052-soc"; - model = "Tenda 3G300M"; - - aliases { - led-boot = &led_ap; - led-failsafe = &led_ap; - led-running = &led_ap; - led-upgrade = &led_ap; - }; - - leds { - compatible = "gpio-leds"; - - 3grouter { - label = "3g300m:blue:3grouter"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - led_ap: ap { - label = "3g300m:blue:ap"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - wisprouter { - label = "3g300m:blue:wisprouter"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wirelessrouter { - label = "3g300m:blue:wirelessrouter"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - - 3g { - label = "3g300m:blue:3g"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - trigger-sources = <&otg_port1>; - linux,default-trigger = "usbport"; - }; - - wpsreset { - label = "3g300m:blue:wpsreset"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - mode { - label = "mode"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x3b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/A5-V11.dts b/target/linux/ramips/dts/A5-V11.dts deleted file mode 100644 index 707963d691..0000000000 --- a/target/linux/ramips/dts/A5-V11.dts +++ /dev/null @@ -1,134 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "unbranded,a5-v11", "ralink,rt5350-soc"; - model = "A5-V11"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - system { - label = "a5-v11:blue:system"; - gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "a5-v11:red:power"; - gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - gpio_export { - compatible = "gpio-export"; - #size-cells = <0>; - - usb { - gpio-export,name = "usb"; - gpio-export,output = <1>; - gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; - }; - - root_hub { - gpio-export,name = "root_hub"; - gpio-export,output = <1>; - gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x3b0000>; - }; - }; - }; -}; - -&gpio1 { - status = "okay"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf", "led"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x1>; - mediatek,portdisable = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/AIR3GII.dts b/target/linux/ramips/dts/AIR3GII.dts deleted file mode 100644 index 111119eea4..0000000000 --- a/target/linux/ramips/dts/AIR3GII.dts +++ /dev/null @@ -1,103 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "airlive,air3gii", "ralink,rt5350-soc"; - model = "AirLive Air3GII"; - - leds { - compatible = "gpio-leds"; - - wlan { - label = "air3gii:green:wlan"; - gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; - }; - - mobile { - label = "air3gii:green:mobile"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - trigger-sources = <&ohci_port1>, <&ehci_port1>; - linux,default-trigger = "usbport"; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - wps { - label = "wps"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&gpio0 { - status = "okay"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x3b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/ALL0256N-4M.dts b/target/linux/ramips/dts/ALL0256N-4M.dts deleted file mode 100644 index 60421a4229..0000000000 --- a/target/linux/ramips/dts/ALL0256N-4M.dts +++ /dev/null @@ -1,48 +0,0 @@ -/dts-v1/; - -#include "ALL0256N.dtsi" - -/ { - compatible = "allnet,all0256n-4m", "allnet,all0256n", "ralink,rt3050-soc"; - model = "Allnet ALL0256N (4M)"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x3c8000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/ALL0256N-8M.dts b/target/linux/ramips/dts/ALL0256N-8M.dts deleted file mode 100644 index 3832d1a7d3..0000000000 --- a/target/linux/ramips/dts/ALL0256N-8M.dts +++ /dev/null @@ -1,48 +0,0 @@ -/dts-v1/; - -#include "ALL0256N.dtsi" - -/ { - compatible = "allnet,all0256n-8m", "allnet,all0256n", "ralink,rt3050-soc"; - model = "Allnet ALL0256N (8M)"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/ALL0256N.dtsi b/target/linux/ramips/dts/ALL0256N.dtsi deleted file mode 100644 index d31547c335..0000000000 --- a/target/linux/ramips/dts/ALL0256N.dtsi +++ /dev/null @@ -1,63 +0,0 @@ -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "allnet,all0256n", "ralink,rt3050-soc"; - - leds { - compatible = "gpio-leds"; - - rssilow { - label = "all0256n:green:rssilow"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - - rssimed { - label = "all0256n:green:rssimed"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - rssihigh { - label = "all0256n:green:rssihigh"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&gpio0 { - status = "okay"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x3f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/ALL5002.dts b/target/linux/ramips/dts/ALL5002.dts deleted file mode 100644 index a604ec1511..0000000000 --- a/target/linux/ramips/dts/ALL5002.dts +++ /dev/null @@ -1,119 +0,0 @@ -/dts-v1/; - -#include "rt3352.dtsi" - -#include -#include - -/ { - compatible = "allnet,all5002", "ralink,rt3352-soc"; - model = "Allnet ALL5002"; - - i2c-gpio { - #address-cells = <1>; - #size-cells = <0>; - - compatible = "i2c-gpio"; - gpios = <&gpio0 1 GPIO_ACTIVE_HIGH &gpio0 2 GPIO_ACTIVE_HIGH>; - i2c-gpio,delay-us = <10>; - - pcf0: iexp@38 { - #gpio-cells = <2>; - compatible = "inxp,pcf8574a"; - reg = <0x38>; - gpio-controller; - }; - - hwmon@4b { - compatible = "national,lm92"; - reg = <0x4b>; - }; - }; - - leds { - compatible = "gpio-leds"; - - ld1 { - label = "all5002:green:ld1"; - gpios = <&pcf0 0 GPIO_ACTIVE_LOW>; - }; - - ld2 { - label = "all5002:green:ld2"; - gpios = <&pcf0 1 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&gpio0 { - status = "okay"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x1fb0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x3f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/ALL5003.dts b/target/linux/ramips/dts/ALL5003.dts deleted file mode 100644 index 8a3488a7e0..0000000000 --- a/target/linux/ramips/dts/ALL5003.dts +++ /dev/null @@ -1,119 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "allnet,all5003", "ralink,rt5350-soc"; - model = "Allnet ALL5003"; - - i2c-gpio { - #address-cells = <1>; - #size-cells = <0>; - - compatible = "i2c-gpio"; - gpios = <&gpio0 1 GPIO_ACTIVE_HIGH &gpio0 2 GPIO_ACTIVE_HIGH>; - i2c-gpio,delay-us = <10>; - - pcf0: iexp@38 { - #gpio-cells = <2>; - compatible = "inxp,pcf8574a"; - reg = <0x38>; - gpio-controller; - }; - - hwmon@4b { - compatible = "national,lm92"; - reg = <0x4b>; - }; - }; - - leds { - compatible = "gpio-leds"; - - ld1 { - label = "all5003:green:ld1"; - gpios = <&pcf0 0 GPIO_ACTIVE_LOW>; - }; - - ld2 { - label = "all5003:green:ld2"; - gpios = <&pcf0 1 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&gpio0 { - status = "okay"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x1fb0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x3f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/ASL26555-16M.dts b/target/linux/ramips/dts/ASL26555-16M.dts deleted file mode 100644 index fce92ff0f3..0000000000 --- a/target/linux/ramips/dts/ASL26555-16M.dts +++ /dev/null @@ -1,66 +0,0 @@ -/dts-v1/; - -#include "ASL26555.dtsi" - -/ { - compatible = "alphanetworks,asl26555-16m", "alphanetworks,asl26555", "ralink,rt3050-soc"; - model = "Alpha ASL26555 (16M)"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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; - }; - - partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0xf80000>; - }; - - partition@fd0000 { - label = "cert"; - reg = <0xfd0000 0x10000>; - read-only; - }; - - partition@fe0000 { - label = "langpack"; - reg = <0xfe0000 0x10000>; - read-only; - }; - - devdata: partition@ff0000 { - label = "devdata"; - reg = <0xff0000 0x10000>; - read-only; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/ASL26555-8M.dts b/target/linux/ramips/dts/ASL26555-8M.dts deleted file mode 100644 index 8411990be9..0000000000 --- a/target/linux/ramips/dts/ASL26555-8M.dts +++ /dev/null @@ -1,60 +0,0 @@ -/dts-v1/; - -#include "ASL26555.dtsi" - -/ { - compatible = "alphanetworks,asl26555-8m", "alphanetworks,asl26555", "ralink,rt3050-soc"; - model = "Alpha ASL26555 (8M)"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "uboot"; - reg = <0x0 0x30000>; - read-only; - }; - - devdata: partition@30000 { - label = "uboot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - partition@40000 { - label = "rgdb"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x790000>; - }; - - partition@7e0000 { - label = "cert"; - reg = <0x7e0000 0x10000>; - read-only; - }; - - partition@7f0000 { - label = "langpack"; - reg = <0x7f0000 0x10000>; - read-only; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/ASL26555.dtsi b/target/linux/ramips/dts/ASL26555.dtsi deleted file mode 100644 index d1c21f8082..0000000000 --- a/target/linux/ramips/dts/ASL26555.dtsi +++ /dev/null @@ -1,107 +0,0 @@ -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "alphanetworks,asl26555", "ralink,rt3050-soc"; - - aliases { - led-boot = &led_power_green; - led-failsafe = &led_power_green; - led-running = &led_power_green; - led-upgrade = &led_power_green; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - eth { - label = "asl26555:green:eth"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - }; - - wan-red { - label = "asl26555:red:wan"; - gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; - }; - - wan-green { - label = "asl26555:green:wan"; - gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; - }; - - wlan { - label = "asl26555:green:wlan"; - gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; - }; - - led_power_green: power-green { - label = "asl26555:green:power"; - gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; - }; - - power-red { - label = "asl26555:red:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; - }; - - 3g-green { - label = "asl26555:green:3g"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - trigger-sources = <&otg_port1>; - linux,default-trigger = "usbport"; - }; - - 3g-red { - label = "asl26555:red:3g"; - gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&gpio0 { - status = "okay"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&devdata 0x4004>; -}; - -&esw { - mediatek,portmap = <0x1e>; -}; - -&wmac { - ralink,mtd-eeprom = <&devdata 0x4000>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/ATP-52B.dts b/target/linux/ramips/dts/ATP-52B.dts deleted file mode 100644 index 2fa5c19d04..0000000000 --- a/target/linux/ramips/dts/ATP-52B.dts +++ /dev/null @@ -1,110 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "argus,atp-52b", "ralink,rt3052-soc"; - model = "Argus ATP-52B"; - - aliases { - led-boot = &led_run; - led-failsafe = &led_run; - led-running = &led_run; - led-upgrade = &led_run; - }; - - 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 = "bootloader"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "config"; - reg = <0x30000 0x10000>; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x7a0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_run: run { - label = "atp-52b:green:run"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - net { - label = "atp-52b:amber:net"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/AWAPN2403.dts b/target/linux/ramips/dts/AWAPN2403.dts deleted file mode 100644 index 97f105a631..0000000000 --- a/target/linux/ramips/dts/AWAPN2403.dts +++ /dev/null @@ -1,96 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "asiarf,awapn2403", "ralink,rt3052-soc"; - model = "AsiaRF AWAPN2403"; - - aliases { - led-boot = &led_wps; - led-failsafe = &led_wps; - led-running = &led_wps; - led-upgrade = &led_wps; - }; - - - leds { - compatible = "gpio-leds"; - - led_wps: wps { - label = "awapn2403:green:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x3b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/AWM002-EVB-4M.dts b/target/linux/ramips/dts/AWM002-EVB-4M.dts deleted file mode 100644 index c8045a0f90..0000000000 --- a/target/linux/ramips/dts/AWM002-EVB-4M.dts +++ /dev/null @@ -1,48 +0,0 @@ -/dts-v1/; - -#include "AWM002-EVB.dtsi" - -/ { - compatible = "asiarf,awm002-evb-4m", "ralink,rt5350-soc"; - model = "AsiaRF AWM002 EVB (4M)"; -}; - -&spi0 { - status = "okay"; - - m25p80: m25p80@0 { - reg = <0>; - compatible = "jedec,spi-nor"; - spi-max-frequency = <10000000>; - - 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 0x3b0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/AWM002-EVB-8M.dts b/target/linux/ramips/dts/AWM002-EVB-8M.dts deleted file mode 100644 index d7e9bd8340..0000000000 --- a/target/linux/ramips/dts/AWM002-EVB-8M.dts +++ /dev/null @@ -1,48 +0,0 @@ -/dts-v1/; - -#include "AWM002-EVB.dtsi" - -/ { - compatible = "asiarf,awm002-evb-8m", "ralink,rt5350-soc"; - model = "AsiaRF AWM002 EVB (8M)"; -}; - -&spi0 { - status = "okay"; - - m25p80: m25p80@0 { - reg = <0>; - compatible = "jedec,spi-nor"; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/AWM002-EVB.dtsi b/target/linux/ramips/dts/AWM002-EVB.dtsi deleted file mode 100644 index 384b2efec0..0000000000 --- a/target/linux/ramips/dts/AWM002-EVB.dtsi +++ /dev/null @@ -1,73 +0,0 @@ -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "asiarf,awm002-evb", "ralink,rt5350-soc"; - - leds { - compatible = "gpio-leds"; - - tx { - label = "awm002-evb:green:tx"; - gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; - }; - - rx { - label = "awm002-evb:green:rx"; - gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "awm002-evb:green:wps"; - gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset_wps { - label = "reset_wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - mode { - label = "mode"; - gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag"; - ralink,function = "gpio"; - }; - }; -}; - -&esw { - mediatek,portmap = <0x3f>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/BC2.dts b/target/linux/ramips/dts/BC2.dts deleted file mode 100644 index 324909e82f..0000000000 --- a/target/linux/ramips/dts/BC2.dts +++ /dev/null @@ -1,95 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "nexaira,bc2", "ralink,rt3052-soc"; - model = "NexAira BC2"; - - 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 = "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 0x7b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - usb { - label = "bc2:blue:usb"; - gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; - trigger-sources = <&otg_port1>; - linux,default-trigger = "usbport"; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/BROADWAY.dts b/target/linux/ramips/dts/BROADWAY.dts deleted file mode 100644 index 353cfbf415..0000000000 --- a/target/linux/ramips/dts/BROADWAY.dts +++ /dev/null @@ -1,100 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "hauppauge,broadway", "ralink,rt3052-soc"; - model = "Hauppauge Broadway"; - - 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 = "bootloader"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "config"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x790000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - diskmounted { - label = "broadway:red:diskmounted"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - trigger-sources = <&otg_port1>; - linux,default-trigger = "usbport"; - }; - - wps_active { - label = "broadway:red:wps_active"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - factory { - label = "Factory Reset button"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/CARAMBOLA.dts b/target/linux/ramips/dts/CARAMBOLA.dts deleted file mode 100644 index aaaea8fd4e..0000000000 --- a/target/linux/ramips/dts/CARAMBOLA.dts +++ /dev/null @@ -1,83 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "8devices,carambola", "ralink,rt3050-soc"; - model = "8devices Carambola"; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - 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 = "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 0x7b0000>; - }; - }; - }; - - i2c-gpio { - compatible = "i2c-gpio"; - gpios = <&gpio0 1 GPIO_ACTIVE_HIGH &gpio0 2 GPIO_ACTIVE_HIGH>; - i2c-gpio,delay-us = <10>; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x3f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/D105.dts b/target/linux/ramips/dts/D105.dts deleted file mode 100644 index 10732cc5ec..0000000000 --- a/target/linux/ramips/dts/D105.dts +++ /dev/null @@ -1,107 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "huawei,d105", "ralink,rt3050-soc"; - model = "Huawei D105"; - - 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 = "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 0x3b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "d105:red:power"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - }; - - usb { - label = "d105:green:usb"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - trigger-sources = <&otg_port1>; - linux,default-trigger = "usbport"; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/DAP-1350.dts b/target/linux/ramips/dts/DAP-1350.dts deleted file mode 100644 index 06d490cacc..0000000000 --- a/target/linux/ramips/dts/DAP-1350.dts +++ /dev/null @@ -1,138 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "dlink,dap-1350", "ralink,rt3052-soc"; - model = "D-Link DAP-1350"; - - aliases { - led-boot = &led_power_blue; - led-failsafe = &led_power_blue; - led-running = &led_power_blue; - led-upgrade = &led_power_blue; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - 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 = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - devdata: partition@30000 { - label = "devdata"; - reg = <0x30000 0x10000>; - read-only; - }; - - partition@40000 { - label = "devconf"; - reg = <0x40000 0x30000>; - read-only; - }; - - partition@70000 { - label = "devlang"; - reg = <0x70000 0x40000>; - read-only; - }; - - partition@b0000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0xb0000 0x750000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power_blue: power { - label = "dap-1350:blue:power"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - }; - - power2 { - label = "dap-1350:red:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "dap-1350:blue:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - rt { - label = "rt"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - ap { - label = "ap"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&devdata 0x2e>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&devdata 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/DCS-930.dts b/target/linux/ramips/dts/DCS-930.dts deleted file mode 100644 index 1c44e28fe4..0000000000 --- a/target/linux/ramips/dts/DCS-930.dts +++ /dev/null @@ -1,116 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "dlink,dcs-930", "ralink,rt3050-soc"; - model = "D-Link DCS-930"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - cfi@1f000000 { - compatible = "cfi-flash"; - reg = <0x1f000000 0x400000>; - bank-width = <2>; - device-width = <2>; - - 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 0x3b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - wifi { - label = "dcs-930:red:alert"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - }; - - led_status: status { - label = "dcs-930:green:status"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "dcs-930:blue:wps"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/DCS-930L-B1.dts b/target/linux/ramips/dts/DCS-930L-B1.dts deleted file mode 100644 index 0fff5e8b5c..0000000000 --- a/target/linux/ramips/dts/DCS-930L-B1.dts +++ /dev/null @@ -1,118 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "dlink,dcs-930l-b1", "ralink,rt5350-soc"; - model = "D-Link DCS-930L B1"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "dcs-930l-b1:red:power"; - gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "dcs-930l-b1:blue:wps"; - gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x3b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf", "led"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/DIR-300-B1.dts b/target/linux/ramips/dts/DIR-300-B1.dts deleted file mode 100644 index 8bc77e422d..0000000000 --- a/target/linux/ramips/dts/DIR-300-B1.dts +++ /dev/null @@ -1,122 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "dlink,dir-300-b1", "ralink,rt3050-soc"; - model = "D-Link DIR-300 B1"; - - aliases { - led-boot = &led_status_green; - led-failsafe = &led_status_green; - led-running = &led_status_green; - led-upgrade = &led_status_green; - }; - - 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 = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - devdata: partition@30000 { - label = "devdata"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "devconf"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x3b0000>; - }; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - status { - label = "dir-300-b1:amber:status"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - }; - - led_status_green: status2 { - label = "dir-300-b1:green:status"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wan { - label = "dir-300-b1:amber:wan"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - - wan2 { - label = "dir-300-b1:green:wan"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "dir-300-b1:blue:wps"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&devdata 0x4004>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&devdata 0x4000>; -}; diff --git a/target/linux/ramips/dts/DIR-300-B7.dts b/target/linux/ramips/dts/DIR-300-B7.dts deleted file mode 100644 index 2b6af163bc..0000000000 --- a/target/linux/ramips/dts/DIR-300-B7.dts +++ /dev/null @@ -1,113 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "dlink,dir-300-b7", "ralink,rt5350-soc"; - model = "D-Link DIR-300 B7"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - leds { - compatible = "gpio-leds"; - - led_status: status { - label = "dir-300-b7:green:status"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "dir-300-b7:blue:wps"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; - mediatek,led_polarity = <0x17>; -}; - -&wmac { - status = "okay"; - ralink,led-polarity = <1>; - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/DIR-320-B1.dts b/target/linux/ramips/dts/DIR-320-B1.dts deleted file mode 100644 index 040a223986..0000000000 --- a/target/linux/ramips/dts/DIR-320-B1.dts +++ /dev/null @@ -1,141 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "dlink,dir-320-b1", "ralink,rt5350-soc"; - model = "D-Link DIR-320 B1"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - leds { - compatible = "gpio-leds"; - - led_status: status { - label = "dir-320-b1:green:status"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - usb { - label = "dir-320-b1:green:usb"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "dir-320-b1:green:wps"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - gpio_export { - compatible = "gpio-export"; - #size-cells = <0>; - - usb { - gpio-export,name = "usb"; - gpio-export,output = <1>; - gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; - }; - - root_hub { - gpio-export,name = "root_hub"; - gpio-export,output = <1>; - gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; - mediatek,led_polarity = <0x17>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/DIR-600-B1.dts b/target/linux/ramips/dts/DIR-600-B1.dts deleted file mode 100644 index a77bfd717f..0000000000 --- a/target/linux/ramips/dts/DIR-600-B1.dts +++ /dev/null @@ -1,122 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "dlink,dir-600-b1", "ralink,rt3050-soc"; - model = "D-Link DIR-600 B1"; - - aliases { - led-boot = &led_status_green; - led-failsafe = &led_status_green; - led-running = &led_status_green; - led-upgrade = &led_status_green; - }; - - 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 = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - devdata: partition@30000 { - label = "devdata"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "devconf"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x3b0000>; - }; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - status { - label = "dir-600-b1:amber:status"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - }; - - led_status_green: status2 { - label = "dir-600-b1:green:status"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wan { - label = "dir-600-b1:amber:wan"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - - wan2 { - label = "dir-600-b1:green:wan"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "dir-600-b1:blue:wps"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&devdata 0x4004>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&devdata 0x4000>; -}; diff --git a/target/linux/ramips/dts/DIR-610-A1.dts b/target/linux/ramips/dts/DIR-610-A1.dts deleted file mode 100644 index 7a0323e219..0000000000 --- a/target/linux/ramips/dts/DIR-610-A1.dts +++ /dev/null @@ -1,114 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "dlink,dir-610-a1", "ralink,rt5350-soc"; - model = "D-Link DIR-610 A1"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - leds { - compatible = "gpio-leds"; - - led_status: status { - label = "dir-610-a1:green:status"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "dir-610-a1:green:wps"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - devdata: partition@30000 { - label = "devdata"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "seama"; - label = "firmware"; - reg = <0x50000 0x3b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&devdata 0x4004>; -}; - -&esw { - status = "okay"; - mediatek,portmap = <0x2f>; - mediatek,led_polarity = <0x17>; -}; - -&wmac { - status = "okay"; - ralink,led-polarity = <1>; - ralink,mtd-eeprom = <&devdata 0x4000>; -}; diff --git a/target/linux/ramips/dts/DIR-615-D.dts b/target/linux/ramips/dts/DIR-615-D.dts deleted file mode 100644 index 69cc5e252a..0000000000 --- a/target/linux/ramips/dts/DIR-615-D.dts +++ /dev/null @@ -1,121 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "dlink,dir-615-d", "ralink,rt3050-soc"; - model = "D-Link DIR-615 D"; - - aliases { - led-boot = &led_status_green; - led-failsafe = &led_status_green; - led-running = &led_status_green; - led-upgrade = &led_status_green; - }; - - 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 = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - devdata: partition@30000 { - label = "devdata"; - reg = <0x30000 0x10000>; - read-only; - }; - - partition@40000 { - label = "devconf"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x3b0000>; - }; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - status { - label = "dir-615-d:amber:status"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - }; - - led_status_green: status2 { - label = "dir-615-d:green:status"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - default-state = "on"; - }; - - wan { - label = "dir-615-d:amber:wan"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - - wan2 { - label = "dir-615-d:green:wan"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "dir-615-d:blue:wps"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&devdata 0x4000>; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - - diff --git a/target/linux/ramips/dts/DIR-615-H1.dts b/target/linux/ramips/dts/DIR-615-H1.dts deleted file mode 100644 index 79d4717f57..0000000000 --- a/target/linux/ramips/dts/DIR-615-H1.dts +++ /dev/null @@ -1,128 +0,0 @@ -/dts-v1/; - -#include "rt3352.dtsi" - -#include -#include - -/ { - compatible = "dlink,dir-615-h1", "ralink,rt3352-soc"; - model = "D-Link DIR-615 H1"; - - aliases { - led-boot = &led_status_green; - led-failsafe = &led_status_green; - led-running = &led_status_green; - led-upgrade = &led_status_green; - }; - - leds { - compatible = "gpio-leds"; - - status { - label = "dir-615-h1:amber:status"; - gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; - }; - - led_status_green: status2 { - label = "dir-615-h1:green:status"; - gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; - default-state = "on"; - }; - - wan { - label = "dir-615-h1:amber:wan"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - wan2 { - label = "dir-615-h1:green:wan"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "dir-615-h1:blue:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x3b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; - pinctrl-names = "default"; - pinctrl-0 = <&rgmii_pins &mdio_pins>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/DIR-620-A1.dts b/target/linux/ramips/dts/DIR-620-A1.dts deleted file mode 100644 index 24fdec8ed4..0000000000 --- a/target/linux/ramips/dts/DIR-620-A1.dts +++ /dev/null @@ -1,131 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "dlink,dir-620-a1", "ralink,rt3050-soc"; - model = "D-Link DIR-620 A1"; - - aliases { - led-boot = &led_status_green; - led-failsafe = &led_status_green; - led-running = &led_status_green; - led-upgrade = &led_status_green; - }; - - 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 = "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 0x7b0000>; - }; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - status { - label = "dir-620-a1:amber:status"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - }; - - led_status_green: status2 { - label = "dir-620-a1:green:status"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wan { - label = "dir-620-a1:amber:wan"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - - wan2 { - label = "dir-620-a1:green:wan"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "dir-620-a1:blue:wps"; - gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; - }; - - wps2 { - label = "dir-620-a1:amber:wps"; - gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/DIR-620-D1.dts b/target/linux/ramips/dts/DIR-620-D1.dts deleted file mode 100644 index 74fd4af753..0000000000 --- a/target/linux/ramips/dts/DIR-620-D1.dts +++ /dev/null @@ -1,114 +0,0 @@ -/dts-v1/; - -#include "rt3352.dtsi" - -#include -#include - -/ { - compatible = "dlink,dir-620-d1", "ralink,rt3352-soc"; - model = "D-Link DIR-620 D1"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - leds { - compatible = "gpio-leds"; - - led_status: status { - label = "dir-620-d1:green:status"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wifi { - label = "dir-620-d1:green:wifi"; - gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset_wps { - label = "reset_wps"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; - pinctrl-names = "default"; - pinctrl-0 = <&rgmii_pins &mdio_pins>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/DWR-512-B.dts b/target/linux/ramips/dts/DWR-512-B.dts deleted file mode 100644 index a08ea5d03c..0000000000 --- a/target/linux/ramips/dts/DWR-512-B.dts +++ /dev/null @@ -1,149 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "dlink,dwr-512-b", "ralink,rt5350-soc"; - model = "D-Link DWR-512 B"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - wps { - label = "wps"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - reset { - label = "reset"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - sms { - label = "dwr-512-b:green:sms"; - gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; - }; - led_status: status { - label = "dwr-512-b:green:status"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - 2g { - label = "dwr-512-b:green:2g"; - gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; - }; - 3g { - label = "dwr-512-b:green:3g"; - gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; - }; - sstrengthr { - label = "dwr-512-b:red:sigstrength"; - gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; - }; - sstrengthg { - label = "dwr-512-b:green:sigstrength"; - gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; - }; - }; - - gpio-export { - compatible = "gpio-export"; - #size-cells = <0>; - - slic_int { - gpio-export,name = "slic_int"; - gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; - }; - modem3g_enable { - gpio-export,name = "modem3g_enable"; - gpio-export,output = <1>; - gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&spi0 { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <30000000>; - m25p,fast-read; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "jboot"; - reg = <0x0 0x10000>; - read-only; - }; - - partition@10000 { - compatible = "amit,jimage"; - label = "firmware"; - reg = <0x10000 0x7e0000>; - }; - - config: partition@7f0000 { - label = "config"; - reg = <0x7f0000 0x10000>; - }; - }; - }; -}; - -&spi1 { - status = "okay"; - - spidev@0 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "siliconlabs,si3210"; - - reg = <0>; - spi-max-frequency = <1000000>; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -ðernet { - mtd-mac-address = <&config 0xe07e>; -}; - -&wmac { - ralink,mtd-eeprom = <&config 0xe08a>; - ralink,led-polarity = <1>; - mtd-mac-address = <&config 0xe07e>; -}; diff --git a/target/linux/ramips/dts/ESR-9753.dts b/target/linux/ramips/dts/ESR-9753.dts deleted file mode 100644 index 4b55af0691..0000000000 --- a/target/linux/ramips/dts/ESR-9753.dts +++ /dev/null @@ -1,107 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "engenius,esr-9753", "ralink,rt3052-soc"; - model = "Senao / EnGenius ESR-9753"; - - 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 = "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 0x3b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "esr-9753:orange:power"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "esr-9753:orange:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/F5D8235_V2.dts b/target/linux/ramips/dts/F5D8235_V2.dts deleted file mode 100644 index 93725e9336..0000000000 --- a/target/linux/ramips/dts/F5D8235_V2.dts +++ /dev/null @@ -1,146 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "belkin,f5d8235-v2", "ralink,rt3052-soc"; - model = "Belkin F5D8235 v2"; - - 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>; - - uboot: partition@0 { - label = "uboot"; - reg = <0x0 0x50000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x790000>; - }; - - partition@7e0000 { - label = "nvram"; - reg = <0x7e0000 0x10000>; - }; - - factory: partition@7f0000 { - label = "factory"; - reg = <0x7f0000 0x10000>; - }; - }; - }; - - rtl8366rb { - compatible = "realtek,rtl8366rb"; - gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; - gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; - }; - - leds { - compatible = "gpio-leds"; - - internet { - label = "f5d8235-v2:blue:internet"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; - }; - - internet2 { - label = "f5d8235-v2:amber:internet"; - gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; - }; - - modem { - label = "f5d8235-v2:blue:modem"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - modem2 { - label = "f5d8235-v2:amber:modem"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - }; - - led_router: router { - label = "f5d8235-v2:blue:router"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - storage { - label = "f5d8235-v2:blue:storage"; - gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; - trigger-sources = <&otg_port1>; - linux,default-trigger = "usbport"; - }; - - storage2 { - label = "f5d8235-v2:amber:storage"; - gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; - }; - - security { - label = "f5d8235-v2:blue:security"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - - security2 { - label = "f5d8235-v2:amber:security"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&uboot 0x40004>; - pinctrl-names = "default"; - pinctrl-0 = <&rgmii_pins>; -}; - -&esw { - ralink,rgmii = <1>; - mediatek,portmap = <0x3f>; - ralink,fct2 = <0x0002500c>; - /* - * ext phy base addr 31, rx/tx clock skew 0, - * turbo mii off, rgmi 3.3v off, port 5 polling off - * port5: enabled, gige, full-duplex, rx/tx-flow-control - * port6: enabled, gige, full-duplex, rx/tx-flow-control - */ - ralink,fpa2 = <0x1f003fff>; -}; - -&wmac { - ralink,mtd-eeprom = <&uboot 0x40000>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/F7C027.dts b/target/linux/ramips/dts/F7C027.dts deleted file mode 100644 index f3bf00e30a..0000000000 --- a/target/linux/ramips/dts/F7C027.dts +++ /dev/null @@ -1,143 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "belkin,f7c027", "ralink,rt5350-soc"; - model = "Belkin F7C027"; - - aliases { - led-boot = &led_status_orange; - led-failsafe = &led_status_orange; - led-running = &led_status_orange; - led-upgrade = &led_status_orange; - }; - - leds { - compatible = "gpio-leds"; - - status { - label = "f7c027:blue:status"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - }; - - power { - label = "f7c027:blue:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - led_status_orange: orange { - label = "f7c027:orange:status"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - relay { - label = "f7c027:device:relay"; - gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - top { - label = "restore"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - power { - label = "power"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - sensor { - label = "sensor"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x770000>; - }; - - partition@7c0000 { - label = "firmware2"; - reg = <0x7c0000 0x770000>; - }; - - partition@f30000 { - label = "belkin_settings"; - reg = <0xf30000 0xa0000>; - }; - - partition@fd0000 { - label = "unknown"; - reg = <0xfd0000 0x10000>; - }; - - partition@fe0000 { - label = "nvram"; - reg = <0xfe0000 0x10000>; - }; - - partition@ff0000 { - label = "user_factory"; - reg = <0xff0000 0x10000>; - }; - }; - }; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; diff --git a/target/linux/ramips/dts/FONERA20N.dts b/target/linux/ramips/dts/FONERA20N.dts deleted file mode 100644 index cd452fa782..0000000000 --- a/target/linux/ramips/dts/FONERA20N.dts +++ /dev/null @@ -1,157 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "fon,fonera-20n", "ralink,rt3052-soc"; - model = "La Fonera 2.0N"; - - 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 = "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 0x7b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - wifi { - label = "fonera20n:orange:wifi"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "fonera20n:green:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - usb { - label = "fonera20n:orange:usb"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - trigger-sources = <&otg_port1>; - linux,default-trigger = "usbport"; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - switch { - label = "switch"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - linux,code = ; - linux,input-type = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - #address-cells = <1>; - #size-cells = <0>; - - mediatek,portmap = <0x2f>; - - port@0 { - compatible = "swconfig,port"; - reg = <0>; - swconfig,segment = "lan"; - swconfig,portmap = <0 4>; - }; - - port@1 { - compatible = "swconfig,port"; - reg = <1>; - swconfig,segment = "lan"; - swconfig,portmap = <1 3>; - }; - - port@2 { - compatible = "swconfig,port"; - reg = <2>; - swconfig,segment = "lan"; - swconfig,portmap = <2 2>; - }; - - port@3 { - compatible = "swconfig,port"; - reg = <3>; - swconfig,segment = "lan"; - swconfig,portmap = <3 1>; - }; - - port@4 { - compatible = "swconfig,port"; - reg = <4>; - swconfig,segment = "wan"; - swconfig,portmap = <4 0>; - }; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/FREESTATION5.dts b/target/linux/ramips/dts/FREESTATION5.dts deleted file mode 100644 index b924229a7e..0000000000 --- a/target/linux/ramips/dts/FREESTATION5.dts +++ /dev/null @@ -1,114 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "arcwireless,freestation5", "ralink,rt3050-soc"; - model = "ARC FreeStation5"; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - 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 = "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 0x7b0000>; - }; - }; - }; - - gpio-export { - compatible = "gpio-export"; - - /* - * Used to enable power-over-ethernet passthrough from port0 to port1. - * Disable passthrough by default to prevent accidental equipment damage. - */ - poe { - gpio-export,name = "poe-passthrough"; - gpio-export,output = <1>; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - }; - - leds { - compatible = "gpio-leds"; - - /* - * The following leds are defined in the ArcOS firmware, but reportedly - * not present in the Freestation5 device. - */ - wifi { - label = "freestation5:unknown:wifi"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - }; - - powerg { - label = "freestation5:unknown:powerg"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - usb { - label = "freestation5:unknown:usb"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x01>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/HG255D.dts b/target/linux/ramips/dts/HG255D.dts deleted file mode 100644 index df8a72c8cb..0000000000 --- a/target/linux/ramips/dts/HG255D.dts +++ /dev/null @@ -1,145 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "huawei,hg255d", "ralink,rt3052-soc"; - model = "HuaWei HG255D"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - cfi@1f000000 { - compatible = "cfi-flash"; - reg = <0x1f000000 0x1000000>; - bank-width = <2>; - device-width = <2>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x40000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x40000 0x20000>; - read-only; - }; - - factory: partition@60000 { - label = "factory"; - reg = <0x60000 0x20000>; - read-only; - }; - - partition@80000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x80000 0xf60000>; - }; - - partition@fa0000 { - label = "factory-orig"; - reg = <0xfa0000 0x20000>; - read-only; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "hg255d:green:power"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - }; - - internet { - label = "hg255d:green:internet"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - - wifi { - label = "hg255d:green:wlan"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - - usb { - label = "hg255d:green:usb"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - trigger-sources = <&otg_port1>; - linux,default-trigger = "usbport"; - }; - - wps { - label = "hg255d:green:wps"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - voice { - label = "hg255d:green:voice"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <10>; - - reset { - label = "reset"; - gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - rfkill { - label = "rfkill"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/HLKRM04.dts b/target/linux/ramips/dts/HLKRM04.dts deleted file mode 100644 index 7b2791fa62..0000000000 --- a/target/linux/ramips/dts/HLKRM04.dts +++ /dev/null @@ -1,128 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "hilink,hlk-rm04", "ralink,rt5350-soc"; - model = "HILINK HLK-RM04"; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x1000000>; - }; - - chosen { - bootargs = "console=ttyS1,57600"; - }; - - gpio-export { - compatible = "gpio-export"; - #size-cells = <0>; - - /* I2C */ - gpio1 { - /* I2C_I2C_SD */ - gpio-export,name = "hlk-rm04:gpio0"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; - }; - gpio2 { - /* I2C_I2C_SCLK */ - gpio-export,name = "hlk-rm04:gpio1"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - reset { - label = "reset"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - wps { - label = "wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&uart { - status = "okay"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x3b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag"; - ralink,function = "gpio"; - }; - - uartf_gpio { - ralink,group = "uartf"; - ralink,function = "gpio uartf"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/HT-TM02.dts b/target/linux/ramips/dts/HT-TM02.dts deleted file mode 100644 index 4e73c6988d..0000000000 --- a/target/linux/ramips/dts/HT-TM02.dts +++ /dev/null @@ -1,124 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "hootoo,ht-tm02", "ralink,rt5350-soc"; - model = "HooToo HT-TM02"; - - aliases { - led-boot = &led_wlan; - led-failsafe = &led_wlan; - led-running = &led_wlan; - led-upgrade = &led_wlan; - }; - - leds { - compatible = "gpio-leds"; - - led_wlan: wlan { - label = "ht-tm02:blue:wlan"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "ht-tm02:green:lan"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - modeswitch { - label = "modeswitch"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - linux,code = ; - linux,input-type = ; - }; - }; -}; - -&gpio0 { - status = "okay"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x10>; - mediatek,portdisable = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/HW550-3G.dts b/target/linux/ramips/dts/HW550-3G.dts deleted file mode 100644 index 372d18e75e..0000000000 --- a/target/linux/ramips/dts/HW550-3G.dts +++ /dev/null @@ -1,129 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "aztech,hw550-3g", "ralink,rt3052-soc"; - model = "Aztech HW550-3G"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - 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 = "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 0x7b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - usb { - label = "hw550-3g:green:usb"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - trigger-sources = <&otg_port1>; - linux,default-trigger = "usbport"; - }; - - 3g { - label = "hw550-3g:green:3g"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - led_status: status { - label = "hw550-3g:green:status"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "hw550-3g:green:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - connect { - label = "connect"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/IP2202.dts b/target/linux/ramips/dts/IP2202.dts deleted file mode 100644 index 31478da694..0000000000 --- a/target/linux/ramips/dts/IP2202.dts +++ /dev/null @@ -1,101 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "poray,ip2202", "ralink,rt3052-soc"; - model = "Poray IP2202"; - - aliases { - led-boot = &led_run; - led-failsafe = &led_run; - led-running = &led_run; - led-upgrade = &led_run; - }; - - 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 = "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 0x7b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_run: run { - label = "ip2202:green:run"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - net { - label = "ip2202:amber:net"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/JHR-N805R.dts b/target/linux/ramips/dts/JHR-N805R.dts deleted file mode 100644 index 702d779aa2..0000000000 --- a/target/linux/ramips/dts/JHR-N805R.dts +++ /dev/null @@ -1,99 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "jcg,jhr-n805r", "ralink,rt3050-soc"; - model = "JCG JHR-N805R"; - - aliases { - led-boot = &led_system; - led-failsafe = &led_system; - led-running = &led_system; - led-upgrade = &led_system; - }; - - leds { - compatible = "gpio-leds"; - - led_system: system { - label = "jhr-n805r:blue:system"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x3b0000>; - }; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x2e>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/JHR-N825R.dts b/target/linux/ramips/dts/JHR-N825R.dts deleted file mode 100644 index 4c0640b881..0000000000 --- a/target/linux/ramips/dts/JHR-N825R.dts +++ /dev/null @@ -1,94 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "jcg,jhr-n825r", "ralink,rt3052-soc"; - model = "JCG JHR-N825R"; - - aliases { - led-boot = &led_system; - led-failsafe = &led_system; - led-running = &led_system; - led-upgrade = &led_system; - }; - - 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 = "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 0x3b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - led_system: system { - label = "jhr-n825r:red:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - reset_wps { - label = "reset_wps"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x2e>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/JHR-N926R.dts b/target/linux/ramips/dts/JHR-N926R.dts deleted file mode 100644 index 9414828594..0000000000 --- a/target/linux/ramips/dts/JHR-N926R.dts +++ /dev/null @@ -1,140 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "jcg,jhr-n926r", "ralink,rt3052-soc"; - model = "JCG JHR-N926R"; - - aliases { - led-boot = &led_system; - led-failsafe = &led_system; - led-running = &led_system; - led-upgrade = &led_system; - }; - - 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 = "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 0x3b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - wlan1 { - label = "jhr-n926r:red:wlan"; - gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; - }; - - wlan2 { - label = "jhr-n926r:yellow:wlan"; - gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; - }; - - wlan3 { - label = "jhr-n926r:green:wlan"; - gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; - }; - - led_system: system { - label = "jhr-n926r:blue:system"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; - - gpio_export { - compatible = "gpio-export"; - #size-cells = <0>; - - display_data { - gpio-export,name = "display_data"; - gpio-export,output = <1>; - gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; - }; - - display_clock { - gpio-export,name = "display_clock"; - gpio-export,output = <1>; - gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; - }; - - display_blank { - gpio-export,name = "display_blank"; - gpio-export,output = <1>; - gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset_wps { - label = "reset_wps"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wlan { - label = "wlan"; - gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x2e>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/M2M.dts b/target/linux/ramips/dts/M2M.dts deleted file mode 100644 index 122c70e21f..0000000000 --- a/target/linux/ramips/dts/M2M.dts +++ /dev/null @@ -1,122 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "intenso,memory2move", "ralink,rt5350-soc"; - model = "Intenso Memory 2 Move"; - - aliases { - led-boot = &led_wifi; - led-failsafe = &led_wifi; - led-running = &led_wifi; - led-upgrade = &led_wifi; - }; - - chosen { - bootargs = "console=ttyS0,57600n8 root=/dev/mtdblock5"; - }; - - leds { - compatible = "gpio-leds"; - - led_wifi: wifi { - label = "m2m:blue:wifi"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - }; - - wan { - label = "m2m:green:wan"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - power { - label = "power"; - gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "Bootloader"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "Config"; - 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>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0x0>; -}; diff --git a/target/linux/ramips/dts/M3.dts b/target/linux/ramips/dts/M3.dts deleted file mode 100644 index 1c894aff12..0000000000 --- a/target/linux/ramips/dts/M3.dts +++ /dev/null @@ -1,116 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "poray,m3", "ralink,rt5350-soc"; - model = "Poray M3"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - leds { - compatible = "gpio-leds"; - - led_status: status { - label = "m3:blue:status"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - mode { - label = "mode"; - gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; - linux,code = ; - linux,input-type = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x3b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; - mediatek,led_polarity = <1>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; - ralink,led-polarity = <1>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/M4-4M.dts b/target/linux/ramips/dts/M4-4M.dts deleted file mode 100644 index 53a58b3d49..0000000000 --- a/target/linux/ramips/dts/M4-4M.dts +++ /dev/null @@ -1,48 +0,0 @@ -/dts-v1/; - -#include "M4.dtsi" - -/ { - compatible = "poray,m4-4m", "poray,m4", "ralink,rt5350-soc"; - model = "Poray M4 (4M)"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x3b0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/M4-8M.dts b/target/linux/ramips/dts/M4-8M.dts deleted file mode 100644 index b947a36d08..0000000000 --- a/target/linux/ramips/dts/M4-8M.dts +++ /dev/null @@ -1,48 +0,0 @@ -/dts-v1/; - -#include "M4.dtsi" - -/ { - compatible = "poray,m4-8m", "poray,m4", "ralink,rt5350-soc"; - model = "Poray M4 (8M)"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/M4.dtsi b/target/linux/ramips/dts/M4.dtsi deleted file mode 100644 index df8db131e9..0000000000 --- a/target/linux/ramips/dts/M4.dtsi +++ /dev/null @@ -1,66 +0,0 @@ -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "poray,m4", "ralink,rt5350-soc"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - leds { - compatible = "gpio-leds"; - - led_status: status { - label = "m4:blue:status"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; - mediatek,led_polarity = <1>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; - ralink,led-polarity = <1>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/MINIEMBPLUG.dts b/target/linux/ramips/dts/MINIEMBPLUG.dts deleted file mode 100644 index 5db1ce48a1..0000000000 --- a/target/linux/ramips/dts/MINIEMBPLUG.dts +++ /dev/null @@ -1,129 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "omnima,miniembplug", "ralink,rt5350-soc"; - model = "Omnima MiniEMBPlug"; - - leds { - compatible = "gpio-leds"; - - wlan { - label = "miniembplug:red:wlan"; - gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; - }; - - mobile { - label = "miniembplug:green:mobile"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - trigger-sources = <&ohci_port1>, <&ehci_port1>; - linux,default-trigger = "usbport"; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - mode-one { - label = "mode1"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - mode-two { - label = "mode2"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -&gpio0 { - status = "okay"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/MINIEMBWIFI.dts b/target/linux/ramips/dts/MINIEMBWIFI.dts deleted file mode 100644 index 2f045c7884..0000000000 --- a/target/linux/ramips/dts/MINIEMBWIFI.dts +++ /dev/null @@ -1,105 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "omnima,miniembwifi", "ralink,rt3052-soc"; - model = "Omnima MiniEMBWiFi"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - leds { - compatible = "gpio-leds"; - - led_status: status { - label = "miniembwifi:green:status"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "miniembwifi:green:wlan"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - 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 = "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 0x7b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/MOFI3500-3GN.dts b/target/linux/ramips/dts/MOFI3500-3GN.dts deleted file mode 100644 index d20f2d2703..0000000000 --- a/target/linux/ramips/dts/MOFI3500-3GN.dts +++ /dev/null @@ -1,126 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "mofinetwork,mofi3500-3gn", "ralink,rt3052-soc"; - model = "MoFi Network MOFI3500-3GN"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - 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 = "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 0x7b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - usb { - label = "mofi3500-3gn:green:usb"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - trigger-sources = <&otg_port1>; - linux,default-trigger = "usbport"; - }; - - 3g { - label = "mofi3500-3gn:green:3g"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - led_status: status { - label = "mofi3500-3gn:green:status"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "mofi3500-3gn:green:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - connect { - label = "connect"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - status = "okay"; - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/MPRA1.dts b/target/linux/ramips/dts/MPRA1.dts deleted file mode 100644 index 328351a550..0000000000 --- a/target/linux/ramips/dts/MPRA1.dts +++ /dev/null @@ -1,133 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "hame,mpr-a1", "ralink,rt5350-soc"; - model = "HAME MPR-A1"; - - aliases { - led-boot = &led_system; - led-failsafe = &led_system; - led-running = &led_system; - led-upgrade = &led_system; - }; - - leds { - compatible = "gpio-leds"; - - led_system: system { - label = "mpr-a1:blue:system"; - gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; - }; - - power { - label = "mpr-a1:red:power"; - gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - wps { - label = "reset"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - gpio_export { - compatible = "gpio-export"; - #size-cells = <0>; - - usb { - gpio-export,name = "usb"; - gpio-export,output = <1>; - gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; - }; - - root_hub { - gpio-export,name = "root_hub"; - gpio-export,output = <1>; - gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x3b0000>; - }; - }; - }; -}; - -&gpio1 { - status = "okay"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf", "led"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/MPRA2.dts b/target/linux/ramips/dts/MPRA2.dts deleted file mode 100644 index fedb5b061e..0000000000 --- a/target/linux/ramips/dts/MPRA2.dts +++ /dev/null @@ -1,130 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "hame,mpr-a2", "ralink,rt5350-soc"; - model = "HAME MPR-A2"; - - aliases { - led-boot = &led_system; - led-failsafe = &led_system; - led-running = &led_system; - led-upgrade = &led_system; - }; - - leds { - compatible = "gpio-leds"; - - led_system: system { - label = "mpr-a2:blue:system"; - gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; - }; - - power { - label = "mpr-a2:red:power"; - gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - wps { - label = "reset"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - gpio_export { - compatible = "gpio-export"; - #size-cells = <0>; - - usb { - gpio-export,name = "usb"; - gpio-export,output = <1>; - gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; - }; - - root_hub { - gpio-export,name = "root_hub"; - gpio-export,output = <1>; - gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x1>; - mediatek,portdisable = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/MR-102N.dts b/target/linux/ramips/dts/MR-102N.dts deleted file mode 100644 index ffb76e3bf4..0000000000 --- a/target/linux/ramips/dts/MR-102N.dts +++ /dev/null @@ -1,131 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "aximcom,mr-102n", "ralink,rt3052-soc"; - model = "AXIMCom MR-102N"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - 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 = "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 0x790000>; - }; - - partition@7e0000 { - label = "nvram"; - reg = <0x7e0000 0x10000>; - }; - - partition@7f0000 { - label = "nvram_backup"; - reg = <0x7f0000 0x10000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - usb { - label = "mr-102n:green:usb"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - trigger-sources = <&otg_port1>; - linux,default-trigger = "usbport"; - }; - - led_status: status { - label = "mr-102n:amber:status"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "mr-102n:green:wlan"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - status = "okay"; - #mediatek,portmap = <0x3e>; - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/MZK-DP150N.dts b/target/linux/ramips/dts/MZK-DP150N.dts deleted file mode 100644 index 41fb6e06d8..0000000000 --- a/target/linux/ramips/dts/MZK-DP150N.dts +++ /dev/null @@ -1,112 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "planex,mzk-dp150n", "ralink,rt5350-soc"; - model = "Planex MZK-DP150N"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "mzk-dp150n:green:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&gpio1 { - status = "okay"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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>; - }; - }; - }; -}; - -&spi1 { - spidev@0 { - compatible = "linux,spidev"; - spi-max-frequency = <10000000>; - reg = <0>; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "uartf", "led"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x17>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; - ralink,led-polarity = <1>; -}; diff --git a/target/linux/ramips/dts/MZK-W300NH2.dts b/target/linux/ramips/dts/MZK-W300NH2.dts deleted file mode 100644 index ab749fc43d..0000000000 --- a/target/linux/ramips/dts/MZK-W300NH2.dts +++ /dev/null @@ -1,124 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "planex,mzk-w300nh2", "ralink,rt3052-soc"; - model = "Planex MZK-W300NH2"; - - 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 = "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@3e0000 { - label = "cimage"; - reg = <0x3e0000 0x20000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x390000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "mzk-w300nh2:green:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "mzk-w300nh2:amber:wlan"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "mzk-w300nh2:amber:wps"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - wps { - label = "wps"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - reset { - label = "reset"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - rt { - label = "rt"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/MZK-WDPR.dts b/target/linux/ramips/dts/MZK-WDPR.dts deleted file mode 100644 index 17591268b6..0000000000 --- a/target/linux/ramips/dts/MZK-WDPR.dts +++ /dev/null @@ -1,93 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include - -/ { - compatible = "planex,mzk-wdpr", "ralink,rt3052-soc"; - model = "Planex MZK-WDPR"; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - 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 = "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@7f0000 { - label = "Data3G"; - reg = <0x7f0000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x680000>; - }; - }; - }; - - gpio-export { - compatible = "gpio-export"; - - lcd_ctrl1 { - gpio-export,name = "lcd_ctrl1"; - gpio-export,output = <0>; - gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/NBG-419N.dts b/target/linux/ramips/dts/NBG-419N.dts deleted file mode 100644 index 625e1616d8..0000000000 --- a/target/linux/ramips/dts/NBG-419N.dts +++ /dev/null @@ -1,107 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "zyxel,nbg-419n", "ralink,rt3052-soc"; - model = "ZyXEL NBG-419N"; - - 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 = "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 0x3b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "nbg-419n:green:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "nbg-419n:green:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/NBG-419N2.dts b/target/linux/ramips/dts/NBG-419N2.dts deleted file mode 100644 index e150eff9e8..0000000000 --- a/target/linux/ramips/dts/NBG-419N2.dts +++ /dev/null @@ -1,130 +0,0 @@ -/dts-v1/; - -#include "rt3352.dtsi" - -#include -#include - -/ { - compatible = "zyxel,nbg-419n-v2", "ralink,rt3352-soc"; - model = "ZyXEL NBG-419N v2"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - palmbus@10000000 { - spi@b00 { - status = "okay"; - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0 0>; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "nbg-419n2:green:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "nbg-419n2:green:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - - usb { - label = "nbg-419n2:green:usb"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - trigger-sources = <&ohci_port1>, <&ehci_port1>; - linux,default-trigger = "usbport"; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - rfkill { - label = "rfkill"; - linux,input-type = ; - gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/NCS601W.dts b/target/linux/ramips/dts/NCS601W.dts deleted file mode 100644 index ff6ccd2247..0000000000 --- a/target/linux/ramips/dts/NCS601W.dts +++ /dev/null @@ -1,77 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -/ { - compatible = "wansview,ncs601w", "ralink,rt5350-soc"; - model = "Wansview NCS601W"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/NIXCORE-16M.dts b/target/linux/ramips/dts/NIXCORE-16M.dts deleted file mode 100644 index 328217787f..0000000000 --- a/target/linux/ramips/dts/NIXCORE-16M.dts +++ /dev/null @@ -1,48 +0,0 @@ -/dts-v1/; - -#include "NIXCORE.dtsi" - -/ { - compatible = "nixcore,x1-16m", "nixcore,x1", "ralink,rt5350-soc"; - model = "NixcoreX1 (16M)"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0xfb0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/NIXCORE-8M.dts b/target/linux/ramips/dts/NIXCORE-8M.dts deleted file mode 100644 index f32bcf3f49..0000000000 --- a/target/linux/ramips/dts/NIXCORE-8M.dts +++ /dev/null @@ -1,48 +0,0 @@ -/dts-v1/; - -#include "NIXCORE.dtsi" - -/ { - compatible = "nixcore,x1-8m", "nixcore,x1", "ralink,rt5350-soc"; - model = "NixcoreX1 (8M)"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/NIXCORE.dtsi b/target/linux/ramips/dts/NIXCORE.dtsi deleted file mode 100644 index 1702d74db7..0000000000 --- a/target/linux/ramips/dts/NIXCORE.dtsi +++ /dev/null @@ -1,155 +0,0 @@ -#include "rt5350.dtsi" - -#include - -/ { - compatible = "nixcore,x1", "ralink,rt5350-soc"; - - chosen { - bootargs = "console=ttyS1,57600"; - }; - - gpio-export { - compatible = "gpio-export"; - #size-cells = <0>; - - gpio0 { - gpio-export,name = "gpio0"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; - }; - - gpio1 { - gpio-export,name = "gpio1"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; - }; - - /* GPIOs 1-6 are I2C,SPI */ - /* GPIO 7-14 are uart1 */ - /* GPIOs 15 & 16 are uart2 */ - /* JTAG */ - - gpio17 { - /* JTAG_TDO */ - gpio-export,name = "gpio17"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; - }; - - gpio18 { - /* JTAG_TDI */ - gpio-export,name = "gpio18"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; - }; - - gpio19 { - /* JTAG_TMS */ - gpio-export,name = "gpio19"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>; - }; - - gpio20 { - /* JTAG_TCLK */ - gpio-export,name = "gpio20"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; - }; - - gpio21 { - /* JTAG_TRST_N */ - gpio-export,name = "gpio21"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; - }; - - /* ETH LEDs */ - /* - gpio22 { - gpio-export,name = "gpio22"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; - }; - - gpio23 { - gpio-export,name = "gpio23"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; - }; - - gpio24 { - gpio-export,name = "gpio24"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; - }; - - gpio25 { - gpio-export,name = "gpio25"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; - }; - - */ - gpio26 { - /* ETH4_LED */ - gpio-export,name = "gpio26"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; - }; - - gpio27 { - /* spi_cs1 */ - gpio-export,name = "gpio27"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&gpio0 { - status = "okay"; -}; - -&gpio1 { - status = "okay"; -}; - -&i2c { - status = "okay"; -}; - -&uart { - status = "okay"; - reset-names = "gpio uartf"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "led", "spi_cs1"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x17>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/NW718.dts b/target/linux/ramips/dts/NW718.dts deleted file mode 100644 index 61af498fd8..0000000000 --- a/target/linux/ramips/dts/NW718.dts +++ /dev/null @@ -1,121 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "netcore,nw718", "ralink,rt3050-soc"; - model = "Netcore NW718"; - - aliases { - led-boot = &led_cpu; - led-failsafe = &led_cpu; - led-running = &led_cpu; - led-upgrade = &led_cpu; - }; - - leds { - compatible = "gpio-leds"; - - led_cpu: cpu { - label = "nw718:amber:cpu"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - - usb { - label = "nw718:amber:usb"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - trigger-sources = <&otg_port1>; - linux,default-trigger = "usbport"; - }; - - wps { - label = "nw718:amber:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&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 = "config"; - reg = <0x30000 0x20000>; - read-only; - }; - - factory: partition@50000 { - label = "factory"; - reg = <0x50000 0x10000>; - read-only; - }; - - partition@60000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x60000 0x3a0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/PSR-680W.dts b/target/linux/ramips/dts/PSR-680W.dts deleted file mode 100644 index 260d0a1444..0000000000 --- a/target/linux/ramips/dts/PSR-680W.dts +++ /dev/null @@ -1,104 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "petatel,psr-680w", "ralink,rt3052-soc"; - model = "Petatel PSR-680W Wireless 3G Router"; - - aliases { - led-boot = &led_wan; - led-failsafe = &led_wan; - led-running = &led_wan; - led-upgrade = &led_wan; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - 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 = "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 0x3b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_wan: wan { - label = "psr-680w:red:wan"; - gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/PWH2004.dts b/target/linux/ramips/dts/PWH2004.dts deleted file mode 100644 index 3280c93afb..0000000000 --- a/target/linux/ramips/dts/PWH2004.dts +++ /dev/null @@ -1,97 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "prolink,pwh2004", "ralink,rt3052-soc"; - model = "Prolink PWH2004"; - - 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 = "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 0x7b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - wifi { - label = "pwh2004:red:wifi"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "pwh2004:green:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - wps { - label = "wps"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/PX-4885-4M.dts b/target/linux/ramips/dts/PX-4885-4M.dts deleted file mode 100644 index ee2068f8f4..0000000000 --- a/target/linux/ramips/dts/PX-4885-4M.dts +++ /dev/null @@ -1,48 +0,0 @@ -/dts-v1/; - -#include "PX-4885.dtsi" - -/ { - compatible = "7links,px-4885-4m", "7links,px-4885", "ralink,rt5350-soc"; - model = "7Links PX-4885 (4M)"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x20000>; - read-only; - }; - - partition@20000 { - label = "devdata"; - reg = <0x20000 0x20000>; - read-only; - }; - - factory: partition@40000 { - label = "devconf"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x3b0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/PX-4885-8M.dts b/target/linux/ramips/dts/PX-4885-8M.dts deleted file mode 100644 index a52ba2edae..0000000000 --- a/target/linux/ramips/dts/PX-4885-8M.dts +++ /dev/null @@ -1,48 +0,0 @@ -/dts-v1/; - -#include "PX-4885.dtsi" - -/ { - compatible = "7links,px-4885-8m", "7links,px-4885", "ralink,rt5350-soc"; - model = "7Links PX-4885 (8M)"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x20000>; - read-only; - }; - - partition@20000 { - label = "devdata"; - reg = <0x20000 0x20000>; - read-only; - }; - - factory: partition@40000 { - label = "devconf"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x7b0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/PX-4885.dtsi b/target/linux/ramips/dts/PX-4885.dtsi deleted file mode 100644 index 032a89cd1a..0000000000 --- a/target/linux/ramips/dts/PX-4885.dtsi +++ /dev/null @@ -1,63 +0,0 @@ -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "7links,px-4885", "ralink,rt5350-soc"; - - aliases { - led-boot = &led_wifi; - led-failsafe = &led_wifi; - led-running = &led_wifi; - led-upgrade = &led_wifi; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_wifi: wifi { - label = "px-4885:orange:wifi"; - gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; - }; - - storage { - label = "px-4885:blue:storage"; - gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; - trigger-sources = <&ohci_port1>, <&ehci_port1>; - linux,default-trigger = "usbport"; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x3f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/RT-G32-B1.dts b/target/linux/ramips/dts/RT-G32-B1.dts deleted file mode 100644 index 8f0544e7ef..0000000000 --- a/target/linux/ramips/dts/RT-G32-B1.dts +++ /dev/null @@ -1,89 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "asus,rt-g32-b1", "ralink,rt3050-soc"; - model = "Asus RT-G32 B1"; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "devdata"; - reg = <0x30000 0x10000>; - read-only; - }; - - devconf: partition@40000 { - label = "devconf"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x3b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&devconf 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&devconf 0>; -}; diff --git a/target/linux/ramips/dts/RT-N10-PLUS.dts b/target/linux/ramips/dts/RT-N10-PLUS.dts deleted file mode 100644 index 3b77a4ce3c..0000000000 --- a/target/linux/ramips/dts/RT-N10-PLUS.dts +++ /dev/null @@ -1,93 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "asus,rt-n10-plus", "ralink,rt3050-soc"; - model = "Asus RT-N10+"; - - aliases { - led-boot = &led_wps; - led-failsafe = &led_wps; - led-running = &led_wps; - led-upgrade = &led_wps; - }; - - 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 = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "devdata"; - reg = <0x30000 0x10000>; - read-only; - }; - - devconf: partition@40000 { - label = "devconf"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x3b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_wps: wps { - label = "rt-n10-plus:green:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -ðernet { - mtd-mac-address = <&devconf 0x4>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&devconf 0>; -}; diff --git a/target/linux/ramips/dts/RT-N13U.dts b/target/linux/ramips/dts/RT-N13U.dts deleted file mode 100644 index c3a3d2346f..0000000000 --- a/target/linux/ramips/dts/RT-N13U.dts +++ /dev/null @@ -1,111 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "asus,rt-n13u", "ralink,rt3052-soc"; - model = "Asus RT-N13U"; - - 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 = "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 0x7b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "rt-n13u:blue:power"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - }; - - wifi { - label = "rt-n13u:blue:wifi"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <10>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts b/target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts deleted file mode 100644 index 5c7b3c7c42..0000000000 --- a/target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts +++ /dev/null @@ -1,32 +0,0 @@ -/dts-v1/; - -#include "RT5350F-OLINUXINO.dtsi" - -#include - -/ { - compatible = "olimex,rt5350f-olinuxino-evb", "ralink,rt5350-soc"; - model = "Olimex RT5350F-OLinuXino-EVB"; - - gpio_export { - compatible = "gpio-export"; - #size-cells = <0>; - - relay1 { - gpio-export,name = "relay1"; - gpio-export,output = <0>; - gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; - }; - - relay2 { - gpio-export,name = "relay2"; - gpio-export,output = <0>; - gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; - }; - - button { - gpio-export,name = "button"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - }; - }; -}; diff --git a/target/linux/ramips/dts/RT5350F-OLINUXINO.dts b/target/linux/ramips/dts/RT5350F-OLINUXINO.dts deleted file mode 100644 index 2e0dcb1558..0000000000 --- a/target/linux/ramips/dts/RT5350F-OLINUXINO.dts +++ /dev/null @@ -1,8 +0,0 @@ -/dts-v1/; - -#include "RT5350F-OLINUXINO.dtsi" - -/ { - compatible = "olimex,rt5350f-olinuxino", "ralink,rt5350-soc"; - model = "Olimex RT5350F-OLinuXino"; -}; diff --git a/target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi b/target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi deleted file mode 100644 index 88b412c8d6..0000000000 --- a/target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi +++ /dev/null @@ -1,99 +0,0 @@ -#include "rt5350.dtsi" - -/ { - compatible = "olimex,rt5350f-olinuxino", "ralink,rt5350-soc"; - - aliases { - serial0 = &uartlite; - serial1 = &uart; - }; -}; - - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; -}; - -&gpio1 { - status = "okay"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag"; - ralink,function = "gpio"; - }; - uartf_gpio { - ralink,group = "uartf"; - ralink,function = "gpio uartf"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; - mediatek,led_polarity = <0x17>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; - ralink,led-polarity = <1>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; - -&i2c { - status = "okay"; -}; - -&uart { - status = "okay"; -}; - diff --git a/target/linux/ramips/dts/RUT5XX.dts b/target/linux/ramips/dts/RUT5XX.dts deleted file mode 100644 index 52638f94e6..0000000000 --- a/target/linux/ramips/dts/RUT5XX.dts +++ /dev/null @@ -1,103 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "teltonika,rut5xx", "ralink,rt3050-soc"; - model = "Teltonika RUT5XX"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - leds { - compatible = "gpio-leds"; - - led_status: status { - label = "rut5xx:green:status"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0xfb0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/SL-R7205.dts b/target/linux/ramips/dts/SL-R7205.dts deleted file mode 100644 index 3d8a9ec464..0000000000 --- a/target/linux/ramips/dts/SL-R7205.dts +++ /dev/null @@ -1,106 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "skyline,sl-r7205", "ralink,rt3052-soc"; - model = "Skyline SL-R7205 Wireless 3G Router"; - - aliases { - led-boot = &led_wifi; - led-failsafe = &led_wifi; - led-running = &led_wifi; - led-upgrade = &led_wifi; - }; - - 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 = "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 0x3b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_wifi: wifi { - label = "sl-r7205:green:wifi"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/TEW-638APB-V2.dts b/target/linux/ramips/dts/TEW-638APB-V2.dts deleted file mode 100644 index a014b32802..0000000000 --- a/target/linux/ramips/dts/TEW-638APB-V2.dts +++ /dev/null @@ -1,107 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "trendnet,tew-638apb-v2", "ralink,rt3050-soc"; - model = "TRENDnet TEW-638APB v2"; - - aliases { - led-boot = &led_wps_green; - led-failsafe = &led_wps_green; - led-running = &led_wps_green; - led-upgrade = &led_wps_green; - }; - - cfi@1f000000 { - compatible = "cfi-flash"; - reg = <0x1f000000 0x400000>; - bank-width = <2>; - device-width = <2>; - - 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 0x3b0000>; - }; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - wps { - label = "tew-638apb-v2:orange:wps"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - led_wps_green: wps2 { - label = "tew-638apb-v2:green:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/TEW-714TRU.dts b/target/linux/ramips/dts/TEW-714TRU.dts deleted file mode 100644 index 00e3d2df12..0000000000 --- a/target/linux/ramips/dts/TEW-714TRU.dts +++ /dev/null @@ -1,129 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "trendnet,tew-714tru", "ralink,rt5350-soc"; - model = "TRENDnet TEW714TRU"; - - leds { - compatible = "gpio-leds"; - - usb { - label = "tew-714tru:red:usb"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - trigger-sources = <&ohci_port1>, <&ehci_port1>; - linux,default-trigger = "usbport"; - }; - - wifi { - label = "tew-714tru:green:wifi"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - gpio_export { - compatible = "gpio-export"; - #size-cells = <0>; - - repeater { - gpio-export,name = "repeater_switch"; - gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; - }; - - wisp { - gpio-export,name = "wisp_switch"; - gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x1>; - mediatek,portdisable = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/UR-326N4G.dts b/target/linux/ramips/dts/UR-326N4G.dts deleted file mode 100644 index d67c2e0ec5..0000000000 --- a/target/linux/ramips/dts/UR-326N4G.dts +++ /dev/null @@ -1,126 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "upvel,ur-326n4g", "ralink,rt3052-soc"; - model = "UPVEL UR-326N4G"; - - aliases { - led-boot = &led_wps; - led-failsafe = &led_wps; - led-running = &led_wps; - led-upgrade = &led_wps; - }; - - 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 = "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 0x3b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - 3g { - label = "ur-326n4g:green:3g"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - gateway { - label = "ur-326n4g:green:gateway"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - ap { - label = "ur-326n4g:green:ap"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - led_wps: wps { - label = "ur-326n4g:green:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - - station { - label = "ur-326n4g:green:station"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset_wps { - label = "reset_wps"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - mode { - label = "mode"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4004>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/UR-336UN.dts b/target/linux/ramips/dts/UR-336UN.dts deleted file mode 100644 index 937278db92..0000000000 --- a/target/linux/ramips/dts/UR-336UN.dts +++ /dev/null @@ -1,126 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "upvel,ur-336un", "ralink,rt3052-soc"; - model = "UPVEL UR-336UN"; - - aliases { - led-boot = &led_wps; - led-failsafe = &led_wps; - led-running = &led_wps; - led-upgrade = &led_wps; - }; - - 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 = "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 0x7b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - 3g { - label = "ur-336un:green:3g"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - gateway { - label = "ur-336un:green:gateway"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - ap { - label = "ur-336un:green:ap"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - led_wps: wps { - label = "ur-336un:green:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - - station { - label = "ur-336un:green:station"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset_wps { - label = "reset_wps"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - mode { - label = "mode"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4004>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/V22RW-2X2.dts b/target/linux/ramips/dts/V22RW-2X2.dts deleted file mode 100644 index df56c80819..0000000000 --- a/target/linux/ramips/dts/V22RW-2X2.dts +++ /dev/null @@ -1,107 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "ralink,v22rw-2x2", "ralink,rt3052-soc"; - model = "Ralink AP-RT3052-V22RW-2X2"; - - aliases { - led-boot = &led_security; - led-failsafe = &led_security; - led-running = &led_security; - led-upgrade = &led_security; - }; - - 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 = "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 0x3b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_security: security { - label = "v22rw-2x2:green:security"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "v22rw-2x2:red:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/VOCORE-16M.dts b/target/linux/ramips/dts/VOCORE-16M.dts deleted file mode 100644 index 30781b53b2..0000000000 --- a/target/linux/ramips/dts/VOCORE-16M.dts +++ /dev/null @@ -1,48 +0,0 @@ -/dts-v1/; - -#include "VOCORE.dtsi" - -/ { - compatible = "vocore,vocore-16m", "vocore,vocore", "ralink,rt5350-soc"; - model = "VoCore (16M)"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0xfb0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/VOCORE-8M.dts b/target/linux/ramips/dts/VOCORE-8M.dts deleted file mode 100644 index ec301965c8..0000000000 --- a/target/linux/ramips/dts/VOCORE-8M.dts +++ /dev/null @@ -1,48 +0,0 @@ -/dts-v1/; - -#include "VOCORE.dtsi" - -/ { - compatible = "vocore,vocore-8m", "vocore,vocore", "ralink,rt5350-soc"; - model = "VoCore (8M)"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/VOCORE.dtsi b/target/linux/ramips/dts/VOCORE.dtsi deleted file mode 100644 index c5c26e77c8..0000000000 --- a/target/linux/ramips/dts/VOCORE.dtsi +++ /dev/null @@ -1,204 +0,0 @@ -#include "rt5350.dtsi" - -#include - -/ { - compatible = "vocore,vocore", "ralink,rt5350-soc"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - gpio-export { - compatible = "gpio-export"; - #size-cells = <0>; - - gpio0 { - gpio-export,name = "gpio0"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; - }; - - /* UARTF */ - gpio7 { - /* UARTF_RTS_N */ - gpio-export,name = "gpio7"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; - }; - - gpio8 { - /* UARTF_TXD */ - gpio-export,name = "gpio8"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; - }; - - gpio9 { - /* UARTF_CTS_N */ - gpio-export,name = "gpio9"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; - }; - - gpio12 { - /* UARTF_DCD_N */ - gpio-export,name = "gpio12"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; - }; - - gpio13 { - /* UARTF_DSR_N */ - gpio-export,name = "gpio13"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; - }; - - gpio14 { - /* UARTF_RIN */ - gpio-export,name = "gpio14"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; - }; - - /* JTAG */ - gpio17 { - /* JTAG_TDO */ - gpio-export,name = "gpio17"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; - }; - - gpio18 { - /* JTAG_TDI */ - gpio-export,name = "gpio18"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; - }; - - gpio19 { - /* JTAG_TMS */ - gpio-export,name = "gpio19"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>; - }; - - gpio20 { - /* JTAG_TCLK */ - gpio-export,name = "gpio20"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; - }; - - gpio21 { - /* JTAG_TRST_N */ - gpio-export,name = "gpio21"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; - }; - - /* ETH LEDs */ - gpio22 { - /* ETH0_LED */ - gpio-export,name = "gpio22"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; - }; - - gpio23 { - /* ETH1_LED */ - gpio-export,name = "gpio23"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; - }; - - gpio24 { - /* ETH2_LED */ - gpio-export,name = "gpio24"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; - }; - - gpio25 { - /* ETH3_LED */ - gpio-export,name = "gpio25"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; - }; - - gpio26 { - /* ETH4_LED */ - gpio-export,name = "gpio26"; - gpio-export,direction_may_change = <1>; - gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_status: status { - /* UARTF_RXD */ - label = "vocore:green:status"; - gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; - }; - - eth { - /* UARTF_DTR_N */ - label = "vocore:orange:eth"; - gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&gpio1 { - status = "okay"; -}; - -&i2c { - status = "okay"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "uartf", "led"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x11>; - mediatek,portdisable = <0x2e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; - -&spi1 { - status = "okay"; - - spidev@0 { - compatible = "linux,spidev"; - spi-max-frequency = <10000000>; - reg = <0>; - }; -}; diff --git a/target/linux/ramips/dts/W150M.dts b/target/linux/ramips/dts/W150M.dts deleted file mode 100644 index e128580ec8..0000000000 --- a/target/linux/ramips/dts/W150M.dts +++ /dev/null @@ -1,127 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "tenda,w150m", "ralink,rt3050-soc"; - model = "Tenda W150M"; - - aliases { - led-boot = &led_ap; - led-failsafe = &led_ap; - led-running = &led_ap; - led-upgrade = &led_ap; - }; - - 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 = "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 0x3c8000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - 3grouter { - label = "w150m:blue:3grouter"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - led_ap: ap { - label = "w150m:blue:ap"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - wisprouter { - label = "w150m:blue:wisprouter"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wirelessrouter { - label = "w150m:blue:wirelessrouter"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - - 3g { - label = "w150m:blue:3g"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - }; - - wpsreset { - label = "w150m:blue:wpsreset"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - mode { - label = "mode"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/W306R_V20.dts b/target/linux/ramips/dts/W306R_V20.dts deleted file mode 100644 index 233a6d2e46..0000000000 --- a/target/linux/ramips/dts/W306R_V20.dts +++ /dev/null @@ -1,101 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "tenda,w306r-v2", "ralink,rt3052-soc"; - model = "Tenda W306R V2.0"; - - aliases { - led-boot = &led_sys; - led-failsafe = &led_sys; - led-running = &led_sys; - led-upgrade = &led_sys; - }; - - 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 = "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 0x3b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_sys: sys { - label = "w306r-v20:green:sys"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "w306r-v20:green:wps"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "RESET/WPS"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/W502U.dts b/target/linux/ramips/dts/W502U.dts deleted file mode 100644 index 5c1b47bc03..0000000000 --- a/target/linux/ramips/dts/W502U.dts +++ /dev/null @@ -1,117 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "alfa-network,w502u", "ralink,rt3052-soc"; - model = "ALFA Network W502U"; - - aliases { - led-boot = &led_wps; - led-failsafe = &led_wps; - led-running = &led_wps; - led-upgrade = &led_wps; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - 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 = "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 0x7b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - usb { - label = "w502u:blue:usb"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - trigger-sources = <&otg_port1>; - linux,default-trigger = "usbport"; - }; - - led_wps: wps { - label = "w502u:blue:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/WCR150GN.dts b/target/linux/ramips/dts/WCR150GN.dts deleted file mode 100644 index a2f763cb8b..0000000000 --- a/target/linux/ramips/dts/WCR150GN.dts +++ /dev/null @@ -1,113 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "sparklan,wcr-150gn", "ralink,rt3050-soc"; - model = "Sparklan WCR-150GN"; - - 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 = "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 0x3b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - user { - label = "wcr-150gn:amber:user"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - trigger-sources = <&otg_port1>; - linux,default-trigger = "usbport"; - }; - - led_power: power { - label = "wcr-150gn:amber:power"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - wps { - label = "wps"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - reset { - label = "reset"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/WHR-G300N.dts b/target/linux/ramips/dts/WHR-G300N.dts deleted file mode 100644 index 3871b55495..0000000000 --- a/target/linux/ramips/dts/WHR-G300N.dts +++ /dev/null @@ -1,129 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "buffalo,whr-g300n", "ralink,rt3052-soc"; - model = "Buffalo WHR-G300N"; - - aliases { - led-boot = &led_diag; - led-failsafe = &led_diag; - led-upgrade = &led_diag; - }; - - 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 = "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 0x3a0000>; - }; - - partition@3f0000 { - label = "user"; - reg = <0x3f0000 0x10000>; - read-only; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_diag: diag { - label = "whr-g300n:red:diag"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - }; - - router { - label = "whr-g300n:green:router"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - security { - label = "whr-g300n:amber:security"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - aoss { - label = "aoss"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - router-off { - label = "router-off"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - router-on { - label = "router-on"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/WIZARD8800.dts b/target/linux/ramips/dts/WIZARD8800.dts deleted file mode 100644 index a69ed4bd09..0000000000 --- a/target/linux/ramips/dts/WIZARD8800.dts +++ /dev/null @@ -1,85 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -/ { - compatible = "easyacc,wizard-8800", "ralink,rt5350-soc"; - model = "EASYACC WI-STOR WIZARD 8800"; -}; - -&gpio0 { - status = "okay"; -}; - -&gpio1 { - status = "okay"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/WIZFI630A.dts b/target/linux/ramips/dts/WIZFI630A.dts deleted file mode 100644 index f88d5ae63f..0000000000 --- a/target/linux/ramips/dts/WIZFI630A.dts +++ /dev/null @@ -1,158 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "wiznet,wizfi630a", "ralink,rt5350-soc"; - model = "WIZnet WizFi630A"; - - aliases { - led-boot = &led_run; - led-failsafe = &led_run; - led-running = &led_run; - led-upgrade = &led_run; - }; - - chosen { - bootargs = "console=ttyS1,115200"; - }; - - leds { - compatible = "gpio-leds"; - - led_run: run { - label = "wizfi630a::run"; - gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "wizfi630a::wps"; - gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; - }; - - uart1 { - label = "wizfi630a::uart1"; - gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; - }; - - uart2 { - label = "wizfi630a::uart2"; - gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - scm1 { - label = "SCM1"; - gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - scm2 { - label = "SCM2"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&gpio1 { - status = "okay"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - #size-cells = <1>; - label = "uboot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - #size-cells = <1>; - label = "uboot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - #size-cells = <1>; - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - #size-cells = <1>; - label = "firmware"; - reg = <0x50000 0xfb0000>; - }; - }; - }; -}; - -&uart { - status = "okay"; - pinctrl-names = "default"; - pinctrl-0 = <&uartf_pins>; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag" ; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x17>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/WL-330N.dts b/target/linux/ramips/dts/WL-330N.dts deleted file mode 100644 index ee0cd0ad1f..0000000000 --- a/target/linux/ramips/dts/WL-330N.dts +++ /dev/null @@ -1,110 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "asus,wl-330n", "ralink,rt3050-soc"; - model = "Asus WL-330N"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - link { - label = "wl-330n:blue:link"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "wl-330n:blue:power"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x3b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/WL-330N3G.dts b/target/linux/ramips/dts/WL-330N3G.dts deleted file mode 100644 index 235c90fc4d..0000000000 --- a/target/linux/ramips/dts/WL-330N3G.dts +++ /dev/null @@ -1,119 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "asus,wl-330n3g", "ralink,rt3050-soc"; - model = "Asus WL-330N3G"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - 3g { - label = "wl-330n3g:blue:3g"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - 3g2 { - label = "wl-330n3g:red:3g"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "wl-330n3g:blue:power"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x3b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/WL-351.dts b/target/linux/ramips/dts/WL-351.dts deleted file mode 100644 index 1b31bda736..0000000000 --- a/target/linux/ramips/dts/WL-351.dts +++ /dev/null @@ -1,133 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "sitecom,wl-351", "ralink,rt3052-soc"; - model = "Sitecom WL-351 v1 002"; - - 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 = "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 0x3b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "wl-351:amber:power"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - }; - - unpopulated { - label = "wl-351:amber:unpopulated"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - unpopulated2 { - label = "wl-351:blue:unpopulated"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - rtl8366rb { - compatible = "realtek,rtl8366rb"; - gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; - gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; - pinctrl-names = "default"; - pinctrl-0 = <&rgmii_pins>; -}; - -&esw { - ralink,rgmii = <1>; - mediatek,portmap = <0x3f>; - ralink,fct2 = <0x0002500c>; - /* - * ext phy base addr 31, rx/tx clock skew 0, - * turbo mii off, rgmi 3.3v off, port 5 polling off - * port5: enabled, gige, full-duplex, rx/tx-flow-control - * port6: enabled, gige, full-duplex, rx/tx-flow-control - */ - ralink,fpa2 = <0x1f003fff>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/WNCE2001.dts b/target/linux/ramips/dts/WNCE2001.dts deleted file mode 100644 index 3f0d93d8a4..0000000000 --- a/target/linux/ramips/dts/WNCE2001.dts +++ /dev/null @@ -1,149 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "netgear,wnce2001", "ralink,rt3052-soc"; - model = "Netgear WNCE2001"; - - aliases { - led-boot = &led_power_green; - led-failsafe = &led_power_green; - led-running = &led_power_green; - led-upgrade = &led_power_green; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - leds { - compatible = "gpio-leds"; - - led_power_green: power-green { - label = "wnce2001:green:power"; - gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; - }; - - power-red { - label = "wnce2001:red:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - wlan-green { - label = "wnce2001:green:wlan"; - gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; - }; - - wlan-red { - label = "wnce2001:red:wlan"; - gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - rt { - label = "rt"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - ap { - label = "ap"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - factory: partition@30000 { - label = "factory"; - reg = <0x30000 0x10000>; - read-only; - }; - - partition@40000 { - label = "config"; - reg = <0x40000 0x20000>; - read-only; - }; - - partition@60000 { - label = "language"; - reg = <0x60000 0x30000>; - read-only; - }; - - partition@90000 { - label = "pot"; - reg = <0x90000 0x10000>; - read-only; - }; - - partition@a0000 { - label = "checksum"; - reg = <0xa0000 0x10000>; - }; - - partition@b0000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0xb0000 0x350000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/WR512-3GN-4M.dts b/target/linux/ramips/dts/WR512-3GN-4M.dts deleted file mode 100644 index beba805505..0000000000 --- a/target/linux/ramips/dts/WR512-3GN-4M.dts +++ /dev/null @@ -1,45 +0,0 @@ -/dts-v1/; - -#include "WR512-3GN.dtsi" - -/ { - compatible = "unbranded,wr512-3gn-4m", "unbranded,wr512-3gn", "ralink,rt3052-soc"; - model = "WR512-3GN (4M)"; - - 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 = "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 0x3c8000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/WR512-3GN-8M.dts b/target/linux/ramips/dts/WR512-3GN-8M.dts deleted file mode 100644 index 118c69a340..0000000000 --- a/target/linux/ramips/dts/WR512-3GN-8M.dts +++ /dev/null @@ -1,45 +0,0 @@ -/dts-v1/; - -#include "WR512-3GN.dtsi" - -/ { - compatible = "unbranded,wr512-3gn-8m", "unbranded,wr512-3gn", "ralink,rt3052-soc"; - model = "WR512-3GN (8M)"; - - 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 = "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 0x7b0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/WR512-3GN.dtsi b/target/linux/ramips/dts/WR512-3GN.dtsi deleted file mode 100644 index 5761b8b532..0000000000 --- a/target/linux/ramips/dts/WR512-3GN.dtsi +++ /dev/null @@ -1,82 +0,0 @@ -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "unbranded,wr512-3gn", "ralink,rt3052-soc"; - - aliases { - led-boot = &led_wps; - led-failsafe = &led_wps; - led-running = &led_wps; - led-upgrade = &led_wps; - }; - - leds { - compatible = "gpio-leds"; - - 3g { - label = "wr512-3gn:green:3g"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - gateway { - label = "wr512-3gn:green:gateway"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - ap { - label = "wr512-3gn:green:ap"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - led_wps: wps { - label = "wr512-3gn:green:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - - station { - label = "wr512-3gn:green:station"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset_wps { - label = "reset_wps"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - mode { - label = "mode"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/WR6202.dts b/target/linux/ramips/dts/WR6202.dts deleted file mode 100644 index 1caec41a4b..0000000000 --- a/target/linux/ramips/dts/WR6202.dts +++ /dev/null @@ -1,119 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "accton,wr6202", "ralink,rt3052-soc"; - model = "Accton WR6202"; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - leds { - compatible = "gpio-leds"; - - wps { - label = "wr6202:blue:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - - 3g { - label = "wr6202:blue:3g"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - 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 = "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 0x7b0000>; - }; - }; - }; - - gpio_export { - compatible = "gpio-export"; - #size-cells = <0>; - - usb { - gpio-export,name = "usb"; - gpio-export,output = <0>; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/WT1520-4M.dts b/target/linux/ramips/dts/WT1520-4M.dts deleted file mode 100644 index 1f54efe429..0000000000 --- a/target/linux/ramips/dts/WT1520-4M.dts +++ /dev/null @@ -1,48 +0,0 @@ -/dts-v1/; - -#include "WT1520.dtsi" - -/ { - compatible = "nexx,wt1520-4m", "nexx,wt1520", "ralink,rt5350-soc"; - model = "Nexx WT1520 (4M)"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x3b0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/WT1520-8M.dts b/target/linux/ramips/dts/WT1520-8M.dts deleted file mode 100644 index e238826aae..0000000000 --- a/target/linux/ramips/dts/WT1520-8M.dts +++ /dev/null @@ -1,48 +0,0 @@ -/dts-v1/; - -#include "WT1520.dtsi" - -/ { - compatible = "nexx,wt1520-8m", "nexx,wt1520", "ralink,rt5350-soc"; - model = "Nexx WT1520 (8M)"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/WT1520.dtsi b/target/linux/ramips/dts/WT1520.dtsi deleted file mode 100644 index 28d498bc87..0000000000 --- a/target/linux/ramips/dts/WT1520.dtsi +++ /dev/null @@ -1,49 +0,0 @@ -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "nexx,wt1520", "ralink,rt5350-soc"; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x2000000>; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/X5.dts b/target/linux/ramips/dts/X5.dts deleted file mode 100644 index 7e3d8b6f03..0000000000 --- a/target/linux/ramips/dts/X5.dts +++ /dev/null @@ -1,148 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "poray,x5", "ralink,rt5350-soc"; - model = "Poray X5"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "x5:green:power"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - - 20 { - label = "x5:green:20"; - gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; - }; - - 50 { - label = "x5:green:50"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - 80 { - label = "x5:green:80"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - bat { - label = "bat"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - mode { - label = "mode"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - linux,code = ; - linux,input-type = ; - }; - }; - - gpio_export { - compatible = "gpio-export"; - #size-cells = <0>; - - usb-mode { - gpio-export,name = "usb-mode"; - gpio-export,output = <0>; - gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; - mediatek,led_polarity = <1>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; - ralink,led-polarity = <1>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/X8.dts b/target/linux/ramips/dts/X8.dts deleted file mode 100644 index 3b6d60478f..0000000000 --- a/target/linux/ramips/dts/X8.dts +++ /dev/null @@ -1,109 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "poray,x8", "ralink,rt5350-soc"; - model = "Poray X8"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "x8:green:power"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x2f>; - mediatek,led_polarity = <1>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; - ralink,led-polarity = <1>; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/XDXRN502J.dts b/target/linux/ramips/dts/XDXRN502J.dts deleted file mode 100644 index 2d1b416ce5..0000000000 --- a/target/linux/ramips/dts/XDXRN502J.dts +++ /dev/null @@ -1,105 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "unbranded,xdx-rn502j", "ralink,rt3052-soc"; - model = "XDX RN502J"; - - 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 = "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 0x3b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - wifi { - label = "xdxrn502j:green:wifi"; - gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "xdxrn502j:green:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/ZL5900V2.dts b/target/linux/ramips/dts/ZL5900V2.dts deleted file mode 100644 index d5d0ca3728..0000000000 --- a/target/linux/ramips/dts/ZL5900V2.dts +++ /dev/null @@ -1,105 +0,0 @@ -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "zorlik,zl5900v2", "ralink,rt5350-soc"; - model = "Zorlik ZL5900V2"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - lan { - label = "zl5900v2:green:lan"; - gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; - }; - - led_power: power { - label = "zl5900v2:blue:power"; - gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x7b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0>; - mediatek,portdisable = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/kn.dts b/target/linux/ramips/dts/kn.dts deleted file mode 100644 index 1f9928e59a..0000000000 --- a/target/linux/ramips/dts/kn.dts +++ /dev/null @@ -1,125 +0,0 @@ -/dts-v1/; - -#include "rt3050.dtsi" - -#include -#include - -/ { - compatible = "zyxel,keenetic", "ralink,rt3052-soc"; - model = "ZyXEL Keenetic"; - - 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 = "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 0x3b0000>; - }; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "kn:green:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - usb { - label = "kn:green:usb"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - trigger-sources = <&otg_port1>; - linux,default-trigger = "usbport"; - }; - - wps { - label = "kn:green:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - rfkill { - label = "rfkill"; - gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; - linux,code = ; - linux,input-type = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x2f>; -}; - -&wmac { - ralink,mtd-eeprom = <&factory 0>; -}; - -&otg { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/kn_st.dts b/target/linux/ramips/dts/kn_st.dts deleted file mode 100644 index 16ab9567c0..0000000000 --- a/target/linux/ramips/dts/kn_st.dts +++ /dev/null @@ -1,115 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; - -#include "rt5350.dtsi" - -#include -#include - -/ { - compatible = "zyxel,keenetic-start", "ralink,rt5350-soc"; - model = "ZyXEL Keenetic Start"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - leds { - compatible = "gpio-leds"; - - led_status: power { - label = "zyxel:green:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - internet { - label = "zyxel:green:internet"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - 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 0x3b0000>; - }; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "uartf"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - - -&esw { - mediatek,portmap = <0x2f>; - mediatek,led_polarity = <0x17>; -}; - -&wmac { - status = "okay"; - ralink,led-polarity = <1>; - ralink,mtd-eeprom = <&factory 0>; -}; diff --git a/target/linux/ramips/dts/rt3050_8devices_carambola.dts b/target/linux/ramips/dts/rt3050_8devices_carambola.dts new file mode 100644 index 0000000000..aaaea8fd4e --- /dev/null +++ b/target/linux/ramips/dts/rt3050_8devices_carambola.dts @@ -0,0 +1,83 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "8devices,carambola", "ralink,rt3050-soc"; + model = "8devices Carambola"; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + 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 = "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 0x7b0000>; + }; + }; + }; + + i2c-gpio { + compatible = "i2c-gpio"; + gpios = <&gpio0 1 GPIO_ACTIVE_HIGH &gpio0 2 GPIO_ACTIVE_HIGH>; + i2c-gpio,delay-us = <10>; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x3f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3050_allnet_all0256n-4m.dts b/target/linux/ramips/dts/rt3050_allnet_all0256n-4m.dts new file mode 100644 index 0000000000..3c152040fa --- /dev/null +++ b/target/linux/ramips/dts/rt3050_allnet_all0256n-4m.dts @@ -0,0 +1,48 @@ +/dts-v1/; + +#include "rt3050_allnet_all0256n.dtsi" + +/ { + compatible = "allnet,all0256n-4m", "allnet,all0256n", "ralink,rt3050-soc"; + model = "Allnet ALL0256N (4M)"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x3c8000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt3050_allnet_all0256n-8m.dts b/target/linux/ramips/dts/rt3050_allnet_all0256n-8m.dts new file mode 100644 index 0000000000..e901f3c909 --- /dev/null +++ b/target/linux/ramips/dts/rt3050_allnet_all0256n-8m.dts @@ -0,0 +1,48 @@ +/dts-v1/; + +#include "rt3050_allnet_all0256n.dtsi" + +/ { + compatible = "allnet,all0256n-8m", "allnet,all0256n", "ralink,rt3050-soc"; + model = "Allnet ALL0256N (8M)"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi b/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi new file mode 100644 index 0000000000..d31547c335 --- /dev/null +++ b/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi @@ -0,0 +1,63 @@ +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "allnet,all0256n", "ralink,rt3050-soc"; + + leds { + compatible = "gpio-leds"; + + rssilow { + label = "all0256n:green:rssilow"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + + rssimed { + label = "all0256n:green:rssimed"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + rssihigh { + label = "all0256n:green:rssihigh"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&gpio0 { + status = "okay"; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x3f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt3050_alphanetworks_asl26555-16m.dts b/target/linux/ramips/dts/rt3050_alphanetworks_asl26555-16m.dts new file mode 100644 index 0000000000..76781ab113 --- /dev/null +++ b/target/linux/ramips/dts/rt3050_alphanetworks_asl26555-16m.dts @@ -0,0 +1,66 @@ +/dts-v1/; + +#include "rt3050_alphanetworks_asl26555.dtsi" + +/ { + compatible = "alphanetworks,asl26555-16m", "alphanetworks,asl26555", "ralink,rt3050-soc"; + model = "Alpha ASL26555 (16M)"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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; + }; + + partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0xf80000>; + }; + + partition@fd0000 { + label = "cert"; + reg = <0xfd0000 0x10000>; + read-only; + }; + + partition@fe0000 { + label = "langpack"; + reg = <0xfe0000 0x10000>; + read-only; + }; + + devdata: partition@ff0000 { + label = "devdata"; + reg = <0xff0000 0x10000>; + read-only; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt3050_alphanetworks_asl26555-8m.dts b/target/linux/ramips/dts/rt3050_alphanetworks_asl26555-8m.dts new file mode 100644 index 0000000000..3d11de0fab --- /dev/null +++ b/target/linux/ramips/dts/rt3050_alphanetworks_asl26555-8m.dts @@ -0,0 +1,60 @@ +/dts-v1/; + +#include "rt3050_alphanetworks_asl26555.dtsi" + +/ { + compatible = "alphanetworks,asl26555-8m", "alphanetworks,asl26555", "ralink,rt3050-soc"; + model = "Alpha ASL26555 (8M)"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "uboot"; + reg = <0x0 0x30000>; + read-only; + }; + + devdata: partition@30000 { + label = "uboot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + partition@40000 { + label = "rgdb"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x790000>; + }; + + partition@7e0000 { + label = "cert"; + reg = <0x7e0000 0x10000>; + read-only; + }; + + partition@7f0000 { + label = "langpack"; + reg = <0x7f0000 0x10000>; + read-only; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi b/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi new file mode 100644 index 0000000000..d1c21f8082 --- /dev/null +++ b/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi @@ -0,0 +1,107 @@ +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "alphanetworks,asl26555", "ralink,rt3050-soc"; + + aliases { + led-boot = &led_power_green; + led-failsafe = &led_power_green; + led-running = &led_power_green; + led-upgrade = &led_power_green; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + eth { + label = "asl26555:green:eth"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + }; + + wan-red { + label = "asl26555:red:wan"; + gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; + }; + + wan-green { + label = "asl26555:green:wan"; + gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; + }; + + wlan { + label = "asl26555:green:wlan"; + gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; + }; + + led_power_green: power-green { + label = "asl26555:green:power"; + gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; + }; + + power-red { + label = "asl26555:red:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; + }; + + 3g-green { + label = "asl26555:green:3g"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + trigger-sources = <&otg_port1>; + linux,default-trigger = "usbport"; + }; + + 3g-red { + label = "asl26555:red:3g"; + gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&gpio0 { + status = "okay"; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&devdata 0x4004>; +}; + +&esw { + mediatek,portmap = <0x1e>; +}; + +&wmac { + ralink,mtd-eeprom = <&devdata 0x4000>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts b/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts new file mode 100644 index 0000000000..b924229a7e --- /dev/null +++ b/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts @@ -0,0 +1,114 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "arcwireless,freestation5", "ralink,rt3050-soc"; + model = "ARC FreeStation5"; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + 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 = "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 0x7b0000>; + }; + }; + }; + + gpio-export { + compatible = "gpio-export"; + + /* + * Used to enable power-over-ethernet passthrough from port0 to port1. + * Disable passthrough by default to prevent accidental equipment damage. + */ + poe { + gpio-export,name = "poe-passthrough"; + gpio-export,output = <1>; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + }; + + leds { + compatible = "gpio-leds"; + + /* + * The following leds are defined in the ArcOS firmware, but reportedly + * not present in the Freestation5 device. + */ + wifi { + label = "freestation5:unknown:wifi"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + }; + + powerg { + label = "freestation5:unknown:powerg"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "freestation5:unknown:usb"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x01>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts b/target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts new file mode 100644 index 0000000000..8f0544e7ef --- /dev/null +++ b/target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts @@ -0,0 +1,89 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "asus,rt-g32-b1", "ralink,rt3050-soc"; + model = "Asus RT-G32 B1"; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "devdata"; + reg = <0x30000 0x10000>; + read-only; + }; + + devconf: partition@40000 { + label = "devconf"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x3b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&devconf 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&devconf 0>; +}; diff --git a/target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts b/target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts new file mode 100644 index 0000000000..3b77a4ce3c --- /dev/null +++ b/target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts @@ -0,0 +1,93 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "asus,rt-n10-plus", "ralink,rt3050-soc"; + model = "Asus RT-N10+"; + + aliases { + led-boot = &led_wps; + led-failsafe = &led_wps; + led-running = &led_wps; + led-upgrade = &led_wps; + }; + + 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 = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "devdata"; + reg = <0x30000 0x10000>; + read-only; + }; + + devconf: partition@40000 { + label = "devconf"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x3b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_wps: wps { + label = "rt-n10-plus:green:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +ðernet { + mtd-mac-address = <&devconf 0x4>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&devconf 0>; +}; diff --git a/target/linux/ramips/dts/rt3050_asus_wl-330n.dts b/target/linux/ramips/dts/rt3050_asus_wl-330n.dts new file mode 100644 index 0000000000..ee0cd0ad1f --- /dev/null +++ b/target/linux/ramips/dts/rt3050_asus_wl-330n.dts @@ -0,0 +1,110 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "asus,wl-330n", "ralink,rt3050-soc"; + model = "Asus WL-330N"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + leds { + compatible = "gpio-leds"; + + link { + label = "wl-330n:blue:link"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "wl-330n:blue:power"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x3b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts b/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts new file mode 100644 index 0000000000..235c90fc4d --- /dev/null +++ b/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts @@ -0,0 +1,119 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "asus,wl-330n3g", "ralink,rt3050-soc"; + model = "Asus WL-330N3G"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + leds { + compatible = "gpio-leds"; + + 3g { + label = "wl-330n3g:blue:3g"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + 3g2 { + label = "wl-330n3g:red:3g"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "wl-330n3g:blue:power"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x3b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts b/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts new file mode 100644 index 0000000000..1c44e28fe4 --- /dev/null +++ b/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts @@ -0,0 +1,116 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "dlink,dcs-930", "ralink,rt3050-soc"; + model = "D-Link DCS-930"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + cfi@1f000000 { + compatible = "cfi-flash"; + reg = <0x1f000000 0x400000>; + bank-width = <2>; + device-width = <2>; + + 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 0x3b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + wifi { + label = "dcs-930:red:alert"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + }; + + led_status: status { + label = "dcs-930:green:status"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "dcs-930:blue:wps"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts b/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts new file mode 100644 index 0000000000..8bc77e422d --- /dev/null +++ b/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts @@ -0,0 +1,122 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "dlink,dir-300-b1", "ralink,rt3050-soc"; + model = "D-Link DIR-300 B1"; + + aliases { + led-boot = &led_status_green; + led-failsafe = &led_status_green; + led-running = &led_status_green; + led-upgrade = &led_status_green; + }; + + 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 = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + devdata: partition@30000 { + label = "devdata"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "devconf"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x3b0000>; + }; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + status { + label = "dir-300-b1:amber:status"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + }; + + led_status_green: status2 { + label = "dir-300-b1:green:status"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wan { + label = "dir-300-b1:amber:wan"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + + wan2 { + label = "dir-300-b1:green:wan"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "dir-300-b1:blue:wps"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&devdata 0x4004>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&devdata 0x4000>; +}; diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts b/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts new file mode 100644 index 0000000000..a77bfd717f --- /dev/null +++ b/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts @@ -0,0 +1,122 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "dlink,dir-600-b1", "ralink,rt3050-soc"; + model = "D-Link DIR-600 B1"; + + aliases { + led-boot = &led_status_green; + led-failsafe = &led_status_green; + led-running = &led_status_green; + led-upgrade = &led_status_green; + }; + + 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 = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + devdata: partition@30000 { + label = "devdata"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "devconf"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x3b0000>; + }; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + status { + label = "dir-600-b1:amber:status"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + }; + + led_status_green: status2 { + label = "dir-600-b1:green:status"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wan { + label = "dir-600-b1:amber:wan"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + + wan2 { + label = "dir-600-b1:green:wan"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "dir-600-b1:blue:wps"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&devdata 0x4004>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&devdata 0x4000>; +}; diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts b/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts new file mode 100644 index 0000000000..69cc5e252a --- /dev/null +++ b/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts @@ -0,0 +1,121 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "dlink,dir-615-d", "ralink,rt3050-soc"; + model = "D-Link DIR-615 D"; + + aliases { + led-boot = &led_status_green; + led-failsafe = &led_status_green; + led-running = &led_status_green; + led-upgrade = &led_status_green; + }; + + 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 = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + devdata: partition@30000 { + label = "devdata"; + reg = <0x30000 0x10000>; + read-only; + }; + + partition@40000 { + label = "devconf"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x3b0000>; + }; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + status { + label = "dir-615-d:amber:status"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + }; + + led_status_green: status2 { + label = "dir-615-d:green:status"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + default-state = "on"; + }; + + wan { + label = "dir-615-d:amber:wan"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + + wan2 { + label = "dir-615-d:green:wan"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "dir-615-d:blue:wps"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&devdata 0x4000>; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + + diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts b/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts new file mode 100644 index 0000000000..24fdec8ed4 --- /dev/null +++ b/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts @@ -0,0 +1,131 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "dlink,dir-620-a1", "ralink,rt3050-soc"; + model = "D-Link DIR-620 A1"; + + aliases { + led-boot = &led_status_green; + led-failsafe = &led_status_green; + led-running = &led_status_green; + led-upgrade = &led_status_green; + }; + + 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 = "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 0x7b0000>; + }; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + status { + label = "dir-620-a1:amber:status"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + }; + + led_status_green: status2 { + label = "dir-620-a1:green:status"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wan { + label = "dir-620-a1:amber:wan"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + + wan2 { + label = "dir-620-a1:green:wan"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "dir-620-a1:blue:wps"; + gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; + }; + + wps2 { + label = "dir-620-a1:amber:wps"; + gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts b/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts new file mode 100644 index 0000000000..3859812217 --- /dev/null +++ b/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts @@ -0,0 +1,124 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "edimax,3g-6200n", "ralink,rt3050-soc"; + model = "Edimax 3g-6200n"; + + 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 = "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@3e0000 { + label = "cimage"; + reg = <0x3e0000 0x20000>; + read-only; + }; + + partition@50000 { + compatible = "edimax,uimage"; + label = "firmware"; + reg = <0x50000 0x390000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "3g-6200n:green:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "3g-6200n:amber:wlan"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + + 3g { + label = "3g-6200n:blue:3g"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + trigger-sources = <&otg_port1>; + linux,default-trigger = "usbport"; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + rfkill { + label = "wlanswitch"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts b/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts new file mode 100644 index 0000000000..7742561e50 --- /dev/null +++ b/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts @@ -0,0 +1,111 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "edimax,3g-6200nl", "ralink,rt3050-soc"; + model = "Edimax 3g-6200nl"; + + aliases { + led-boot = &led_internet; + led-failsafe = &led_internet; + led-running = &led_internet; + led-upgrade = &led_internet; + }; + + 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 = "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@3e0000 { + label = "cimage"; + reg = <0x3e0000 0x20000>; + read-only; + }; + + partition@50000 { + compatible = "edimax,uimage"; + label = "firmware"; + reg = <0x50000 0x390000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_internet: internet { + label = "3g-6200nl:green:internet"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "3g-6200nl:green:wlan"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portdisable = <0x37>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3050_huawei_d105.dts b/target/linux/ramips/dts/rt3050_huawei_d105.dts new file mode 100644 index 0000000000..10732cc5ec --- /dev/null +++ b/target/linux/ramips/dts/rt3050_huawei_d105.dts @@ -0,0 +1,107 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "huawei,d105", "ralink,rt3050-soc"; + model = "Huawei D105"; + + 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 = "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 0x3b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "d105:red:power"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "d105:green:usb"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + trigger-sources = <&otg_port1>; + linux,default-trigger = "usbport"; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts b/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts new file mode 100644 index 0000000000..702d779aa2 --- /dev/null +++ b/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts @@ -0,0 +1,99 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "jcg,jhr-n805r", "ralink,rt3050-soc"; + model = "JCG JHR-N805R"; + + aliases { + led-boot = &led_system; + led-failsafe = &led_system; + led-running = &led_system; + led-upgrade = &led_system; + }; + + leds { + compatible = "gpio-leds"; + + led_system: system { + label = "jhr-n805r:blue:system"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x3b0000>; + }; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x2e>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt3050_netcore_nw718.dts b/target/linux/ramips/dts/rt3050_netcore_nw718.dts new file mode 100644 index 0000000000..61af498fd8 --- /dev/null +++ b/target/linux/ramips/dts/rt3050_netcore_nw718.dts @@ -0,0 +1,121 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "netcore,nw718", "ralink,rt3050-soc"; + model = "Netcore NW718"; + + aliases { + led-boot = &led_cpu; + led-failsafe = &led_cpu; + led-running = &led_cpu; + led-upgrade = &led_cpu; + }; + + leds { + compatible = "gpio-leds"; + + led_cpu: cpu { + label = "nw718:amber:cpu"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "nw718:amber:usb"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + trigger-sources = <&otg_port1>; + linux,default-trigger = "usbport"; + }; + + wps { + label = "nw718:amber:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&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 = "config"; + reg = <0x30000 0x20000>; + read-only; + }; + + factory: partition@50000 { + label = "factory"; + reg = <0x50000 0x10000>; + read-only; + }; + + partition@60000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x60000 0x3a0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts b/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts new file mode 100644 index 0000000000..a2f763cb8b --- /dev/null +++ b/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts @@ -0,0 +1,113 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "sparklan,wcr-150gn", "ralink,rt3050-soc"; + model = "Sparklan WCR-150GN"; + + 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 = "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 0x3b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + user { + label = "wcr-150gn:amber:user"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + trigger-sources = <&otg_port1>; + linux,default-trigger = "usbport"; + }; + + led_power: power { + label = "wcr-150gn:amber:power"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + wps { + label = "wps"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + reset { + label = "reset"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts b/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts new file mode 100644 index 0000000000..52638f94e6 --- /dev/null +++ b/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts @@ -0,0 +1,103 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "teltonika,rut5xx", "ralink,rt3050-soc"; + model = "Teltonika RUT5XX"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + leds { + compatible = "gpio-leds"; + + led_status: status { + label = "rut5xx:green:status"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0xfb0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3050_tenda_w150m.dts b/target/linux/ramips/dts/rt3050_tenda_w150m.dts new file mode 100644 index 0000000000..e128580ec8 --- /dev/null +++ b/target/linux/ramips/dts/rt3050_tenda_w150m.dts @@ -0,0 +1,127 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "tenda,w150m", "ralink,rt3050-soc"; + model = "Tenda W150M"; + + aliases { + led-boot = &led_ap; + led-failsafe = &led_ap; + led-running = &led_ap; + led-upgrade = &led_ap; + }; + + 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 = "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 0x3c8000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + 3grouter { + label = "w150m:blue:3grouter"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + led_ap: ap { + label = "w150m:blue:ap"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + wisprouter { + label = "w150m:blue:wisprouter"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wirelessrouter { + label = "w150m:blue:wirelessrouter"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + + 3g { + label = "w150m:blue:3g"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + }; + + wpsreset { + label = "w150m:blue:wpsreset"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + mode { + label = "mode"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts b/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts new file mode 100644 index 0000000000..a014b32802 --- /dev/null +++ b/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts @@ -0,0 +1,107 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "trendnet,tew-638apb-v2", "ralink,rt3050-soc"; + model = "TRENDnet TEW-638APB v2"; + + aliases { + led-boot = &led_wps_green; + led-failsafe = &led_wps_green; + led-running = &led_wps_green; + led-upgrade = &led_wps_green; + }; + + cfi@1f000000 { + compatible = "cfi-flash"; + reg = <0x1f000000 0x400000>; + bank-width = <2>; + device-width = <2>; + + 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 0x3b0000>; + }; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + wps { + label = "tew-638apb-v2:orange:wps"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + led_wps_green: wps2 { + label = "tew-638apb-v2:green:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt3052_accton_wr6202.dts b/target/linux/ramips/dts/rt3052_accton_wr6202.dts new file mode 100644 index 0000000000..1caec41a4b --- /dev/null +++ b/target/linux/ramips/dts/rt3052_accton_wr6202.dts @@ -0,0 +1,119 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "accton,wr6202", "ralink,rt3052-soc"; + model = "Accton WR6202"; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + leds { + compatible = "gpio-leds"; + + wps { + label = "wr6202:blue:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + + 3g { + label = "wr6202:blue:3g"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + 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 = "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 0x7b0000>; + }; + }; + }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + usb { + gpio-export,name = "usb"; + gpio-export,output = <0>; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts b/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts new file mode 100644 index 0000000000..5c1b47bc03 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts @@ -0,0 +1,117 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "alfa-network,w502u", "ralink,rt3052-soc"; + model = "ALFA Network W502U"; + + aliases { + led-boot = &led_wps; + led-failsafe = &led_wps; + led-running = &led_wps; + led-upgrade = &led_wps; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + 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 = "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 0x7b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + usb { + label = "w502u:blue:usb"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + trigger-sources = <&otg_port1>; + linux,default-trigger = "usbport"; + }; + + led_wps: wps { + label = "w502u:blue:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_argus_atp-52b.dts b/target/linux/ramips/dts/rt3052_argus_atp-52b.dts new file mode 100644 index 0000000000..2fa5c19d04 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_argus_atp-52b.dts @@ -0,0 +1,110 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "argus,atp-52b", "ralink,rt3052-soc"; + model = "Argus ATP-52B"; + + aliases { + led-boot = &led_run; + led-failsafe = &led_run; + led-running = &led_run; + led-upgrade = &led_run; + }; + + 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 = "bootloader"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "config"; + reg = <0x30000 0x10000>; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x7a0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_run: run { + label = "atp-52b:green:run"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + net { + label = "atp-52b:amber:net"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts b/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts new file mode 100644 index 0000000000..97f105a631 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts @@ -0,0 +1,96 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "asiarf,awapn2403", "ralink,rt3052-soc"; + model = "AsiaRF AWAPN2403"; + + aliases { + led-boot = &led_wps; + led-failsafe = &led_wps; + led-running = &led_wps; + led-upgrade = &led_wps; + }; + + + leds { + compatible = "gpio-leds"; + + led_wps: wps { + label = "awapn2403:green:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x3b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts b/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts new file mode 100644 index 0000000000..c3a3d2346f --- /dev/null +++ b/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts @@ -0,0 +1,111 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "asus,rt-n13u", "ralink,rt3052-soc"; + model = "Asus RT-N13U"; + + 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 = "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 0x7b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "rt-n13u:blue:power"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + }; + + wifi { + label = "rt-n13u:blue:wifi"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <10>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts b/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts new file mode 100644 index 0000000000..ffb76e3bf4 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts @@ -0,0 +1,131 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "aximcom,mr-102n", "ralink,rt3052-soc"; + model = "AXIMCom MR-102N"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + 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 = "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 0x790000>; + }; + + partition@7e0000 { + label = "nvram"; + reg = <0x7e0000 0x10000>; + }; + + partition@7f0000 { + label = "nvram_backup"; + reg = <0x7f0000 0x10000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + usb { + label = "mr-102n:green:usb"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + trigger-sources = <&otg_port1>; + linux,default-trigger = "usbport"; + }; + + led_status: status { + label = "mr-102n:amber:status"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "mr-102n:green:wlan"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + status = "okay"; + #mediatek,portmap = <0x3e>; + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts b/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts new file mode 100644 index 0000000000..372d18e75e --- /dev/null +++ b/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts @@ -0,0 +1,129 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "aztech,hw550-3g", "ralink,rt3052-soc"; + model = "Aztech HW550-3G"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + 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 = "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 0x7b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + usb { + label = "hw550-3g:green:usb"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + trigger-sources = <&otg_port1>; + linux,default-trigger = "usbport"; + }; + + 3g { + label = "hw550-3g:green:3g"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + led_status: status { + label = "hw550-3g:green:status"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "hw550-3g:green:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + connect { + label = "connect"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts b/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts new file mode 100644 index 0000000000..93725e9336 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts @@ -0,0 +1,146 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "belkin,f5d8235-v2", "ralink,rt3052-soc"; + model = "Belkin F5D8235 v2"; + + 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>; + + uboot: partition@0 { + label = "uboot"; + reg = <0x0 0x50000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x790000>; + }; + + partition@7e0000 { + label = "nvram"; + reg = <0x7e0000 0x10000>; + }; + + factory: partition@7f0000 { + label = "factory"; + reg = <0x7f0000 0x10000>; + }; + }; + }; + + rtl8366rb { + compatible = "realtek,rtl8366rb"; + gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; + gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; + }; + + leds { + compatible = "gpio-leds"; + + internet { + label = "f5d8235-v2:blue:internet"; + gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + }; + + internet2 { + label = "f5d8235-v2:amber:internet"; + gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; + }; + + modem { + label = "f5d8235-v2:blue:modem"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + modem2 { + label = "f5d8235-v2:amber:modem"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + }; + + led_router: router { + label = "f5d8235-v2:blue:router"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + storage { + label = "f5d8235-v2:blue:storage"; + gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; + trigger-sources = <&otg_port1>; + linux,default-trigger = "usbport"; + }; + + storage2 { + label = "f5d8235-v2:amber:storage"; + gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; + }; + + security { + label = "f5d8235-v2:blue:security"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + + security2 { + label = "f5d8235-v2:amber:security"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&uboot 0x40004>; + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; +}; + +&esw { + ralink,rgmii = <1>; + mediatek,portmap = <0x3f>; + ralink,fct2 = <0x0002500c>; + /* + * ext phy base addr 31, rx/tx clock skew 0, + * turbo mii off, rgmi 3.3v off, port 5 polling off + * port5: enabled, gige, full-duplex, rx/tx-flow-control + * port6: enabled, gige, full-duplex, rx/tx-flow-control + */ + ralink,fpa2 = <0x1f003fff>; +}; + +&wmac { + ralink,mtd-eeprom = <&uboot 0x40000>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts b/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts new file mode 100644 index 0000000000..3871b55495 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts @@ -0,0 +1,129 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "buffalo,whr-g300n", "ralink,rt3052-soc"; + model = "Buffalo WHR-G300N"; + + aliases { + led-boot = &led_diag; + led-failsafe = &led_diag; + led-upgrade = &led_diag; + }; + + 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 = "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 0x3a0000>; + }; + + partition@3f0000 { + label = "user"; + reg = <0x3f0000 0x10000>; + read-only; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_diag: diag { + label = "whr-g300n:red:diag"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + }; + + router { + label = "whr-g300n:green:router"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + security { + label = "whr-g300n:amber:security"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + aoss { + label = "aoss"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + router-off { + label = "router-off"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + router-on { + label = "router-on"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts b/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts new file mode 100644 index 0000000000..06d490cacc --- /dev/null +++ b/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts @@ -0,0 +1,138 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "dlink,dap-1350", "ralink,rt3052-soc"; + model = "D-Link DAP-1350"; + + aliases { + led-boot = &led_power_blue; + led-failsafe = &led_power_blue; + led-running = &led_power_blue; + led-upgrade = &led_power_blue; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + 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 = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + devdata: partition@30000 { + label = "devdata"; + reg = <0x30000 0x10000>; + read-only; + }; + + partition@40000 { + label = "devconf"; + reg = <0x40000 0x30000>; + read-only; + }; + + partition@70000 { + label = "devlang"; + reg = <0x70000 0x40000>; + read-only; + }; + + partition@b0000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0xb0000 0x750000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power_blue: power { + label = "dap-1350:blue:power"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + }; + + power2 { + label = "dap-1350:red:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "dap-1350:blue:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + rt { + label = "rt"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + ap { + label = "ap"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&devdata 0x2e>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&devdata 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts b/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts new file mode 100644 index 0000000000..4b55af0691 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts @@ -0,0 +1,107 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "engenius,esr-9753", "ralink,rt3052-soc"; + model = "Senao / EnGenius ESR-9753"; + + 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 = "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 0x3b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "esr-9753:orange:power"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "esr-9753:orange:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts b/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts new file mode 100644 index 0000000000..cd452fa782 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts @@ -0,0 +1,157 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "fon,fonera-20n", "ralink,rt3052-soc"; + model = "La Fonera 2.0N"; + + 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 = "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 0x7b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + wifi { + label = "fonera20n:orange:wifi"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "fonera20n:green:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "fonera20n:orange:usb"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + trigger-sources = <&otg_port1>; + linux,default-trigger = "usbport"; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + switch { + label = "switch"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + linux,code = ; + linux,input-type = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + #address-cells = <1>; + #size-cells = <0>; + + mediatek,portmap = <0x2f>; + + port@0 { + compatible = "swconfig,port"; + reg = <0>; + swconfig,segment = "lan"; + swconfig,portmap = <0 4>; + }; + + port@1 { + compatible = "swconfig,port"; + reg = <1>; + swconfig,segment = "lan"; + swconfig,portmap = <1 3>; + }; + + port@2 { + compatible = "swconfig,port"; + reg = <2>; + swconfig,segment = "lan"; + swconfig,portmap = <2 2>; + }; + + port@3 { + compatible = "swconfig,port"; + reg = <3>; + swconfig,segment = "lan"; + swconfig,portmap = <3 1>; + }; + + port@4 { + compatible = "swconfig,port"; + reg = <4>; + swconfig,segment = "wan"; + swconfig,portmap = <4 0>; + }; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts b/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts new file mode 100644 index 0000000000..353cfbf415 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts @@ -0,0 +1,100 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "hauppauge,broadway", "ralink,rt3052-soc"; + model = "Hauppauge Broadway"; + + 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 = "bootloader"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "config"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x790000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + diskmounted { + label = "broadway:red:diskmounted"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + trigger-sources = <&otg_port1>; + linux,default-trigger = "usbport"; + }; + + wps_active { + label = "broadway:red:wps_active"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + factory { + label = "Factory Reset button"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_huawei_hg255d.dts b/target/linux/ramips/dts/rt3052_huawei_hg255d.dts new file mode 100644 index 0000000000..df8a72c8cb --- /dev/null +++ b/target/linux/ramips/dts/rt3052_huawei_hg255d.dts @@ -0,0 +1,145 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "huawei,hg255d", "ralink,rt3052-soc"; + model = "HuaWei HG255D"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + cfi@1f000000 { + compatible = "cfi-flash"; + reg = <0x1f000000 0x1000000>; + bank-width = <2>; + device-width = <2>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x40000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x40000 0x20000>; + read-only; + }; + + factory: partition@60000 { + label = "factory"; + reg = <0x60000 0x20000>; + read-only; + }; + + partition@80000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x80000 0xf60000>; + }; + + partition@fa0000 { + label = "factory-orig"; + reg = <0xfa0000 0x20000>; + read-only; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "hg255d:green:power"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + }; + + internet { + label = "hg255d:green:internet"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + + wifi { + label = "hg255d:green:wlan"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "hg255d:green:usb"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + trigger-sources = <&otg_port1>; + linux,default-trigger = "usbport"; + }; + + wps { + label = "hg255d:green:wps"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + voice { + label = "hg255d:green:voice"; + gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <10>; + + reset { + label = "reset"; + gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + rfkill { + label = "rfkill"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts b/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts new file mode 100644 index 0000000000..4c0640b881 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts @@ -0,0 +1,94 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "jcg,jhr-n825r", "ralink,rt3052-soc"; + model = "JCG JHR-N825R"; + + aliases { + led-boot = &led_system; + led-failsafe = &led_system; + led-running = &led_system; + led-upgrade = &led_system; + }; + + 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 = "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 0x3b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + led_system: system { + label = "jhr-n825r:red:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + reset_wps { + label = "reset_wps"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x2e>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts b/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts new file mode 100644 index 0000000000..9414828594 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts @@ -0,0 +1,140 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "jcg,jhr-n926r", "ralink,rt3052-soc"; + model = "JCG JHR-N926R"; + + aliases { + led-boot = &led_system; + led-failsafe = &led_system; + led-running = &led_system; + led-upgrade = &led_system; + }; + + 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 = "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 0x3b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + wlan1 { + label = "jhr-n926r:red:wlan"; + gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; + }; + + wlan2 { + label = "jhr-n926r:yellow:wlan"; + gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; + }; + + wlan3 { + label = "jhr-n926r:green:wlan"; + gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + }; + + led_system: system { + label = "jhr-n926r:blue:system"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + display_data { + gpio-export,name = "display_data"; + gpio-export,output = <1>; + gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; + }; + + display_clock { + gpio-export,name = "display_clock"; + gpio-export,output = <1>; + gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; + }; + + display_blank { + gpio-export,name = "display_blank"; + gpio-export,output = <1>; + gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset_wps { + label = "reset_wps"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wlan { + label = "wlan"; + gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x2e>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts b/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts new file mode 100644 index 0000000000..d20f2d2703 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts @@ -0,0 +1,126 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "mofinetwork,mofi3500-3gn", "ralink,rt3052-soc"; + model = "MoFi Network MOFI3500-3GN"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + 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 = "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 0x7b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + usb { + label = "mofi3500-3gn:green:usb"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + trigger-sources = <&otg_port1>; + linux,default-trigger = "usbport"; + }; + + 3g { + label = "mofi3500-3gn:green:3g"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + led_status: status { + label = "mofi3500-3gn:green:status"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "mofi3500-3gn:green:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + connect { + label = "connect"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + status = "okay"; + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts b/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts new file mode 100644 index 0000000000..3f0d93d8a4 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts @@ -0,0 +1,149 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "netgear,wnce2001", "ralink,rt3052-soc"; + model = "Netgear WNCE2001"; + + aliases { + led-boot = &led_power_green; + led-failsafe = &led_power_green; + led-running = &led_power_green; + led-upgrade = &led_power_green; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + leds { + compatible = "gpio-leds"; + + led_power_green: power-green { + label = "wnce2001:green:power"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + }; + + power-red { + label = "wnce2001:red:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wlan-green { + label = "wnce2001:green:wlan"; + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; + }; + + wlan-red { + label = "wnce2001:red:wlan"; + gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + rt { + label = "rt"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + ap { + label = "ap"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + factory: partition@30000 { + label = "factory"; + reg = <0x30000 0x10000>; + read-only; + }; + + partition@40000 { + label = "config"; + reg = <0x40000 0x20000>; + read-only; + }; + + partition@60000 { + label = "language"; + reg = <0x60000 0x30000>; + read-only; + }; + + partition@90000 { + label = "pot"; + reg = <0x90000 0x10000>; + read-only; + }; + + partition@a0000 { + label = "checksum"; + reg = <0xa0000 0x10000>; + }; + + partition@b0000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0xb0000 0x350000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt3052_nexaira_bc2.dts b/target/linux/ramips/dts/rt3052_nexaira_bc2.dts new file mode 100644 index 0000000000..324909e82f --- /dev/null +++ b/target/linux/ramips/dts/rt3052_nexaira_bc2.dts @@ -0,0 +1,95 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "nexaira,bc2", "ralink,rt3052-soc"; + model = "NexAira BC2"; + + 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 = "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 0x7b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + usb { + label = "bc2:blue:usb"; + gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; + trigger-sources = <&otg_port1>; + linux,default-trigger = "usbport"; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts b/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts new file mode 100644 index 0000000000..2f045c7884 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts @@ -0,0 +1,105 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "omnima,miniembwifi", "ralink,rt3052-soc"; + model = "Omnima MiniEMBWiFi"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + leds { + compatible = "gpio-leds"; + + led_status: status { + label = "miniembwifi:green:status"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "miniembwifi:green:wlan"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + 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 = "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 0x7b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts b/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts new file mode 100644 index 0000000000..260d0a1444 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts @@ -0,0 +1,104 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "petatel,psr-680w", "ralink,rt3052-soc"; + model = "Petatel PSR-680W Wireless 3G Router"; + + aliases { + led-boot = &led_wan; + led-failsafe = &led_wan; + led-running = &led_wan; + led-upgrade = &led_wan; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + 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 = "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 0x3b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_wan: wan { + label = "psr-680w:red:wan"; + gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts b/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts new file mode 100644 index 0000000000..ab749fc43d --- /dev/null +++ b/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts @@ -0,0 +1,124 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "planex,mzk-w300nh2", "ralink,rt3052-soc"; + model = "Planex MZK-W300NH2"; + + 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 = "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@3e0000 { + label = "cimage"; + reg = <0x3e0000 0x20000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x390000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "mzk-w300nh2:green:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "mzk-w300nh2:amber:wlan"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "mzk-w300nh2:amber:wps"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + wps { + label = "wps"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + reset { + label = "reset"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + rt { + label = "rt"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts b/target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts new file mode 100644 index 0000000000..17591268b6 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts @@ -0,0 +1,93 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include + +/ { + compatible = "planex,mzk-wdpr", "ralink,rt3052-soc"; + model = "Planex MZK-WDPR"; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + 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 = "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@7f0000 { + label = "Data3G"; + reg = <0x7f0000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x680000>; + }; + }; + }; + + gpio-export { + compatible = "gpio-export"; + + lcd_ctrl1 { + gpio-export,name = "lcd_ctrl1"; + gpio-export,output = <0>; + gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_poray_ip2202.dts b/target/linux/ramips/dts/rt3052_poray_ip2202.dts new file mode 100644 index 0000000000..31478da694 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_poray_ip2202.dts @@ -0,0 +1,101 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "poray,ip2202", "ralink,rt3052-soc"; + model = "Poray IP2202"; + + aliases { + led-boot = &led_run; + led-failsafe = &led_run; + led-running = &led_run; + led-upgrade = &led_run; + }; + + 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 = "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 0x7b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_run: run { + label = "ip2202:green:run"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + net { + label = "ip2202:amber:net"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts b/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts new file mode 100644 index 0000000000..3280c93afb --- /dev/null +++ b/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts @@ -0,0 +1,97 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "prolink,pwh2004", "ralink,rt3052-soc"; + model = "Prolink PWH2004"; + + 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 = "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 0x7b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + wifi { + label = "pwh2004:red:wifi"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "pwh2004:green:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + wps { + label = "wps"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts b/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts new file mode 100644 index 0000000000..df56c80819 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts @@ -0,0 +1,107 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "ralink,v22rw-2x2", "ralink,rt3052-soc"; + model = "Ralink AP-RT3052-V22RW-2X2"; + + aliases { + led-boot = &led_security; + led-failsafe = &led_security; + led-running = &led_security; + led-upgrade = &led_security; + }; + + 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 = "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 0x3b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_security: security { + label = "v22rw-2x2:green:security"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "v22rw-2x2:red:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts b/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts new file mode 100644 index 0000000000..1b31bda736 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts @@ -0,0 +1,133 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "sitecom,wl-351", "ralink,rt3052-soc"; + model = "Sitecom WL-351 v1 002"; + + 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 = "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 0x3b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "wl-351:amber:power"; + gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; + }; + + unpopulated { + label = "wl-351:amber:unpopulated"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + unpopulated2 { + label = "wl-351:blue:unpopulated"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + rtl8366rb { + compatible = "realtek,rtl8366rb"; + gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; + gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; +}; + +&esw { + ralink,rgmii = <1>; + mediatek,portmap = <0x3f>; + ralink,fct2 = <0x0002500c>; + /* + * ext phy base addr 31, rx/tx clock skew 0, + * turbo mii off, rgmi 3.3v off, port 5 polling off + * port5: enabled, gige, full-duplex, rx/tx-flow-control + * port6: enabled, gige, full-duplex, rx/tx-flow-control + */ + ralink,fpa2 = <0x1f003fff>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts b/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts new file mode 100644 index 0000000000..3d8a9ec464 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts @@ -0,0 +1,106 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "skyline,sl-r7205", "ralink,rt3052-soc"; + model = "Skyline SL-R7205 Wireless 3G Router"; + + aliases { + led-boot = &led_wifi; + led-failsafe = &led_wifi; + led-running = &led_wifi; + led-upgrade = &led_wifi; + }; + + 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 = "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 0x3b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_wifi: wifi { + label = "sl-r7205:green:wifi"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_tenda_3g300m.dts b/target/linux/ramips/dts/rt3052_tenda_3g300m.dts new file mode 100644 index 0000000000..a463890dea --- /dev/null +++ b/target/linux/ramips/dts/rt3052_tenda_3g300m.dts @@ -0,0 +1,136 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "tenda,3g300m", "ralink,rt3052-soc"; + model = "Tenda 3G300M"; + + aliases { + led-boot = &led_ap; + led-failsafe = &led_ap; + led-running = &led_ap; + led-upgrade = &led_ap; + }; + + leds { + compatible = "gpio-leds"; + + 3grouter { + label = "3g300m:blue:3grouter"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + led_ap: ap { + label = "3g300m:blue:ap"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + wisprouter { + label = "3g300m:blue:wisprouter"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wirelessrouter { + label = "3g300m:blue:wirelessrouter"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + + 3g { + label = "3g300m:blue:3g"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + trigger-sources = <&otg_port1>; + linux,default-trigger = "usbport"; + }; + + wpsreset { + label = "3g300m:blue:wpsreset"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + mode { + label = "mode"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x3b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts b/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts new file mode 100644 index 0000000000..233a6d2e46 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts @@ -0,0 +1,101 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "tenda,w306r-v2", "ralink,rt3052-soc"; + model = "Tenda W306R V2.0"; + + aliases { + led-boot = &led_sys; + led-failsafe = &led_sys; + led-running = &led_sys; + led-upgrade = &led_sys; + }; + + 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 = "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 0x3b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_sys: sys { + label = "w306r-v20:green:sys"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "w306r-v20:green:wps"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "RESET/WPS"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-4m.dts b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-4m.dts new file mode 100644 index 0000000000..12476d238c --- /dev/null +++ b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-4m.dts @@ -0,0 +1,45 @@ +/dts-v1/; + +#include "rt3052_unbranded_wr512-3gn.dtsi" + +/ { + compatible = "unbranded,wr512-3gn-4m", "unbranded,wr512-3gn", "ralink,rt3052-soc"; + model = "WR512-3GN (4M)"; + + 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 = "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 0x3c8000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-8m.dts b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-8m.dts new file mode 100644 index 0000000000..c21b59168f --- /dev/null +++ b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-8m.dts @@ -0,0 +1,45 @@ +/dts-v1/; + +#include "rt3052_unbranded_wr512-3gn.dtsi" + +/ { + compatible = "unbranded,wr512-3gn-8m", "unbranded,wr512-3gn", "ralink,rt3052-soc"; + model = "WR512-3GN (8M)"; + + 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 = "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 0x7b0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi new file mode 100644 index 0000000000..5761b8b532 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi @@ -0,0 +1,82 @@ +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "unbranded,wr512-3gn", "ralink,rt3052-soc"; + + aliases { + led-boot = &led_wps; + led-failsafe = &led_wps; + led-running = &led_wps; + led-upgrade = &led_wps; + }; + + leds { + compatible = "gpio-leds"; + + 3g { + label = "wr512-3gn:green:3g"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + gateway { + label = "wr512-3gn:green:gateway"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + ap { + label = "wr512-3gn:green:ap"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + led_wps: wps { + label = "wr512-3gn:green:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + + station { + label = "wr512-3gn:green:station"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset_wps { + label = "reset_wps"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + mode { + label = "mode"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts b/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts new file mode 100644 index 0000000000..2d1b416ce5 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts @@ -0,0 +1,105 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "unbranded,xdx-rn502j", "ralink,rt3052-soc"; + model = "XDX RN502J"; + + 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 = "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 0x3b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + wifi { + label = "xdxrn502j:green:wifi"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "xdxrn502j:green:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts b/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts new file mode 100644 index 0000000000..d67c2e0ec5 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts @@ -0,0 +1,126 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "upvel,ur-326n4g", "ralink,rt3052-soc"; + model = "UPVEL UR-326N4G"; + + aliases { + led-boot = &led_wps; + led-failsafe = &led_wps; + led-running = &led_wps; + led-upgrade = &led_wps; + }; + + 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 = "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 0x3b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + 3g { + label = "ur-326n4g:green:3g"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + gateway { + label = "ur-326n4g:green:gateway"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + ap { + label = "ur-326n4g:green:ap"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + led_wps: wps { + label = "ur-326n4g:green:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + + station { + label = "ur-326n4g:green:station"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset_wps { + label = "reset_wps"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + mode { + label = "mode"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4004>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts b/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts new file mode 100644 index 0000000000..937278db92 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts @@ -0,0 +1,126 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "upvel,ur-336un", "ralink,rt3052-soc"; + model = "UPVEL UR-336UN"; + + aliases { + led-boot = &led_wps; + led-failsafe = &led_wps; + led-running = &led_wps; + led-upgrade = &led_wps; + }; + + 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 = "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 0x7b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + 3g { + label = "ur-336un:green:3g"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + gateway { + label = "ur-336un:green:gateway"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + ap { + label = "ur-336un:green:ap"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + led_wps: wps { + label = "ur-336un:green:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + + station { + label = "ur-336un:green:station"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset_wps { + label = "reset_wps"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + mode { + label = "mode"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4004>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts b/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts new file mode 100644 index 0000000000..1f9928e59a --- /dev/null +++ b/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts @@ -0,0 +1,125 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "zyxel,keenetic", "ralink,rt3052-soc"; + model = "ZyXEL Keenetic"; + + 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 = "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 0x3b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "kn:green:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "kn:green:usb"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + trigger-sources = <&otg_port1>; + linux,default-trigger = "usbport"; + }; + + wps { + label = "kn:green:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + rfkill { + label = "rfkill"; + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; + linux,code = ; + linux,input-type = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&otg { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts b/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts new file mode 100644 index 0000000000..625e1616d8 --- /dev/null +++ b/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts @@ -0,0 +1,107 @@ +/dts-v1/; + +#include "rt3050.dtsi" + +#include +#include + +/ { + compatible = "zyxel,nbg-419n", "ralink,rt3052-soc"; + model = "ZyXEL NBG-419N"; + + 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 = "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 0x3b0000>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "nbg-419n:green:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "nbg-419n:green:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt3352_allnet_all5002.dts b/target/linux/ramips/dts/rt3352_allnet_all5002.dts new file mode 100644 index 0000000000..a604ec1511 --- /dev/null +++ b/target/linux/ramips/dts/rt3352_allnet_all5002.dts @@ -0,0 +1,119 @@ +/dts-v1/; + +#include "rt3352.dtsi" + +#include +#include + +/ { + compatible = "allnet,all5002", "ralink,rt3352-soc"; + model = "Allnet ALL5002"; + + i2c-gpio { + #address-cells = <1>; + #size-cells = <0>; + + compatible = "i2c-gpio"; + gpios = <&gpio0 1 GPIO_ACTIVE_HIGH &gpio0 2 GPIO_ACTIVE_HIGH>; + i2c-gpio,delay-us = <10>; + + pcf0: iexp@38 { + #gpio-cells = <2>; + compatible = "inxp,pcf8574a"; + reg = <0x38>; + gpio-controller; + }; + + hwmon@4b { + compatible = "national,lm92"; + reg = <0x4b>; + }; + }; + + leds { + compatible = "gpio-leds"; + + ld1 { + label = "all5002:green:ld1"; + gpios = <&pcf0 0 GPIO_ACTIVE_LOW>; + }; + + ld2 { + label = "all5002:green:ld2"; + gpios = <&pcf0 1 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&gpio0 { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x1fb0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x3f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts b/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts new file mode 100644 index 0000000000..79d4717f57 --- /dev/null +++ b/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts @@ -0,0 +1,128 @@ +/dts-v1/; + +#include "rt3352.dtsi" + +#include +#include + +/ { + compatible = "dlink,dir-615-h1", "ralink,rt3352-soc"; + model = "D-Link DIR-615 H1"; + + aliases { + led-boot = &led_status_green; + led-failsafe = &led_status_green; + led-running = &led_status_green; + led-upgrade = &led_status_green; + }; + + leds { + compatible = "gpio-leds"; + + status { + label = "dir-615-h1:amber:status"; + gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; + }; + + led_status_green: status2 { + label = "dir-615-h1:green:status"; + gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + + wan { + label = "dir-615-h1:amber:wan"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + wan2 { + label = "dir-615-h1:green:wan"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "dir-615-h1:blue:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x3b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins &mdio_pins>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts b/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts new file mode 100644 index 0000000000..74fd4af753 --- /dev/null +++ b/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts @@ -0,0 +1,114 @@ +/dts-v1/; + +#include "rt3352.dtsi" + +#include +#include + +/ { + compatible = "dlink,dir-620-d1", "ralink,rt3352-soc"; + model = "D-Link DIR-620 D1"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + leds { + compatible = "gpio-leds"; + + led_status: status { + label = "dir-620-d1:green:status"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wifi { + label = "dir-620-d1:green:wifi"; + gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset_wps { + label = "reset_wps"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins &mdio_pins>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts b/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts new file mode 100644 index 0000000000..e150eff9e8 --- /dev/null +++ b/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts @@ -0,0 +1,130 @@ +/dts-v1/; + +#include "rt3352.dtsi" + +#include +#include + +/ { + compatible = "zyxel,nbg-419n-v2", "ralink,rt3352-soc"; + model = "ZyXEL NBG-419N v2"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + palmbus@10000000 { + spi@b00 { + status = "okay"; + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0 0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "nbg-419n2:green:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "nbg-419n2:green:wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "nbg-419n2:green:usb"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + rfkill { + label = "rfkill"; + linux,input-type = ; + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_7links_px-4885-4m.dts b/target/linux/ramips/dts/rt5350_7links_px-4885-4m.dts new file mode 100644 index 0000000000..66e2c1924c --- /dev/null +++ b/target/linux/ramips/dts/rt5350_7links_px-4885-4m.dts @@ -0,0 +1,48 @@ +/dts-v1/; + +#include "rt5350_7links_px-4885.dtsi" + +/ { + compatible = "7links,px-4885-4m", "7links,px-4885", "ralink,rt5350-soc"; + model = "7Links PX-4885 (4M)"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x20000>; + read-only; + }; + + partition@20000 { + label = "devdata"; + reg = <0x20000 0x20000>; + read-only; + }; + + factory: partition@40000 { + label = "devconf"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x3b0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt5350_7links_px-4885-8m.dts b/target/linux/ramips/dts/rt5350_7links_px-4885-8m.dts new file mode 100644 index 0000000000..f3d9926702 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_7links_px-4885-8m.dts @@ -0,0 +1,48 @@ +/dts-v1/; + +#include "rt5350_7links_px-4885.dtsi" + +/ { + compatible = "7links,px-4885-8m", "7links,px-4885", "ralink,rt5350-soc"; + model = "7Links PX-4885 (8M)"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x20000>; + read-only; + }; + + partition@20000 { + label = "devdata"; + reg = <0x20000 0x20000>; + read-only; + }; + + factory: partition@40000 { + label = "devconf"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x7b0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi b/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi new file mode 100644 index 0000000000..032a89cd1a --- /dev/null +++ b/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi @@ -0,0 +1,63 @@ +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "7links,px-4885", "ralink,rt5350-soc"; + + aliases { + led-boot = &led_wifi; + led-failsafe = &led_wifi; + led-running = &led_wifi; + led-upgrade = &led_wifi; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_wifi: wifi { + label = "px-4885:orange:wifi"; + gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; + }; + + storage { + label = "px-4885:blue:storage"; + gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x3f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt5350_airlive_air3gii.dts b/target/linux/ramips/dts/rt5350_airlive_air3gii.dts new file mode 100644 index 0000000000..111119eea4 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_airlive_air3gii.dts @@ -0,0 +1,103 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "airlive,air3gii", "ralink,rt5350-soc"; + model = "AirLive Air3GII"; + + leds { + compatible = "gpio-leds"; + + wlan { + label = "air3gii:green:wlan"; + gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; + }; + + mobile { + label = "air3gii:green:mobile"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + wps { + label = "wps"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&gpio0 { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x3b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt5350_allnet_all5003.dts b/target/linux/ramips/dts/rt5350_allnet_all5003.dts new file mode 100644 index 0000000000..8a3488a7e0 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_allnet_all5003.dts @@ -0,0 +1,119 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "allnet,all5003", "ralink,rt5350-soc"; + model = "Allnet ALL5003"; + + i2c-gpio { + #address-cells = <1>; + #size-cells = <0>; + + compatible = "i2c-gpio"; + gpios = <&gpio0 1 GPIO_ACTIVE_HIGH &gpio0 2 GPIO_ACTIVE_HIGH>; + i2c-gpio,delay-us = <10>; + + pcf0: iexp@38 { + #gpio-cells = <2>; + compatible = "inxp,pcf8574a"; + reg = <0x38>; + gpio-controller; + }; + + hwmon@4b { + compatible = "national,lm92"; + reg = <0x4b>; + }; + }; + + leds { + compatible = "gpio-leds"; + + ld1 { + label = "all5003:green:ld1"; + gpios = <&pcf0 0 GPIO_ACTIVE_LOW>; + }; + + ld2 { + label = "all5003:green:ld2"; + gpios = <&pcf0 1 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&gpio0 { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x1fb0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x3f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_asiarf_awm002-evb-4m.dts b/target/linux/ramips/dts/rt5350_asiarf_awm002-evb-4m.dts new file mode 100644 index 0000000000..843cb51c3e --- /dev/null +++ b/target/linux/ramips/dts/rt5350_asiarf_awm002-evb-4m.dts @@ -0,0 +1,48 @@ +/dts-v1/; + +#include "rt5350_asiarf_awm002-evb.dtsi" + +/ { + compatible = "asiarf,awm002-evb-4m", "ralink,rt5350-soc"; + model = "AsiaRF AWM002 EVB (4M)"; +}; + +&spi0 { + status = "okay"; + + m25p80: m25p80@0 { + reg = <0>; + compatible = "jedec,spi-nor"; + spi-max-frequency = <10000000>; + + 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 0x3b0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt5350_asiarf_awm002-evb-8m.dts b/target/linux/ramips/dts/rt5350_asiarf_awm002-evb-8m.dts new file mode 100644 index 0000000000..46ba3a7e12 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_asiarf_awm002-evb-8m.dts @@ -0,0 +1,48 @@ +/dts-v1/; + +#include "rt5350_asiarf_awm002-evb.dtsi" + +/ { + compatible = "asiarf,awm002-evb-8m", "ralink,rt5350-soc"; + model = "AsiaRF AWM002 EVB (8M)"; +}; + +&spi0 { + status = "okay"; + + m25p80: m25p80@0 { + reg = <0>; + compatible = "jedec,spi-nor"; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi b/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi new file mode 100644 index 0000000000..384b2efec0 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi @@ -0,0 +1,73 @@ +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "asiarf,awm002-evb", "ralink,rt5350-soc"; + + leds { + compatible = "gpio-leds"; + + tx { + label = "awm002-evb:green:tx"; + gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; + }; + + rx { + label = "awm002-evb:green:rx"; + gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "awm002-evb:green:wps"; + gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset_wps { + label = "reset_wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + mode { + label = "mode"; + gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag"; + ralink,function = "gpio"; + }; + }; +}; + +&esw { + mediatek,portmap = <0x3f>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts b/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts new file mode 100644 index 0000000000..0fff5e8b5c --- /dev/null +++ b/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts @@ -0,0 +1,118 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "dlink,dcs-930l-b1", "ralink,rt5350-soc"; + model = "D-Link DCS-930L B1"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "dcs-930l-b1:red:power"; + gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "dcs-930l-b1:blue:wps"; + gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x3b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf", "led"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts b/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts new file mode 100644 index 0000000000..2b6af163bc --- /dev/null +++ b/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts @@ -0,0 +1,113 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "dlink,dir-300-b7", "ralink,rt5350-soc"; + model = "D-Link DIR-300 B7"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + leds { + compatible = "gpio-leds"; + + led_status: status { + label = "dir-300-b7:green:status"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "dir-300-b7:blue:wps"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; + mediatek,led_polarity = <0x17>; +}; + +&wmac { + status = "okay"; + ralink,led-polarity = <1>; + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts b/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts new file mode 100644 index 0000000000..040a223986 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts @@ -0,0 +1,141 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "dlink,dir-320-b1", "ralink,rt5350-soc"; + model = "D-Link DIR-320 B1"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + leds { + compatible = "gpio-leds"; + + led_status: status { + label = "dir-320-b1:green:status"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "dir-320-b1:green:usb"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "dir-320-b1:green:wps"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + usb { + gpio-export,name = "usb"; + gpio-export,output = <1>; + gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; + }; + + root_hub { + gpio-export,name = "root_hub"; + gpio-export,output = <1>; + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; + mediatek,led_polarity = <0x17>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts b/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts new file mode 100644 index 0000000000..7a0323e219 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts @@ -0,0 +1,114 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "dlink,dir-610-a1", "ralink,rt5350-soc"; + model = "D-Link DIR-610 A1"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + leds { + compatible = "gpio-leds"; + + led_status: status { + label = "dir-610-a1:green:status"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "dir-610-a1:green:wps"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + devdata: partition@30000 { + label = "devdata"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "seama"; + label = "firmware"; + reg = <0x50000 0x3b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&devdata 0x4004>; +}; + +&esw { + status = "okay"; + mediatek,portmap = <0x2f>; + mediatek,led_polarity = <0x17>; +}; + +&wmac { + status = "okay"; + ralink,led-polarity = <1>; + ralink,mtd-eeprom = <&devdata 0x4000>; +}; diff --git a/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts b/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts new file mode 100644 index 0000000000..a08ea5d03c --- /dev/null +++ b/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts @@ -0,0 +1,149 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "dlink,dwr-512-b", "ralink,rt5350-soc"; + model = "D-Link DWR-512 B"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + wps { + label = "wps"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + reset { + label = "reset"; + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + sms { + label = "dwr-512-b:green:sms"; + gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; + }; + led_status: status { + label = "dwr-512-b:green:status"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + 2g { + label = "dwr-512-b:green:2g"; + gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + }; + 3g { + label = "dwr-512-b:green:3g"; + gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; + }; + sstrengthr { + label = "dwr-512-b:red:sigstrength"; + gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; + }; + sstrengthg { + label = "dwr-512-b:green:sigstrength"; + gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; + }; + }; + + gpio-export { + compatible = "gpio-export"; + #size-cells = <0>; + + slic_int { + gpio-export,name = "slic_int"; + gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; + }; + modem3g_enable { + gpio-export,name = "modem3g_enable"; + gpio-export,output = <1>; + gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <30000000>; + m25p,fast-read; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "jboot"; + reg = <0x0 0x10000>; + read-only; + }; + + partition@10000 { + compatible = "amit,jimage"; + label = "firmware"; + reg = <0x10000 0x7e0000>; + }; + + config: partition@7f0000 { + label = "config"; + reg = <0x7f0000 0x10000>; + }; + }; + }; +}; + +&spi1 { + status = "okay"; + + spidev@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "siliconlabs,si3210"; + + reg = <0>; + spi-max-frequency = <1000000>; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +ðernet { + mtd-mac-address = <&config 0xe07e>; +}; + +&wmac { + ralink,mtd-eeprom = <&config 0xe08a>; + ralink,led-polarity = <1>; + mtd-mac-address = <&config 0xe07e>; +}; diff --git a/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts b/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts new file mode 100644 index 0000000000..a69ed4bd09 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts @@ -0,0 +1,85 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +/ { + compatible = "easyacc,wizard-8800", "ralink,rt5350-soc"; + model = "EASYACC WI-STOR WIZARD 8800"; +}; + +&gpio0 { + status = "okay"; +}; + +&gpio1 { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts b/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts new file mode 100644 index 0000000000..328351a550 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts @@ -0,0 +1,133 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "hame,mpr-a1", "ralink,rt5350-soc"; + model = "HAME MPR-A1"; + + aliases { + led-boot = &led_system; + led-failsafe = &led_system; + led-running = &led_system; + led-upgrade = &led_system; + }; + + leds { + compatible = "gpio-leds"; + + led_system: system { + label = "mpr-a1:blue:system"; + gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; + }; + + power { + label = "mpr-a1:red:power"; + gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + wps { + label = "reset"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + usb { + gpio-export,name = "usb"; + gpio-export,output = <1>; + gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; + }; + + root_hub { + gpio-export,name = "root_hub"; + gpio-export,output = <1>; + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x3b0000>; + }; + }; + }; +}; + +&gpio1 { + status = "okay"; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf", "led"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts b/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts new file mode 100644 index 0000000000..fedb5b061e --- /dev/null +++ b/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts @@ -0,0 +1,130 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "hame,mpr-a2", "ralink,rt5350-soc"; + model = "HAME MPR-A2"; + + aliases { + led-boot = &led_system; + led-failsafe = &led_system; + led-running = &led_system; + led-upgrade = &led_system; + }; + + leds { + compatible = "gpio-leds"; + + led_system: system { + label = "mpr-a2:blue:system"; + gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; + }; + + power { + label = "mpr-a2:red:power"; + gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + wps { + label = "reset"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + usb { + gpio-export,name = "usb"; + gpio-export,output = <1>; + gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; + }; + + root_hub { + gpio-export,name = "root_hub"; + gpio-export,output = <1>; + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x1>; + mediatek,portdisable = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts b/target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts new file mode 100644 index 0000000000..7b2791fa62 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts @@ -0,0 +1,128 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "hilink,hlk-rm04", "ralink,rt5350-soc"; + model = "HILINK HLK-RM04"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x1000000>; + }; + + chosen { + bootargs = "console=ttyS1,57600"; + }; + + gpio-export { + compatible = "gpio-export"; + #size-cells = <0>; + + /* I2C */ + gpio1 { + /* I2C_I2C_SD */ + gpio-export,name = "hlk-rm04:gpio0"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; + }; + gpio2 { + /* I2C_I2C_SCLK */ + gpio-export,name = "hlk-rm04:gpio1"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + reset { + label = "reset"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + wps { + label = "wps"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&uart { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x3b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag"; + ralink,function = "gpio"; + }; + + uartf_gpio { + ralink,group = "uartf"; + ralink,function = "gpio uartf"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts b/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts new file mode 100644 index 0000000000..4e73c6988d --- /dev/null +++ b/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts @@ -0,0 +1,124 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "hootoo,ht-tm02", "ralink,rt5350-soc"; + model = "HooToo HT-TM02"; + + aliases { + led-boot = &led_wlan; + led-failsafe = &led_wlan; + led-running = &led_wlan; + led-upgrade = &led_wlan; + }; + + leds { + compatible = "gpio-leds"; + + led_wlan: wlan { + label = "ht-tm02:blue:wlan"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + }; + + lan { + label = "ht-tm02:green:lan"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + modeswitch { + label = "modeswitch"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + linux,code = ; + linux,input-type = ; + }; + }; +}; + +&gpio0 { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x10>; + mediatek,portdisable = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_intenso_memory2move.dts b/target/linux/ramips/dts/rt5350_intenso_memory2move.dts new file mode 100644 index 0000000000..122c70e21f --- /dev/null +++ b/target/linux/ramips/dts/rt5350_intenso_memory2move.dts @@ -0,0 +1,122 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "intenso,memory2move", "ralink,rt5350-soc"; + model = "Intenso Memory 2 Move"; + + aliases { + led-boot = &led_wifi; + led-failsafe = &led_wifi; + led-running = &led_wifi; + led-upgrade = &led_wifi; + }; + + chosen { + bootargs = "console=ttyS0,57600n8 root=/dev/mtdblock5"; + }; + + leds { + compatible = "gpio-leds"; + + led_wifi: wifi { + label = "m2m:blue:wifi"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + }; + + wan { + label = "m2m:green:wan"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + power { + label = "power"; + gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "Bootloader"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "Config"; + 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>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0x0>; +}; diff --git a/target/linux/ramips/dts/rt5350_nexx_wt1520-4m.dts b/target/linux/ramips/dts/rt5350_nexx_wt1520-4m.dts new file mode 100644 index 0000000000..e5109c96b3 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_nexx_wt1520-4m.dts @@ -0,0 +1,48 @@ +/dts-v1/; + +#include "rt5350_nexx_wt1520.dtsi" + +/ { + compatible = "nexx,wt1520-4m", "nexx,wt1520", "ralink,rt5350-soc"; + model = "Nexx WT1520 (4M)"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x3b0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt5350_nexx_wt1520-8m.dts b/target/linux/ramips/dts/rt5350_nexx_wt1520-8m.dts new file mode 100644 index 0000000000..a0e3d3b5bc --- /dev/null +++ b/target/linux/ramips/dts/rt5350_nexx_wt1520-8m.dts @@ -0,0 +1,48 @@ +/dts-v1/; + +#include "rt5350_nexx_wt1520.dtsi" + +/ { + compatible = "nexx,wt1520-8m", "nexx,wt1520", "ralink,rt5350-soc"; + model = "Nexx WT1520 (8M)"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt5350_nexx_wt1520.dtsi b/target/linux/ramips/dts/rt5350_nexx_wt1520.dtsi new file mode 100644 index 0000000000..28d498bc87 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_nexx_wt1520.dtsi @@ -0,0 +1,49 @@ +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "nexx,wt1520", "ralink,rt5350-soc"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x2000000>; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_nixcore_x1-16m.dts b/target/linux/ramips/dts/rt5350_nixcore_x1-16m.dts new file mode 100644 index 0000000000..7904701742 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_nixcore_x1-16m.dts @@ -0,0 +1,48 @@ +/dts-v1/; + +#include "rt5350_nixcore_x1.dtsi" + +/ { + compatible = "nixcore,x1-16m", "nixcore,x1", "ralink,rt5350-soc"; + model = "NixcoreX1 (16M)"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0xfb0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt5350_nixcore_x1-8m.dts b/target/linux/ramips/dts/rt5350_nixcore_x1-8m.dts new file mode 100644 index 0000000000..f02bb4c3db --- /dev/null +++ b/target/linux/ramips/dts/rt5350_nixcore_x1-8m.dts @@ -0,0 +1,48 @@ +/dts-v1/; + +#include "rt5350_nixcore_x1.dtsi" + +/ { + compatible = "nixcore,x1-8m", "nixcore,x1", "ralink,rt5350-soc"; + model = "NixcoreX1 (8M)"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt5350_nixcore_x1.dtsi b/target/linux/ramips/dts/rt5350_nixcore_x1.dtsi new file mode 100644 index 0000000000..1702d74db7 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_nixcore_x1.dtsi @@ -0,0 +1,155 @@ +#include "rt5350.dtsi" + +#include + +/ { + compatible = "nixcore,x1", "ralink,rt5350-soc"; + + chosen { + bootargs = "console=ttyS1,57600"; + }; + + gpio-export { + compatible = "gpio-export"; + #size-cells = <0>; + + gpio0 { + gpio-export,name = "gpio0"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; + }; + + gpio1 { + gpio-export,name = "gpio1"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; + }; + + /* GPIOs 1-6 are I2C,SPI */ + /* GPIO 7-14 are uart1 */ + /* GPIOs 15 & 16 are uart2 */ + /* JTAG */ + + gpio17 { + /* JTAG_TDO */ + gpio-export,name = "gpio17"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; + }; + + gpio18 { + /* JTAG_TDI */ + gpio-export,name = "gpio18"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; + }; + + gpio19 { + /* JTAG_TMS */ + gpio-export,name = "gpio19"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>; + }; + + gpio20 { + /* JTAG_TCLK */ + gpio-export,name = "gpio20"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; + }; + + gpio21 { + /* JTAG_TRST_N */ + gpio-export,name = "gpio21"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; + }; + + /* ETH LEDs */ + /* + gpio22 { + gpio-export,name = "gpio22"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; + }; + + gpio23 { + gpio-export,name = "gpio23"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; + }; + + gpio24 { + gpio-export,name = "gpio24"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; + }; + + gpio25 { + gpio-export,name = "gpio25"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; + }; + + */ + gpio26 { + /* ETH4_LED */ + gpio-export,name = "gpio26"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; + }; + + gpio27 { + /* spi_cs1 */ + gpio-export,name = "gpio27"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&gpio0 { + status = "okay"; +}; + +&gpio1 { + status = "okay"; +}; + +&i2c { + status = "okay"; +}; + +&uart { + status = "okay"; + reset-names = "gpio uartf"; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "jtag", "led", "spi_cs1"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x17>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino-evb.dts b/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino-evb.dts new file mode 100644 index 0000000000..57164ea8ac --- /dev/null +++ b/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino-evb.dts @@ -0,0 +1,32 @@ +/dts-v1/; + +#include "rt5350_olimex_rt5350f-olinuxino.dtsi" + +#include + +/ { + compatible = "olimex,rt5350f-olinuxino-evb", "ralink,rt5350-soc"; + model = "Olimex RT5350F-OLinuXino-EVB"; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + relay1 { + gpio-export,name = "relay1"; + gpio-export,output = <0>; + gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; + }; + + relay2 { + gpio-export,name = "relay2"; + gpio-export,output = <0>; + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; + }; + + button { + gpio-export,name = "button"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dts b/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dts new file mode 100644 index 0000000000..f3b2c948e3 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dts @@ -0,0 +1,8 @@ +/dts-v1/; + +#include "rt5350_olimex_rt5350f-olinuxino.dtsi" + +/ { + compatible = "olimex,rt5350f-olinuxino", "ralink,rt5350-soc"; + model = "Olimex RT5350F-OLinuXino"; +}; diff --git a/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi b/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi new file mode 100644 index 0000000000..88b412c8d6 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi @@ -0,0 +1,99 @@ +#include "rt5350.dtsi" + +/ { + compatible = "olimex,rt5350f-olinuxino", "ralink,rt5350-soc"; + + aliases { + serial0 = &uartlite; + serial1 = &uart; + }; +}; + + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; +}; + +&gpio1 { + status = "okay"; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "jtag"; + ralink,function = "gpio"; + }; + uartf_gpio { + ralink,group = "uartf"; + ralink,function = "gpio uartf"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; + mediatek,led_polarity = <0x17>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; + ralink,led-polarity = <1>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; + +&i2c { + status = "okay"; +}; + +&uart { + status = "okay"; +}; + diff --git a/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts b/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts new file mode 100644 index 0000000000..5db1ce48a1 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts @@ -0,0 +1,129 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "omnima,miniembplug", "ralink,rt5350-soc"; + model = "Omnima MiniEMBPlug"; + + leds { + compatible = "gpio-leds"; + + wlan { + label = "miniembplug:red:wlan"; + gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; + }; + + mobile { + label = "miniembplug:green:mobile"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + mode-one { + label = "mode1"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + mode-two { + label = "mode2"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +&gpio0 { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts b/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts new file mode 100644 index 0000000000..41fb6e06d8 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts @@ -0,0 +1,112 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "planex,mzk-dp150n", "ralink,rt5350-soc"; + model = "Planex MZK-DP150N"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "mzk-dp150n:green:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&gpio1 { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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>; + }; + }; + }; +}; + +&spi1 { + spidev@0 { + compatible = "linux,spidev"; + spi-max-frequency = <10000000>; + reg = <0>; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "jtag", "uartf", "led"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x17>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; + ralink,led-polarity = <1>; +}; diff --git a/target/linux/ramips/dts/rt5350_poray_m3.dts b/target/linux/ramips/dts/rt5350_poray_m3.dts new file mode 100644 index 0000000000..1c894aff12 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_poray_m3.dts @@ -0,0 +1,116 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "poray,m3", "ralink,rt5350-soc"; + model = "Poray M3"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + leds { + compatible = "gpio-leds"; + + led_status: status { + label = "m3:blue:status"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + mode { + label = "mode"; + gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + linux,code = ; + linux,input-type = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x3b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; + mediatek,led_polarity = <1>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; + ralink,led-polarity = <1>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_poray_m4-4m.dts b/target/linux/ramips/dts/rt5350_poray_m4-4m.dts new file mode 100644 index 0000000000..f917d344d3 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_poray_m4-4m.dts @@ -0,0 +1,48 @@ +/dts-v1/; + +#include "rt5350_poray_m4.dtsi" + +/ { + compatible = "poray,m4-4m", "poray,m4", "ralink,rt5350-soc"; + model = "Poray M4 (4M)"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x3b0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt5350_poray_m4-8m.dts b/target/linux/ramips/dts/rt5350_poray_m4-8m.dts new file mode 100644 index 0000000000..ac689f8598 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_poray_m4-8m.dts @@ -0,0 +1,48 @@ +/dts-v1/; + +#include "rt5350_poray_m4.dtsi" + +/ { + compatible = "poray,m4-8m", "poray,m4", "ralink,rt5350-soc"; + model = "Poray M4 (8M)"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt5350_poray_m4.dtsi b/target/linux/ramips/dts/rt5350_poray_m4.dtsi new file mode 100644 index 0000000000..df8db131e9 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_poray_m4.dtsi @@ -0,0 +1,66 @@ +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "poray,m4", "ralink,rt5350-soc"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + leds { + compatible = "gpio-leds"; + + led_status: status { + label = "m4:blue:status"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; + mediatek,led_polarity = <1>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; + ralink,led-polarity = <1>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_poray_x5.dts b/target/linux/ramips/dts/rt5350_poray_x5.dts new file mode 100644 index 0000000000..7e3d8b6f03 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_poray_x5.dts @@ -0,0 +1,148 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "poray,x5", "ralink,rt5350-soc"; + model = "Poray X5"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "x5:green:power"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + + 20 { + label = "x5:green:20"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + }; + + 50 { + label = "x5:green:50"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + 80 { + label = "x5:green:80"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + bat { + label = "bat"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + mode { + label = "mode"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + linux,code = ; + linux,input-type = ; + }; + }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + usb-mode { + gpio-export,name = "usb-mode"; + gpio-export,output = <0>; + gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; + mediatek,led_polarity = <1>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; + ralink,led-polarity = <1>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_poray_x8.dts b/target/linux/ramips/dts/rt5350_poray_x8.dts new file mode 100644 index 0000000000..3b6d60478f --- /dev/null +++ b/target/linux/ramips/dts/rt5350_poray_x8.dts @@ -0,0 +1,109 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "poray,x8", "ralink,rt5350-soc"; + model = "Poray X8"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "x8:green:power"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; + mediatek,led_polarity = <1>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; + ralink,led-polarity = <1>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_tenda_3g150b.dts b/target/linux/ramips/dts/rt5350_tenda_3g150b.dts new file mode 100644 index 0000000000..9d13625516 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_tenda_3g150b.dts @@ -0,0 +1,130 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "tenda,3g150b", "ralink,rt5350-soc"; + model = "Tenda 3G150B"; + + aliases { + led-boot = &led_ap; + led-failsafe = &led_ap; + led-running = &led_ap; + led-upgrade = &led_ap; + }; + + leds { + compatible = "gpio-leds"; + + led_ap: ap { + label = "3g150b:blue:ap"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + }; + + 3g { + label = "3g150b:blue:3g"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + usb { + gpio-export,name = "usb"; + gpio-export,output = <1>; + gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x3b0000>; + }; + }; + }; +}; + +&gpio1 { + status = "okay"; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf", "led"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; + ralink,led-polarity = <1>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts b/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts new file mode 100644 index 0000000000..00e3d2df12 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts @@ -0,0 +1,129 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "trendnet,tew-714tru", "ralink,rt5350-soc"; + model = "TRENDnet TEW714TRU"; + + leds { + compatible = "gpio-leds"; + + usb { + label = "tew-714tru:red:usb"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; + }; + + wifi { + label = "tew-714tru:green:wifi"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + repeater { + gpio-export,name = "repeater_switch"; + gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; + }; + + wisp { + gpio-export,name = "wisp_switch"; + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x1>; + mediatek,portdisable = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts b/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts new file mode 100644 index 0000000000..707963d691 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts @@ -0,0 +1,134 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "unbranded,a5-v11", "ralink,rt5350-soc"; + model = "A5-V11"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + leds { + compatible = "gpio-leds"; + + system { + label = "a5-v11:blue:system"; + gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "a5-v11:red:power"; + gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + usb { + gpio-export,name = "usb"; + gpio-export,output = <1>; + gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; + }; + + root_hub { + gpio-export,name = "root_hub"; + gpio-export,output = <1>; + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x3b0000>; + }; + }; + }; +}; + +&gpio1 { + status = "okay"; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf", "led"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x1>; + mediatek,portdisable = <0x3e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_vocore_vocore-16m.dts b/target/linux/ramips/dts/rt5350_vocore_vocore-16m.dts new file mode 100644 index 0000000000..5d9a4e96e2 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_vocore_vocore-16m.dts @@ -0,0 +1,48 @@ +/dts-v1/; + +#include "rt5350_vocore_vocore.dtsi" + +/ { + compatible = "vocore,vocore-16m", "vocore,vocore", "ralink,rt5350-soc"; + model = "VoCore (16M)"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0xfb0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt5350_vocore_vocore-8m.dts b/target/linux/ramips/dts/rt5350_vocore_vocore-8m.dts new file mode 100644 index 0000000000..bfc307dfc8 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_vocore_vocore-8m.dts @@ -0,0 +1,48 @@ +/dts-v1/; + +#include "rt5350_vocore_vocore.dtsi" + +/ { + compatible = "vocore,vocore-8m", "vocore,vocore", "ralink,rt5350-soc"; + model = "VoCore (8M)"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi b/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi new file mode 100644 index 0000000000..c5c26e77c8 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi @@ -0,0 +1,204 @@ +#include "rt5350.dtsi" + +#include + +/ { + compatible = "vocore,vocore", "ralink,rt5350-soc"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + gpio-export { + compatible = "gpio-export"; + #size-cells = <0>; + + gpio0 { + gpio-export,name = "gpio0"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; + }; + + /* UARTF */ + gpio7 { + /* UARTF_RTS_N */ + gpio-export,name = "gpio7"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; + }; + + gpio8 { + /* UARTF_TXD */ + gpio-export,name = "gpio8"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; + }; + + gpio9 { + /* UARTF_CTS_N */ + gpio-export,name = "gpio9"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; + }; + + gpio12 { + /* UARTF_DCD_N */ + gpio-export,name = "gpio12"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; + }; + + gpio13 { + /* UARTF_DSR_N */ + gpio-export,name = "gpio13"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; + }; + + gpio14 { + /* UARTF_RIN */ + gpio-export,name = "gpio14"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; + }; + + /* JTAG */ + gpio17 { + /* JTAG_TDO */ + gpio-export,name = "gpio17"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; + }; + + gpio18 { + /* JTAG_TDI */ + gpio-export,name = "gpio18"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; + }; + + gpio19 { + /* JTAG_TMS */ + gpio-export,name = "gpio19"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>; + }; + + gpio20 { + /* JTAG_TCLK */ + gpio-export,name = "gpio20"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; + }; + + gpio21 { + /* JTAG_TRST_N */ + gpio-export,name = "gpio21"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; + }; + + /* ETH LEDs */ + gpio22 { + /* ETH0_LED */ + gpio-export,name = "gpio22"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; + }; + + gpio23 { + /* ETH1_LED */ + gpio-export,name = "gpio23"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; + }; + + gpio24 { + /* ETH2_LED */ + gpio-export,name = "gpio24"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; + }; + + gpio25 { + /* ETH3_LED */ + gpio-export,name = "gpio25"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; + }; + + gpio26 { + /* ETH4_LED */ + gpio-export,name = "gpio26"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_status: status { + /* UARTF_RXD */ + label = "vocore:green:status"; + gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; + }; + + eth { + /* UARTF_DTR_N */ + label = "vocore:orange:eth"; + gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&gpio1 { + status = "okay"; +}; + +&i2c { + status = "okay"; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "jtag", "uartf", "led"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x11>; + mediatek,portdisable = <0x2e>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; + +&spi1 { + status = "okay"; + + spidev@0 { + compatible = "linux,spidev"; + spi-max-frequency = <10000000>; + reg = <0>; + }; +}; diff --git a/target/linux/ramips/dts/rt5350_wansview_ncs601w.dts b/target/linux/ramips/dts/rt5350_wansview_ncs601w.dts new file mode 100644 index 0000000000..ff6ccd2247 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_wansview_ncs601w.dts @@ -0,0 +1,77 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +/ { + compatible = "wansview,ncs601w", "ralink,rt5350-soc"; + model = "Wansview NCS601W"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts b/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts new file mode 100644 index 0000000000..f88d5ae63f --- /dev/null +++ b/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts @@ -0,0 +1,158 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "wiznet,wizfi630a", "ralink,rt5350-soc"; + model = "WIZnet WizFi630A"; + + aliases { + led-boot = &led_run; + led-failsafe = &led_run; + led-running = &led_run; + led-upgrade = &led_run; + }; + + chosen { + bootargs = "console=ttyS1,115200"; + }; + + leds { + compatible = "gpio-leds"; + + led_run: run { + label = "wizfi630a::run"; + gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "wizfi630a::wps"; + gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; + }; + + uart1 { + label = "wizfi630a::uart1"; + gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; + }; + + uart2 { + label = "wizfi630a::uart2"; + gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + scm1 { + label = "SCM1"; + gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + scm2 { + label = "SCM2"; + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&gpio1 { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + #size-cells = <1>; + label = "uboot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + #size-cells = <1>; + label = "uboot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + #size-cells = <1>; + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + #size-cells = <1>; + label = "firmware"; + reg = <0x50000 0xfb0000>; + }; + }; + }; +}; + +&uart { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&uartf_pins>; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag" ; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x17>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts b/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts new file mode 100644 index 0000000000..d5d0ca3728 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts @@ -0,0 +1,105 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "zorlik,zl5900v2", "ralink,rt5350-soc"; + model = "Zorlik ZL5900V2"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + leds { + compatible = "gpio-leds"; + + lan { + label = "zl5900v2:green:lan"; + gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; + }; + + led_power: power { + label = "zl5900v2:blue:power"; + gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x7b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0>; + mediatek,portdisable = <0x2f>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts b/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts new file mode 100644 index 0000000000..16ab9567c0 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts @@ -0,0 +1,115 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "zyxel,keenetic-start", "ralink,rt5350-soc"; + model = "ZyXEL Keenetic Start"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + leds { + compatible = "gpio-leds"; + + led_status: power { + label = "zyxel:green:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + internet { + label = "zyxel:green:internet"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x3b0000>; + }; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + + +&esw { + mediatek,portmap = <0x2f>; + mediatek,led_polarity = <0x17>; +}; + +&wmac { + status = "okay"; + ralink,led-polarity = <1>; + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/target/linux/ramips/dts/rt5352_belkin_f7c027.dts b/target/linux/ramips/dts/rt5352_belkin_f7c027.dts new file mode 100644 index 0000000000..f3bf00e30a --- /dev/null +++ b/target/linux/ramips/dts/rt5352_belkin_f7c027.dts @@ -0,0 +1,143 @@ +/dts-v1/; + +#include "rt5350.dtsi" + +#include +#include + +/ { + compatible = "belkin,f7c027", "ralink,rt5350-soc"; + model = "Belkin F7C027"; + + aliases { + led-boot = &led_status_orange; + led-failsafe = &led_status_orange; + led-running = &led_status_orange; + led-upgrade = &led_status_orange; + }; + + leds { + compatible = "gpio-leds"; + + status { + label = "f7c027:blue:status"; + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + }; + + power { + label = "f7c027:blue:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + led_status_orange: orange { + label = "f7c027:orange:status"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + relay { + label = "f7c027:device:relay"; + gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + top { + label = "restore"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + power { + label = "power"; + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + sensor { + label = "sensor"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + 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 0x770000>; + }; + + partition@7c0000 { + label = "firmware2"; + reg = <0x7c0000 0x770000>; + }; + + partition@f30000 { + label = "belkin_settings"; + reg = <0xf30000 0xa0000>; + }; + + partition@fd0000 { + label = "unknown"; + reg = <0xfd0000 0x10000>; + }; + + partition@fe0000 { + label = "nvram"; + reg = <0xfe0000 0x10000>; + }; + + partition@ff0000 { + label = "user_factory"; + reg = <0xff0000 0x10000>; + }; + }; + }; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; +}; diff --git a/target/linux/ramips/image/rt305x.mk b/target/linux/ramips/image/rt305x.mk index 19fde0f2e1..e5b3adf937 100644 --- a/target/linux/ramips/image/rt305x.mk +++ b/target/linux/ramips/image/rt305x.mk @@ -23,7 +23,7 @@ endef define Device/tenda_3g150b - DTS := 3G150B + MTK_SOC := rt5350 BLOCKSIZE := 4k IMAGE_SIZE := $(ralink_default_fw_size_4M) UIMAGE_NAME:= Linux Kernel Image @@ -35,7 +35,7 @@ endef TARGET_DEVICES += tenda_3g150b define Device/tenda_3g300m - DTS := 3G300M + MTK_SOC := rt3052 IMAGE_SIZE := $(ralink_default_fw_size_4M) UIMAGE_NAME := 3G150M_SPI Kernel Image DEVICE_VENDOR := Tenda @@ -46,7 +46,7 @@ endef TARGET_DEVICES += tenda_3g300m define Device/edimax_3g-6200n - DTS := 3G-6200N + MTK_SOC := rt3050 IMAGE_SIZE := 3648k IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \ edimax-header -s CSYS -m 3G62 -f 0x50000 -S 0x01100000 | pad-rootfs | \ @@ -58,7 +58,7 @@ endef TARGET_DEVICES += edimax_3g-6200n define Device/edimax_3g-6200nl - DTS := 3G-6200NL + MTK_SOC := rt3050 IMAGE_SIZE := 3648k IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \ edimax-header -s CSYS -m 3G62 -f 0x50000 -S 0x01100000 | pad-rootfs | \ @@ -70,7 +70,7 @@ endef TARGET_DEVICES += edimax_3g-6200nl define Device/unbranded_a5-v11 - DTS := A5-V11 + MTK_SOC := rt5350 IMAGE_SIZE := $(ralink_default_fw_size_4M) IMAGES += factory.bin IMAGE/factory.bin := \ @@ -83,7 +83,7 @@ endef TARGET_DEVICES += unbranded_a5-v11 define Device/airlive_air3gii - DTS := AIR3GII + MTK_SOC := rt5350 BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := AirLive @@ -93,7 +93,7 @@ endef TARGET_DEVICES += airlive_air3gii define Device/allnet_all0256n-4m - DTS := ALL0256N-4M + MTK_SOC := rt3050 IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := Allnet DEVICE_MODEL := ALL0256N @@ -104,7 +104,7 @@ endef TARGET_DEVICES += allnet_all0256n-4m define Device/allnet_all0256n-8m - DTS := ALL0256N-8M + MTK_SOC := rt3050 DEVICE_VENDOR := Allnet DEVICE_MODEL := ALL0256N DEVICE_VARIANT := 8M @@ -114,7 +114,7 @@ endef TARGET_DEVICES += allnet_all0256n-8m define Device/allnet_all5002 - DTS := ALL5002 + MTK_SOC := rt3352 IMAGE_SIZE := 32448k DEVICE_VENDOR := Allnet DEVICE_MODEL := ALL5002 @@ -125,7 +125,7 @@ endef TARGET_DEVICES += allnet_all5002 define Device/allnet_all5003 - DTS := ALL5003 + MTK_SOC := rt5350 IMAGE_SIZE := 32448k DEVICE_VENDOR := Allnet DEVICE_MODEL := ALL5003 @@ -136,7 +136,7 @@ endef TARGET_DEVICES += allnet_all5003 define Device/alphanetworks_asl26555-8m - DTS := ASL26555-8M + MTK_SOC := rt3050 IMAGE_SIZE := 7744k DEVICE_VENDOR := Alpha DEVICE_MODEL := ASL26555 @@ -146,7 +146,7 @@ endef TARGET_DEVICES += alphanetworks_asl26555-8m define Device/alphanetworks_asl26555-16m - DTS := ASL26555-16M + MTK_SOC := rt3050 IMAGE_SIZE := 15872k DEVICE_VENDOR := Alpha DEVICE_MODEL := ASL26555 @@ -157,7 +157,7 @@ endef TARGET_DEVICES += alphanetworks_asl26555-16m define Device/argus_atp-52b - DTS := ATP-52B + MTK_SOC := rt3052 IMAGE_SIZE := 7808k DEVICE_VENDOR := Argus DEVICE_MODEL := ATP-52B @@ -166,7 +166,7 @@ endef TARGET_DEVICES += argus_atp-52b define Device/asiarf_awm002-evb-4m - DTS := AWM002-EVB-4M + MTK_SOC := rt5350 IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := AsiaRF DEVICE_MODEL := AWM002-EVB @@ -178,7 +178,7 @@ endef TARGET_DEVICES += asiarf_awm002-evb-4m define Device/asiarf_awm002-evb-8m - DTS := AWM002-EVB-8M + MTK_SOC := rt5350 DEVICE_VENDOR := AsiaRF DEVICE_MODEL := AWM002-EVB/AWM003-EVB DEVICE_VARIANT := 8M @@ -189,7 +189,7 @@ endef TARGET_DEVICES += asiarf_awm002-evb-8m define Device/asiarf_awapn2403 - DTS := AWAPN2403 + MTK_SOC := rt3052 BLOCKSIZE := 4k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := AsiaRF @@ -199,7 +199,7 @@ endef TARGET_DEVICES += asiarf_awapn2403 define Device/nexaira_bc2 - DTS := BC2 + MTK_SOC := rt3052 DEVICE_VENDOR := NexAira DEVICE_MODEL := BC2 SUPPORTED_DEVICES += bc2 @@ -207,7 +207,7 @@ endef TARGET_DEVICES += nexaira_bc2 define Device/hauppauge_broadway - DTS := BROADWAY + MTK_SOC := rt3052 IMAGE_SIZE := 7744k UIMAGE_NAME:= Broadway Kernel Image DEVICE_VENDOR := Hauppauge @@ -218,8 +218,8 @@ endef TARGET_DEVICES += hauppauge_broadway define Device/8devices_carambola - DTS := CARAMBOLA - DEVICE_VENDOR := 8devices + MTK_SOC := rt3050 + DEVICE_VENDOR := 8devices DEVICE_MODEL := Carambola DEVICE_PACKAGES := SUPPORTED_DEVICES += carambola @@ -227,7 +227,7 @@ endef TARGET_DEVICES += 8devices_carambola define Device/huawei_d105 - DTS := D105 + MTK_SOC := rt3050 BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := Huawei @@ -237,7 +237,7 @@ endef TARGET_DEVICES += huawei_d105 define Device/dlink_dap-1350 - DTS := DAP-1350 + MTK_SOC := rt3052 IMAGES += factory.bin factory-NA.bin IMAGE_SIZE := 7488k IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ @@ -251,7 +251,7 @@ endef TARGET_DEVICES += dlink_dap-1350 define Device/dlink_dcs-930 - DTS := DCS-930 + MTK_SOC := rt3050 IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := D-Link DEVICE_MODEL := DCS-930 @@ -261,7 +261,7 @@ endef TARGET_DEVICES += dlink_dcs-930 define Device/dlink_dcs-930l-b1 - DTS := DCS-930L-B1 + MTK_SOC := rt5350 IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := D-Link DEVICE_MODEL := DCS-930L @@ -272,7 +272,7 @@ endef TARGET_DEVICES += dlink_dcs-930l-b1 define Device/dlink_dir-300-b1 - DTS := DIR-300-B1 + MTK_SOC := rt3050 IMAGE_SIZE := $(ralink_default_fw_size_4M) IMAGES += factory.bin IMAGE/factory.bin := \ @@ -285,7 +285,7 @@ endef TARGET_DEVICES += dlink_dir-300-b1 define Device/dlink_dir-300-b7 - DTS := DIR-300-B7 + MTK_SOC := rt5350 BLOCKSIZE := 4k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := D-Link @@ -296,7 +296,7 @@ endef TARGET_DEVICES += dlink_dir-300-b7 define Device/dlink_dir-320-b1 - DTS := DIR-320-B1 + MTK_SOC := rt5350 DEVICE_VENDOR := D-Link DEVICE_MODEL := DIR-320 DEVICE_VARIANT := B1 @@ -305,7 +305,7 @@ endef TARGET_DEVICES += dlink_dir-320-b1 define Device/dlink_dir-600-b1 - DTS := DIR-600-B1 + MTK_SOC := rt3050 IMAGE_SIZE := $(ralink_default_fw_size_4M) IMAGES += factory.bin IMAGE/factory.bin := \ @@ -319,7 +319,7 @@ TARGET_DEVICES += dlink_dir-600-b1 define Device/dlink_dir-610-a1 $(Device/seama) - DTS := DIR-610-A1 + MTK_SOC := rt5350 BLOCKSIZE := 4k SEAMA_SIGNATURE := wrgn59_dlob.hans_dir610 KERNEL := $(KERNEL_DTB) @@ -333,7 +333,7 @@ endef TARGET_DEVICES += dlink_dir-610-a1 define Device/dlink_dir-615-d - DTS := DIR-615-D + MTK_SOC := rt3050 IMAGE_SIZE := $(ralink_default_fw_size_4M) IMAGES += factory.bin IMAGE/factory.bin := \ @@ -347,7 +347,7 @@ TARGET_DEVICES += dlink_dir-615-d define Device/dlink_dir-615-h1 - DTS := DIR-615-H1 + MTK_SOC := rt3352 BLOCKSIZE := 4k IMAGES += factory.bin IMAGE_SIZE := $(ralink_default_fw_size_4M) @@ -361,7 +361,7 @@ endef TARGET_DEVICES += dlink_dir-615-h1 define Device/dlink_dir-620-a1 - DTS := DIR-620-A1 + MTK_SOC := rt3050 DEVICE_VENDOR := D-Link DEVICE_MODEL := DIR-620 DEVICE_VARIANT := A1 @@ -370,7 +370,7 @@ endef TARGET_DEVICES += dlink_dir-620-a1 define Device/dlink_dir-620-d1 - DTS := DIR-620-D1 + MTK_SOC := rt3352 DEVICE_VENDOR := D-Link DEVICE_MODEL := DIR-620 DEVICE_VARIANT := D1 @@ -379,7 +379,7 @@ endef TARGET_DEVICES += dlink_dir-620-d1 define Device/dlink_dwr-512-b - DTS := DWR-512-B + MTK_SOC := rt5350 IMAGE_SIZE := 7800k DEVICE_VENDOR := D-Link DEVICE_MODEL := DWR-512 @@ -399,7 +399,7 @@ endef TARGET_DEVICES += dlink_dwr-512-b define Device/engenius_esr-9753 - DTS := ESR-9753 + MTK_SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := EnGenius @@ -409,7 +409,7 @@ endef TARGET_DEVICES += engenius_esr-9753 define Device/belkin_f5d8235-v2 - DTS := F5D8235_V2 + MTK_SOC := rt3052 IMAGE_SIZE := 7744k DEVICE_VENDOR := Belkin DEVICE_MODEL := F5D8235 @@ -420,7 +420,7 @@ endef TARGET_DEVICES += belkin_f5d8235-v2 define Device/belkin_f7c027 - DTS := F7C027 + MTK_SOC := rt5352 IMAGE_SIZE := 7616k DEVICE_VENDOR := Belkin DEVICE_MODEL := F7C027 @@ -430,7 +430,7 @@ endef TARGET_DEVICES += belkin_f7c027 define Device/fon_fonera-20n - DTS := FONERA20N + MTK_SOC := rt3052 IMAGES += factory.bin IMAGE/factory.bin := $$(sysupgrade_bin) | \ edimax-header -s RSDK -m NL1T -f 0x50000 -S 0xc0000 @@ -442,7 +442,7 @@ endef TARGET_DEVICES += fon_fonera-20n define Device/arcwireless_freestation5 - DTS := FREESTATION5 + MTK_SOC := rt3050 DEVICE_VENDOR := ARC Wireless DEVICE_MODEL := FreeStation DEVICE_PACKAGES := kmod-usb-dwc2 kmod-rt2500-usb kmod-rt2800-usb kmod-rt2x00-usb @@ -451,7 +451,7 @@ endef TARGET_DEVICES += arcwireless_freestation5 define Device/huawei_hg255d - DTS := HG255D + MTK_SOC := rt3052 IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := HuaWei DEVICE_MODEL := HG255D @@ -460,7 +460,7 @@ endef TARGET_DEVICES += huawei_hg255d define Device/hilink_hlk-rm04 - DTS := HLKRM04 + MTK_SOC := rt5350 IMAGES += factory.bin IMAGE/factory.bin := \ $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | hilink-header @@ -471,7 +471,7 @@ endef TARGET_DEVICES += hilink_hlk-rm04 define Device/hootoo_ht-tm02 - DTS := HT-TM02 + MTK_SOC := rt5350 DEVICE_VENDOR := HooToo DEVICE_MODEL := HT-TM02 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport @@ -480,7 +480,7 @@ endef TARGET_DEVICES += hootoo_ht-tm02 define Device/aztech_hw550-3g - DTS := HW550-3G + MTK_SOC := rt3052 DEVICE_VENDOR := Aztech DEVICE_MODEL := HW550-3G DEVICE_PACKAGES := kmod-usb-core kmod-usb-dwc2 kmod-usb-ledtrig-usbport @@ -489,7 +489,7 @@ endef TARGET_DEVICES += aztech_hw550-3g define Device/poray_ip2202 - DTS := IP2202 + MTK_SOC := rt3052 DEVICE_VENDOR := Poray DEVICE_MODEL := IP2202 SUPPORTED_DEVICES += ip2202 @@ -497,7 +497,7 @@ endef TARGET_DEVICES += poray_ip2202 define Device/jcg_jhr-n805r - DTS := JHR-N805R + MTK_SOC := rt3050 IMAGE_SIZE := $(ralink_default_fw_size_4M) IMAGES += factory.bin IMAGE/factory.bin := \ @@ -509,7 +509,7 @@ endef TARGET_DEVICES += jcg_jhr-n805r define Device/jcg_jhr-n825r - DTS := JHR-N825R + MTK_SOC := rt3052 IMAGE_SIZE := $(ralink_default_fw_size_4M) IMAGES += factory.bin IMAGE/factory.bin := \ @@ -521,7 +521,7 @@ endef TARGET_DEVICES += jcg_jhr-n825r define Device/jcg_jhr-n926r - DTS := JHR-N926R + MTK_SOC := rt3052 IMAGE_SIZE := $(ralink_default_fw_size_4M) IMAGES += factory.bin IMAGE/factory.bin := \ @@ -533,7 +533,7 @@ endef TARGET_DEVICES += jcg_jhr-n926r define Device/intenso_memory2move - DTS := M2M + MTK_SOC := rt5350 UIMAGE_NAME:= Linux Kernel Image DEVICE_VENDOR := Intenso DEVICE_MODEL := Memory 2 Move @@ -545,7 +545,7 @@ endef TARGET_DEVICES += intenso_memory2move define Device/poray_m3 - DTS := M3 + MTK_SOC := rt5350 IMAGE_SIZE := $(ralink_default_fw_size_4M) IMAGES += factory.bin IMAGE/factory.bin := \ @@ -559,7 +559,7 @@ endef TARGET_DEVICES += poray_m3 define Device/poray_m4-4m - DTS := M4-4M + MTK_SOC := rt5350 IMAGE_SIZE := $(ralink_default_fw_size_4M) IMAGES += factory.bin IMAGE/factory.bin := \ @@ -574,7 +574,7 @@ endef TARGET_DEVICES += poray_m4-4m define Device/poray_m4-8m - DTS := M4-8M + MTK_SOC := rt5350 IMAGES += factory.bin IMAGE/factory.bin := \ $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B M4 -F 8M @@ -587,7 +587,7 @@ endef TARGET_DEVICES += poray_m4-8m define Device/omnima_miniembplug - DTS := MINIEMBPLUG + MTK_SOC := rt5350 DEVICE_VENDOR := Omnima DEVICE_MODEL := MiniEMBPlug SUPPORTED_DEVICES += miniembplug @@ -595,7 +595,7 @@ endef TARGET_DEVICES += omnima_miniembplug define Device/omnima_miniembwifi - DTS := MINIEMBWIFI + MTK_SOC := rt3052 DEVICE_VENDOR := Omnima DEVICE_MODEL := MiniEMBWiFi SUPPORTED_DEVICES += miniembwifi @@ -603,7 +603,7 @@ endef TARGET_DEVICES += omnima_miniembwifi define Device/mofinetwork_mofi3500-3gn - DTS := MOFI3500-3GN + MTK_SOC := rt3052 DEVICE_VENDOR := MoFi Network DEVICE_MODEL := MOFI3500-3GN SUPPORTED_DEVICES += mofi3500-3gn @@ -611,7 +611,7 @@ endef TARGET_DEVICES += mofinetwork_mofi3500-3gn define Device/hame_mpr-a1 - DTS := MPRA1 + MTK_SOC := rt5350 BLOCKSIZE := 4k IMAGE_SIZE := $(ralink_default_fw_size_4M) UIMAGE_NAME:= Linux Kernel Image @@ -624,7 +624,7 @@ endef TARGET_DEVICES += hame_mpr-a1 define Device/hame_mpr-a2 - DTS := MPRA2 + MTK_SOC := rt5350 UIMAGE_NAME:= Linux Kernel Image DEVICE_VENDOR := HAME DEVICE_MODEL := MPR @@ -635,7 +635,7 @@ endef TARGET_DEVICES += hame_mpr-a2 define Device/aximcom_mr-102n - DTS := MR-102N + MTK_SOC := rt3052 DEVICE_VENDOR := AXIMCom DEVICE_MODEL := MR-102N SUPPORTED_DEVICES += mr-102n @@ -643,7 +643,7 @@ endef TARGET_DEVICES += aximcom_mr-102n define Device/planex_mzk-dp150n - DTS := MZK-DP150N + MTK_SOC := rt5350 BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := Planex @@ -654,7 +654,7 @@ endef TARGET_DEVICES += planex_mzk-dp150n define Device/planex_mzk-w300nh2 - DTS := MZK-W300NH2 + MTK_SOC := rt3052 IMAGE_SIZE := 3648k IMAGES += factory.bin IMAGE/factory.bin := $$(sysupgrade_bin) | \ @@ -666,7 +666,7 @@ endef TARGET_DEVICES += planex_mzk-w300nh2 define Device/planex_mzk-wdpr - DTS := MZK-WDPR + MTK_SOC := rt3052 DEVICE_VENDOR := Planex DEVICE_MODEL := MZK-WDPR SUPPORTED_DEVICES += mzk-wdpr @@ -674,7 +674,7 @@ endef TARGET_DEVICES += planex_mzk-wdpr define Device/zyxel_nbg-419n - DTS := NBG-419N + MTK_SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := ZyXEL @@ -684,7 +684,7 @@ endef TARGET_DEVICES += zyxel_nbg-419n define Device/zyxel_nbg-419n-v2 - DTS := NBG-419N2 + MTK_SOC := rt3352 IMAGE_SIZE := $(ralink_default_fw_size_8M) DEVICE_VENDOR := ZyXEL DEVICE_MODEL := NBG-419N @@ -694,7 +694,7 @@ endef TARGET_DEVICES += zyxel_nbg-419n-v2 define Device/wansview_ncs601w - DTS := NCS601W + MTK_SOC := rt5350 DEVICE_VENDOR := Wansview DEVICE_MODEL := NCS601W DEVICE_PACKAGES := kmod-video-core kmod-video-uvc \ @@ -704,7 +704,7 @@ endef TARGET_DEVICES += wansview_ncs601w define Device/nixcore_x1-8m - DTS := NIXCORE-8M + MTK_SOC := rt5350 IMAGE_SIZE := 7872k DEVICE_VENDOR := Nixcore DEVICE_MODEL := X1 @@ -715,7 +715,7 @@ endef TARGET_DEVICES += nixcore_x1-8m define Device/nixcore_x1-16m - DTS := NIXCORE-16M + MTK_SOC := rt5350 IMAGE_SIZE := 16064k DEVICE_VENDOR := Nixcore DEVICE_MODEL := X1 @@ -726,7 +726,7 @@ endef TARGET_DEVICES += nixcore_x1-16m define Device/netcore_nw718 - DTS := NW718 + MTK_SOC := rt3050 IMAGE_SIZE := 3712k UIMAGE_NAME:= ARA1B4NCRNW718;1 DEVICE_VENDOR := Netcore @@ -736,7 +736,7 @@ endef TARGET_DEVICES += netcore_nw718 define Device/petatel_psr-680w - DTS := PSR-680W + MTK_SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := Petatel @@ -746,7 +746,7 @@ endef TARGET_DEVICES += petatel_psr-680w define Device/prolink_pwh2004 - DTS := PWH2004 + MTK_SOC := rt3052 DEVICE_VENDOR := Prolink DEVICE_MODEL := PWH2004 DEVICE_PACKAGES := @@ -755,7 +755,7 @@ endef TARGET_DEVICES += prolink_pwh2004 define Device/7links_px-4885-4m - DTS := PX-4885-4M + MTK_SOC := rt5350 IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := 7Links DEVICE_MODEL := PX-4885 @@ -767,7 +767,7 @@ endef TARGET_DEVICES += 7links_px-4885-4m define Device/7links_px-4885-8m - DTS := PX-4885-8M + MTK_SOC := rt5350 DEVICE_VENDOR := 7Links DEVICE_MODEL := PX-4885 DEVICE_VARIANT := 8M @@ -778,7 +778,7 @@ endef TARGET_DEVICES += 7links_px-4885-8m define Device/olimex_rt5350f-olinuxino - DTS := RT5350F-OLINUXINO + MTK_SOC := rt5350 DEVICE_VENDOR := OLIMEX DEVICE_MODEL := RT5350F-OLinuXino DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 \ @@ -789,7 +789,7 @@ endef TARGET_DEVICES += olimex_rt5350f-olinuxino define Device/olimex_rt5350f-olinuxino-evb - DTS := RT5350F-OLINUXINO-EVB + MTK_SOC := rt5350 DEVICE_VENDOR := OLIMEX DEVICE_MODEL := RT5350F-OLinuXino-EVB DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 \ @@ -800,7 +800,7 @@ endef TARGET_DEVICES += olimex_rt5350f-olinuxino-evb define Device/asus_rt-g32-b1 - DTS := RT-G32-B1 + MTK_SOC := rt3050 BLOCKSIZE := 4k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := Asus @@ -811,7 +811,7 @@ endef TARGET_DEVICES += asus_rt-g32-b1 define Device/asus_rt-n10-plus - DTS := RT-N10-PLUS + MTK_SOC := rt3050 BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := Asus @@ -821,7 +821,7 @@ endef TARGET_DEVICES += asus_rt-n10-plus define Device/asus_rt-n13u - DTS := RT-N13U + MTK_SOC := rt3052 DEVICE_VENDOR := Asus DEVICE_MODEL := RT-N13U DEVICE_PACKAGES := kmod-leds-gpio kmod-rt2800-pci kmod-usb-dwc2 @@ -830,7 +830,7 @@ endef TARGET_DEVICES += asus_rt-n13u define Device/teltonika_rut5xx - DTS := RUT5XX + MTK_SOC := rt3050 DEVICE_VENDOR := Teltonika DEVICE_MODEL := RUT5XX DEVICE_PACKAGES := om-watchdog @@ -839,7 +839,7 @@ endef TARGET_DEVICES += teltonika_rut5xx define Device/skyline_sl-r7205 - DTS := SL-R7205 + MTK_SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := Skyline @@ -849,7 +849,7 @@ endef TARGET_DEVICES += skyline_sl-r7205 define Device/trendnet_tew-638apb-v2 - DTS := TEW-638APB-V2 + MTK_SOC := rt3050 BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) IMAGE/sysupgrade.bin := $$(sysupgrade_bin) | umedia-header 0x026382 | \ @@ -862,7 +862,7 @@ endef TARGET_DEVICES += trendnet_tew-638apb-v2 define Device/trendnet_tew-714tru - DTS := TEW-714TRU + MTK_SOC := rt5350 DEVICE_VENDOR := TRENDnet DEVICE_MODEL := TEW-714TRU SUPPORTED_DEVICES += tew-714tru @@ -870,7 +870,7 @@ endef TARGET_DEVICES += trendnet_tew-714tru define Device/upvel_ur-326n4g - DTS := UR-326N4G + MTK_SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := UPVEL @@ -881,7 +881,7 @@ endef TARGET_DEVICES += upvel_ur-326n4g define Device/upvel_ur-336un - DTS := UR-336UN + MTK_SOC := rt3052 DEVICE_VENDOR := UPVEL DEVICE_MODEL := UR-336UN DEVICE_PACKAGES := kmod-usb-core kmod-usb-dwc2 kmod-usb-ledtrig-usbport @@ -890,7 +890,7 @@ endef TARGET_DEVICES += upvel_ur-336un define Device/ralink_v22rw-2x2 - DTS := V22RW-2X2 + MTK_SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := Ralink @@ -900,7 +900,7 @@ endef TARGET_DEVICES += ralink_v22rw-2x2 define Device/vocore_vocore-8m - DTS := VOCORE-8M + MTK_SOC := rt5350 IMAGE_SIZE := 7872k DEVICE_VENDOR := VoCore DEVICE_MODEL := VoCore @@ -913,7 +913,7 @@ endef TARGET_DEVICES += vocore_vocore-8m define Device/vocore_vocore-16m - DTS := VOCORE-16M + MTK_SOC := rt5350 IMAGE_SIZE := 16064k DEVICE_VENDOR := VoCore DEVICE_MODEL := VoCore @@ -926,7 +926,7 @@ endef TARGET_DEVICES += vocore_vocore-16m define Device/tenda_w150m - DTS := W150M + MTK_SOC := rt3050 IMAGE_SIZE := $(ralink_default_fw_size_4M) UIMAGE_NAME:= W150M Kernel Image DEVICE_VENDOR := Tenda @@ -936,7 +936,7 @@ endef TARGET_DEVICES += tenda_w150m define Device/tenda_w306r-v2 - DTS := W306R_V20 + MTK_SOC := rt3052 IMAGE_SIZE := $(ralink_default_fw_size_4M) UIMAGE_NAME:= linkn Kernel Image DEVICE_VENDOR := Tenda @@ -947,7 +947,7 @@ endef TARGET_DEVICES += tenda_w306r-v2 define Device/alfa-network_w502u - DTS := W502U + MTK_SOC := rt3052 DEVICE_VENDOR := ALFA DEVICE_MODEL := Networks W502U SUPPORTED_DEVICES += w502u @@ -955,7 +955,7 @@ endef TARGET_DEVICES += alfa-network_w502u define Device/sparklan_wcr-150gn - DTS := WCR150GN + MTK_SOC := rt3050 BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := Sparklan @@ -965,7 +965,7 @@ endef TARGET_DEVICES += sparklan_wcr-150gn define Device/buffalo_whr-g300n - DTS := WHR-G300N + MTK_SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := 3801088 DEVICE_VENDOR := Buffalo @@ -978,7 +978,7 @@ endef TARGET_DEVICES += buffalo_whr-g300n define Device/easyacc_wizard-8800 - DTS := WIZARD8800 + MTK_SOC := rt5350 UIMAGE_NAME:= Linux Kernel Image DEVICE_VENDOR := EasyAcc DEVICE_MODEL := WIZARD 8800 @@ -987,7 +987,7 @@ endef TARGET_DEVICES += easyacc_wizard-8800 define Device/wiznet_wizfi630a - DTS := WIZFI630A + MTK_SOC := rt5350 IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := WIZnet DEVICE_MODEL := WizFi630A @@ -996,7 +996,7 @@ endef TARGET_DEVICES += wiznet_wizfi630a define Device/asus_wl-330n - DTS := WL-330N + MTK_SOC := rt3050 BLOCKSIZE := 4k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := Asus @@ -1006,7 +1006,7 @@ endef TARGET_DEVICES += asus_wl-330n define Device/asus_wl-330n3g - DTS := WL-330N3G + MTK_SOC := rt3050 BLOCKSIZE := 4k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := Asus @@ -1017,7 +1017,7 @@ endef TARGET_DEVICES += asus_wl-330n3g define Device/sitecom_wl-351 - DTS := WL-351 + MTK_SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := Sitecom @@ -1028,7 +1028,7 @@ endef TARGET_DEVICES += sitecom_wl-351 define Device/netgear_wnce2001 - DTS := WNCE2001 + MTK_SOC := rt3052 IMAGE_SIZE := $(ralink_default_fw_size_4M) IMAGES += factory.bin factory-NA.bin IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ @@ -1042,7 +1042,7 @@ endef TARGET_DEVICES += netgear_wnce2001 define Device/unbranded_wr512-3gn-4m - DTS := WR512-3GN-4M + MTK_SOC := rt3052 IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := Ralink DEVICE_MODEL := WR512-3GN @@ -1052,7 +1052,7 @@ endef TARGET_DEVICES += unbranded_wr512-3gn-4m define Device/unbranded_wr512-3gn-8m - DTS := WR512-3GN-8M + MTK_SOC := rt3052 DEVICE_VENDOR := Ralink DEVICE_MODEL := WR512-3GN DEVICE_VARIANT := 8M @@ -1061,7 +1061,7 @@ endef TARGET_DEVICES += unbranded_wr512-3gn-8m define Device/accton_wr6202 - DTS := WR6202 + MTK_SOC := rt3052 DEVICE_VENDOR := Accton DEVICE_MODEL := WR6202 SUPPORTED_DEVICES += wr6202 @@ -1069,7 +1069,7 @@ endef TARGET_DEVICES += accton_wr6202 define Device/nexx_wt1520-4m - DTS := WT1520-4M + MTK_SOC := rt5350 IMAGE_SIZE := $(ralink_default_fw_size_4M) IMAGES += factory.bin IMAGE/factory.bin := \ @@ -1082,7 +1082,7 @@ endef TARGET_DEVICES += nexx_wt1520-4m define Device/nexx_wt1520-8m - DTS := WT1520-8M + MTK_SOC := rt5350 IMAGES += factory.bin IMAGE/factory.bin := \ $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B WT1520 -F 8M @@ -1094,7 +1094,7 @@ endef TARGET_DEVICES += nexx_wt1520-8m define Device/poray_x5 - DTS := X5 + MTK_SOC := rt5350 IMAGES += factory.bin IMAGE/factory.bin := \ $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B X5 -F 8M @@ -1106,7 +1106,7 @@ endef TARGET_DEVICES += poray_x5 define Device/poray_x8 - DTS := X8 + MTK_SOC := rt5350 IMAGES += factory.bin IMAGE/factory.bin := \ $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | poray-header -B X8 -F 8M @@ -1118,7 +1118,7 @@ endef TARGET_DEVICES += poray_x8 define Device/unbranded_xdx-rn502j - DTS := XDXRN502J + MTK_SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := XDX @@ -1128,7 +1128,7 @@ endef TARGET_DEVICES += unbranded_xdx-rn502j define Device/zyxel_keenetic - DTS := kn + MTK_SOC := rt3052 BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := ZyXEL @@ -1139,7 +1139,7 @@ endef TARGET_DEVICES += zyxel_keenetic define Device/zyxel_keenetic-start - DTS := kn_st + MTK_SOC := rt5350 IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := ZyXEL DEVICE_MODEL := Keenetic Start @@ -1147,7 +1147,7 @@ endef TARGET_DEVICES += zyxel_keenetic-start define Device/zorlik_zl5900v2 - DTS := ZL5900V2 + MTK_SOC := rt5350 DEVICE_VENDOR := Zorlik DEVICE_MODEL := ZL5900V2 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-netdev