From: Adrian Schmutzler Date: Wed, 3 Jul 2019 21:22:31 +0000 (+0200) Subject: ramips/mt76x8: Name DTS files based on scheme X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b97a99256fe54e81c8fc6c60183f46fbf731bbf8;p=openwrt%2Fstaging%2Fdangole.git ramips/mt76x8: Name DTS files based on scheme Signed-off-by: Adrian Schmutzler --- diff --git a/target/linux/ramips/dts/AWUSFREE1.dts b/target/linux/ramips/dts/AWUSFREE1.dts deleted file mode 100644 index 4e5ce1cc7b..0000000000 --- a/target/linux/ramips/dts/AWUSFREE1.dts +++ /dev/null @@ -1,173 +0,0 @@ -/* - * BSD LICENSE - * - * Copyright (C) 2018 Piotr Dymacz - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the names of the copyright holders nor the names of any - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "alfa-network,awusfree1", "mediatek,mt7628an-soc"; - model = "ALFA Network AWUSFREE1"; - - aliases { - led-boot = &led_system; - led-failsafe = &led_system; - led-running = &led_system; - led-upgrade = &led_system; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_system: system { - label = "awusfree1:orange:system"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "awusfree1:blue:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x4000000>; - }; -}; - -&ehci { - status = "disabled"; -}; - -&esw { - mediatek,portdisable = <0x1e>; -}; - -ðernet { - mtd-mac-address = <&factory 0x2e>; -}; - -&gpio1 { - status = "okay"; -}; - -&ohci { - status = "disabled"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "p0led_an", "wdt", "wled_an"; - ralink,function = "gpio"; - }; - - ext_lna { - ralink,group = "uart1"; - ralink,function = "sw_r"; - }; - - ext_pa { - ralink,group = "i2s"; - ralink,function = "antenna"; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x1000>; - }; - - partition@31000 { - label = "config"; - reg = <0x31000 0xf000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x7b0000>; - }; - }; - }; -}; - -&wmac { - status = "okay"; - mediatek,mtd-eeprom = <&factory 0x0>; -}; diff --git a/target/linux/ramips/dts/ArcherC20v4.dts b/target/linux/ramips/dts/ArcherC20v4.dts deleted file mode 100644 index f207ac0d46..0000000000 --- a/target/linux/ramips/dts/ArcherC20v4.dts +++ /dev/null @@ -1,105 +0,0 @@ -/dts-v1/; - -#include "TPLINK-8M.dtsi" - -#include -#include - -/ { - compatible = "tplink,archer-c20-v4", "mediatek,mt7628an-soc"; - model = "TP-Link Archer C20 v4"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - lan { - label = "c20-v4:green:lan"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "c20-v4:green:power"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; - }; - - wan { - label = "c20-v4:green:wan"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - }; - - wan_orange { - label = "c20-v4:orange:wan"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - wlan5g { - label = "c20-v4:green:wlan5g"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; - }; - - wlan2g { - label = "c20-v4:green:wlan2g"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "c20-v4:green:wps"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - rfkill { - label = "rfkill"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&wmac { - mtd-mac-address-increment = <(-2)>; -}; - -ðernet { - mediatek,portmap = "wllll"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2s", "refclk", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt"; - ralink,function = "gpio"; - }; - }; -}; - -&pcie { - status = "okay"; -}; - -&pcie0 { - mt76@0,0 { - reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&factory 0x28000>; - ieee80211-freq-limit = <5000000 6000000>; - mtd-mac-address = <&factory 0xf100>; - mtd-mac-address-increment = <(-1)>; - }; -}; diff --git a/target/linux/ramips/dts/ArcherC50V3.dts b/target/linux/ramips/dts/ArcherC50V3.dts deleted file mode 100644 index 32cc42ef58..0000000000 --- a/target/linux/ramips/dts/ArcherC50V3.dts +++ /dev/null @@ -1,98 +0,0 @@ -/dts-v1/; - -#include "TPLINK-8M.dtsi" - -#include -#include - -/ { - compatible = "tplink,archer-c50-v3", "mediatek,mt7628an-soc"; - model = "TP-Link Archer C50 v3"; - - 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 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - rfkill { - label = "rfkill"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - lan { - label = "c50-v3:green:lan"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "c50-v3:green:power"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - wan { - label = "c50-v3:green:wan"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; - }; - - wan_orange { - label = "c50-v3:orange:wan"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "c50-v3:green:wlan2g"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - - wlan5 { - label = "c50-v3:green:wlan5g"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "c50-v3:green:wps"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "gpio", "p0led_an", "p1led_an", "p2led_an", - "p3led_an", "p4led_an", "wdt", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; - -&pcie { - status = "okay"; -}; - -&pcie0 { - mt76@0,0 { - reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&factory 0x28000>; - ieee80211-freq-limit = <5000000 6000000>; - mtd-mac-address = <&factory 0xf100>; - mtd-mac-address-increment = <(-1)>; - }; -}; diff --git a/target/linux/ramips/dts/ArcherC50V4.dts b/target/linux/ramips/dts/ArcherC50V4.dts deleted file mode 100644 index 7d129a5f80..0000000000 --- a/target/linux/ramips/dts/ArcherC50V4.dts +++ /dev/null @@ -1,99 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; - -#include "TPLINK-8M-SPLIT-UBOOT.dtsi" - -#include -#include - -/ { - compatible = "tplink,archer-c50-v4", "mediatek,mt7628an-soc"; - model = "TP-Link Archer C50 v4"; - - 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 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - rfkill { - label = "rfkill"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "c50-v4:green:power"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - wlan2 { - label = "c50-v4:green:wlan2g"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - - wlan5 { - label = "c50-v4:green:wlan5g"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "c50-v4:green:lan"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; - }; - - wan { - label = "c50-v4:green:wan"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; - }; - - wan_orange { - label = "c50-v4:orange:wan"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "c50-v4:green:wps"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "p0led_an", "p1led_an", "p2led_an", - "p3led_an", "p4led_an", "wdt", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; - -&pcie { - status = "okay"; -}; - -&pcie0 { - wifi@0,0 { - reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&radio 0x8000>; - ieee80211-freq-limit = <5000000 6000000>; - mtd-mac-address = <&rom 0xf100>; - mtd-mac-address-increment = <(-1)>; - }; -}; diff --git a/target/linux/ramips/dts/DUZUN-DM06.dts b/target/linux/ramips/dts/DUZUN-DM06.dts deleted file mode 100644 index 7325e2c699..0000000000 --- a/target/linux/ramips/dts/DUZUN-DM06.dts +++ /dev/null @@ -1,145 +0,0 @@ -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "duzun,dm06", "mediatek,mt7628an-soc"; - model = "DuZun DM06"; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x4000000>; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <100>; - - reset { - label = "reset"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - sound { - compatible = "simple-audio-card"; - simple-audio-card,name = "Audio-I2S"; - simple-audio-card,format = "i2s"; - simple-audio-card,bitclock-master = <&dailink0_master>; - simple-audio-card,frame-master = <&dailink0_master>; - simple-audio-card,widgets = - "Headphone", "Headphones"; - simple-audio-card,routing = - "Headphones", "HP_L", - "Headphones", "HP_R"; - simple-audio-card,mclk-fs = <256>; - - simple-audio-card,cpu { - sound-dai = <&i2s>; - }; - - dailink0_master: simple-audio-card,codec { - sound-dai = <&codec>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "uart1"; - ralink,function = "gpio"; - }; - }; -}; - -&gpio1 { - status = "okay"; -}; - -&i2c { - status = "okay"; - - codec: wm8960@1a { - #sound-dai-cells = <0>; - compatible = "wlf,wm8960"; - reg = <0x1a>; - - wlf,shared-lrclk; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&esw { - mediatek,portmap = <0x3>; - mediatek,portdisable = <0x3c>; -}; - -&i2s { - #sound-dai-cells = <0>; - status = "okay"; - pinctrl-names = "default"; - pinctrl-0 = <&i2s_pins>, <&refclk_pins>; -}; - -&sdhci { - status = "okay"; -}; - -&gdma { - status = "okay"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <60000000>; - 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 0x7b0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/GL-MT300N-V2.dts b/target/linux/ramips/dts/GL-MT300N-V2.dts deleted file mode 100644 index e4220736d2..0000000000 --- a/target/linux/ramips/dts/GL-MT300N-V2.dts +++ /dev/null @@ -1,151 +0,0 @@ -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/{ - compatible = "glinet,gl-mt300n-v2", "mediatek,mt7628an-soc"; - model = "GL-MT300N-V2"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x8000000>; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "gl-mt300n-v2:green:power"; - default-state = "on"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; - }; - - wan { - label = "gl-mt300n-v2:green:wan"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "gl-mt300n-v2:red:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - BTN_0 { - label = "BTN_0"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - BTN_1 { - label = "BTN_1"; - gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - gpio_export { - compatible = "gpio-export"; - #size-cells = <0>; - - usb { - gpio-export,name = "usb"; - gpio-export,output = <1>; - gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&wmac { - status = "okay"; - ralink,mtd-eeprom = <&factory 0x0>; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0xfb0000>; - }; - }; - }; -}; - -&uart1 { - status = "okay"; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/HC5661A.dts b/target/linux/ramips/dts/HC5661A.dts deleted file mode 100644 index 25f1ff1a02..0000000000 --- a/target/linux/ramips/dts/HC5661A.dts +++ /dev/null @@ -1,132 +0,0 @@ -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "hiwifi,hc5661a", "mediatek,mt7628an-soc"; - model = "HiWiFi HC5661A"; - - aliases { - led-boot = &led_system; - led-failsafe = &led_system; - led-running = &led_system; - led-upgrade = &led_system; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x8000000>; - }; - - leds { - compatible = "gpio-leds"; - - led_system: system { - label = "hc5661a:blue:system"; - gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; - }; - internet { - label = "hc5661a:blue:internet"; - gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; - }; - wlan2g { - label = "hc5661a:blue:wlan2g"; - gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "refclk", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - linux,modalias = "m25p80", "w25q128"; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "hw_panic"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0xf70000>; - }; - - partition@fc0000 { - label = "oem"; - reg = <0xfc0000 0x20000>; - read-only; - }; - - bdinfo: partition@fe0000 { - label = "bdinfo"; - reg = <0xfe0000 0x10000>; - read-only; - }; - - partition@ff0000 { - label = "backup"; - reg = <0xff0000 0x10000>; - read-only; - }; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; - mediatek,portmap = "wllll"; -}; - -&wmac { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/HC5861B.dts b/target/linux/ramips/dts/HC5861B.dts deleted file mode 100644 index 5cc2634dcc..0000000000 --- a/target/linux/ramips/dts/HC5861B.dts +++ /dev/null @@ -1,144 +0,0 @@ -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "hiwifi,hc5861b", "mediatek,mt7628an-soc"; - model = "HiWiFi HC5861B"; - - aliases { - led-boot = &led_system; - led-failsafe = &led_system; - led-running = &led_system; - led-upgrade = &led_system; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x8000000>; - }; - - leds { - compatible = "gpio-leds"; - - led_system: system { - label = "hc5861b:green:system"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - }; - wlan2g { - label = "hc5861b:green:wlan2g"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "refclk", "wdt", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; - -&spi0 { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "hw_panic"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0xf70000>; - }; - - partition@fc0000 { - label = "oem"; - reg = <0xfc0000 0x20000>; - read-only; - }; - - bdinfo: partition@fe0000 { - label = "bdinfo"; - reg = <0xfe0000 0x10000>; - read-only; - }; - - partition@ff0000 { - label = "backup"; - reg = <0xff0000 0x10000>; - read-only; - }; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&wmac { - status = "okay"; -}; - -&pcie { - status = "okay"; -}; - -&pcie0 { - wifi@0,0 { - reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&factory 0x8000>; - mtd-mac-address = <&factory 0x2e>; - ieee80211-freq-limit = <5000000 6000000>; - - led { - led-sources = <2>; - led-active-low; - }; - }; -}; diff --git a/target/linux/ramips/dts/HLK-7628N.dts b/target/linux/ramips/dts/HLK-7628N.dts deleted file mode 100644 index 71c6b60ac2..0000000000 --- a/target/linux/ramips/dts/HLK-7628N.dts +++ /dev/null @@ -1,99 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "hilink,hlk-7628n", "mediatek,mt7628an-soc"; - model = "HILINK HLK-7628N"; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x8000000>; - }; - - chosen { - bootargs = "console=ttyS0,57600"; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - wlan { - label = "hlk-7628n:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c"; - ralink,function = "gpio"; - }; - }; -}; - -&uart1 { - status = "okay"; -}; - -&spi0 { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x1fb0000>; - }; - }; - }; -}; - -&wmac { - status = "okay"; -}; - diff --git a/target/linux/ramips/dts/LINKIT7688.dts b/target/linux/ramips/dts/LINKIT7688.dts deleted file mode 100644 index eaa75f407d..0000000000 --- a/target/linux/ramips/dts/LINKIT7688.dts +++ /dev/null @@ -1,174 +0,0 @@ -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "mediatek,linkit-smart-7688", "mediatek,mt7628an-soc"; - model = "MediaTek LinkIt Smart 7688"; - - aliases { - led-boot = &led_wifi; - led-failsafe = &led_wifi; - led-running = &led_wifi; - led-upgrade = &led_wifi; - }; - - chosen { - bootargs = "console=ttyS2,57600"; - }; - - aliases { - serial0 = &uart2; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x8000000>; - }; - - bootstrap { - compatible = "mediatek,linkit"; - - status = "okay"; - }; - - leds { - compatible = "gpio-leds"; - - led_wifi: wifi { - label = "linkit-smart-7688:orange:wifi"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - wps { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; - }; - - refclk { - ralink,group = "refclk"; - ralink,function = "gpio"; - }; - - i2s { - ralink,group = "i2s"; - ralink,function = "gpio"; - }; - - spis { - ralink,group = "spis"; - ralink,function = "gpio"; - }; - - wled_an { - ralink,group = "wled_an"; - ralink,function = "gpio"; - }; - - wdt { - ralink,group = "wdt"; - ralink,function = "gpio"; - }; - }; -}; - -&wmac { - status = "okay"; -}; - -&spi0 { - status = "okay"; - - pinctrl-names = "default"; - pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <40000000>; - - 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>; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x1fb0000>; - }; - }; - }; - - spidev@1 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "linux,spidev"; - reg = <1>; - spi-max-frequency = <40000000>; - }; -}; - -&i2c { - status = "okay"; -}; - -&uart1 { - status = "okay"; -}; - -&uart2 { - status = "okay"; -}; - -&pwm { - status = "okay"; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&sdhci { - status = "okay"; - mediatek,cd-high; -}; - -&wmac { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/MAC1200RV2.dts b/target/linux/ramips/dts/MAC1200RV2.dts deleted file mode 100644 index 7d13621135..0000000000 --- a/target/linux/ramips/dts/MAC1200RV2.dts +++ /dev/null @@ -1,107 +0,0 @@ -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "mercury,mac1200r-v2", "mediatek,mt7628an-soc"; - model = "Mercury MAC1200R v2"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - chosen { - bootargs = "console=ttyS0,57600"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x2000000>; - }; - - leds { - compatible = "gpio-leds"; - led_status: status { - label = "mac1200rv2:green:status"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0 0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x1d800>; - }; - - factory: partition@1d800 { - label = "factory_info"; - reg = <0x1d800 0x800>; - read-only; - }; - - art: partition@1e000 { - label = "art"; - reg = <0x1e000 0x2000>; - read-only; - }; - - partition@20000 { - label = "config"; - reg = <0x20000 0x10000>; - }; - - partition@30000 { - label = "u-boot2"; - reg = <0x30000 0x10000>; - }; - - partition@40000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x40000 0x7c0000>; - }; - }; - }; -}; - -ðernet { - pinctrl-names = "default"; - mtd-mac-address = <&factory 0xd>; - mediatek,portmap = "llllw"; -}; - -&wmac { - status = "okay"; - ralink,mtd-eeprom = <&art 0x0>; -}; - -&pcie { - status = "okay"; -}; - -&pcie0 { - mt76@0,0 { - reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&art 0x1000>; - ieee80211-freq-limit = <5000000 6000000>; - }; -}; diff --git a/target/linux/ramips/dts/MIWIFI-NANO.dts b/target/linux/ramips/dts/MIWIFI-NANO.dts deleted file mode 100644 index bad37e21f1..0000000000 --- a/target/linux/ramips/dts/MIWIFI-NANO.dts +++ /dev/null @@ -1,113 +0,0 @@ -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc"; - model = "MiWiFi Nano"; - - aliases { - led-boot = &led_blue; - led-failsafe = &led_blue; - led-running = &led_blue; - led-upgrade = &led_blue; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x4000000>; - }; - - leds { - compatible = "gpio-leds"; - - led_blue: status_blue { - label = "miwifi-nano:blue:status"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - status_red { - label = "miwifi-nano:red:status"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - }; - status_amber { - label = "miwifi-nano:amber:status"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "refclk", "wled_an", "gpio"; - ralink,function = "gpio"; - }; - }; -}; - -&wmac { - status = "okay"; - ralink,mtd-eeprom = <&factory 0x4>; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0xfb0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/MT7628.dts b/target/linux/ramips/dts/MT7628.dts deleted file mode 100644 index b4afc8ce96..0000000000 --- a/target/linux/ramips/dts/MT7628.dts +++ /dev/null @@ -1,70 +0,0 @@ -/dts-v1/; - -#include "mt7628an.dtsi" - -/ { - compatible = "mediatek,mt7628an-eval-board", "mediatek,mt7628an-soc"; - model = "Mediatek MT7628AN evaluation board"; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x2000000>; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c"; - ralink,function = "gpio"; - }; - }; -}; - -&wmac { - status = "okay"; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x7b0000>; - }; - }; - }; -}; - -&wmac { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/OMEGA2.dts b/target/linux/ramips/dts/OMEGA2.dts deleted file mode 100644 index 25cc818d56..0000000000 --- a/target/linux/ramips/dts/OMEGA2.dts +++ /dev/null @@ -1,21 +0,0 @@ -/dts-v1/; - -#include "OMEGA2.dtsi" - -/ { - compatible = "onion,omega2", "mediatek,mt7628an-soc"; - model = "Onion Omega2"; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x4000000>; - }; -}; - -&firmware { - reg = <0x50000 0xfb0000>; -}; - -&system_led { - label = "omega2:amber:system"; -}; diff --git a/target/linux/ramips/dts/OMEGA2.dtsi b/target/linux/ramips/dts/OMEGA2.dtsi deleted file mode 100644 index e36602d6c9..0000000000 --- a/target/linux/ramips/dts/OMEGA2.dtsi +++ /dev/null @@ -1,175 +0,0 @@ -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "onion,omega2", "mediatek,mt7628an-soc"; - - aliases { - led-boot = &system_led; - led-failsafe = &system_led; - led-running = &system_led; - led-upgrade = &system_led; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - leds { - compatible = "gpio-leds"; - - system_led: system { - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; - }; - - perst { - ralink,group = "perst"; - ralink,function = "gpio"; - }; - - refclk { - ralink,group = "refclk"; - ralink,function = "gpio"; - }; - - i2s { - ralink,group = "i2s"; - ralink,function = "gpio"; - }; - - spis { - ralink,group = "spis"; - ralink,function = "gpio"; - }; - - wled_kn { - ralink,group = "wled_kn"; - ralink,function = "gpio"; - }; - - wled_an { - ralink,group = "wled_an"; - ralink,function = "gpio"; - }; - - wdt { - ralink,group = "wdt"; - ralink,function = "gpio"; - }; - - pwm0 { - ralink,group = "pwm0"; - ralink,function = "gpio"; - }; - - pwm1 { - ralink,group = "pwm1"; - ralink,function = "gpio"; - }; - }; -}; - -&gpio1 { - status = "okay"; -}; - -&gpio2 { - status = "okay"; -}; - -&spi0 { - status = "okay"; - - pinctrl-names = "default"; - pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <40000000>; - - 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; - }; - - firmware: partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - }; - }; - }; - - spidev@1 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "linux,spidev"; - reg = <1>; - spi-max-frequency = <40000000>; - }; -}; - -&i2c { - status = "okay"; -}; - -&uart1 { - status = "okay"; -}; - -&uart2 { - status = "okay"; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&sdhci { - status = "okay"; - mediatek,cd-low; -}; - -&wmac { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/OMEGA2P.dts b/target/linux/ramips/dts/OMEGA2P.dts deleted file mode 100644 index 53e8377292..0000000000 --- a/target/linux/ramips/dts/OMEGA2P.dts +++ /dev/null @@ -1,21 +0,0 @@ -/dts-v1/; - -#include "OMEGA2.dtsi" - -/ { - compatible = "onion,omega2p", "onion,omega2", "mediatek,mt7628an-soc"; - model = "Onion Omega2+"; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x8000000>; - }; -}; - -&firmware { - reg = <0x50000 0x1fb0000>; -}; - -&system_led { - label = "omega2p:amber:system"; -}; diff --git a/target/linux/ramips/dts/PBR-D1.dts b/target/linux/ramips/dts/PBR-D1.dts deleted file mode 100644 index 6d98a4492f..0000000000 --- a/target/linux/ramips/dts/PBR-D1.dts +++ /dev/null @@ -1,171 +0,0 @@ -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "d-team,pbr-d1", "mediatek,mt7628an-soc"; - model = "PBR-D1"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - aliases { - serial0 = &uart2; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x8000000>; - }; - - leds { - compatible = "gpio-leds"; - - usb { - label = "pbr-d1:orange:usb"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - trigger-sources = <&ohci_port1>, <&ehci_port1>; - linux,default-trigger = "usbport"; - }; - - led_power: power { - label = "pbr-d1:orange:power"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - default-state = "on"; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 38 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - wgpio: gpio-wifi { - compatible = "mediatek,gpio-wifi"; - #address-cells = <1>; - #size-cells = <0>; - gpio-controller; - #gpio-cells = <2>; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; - }; - - i2c { - ralink,group = "i2c"; - ralink,function = "gpio"; - }; - - i2s { - ralink,group = "i2s"; - ralink,function = "gpio"; - }; - - spis { - ralink,group = "spis"; - ralink,function = "gpio"; - }; - - wdt { - ralink,group = "wdt"; - ralink,function = "gpio"; - }; - }; -}; - -&spi0 { - status = "okay"; - - pinctrl-names = "default"; - pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <40000000>; - - 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>; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x0fb0000>; - }; - }; - }; - - spidev@1 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "linux,spidev"; - reg = <1>; - spi-max-frequency = <40000000>; - }; -}; - -&i2c { - status = "okay"; -}; - -&uart1 { - status = "okay"; -}; - -&uart2 { - status = "okay"; -}; - -&pwm { - status = "okay"; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&sdhci { - status = "okay"; - mediatek,cd-high; -}; diff --git a/target/linux/ramips/dts/R6120.dts b/target/linux/ramips/dts/R6120.dts deleted file mode 100644 index d263c7824b..0000000000 --- a/target/linux/ramips/dts/R6120.dts +++ /dev/null @@ -1,161 +0,0 @@ -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "netgear,r6120", "mediatek,mt7628an-soc"; - model = "Netgear R6120"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x4000000>; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - lan { - label = "r6120:green:lan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "r6120:green:power"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "r6120:green:wlan2g"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; - }; - - wlan_orange { - label = "r6120:orange:wlan2g"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; - }; - - wan { - label = "r6120:green:wan"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; - }; - - wan_orange { - label = "r6120:orange:wan"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; - }; - }; - - usb-regulator { - compatible = "regulator-fixed"; - - regulator-name = "USB-power"; - gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - enable-active-high; - - regulator-always-on; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "p0led_an", "p1led_an", "p2led_an", - "p3led_an", "p4led_an", "wdt", - "wled_an", "uart1"; - ralink,function = "gpio"; - }; - }; -}; - -&spi0 { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x40000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x20000>; - read-only; - }; - - partition@60000 { - label = "nvram"; - reg = <0x60000 0x30000>; - read-only; - }; - - partition@90000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x90000 0xf60000>; - }; - - partition@ff0000 { - label = "reserved"; - reg = <0xff0000 0x10000>; - read-only; - }; - }; - }; -}; - -&wmac { - status = "okay"; - mtd-mac-address = <&factory 0x4>; - mediatek,mtd-eeprom = <&factory 0x0>; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&pcie { - status = "okay"; -}; - -&pcie0 { - wifi@0,0 { - reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&factory 0x8000>; - ieee80211-freq-limit = <5000000 6000000>; - mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <(2)>; - }; -}; diff --git a/target/linux/ramips/dts/RAK633.dts b/target/linux/ramips/dts/RAK633.dts deleted file mode 100644 index ac7218510f..0000000000 --- a/target/linux/ramips/dts/RAK633.dts +++ /dev/null @@ -1,104 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "rakwireless,rak633", "mediatek,mt7628an-soc"; - model = "Rakwireless RAK633"; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x4000000>; - }; - - leds { - compatible = "gpio-leds"; - - wifi { - label = "rak633:blue:wifi"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - wled_an { - ralink,group = "wled_an"; - ralink,function = "gpio"; - }; - }; -}; - -&spi0 { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x7b0000>; - }; - }; - }; -}; - -&i2c { - status = "okay"; -}; - -&i2s { - status = "okay"; -}; - -&uart1 { - status = "okay"; -}; - -&uart2 { - status = "okay"; -}; - -&gdma { - status = "okay"; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&wmac { - status = "okay"; - ralink,mtd-eeprom = <&factory 0x4>; -}; diff --git a/target/linux/ramips/dts/SKW92A.dts b/target/linux/ramips/dts/SKW92A.dts deleted file mode 100644 index dddb794a8f..0000000000 --- a/target/linux/ramips/dts/SKW92A.dts +++ /dev/null @@ -1,121 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/{ - compatible = "skylab,skw92a", "mediatek,mt7628an-soc"; - model = "SKYLAB SKW92A"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - }; - - chosen { - bootargs = "console=ttyS0,57600"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x4000000>; - }; - - leds { - compatible = "gpio-leds"; - - led_power: wps { - label = "skw92a:green:wps"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "skw92a:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "refclk", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&wmac { - status = "okay"; - ralink,mtd-eeprom = <&factory 0x0>; -}; - -&spi0 { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - label = "firmware"; - reg = <0x50000 0xfb0000>; - compatible = "denx,uimage"; - }; - }; - }; -}; - -&uart1 { - status = "okay"; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/TL-MR3020V3.dts b/target/linux/ramips/dts/TL-MR3020V3.dts deleted file mode 100644 index 7a9ef41446..0000000000 --- a/target/linux/ramips/dts/TL-MR3020V3.dts +++ /dev/null @@ -1,149 +0,0 @@ -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "tplink,tl-mr3020-v3", "mediatek,mt7628an-soc"; - model = "TP-Link TL-MR3020 v3"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x4000000>; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - wps { - label = "wps"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - modec1 { - label = "sw1"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - modec2 { - label = "sw2"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "tl-mr3020-v3:green:power"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - default-state = "on"; - }; - - wan { - label = "tl-mr3020-v3:green:3g"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - trigger-sources = <&ehci_port1>, <&ohci_port1>; - linux,default-trigger = "usbport"; - }; - - wlan { - label = "tl-mr3020-v3:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "tl-mr3020-v3:green:wps"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "tl-mr3020-v3:green:lan"; - gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "boot"; - reg = <0x0 0x20000>; - read-only; - }; - - partition@20000 { - compatible = "tplink,firmware"; - label = "firmware"; - reg = <0x20000 0x7a0000>; - }; - - partition@7c0000 { - label = "config"; - reg = <0x7c0000 0x10000>; - read-only; - }; - - factory: partition@7d0000 { - label = "factory"; - reg = <0x7d0000 0x30000>; - read-only; - }; - }; - }; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2s", "refclk", "wdt", "p2led_an", "p1led_an", "p0led_an", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; - -&wmac { - status = "okay"; - mtd-mac-address = <&factory 0xf100>; - mediatek,mtd-eeprom = <&factory 0x20000>; -}; - -ðernet { - mtd-mac-address = <&factory 0xf100>; -}; diff --git a/target/linux/ramips/dts/TL-MR3420V5.dts b/target/linux/ramips/dts/TL-MR3420V5.dts deleted file mode 100644 index a528152d38..0000000000 --- a/target/linux/ramips/dts/TL-MR3420V5.dts +++ /dev/null @@ -1,93 +0,0 @@ -/dts-v1/; - -#include "TPLINK-8M.dtsi" - -#include -#include - -/ { - compatible = "tplink,tl-mr3420-v5", "mediatek,mt7628an-soc"; - model = "TP-Link TL-MR3420 v5"; - - 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 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - rfkill { - label = "rfkill"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - lan { - label = "tl-mr3420-v5:green:lan"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "tl-mr3420-v5:green:power"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; - }; - - usb { - label = "tl-mr3420-v5:green:usb"; - gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; - trigger-sources = <&ohci_port1>, <&ehci_port1>; - linux,default-trigger = "usbport"; - }; - - wan { - label = "tl-mr3420-v5:green:wan"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; - }; - - wan_amber { - label = "tl-mr3420-v5:amber:wan"; - gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "tl-mr3420-v5:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "tl-mr3420-v5:green:wps"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; diff --git a/target/linux/ramips/dts/TL-WA801NDV5.dts b/target/linux/ramips/dts/TL-WA801NDV5.dts deleted file mode 100644 index fb944b07ef..0000000000 --- a/target/linux/ramips/dts/TL-WA801NDV5.dts +++ /dev/null @@ -1,62 +0,0 @@ -/dts-v1/; - -#include "TPLINK-8M.dtsi" - -#include -#include - -/ { - compatible = "tplink,tl-wa801nd-v5", "mediatek,mt7628an-soc"; - model = "TP-Link TL-WA801ND v5"; - - 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 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "tl-wa801nd-v5:green:power"; - gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "tl-wa801nd-v5:green:lan"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "tl-wa801nd-v5:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "tl-wa801nd-v5:orange:wps"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "p0led_an", "perst", "refclk", "wdt", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; diff --git a/target/linux/ramips/dts/TL-WR802NV4.dts b/target/linux/ramips/dts/TL-WR802NV4.dts deleted file mode 100644 index 668da700c3..0000000000 --- a/target/linux/ramips/dts/TL-WR802NV4.dts +++ /dev/null @@ -1,53 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; - -#include "TPLINK-8M.dtsi" - -#include -#include - -/ { - compatible = "tplink,tl-wr802n-v4", "mediatek,mt7628an-soc"; - model = "TP-Link TL-WR802N v4"; - - 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 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "tl-wr802n-v4:green:power"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "refclk", "wdt"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0xf100>; - mediatek,portmap = "l"; -}; diff --git a/target/linux/ramips/dts/TL-WR840NV4.dts b/target/linux/ramips/dts/TL-WR840NV4.dts deleted file mode 100644 index 5f5bb4fa47..0000000000 --- a/target/linux/ramips/dts/TL-WR840NV4.dts +++ /dev/null @@ -1,67 +0,0 @@ -/dts-v1/; - -#include "TPLINK-8M.dtsi" - -#include -#include - -/ { - compatible = "tplink,tl-wr840n-v4", "mediatek,mt7628an-soc"; - model = "TP-Link TL-WR840N v4"; - - 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 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - lan { - label = "tl-wr840n-v4:green:lan"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "tl-wr840n-v4:green:power"; - gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; - }; - - wan { - label = "tl-wr840n-v4:green:wan"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "tl-wr840n-v4:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "tl-wr840n-v4:green:wps"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "p0led_an", "p2led_an", "perst", "refclk", "wdt", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; diff --git a/target/linux/ramips/dts/TL-WR840NV5.dts b/target/linux/ramips/dts/TL-WR840NV5.dts deleted file mode 100644 index 773839098b..0000000000 --- a/target/linux/ramips/dts/TL-WR840NV5.dts +++ /dev/null @@ -1,114 +0,0 @@ -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "tplink,tl-wr840n-v5", "mediatek,mt7628an-soc"; - model = "TP-Link TL-WR840N v5"; - - aliases { - led-boot = &led_power_green; - led-failsafe = &led_power_green; - led-running = &led_power_green; - led-upgrade = &led_power_green; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x4000000>; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - /* LED used is dual-color,dual lead LED */ - leds { - compatible = "gpio-leds"; - - led_power_green: power { - label = "tl-wr840n-v5:green:power"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; - }; - - orange { - label = "tl-wr840n-v5:orange:power"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "boot"; - reg = <0x0 0x20000>; - read-only; - }; - - partition@20000 { - compatible = "tplink,firmware"; - label = "firmware"; - reg = <0x20000 0x3d0000>; - }; - - factory: partition@3f0000 { - label = "factory"; - reg = <0x3f0000 0x10000>; - read-only; - }; - }; - }; -}; - -&ehci { - status = "disabled"; -}; - -&ohci { - status = "disabled"; -}; - -&wmac { - status = "okay"; - mtd-mac-address = <&factory 0xf100>; - mediatek,mtd-eeprom = <&factory 0x0>; -}; - -ðernet { - mtd-mac-address = <&factory 0xf100>; - mediatek,portmap = "wllll"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "p0led_an", "p2led_an", "perst"; - ralink,function = "gpio"; - }; - }; -}; diff --git a/target/linux/ramips/dts/TL-WR841NV13.dts b/target/linux/ramips/dts/TL-WR841NV13.dts deleted file mode 100644 index 3dea063286..0000000000 --- a/target/linux/ramips/dts/TL-WR841NV13.dts +++ /dev/null @@ -1,93 +0,0 @@ -/dts-v1/; - -#include "TPLINK-8M.dtsi" - -#include -#include - -/ { - compatible = "tplink,tl-wr841n-v13", "mediatek,mt7628an-soc"; - model = "TP-Link TL-WR841N v13"; - - 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 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - rfkill { - label = "rfkill"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "tl-wr841n-v13:green:power"; - gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "tl-wr841n-v13:green:wps"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; - }; - - lan1 { - label = "tl-wr841n-v13:green:lan1"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; - }; - - lan2 { - label = "tl-wr841n-v13:green:lan2"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; - }; - - lan3 { - label = "tl-wr841n-v13:green:lan3"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; - }; - - lan4 { - label = "tl-wr841n-v13:green:lan4"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; - }; - - wan_green { - label = "tl-wr841n-v13:green:wan"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - }; - - wan_orange { - label = "tl-wr841n-v13:orange:wan"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "tl-wr841n-v13:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "perst", "refclk", "uart1", "wdt", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; diff --git a/target/linux/ramips/dts/TL-WR841NV14.dts b/target/linux/ramips/dts/TL-WR841NV14.dts deleted file mode 100644 index 6e12361ec9..0000000000 --- a/target/linux/ramips/dts/TL-WR841NV14.dts +++ /dev/null @@ -1,136 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "tplink,tl-wr841n-v14", "mediatek,mt7628an-soc"; - model = "TP-Link TL-WR841N v14"; - - aliases { - led-boot = &led_wlan; - led-failsafe = &led_wlan; - led-upgrade = &led_wlan; - - led-wlan = &led_wlan; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x2000000>; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - lan { - label = "tl-wr841n-v14:green:lan"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; - }; - - wan_green { - label = "tl-wr841n-v14:green:wan"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; - }; - - led_wlan: wlan { - label = "tl-wr841n-v14:green:wlan"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wan_orange { - label = "tl-wr841n-v14:orange:wan"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&spi0 { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - m25p,chunked-io = <32>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "boot"; - reg = <0x0 0x10000>; - read-only; - }; - - partition@10000 { - compatible = "tplink,firmware"; - label = "firmware"; - reg = <0x10000 0x3e0000>; - }; - - factory: partition@3f0000 { - label = "factory"; - reg = <0x3f0000 0x10000>; - read-only; - }; - }; - }; -}; - -&ehci { - status = "disabled"; -}; - -&ohci { - status = "disabled"; -}; - -&wmac { - status = "okay"; - mtd-mac-address = <&factory 0xf100>; - mediatek,mtd-eeprom = <&factory 0x10000>; -}; - -ðernet { - mtd-mac-address = <&factory 0xf100>; - mediatek,portmap = "wllll"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "p4led_an", "p3led_an", "p2led_an", "p1led_an", "p0led_an", "wdt"; - ralink,function = "gpio"; - }; - }; -}; - -&gpio1 { - led_wlan_enable { - gpio-hog; - gpios = <11 GPIO_ACTIVE_HIGH>; - output-high; - }; -}; diff --git a/target/linux/ramips/dts/TL-WR842NV5.dts b/target/linux/ramips/dts/TL-WR842NV5.dts deleted file mode 100644 index 0610b20250..0000000000 --- a/target/linux/ramips/dts/TL-WR842NV5.dts +++ /dev/null @@ -1,93 +0,0 @@ -/dts-v1/; - -#include "TPLINK-8M.dtsi" - -#include -#include - -/ { - compatible = "tplink,tl-wr842n-v5", "mediatek,mt7628an-soc"; - model = "TP-Link TL-WR842N v5"; - - 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 14 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - rfkill { - label = "rfkill"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - lan { - label = "tl-wr842n-v5:green:lan"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "tl-wr842n-v5:green:power"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; - }; - - usb { - label = "tl-wr842n-v5:green:usb"; - gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; - trigger-sources = <&ohci_port1>, <&ehci_port1>; - linux,default-trigger = "usbport"; - }; - - wan { - label = "tl-wr842n-v5:green:wan"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; - }; - - wan_amber { - label = "tl-wr842n-v5:amber:wan"; - gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "tl-wr842n-v5:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "tl-wr842n-v5:green:wps"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; diff --git a/target/linux/ramips/dts/TL-WR902ACV3.dts b/target/linux/ramips/dts/TL-WR902ACV3.dts deleted file mode 100644 index 1d634314cf..0000000000 --- a/target/linux/ramips/dts/TL-WR902ACV3.dts +++ /dev/null @@ -1,114 +0,0 @@ -/dts-v1/; - -#include "TPLINK-8M.dtsi" - -#include -#include - -/ { - compatible = "tplink,tl-wr902ac-v3", "mediatek,mt7628an-soc"; - model = "TP-Link TL-WR902AC v3"; - - 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 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - sw1 { - label = "sw1"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - sw2 { - label = "sw2"; - gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - lan { - label = "tl-wr902ac-v3:green:lan"; - gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>; - }; - - led_power: power { - label = "tl-wr902ac-v3:green:power"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; - }; - - usb { - label = "tl-wr902ac-v3:green:usb"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - trigger-sources = <&ohci_port1>, <&ehci_port1>; - linux,default-trigger = "usbport"; - }; - - wan { - label = "tl-wr902ac-v3:green:wan"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "tl-wr902ac-v3:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "tl-wr902ac-v3:green:wps"; - gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "i2s", "p0led_an", "p2led_an", "p4led_an", "uart1", "wdt", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; - -&pcie { - status = "okay"; -}; - -&pcie0 { - mt76@0,0 { - reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&factory 0x28000>; - ieee80211-freq-limit = <5000000 6000000>; - mtd-mac-address = <&factory 0xf100>; - mtd-mac-address-increment = <(-1)>; - }; -}; diff --git a/target/linux/ramips/dts/TOTOLINK-LR1200.dts b/target/linux/ramips/dts/TOTOLINK-LR1200.dts deleted file mode 100644 index 81aa8db915..0000000000 --- a/target/linux/ramips/dts/TOTOLINK-LR1200.dts +++ /dev/null @@ -1,156 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "totolink,lr1200", "mediatek,mt7628dan"; - model = "TOTOLINK LR1200"; - - aliases { - led-boot = &led_sys; - led-failsafe = &led_sys; - led-running = &led_sys; - led-upgrade = &led_sys; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x4000000>; - }; - - leds { - compatible = "gpio-leds"; - - led_sys: sys { - label = "lr1200:blue:sys"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - sms { - label = "lr1200:blue:sms"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - }; - wifi { - label = "lr1200:blue:wifi"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - 3g { - label = "lr1200:blue:3g"; - gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; - }; - 4g { - label = "lr1200:blue:4g"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; - }; - rssi1 { - label = "lr1200:blue:rssi1"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; - }; - rssi2 { - label = "lr1200:blue:rssi2"; - gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; - }; - rssi3 { - label = "lr1200:blue:rssi3"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; - }; - rssi4 { - label = "lr1200:blue:rssi4"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&gpio1 { - gpio_modem_reset { - gpio-hog; - gpios = <13 GPIO_ACTIVE_HIGH>; - output-high; - line-name = "modem-reset"; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio", "i2c", "i2s", "refclk", "uart1", "wdt", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; - -&pcie { - status = "okay"; -}; - -&pcie0 { - mt76@0,0 { - reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&factory 0x8000>; - ieee80211-freq-limit = <5000000 6000000>; - }; -}; - -&wmac { - status = "okay"; - ralink,mtd-eeprom = <&factory 0x4>; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <40000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x7b0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/TPLINK-8M-SPLIT-UBOOT.dtsi b/target/linux/ramips/dts/TPLINK-8M-SPLIT-UBOOT.dtsi deleted file mode 100644 index c62079ee56..0000000000 --- a/target/linux/ramips/dts/TPLINK-8M-SPLIT-UBOOT.dtsi +++ /dev/null @@ -1,89 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -#include "mt7628an.dtsi" - -/ { - chosen { - bootargs = "console=ttyS0,115200"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x4000000>; - }; -}; - -&spi0 { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "factory-uboot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "boot"; - reg = <0x30000 0x20000>; - read-only; - }; - - partition@50000 { - compatible = "tplink,firmware"; - label = "firmware"; - reg = <0x50000 0x770000>; - }; - - partition@7c0000 { - label = "config"; - reg = <0x7c0000 0x10000>; - read-only; - }; - - rom: partition@7d0000 { - label = "rom"; - reg = <0x7d0000 0x10000>; - read-only; - }; - - partition@7e0000 { - label = "romfile"; - reg = <0x7e0000 0x10000>; - }; - - radio: partition@7f0000 { - label = "radio"; - reg = <0x7f0000 0x10000>; - read-only; - }; - }; - }; -}; - -&ehci { - status = "disabled"; -}; - -&ohci { - status = "disabled"; -}; - -&wmac { - status = "okay"; - mtd-mac-address = <&rom 0xf100>; - mediatek,mtd-eeprom = <&radio 0x0>; -}; - -ðernet { - mtd-mac-address = <&rom 0xf100>; - mediatek,portmap = "llllw"; -}; diff --git a/target/linux/ramips/dts/TPLINK-8M.dtsi b/target/linux/ramips/dts/TPLINK-8M.dtsi deleted file mode 100644 index 9f7f7ccd6c..0000000000 --- a/target/linux/ramips/dts/TPLINK-8M.dtsi +++ /dev/null @@ -1,71 +0,0 @@ -#include "mt7628an.dtsi" - -/ { - chosen { - bootargs = "console=ttyS0,115200"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x4000000>; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "boot"; - reg = <0x0 0x20000>; - read-only; - }; - - partition@20000 { - compatible = "tplink,firmware"; - label = "firmware"; - reg = <0x20000 0x7a0000>; - }; - - partition@7c0000 { - label = "config"; - reg = <0x7c0000 0x10000>; - read-only; - }; - - factory: partition@7d0000 { - label = "factory"; - reg = <0x7d0000 0x30000>; - read-only; - }; - }; - }; -}; - -&ehci { - status = "disabled"; -}; - -&ohci { - status = "disabled"; -}; - -&wmac { - status = "okay"; - mtd-mac-address = <&factory 0xf100>; - mediatek,mtd-eeprom = <&factory 0x20000>; -}; - -ðernet { - mtd-mac-address = <&factory 0xf100>; - mediatek,portmap = "llllw"; -}; diff --git a/target/linux/ramips/dts/U7628-01-128M-16M.dts b/target/linux/ramips/dts/U7628-01-128M-16M.dts deleted file mode 100644 index ac9fd503ca..0000000000 --- a/target/linux/ramips/dts/U7628-01-128M-16M.dts +++ /dev/null @@ -1,87 +0,0 @@ -/* - * BSD LICENSE - * - * Copyright(c) 2017 Kristian Evensen . - * Copyright(c) 2017 Piotr Dymacz . - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Broadcom Corporation nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/dts-v1/; - -#include "U7628-01.dtsi" - -/ { - compatible = "unielec,u7628-01-128m-16m", "unielec,u7628-01", "mediatek,mt7628an-soc"; - model = "UniElec U7628-01 (128M RAM/16M flash)"; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x8000000>; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <12000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "bootloader"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "config"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0xfb0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/U7628-01.dtsi b/target/linux/ramips/dts/U7628-01.dtsi deleted file mode 100644 index 03da1f88f2..0000000000 --- a/target/linux/ramips/dts/U7628-01.dtsi +++ /dev/null @@ -1,139 +0,0 @@ -/* - * BSD LICENSE - * - * Copyright(c) 2017 Kristian Evensen . - * Copyright(c) 2017 Piotr Dymacz . - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Broadcom Corporation nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "unielec,u7628-01", "mediatek,mt7628an-soc"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "u7628-01:green:power"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "u7628-01:green:wlan"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - wan { - label = "u7628-01:green:wan"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - }; - - lan1 { - label = "u7628-01:green:lan1"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; - }; - - lan2 { - label = "u7628-01:green:lan2"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; - }; - - lan3 { - label = "u7628-01:green:lan3"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; - }; - - lan4 { - label = "u7628-01:green:lan4"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; - }; - - usb { - label = "u7628-01:green:usb"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - trigger-sources = <&ohci_port1>, <&ehci_port1>; - linux,default-trigger = "usbport"; - }; - }; -}; - -&gpio0 { - status = "okay"; -}; - -&gpio1 { - status = "okay"; -}; - -&pcie { - status = "okay"; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&wmac { - status = "okay"; - ralink,mtd-eeprom = <&factory 0x0>; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "refclk", "wdt", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; diff --git a/target/linux/ramips/dts/VIXMINI.dts b/target/linux/ramips/dts/VIXMINI.dts deleted file mode 100644 index 5a52fe2a1b..0000000000 --- a/target/linux/ramips/dts/VIXMINI.dts +++ /dev/null @@ -1,114 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/{ - compatible = "glinet,vixmini", "mediatek,mt7628an-soc"; - model = "GL.iNet VIXMINI"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x4000000>; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "vixmini:blue:power"; - default-state = "on"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "vixmini:white:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wdt", "wled_an", "p1led_an"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; -}; - -&wmac { - status = "okay"; - - ralink,mtd-eeprom = <&factory 0x0>; -}; - -&spi0 { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x7b0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/VOCORE2.dts b/target/linux/ramips/dts/VOCORE2.dts deleted file mode 100644 index a78d2cc733..0000000000 --- a/target/linux/ramips/dts/VOCORE2.dts +++ /dev/null @@ -1,66 +0,0 @@ -/dts-v1/; - -#include "VOCORE2.dtsi" - -#include - -/ { - compatible = "vocore,vocore2", "mediatek,mt7628an-soc"; - model = "VoCore2"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - leds { - compatible = "gpio-leds"; - - led_status: status { - label = "vocore2:fuchsia:status"; - gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0xfb0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/VOCORE2.dtsi b/target/linux/ramips/dts/VOCORE2.dtsi deleted file mode 100644 index f7aec8e1f5..0000000000 --- a/target/linux/ramips/dts/VOCORE2.dtsi +++ /dev/null @@ -1,53 +0,0 @@ -#include "mt7628an.dtsi" - -/ { - compatible = "vocore,vocore2", "mediatek,mt7628an-soc"; - - chosen { - bootargs = "console=ttyS2,115200"; - }; -}; - - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "wled_an", "refclk", "wdt"; - ralink,function = "gpio"; - }; - }; -}; - -&wmac { - status = "okay"; - ralink,mtd-eeprom = <&factory 0x4>; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x7>; - mediatek,portdisable = <0x3a>; -}; - -&i2s { - status = "okay"; -}; - -&gdma { - status = "okay"; -}; - -&pwm { - status = "okay"; -}; - -&uart1 { - status = "okay"; -}; - -&uart2 { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/VOCORE2LITE.dts b/target/linux/ramips/dts/VOCORE2LITE.dts deleted file mode 100644 index 20fd148293..0000000000 --- a/target/linux/ramips/dts/VOCORE2LITE.dts +++ /dev/null @@ -1,66 +0,0 @@ -/dts-v1/; - -#include "VOCORE2.dtsi" - -#include - -/ { - compatible = "vocore,vocore2-lite", "vocore,vocore2", "mediatek,mt7628an-soc"; - model = "VoCore2-Lite"; - - aliases { - led-boot = &led_status; - led-failsafe = &led_status; - led-running = &led_status; - led-upgrade = &led_status; - }; - - leds { - compatible = "gpio-leds"; - - led_status: status { - label = "vocore2lite:green:status"; - gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x7b0000>; - }; - }; - }; -}; diff --git a/target/linux/ramips/dts/W06.dts b/target/linux/ramips/dts/W06.dts deleted file mode 100644 index 55b117c194..0000000000 --- a/target/linux/ramips/dts/W06.dts +++ /dev/null @@ -1,117 +0,0 @@ -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "tama,w06", "mediatek,mt7628an-soc"; - model = "Tama W06"; - - memory@0{ - device_type = "memory"; - reg = <0x0 0x4000000>; - }; - - leds { - compatible = "gpio-leds"; - - wps { - label = "w06:green:wps"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - wan { - label = "w06:green:wan"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - }; - - wireless { - label = "w06:green:wlan"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&ehci { - status = "okay"; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&ohci { - status = "okay"; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart1", "p0led_an", "wdt"; - ralink,function = "gpio"; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0xeb0000>; - }; - - partition@f00000 { - label = "user-data"; - reg = <0xf00000 0x100000>; - read-only; - }; - }; - }; -}; - -&wmac { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/WCR-1166DS.dts b/target/linux/ramips/dts/WCR-1166DS.dts deleted file mode 100644 index 602ea8c5de..0000000000 --- a/target/linux/ramips/dts/WCR-1166DS.dts +++ /dev/null @@ -1,181 +0,0 @@ -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "buffalo,wcr-1166ds", "mediatek,mt7628an-soc"; - model = "Buffalo WCR-1166DS"; - - 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>; - - aoss { - label = "aoss"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - ap { - label = "ap"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - linux,code = ; - linux,input-type = ; - }; - - reset { - label = "reset"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - router_o { - label = "wcr-1166ds:orange:router"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - }; - - router_g { - label = "wcr-1166ds:green:router"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - }; - - internet_o { - label = "wcr-1166ds:orange:internet"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; - }; - - internet_g { - label = "wcr-1166ds:green:internet"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; - }; - - wireless_o { - label = "wcr-1166ds:orange:wireless"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; - }; - - wireless_g { - label = "wcr-1166ds:green:wireless"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; - }; - - diag { - label = "wcr-1166ds:orange:diag"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "wcr-1166ds:green:power"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&ehci { - status = "disabled"; -}; - -&esw { - mediatek,portmap = <0x2f>; - mediatek,portdisable = <0x27>; -}; - -&ohci { - status = "disabled"; -}; - -&pcie { - status = "okay"; -}; - -&pcie0 { - mt76@0,0 { - reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&factory 0x8000>; - ieee80211-freq-limit = <5000000 6000000>; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "uart1", "wled_an", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "refclk", "gpio", "i2s"; - ralink,function = "gpio"; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "openwrt,trx"; - label = "firmware"; - reg = <0x50000 0x7c0000>; - }; - - partition@810000 { - label = "firmware2"; - reg = <0x810000 0x7c0000>; - }; - - partition@fd0000 { - label = "glbcfg"; - reg = <0xfd0000 0x10000>; - read-only; - }; - - partition@fe0000 { - label = "board_data"; - reg = <0xfe0000 0x10000>; - read-only; - }; - }; - }; -}; - -&wmac { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/WIDORA-NEO-16M.dts b/target/linux/ramips/dts/WIDORA-NEO-16M.dts deleted file mode 100644 index 9ed6b15334..0000000000 --- a/target/linux/ramips/dts/WIDORA-NEO-16M.dts +++ /dev/null @@ -1,58 +0,0 @@ -/dts-v1/; - -#include "WIDORA-NEO.dtsi" - -/ { - compatible = "widora,neo-16m", "widora,neo", "mediatek,mt7628an-soc"; - model = "Widora-NEO (16M)"; -}; - -&spi0 { - status = "okay"; - - pinctrl-names = "default"; - pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <40000000>; - - 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>; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x0fb0000>; - }; - }; - }; - - spidev@1 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "linux,spidev"; - reg = <1>; - spi-max-frequency = <40000000>; - }; -}; diff --git a/target/linux/ramips/dts/WIDORA-NEO-32M.dts b/target/linux/ramips/dts/WIDORA-NEO-32M.dts deleted file mode 100644 index cfd6ba709c..0000000000 --- a/target/linux/ramips/dts/WIDORA-NEO-32M.dts +++ /dev/null @@ -1,58 +0,0 @@ -/dts-v1/; - -#include "WIDORA-NEO.dtsi" - -/ { - compatible = "widora,neo-32m", "widora,neo", "mediatek,mt7628an-soc"; - model = "Widora-NEO (32M)"; -}; - -&spi0 { - status = "okay"; - - pinctrl-names = "default"; - pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <40000000>; - - 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>; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x1fb0000>; - }; - }; - }; - - spidev@1 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "linux,spidev"; - reg = <1>; - spi-max-frequency = <40000000>; - }; -}; diff --git a/target/linux/ramips/dts/WIDORA-NEO.dtsi b/target/linux/ramips/dts/WIDORA-NEO.dtsi deleted file mode 100644 index af3a1b1a1e..0000000000 --- a/target/linux/ramips/dts/WIDORA-NEO.dtsi +++ /dev/null @@ -1,126 +0,0 @@ -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "widora,neo", "mediatek,mt7628an-soc"; - - aliases { - led-boot = &led_wifi; - led-failsafe = &led_wifi; - led-running = &led_wifi; - led-upgrade = &led_wifi; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x8000000>; - }; - - leds { - compatible = "gpio-leds"; - - led_wifi: wifi { - label = "widora:orange:wifi"; - gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>; - default-state = "on"; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - wps { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - wgpio: gpio-wifi { - compatible = "mediatek,gpio-wifi"; - #address-cells = <1>; - #size-cells = <0>; - gpio-controller; - #gpio-cells = <2>; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; - }; - - perst { - ralink,group = "perst"; - ralink,function = "gpio"; - }; - - refclk { - ralink,group = "refclk"; - ralink,function = "gpio"; - }; - - i2s { - ralink,group = "i2s"; - ralink,function = "gpio"; - }; - - spis { - ralink,group = "spis"; - ralink,function = "gpio"; - }; - - wled_kn { - ralink,group = "wled_kn"; - ralink,function = "gpio"; - }; - - wled_an { - ralink,group = "wled_an"; - ralink,function = "wled_an"; - }; - - wdt { - ralink,group = "wdt"; - ralink,function = "gpio"; - }; - }; -}; - -&i2c { - status = "okay"; -}; - -&uart1 { - status = "okay"; -}; - -&uart2 { - status = "okay"; -}; - -&pwm { - status = "okay"; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&sdhci { - status = "okay"; - mediatek,cd-low; -}; - -&wmac { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/WIZFI630S.dts b/target/linux/ramips/dts/WIZFI630S.dts deleted file mode 100644 index 13c8f68f15..0000000000 --- a/target/linux/ramips/dts/WIZFI630S.dts +++ /dev/null @@ -1,193 +0,0 @@ -//SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "wiznet,wizfi630s", "mediatek,mt7628an-soc"; - model = "WIZnet WizFi630S"; - - chosen { - bootargs = "console=ttyS1,115200"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x8000000>; - }; - - aliases { - led-boot = &led_run; - led-failsafe = &led_run; - led-running = &led_run; - led-upgrade = &led_run; - serial0 = &uart1; - serial1 = &uartlite; - }; - - leds { - compatible = "gpio-leds"; - - led_run: run { - label = "wizfi630s:green:run"; - gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; - }; - - ledwps { - label = "wizfi630s:green:wps"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; - }; - - leduart1 { - label = "wizfi630s:green:uart1"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - }; - - leduart2 { - label = "wizfi630s:green:uart2"; - gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - #address-cells = <1>; - #size-cells = <0>; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; - linux,code = ; - }; - - scm1 { - label = "SCM1"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - scm2 { - label = "SCM2"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; - }; - - i2s { - ralink,group = "i2s"; - ralink,function = "gpio"; - }; - - wdt { - ralink,group = "wdt"; - ralink,function = "gpio"; - }; - - - i2c { - ralink,group = "i2c"; - ralink,function = "gpio"; - }; - - refclk { - ralink,group = "refclk"; - ralink,function = "gpio"; - }; - }; -}; - -&wmac { - status = "okay"; -}; - -&spi0 { - status = "okay"; - - pinctrl-names = "default"; - pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <40000000>; - m25p,chunked-io = <31>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x1fb0000>; - }; - }; - }; -}; - -&i2c { - status = "okay"; -}; - -&uart1 { - status = "okay"; -}; - -&pwm { - status = "okay"; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; -}; - -&esw { - mediatek,portmap = <0x3e>; -}; - -&sdhci { - status = "okay"; - mediatek,cd-high; -}; - -&wmac { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/WL-WN570HA1.dts b/target/linux/ramips/dts/WL-WN570HA1.dts deleted file mode 100644 index a07490b853..0000000000 --- a/target/linux/ramips/dts/WL-WN570HA1.dts +++ /dev/null @@ -1,135 +0,0 @@ -/dts-v1/; -#include -#include - -#include "mt7628an.dtsi" - -/ { - compatible = "wavlink,wl-wn570ha1", "mediatek,mt7628an-soc"; - model = "Wavlink WL-WN570HA1"; - - chosen { - bootargs = "console=ttyS0,57600"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x4000000>; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - power { - label = "wl-wn570ha1:green:power"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - default-state = "keep"; - }; - - wan { - label = "wl-wn570ha1:green:wan"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - }; - - wifi-high { - label = "wl-wn570ha1:green:wifi-high"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - wifi-med { - label = "wl-wn570ha1:green:wifi-med"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; - }; - - wifi-low { - label = "wl-wn570ha1:green:wifi-low"; - gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; - }; - - wifi { - label = "wl-wn570ha1:green:wifi"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "wled_an", "p0led_an", "wdt", "refclk"; - ralink,function = "gpio"; - }; - }; -}; - -&pcie { - status = "okay"; -}; - -&pcie0 { - wifi@0,0 { - reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&factory 0x8000>; - ieee80211-freq-limit = <5000000 6000000>; - }; -}; - -&spi0 { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x7b0000>; - }; - }; - }; -}; - -&wmac { - status = "okay"; -}; - -ðernet { - mtd-mac-address = <&factory 0x2e>; - mediatek,portmap = "llllw"; -}; diff --git a/target/linux/ramips/dts/WL-WN575A3.dts b/target/linux/ramips/dts/WL-WN575A3.dts deleted file mode 100644 index 76923d5cf6..0000000000 --- a/target/linux/ramips/dts/WL-WN575A3.dts +++ /dev/null @@ -1,130 +0,0 @@ -/dts-v1/; -#include -#include - -#include "mt7628an.dtsi" - -/ { - compatible = "wavlink,wl-wn575a3", "mediatek,mt7628an-soc"; - model = "Wavlink WL-WN575A3"; - - chosen { - bootargs = "console=ttyS0,57600"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x4000000>; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - wifi-high { - label = "wl-wn575a3:green:wifi-high"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - }; - - wifi-med { - label = "wl-wn575a3:green:wifi-med"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - wifi-low { - label = "wl-wn575a3:green:wifi-low"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "wl-wn575a3:green:wps"; - gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "wled_an", "gpio", "refclk", "wdt", "p0led_an"; - ralink,function = "gpio"; - }; - }; -}; - -&pcie { - status = "okay"; -}; - -&pcie0 { - mt76@0,0 { - reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&factory 0x8000>; - ieee80211-freq-limit = <5000000 6000000>; - }; -}; - -&spi0 { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x7b0000>; - }; - }; - }; -}; - -&wmac { - status = "okay"; -}; - -ðernet { - mtd-mac-address = <&factory 0x28>; - mediatek,portmap = "llllw"; -}; diff --git a/target/linux/ramips/dts/WR1000.dts b/target/linux/ramips/dts/WR1000.dts deleted file mode 100644 index ff0b9badd1..0000000000 --- a/target/linux/ramips/dts/WR1000.dts +++ /dev/null @@ -1,144 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "cudy,wr1000", "mediatek,mt7628an-soc"; - model = "Cudy WR1000"; - - aliases { - led-boot = &led_wps; - led-failsafe = &led_wps; - led-upgrade = &led_wps; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "rfkill"; - gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - lan1 { - label = "wr1000:blue:lan1"; - gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; - }; - - lan2 { - label = "wr1000:blue:lan2"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; - }; - - wan { - label = "wr1000:blue:wan"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; - }; - - wlan2g { - label = "wr1000:blue:wlan2g"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - led_wps: wps { - label = "wr1000:blue:wps"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&spi0 { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x7b0000>; - }; - - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2s", "refclk", "wdt", "p4led_an", - "p3led_an", "p2led_an", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; - -&pcie { - status = "okay"; -}; - -&pcie0 { - wifi@0,0 { - compatible = "mediatek,mt76"; - reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&factory 0x8000>; - ieee80211-freq-limit = <5000000 6000000>; - - led { - led-sources = <2>; - led-active-low; - }; - }; -}; - -&wmac { - status = "okay"; - ralink,mtd-eeprom = <&factory 0x4>; -}; - -ðernet { - mtd-mac-address = <&factory 0x2e>; - mediatek,portmap = "llllw"; -}; diff --git a/target/linux/ramips/dts/WRTNODE2.dtsi b/target/linux/ramips/dts/WRTNODE2.dtsi deleted file mode 100644 index 9bac822872..0000000000 --- a/target/linux/ramips/dts/WRTNODE2.dtsi +++ /dev/null @@ -1,96 +0,0 @@ -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "wrtnode,wrtnode2", "mediatek,mt7628an-soc"; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x1fb0000>; - }; - }; - }; - - spidev@1 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "linux,spidev"; - reg = <1>; - spi-max-frequency = <10000000>; - }; -}; - -&uart1 { - status = "okay"; -}; - -&i2c { - status = "okay"; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; - mediatek,portmap = "llllw"; -}; - -&sdhci { - status = "okay"; -}; - -&pcie { - status = "okay"; -}; - -&wmac { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/WRTNODE2P.dts b/target/linux/ramips/dts/WRTNODE2P.dts deleted file mode 100644 index cd668d601e..0000000000 --- a/target/linux/ramips/dts/WRTNODE2P.dts +++ /dev/null @@ -1,33 +0,0 @@ -/dts-v1/; - -#include "WRTNODE2.dtsi" - -/ { - compatible = "wrtnode,wrtnode2p", "wrtnode,wrtnode2", "mediatek,mt7628an-soc"; - model = "WRTnode2P"; - - aliases { - led-boot = &led_indicator; - led-failsafe = &led_indicator; - led-running = &led_indicator; - led-upgrade = &led_indicator; - }; - - leds { - compatible = "gpio-leds"; - - led_indicator: indicator { - label = "wrtnode:blue:indicator"; - gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "gpio"; - ralink,function = "gpio"; - }; - }; -}; diff --git a/target/linux/ramips/dts/WRTNODE2R.dts b/target/linux/ramips/dts/WRTNODE2R.dts deleted file mode 100644 index bfe533c0c3..0000000000 --- a/target/linux/ramips/dts/WRTNODE2R.dts +++ /dev/null @@ -1,43 +0,0 @@ -/dts-v1/; - -#include "WRTNODE2.dtsi" - -/ { - compatible = "wrtnode,wrtnode2r", "wrtnode,wrtnode2", "mediatek,mt7628an-soc"; - model = "WRTnode2R"; - - aliases { - led-boot = &led_indicator; - led-failsafe = &led_indicator; - led-running = &led_indicator; - led-upgrade = &led_indicator; - }; - - leds { - compatible = "gpio-leds"; - - pinctrl-names = "default"; - pinctrl-0 = <&led_pins>; - - led_indicator: indicator { - label = "wrtnode:blue:indicator"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; - }; - }; - - led_pins: led { - gpio { - ralink,group = "wled_an"; - ralink,function = "gpio"; - }; - }; -}; diff --git a/target/linux/ramips/dts/XIAOMI-MIR4A-100M.dts b/target/linux/ramips/dts/XIAOMI-MIR4A-100M.dts deleted file mode 100644 index 8a33745f7f..0000000000 --- a/target/linux/ramips/dts/XIAOMI-MIR4A-100M.dts +++ /dev/null @@ -1,147 +0,0 @@ -//SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "xiaomi,mir4a-100m", "mediatek,mt7628an-soc"; - model = "Xiaomi Mi Router 4A (100M Edition)"; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x4000000>; - }; - - aliases { - led-boot = &power_yellow; - led-failsafe = &power_yellow; - led-running = &power_blue; - led-upgrade = &power_yellow; - }; - - leds { - compatible = "gpio-leds"; - - power_blue: power_blue { - label = "mir4a-100m:blue:power"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - power_yellow: power_yellow { - label = "mir4a-100m:yellow:power"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; -}; - -&spi0 { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "bootloader"; - reg = <0x0 0x20000>; - read-only; - }; - - partition@20000 { - label = "config"; - reg = <0x20000 0x10000>; - read-only; - }; - - factory: partition@30000 { - label = "factory"; - reg = <0x30000 0x10000>; - read-only; - }; - - partition@40000 { - label = "crash"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - label = "cfg_bak"; - reg = <0x50000 0x10000>; - read-only; - }; - - partition@60000 { - label = "overlay"; - reg = <0x60000 0x100000>; - read-only; - }; - - partition@160000 { - label = "firmware"; - reg = <0x160000 0xea0000>; - compatible = "denx,uimage"; - }; - }; - }; -}; - -&pcie { - status = "okay"; -}; - -&pcie0 { - wifi@0,0 { - compatible = "mediatek,mt76"; - reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&factory 0x8000>; - ieee80211-freq-limit = <5000000 6000000>; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio", "wdt", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <(-1)>; -}; - -&esw { - mediatek,portmap = <0x2f>; - mediatek,portdisable = <0x2a>; -}; - -&wmac { - status = "okay"; -}; diff --git a/target/linux/ramips/dts/ZBT-WE1226.dts b/target/linux/ramips/dts/ZBT-WE1226.dts deleted file mode 100644 index aace0042e4..0000000000 --- a/target/linux/ramips/dts/ZBT-WE1226.dts +++ /dev/null @@ -1,120 +0,0 @@ -/dts-v1/; -#include -#include - -#include "mt7628an.dtsi" - -/ { - compatible = "zbtlink,zbt-we1226", "mediatek,mt7628an-soc"; - model = "Zbtlink ZBT-WE1226"; - - aliases { - led-boot = &led_wlan; - led-failsafe = &led_wlan; - led-running = &led_wlan; - led-upgrade = &led_wlan; - }; - - chosen { - bootargs = "console=ttyS0,115200"; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x4000000>; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - wan { - label = "zbt-we1226:green:wan"; - gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; - }; - - lan1 { - label = "zbt-we1226:green:lan1"; - gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; - }; - - lan2 { - label = "zbt-we1226:green:lan2"; - gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; - }; - - led_wlan: wlan { - label = "zbt-we1226:green:wlan"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "p0led_an", "p1led_an", "p4led_an", "wdt", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0x7b0000>; - }; - }; - }; -}; - -&wmac { - status = "okay"; - ralink,mtd-eeprom = <&factory 0x4>; -}; - -ðernet { - mtd-mac-address = <&factory 0x2e>; - mediatek,portmap = "llllw"; -}; diff --git a/target/linux/ramips/dts/ki_rb.dts b/target/linux/ramips/dts/ki_rb.dts deleted file mode 100644 index 56912a786e..0000000000 --- a/target/linux/ramips/dts/ki_rb.dts +++ /dev/null @@ -1,216 +0,0 @@ -/dts-v1/; - -#include "mt7628an.dtsi" - -#include -#include - -/ { - compatible = "zyxel,keenetic-extra-ii", "mediatek,mt7628an-soc"; - model = "ZyXEL Keenetic Extra II"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - memory@0 { - device_type = "memory"; - reg = <0x0 0x8000000>; - }; - - chosen { - bootargs = "console=ttyS0,57600n8"; - }; - - keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - wps { - label = "wps"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - - fn { - label = "fn"; - gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; - linux,code = ; - }; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "keenetic-extra-ii:green:power"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - default-state = "keep"; - }; - - internet { - label = "keenetic-extra-ii:green:internet"; - gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; - }; - - wifi { - label = "keenetic-extra-ii:green:wifi"; - gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; - }; - - usb { - label = "keenetic-extra-ii:green:usb"; - gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; - trigger-sources = <&ohci_port1>, <&ehci_port1>; - linux,default-trigger = "usbport"; - }; - }; - - gpio_export { - compatible = "gpio-export"; - #size-cells = <0>; - - usbpower { - gpio-export,name = "usbpower"; - gpio-export,output = <1>; - gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&spi0 { - status = "okay"; - - m25p80@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <10000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-config"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "rf-eeprom"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - compatible = "denx,uimage"; - label = "firmware"; - reg = <0x50000 0xe90000>; - }; - - partition@ee0000 { - label = "config_1"; - reg = <0xee0000 0x10000>; - read-only; - }; - - partition@ef0000 { - label = "storage"; - reg = <0xef0000 0x100000>; - read-only; - }; - - partition@ff0000 { - label = "dump"; - reg = <0xff0000 0x10000>; - read-only; - }; - - partition@1000000 { - label = "u-state"; - reg = <0x1000000 0x30000>; - read-only; - }; - - partition@1030000 { - label = "u-config_res"; - reg = <0x1030000 0x10000>; - read-only; - }; - - partition@1040000 { - label = "rf-eeprom_res"; - reg = <0x1040000 0x10000>; - read-only; - }; - - partition@1050000 { - label = "firmware_2"; - reg = <0x1050000 0xe90000>; - read-only; - }; - - partition@1ee0000 { - label = "config_2"; - reg = <0x1ee0000 0x10000>; - read-only; - }; - }; - }; -}; - -&ehci { - status = "okay"; -}; - -&ohci { - status = "okay"; -}; - -ðernet { - mtd-mac-address = <&factory 0x4>; - mediatek,portmap = "wllll"; -}; - -&wmac { - status = "okay"; - mediatek,mtd-eeprom = <&factory 0x0>; -}; - -&pcie { - status = "okay"; -}; - -&pcie0 { - mt76@0,0 { - reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&factory 0x8000>; - ieee80211-freq-limit = <5000000 6000000>; - mtd-mac-address = <&factory 0x8004>; - }; -}; - -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "gpio", "i2s", "refclk", "spi cs1", "uart1", "wled_an"; - ralink,function = "gpio"; - }; - }; -}; diff --git a/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts b/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts new file mode 100644 index 0000000000..4e5ce1cc7b --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts @@ -0,0 +1,173 @@ +/* + * BSD LICENSE + * + * Copyright (C) 2018 Piotr Dymacz + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the names of the copyright holders nor the names of any + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "alfa-network,awusfree1", "mediatek,mt7628an-soc"; + model = "ALFA Network AWUSFREE1"; + + aliases { + led-boot = &led_system; + led-failsafe = &led_system; + led-running = &led_system; + led-upgrade = &led_system; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_system: system { + label = "awusfree1:orange:system"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "awusfree1:blue:wlan"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x4000000>; + }; +}; + +&ehci { + status = "disabled"; +}; + +&esw { + mediatek,portdisable = <0x1e>; +}; + +ðernet { + mtd-mac-address = <&factory 0x2e>; +}; + +&gpio1 { + status = "okay"; +}; + +&ohci { + status = "disabled"; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "p0led_an", "wdt", "wled_an"; + ralink,function = "gpio"; + }; + + ext_lna { + ralink,group = "uart1"; + ralink,function = "sw_r"; + }; + + ext_pa { + ralink,group = "i2s"; + ralink,function = "antenna"; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x1000>; + }; + + partition@31000 { + label = "config"; + reg = <0x31000 0xf000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x7b0000>; + }; + }; + }; +}; + +&wmac { + status = "okay"; + mediatek,mtd-eeprom = <&factory 0x0>; +}; diff --git a/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts b/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts new file mode 100644 index 0000000000..602ea8c5de --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts @@ -0,0 +1,181 @@ +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "buffalo,wcr-1166ds", "mediatek,mt7628an-soc"; + model = "Buffalo WCR-1166DS"; + + 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>; + + aoss { + label = "aoss"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + ap { + label = "ap"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + linux,code = ; + linux,input-type = ; + }; + + reset { + label = "reset"; + gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + router_o { + label = "wcr-1166ds:orange:router"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + }; + + router_g { + label = "wcr-1166ds:green:router"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + }; + + internet_o { + label = "wcr-1166ds:orange:internet"; + gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + }; + + internet_g { + label = "wcr-1166ds:green:internet"; + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + }; + + wireless_o { + label = "wcr-1166ds:orange:wireless"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + }; + + wireless_g { + label = "wcr-1166ds:green:wireless"; + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + }; + + diag { + label = "wcr-1166ds:orange:diag"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "wcr-1166ds:green:power"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&ehci { + status = "disabled"; +}; + +&esw { + mediatek,portmap = <0x2f>; + mediatek,portdisable = <0x27>; +}; + +&ohci { + status = "disabled"; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + mt76@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "uart1", "wled_an", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "refclk", "gpio", "i2s"; + ralink,function = "gpio"; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "openwrt,trx"; + label = "firmware"; + reg = <0x50000 0x7c0000>; + }; + + partition@810000 { + label = "firmware2"; + reg = <0x810000 0x7c0000>; + }; + + partition@fd0000 { + label = "glbcfg"; + reg = <0xfd0000 0x10000>; + read-only; + }; + + partition@fe0000 { + label = "board_data"; + reg = <0xfe0000 0x10000>; + read-only; + }; + }; + }; +}; + +&wmac { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts b/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts new file mode 100644 index 0000000000..ff0b9badd1 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts @@ -0,0 +1,144 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "cudy,wr1000", "mediatek,mt7628an-soc"; + model = "Cudy WR1000"; + + aliases { + led-boot = &led_wps; + led-failsafe = &led_wps; + led-upgrade = &led_wps; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "rfkill"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + lan1 { + label = "wr1000:blue:lan1"; + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + }; + + lan2 { + label = "wr1000:blue:lan2"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + }; + + wan { + label = "wr1000:blue:wan"; + gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + }; + + wlan2g { + label = "wr1000:blue:wlan2g"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + + led_wps: wps { + label = "wr1000:blue:wps"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x7b0000>; + }; + + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2s", "refclk", "wdt", "p4led_an", + "p3led_an", "p2led_an", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + wifi@0,0 { + compatible = "mediatek,mt76"; + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + + led { + led-sources = <2>; + led-active-low; + }; + }; +}; + +&wmac { + status = "okay"; + ralink,mtd-eeprom = <&factory 0x4>; +}; + +ðernet { + mtd-mac-address = <&factory 0x2e>; + mediatek,portmap = "llllw"; +}; diff --git a/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts b/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts new file mode 100644 index 0000000000..6d98a4492f --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts @@ -0,0 +1,171 @@ +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "d-team,pbr-d1", "mediatek,mt7628an-soc"; + model = "PBR-D1"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + aliases { + serial0 = &uart2; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x8000000>; + }; + + leds { + compatible = "gpio-leds"; + + usb { + label = "pbr-d1:orange:usb"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; + }; + + led_power: power { + label = "pbr-d1:orange:power"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + default-state = "on"; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 38 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + wgpio: gpio-wifi { + compatible = "mediatek,gpio-wifi"; + #address-cells = <1>; + #size-cells = <0>; + gpio-controller; + #gpio-cells = <2>; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "gpio"; + ralink,function = "gpio"; + }; + + i2c { + ralink,group = "i2c"; + ralink,function = "gpio"; + }; + + i2s { + ralink,group = "i2s"; + ralink,function = "gpio"; + }; + + spis { + ralink,group = "spis"; + ralink,function = "gpio"; + }; + + wdt { + ralink,group = "wdt"; + ralink,function = "gpio"; + }; + }; +}; + +&spi0 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + + 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>; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x0fb0000>; + }; + }; + }; + + spidev@1 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "linux,spidev"; + reg = <1>; + spi-max-frequency = <40000000>; + }; +}; + +&i2c { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; + +&pwm { + status = "okay"; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&sdhci { + status = "okay"; + mediatek,cd-high; +}; diff --git a/target/linux/ramips/dts/mt7628an_duzun_dm06.dts b/target/linux/ramips/dts/mt7628an_duzun_dm06.dts new file mode 100644 index 0000000000..7325e2c699 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_duzun_dm06.dts @@ -0,0 +1,145 @@ +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "duzun,dm06", "mediatek,mt7628an-soc"; + model = "DuZun DM06"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x4000000>; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <100>; + + reset { + label = "reset"; + gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "Audio-I2S"; + simple-audio-card,format = "i2s"; + simple-audio-card,bitclock-master = <&dailink0_master>; + simple-audio-card,frame-master = <&dailink0_master>; + simple-audio-card,widgets = + "Headphone", "Headphones"; + simple-audio-card,routing = + "Headphones", "HP_L", + "Headphones", "HP_R"; + simple-audio-card,mclk-fs = <256>; + + simple-audio-card,cpu { + sound-dai = <&i2s>; + }; + + dailink0_master: simple-audio-card,codec { + sound-dai = <&codec>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "wdt", "uart1"; + ralink,function = "gpio"; + }; + }; +}; + +&gpio1 { + status = "okay"; +}; + +&i2c { + status = "okay"; + + codec: wm8960@1a { + #sound-dai-cells = <0>; + compatible = "wlf,wm8960"; + reg = <0x1a>; + + wlf,shared-lrclk; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&esw { + mediatek,portmap = <0x3>; + mediatek,portdisable = <0x3c>; +}; + +&i2s { + #sound-dai-cells = <0>; + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&i2s_pins>, <&refclk_pins>; +}; + +&sdhci { + status = "okay"; +}; + +&gdma { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <60000000>; + 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 0x7b0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts b/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts new file mode 100644 index 0000000000..e4220736d2 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts @@ -0,0 +1,151 @@ +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/{ + compatible = "glinet,gl-mt300n-v2", "mediatek,mt7628an-soc"; + model = "GL-MT300N-V2"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x8000000>; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "gl-mt300n-v2:green:power"; + default-state = "on"; + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + }; + + wan { + label = "gl-mt300n-v2:green:wan"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "gl-mt300n-v2:red:wlan"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + BTN_0 { + label = "BTN_0"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + BTN_1 { + label = "BTN_1"; + gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + usb { + gpio-export,name = "usb"; + gpio-export,output = <1>; + gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&wmac { + status = "okay"; + ralink,mtd-eeprom = <&factory 0x0>; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0xfb0000>; + }; + }; + }; +}; + +&uart1 { + status = "okay"; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/mt7628an_glinet_vixmini.dts b/target/linux/ramips/dts/mt7628an_glinet_vixmini.dts new file mode 100644 index 0000000000..5a52fe2a1b --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_glinet_vixmini.dts @@ -0,0 +1,114 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/{ + compatible = "glinet,vixmini", "mediatek,mt7628an-soc"; + model = "GL.iNet VIXMINI"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x4000000>; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "vixmini:blue:power"; + default-state = "on"; + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "vixmini:white:wlan"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "wdt", "wled_an", "p1led_an"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&wmac { + status = "okay"; + + ralink,mtd-eeprom = <&factory 0x0>; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x7b0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts b/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts new file mode 100644 index 0000000000..71c6b60ac2 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts @@ -0,0 +1,99 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "hilink,hlk-7628n", "mediatek,mt7628an-soc"; + model = "HILINK HLK-7628N"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x8000000>; + }; + + chosen { + bootargs = "console=ttyS0,57600"; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + wlan { + label = "hlk-7628n:green:wlan"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c"; + ralink,function = "gpio"; + }; + }; +}; + +&uart1 { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x1fb0000>; + }; + }; + }; +}; + +&wmac { + status = "okay"; +}; + diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts new file mode 100644 index 0000000000..25f1ff1a02 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts @@ -0,0 +1,132 @@ +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "hiwifi,hc5661a", "mediatek,mt7628an-soc"; + model = "HiWiFi HC5661A"; + + aliases { + led-boot = &led_system; + led-failsafe = &led_system; + led-running = &led_system; + led-upgrade = &led_system; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x8000000>; + }; + + leds { + compatible = "gpio-leds"; + + led_system: system { + label = "hc5661a:blue:system"; + gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; + }; + internet { + label = "hc5661a:blue:internet"; + gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; + }; + wlan2g { + label = "hc5661a:blue:wlan2g"; + gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "refclk", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + linux,modalias = "m25p80", "w25q128"; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "hw_panic"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0xf70000>; + }; + + partition@fc0000 { + label = "oem"; + reg = <0xfc0000 0x20000>; + read-only; + }; + + bdinfo: partition@fe0000 { + label = "bdinfo"; + reg = <0xfe0000 0x10000>; + read-only; + }; + + partition@ff0000 { + label = "backup"; + reg = <0xff0000 0x10000>; + read-only; + }; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; + mediatek,portmap = "wllll"; +}; + +&wmac { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts new file mode 100644 index 0000000000..5cc2634dcc --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts @@ -0,0 +1,144 @@ +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "hiwifi,hc5861b", "mediatek,mt7628an-soc"; + model = "HiWiFi HC5861B"; + + aliases { + led-boot = &led_system; + led-failsafe = &led_system; + led-running = &led_system; + led-upgrade = &led_system; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x8000000>; + }; + + leds { + compatible = "gpio-leds"; + + led_system: system { + label = "hc5861b:green:system"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + }; + wlan2g { + label = "hc5861b:green:wlan2g"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "refclk", "wdt", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "hw_panic"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0xf70000>; + }; + + partition@fc0000 { + label = "oem"; + reg = <0xfc0000 0x20000>; + read-only; + }; + + bdinfo: partition@fe0000 { + label = "bdinfo"; + reg = <0xfe0000 0x10000>; + read-only; + }; + + partition@ff0000 { + label = "backup"; + reg = <0xff0000 0x10000>; + read-only; + }; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&wmac { + status = "okay"; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + wifi@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + mtd-mac-address = <&factory 0x2e>; + ieee80211-freq-limit = <5000000 6000000>; + + led { + led-sources = <2>; + led-active-low; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts b/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts new file mode 100644 index 0000000000..eaa75f407d --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts @@ -0,0 +1,174 @@ +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "mediatek,linkit-smart-7688", "mediatek,mt7628an-soc"; + model = "MediaTek LinkIt Smart 7688"; + + aliases { + led-boot = &led_wifi; + led-failsafe = &led_wifi; + led-running = &led_wifi; + led-upgrade = &led_wifi; + }; + + chosen { + bootargs = "console=ttyS2,57600"; + }; + + aliases { + serial0 = &uart2; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x8000000>; + }; + + bootstrap { + compatible = "mediatek,linkit"; + + status = "okay"; + }; + + leds { + compatible = "gpio-leds"; + + led_wifi: wifi { + label = "linkit-smart-7688:orange:wifi"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + wps { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "gpio"; + ralink,function = "gpio"; + }; + + refclk { + ralink,group = "refclk"; + ralink,function = "gpio"; + }; + + i2s { + ralink,group = "i2s"; + ralink,function = "gpio"; + }; + + spis { + ralink,group = "spis"; + ralink,function = "gpio"; + }; + + wled_an { + ralink,group = "wled_an"; + ralink,function = "gpio"; + }; + + wdt { + ralink,group = "wdt"; + ralink,function = "gpio"; + }; + }; +}; + +&wmac { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + + 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>; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x1fb0000>; + }; + }; + }; + + spidev@1 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "linux,spidev"; + reg = <1>; + spi-max-frequency = <40000000>; + }; +}; + +&i2c { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; + +&pwm { + status = "okay"; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&sdhci { + status = "okay"; + mediatek,cd-high; +}; + +&wmac { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts b/target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts new file mode 100644 index 0000000000..b4afc8ce96 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_mediatek_mt7628an-eval-board.dts @@ -0,0 +1,70 @@ +/dts-v1/; + +#include "mt7628an.dtsi" + +/ { + compatible = "mediatek,mt7628an-eval-board", "mediatek,mt7628an-soc"; + model = "Mediatek MT7628AN evaluation board"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x2000000>; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c"; + ralink,function = "gpio"; + }; + }; +}; + +&wmac { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x7b0000>; + }; + }; + }; +}; + +&wmac { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts b/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts new file mode 100644 index 0000000000..7d13621135 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts @@ -0,0 +1,107 @@ +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "mercury,mac1200r-v2", "mediatek,mt7628an-soc"; + model = "Mercury MAC1200R v2"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + chosen { + bootargs = "console=ttyS0,57600"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x2000000>; + }; + + leds { + compatible = "gpio-leds"; + led_status: status { + label = "mac1200rv2:green:status"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0 0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x1d800>; + }; + + factory: partition@1d800 { + label = "factory_info"; + reg = <0x1d800 0x800>; + read-only; + }; + + art: partition@1e000 { + label = "art"; + reg = <0x1e000 0x2000>; + read-only; + }; + + partition@20000 { + label = "config"; + reg = <0x20000 0x10000>; + }; + + partition@30000 { + label = "u-boot2"; + reg = <0x30000 0x10000>; + }; + + partition@40000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x40000 0x7c0000>; + }; + }; + }; +}; + +ðernet { + pinctrl-names = "default"; + mtd-mac-address = <&factory 0xd>; + mediatek,portmap = "llllw"; +}; + +&wmac { + status = "okay"; + ralink,mtd-eeprom = <&art 0x0>; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + mt76@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&art 0x1000>; + ieee80211-freq-limit = <5000000 6000000>; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_netgear_r6120.dts b/target/linux/ramips/dts/mt7628an_netgear_r6120.dts new file mode 100644 index 0000000000..d263c7824b --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_netgear_r6120.dts @@ -0,0 +1,161 @@ +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "netgear,r6120", "mediatek,mt7628an-soc"; + model = "Netgear R6120"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x4000000>; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + lan { + label = "r6120:green:lan"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "r6120:green:power"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "r6120:green:wlan2g"; + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + }; + + wlan_orange { + label = "r6120:orange:wlan2g"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + }; + + wan { + label = "r6120:green:wan"; + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + }; + + wan_orange { + label = "r6120:orange:wan"; + gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + }; + }; + + usb-regulator { + compatible = "regulator-fixed"; + + regulator-name = "USB-power"; + gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + + regulator-always-on; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "p0led_an", "p1led_an", "p2led_an", + "p3led_an", "p4led_an", "wdt", + "wled_an", "uart1"; + ralink,function = "gpio"; + }; + }; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x40000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x20000>; + read-only; + }; + + partition@60000 { + label = "nvram"; + reg = <0x60000 0x30000>; + read-only; + }; + + partition@90000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x90000 0xf60000>; + }; + + partition@ff0000 { + label = "reserved"; + reg = <0xff0000 0x10000>; + read-only; + }; + }; + }; +}; + +&wmac { + status = "okay"; + mtd-mac-address = <&factory 0x4>; + mediatek,mtd-eeprom = <&factory 0x0>; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + wifi@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + mtd-mac-address = <&factory 0x4>; + mtd-mac-address-increment = <(2)>; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_onion_omega2.dts b/target/linux/ramips/dts/mt7628an_onion_omega2.dts new file mode 100644 index 0000000000..00eff076b2 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_onion_omega2.dts @@ -0,0 +1,21 @@ +/dts-v1/; + +#include "mt7628an_onion_omega2.dtsi" + +/ { + compatible = "onion,omega2", "mediatek,mt7628an-soc"; + model = "Onion Omega2"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x4000000>; + }; +}; + +&firmware { + reg = <0x50000 0xfb0000>; +}; + +&system_led { + label = "omega2:amber:system"; +}; diff --git a/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi b/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi new file mode 100644 index 0000000000..e36602d6c9 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi @@ -0,0 +1,175 @@ +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "onion,omega2", "mediatek,mt7628an-soc"; + + aliases { + led-boot = &system_led; + led-failsafe = &system_led; + led-running = &system_led; + led-upgrade = &system_led; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + leds { + compatible = "gpio-leds"; + + system_led: system { + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "gpio"; + ralink,function = "gpio"; + }; + + perst { + ralink,group = "perst"; + ralink,function = "gpio"; + }; + + refclk { + ralink,group = "refclk"; + ralink,function = "gpio"; + }; + + i2s { + ralink,group = "i2s"; + ralink,function = "gpio"; + }; + + spis { + ralink,group = "spis"; + ralink,function = "gpio"; + }; + + wled_kn { + ralink,group = "wled_kn"; + ralink,function = "gpio"; + }; + + wled_an { + ralink,group = "wled_an"; + ralink,function = "gpio"; + }; + + wdt { + ralink,group = "wdt"; + ralink,function = "gpio"; + }; + + pwm0 { + ralink,group = "pwm0"; + ralink,function = "gpio"; + }; + + pwm1 { + ralink,group = "pwm1"; + ralink,function = "gpio"; + }; + }; +}; + +&gpio1 { + status = "okay"; +}; + +&gpio2 { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + + 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; + }; + + firmware: partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + }; + }; + }; + + spidev@1 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "linux,spidev"; + reg = <1>; + spi-max-frequency = <40000000>; + }; +}; + +&i2c { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&sdhci { + status = "okay"; + mediatek,cd-low; +}; + +&wmac { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/mt7628an_onion_omega2p.dts b/target/linux/ramips/dts/mt7628an_onion_omega2p.dts new file mode 100644 index 0000000000..da500df77a --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_onion_omega2p.dts @@ -0,0 +1,21 @@ +/dts-v1/; + +#include "mt7628an_onion_omega2.dtsi" + +/ { + compatible = "onion,omega2p", "onion,omega2", "mediatek,mt7628an-soc"; + model = "Onion Omega2+"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x8000000>; + }; +}; + +&firmware { + reg = <0x50000 0x1fb0000>; +}; + +&system_led { + label = "omega2p:amber:system"; +}; diff --git a/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts b/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts new file mode 100644 index 0000000000..ac7218510f --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts @@ -0,0 +1,104 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "rakwireless,rak633", "mediatek,mt7628an-soc"; + model = "Rakwireless RAK633"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x4000000>; + }; + + leds { + compatible = "gpio-leds"; + + wifi { + label = "rak633:blue:wifi"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + wled_an { + ralink,group = "wled_an"; + ralink,function = "gpio"; + }; + }; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x7b0000>; + }; + }; + }; +}; + +&i2c { + status = "okay"; +}; + +&i2s { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; + +&gdma { + status = "okay"; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&wmac { + status = "okay"; + ralink,mtd-eeprom = <&factory 0x4>; +}; diff --git a/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts b/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts new file mode 100644 index 0000000000..dddb794a8f --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts @@ -0,0 +1,121 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/{ + compatible = "skylab,skw92a", "mediatek,mt7628an-soc"; + model = "SKYLAB SKW92A"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + }; + + chosen { + bootargs = "console=ttyS0,57600"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x4000000>; + }; + + leds { + compatible = "gpio-leds"; + + led_power: wps { + label = "skw92a:green:wps"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "skw92a:green:wlan"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "wdt", "refclk", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&wmac { + status = "okay"; + ralink,mtd-eeprom = <&factory 0x0>; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + label = "firmware"; + reg = <0x50000 0xfb0000>; + compatible = "denx,uimage"; + }; + }; + }; +}; + +&uart1 { + status = "okay"; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/mt7628an_tama_w06.dts b/target/linux/ramips/dts/mt7628an_tama_w06.dts new file mode 100644 index 0000000000..55b117c194 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tama_w06.dts @@ -0,0 +1,117 @@ +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "tama,w06", "mediatek,mt7628an-soc"; + model = "Tama W06"; + + memory@0{ + device_type = "memory"; + reg = <0x0 0x4000000>; + }; + + leds { + compatible = "gpio-leds"; + + wps { + label = "w06:green:wps"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + wan { + label = "w06:green:wan"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + + wireless { + label = "w06:green:wlan"; + gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&ehci { + status = "okay"; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&ohci { + status = "okay"; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "uart1", "p0led_an", "wdt"; + ralink,function = "gpio"; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0xeb0000>; + }; + + partition@f00000 { + label = "user-data"; + reg = <0xf00000 0x100000>; + read-only; + }; + }; + }; +}; + +&wmac { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts b/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts new file mode 100644 index 0000000000..81aa8db915 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts @@ -0,0 +1,156 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "totolink,lr1200", "mediatek,mt7628dan"; + model = "TOTOLINK LR1200"; + + aliases { + led-boot = &led_sys; + led-failsafe = &led_sys; + led-running = &led_sys; + led-upgrade = &led_sys; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x4000000>; + }; + + leds { + compatible = "gpio-leds"; + + led_sys: sys { + label = "lr1200:blue:sys"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + sms { + label = "lr1200:blue:sms"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + }; + wifi { + label = "lr1200:blue:wifi"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + 3g { + label = "lr1200:blue:3g"; + gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + }; + 4g { + label = "lr1200:blue:4g"; + gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + }; + rssi1 { + label = "lr1200:blue:rssi1"; + gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + }; + rssi2 { + label = "lr1200:blue:rssi2"; + gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + }; + rssi3 { + label = "lr1200:blue:rssi3"; + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + }; + rssi4 { + label = "lr1200:blue:rssi4"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&gpio1 { + gpio_modem_reset { + gpio-hog; + gpios = <13 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "modem-reset"; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "gpio", "i2c", "i2s", "refclk", "uart1", "wdt", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + mt76@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + }; +}; + +&wmac { + status = "okay"; + ralink,mtd-eeprom = <&factory 0x4>; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x7b0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi b/target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi new file mode 100644 index 0000000000..c62079ee56 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi @@ -0,0 +1,89 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +#include "mt7628an.dtsi" + +/ { + chosen { + bootargs = "console=ttyS0,115200"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x4000000>; + }; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "factory-uboot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "boot"; + reg = <0x30000 0x20000>; + read-only; + }; + + partition@50000 { + compatible = "tplink,firmware"; + label = "firmware"; + reg = <0x50000 0x770000>; + }; + + partition@7c0000 { + label = "config"; + reg = <0x7c0000 0x10000>; + read-only; + }; + + rom: partition@7d0000 { + label = "rom"; + reg = <0x7d0000 0x10000>; + read-only; + }; + + partition@7e0000 { + label = "romfile"; + reg = <0x7e0000 0x10000>; + }; + + radio: partition@7f0000 { + label = "radio"; + reg = <0x7f0000 0x10000>; + read-only; + }; + }; + }; +}; + +&ehci { + status = "disabled"; +}; + +&ohci { + status = "disabled"; +}; + +&wmac { + status = "okay"; + mtd-mac-address = <&rom 0xf100>; + mediatek,mtd-eeprom = <&radio 0x0>; +}; + +ðernet { + mtd-mac-address = <&rom 0xf100>; + mediatek,portmap = "llllw"; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_8m.dtsi b/target/linux/ramips/dts/mt7628an_tplink_8m.dtsi new file mode 100644 index 0000000000..9f7f7ccd6c --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_8m.dtsi @@ -0,0 +1,71 @@ +#include "mt7628an.dtsi" + +/ { + chosen { + bootargs = "console=ttyS0,115200"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x4000000>; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "boot"; + reg = <0x0 0x20000>; + read-only; + }; + + partition@20000 { + compatible = "tplink,firmware"; + label = "firmware"; + reg = <0x20000 0x7a0000>; + }; + + partition@7c0000 { + label = "config"; + reg = <0x7c0000 0x10000>; + read-only; + }; + + factory: partition@7d0000 { + label = "factory"; + reg = <0x7d0000 0x30000>; + read-only; + }; + }; + }; +}; + +&ehci { + status = "disabled"; +}; + +&ohci { + status = "disabled"; +}; + +&wmac { + status = "okay"; + mtd-mac-address = <&factory 0xf100>; + mediatek,mtd-eeprom = <&factory 0x20000>; +}; + +ðernet { + mtd-mac-address = <&factory 0xf100>; + mediatek,portmap = "llllw"; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts new file mode 100644 index 0000000000..222e4a665e --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts @@ -0,0 +1,105 @@ +/dts-v1/; + +#include "mt7628an_tplink_8m.dtsi" + +#include +#include + +/ { + compatible = "tplink,archer-c20-v4", "mediatek,mt7628an-soc"; + model = "TP-Link Archer C20 v4"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + leds { + compatible = "gpio-leds"; + + lan { + label = "c20-v4:green:lan"; + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "c20-v4:green:power"; + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + }; + + wan { + label = "c20-v4:green:wan"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + + wan_orange { + label = "c20-v4:orange:wan"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + wlan5g { + label = "c20-v4:green:wlan5g"; + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + }; + + wlan2g { + label = "c20-v4:green:wlan2g"; + gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "c20-v4:green:wps"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + rfkill { + label = "rfkill"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&wmac { + mtd-mac-address-increment = <(-2)>; +}; + +ðernet { + mediatek,portmap = "wllll"; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2s", "refclk", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt"; + ralink,function = "gpio"; + }; + }; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + mt76@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x28000>; + ieee80211-freq-limit = <5000000 6000000>; + mtd-mac-address = <&factory 0xf100>; + mtd-mac-address-increment = <(-1)>; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts new file mode 100644 index 0000000000..d3d1329647 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts @@ -0,0 +1,98 @@ +/dts-v1/; + +#include "mt7628an_tplink_8m.dtsi" + +#include +#include + +/ { + compatible = "tplink,archer-c50-v3", "mediatek,mt7628an-soc"; + model = "TP-Link Archer C50 v3"; + + 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 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + rfkill { + label = "rfkill"; + gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + lan { + label = "c50-v3:green:lan"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "c50-v3:green:power"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + wan { + label = "c50-v3:green:wan"; + gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + }; + + wan_orange { + label = "c50-v3:orange:wan"; + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "c50-v3:green:wlan2g"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + + wlan5 { + label = "c50-v3:green:wlan5g"; + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "c50-v3:green:wps"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "gpio", "p0led_an", "p1led_an", "p2led_an", + "p3led_an", "p4led_an", "wdt", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + mt76@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x28000>; + ieee80211-freq-limit = <5000000 6000000>; + mtd-mac-address = <&factory 0xf100>; + mtd-mac-address-increment = <(-1)>; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts new file mode 100644 index 0000000000..cd8731201d --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts @@ -0,0 +1,99 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7628an_tplink_8m-split-uboot.dtsi" + +#include +#include + +/ { + compatible = "tplink,archer-c50-v4", "mediatek,mt7628an-soc"; + model = "TP-Link Archer C50 v4"; + + 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 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + rfkill { + label = "rfkill"; + gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "c50-v4:green:power"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + wlan2 { + label = "c50-v4:green:wlan2g"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + + wlan5 { + label = "c50-v4:green:wlan5g"; + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + }; + + lan { + label = "c50-v4:green:lan"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + }; + + wan { + label = "c50-v4:green:wan"; + gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + }; + + wan_orange { + label = "c50-v4:orange:wan"; + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "c50-v4:green:wps"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "p0led_an", "p1led_an", "p2led_an", + "p3led_an", "p4led_an", "wdt", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + wifi@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&radio 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + mtd-mac-address = <&rom 0xf100>; + mtd-mac-address-increment = <(-1)>; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts new file mode 100644 index 0000000000..7a9ef41446 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts @@ -0,0 +1,149 @@ +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "tplink,tl-mr3020-v3", "mediatek,mt7628an-soc"; + model = "TP-Link TL-MR3020 v3"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x4000000>; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + wps { + label = "wps"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + modec1 { + label = "sw1"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + modec2 { + label = "sw2"; + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "tl-mr3020-v3:green:power"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + default-state = "on"; + }; + + wan { + label = "tl-mr3020-v3:green:3g"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + trigger-sources = <&ehci_port1>, <&ohci_port1>; + linux,default-trigger = "usbport"; + }; + + wlan { + label = "tl-mr3020-v3:green:wlan"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "tl-mr3020-v3:green:wps"; + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + }; + + lan { + label = "tl-mr3020-v3:green:lan"; + gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "boot"; + reg = <0x0 0x20000>; + read-only; + }; + + partition@20000 { + compatible = "tplink,firmware"; + label = "firmware"; + reg = <0x20000 0x7a0000>; + }; + + partition@7c0000 { + label = "config"; + reg = <0x7c0000 0x10000>; + read-only; + }; + + factory: partition@7d0000 { + label = "factory"; + reg = <0x7d0000 0x30000>; + read-only; + }; + }; + }; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2s", "refclk", "wdt", "p2led_an", "p1led_an", "p0led_an", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; + +&wmac { + status = "okay"; + mtd-mac-address = <&factory 0xf100>; + mediatek,mtd-eeprom = <&factory 0x20000>; +}; + +ðernet { + mtd-mac-address = <&factory 0xf100>; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts new file mode 100644 index 0000000000..9573b86dcc --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts @@ -0,0 +1,93 @@ +/dts-v1/; + +#include "mt7628an_tplink_8m.dtsi" + +#include +#include + +/ { + compatible = "tplink,tl-mr3420-v5", "mediatek,mt7628an-soc"; + model = "TP-Link TL-MR3420 v5"; + + 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 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + rfkill { + label = "rfkill"; + gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + lan { + label = "tl-mr3420-v5:green:lan"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "tl-mr3420-v5:green:power"; + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "tl-mr3420-v5:green:usb"; + gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; + }; + + wan { + label = "tl-mr3420-v5:green:wan"; + gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + }; + + wan_amber { + label = "tl-mr3420-v5:amber:wan"; + gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "tl-mr3420-v5:green:wlan"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "tl-mr3420-v5:green:wps"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts new file mode 100644 index 0000000000..684ce32de4 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts @@ -0,0 +1,62 @@ +/dts-v1/; + +#include "mt7628an_tplink_8m.dtsi" + +#include +#include + +/ { + compatible = "tplink,tl-wa801nd-v5", "mediatek,mt7628an-soc"; + model = "TP-Link TL-WA801ND v5"; + + 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 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "tl-wa801nd-v5:green:power"; + gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; + }; + + lan { + label = "tl-wa801nd-v5:green:lan"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "tl-wa801nd-v5:green:wlan"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "tl-wa801nd-v5:orange:wps"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "p0led_an", "perst", "refclk", "wdt", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts new file mode 100644 index 0000000000..6460ede251 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts @@ -0,0 +1,53 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7628an_tplink_8m.dtsi" + +#include +#include + +/ { + compatible = "tplink,tl-wr802n-v4", "mediatek,mt7628an-soc"; + model = "TP-Link TL-WR802N v4"; + + 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 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "tl-wr802n-v4:green:power"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "refclk", "wdt"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0xf100>; + mediatek,portmap = "l"; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts new file mode 100644 index 0000000000..8d379cffd4 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts @@ -0,0 +1,67 @@ +/dts-v1/; + +#include "mt7628an_tplink_8m.dtsi" + +#include +#include + +/ { + compatible = "tplink,tl-wr840n-v4", "mediatek,mt7628an-soc"; + model = "TP-Link TL-WR840N v4"; + + 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 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + lan { + label = "tl-wr840n-v4:green:lan"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "tl-wr840n-v4:green:power"; + gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; + }; + + wan { + label = "tl-wr840n-v4:green:wan"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "tl-wr840n-v4:green:wlan"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "tl-wr840n-v4:green:wps"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "p0led_an", "p2led_an", "perst", "refclk", "wdt", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts new file mode 100644 index 0000000000..773839098b --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts @@ -0,0 +1,114 @@ +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "tplink,tl-wr840n-v5", "mediatek,mt7628an-soc"; + model = "TP-Link TL-WR840N v5"; + + aliases { + led-boot = &led_power_green; + led-failsafe = &led_power_green; + led-running = &led_power_green; + led-upgrade = &led_power_green; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x4000000>; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + /* LED used is dual-color,dual lead LED */ + leds { + compatible = "gpio-leds"; + + led_power_green: power { + label = "tl-wr840n-v5:green:power"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + }; + + orange { + label = "tl-wr840n-v5:orange:power"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "boot"; + reg = <0x0 0x20000>; + read-only; + }; + + partition@20000 { + compatible = "tplink,firmware"; + label = "firmware"; + reg = <0x20000 0x3d0000>; + }; + + factory: partition@3f0000 { + label = "factory"; + reg = <0x3f0000 0x10000>; + read-only; + }; + }; + }; +}; + +&ehci { + status = "disabled"; +}; + +&ohci { + status = "disabled"; +}; + +&wmac { + status = "okay"; + mtd-mac-address = <&factory 0xf100>; + mediatek,mtd-eeprom = <&factory 0x0>; +}; + +ðernet { + mtd-mac-address = <&factory 0xf100>; + mediatek,portmap = "wllll"; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "p0led_an", "p2led_an", "perst"; + ralink,function = "gpio"; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts new file mode 100644 index 0000000000..1af6354d1a --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts @@ -0,0 +1,93 @@ +/dts-v1/; + +#include "mt7628an_tplink_8m.dtsi" + +#include +#include + +/ { + compatible = "tplink,tl-wr841n-v13", "mediatek,mt7628an-soc"; + model = "TP-Link TL-WR841N v13"; + + 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 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + rfkill { + label = "rfkill"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "tl-wr841n-v13:green:power"; + gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "tl-wr841n-v13:green:wps"; + gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + }; + + lan1 { + label = "tl-wr841n-v13:green:lan1"; + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + }; + + lan2 { + label = "tl-wr841n-v13:green:lan2"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + }; + + lan3 { + label = "tl-wr841n-v13:green:lan3"; + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + }; + + lan4 { + label = "tl-wr841n-v13:green:lan4"; + gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + }; + + wan_green { + label = "tl-wr841n-v13:green:wan"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + + wan_orange { + label = "tl-wr841n-v13:orange:wan"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "tl-wr841n-v13:green:wlan"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "perst", "refclk", "uart1", "wdt", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts new file mode 100644 index 0000000000..6e12361ec9 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts @@ -0,0 +1,136 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "tplink,tl-wr841n-v14", "mediatek,mt7628an-soc"; + model = "TP-Link TL-WR841N v14"; + + aliases { + led-boot = &led_wlan; + led-failsafe = &led_wlan; + led-upgrade = &led_wlan; + + led-wlan = &led_wlan; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x2000000>; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + lan { + label = "tl-wr841n-v14:green:lan"; + gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + }; + + wan_green { + label = "tl-wr841n-v14:green:wan"; + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + }; + + led_wlan: wlan { + label = "tl-wr841n-v14:green:wlan"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + + wan_orange { + label = "tl-wr841n-v14:orange:wan"; + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + m25p,chunked-io = <32>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "boot"; + reg = <0x0 0x10000>; + read-only; + }; + + partition@10000 { + compatible = "tplink,firmware"; + label = "firmware"; + reg = <0x10000 0x3e0000>; + }; + + factory: partition@3f0000 { + label = "factory"; + reg = <0x3f0000 0x10000>; + read-only; + }; + }; + }; +}; + +&ehci { + status = "disabled"; +}; + +&ohci { + status = "disabled"; +}; + +&wmac { + status = "okay"; + mtd-mac-address = <&factory 0xf100>; + mediatek,mtd-eeprom = <&factory 0x10000>; +}; + +ðernet { + mtd-mac-address = <&factory 0xf100>; + mediatek,portmap = "wllll"; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "p4led_an", "p3led_an", "p2led_an", "p1led_an", "p0led_an", "wdt"; + ralink,function = "gpio"; + }; + }; +}; + +&gpio1 { + led_wlan_enable { + gpio-hog; + gpios = <11 GPIO_ACTIVE_HIGH>; + output-high; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts new file mode 100644 index 0000000000..7b8b258655 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts @@ -0,0 +1,93 @@ +/dts-v1/; + +#include "mt7628an_tplink_8m.dtsi" + +#include +#include + +/ { + compatible = "tplink,tl-wr842n-v5", "mediatek,mt7628an-soc"; + model = "TP-Link TL-WR842N v5"; + + 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 14 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + rfkill { + label = "rfkill"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + lan { + label = "tl-wr842n-v5:green:lan"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "tl-wr842n-v5:green:power"; + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "tl-wr842n-v5:green:usb"; + gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; + }; + + wan { + label = "tl-wr842n-v5:green:wan"; + gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + }; + + wan_amber { + label = "tl-wr842n-v5:amber:wan"; + gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "tl-wr842n-v5:green:wlan"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "tl-wr842n-v5:green:wps"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts new file mode 100644 index 0000000000..0e31d41061 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts @@ -0,0 +1,114 @@ +/dts-v1/; + +#include "mt7628an_tplink_8m.dtsi" + +#include +#include + +/ { + compatible = "tplink,tl-wr902ac-v3", "mediatek,mt7628an-soc"; + model = "TP-Link TL-WR902AC v3"; + + 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 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + sw1 { + label = "sw1"; + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + sw2 { + label = "sw2"; + gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + lan { + label = "tl-wr902ac-v3:green:lan"; + gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>; + }; + + led_power: power { + label = "tl-wr902ac-v3:green:power"; + gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "tl-wr902ac-v3:green:usb"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; + }; + + wan { + label = "tl-wr902ac-v3:green:wan"; + gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "tl-wr902ac-v3:green:wlan"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "tl-wr902ac-v3:green:wps"; + gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "i2s", "p0led_an", "p2led_an", "p4led_an", "uart1", "wdt", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + mt76@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x28000>; + ieee80211-freq-limit = <5000000 6000000>; + mtd-mac-address = <&factory 0xf100>; + mtd-mac-address-increment = <(-1)>; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_unielec_u7628-01-128m-16m.dts b/target/linux/ramips/dts/mt7628an_unielec_u7628-01-128m-16m.dts new file mode 100644 index 0000000000..75a1bd5404 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_unielec_u7628-01-128m-16m.dts @@ -0,0 +1,87 @@ +/* + * BSD LICENSE + * + * Copyright(c) 2017 Kristian Evensen . + * Copyright(c) 2017 Piotr Dymacz . + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Broadcom Corporation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/dts-v1/; + +#include "mt7628an_unielec_u7628-01.dtsi" + +/ { + compatible = "unielec,u7628-01-128m-16m", "unielec,u7628-01", "mediatek,mt7628an-soc"; + model = "UniElec U7628-01 (128M RAM/16M flash)"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x8000000>; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <12000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "bootloader"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "config"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0xfb0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi b/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi new file mode 100644 index 0000000000..03da1f88f2 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi @@ -0,0 +1,139 @@ +/* + * BSD LICENSE + * + * Copyright(c) 2017 Kristian Evensen . + * Copyright(c) 2017 Piotr Dymacz . + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Broadcom Corporation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "unielec,u7628-01", "mediatek,mt7628an-soc"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "u7628-01:green:power"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "u7628-01:green:wlan"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + wan { + label = "u7628-01:green:wan"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + + lan1 { + label = "u7628-01:green:lan1"; + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + }; + + lan2 { + label = "u7628-01:green:lan2"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + }; + + lan3 { + label = "u7628-01:green:lan3"; + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + }; + + lan4 { + label = "u7628-01:green:lan4"; + gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "u7628-01:green:usb"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; + }; + }; +}; + +&gpio0 { + status = "okay"; +}; + +&gpio1 { + status = "okay"; +}; + +&pcie { + status = "okay"; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&wmac { + status = "okay"; + ralink,mtd-eeprom = <&factory 0x0>; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "refclk", "wdt", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts b/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts new file mode 100644 index 0000000000..fc8fc89b71 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts @@ -0,0 +1,66 @@ +/dts-v1/; + +#include "mt7628an_vocore_vocore2.dtsi" + +#include + +/ { + compatible = "vocore,vocore2-lite", "vocore,vocore2", "mediatek,mt7628an-soc"; + model = "VoCore2-Lite"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + leds { + compatible = "gpio-leds"; + + led_status: status { + label = "vocore2lite:green:status"; + gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x7b0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dts b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dts new file mode 100644 index 0000000000..939bb0b761 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dts @@ -0,0 +1,66 @@ +/dts-v1/; + +#include "mt7628an_vocore_vocore2.dtsi" + +#include + +/ { + compatible = "vocore,vocore2", "mediatek,mt7628an-soc"; + model = "VoCore2"; + + aliases { + led-boot = &led_status; + led-failsafe = &led_status; + led-running = &led_status; + led-upgrade = &led_status; + }; + + leds { + compatible = "gpio-leds"; + + led_status: status { + label = "vocore2:fuchsia:status"; + gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0xfb0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi new file mode 100644 index 0000000000..f7aec8e1f5 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dtsi @@ -0,0 +1,53 @@ +#include "mt7628an.dtsi" + +/ { + compatible = "vocore,vocore2", "mediatek,mt7628an-soc"; + + chosen { + bootargs = "console=ttyS2,115200"; + }; +}; + + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "wled_an", "refclk", "wdt"; + ralink,function = "gpio"; + }; + }; +}; + +&wmac { + status = "okay"; + ralink,mtd-eeprom = <&factory 0x4>; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x7>; + mediatek,portdisable = <0x3a>; +}; + +&i2s { + status = "okay"; +}; + +&gdma { + status = "okay"; +}; + +&pwm { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts new file mode 100644 index 0000000000..a07490b853 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts @@ -0,0 +1,135 @@ +/dts-v1/; +#include +#include + +#include "mt7628an.dtsi" + +/ { + compatible = "wavlink,wl-wn570ha1", "mediatek,mt7628an-soc"; + model = "Wavlink WL-WN570HA1"; + + chosen { + bootargs = "console=ttyS0,57600"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x4000000>; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + power { + label = "wl-wn570ha1:green:power"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + default-state = "keep"; + }; + + wan { + label = "wl-wn570ha1:green:wan"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + + wifi-high { + label = "wl-wn570ha1:green:wifi-high"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + wifi-med { + label = "wl-wn570ha1:green:wifi-med"; + gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + }; + + wifi-low { + label = "wl-wn570ha1:green:wifi-low"; + gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + }; + + wifi { + label = "wl-wn570ha1:green:wifi"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "wled_an", "p0led_an", "wdt", "refclk"; + ralink,function = "gpio"; + }; + }; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + wifi@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + }; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x7b0000>; + }; + }; + }; +}; + +&wmac { + status = "okay"; +}; + +ðernet { + mtd-mac-address = <&factory 0x2e>; + mediatek,portmap = "llllw"; +}; diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts new file mode 100644 index 0000000000..76923d5cf6 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts @@ -0,0 +1,130 @@ +/dts-v1/; +#include +#include + +#include "mt7628an.dtsi" + +/ { + compatible = "wavlink,wl-wn575a3", "mediatek,mt7628an-soc"; + model = "Wavlink WL-WN575A3"; + + chosen { + bootargs = "console=ttyS0,57600"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x4000000>; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + wifi-high { + label = "wl-wn575a3:green:wifi-high"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + }; + + wifi-med { + label = "wl-wn575a3:green:wifi-med"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + wifi-low { + label = "wl-wn575a3:green:wifi-low"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "wl-wn575a3:green:wps"; + gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "wled_an", "gpio", "refclk", "wdt", "p0led_an"; + ralink,function = "gpio"; + }; + }; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + mt76@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + }; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x7b0000>; + }; + }; + }; +}; + +&wmac { + status = "okay"; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; + mediatek,portmap = "llllw"; +}; diff --git a/target/linux/ramips/dts/mt7628an_widora_neo-16m.dts b/target/linux/ramips/dts/mt7628an_widora_neo-16m.dts new file mode 100644 index 0000000000..9aa9e78fb4 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_widora_neo-16m.dts @@ -0,0 +1,58 @@ +/dts-v1/; + +#include "mt7628an_widora_neo.dtsi" + +/ { + compatible = "widora,neo-16m", "widora,neo", "mediatek,mt7628an-soc"; + model = "Widora-NEO (16M)"; +}; + +&spi0 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + + 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>; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x0fb0000>; + }; + }; + }; + + spidev@1 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "linux,spidev"; + reg = <1>; + spi-max-frequency = <40000000>; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_widora_neo-32m.dts b/target/linux/ramips/dts/mt7628an_widora_neo-32m.dts new file mode 100644 index 0000000000..6f67e60bb8 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_widora_neo-32m.dts @@ -0,0 +1,58 @@ +/dts-v1/; + +#include "mt7628an_widora_neo.dtsi" + +/ { + compatible = "widora,neo-32m", "widora,neo", "mediatek,mt7628an-soc"; + model = "Widora-NEO (32M)"; +}; + +&spi0 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + + 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>; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x1fb0000>; + }; + }; + }; + + spidev@1 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "linux,spidev"; + reg = <1>; + spi-max-frequency = <40000000>; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_widora_neo.dtsi b/target/linux/ramips/dts/mt7628an_widora_neo.dtsi new file mode 100644 index 0000000000..af3a1b1a1e --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_widora_neo.dtsi @@ -0,0 +1,126 @@ +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "widora,neo", "mediatek,mt7628an-soc"; + + aliases { + led-boot = &led_wifi; + led-failsafe = &led_wifi; + led-running = &led_wifi; + led-upgrade = &led_wifi; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x8000000>; + }; + + leds { + compatible = "gpio-leds"; + + led_wifi: wifi { + label = "widora:orange:wifi"; + gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + wps { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + wgpio: gpio-wifi { + compatible = "mediatek,gpio-wifi"; + #address-cells = <1>; + #size-cells = <0>; + gpio-controller; + #gpio-cells = <2>; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "gpio"; + ralink,function = "gpio"; + }; + + perst { + ralink,group = "perst"; + ralink,function = "gpio"; + }; + + refclk { + ralink,group = "refclk"; + ralink,function = "gpio"; + }; + + i2s { + ralink,group = "i2s"; + ralink,function = "gpio"; + }; + + spis { + ralink,group = "spis"; + ralink,function = "gpio"; + }; + + wled_kn { + ralink,group = "wled_kn"; + ralink,function = "gpio"; + }; + + wled_an { + ralink,group = "wled_an"; + ralink,function = "wled_an"; + }; + + wdt { + ralink,group = "wdt"; + ralink,function = "gpio"; + }; + }; +}; + +&i2c { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; + +&pwm { + status = "okay"; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&sdhci { + status = "okay"; + mediatek,cd-low; +}; + +&wmac { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts new file mode 100644 index 0000000000..13c8f68f15 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts @@ -0,0 +1,193 @@ +//SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "wiznet,wizfi630s", "mediatek,mt7628an-soc"; + model = "WIZnet WizFi630S"; + + chosen { + bootargs = "console=ttyS1,115200"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x8000000>; + }; + + aliases { + led-boot = &led_run; + led-failsafe = &led_run; + led-running = &led_run; + led-upgrade = &led_run; + serial0 = &uart1; + serial1 = &uartlite; + }; + + leds { + compatible = "gpio-leds"; + + led_run: run { + label = "wizfi630s:green:run"; + gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + }; + + ledwps { + label = "wizfi630s:green:wps"; + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + }; + + leduart1 { + label = "wizfi630s:green:uart1"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + }; + + leduart2 { + label = "wizfi630s:green:uart2"; + gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; + linux,code = ; + }; + + scm1 { + label = "SCM1"; + gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + scm2 { + label = "SCM2"; + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "gpio"; + ralink,function = "gpio"; + }; + + i2s { + ralink,group = "i2s"; + ralink,function = "gpio"; + }; + + wdt { + ralink,group = "wdt"; + ralink,function = "gpio"; + }; + + + i2c { + ralink,group = "i2c"; + ralink,function = "gpio"; + }; + + refclk { + ralink,group = "refclk"; + ralink,function = "gpio"; + }; + }; +}; + +&wmac { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + m25p,chunked-io = <31>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x1fb0000>; + }; + }; + }; +}; + +&i2c { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&pwm { + status = "okay"; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&esw { + mediatek,portmap = <0x3e>; +}; + +&sdhci { + status = "okay"; + mediatek,cd-high; +}; + +&wmac { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi new file mode 100644 index 0000000000..9bac822872 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi @@ -0,0 +1,96 @@ +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "wrtnode,wrtnode2", "mediatek,mt7628an-soc"; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x1fb0000>; + }; + }; + }; + + spidev@1 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "linux,spidev"; + reg = <1>; + spi-max-frequency = <10000000>; + }; +}; + +&uart1 { + status = "okay"; +}; + +&i2c { + status = "okay"; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; + mediatek,portmap = "llllw"; +}; + +&sdhci { + status = "okay"; +}; + +&pcie { + status = "okay"; +}; + +&wmac { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts new file mode 100644 index 0000000000..fe9cf0dd1a --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts @@ -0,0 +1,33 @@ +/dts-v1/; + +#include "mt7628an_wrtnode_wrtnode2.dtsi" + +/ { + compatible = "wrtnode,wrtnode2p", "wrtnode,wrtnode2", "mediatek,mt7628an-soc"; + model = "WRTnode2P"; + + aliases { + led-boot = &led_indicator; + led-failsafe = &led_indicator; + led-running = &led_indicator; + led-upgrade = &led_indicator; + }; + + leds { + compatible = "gpio-leds"; + + led_indicator: indicator { + label = "wrtnode:blue:indicator"; + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "gpio"; + ralink,function = "gpio"; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts new file mode 100644 index 0000000000..ccee34416b --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts @@ -0,0 +1,43 @@ +/dts-v1/; + +#include "mt7628an_wrtnode_wrtnode2.dtsi" + +/ { + compatible = "wrtnode,wrtnode2r", "wrtnode,wrtnode2", "mediatek,mt7628an-soc"; + model = "WRTnode2R"; + + aliases { + led-boot = &led_indicator; + led-failsafe = &led_indicator; + led-running = &led_indicator; + led-upgrade = &led_indicator; + }; + + leds { + compatible = "gpio-leds"; + + pinctrl-names = "default"; + pinctrl-0 = <&led_pins>; + + led_indicator: indicator { + label = "wrtnode:blue:indicator"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "gpio"; + ralink,function = "gpio"; + }; + }; + + led_pins: led { + gpio { + ralink,group = "wled_an"; + ralink,function = "gpio"; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts b/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts new file mode 100644 index 0000000000..8a33745f7f --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts @@ -0,0 +1,147 @@ +//SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "xiaomi,mir4a-100m", "mediatek,mt7628an-soc"; + model = "Xiaomi Mi Router 4A (100M Edition)"; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x4000000>; + }; + + aliases { + led-boot = &power_yellow; + led-failsafe = &power_yellow; + led-running = &power_blue; + led-upgrade = &power_yellow; + }; + + leds { + compatible = "gpio-leds"; + + power_blue: power_blue { + label = "mir4a-100m:blue:power"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + power_yellow: power_yellow { + label = "mir4a-100m:yellow:power"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "bootloader"; + reg = <0x0 0x20000>; + read-only; + }; + + partition@20000 { + label = "config"; + reg = <0x20000 0x10000>; + read-only; + }; + + factory: partition@30000 { + label = "factory"; + reg = <0x30000 0x10000>; + read-only; + }; + + partition@40000 { + label = "crash"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + label = "cfg_bak"; + reg = <0x50000 0x10000>; + read-only; + }; + + partition@60000 { + label = "overlay"; + reg = <0x60000 0x100000>; + read-only; + }; + + partition@160000 { + label = "firmware"; + reg = <0x160000 0xea0000>; + compatible = "denx,uimage"; + }; + }; + }; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + wifi@0,0 { + compatible = "mediatek,mt76"; + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "gpio", "wdt", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; + mtd-mac-address-increment = <(-1)>; +}; + +&esw { + mediatek,portmap = <0x2f>; + mediatek,portdisable = <0x2a>; +}; + +&wmac { + status = "okay"; +}; diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts new file mode 100644 index 0000000000..bad37e21f1 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts @@ -0,0 +1,113 @@ +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc"; + model = "MiWiFi Nano"; + + aliases { + led-boot = &led_blue; + led-failsafe = &led_blue; + led-running = &led_blue; + led-upgrade = &led_blue; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x4000000>; + }; + + leds { + compatible = "gpio-leds"; + + led_blue: status_blue { + label = "miwifi-nano:blue:status"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + status_red { + label = "miwifi-nano:red:status"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + }; + status_amber { + label = "miwifi-nano:amber:status"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "refclk", "wled_an", "gpio"; + ralink,function = "gpio"; + }; + }; +}; + +&wmac { + status = "okay"; + ralink,mtd-eeprom = <&factory 0x4>; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0xfb0000>; + }; + }; + }; +}; diff --git a/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts b/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts new file mode 100644 index 0000000000..aace0042e4 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts @@ -0,0 +1,120 @@ +/dts-v1/; +#include +#include + +#include "mt7628an.dtsi" + +/ { + compatible = "zbtlink,zbt-we1226", "mediatek,mt7628an-soc"; + model = "Zbtlink ZBT-WE1226"; + + aliases { + led-boot = &led_wlan; + led-failsafe = &led_wlan; + led-running = &led_wlan; + led-upgrade = &led_wlan; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x4000000>; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + wan { + label = "zbt-we1226:green:wan"; + gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + }; + + lan1 { + label = "zbt-we1226:green:lan1"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + }; + + lan2 { + label = "zbt-we1226:green:lan2"; + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + }; + + led_wlan: wlan { + label = "zbt-we1226:green:wlan"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "p0led_an", "p1led_an", "p4led_an", "wdt", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0x7b0000>; + }; + }; + }; +}; + +&wmac { + status = "okay"; + ralink,mtd-eeprom = <&factory 0x4>; +}; + +ðernet { + mtd-mac-address = <&factory 0x2e>; + mediatek,portmap = "llllw"; +}; diff --git a/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts b/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts new file mode 100644 index 0000000000..56912a786e --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts @@ -0,0 +1,216 @@ +/dts-v1/; + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "zyxel,keenetic-extra-ii", "mediatek,mt7628an-soc"; + model = "ZyXEL Keenetic Extra II"; + + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x8000000>; + }; + + chosen { + bootargs = "console=ttyS0,57600n8"; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + fn { + label = "fn"; + gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "keenetic-extra-ii:green:power"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + default-state = "keep"; + }; + + internet { + label = "keenetic-extra-ii:green:internet"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + + wifi { + label = "keenetic-extra-ii:green:wifi"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "keenetic-extra-ii:green:usb"; + gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; + }; + }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; + + usbpower { + gpio-export,name = "usbpower"; + gpio-export,output = <1>; + gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&spi0 { + status = "okay"; + + m25p80@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-config"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "rf-eeprom"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x50000 0xe90000>; + }; + + partition@ee0000 { + label = "config_1"; + reg = <0xee0000 0x10000>; + read-only; + }; + + partition@ef0000 { + label = "storage"; + reg = <0xef0000 0x100000>; + read-only; + }; + + partition@ff0000 { + label = "dump"; + reg = <0xff0000 0x10000>; + read-only; + }; + + partition@1000000 { + label = "u-state"; + reg = <0x1000000 0x30000>; + read-only; + }; + + partition@1030000 { + label = "u-config_res"; + reg = <0x1030000 0x10000>; + read-only; + }; + + partition@1040000 { + label = "rf-eeprom_res"; + reg = <0x1040000 0x10000>; + read-only; + }; + + partition@1050000 { + label = "firmware_2"; + reg = <0x1050000 0xe90000>; + read-only; + }; + + partition@1ee0000 { + label = "config_2"; + reg = <0x1ee0000 0x10000>; + read-only; + }; + }; + }; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; + +ðernet { + mtd-mac-address = <&factory 0x4>; + mediatek,portmap = "wllll"; +}; + +&wmac { + status = "okay"; + mediatek,mtd-eeprom = <&factory 0x0>; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + mt76@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + ieee80211-freq-limit = <5000000 6000000>; + mtd-mac-address = <&factory 0x8004>; + }; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "gpio", "i2s", "refclk", "spi cs1", "uart1", "wled_an"; + ralink,function = "gpio"; + }; + }; +}; diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk index b8d118bc69..f5fa21d8ff 100644 --- a/target/linux/ramips/image/mt76x8.mk +++ b/target/linux/ramips/image/mt76x8.mk @@ -3,6 +3,7 @@ # define Device/tplink + MTK_SOC := mt7628an DEVICE_VENDOR := TP-Link TPLINK_FLASHLAYOUT := TPLINK_HWID := @@ -21,7 +22,7 @@ DEVICE_VARS += TPLINK_FLASHLAYOUT TPLINK_HWID TPLINK_HWREV TPLINK_HWREVADD TPLIN define Device/alfa-network_awusfree1 - DTS := AWUSFREE1 + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_8M) DEVICE_VENDOR := ALFA Network DEVICE_MODEL := AWUSFREE1 @@ -30,7 +31,7 @@ endef TARGET_DEVICES += alfa-network_awusfree1 define Device/cudy_wr1000 - DTS := WR1000 + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_8M) IMAGES += factory.bin IMAGE/factory.bin := \ @@ -44,7 +45,7 @@ endef TARGET_DEVICES += cudy_wr1000 define Device/tama_w06 - DTS := W06 + MTK_SOC := mt7628an IMAGE_SIZE := 15040k DEVICE_VENDOR := Tama DEVICE_MODEL := W06 @@ -53,7 +54,7 @@ endef TARGET_DEVICES += tama_w06 define Device/duzun_dm06 - DTS := DUZUN-DM06 + MTK_SOC := mt7628an DEVICE_VENDOR := DuZun DEVICE_MODEL := DM06 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport @@ -62,7 +63,7 @@ endef TARGET_DEVICES += duzun_dm06 define Device/glinet_gl-mt300n-v2 - DTS := GL-MT300N-V2 + MTK_SOC := mt7628an IMAGE_SIZE := 16064k DEVICE_VENDOR := GL.iNet DEVICE_MODEL := GL-MT300N @@ -73,7 +74,7 @@ endef TARGET_DEVICES += glinet_gl-mt300n-v2 define Device/glinet_vixmini - DTS := VIXMINI + MTK_SOC := mt7628an IMAGE_SIZE := 7872k DEVICE_VENDOR := GL.iNet DEVICE_MODEL := VIXMINI @@ -82,7 +83,7 @@ endef TARGET_DEVICES += glinet_vixmini define Device/hiwifi_hc5661a - DTS := HC5661A + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := HiWiFi DEVICE_MODEL := HC5661A @@ -91,7 +92,7 @@ endef TARGET_DEVICES += hiwifi_hc5661a define Device/hilink_hlk-7628n - DTS := HLK-7628N + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_32M) DEVICE_VENDOR := HILINK DEVICE_MODEL := HLK-7628N @@ -99,7 +100,7 @@ endef TARGET_DEVICES += hilink_hlk-7628n define Device/hiwifi_hc5861b - DTS := HC5861B + MTK_SOC := mt7628an IMAGE_SIZE := 15808k DEVICE_VENDOR := HiWiFi DEVICE_MODEL := HC5861B @@ -108,7 +109,7 @@ endef TARGET_DEVICES += hiwifi_hc5861b define Device/mediatek_linkit-smart-7688 - DTS := LINKIT7688 + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_32M) DEVICE_VENDOR := MediaTek DEVICE_MODEL := LinkIt Smart 7688 @@ -118,7 +119,7 @@ endef TARGET_DEVICES += mediatek_linkit-smart-7688 define Device/mercury_mac1200r-v2 - DTS := MAC1200RV2 + MTK_SOC := mt7628an DEVICE_VENDOR := Mercury DEVICE_MODEL := MAC1200R DEVICE_VARIANT := v2.0 @@ -129,7 +130,7 @@ endef TARGET_DEVICES += mercury_mac1200r-v2 define Device/xiaomi_miwifi-nano - DTS := MIWIFI-NANO + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := Xiaomi DEVICE_MODEL := MiWiFi Nano @@ -139,7 +140,7 @@ endef TARGET_DEVICES += xiaomi_miwifi-nano define Device/mediatek_mt7628an-eval-board - DTS := MT7628 + MTK_SOC := mt7628an BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_4M) DEVICE_VENDOR := MediaTek @@ -150,7 +151,7 @@ endef TARGET_DEVICES += mediatek_mt7628an-eval-board define Device/netgear_r6120 - DTS := R6120 + MTK_SOC := mt7628an BLOCKSIZE := 64k IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := NETGEAR @@ -168,7 +169,7 @@ endef TARGET_DEVICES += netgear_r6120 define Device/onion_omega2 - DTS := OMEGA2 + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := Onion DEVICE_MODEL := Omega2 @@ -178,7 +179,7 @@ endef TARGET_DEVICES += onion_omega2 define Device/onion_omega2p - DTS := OMEGA2P + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_32M) DEVICE_VENDOR := Onion DEVICE_MODEL := Omega2+ @@ -188,7 +189,7 @@ endef TARGET_DEVICES += onion_omega2p define Device/d-team_pbr-d1 - DTS := PBR-D1 + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := PandoraBox DEVICE_MODEL := PBR-D1 @@ -198,7 +199,7 @@ endef TARGET_DEVICES += d-team_pbr-d1 define Device/rakwireless_rak633 - DTS := RAK633 + MTK_SOC := mt7628an DEVICE_VENDOR := Rakwireless DEVICE_MODEL := RAK633 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci @@ -206,7 +207,7 @@ endef TARGET_DEVICES += rakwireless_rak633 define Device/skylab_skw92a - DTS := SKW92A + MTK_SOC := mt7628an IMAGE_SIZE := 16064k DEVICE_VENDOR := Skylab DEVICE_MODEL := SKW92A @@ -215,7 +216,7 @@ endef TARGET_DEVICES += skylab_skw92a define Device/totolink_lr1200 - DTS := TOTOLINK-LR1200 + MTK_SOC := mt7628an IMAGE_SIZE := 7872k DEVICE_VENDOR := TOTOLINK DEVICE_MODEL := LR1200 @@ -225,7 +226,6 @@ TARGET_DEVICES += totolink_lr1200 define Device/tplink_tl-wa801nd-v5 $(Device/tplink) - DTS := TL-WA801NDV5 IMAGE_SIZE := 7808k DEVICE_MODEL := TL-WA801ND DEVICE_VARIANT := v5 @@ -239,7 +239,6 @@ TARGET_DEVICES += tplink_tl-wa801nd-v5 define Device/tplink_tl-wr802n-v4 $(Device/tplink) - DTS := TL-WR802NV4 IMAGE_SIZE := 7808k DEVICE_MODEL := TL-WR802N DEVICE_VARIANT := v4 @@ -253,7 +252,6 @@ TARGET_DEVICES += tplink_tl-wr802n-v4 define Device/tplink_tl-wr840n-v4 $(Device/tplink) - DTS := TL-WR840NV4 IMAGE_SIZE := 7808k DEVICE_MODEL := TL-WR840N DEVICE_VARIANT := v4 @@ -267,7 +265,7 @@ endef TARGET_DEVICES += tplink_tl-wr840n-v4 define Device/tplink_tl-wr840n-v5 - DTS := TL-WR840NV5 + MTK_SOC := mt7628an IMAGE_SIZE := 3904k DEVICE_MODEL := TL-WR840N DEVICE_VARIANT := v5 @@ -286,7 +284,6 @@ TARGET_DEVICES += tplink_tl-wr840n-v5 define Device/tplink_tl-wr841n-v13 $(Device/tplink) - DTS := TL-WR841NV13 IMAGE_SIZE := 7808k DEVICE_MODEL := TL-WR841N DEVICE_VARIANT := v13 @@ -301,7 +298,6 @@ TARGET_DEVICES += tplink_tl-wr841n-v13 define Device/tplink_tl-wr841n-v14 $(Device/tplink) - DTS := TL-WR841NV14 IMAGE_SIZE := 3968k DEVICE_MODEL := TL-WR841N DEVICE_VARIANT := v14 @@ -316,7 +312,6 @@ TARGET_DEVICES += tplink_tl-wr841n-v14 define Device/tplink_archer-c20-v4 $(Device/tplink) - DTS := ArcherC20v4 IMAGE_SIZE := 7808k DEVICE_MODEL := Archer C20 DEVICE_VARIANT := v4 @@ -332,7 +327,6 @@ TARGET_DEVICES += tplink_archer-c20-v4 define Device/tplink_archer-c50-v3 $(Device/tplink) - DTS := ArcherC50V3 IMAGE_SIZE := 7808k DEVICE_MODEL := Archer C50 DEVICE_VARIANT := v3 @@ -348,7 +342,6 @@ TARGET_DEVICES += tplink_archer-c50-v3 define Device/tplink_archer-c50-v4 $(Device/tplink) - DTS := ArcherC50V4 IMAGE_SIZE := 7616k DEVICE_MODEL := Archer C50 DEVICE_VARIANT := v4 @@ -365,7 +358,6 @@ TARGET_DEVICES += tplink_archer-c50-v4 define Device/tplink_tl-mr3020-v3 $(Device/tplink) - DTS := TL-MR3020V3 IMAGE_SIZE := 7808k DEVICE_MODEL := TL-MR3020 DEVICE_VARIANT := v3 @@ -380,7 +372,6 @@ TARGET_DEVICES += tplink_tl-mr3020-v3 define Device/tplink_tl-mr3420-v5 $(Device/tplink) - DTS := TL-MR3420V5 IMAGE_SIZE := 7808k DEVICE_MODEL := TL-MR3420 DEVICE_VARIANT := v5 @@ -395,7 +386,6 @@ TARGET_DEVICES += tplink_tl-mr3420-v5 define Device/tplink_tl-wr842n-v5 $(Device/tplink) - DTS := TL-WR842NV5 IMAGE_SIZE := 7808k DEVICE_MODEL := TL-WR842N DEVICE_VARIANT := v5 @@ -410,7 +400,6 @@ TARGET_DEVICES += tplink_tl-wr842n-v5 define Device/tplink_tl-wr902ac-v3 $(Device/tplink) - DTS := TL-WR902ACV3 IMAGE_SIZE := 7808k DEVICE_MODEL := TL-WR902AC DEVICE_VARIANT := v3 @@ -424,7 +413,7 @@ endef TARGET_DEVICES += tplink_tl-wr902ac-v3 define Device/unielec_u7628-01-128m-16m - DTS := U7628-01-128M-16M + MTK_SOC := mt7628an IMAGE_SIZE := 16064k DEVICE_VENDOR := UniElec DEVICE_MODEL := U7628-01 @@ -435,7 +424,7 @@ endef TARGET_DEVICES += unielec_u7628-01-128m-16m define Device/vocore_vocore2 - DTS := VOCORE2 + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := VoCore DEVICE_MODEL := VoCore2 @@ -446,7 +435,7 @@ endef TARGET_DEVICES += vocore_vocore2 define Device/vocore_vocore2-lite - DTS := VOCORE2LITE + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := VoCore DEVICE_MODEL := VoCore2-Lite @@ -457,7 +446,7 @@ endef TARGET_DEVICES += vocore_vocore2-lite define Device/wavlink_wl-wn570ha1 - DTS := WL-WN570HA1 + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_8M) DEVICE_VENDOR := Wavlink DEVICE_MODEL := WL-WN570HA1 @@ -466,7 +455,7 @@ endef TARGET_DEVICES += wavlink_wl-wn570ha1 define Device/wavlink_wl-wn575a3 - DTS := WL-WN575A3 + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_8M) DEVICE_VENDOR := Wavlink DEVICE_MODEL := WL-WN575A3 @@ -476,7 +465,7 @@ endef TARGET_DEVICES += wavlink_wl-wn575a3 define Device/buffalo_wcr-1166ds - DTS := WCR-1166DS + MTK_SOC := mt7628an BUFFALO_TAG_PLATFORM := MTK BUFFALO_TAG_VERSION := 9.99 BUFFALO_TAG_MINOR := 9.99 @@ -495,7 +484,7 @@ endef TARGET_DEVICES += buffalo_wcr-1166ds define Device/widora_neo-16m - DTS := WIDORA-NEO-16M + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := Widora DEVICE_MODEL := Widora-NEO @@ -506,7 +495,7 @@ endef TARGET_DEVICES += widora_neo-16m define Device/widora_neo-32m - DTS := WIDORA-NEO-32M + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_32M) DEVICE_VENDOR := Widora DEVICE_MODEL := Widora-NEO @@ -516,7 +505,7 @@ endef TARGET_DEVICES += widora_neo-32m define Device/wiznet_wizfi630s - DTS := WIZFI630S + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_32M) DEVICE_VENDOR := WIZnet DEVICE_MODEL := WizFi630S @@ -524,7 +513,7 @@ endef TARGET_DEVICES += wiznet_wizfi630s define Device/wrtnode_wrtnode2p - DTS := WRTNODE2P + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := WRTnode DEVICE_MODEL := WRTnode 2P @@ -534,7 +523,7 @@ endef TARGET_DEVICES += wrtnode_wrtnode2p define Device/wrtnode_wrtnode2r - DTS := WRTNODE2R + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_VENDOR := WRTnode DEVICE_MODEL := WRTnode 2R @@ -544,7 +533,7 @@ endef TARGET_DEVICES += wrtnode_wrtnode2r define Device/xiaomi_mir4a-100m - DTS := XIAOMI-MIR4A-100M + MTK_SOC := mt7628an IMAGE_SIZE := 14976k DEVICE_VENDOR := Xiaomi DEVICE_MODEL := Mi Router 4A @@ -554,7 +543,7 @@ endef TARGET_DEVICES += xiaomi_mir4a-100m define Device/zbtlink_zbt-we1226 - DTS := ZBT-WE1226 + MTK_SOC := mt7628an IMAGE_SIZE := $(ralink_default_fw_size_8M) DEVICE_VENDOR := ZBTlink DEVICE_MODEL := ZBT-WE1226 @@ -562,7 +551,7 @@ endef TARGET_DEVICES += zbtlink_zbt-we1226 define Device/zyxel_keenetic-extra-ii - DTS := ki_rb + MTK_SOC := mt7628an IMAGE_SIZE := 14912k BLOCKSIZE := 64k DEVICE_VENDOR := ZyXEL