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