/branches/18.06.1/target/linux/ramips/dts/3G-6200N.dts |
@@ -0,0 +1,124 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "edimax,3g-6200n", "ralink,rt3050-soc"; |
model = "Edimax 3g-6200n"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@3e0000 { |
label = "cimage"; |
reg = <0x3e0000 0x20000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "edimax,uimage"; |
label = "firmware"; |
reg = <0x50000 0x390000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "3g-6200n:green:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wlan { |
label = "3g-6200n:amber:wlan"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
3g { |
label = "3g-6200n:blue:3g"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
trigger-sources = <&otg_port1>; |
linux,default-trigger = "usbport"; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
rfkill { |
label = "wlanswitch"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/3G-6200NL.dts |
@@ -0,0 +1,111 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "edimax,3g-6200nl", "ralink,rt3050-soc"; |
model = "Edimax 3g-6200nl"; |
|
aliases { |
led-boot = &led_internet; |
led-failsafe = &led_internet; |
led-running = &led_internet; |
led-upgrade = &led_internet; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@3e0000 { |
label = "cimage"; |
reg = <0x3e0000 0x20000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "edimax,uimage"; |
label = "firmware"; |
reg = <0x50000 0x390000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_internet: internet { |
label = "3g-6200nl:green:internet"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wlan { |
label = "3g-6200nl:green:wlan"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portdisable = <0x37>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/3G150B.dts |
@@ -0,0 +1,130 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "tenda,3g150b", "ralink,rt5350-soc"; |
model = "Tenda 3G150B"; |
|
aliases { |
led-boot = &led_ap; |
led-failsafe = &led_ap; |
led-running = &led_ap; |
led-upgrade = &led_ap; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_ap: ap { |
label = "3g150b:blue:ap"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
3g { |
label = "3g150b:blue:3g"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb { |
gpio-export,name = "usb"; |
gpio-export,output = <1>; |
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf", "led"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
ralink,led-polarity = <1>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/3G300M.dts |
@@ -0,0 +1,136 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "tenda,3g300m", "ralink,rt3052-soc"; |
model = "Tenda 3G300M"; |
|
aliases { |
led-boot = &led_ap; |
led-failsafe = &led_ap; |
led-running = &led_ap; |
led-upgrade = &led_ap; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
3grouter { |
label = "3g300m:blue:3grouter"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
led_ap: ap { |
label = "3g300m:blue:ap"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
wisprouter { |
label = "3g300m:blue:wisprouter"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wirelessrouter { |
label = "3g300m:blue:wirelessrouter"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
3g { |
label = "3g300m:blue:3g"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
trigger-sources = <&otg_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
wpsreset { |
label = "3g300m:blue:wpsreset"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
mode { |
label = "mode"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/A5-V11.dts |
@@ -0,0 +1,134 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "unbranded,a5-v11", "ralink,rt5350-soc"; |
model = "A5-V11"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
system { |
label = "a5-v11:blue:system"; |
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
}; |
|
led_power: power { |
label = "a5-v11:red:power"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb { |
gpio-export,name = "usb"; |
gpio-export,output = <1>; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
}; |
|
root_hub { |
gpio-export,name = "root_hub"; |
gpio-export,output = <1>; |
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf", "led"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x1>; |
mediatek,portdisable = <0x3e>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/AC1200RM.dts |
@@ -0,0 +1,183 @@ |
/* |
* BSD LICENSE |
* |
* Copyright (C) 2018 Piotr Dymacz <pepe2k@gmail.com> |
* 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 "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "alfa-network,ac1200rm", "ralink,mt7620a-soc"; |
model = "ALFA Network AC1200RM"; |
|
aliases { |
led-boot = &led_wps; |
led-failsafe = &led_wps; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wlan2g { |
label = "ac1200rm:green:wlan2g"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
|
led_wps: wps { |
label = "ac1200rm:green:wps"; |
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
mediatek,portmap = "llllw"; |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
&gsw { |
mediatek,port4 = "ephy"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
|
led { |
led-sources = <2>; |
led-active-low; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "nd_sd", "spi refclk", "wled"; |
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 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 0xfb0000>; |
}; |
}; |
}; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/AI-BR100.dts |
@@ -0,0 +1,117 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "aigale,ai-br100", "ralink,mt7620a-soc"; |
model = "Aigale Ai-BR100"; |
|
aliases { |
led-boot = &led_wlan; |
led-failsafe = &led_wlan; |
led-running = &led_wlan; |
led-upgrade = &led_wlan; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wan { |
label = "ai-br100:blue:wan"; |
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; |
}; |
|
led_wlan: wlan { |
label = "ai-br100:blue:wlan"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
&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 0x20000>; |
read-only; |
}; |
|
partition@20000 { |
label = "u-boot-env"; |
reg = <0x20000 0x10000>; |
read-only; |
}; |
|
factory: partition@30000 { |
label = "factory"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
partition@40000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x40000 0x7c0000>; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "llllw"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/AIR3GII.dts |
@@ -0,0 +1,103 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "airlive,air3gii", "ralink,rt5350-soc"; |
model = "AirLive Air3GII"; |
|
leds { |
compatible = "gpio-leds"; |
|
wlan { |
label = "air3gii:green:wlan"; |
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; |
}; |
|
mobile { |
label = "air3gii:green:mobile"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ALL5002.dts |
@@ -0,0 +1,119 @@ |
/dts-v1/; |
|
#include "rt3352.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "allnet,all5002", "ralink,rt3352-soc"; |
model = "Allnet ALL5002"; |
|
i2c-gpio { |
#address-cells = <1>; |
#size-cells = <0>; |
|
compatible = "i2c-gpio"; |
gpios = <&gpio0 1 GPIO_ACTIVE_HIGH &gpio0 2 GPIO_ACTIVE_HIGH>; |
i2c-gpio,delay-us = <10>; |
|
pcf0: iexp@38 { |
#gpio-cells = <2>; |
compatible = "inxp,pcf8574a"; |
reg = <0x38>; |
gpio-controller; |
}; |
|
hwmon@4b { |
compatible = "national,lm92"; |
reg = <0x4b>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
ld1 { |
label = "all5002:green:ld1"; |
gpios = <&pcf0 0 GPIO_ACTIVE_LOW>; |
}; |
|
ld2 { |
label = "all5002:green:ld2"; |
gpios = <&pcf0 1 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x1fb0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&esw { |
mediatek,portmap = <0x3f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/AP-MT7621A-V60.dts |
@@ -0,0 +1,131 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
/ { |
compatible = "mediatek,ap-mt7621a-v60", "mediatek,mt7621-soc"; |
model = "Mediatek AP-MT7621A-V60 EVB"; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x8000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
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 = |
"Microphone", "Microphone Jack", |
"Headphone", "Headphone Jack"; |
simple-audio-card,routing = |
"LINPUT1", "Microphone Jack", |
"RINPUT1", "Microphone Jack", |
"Headphone Jack", "HP_L", |
"Headphone Jack", "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 = "uart2", "rgmii2"; |
ralink,function = "gpio"; |
}; |
}; |
i2s_pins: i2s { |
i2s { |
ralink,group = "uart3"; |
ralink,function = "i2s"; |
}; |
}; |
}; |
|
&i2c { |
status = "okay"; |
|
codec: wm8960@1a { |
#sound-dai-cells = <0>; |
compatible = "wlf,wm8960"; |
reg = <0x1a>; |
wlf,shared-lrclk; |
}; |
}; |
|
&gdma { |
status = "okay"; |
}; |
|
&i2s { |
#sound-dai-cells = <0>; |
status = "okay"; |
pinctrl-names = "default"; |
pinctrl-0 = <&i2s_pins>; |
}; |
|
&spi0 { |
status = "okay"; |
|
mx25l6405d@0 { |
compatible = "mx25l6405d","jedec,spi-nor"; |
reg = <0 0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x5>; |
}; |
|
&pcie { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/AR725W.dts |
@@ -0,0 +1,126 @@ |
/dts-v1/; |
|
#include "rt2880.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "airlink101,ar725w", "ralink,rt2880-soc"; |
model = "Airlink101 AR725W"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
cfi@bdc00000 { |
compatible = "cfi-flash"; |
reg = <0xbc400000 0x800000>; |
bank-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
reg = <0x0 0x30000>; |
label = "u-boot"; |
read-only; |
}; |
|
partition@30000 { |
reg = <0x30000 0x10000>; |
label = "u-boot-env"; |
}; |
|
factory: partition@40000 { |
reg = <0x40000 0x10000>; |
label = "factory"; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
reg = <0x50000 0x3B0000>; |
label = "firmware"; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "ar725w:green:power"; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
}; |
|
wpsred { |
label = "ar725w:red:wps"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
wpsblue { |
label = "ar725w:blue:wps"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <100>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "spi", "uartlite"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
status = "okay"; |
mtd-mac-address = <&factory 0x4>; |
|
port@0 { |
phy-handle = <&phy0>; |
phy-mode = "mii"; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy0: ethernet-phy@0 { |
phy-mode = "mii"; |
reg = <0>; |
}; |
}; |
}; |
|
&wmac { |
status = "okay"; |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ASL26555.dtsi |
@@ -0,0 +1,107 @@ |
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "alphanetworks,asl26555", "ralink,rt3050-soc"; |
|
aliases { |
led-boot = &led_power_green; |
led-failsafe = &led_power_green; |
led-running = &led_power_green; |
led-upgrade = &led_power_green; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
eth { |
label = "asl26555:green:eth"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
}; |
|
wan-red { |
label = "asl26555:red:wan"; |
gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
}; |
|
wan-green { |
label = "asl26555:green:wan"; |
gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
}; |
|
wlan { |
label = "asl26555:green:wlan"; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
}; |
|
led_power_green: power-green { |
label = "asl26555:green:power"; |
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; |
}; |
|
power-red { |
label = "asl26555:red:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; |
}; |
|
3g-green { |
label = "asl26555:green:3g"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
trigger-sources = <&otg_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
3g-red { |
label = "asl26555:red:3g"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&devdata 0x4004>; |
}; |
|
&esw { |
mediatek,portmap = <0x1e>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&devdata 0x4000>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/AWUSFREE1.dts |
@@ -0,0 +1,173 @@ |
/* |
* BSD LICENSE |
* |
* Copyright (C) 2018 Piotr Dymacz <pepe2k@gmail.com> |
* 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 <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
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 = <KEY_RESTART>; |
}; |
}; |
|
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>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ArcherC2-v1.dts |
@@ -0,0 +1,191 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "tplink,c2-v1", "ralink,mt7620a-soc"; |
model = "TP-Link Archer C2 v1"; |
|
aliases { |
led-boot = &led_wps; |
led-failsafe = &led_wps; |
led-running = &led_wps; |
led-upgrade = &led_wps; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
lan { |
label = "c2-v1:green:lan"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "c2-v1:green:usb"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
led_wps: wps { |
label = "c2-v1:green:wps"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
|
wan { |
label = "c2-v1:green:wan"; |
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; |
}; |
|
wlan { |
label = "c2-v1:green:wlan"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys"; |
|
reset_wps { |
label = "reset_wps"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
rfkill { |
label = "rfkill"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
|
rtl8367rb { |
compatible = "realtek,rtl8367b", "rtl8367b"; |
cpu_port = <6>; |
realtek,extif1 = <1 0 1 1 1 1 1 1 2>; |
mii-bus = <&mdio0>; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x20000>; |
read-only; |
}; |
|
partition@20000 { |
compatible = "tplink,firmware"; |
label = "firmware"; |
reg = <0x20000 0x7a0000>; |
}; |
|
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>; |
read-only; |
}; |
|
radio: partition@7f0000 { |
label = "radio"; |
reg = <0x7f0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
ðernet { |
status = "okay"; |
mtd-mac-address = <&rom 0xf100>; |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; |
|
port@5 { |
status = "okay"; |
mediatek,fixed-link = <1000 1 1 1>; |
phy-mode = "rgmii"; |
}; |
|
mdio0: mdio-bus { |
status = "okay"; |
}; |
}; |
|
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&radio 0>; |
mtd-mac-address = <&rom 0xf100>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&radio 0x8000>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ArcherC20i.dts |
@@ -0,0 +1,159 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "tplink,c20i", "ralink,mt7620a-soc"; |
model = "TP-Link Archer C20i"; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
lan { |
label = "c20i:blue:lan"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
}; |
usb { |
label = "c20i:blue:usb"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
wps { |
label = "c20i:blue:wps"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
wan { |
label = "c20i:blue:wan"; |
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; |
}; |
wlan { |
label = "c20i:blue:wlan"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys"; |
|
rfkill { |
label = "rfkill"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
reset_wps { |
label = "reset_wps"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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 0x20000>; |
read-only; |
}; |
|
partition@20000 { |
compatible = "tplink,firmware"; |
label = "firmware"; |
reg = <0x20000 0x7a0000>; |
}; |
|
partition@7c0000 { |
label = "config"; |
reg = <0x7c0000 0x10000>; |
}; |
|
rom: partition@7d0000 { |
label = "rom"; |
reg = <0x7d0000 0x10000>; |
}; |
|
partition@7e0000 { |
label = "romfile"; |
reg = <0x7e0000 0x10000>; |
}; |
|
radio: partition@7f0000 { |
label = "radio"; |
reg = <0x7f0000 0x10000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
mtd-mac-address = <&rom 0xf100>; |
mediatek,portmap = "wllll"; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
&gsw { |
mediatek,port4 = "ephy"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&radio 0>; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&radio 32768>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ArcherC20v1.dts |
@@ -0,0 +1,199 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/input/input.h> |
#include <dt-bindings/gpio/gpio.h> |
|
/ { |
compatible = "tplink,c20-v1", "ralink,mt7620a-soc"; |
model = "TP-Link Archer C20 v1"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
lan { |
label = "c20-v1:blue:lan"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
}; |
|
led_power: power { |
label = "c20-v1:blue:power"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
default-state = "keep"; |
}; |
|
usb { |
label = "c20-v1:blue:usb"; |
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
wan { |
label = "c20-v1:blue:wan"; |
gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; |
}; |
|
wan_orange { |
label = "c20-v1:orange:wan"; |
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; |
}; |
|
wlan5g { |
label = "c20-v1:blue:wlan5g"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
}; |
|
wlan2g { |
label = "c20-v1:blue:wlan2g"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "c20-v1:blue:wps"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
rfkill { |
label = "rfkill"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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 0x20000>; |
read-only; |
}; |
|
partition@20000 { |
compatible = "tplink,firmware"; |
label = "firmware"; |
reg = <0x20000 0x7a0000>; |
}; |
|
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>; |
read-only; |
}; |
|
radio: partition@7f0000 { |
label = "radio"; |
reg = <0x7f0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk", "wdt"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
mtd-mac-address = <&rom 0xf100>; |
mediatek,portmap = "wllll"; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
&gsw { |
mediatek,port4 = "ephy"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&radio 0>; |
mtd-mac-address = <&rom 0xf100>; |
mtd-mac-address-increment = <(-2)>; |
pinctrl-names = "default"; |
pinctrl-0 = <&pa_pins>; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@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)>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ArcherC20v4.dts |
@@ -0,0 +1,105 @@ |
/dts-v1/; |
|
#include "TPLINK-8M.dtsi" |
|
#include <dt-bindings/input/input.h> |
#include <dt-bindings/gpio/gpio.h> |
|
/ { |
compatible = "tplink,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 = <KEY_RESTART>; |
}; |
|
rfkill { |
label = "rfkill"; |
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
}; |
|
&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)>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ArcherC50.dts |
@@ -0,0 +1,198 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/input/input.h> |
#include <dt-bindings/gpio/gpio.h> |
|
/ { |
compatible = "tplink,c50", "ralink,mt7620a-soc"; |
model = "TP-Link Archer C50"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
lan { |
label = "c50:green:lan"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
}; |
|
led_power: power { |
label = "c50:green:power"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
default-state = "on"; |
}; |
|
usb { |
label = "c50:green:usb"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
wan { |
label = "c50:green:wan"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
}; |
|
wan_orange { |
label = "c50:orange:wan"; |
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; |
}; |
|
wlan5g { |
label = "c50:green:wlan5g"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
wlan2g { |
label = "c50:green:wlan2g"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "c50:green:wps"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
rfkill { |
label = "rfkill"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; }; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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 0x20000>; |
read-only; |
}; |
|
partition@20000 { |
compatible = "tplink,firmware"; |
label = "firmware"; |
reg = <0x20000 0x7a0000>; |
}; |
|
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>; |
read-only; |
}; |
|
radio: partition@7f0000 { |
label = "radio"; |
reg = <0x7f0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
mtd-mac-address = <&rom 0xf100>; |
mediatek,portmap = "wllll"; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
&gsw { |
mediatek,port4 = "ephy"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&radio 0>; |
mtd-mac-address = <&rom 0xf100>; |
mtd-mac-address-increment = <(-2)>; |
pinctrl-names = "default"; |
pinctrl-0 = <&pa_pins>; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&radio 32768>; |
ieee80211-freq-limit = <5000000 6000000>; |
mtd-mac-address = <&rom 0xf100>; |
mtd-mac-address-increment = <(-1)>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ArcherC50V3.dts |
@@ -0,0 +1,98 @@ |
/dts-v1/; |
|
#include "TPLINK-8M.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "tplink,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 = <KEY_RESTART>; |
}; |
|
rfkill { |
label = "rfkill"; |
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
|
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)>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ArcherC50V4.dts |
@@ -0,0 +1,99 @@ |
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
/dts-v1/; |
|
#include "TPLINK-8M-SPLIT-UBOOT.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "tplink,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 = <KEY_RESTART>; |
}; |
|
rfkill { |
label = "rfkill"; |
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
|
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)>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ArcherMR200.dts |
@@ -0,0 +1,202 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "tplink,mr200", "ralink,mt7620a-soc"; |
model = "TP-Link Archer MR200"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
lan { |
label = "mr200:white:lan"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
}; |
|
wan { |
label = "mr200:white:wan"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
led_power: power { |
label = "mr200:white:power"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
4g { |
label = "mr200:white:4g"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "mr200:white:wps"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
|
signal1 { |
label = "mr200:white:signal1"; |
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; |
}; |
|
signal2 { |
label = "mr200:white:signal2"; |
gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; |
}; |
|
signal3 { |
label = "mr200:white:signal3"; |
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; |
}; |
|
signal4 { |
label = "mr200:white:signal4"; |
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; |
}; |
|
wlan { |
label = "mr200:white:wlan"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys"; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RESTART>; |
}; |
|
rfkill { |
label = "rfkill"; |
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
power_usb { |
gpio-export,name = "power_usb1"; |
gpio-export,output = <1>; |
gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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 0x20000>; |
read-only; |
}; |
|
partition@20000 { |
compatible = "tplink,firmware"; |
label = "firmware"; |
reg = <0x20000 0x7b0000>; |
}; |
|
rom: partition@7d0000 { |
label = "rom"; |
reg = <0x7d0000 0x10000>; |
read-only; |
}; |
|
partition@7e0000 { |
label = "romfile"; |
reg = <0x7e0000 0x10000>; |
read-only; |
}; |
|
radio: partition@7f0000 { |
label = "radio"; |
reg = <0x7f0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&rom 0xf100>; |
mediatek,portmap = "llll"; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
&gsw { |
mediatek,port4 = "ephy"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&radio 0>; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&radio 32768>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/BDCOM-WAP2100-SK.dts |
@@ -0,0 +1,153 @@ |
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "bdcom,wap2100-sk", "ralink,mt7620a-soc"; |
model = "BDCOM WAP2100-SK"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
usb { |
label = "wap2100-sk:green:usb"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
led_power: wps { |
label = "wap2100-sk:green:wps"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
|
wlan2g { |
label = "wap2100-sk:green:wlan2g"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&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 0xf70000>; |
}; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "llllw"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
wifi@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "spi refclk", "uartf", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/BOCCO.dts |
@@ -0,0 +1,165 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "planex,cs-qr10", "ralink,mt7620a-soc"; |
model = "YUKAI Engineering BOCCO"; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
s1 { |
gpio-export,name = "rec"; |
gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; |
}; |
s2 { |
gpio-export,name = "play"; |
gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
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>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
&i2c { |
status = "okay"; |
|
codec: wm8960@1a { |
#sound-dai-cells = <0>; |
compatible = "wlf,wm8960"; |
reg = <0x1a>; |
|
wlf,shared-lrclk; |
}; |
}; |
|
&i2s { |
#sound-dai-cells = <0>; |
status = "okay"; |
pinctrl-names = "default"; |
pinctrl-0 = <&pcm_i2s_pins>; |
}; |
|
&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>; |
}; |
}; |
}; |
}; |
|
&pcm { |
status = "okay"; |
}; |
|
&gdma { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi refclk", "rgmii1"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "llllw"; |
}; |
|
&gsw { |
ralink,port4 = "ephy"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/BR-6475ND.dts |
@@ -0,0 +1,180 @@ |
/dts-v1/; |
|
#include "rt3883.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "edimax,br-6475nd", "ralink,rt3883-soc"; |
model = "Edimax BR-6475nD"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <100>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
rfkill { |
label = "rfkill"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
linux,input-type = <EV_SW>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "br-6475nd:green:power"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
}; |
|
wlan { |
label = "br-6475nd:amber:wlan"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
wlan_5ghz { |
label = "br-6475nd:amber:wlan_5ghz"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
nor-flash@1c000000 { |
compatible = "cfi-flash"; |
reg = <0x1c000000 0x800000>; |
bank-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
reg = <0x00000000 0x00030000>; |
label = "u-boot"; |
read-only; |
}; |
|
partition@30000 { |
reg = <0x00030000 0x00010000>; |
label = "nvram"; |
read-only; |
}; |
|
factory: partition@40000 { |
reg = <0x00040000 0x00010000>; |
label = "factory"; |
read-only; |
}; |
|
devdata: partition@50000 { |
reg = <0x00050000 0x00020000>; |
label = "devdata"; |
read-only; |
}; |
|
partition@70000 { |
compatible = "edimax,uimage"; |
reg = <0x00070000 0x00790000>; |
label = "firmware"; |
}; |
}; |
}; |
|
rtl8367 { |
compatible = "realtek,rtl8367"; |
gpio-sda = <&gpio0 5 GPIO_ACTIVE_HIGH>; |
gpio-sck = <&gpio0 4 GPIO_ACTIVE_HIGH>; |
realtek,extif0 = <1 0 1 1 1 1 1 1 2>; |
}; |
|
/* |
* Unclear if this is the correct gpio setup; the USB ports are |
* unpopulated on a stock BR-6475nD, even though the hardware exists |
* and the headers are there. |
*/ |
/* |
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb { |
gpio-export,name="usb"; |
gpio-export,output=<0>; |
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; |
}; |
}; |
*/ |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&timer { |
status = "okay"; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&uartlite { |
status = "okay"; |
}; |
|
ðernet { |
status = "okay"; |
mtd-mac-address = <&devdata 0x0d>; |
|
port@0 { |
mediatek,fixed-link = <1000 1 1 1>; |
}; |
}; |
|
&wmac { |
status = "okay"; |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pci { |
status = "okay"; |
}; |
|
&pci1 { |
status = "okay"; |
|
wifi@0,0 { |
compatible = "pci0,0"; |
reg = <0x10000 0 0 0 0>; |
ralink,5ghz = <0>; |
ralink,mtd-eeprom = <&factory 0x8000>; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/BR-6478AC-V2.dts |
@@ -0,0 +1,216 @@ |
/* |
* Device Tree file for the Edimax BR-6478AC V2 |
* based on Linksys E1700 |
* |
* Copyright (C) 2016 Rohan Murch <rohan.murch@gmail.com> |
* Copyright (C) 2016 Hans Ulli Kroll <ulli.kroll@googlemail.com> |
* Copyright (C) 2017 James McKenzie <openwrt@madingley.org> |
* |
* This file is licensed under the terms of the GNU General Public |
* License version 2. This program is licensed "as is" without any |
* warranty of any kind, whether express or implied. |
*/ |
|
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "edimax,br-6478ac-v2", "ralink,mt7620a-soc"; |
model = "Edimax BR-6478AC v2"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset_wps { |
label = "reset_wps"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "br-6478ac-v2:white:power"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
internet { |
label = "br-6478ac-v2:blue:internet"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
wlan { |
label = "br-6478ac-v2:blue:wlan"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
}; |
usb { |
label = "br-6478ac-v2:blue:usb"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
}; |
|
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
usb-power { |
gpio-export,name="usb-power"; |
gpio-export,output=<1>; |
gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
|
&gpio2 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
flash@0 { |
compatible = "jedec,spi-nor"; |
reg = <0 0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
label = "cimage"; |
reg = <0x50000 0x20000>; |
read-only; |
}; |
|
partition@70000 { |
compatible = "edimax,uimage"; |
label = "firmware"; |
reg = <0x00070000 0x00790000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartf", "nd_sd"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
status = "okay"; |
mtd-mac-address = <&factory 0x4>; |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; |
mediatek,portmap = "wllll"; |
|
port@5 { |
status = "okay"; |
mediatek,fixed-link = <1000 1 1 1>; |
phy-mode = "rgmii"; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy0: ethernet-phy@0 { |
reg = <0>; |
phy-mode = "rgmii"; |
}; |
|
phy1: ethernet-phy@1 { |
reg = <1>; |
phy-mode = "rgmii"; |
}; |
|
phy2: ethernet-phy@2 { |
reg = <2>; |
phy-mode = "rgmii"; |
}; |
|
phy3: ethernet-phy@3 { |
reg = <3>; |
phy-mode = "rgmii"; |
}; |
|
phy4: ethernet-phy@4 { |
reg = <4>; |
phy-mode = "rgmii"; |
}; |
|
phy1f: ethernet-phy@1f { |
reg = <0x1f>; |
phy-mode = "rgmii"; |
}; |
}; |
}; |
|
&gsw { |
mediatek,port4 = "gmac"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
wifi@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
mediatek,2ghz = <0>; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/BROADWAY.dts |
@@ -0,0 +1,100 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "hauppauge,broadway", "ralink,rt3052-soc"; |
model = "Hauppauge Broadway"; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "bootloader"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "config"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x790000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
diskmounted { |
label = "broadway:red:diskmounted"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
trigger-sources = <&otg_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
wps_active { |
label = "broadway:red:wps_active"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
factory { |
label = "Factory Reset button"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x3e>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/C108.dts |
@@ -0,0 +1,187 @@ |
/* |
* BSD LICENSE |
* |
* Copyright(c) 2017 Kristian Evensen <kristian.evensen@gmail.com>. |
* 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 "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "hnet,c108", "ralink,mt7620a-soc"; |
model = "HNET C108"; |
|
aliases { |
led-boot = &led_lan_green; |
led-failsafe = &led_lan_green; |
led-running = &led_lan_green; |
led-upgrade = &led_lan_green; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
gpio-export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
power_modem { |
gpio-export,name = "power_modem"; |
gpio-export,output = <1>; |
gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
sdcard { |
label = "c108:green:sdcard"; |
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
}; |
|
modem_green { |
label = "c108:green:modem"; |
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
}; |
|
modem_red { |
label = "c108:red:modem"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
|
lan_red { |
label = "c108:red:lan"; |
gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; |
}; |
|
led_lan_green: lan_green { |
label = "c108:green:lan"; |
gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
en25q128@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>; |
}; |
}; |
}; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "i2c", "uartf", "spi refclk", "ephy"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/CS-QR10.dts |
@@ -0,0 +1,158 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "planex,cs-qr10", "ralink,mt7620a-soc"; |
model = "Planex CS-QR10"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "cs-qr10:red:power"; |
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
s1 { |
label = "reset"; |
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
s2 { |
label = "wps"; |
gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
&i2c { |
status = "okay"; |
}; |
|
&i2s { |
status = "okay"; |
pinctrl-names = "default"; |
pinctrl-0 = <&pcm_i2s_pins>; |
}; |
|
&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>; |
}; |
}; |
}; |
}; |
|
&pcm { |
status = "okay"; |
}; |
|
&gdma { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi refclk", "rgmii1"; |
ralink,function = "gpio"; |
}; |
wdt { |
ralink,group = "wdt"; |
ralink,function = "wdt refclk"; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "llllw"; |
}; |
|
&gsw { |
ralink,port4 = "ephy"; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/CY-SWR1100.dts |
@@ -0,0 +1,152 @@ |
/dts-v1/; |
|
#include "rt3883.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "samsung,cy-swr1100", "ralink,rt3883-soc"; |
model = "Samsung CY-SWR1100"; |
|
aliases { |
led-boot = &led_wps; |
led-failsafe = &led_wps; |
}; |
|
nor-flash@1c000000 { |
compatible = "cfi-flash"; |
reg = <0x1c000000 0x800000>; |
bank-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "uboot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "uboot-env"; |
reg = <0x30000 0x4000>; |
read-only; |
}; |
|
factory: partition@34000 { |
label = "factory"; |
reg = <0x34000 0x4000>; |
read-only; |
}; |
|
partition@38000 { |
label = "nvram"; |
reg = <0x38000 0x8000>; |
read-only; |
}; |
|
partition@40000 { |
label = "devdata"; |
reg = <0x40000 0x10000>; |
}; |
|
partition@50000 { |
compatible = "seama"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
|
rtl8367 { |
compatible = "realtek,rtl8367"; |
gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
realtek,extif0 = <1 0 1 1 1 1 1 1 2>; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <100>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_wps: wps { |
label = "cy-swr1100:blue:wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "cy-swr1100:blue:usb"; |
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "spi"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
port@0 { |
mediatek,fixed-link = <1000 1 1 1>; |
phy-mode = "rgmii"; |
}; |
}; |
|
&pci { |
status = "okay"; |
}; |
|
&pci1 { |
status = "okay"; |
|
wifi@0,0 { |
compatible = "pci0,0"; |
reg = <0x10000 0 0 0 0>; |
ralink,5ghz = <0>; |
ralink,mtd-eeprom = <&factory 0x2000>; |
}; |
}; |
|
&wmac { |
status = "okay"; |
ralink,2ghz = <0>; |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/CreativeBox-v1.dts |
@@ -0,0 +1,173 @@ |
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "xzwifi,creativebox-v1", "mediatek,mt7621-soc"; |
model = "CreativeBox v1"; |
|
aliases { |
led-boot = &led_sys; |
led-failsafe = &led_sys; |
led-running = &led_sys; |
led-upgrade = &led_sys; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x1C000000>, |
<0x20000000 0x4000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
power { |
label = "creativebox-v1:blue:power"; |
gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; |
default-state = "on"; |
}; |
|
led_sys: sys { |
label = "creativebox-v1:blue:sys"; |
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; |
}; |
|
internet { |
label = "creativebox-v1:blue:internet"; |
gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; |
}; |
|
wlan2g { |
label = "creativebox-v1:blue:wlan2g"; |
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; |
linux,default-trigger = "phy0tpt"; |
}; |
|
wlan5g { |
label = "creativebox-v1:blue:wlan5g"; |
gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; |
linux,default-trigger = "phy1tpt"; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
power_usb2 { |
gpio-export,name = "power_usb2"; |
gpio-export,output = <1>; |
gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>; |
}; |
|
power_usb3 { |
gpio-export,name = "power_usb3"; |
gpio-export,output = <1>; |
gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>; |
}; |
|
power_sata { |
gpio-export,name = "power_sata"; |
gpio-export,output = <1>; |
gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
flash@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 0x1fb0000>; |
}; |
}; |
}; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
wifi@0,0 { |
compatible = "pci1400,7603"; |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
}; |
}; |
|
&pcie1 { |
wifi@0,0 { |
compatible = "pci14c3,7662"; |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "wdt", "rgmii2"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/D105.dts |
@@ -0,0 +1,107 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "huawei,d105", "ralink,rt3050-soc"; |
model = "Huawei D105"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "d105:red:power"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "d105:green:usb"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
trigger-sources = <&otg_port1>; |
linux,default-trigger = "usbport"; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/D240.dts |
@@ -0,0 +1,206 @@ |
/* |
* BSD LICENSE |
* |
* Copyright(c) 2017 Kristian Evensen <kristian.evensen@gmail.com>. |
* 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 "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "sanlinking,d240", "ralink,mt7620a-soc"; |
model = "Sanlinking Technologies D240"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
gpio-export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
power_mpcie2 { |
gpio-export,name = "power_mpcie2"; |
gpio-export,output = <1>; |
gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; |
}; |
|
power_mpcie1 { |
gpio-export,name = "power_mpcie1"; |
gpio-export,output = <1>; |
gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "d240:blue:power"; |
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; |
}; |
|
usb { |
label = "d240:blue:usb"; |
gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
air { |
label = "d240:blue:wifi"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
en25q128@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>; |
}; |
}; |
}; |
}; |
|
&sdhci { |
status = "okay"; |
/* the pins function is already set during pinmux driver load */ |
/delete-property/ pinctrl-0; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "wllll"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa"; |
ralink,function = "gpio"; |
}; |
|
/* |
* The sd function of the nd_sd group configures two of the |
* groups pins as gpios. The pins are used as PCIe reset/power. |
* Due to the driver load order, the pins are configured way to |
* late if triggered by the sd-card driver. |
* To not introduce another kind of driver load order |
* dependency and configure the pins as early as possible, |
* means during pinmux driver load. |
*/ |
gpio_sd { |
ralink,group = "nd_sd"; |
ralink,function = "sd"; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DAP-1350.dts |
@@ -0,0 +1,138 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dap-1350", "ralink,rt3052-soc"; |
model = "D-Link DAP-1350"; |
|
aliases { |
led-boot = &led_power_blue; |
led-failsafe = &led_power_blue; |
led-running = &led_power_blue; |
led-upgrade = &led_power_blue; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
devdata: partition@30000 { |
label = "devdata"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
partition@40000 { |
label = "devconf"; |
reg = <0x40000 0x30000>; |
read-only; |
}; |
|
partition@70000 { |
label = "devlang"; |
reg = <0x70000 0x40000>; |
read-only; |
}; |
|
partition@b0000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0xb0000 0x750000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power_blue: power { |
label = "dap-1350:blue:power"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
power2 { |
label = "dap-1350:red:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "dap-1350:blue:wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
rt { |
label = "rt"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
|
ap { |
label = "ap"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_1>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&devdata 0x2e>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&devdata 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DAP-1522-A1.dts |
@@ -0,0 +1,149 @@ |
/dts-v1/; |
|
#include "rt2880.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dap-1522-a1", "ralink,rt2880-soc"; |
model = "D-Link DAP-1522 A1"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
cfi@bc400000 { |
compatible = "cfi-flash"; |
reg = <0xbc400000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "uboot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
factory: partition@30000 { |
label = "factory"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
partition@40000 { |
compatible = "wrg"; |
label = "firmware"; |
reg = <0x40000 0x3a0000>; |
}; |
}; |
}; |
|
rtl8366s { |
compatible = "realtek,rtl8366s"; |
gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <100>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio2 16 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
ap { |
label = "ap"; |
gpios = <&gpio2 13 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
|
bridge { |
label = "bridge"; |
gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_1>; |
linux,input-type = <EV_SW>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wps { |
label = "dap-1522-a1:blue:wps"; |
gpios = <&gpio2 17 GPIO_ACTIVE_LOW>; |
}; |
|
ap { |
label = "dap-1522-a1:blue:ap"; |
gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; |
}; |
|
sta { |
label = "dap-1522-a1:red:sta"; |
gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; |
}; |
|
led_status: status { |
label = "dap-1522-a1:blue:status"; |
gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartlite", "pci"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
status = "okay"; |
mtd-mac-address = <&factory 0x2004>; |
|
port@0 { |
mediatek,fixed-link = <1000 1 1 1>; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy0: ethernet-phy@0 { |
phy-mode = "mii"; |
reg = <0>; |
}; |
}; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0x2000>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DB-WRT01.dts |
@@ -0,0 +1,106 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "planex,db-wrt01", "ralink,mt7620a-soc"; |
model = "Planex DB-WRT01"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "db-wrt01:orange:power"; |
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
s1 { |
label = "wps"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "spi refclk", "rgmii1"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "llllw"; |
}; |
|
&gsw { |
mediatek,port4 = "ephy"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DCH-M225.dts |
@@ -0,0 +1,191 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dch-m225", "ralink,mt7620a-soc"; |
model = "D-Link DCH-M225"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <100>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "dch-m225:green:power"; |
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
default-state = "on"; |
}; |
|
status { |
label = "dch-m225:red:status"; |
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
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,hp-det-gpio = <&gpio0 14 GPIO_ACTIVE_LOW>; |
|
simple-audio-card,cpu { |
sound-dai = <&i2s>; |
}; |
|
dailink0_master: simple-audio-card,codec { |
sound-dai = <&codec>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&i2c { |
status = "okay"; |
|
codec: wm8960@1a { |
#sound-dai-cells = <0>; |
compatible = "wlf,wm8960"; |
reg = <0x1a>; |
|
wlf,shared-lrclk; |
}; |
}; |
|
&i2s { |
#sound-dai-cells = <0>; |
status = "okay"; |
pinctrl-names = "default"; |
pinctrl-0 = <&mdio_refclk_pins>; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <80000000>; |
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 0x4000>; |
read-only; |
}; |
|
factory: partition@34000 { |
label = "factory"; |
reg = <0x34000 0x4000>; |
read-only; |
}; |
|
nvram: partition@38000 { |
label = "nvram"; |
reg = <0x38000 0x8000>; |
read-only; |
}; |
|
partition@40000 { |
label = "devconf"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
label = "upgrade_rec"; |
reg = <0x50000 0x100000>; |
read-only; |
}; |
|
partition@150000 { |
compatible = "seama"; |
label = "firmware"; |
reg = <0x150000 0x6b0000>; |
}; |
}; |
}; |
}; |
|
&gdma { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "wdt", "rgmii1"; |
ralink,function = "gpio"; |
}; |
|
gpio_i2s { |
ralink,group = "uartf"; |
ralink,function = "gpio i2s"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&gsw { |
ralink,port4 = "ephy"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
pinctrl-names = "default"; |
pinctrl-0 = <&pa_pins>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DCS-930.dts |
@@ -0,0 +1,116 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dcs-930", "ralink,rt3050-soc"; |
model = "D-Link DCS-930"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x400000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wifi { |
label = "dcs-930:red:alert"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
led_status: status { |
label = "dcs-930:green:status"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "dcs-930:blue:wps"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_1>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DCS-930L-B1.dts |
@@ -0,0 +1,118 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dcs-930l-b1", "ralink,rt5350-soc"; |
model = "D-Link DCS-930L B1"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "dcs-930l-b1:red:power"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "dcs-930l-b1:blue:wps"; |
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf", "led"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DIR-300-B1.dts |
@@ -0,0 +1,122 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dir-300-b1", "ralink,rt3050-soc"; |
model = "D-Link DIR-300 B1"; |
|
aliases { |
led-boot = &led_status_green; |
led-failsafe = &led_status_green; |
led-running = &led_status_green; |
led-upgrade = &led_status_green; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
devdata: partition@30000 { |
label = "devdata"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "devconf"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
status { |
label = "dir-300-b1:amber:status"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
led_status_green: status2 { |
label = "dir-300-b1:green:status"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wan { |
label = "dir-300-b1:amber:wan"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
wan2 { |
label = "dir-300-b1:green:wan"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "dir-300-b1:blue:wps"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&devdata 0x4004>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&devdata 0x4000>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DIR-300-B7.dts |
@@ -0,0 +1,113 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dir-300-b7", "ralink,rt5350-soc"; |
model = "D-Link DIR-300 B7"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_status: status { |
label = "dir-300-b7:green:status"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "dir-300-b7:blue:wps"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
mediatek,led_polarity = <0x17>; |
}; |
|
&wmac { |
status = "okay"; |
ralink,led-polarity = <1>; |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DIR-320-B1.dts |
@@ -0,0 +1,141 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dir-320-b1", "ralink,rt5350-soc"; |
model = "D-Link DIR-320 B1"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_status: status { |
label = "dir-320-b1:green:status"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "dir-320-b1:green:usb"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "dir-320-b1:green:wps"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb { |
gpio-export,name = "usb"; |
gpio-export,output = <1>; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
}; |
|
root_hub { |
gpio-export,name = "root_hub"; |
gpio-export,output = <1>; |
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
mediatek,led_polarity = <0x17>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DIR-600-B1.dts |
@@ -0,0 +1,122 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dir-600-b1", "ralink,rt3050-soc"; |
model = "D-Link DIR-600 B1"; |
|
aliases { |
led-boot = &led_status_green; |
led-failsafe = &led_status_green; |
led-running = &led_status_green; |
led-upgrade = &led_status_green; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
devdata: partition@30000 { |
label = "devdata"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "devconf"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
status { |
label = "dir-600-b1:amber:status"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
led_status_green: status2 { |
label = "dir-600-b1:green:status"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wan { |
label = "dir-600-b1:amber:wan"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
wan2 { |
label = "dir-600-b1:green:wan"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "dir-600-b1:blue:wps"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&devdata 0x4004>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&devdata 0x4000>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DIR-610-A1.dts |
@@ -0,0 +1,114 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dir-610-a1", "ralink,rt5350-soc"; |
model = "D-Link DIR-610 A1"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_status: status { |
label = "dir-610-a1:green:status"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "dir-610-a1:green:wps"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
devdata: partition@30000 { |
label = "devdata"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "seama"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&devdata 0x4004>; |
}; |
|
&esw { |
status = "okay"; |
mediatek,portmap = <0x2f>; |
mediatek,led_polarity = <0x17>; |
}; |
|
&wmac { |
status = "okay"; |
ralink,led-polarity = <1>; |
ralink,mtd-eeprom = <&devdata 0x4000>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DIR-615-D.dts |
@@ -0,0 +1,121 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dir-615-d1", "ralink,rt3050-soc"; |
model = "D-Link DIR-615 D"; |
|
aliases { |
led-boot = &led_status_green; |
led-failsafe = &led_status_green; |
led-running = &led_status_green; |
led-upgrade = &led_status_green; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
devdata: partition@30000 { |
label = "devdata"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
partition@40000 { |
label = "devconf"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
status { |
label = "dir-615-d:amber:status"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
led_status_green: status2 { |
label = "dir-615-d:green:status"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
default-state = "on"; |
}; |
|
wan { |
label = "dir-615-d:amber:wan"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
wan2 { |
label = "dir-615-d:green:wan"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "dir-615-d:blue:wps"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&devdata 0x4000>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
|
/branches/18.06.1/target/linux/ramips/dts/DIR-615-H1.dts |
@@ -0,0 +1,128 @@ |
/dts-v1/; |
|
#include "rt3352.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dir-615-h1", "ralink,rt3352-soc"; |
model = "D-Link DIR-615 H1"; |
|
aliases { |
led-boot = &led_status_green; |
led-failsafe = &led_status_green; |
led-running = &led_status_green; |
led-upgrade = &led_status_green; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
status { |
label = "dir-615-h1:amber:status"; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
}; |
|
led_status_green: status2 { |
label = "dir-615-h1:green:status"; |
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; |
default-state = "on"; |
}; |
|
wan { |
label = "dir-615-h1:amber:wan"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
wan2 { |
label = "dir-615-h1:green:wan"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "dir-615-h1:blue:wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii_pins &mdio_pins>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DIR-620-A1.dts |
@@ -0,0 +1,131 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dir-620-a1", "ralink,rt3050-soc"; |
model = "D-Link DIR-620 A1"; |
|
aliases { |
led-boot = &led_status_green; |
led-failsafe = &led_status_green; |
led-running = &led_status_green; |
led-upgrade = &led_status_green; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
status { |
label = "dir-620-a1:amber:status"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
led_status_green: status2 { |
label = "dir-620-a1:green:status"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wan { |
label = "dir-620-a1:amber:wan"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
wan2 { |
label = "dir-620-a1:green:wan"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "dir-620-a1:blue:wps"; |
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
}; |
|
wps2 { |
label = "dir-620-a1:amber:wps"; |
gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DIR-620-D1.dts |
@@ -0,0 +1,114 @@ |
/dts-v1/; |
|
#include "rt3352.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dir-620-d1", "ralink,rt3352-soc"; |
model = "D-Link DIR-620 D1"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_status: status { |
label = "dir-620-d1:green:status"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wifi { |
label = "dir-620-d1:green:wifi"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset_wps { |
label = "reset_wps"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii_pins &mdio_pins>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DIR-645.dts |
@@ -0,0 +1,152 @@ |
/dts-v1/; |
|
#include "rt3883.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dir-645", "ralink,rt3883-soc"; |
model = "D-Link DIR-645"; |
|
aliases { |
led-boot = &led_wps; |
led-failsafe = &led_wps; |
led-running = &led_wps; |
led-upgrade = &led_wps; |
}; |
|
rtl8367b { |
compatible = "realtek,rtl8367b"; |
gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
realtek,extif1 = <1 0 1 1 1 1 1 1 2>; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <100>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
inet { |
label = "dir-645:green:inet"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
}; |
|
led_wps: wps { |
label = "dir-645:green:wps"; |
gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb { |
gpio-export,name = "usb"; |
gpio-export,output = <1>; |
gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <25000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "uboot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "uboot-env"; |
reg = <0x30000 0x4000>; |
read-only; |
}; |
|
factory: partition@34000 { |
label = "factory"; |
reg = <0x34000 0x4000>; |
read-only; |
}; |
|
partition@38000 { |
label = "nvram"; |
reg = <0x38000 0x8000>; |
read-only; |
}; |
|
partition@40000 { |
label = "devdata"; |
reg = <0x40000 0x10000>; |
}; |
|
partition@50000 { |
compatible = "seama"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
|
port@0 { |
mediatek,fixed-link = <1000 1 1 0>; |
}; |
}; |
|
&wmac { |
ralink,5ghz = <0>; |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DIR-810L.dts |
@@ -0,0 +1,154 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dir-810l", "ralink,mt7620a-soc"; |
model = "D-Link DIR-810L"; |
|
aliases { |
led-boot = &led_power_green; |
led-failsafe = &led_power_green; |
led-running = &led_power_green; |
led-upgrade = &led_power_green; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power_green: power { |
label = "dir-810l:green:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; |
}; |
|
wan { |
label = "dir-810l:orange:wan"; |
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
}; |
|
power2 { |
label = "dir-810l:orange:power"; |
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
factory5g: partition@50000 { |
label = "factory5g"; |
reg = <0x50000 0x10000>; |
read-only; |
}; |
|
partition@60000 { |
label = "Wolf_Config"; |
reg = <0x60000 0x10000>; |
read-only; |
}; |
|
partition@70000 { |
label = "MyDlink"; |
reg = <0x70000 0x80000>; |
read-only; |
}; |
|
partition@e0000 { |
label = "Jffs2"; |
reg = <0xe0000 0x80000>; |
read-only; |
}; |
|
partition@170000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x170000 0x690000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "mdio", "rgmii1", "i2c", "wled", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
mediatek,portmap = "llllw"; |
}; |
|
&gsw { |
mediatek,port4 = "ephy"; |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pcie0 { |
wifi@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DIR-860L-B1.dts |
@@ -0,0 +1,149 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dir-860l-b1", "mediatek,mt7621-soc"; |
model = "D-Link DIR-860L B1"; |
|
aliases { |
led-boot = &led_power_green; |
led-failsafe = &led_power_green; |
led-running = &led_power_green; |
led-upgrade = &led_power_green; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x8000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
power { |
label = "dir-860l-b1:orange:power"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
led_power_green: power2 { |
label = "dir-860l-b1:green:power"; |
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; |
}; |
|
net { |
label = "dir-860l-b1:orange:net"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
net2 { |
label = "dir-860l-b1:green:net"; |
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&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 0x4000>; |
read-only; |
}; |
|
radio: partition@34000 { |
label = "radio"; |
reg = <0x34000 0x4000>; |
read-only; |
}; |
|
factory: partition@38000 { |
label = "factory"; |
reg = <0x38000 0x8000>; |
read-only; |
}; |
|
partition@40000 { |
label = "defaults"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "seama"; |
label = "firmware"; |
reg = <0x50000 0xfb0000>; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&radio 0x2000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&radio 0>; |
ieee80211-freq-limit = <2400000 2500000>; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DUZUN-DM06.dts |
@@ -0,0 +1,145 @@ |
/dts-v1/; |
|
#include "mt7628an.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
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 = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
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>; |
}; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DWR-116-A1.dts |
@@ -0,0 +1,114 @@ |
/dts-v1/; |
|
#include "mt7620n.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dwr-116-a1", "ralink,mt7620n-soc"; |
model = "D-Link DWR-116 A1/A2"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_status: status { |
label = "dwr-116-a1:green:status"; |
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; |
}; |
|
wifi { |
label = "dwr-116-a1:green:wifi"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
flash@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <50000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "jboot"; |
reg = <0x0 0x10000>; |
read-only; |
}; |
|
partition@10000 { |
compatible = "amit,jimage"; |
label = "firmware"; |
reg = <0x10000 0x7e0000>; |
}; |
|
config: partition@7f0000 { |
label = "config"; |
reg = <0x7f0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "i2c", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mediatek,portmap = "llllw"; |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DWR-118-A1.dts |
@@ -0,0 +1,189 @@ |
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dwr-118-a1", "ralink,mt7620a-soc"; |
model = "D-Link DWR-118 A1"; |
|
aliases { |
led-boot = &led_internet; |
led-failsafe = &led_internet; |
led-upgrade = &led_internet; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wan { |
label = "dwr-118-a1:green:wan"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
|
led_internet: internet { |
label = "dwr-118-a1:green:internet"; |
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; |
}; |
|
lan { |
label = "dwr-118-a1:green:lan"; |
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; |
}; |
|
wlan2g { |
label = "dwr-118-a1:green:wlan2g"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "dwr-118-a1:green:usb"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb { |
gpio-export,name = "usb"; |
gpio-export,output = <0>; |
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
flash@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <80000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "jboot"; |
reg = <0x0 0x10000>; |
read-only; |
}; |
|
partition@10000 { |
compatible = "amit,jimage"; |
label = "firmware"; |
reg = <0x10000 0xfe0000>; |
}; |
|
config: partition@ff0000 { |
label = "config"; |
reg = <0xff0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "ephy", "uartf", "spi refclk", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
wifi@0,0 { |
reg = <0x0000 0 0 0 0>; |
mtd-mac-address = <&config 0xe496>; |
mtd-mac-address-increment = <(2)>; |
mediatek,mtd-eeprom = <&config 0xe083>; |
}; |
}; |
|
ðernet { |
status = "okay"; |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; |
|
port@4 { |
status = "okay"; |
phy-handle = <&phy4>; |
phy-mode = "rgmii"; |
}; |
|
port@5 { |
status = "okay"; |
phy-handle = <&phy5>; |
phy-mode = "rgmii"; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy4: ethernet-phy@4 { |
reg = <4>; |
phy-mode = "rgmii-rxid"; |
}; |
|
phy5: ethernet-phy@5 { |
reg = <5>; |
phy-mode = "rgmii-rxid"; |
}; |
}; |
}; |
|
&gsw { |
mediatek,port4 = "gmac"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DWR-118-A2.dts |
@@ -0,0 +1,181 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dwr-118-a2", "ralink,mt7620a-soc"; |
model = "D-Link DWR-118 A2"; |
|
aliases { |
led-boot = &led_internet; |
led-failsafe = &led_internet; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wan { |
label = "dwr-118-a2:green:wan"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
|
led_internet: internet { |
label = "dwr-118-a2:green:internet"; |
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; |
}; |
|
lan { |
label = "dwr-118-a2:green:lan"; |
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; |
}; |
|
wlan2g { |
label = "dwr-118-a2:green:wlan2g"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "dwr-118-a2:green:usb"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb { |
gpio-export,name = "usb"; |
gpio-export,output = <1>; |
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
flash@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <50000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "jboot"; |
reg = <0x0 0x10000>; |
read-only; |
}; |
|
partition@10000 { |
compatible = "amit,jimage"; |
label = "firmware"; |
reg = <0x10000 0xfe0000>; |
}; |
|
config: partition@ff0000 { |
label = "config"; |
reg = <0xff0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "ephy", "uartf", "spi refclk", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
wifi@0,0 { |
reg = <0x0000 0 0 0 0>; |
ieee80211-freq-limit = <5000000 6000000>; |
mtd-mac-address = <&config 0xe4a8>; |
mtd-mac-address-increment = <(2)>; |
|
led { |
led-sources = <2>; |
led-active-low; |
}; |
}; |
}; |
|
ðernet { |
status = "okay"; |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii1_pins &mdio_pins>; |
|
port@4 { |
status = "okay"; |
phy-handle = <&phy4>; |
phy-mode = "rgmii"; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy4: ethernet-phy@4 { |
reg = <4>; |
phy-mode = "rgmii"; |
}; |
}; |
}; |
|
&gsw { |
mediatek,port4 = "gmac"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DWR-512-B.dts |
@@ -0,0 +1,149 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dwr-512-b", "ralink,rt5350-soc"; |
model = "D-Link DWR-512 B"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
sms { |
label = "dwr-512-b:green:sms"; |
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; |
}; |
led_status: status { |
label = "dwr-512-b:green:status"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
2g { |
label = "dwr-512-b:green:2g"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
}; |
3g { |
label = "dwr-512-b:green:3g"; |
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; |
}; |
sstrengthr { |
label = "dwr-512-b:red:sigstrength"; |
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
}; |
sstrengthg { |
label = "dwr-512-b:green:sigstrength"; |
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
gpio-export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
slic_int { |
gpio-export,name = "slic_int"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
}; |
modem3g_enable { |
gpio-export,name = "modem3g_enable"; |
gpio-export,output = <1>; |
gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
flash@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <30000000>; |
m25p,fast-read; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "jboot"; |
reg = <0x0 0x10000>; |
read-only; |
}; |
|
partition@10000 { |
compatible = "amit,jimage"; |
label = "firmware"; |
reg = <0x10000 0x7e0000>; |
}; |
|
config: partition@7f0000 { |
label = "config"; |
reg = <0x7f0000 0x10000>; |
}; |
}; |
}; |
}; |
|
&spi1 { |
status = "okay"; |
|
spidev@0 { |
#address-cells = <1>; |
#size-cells = <1>; |
compatible = "siliconlabs,si3210"; |
|
reg = <0>; |
spi-max-frequency = <1000000>; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
ðernet { |
mtd-mac-address = <&config 0xe07e>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&config 0xe08a>; |
ralink,led-polarity = <1>; |
mtd-mac-address = <&config 0xe07e>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DWR-921-C1.dts |
@@ -0,0 +1,152 @@ |
/dts-v1/; |
|
#include "mt7620n.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dwr-921-c1", "ralink,mt7620n-soc"; |
model = "D-Link DWR-921 C1"; |
|
aliases { |
led-boot = &led_sstrenghg; |
led-failsafe = &led_sstrenghg; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
sms { |
label = "dwr-921-c1:green:sms"; |
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
}; |
|
lan { |
label = "dwr-921-c1:green:lan"; |
gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; |
}; |
|
led_sstrenghg: sstrengthg { |
label = "dwr-921-c1:green:sigstrength"; |
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; |
}; |
|
sstrengthr { |
label = "dwr-921-c1:red:sigstrength"; |
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; |
}; |
|
4g { |
label = "dwr-921-c1:green:4g"; |
gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; |
}; |
|
3g { |
label = "dwr-921-c1:green:3g"; |
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; |
}; |
|
wifi { |
label = "dwr-921-c1:green:wifi"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
lte_modem_enable { |
gpio-export,name = "lte_modem_enable"; |
gpio-export,output = <1>; |
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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 = "jboot"; |
reg = <0x0 0x10000>; |
read-only; |
}; |
|
partition@10000 { |
compatible = "amit,jimage"; |
label = "firmware"; |
reg = <0x10000 0xfe0000>; |
}; |
|
config: partition@ff0000 { |
label = "config"; |
reg = <0xff0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
port@4 { |
status = "okay"; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "spi refclk", "i2c", "ephy", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/DWR-922-E2.dts |
@@ -0,0 +1,154 @@ |
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
/dts-v1/; |
|
#include "mt7620n.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dlink,dwr-922-e2", "ralink,mt7620n-soc"; |
model = "D-Link DWR-922 E2"; |
|
aliases { |
led-boot = &sstrengthg; |
led-failsafe = &sstrengthg; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
led-boot = &sstrengthg; |
|
sms { |
label = "dwr-922-e2:green:sms"; |
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
}; |
|
lan { |
label = "dwr-922-e2:green:lan"; |
gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; |
}; |
|
sstrengthg: sstrengthg { |
label = "dwr-922-e2:green:sigstrength"; |
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; |
}; |
|
sstrengthr { |
label = "dwr-922-e2:red:sigstrength"; |
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; |
}; |
|
4g { |
label = "dwr-922-e2:green:4g"; |
gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; |
}; |
|
3g { |
label = "dwr-922-e2:green:3g"; |
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; |
}; |
|
wifi { |
label = "dwr-922-e2:green:wifi"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
lte_modem_enable { |
gpio-export,name = "lte_modem_enable"; |
gpio-export,output = <1>; |
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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 = "jboot"; |
reg = <0x0 0x10000>; |
read-only; |
}; |
|
partition@10000 { |
compatible = "amit,jimage"; |
label = "firmware"; |
reg = <0x10000 0xfe0000>; |
}; |
|
config: partition@ff0000 { |
label = "config"; |
reg = <0xff0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
port@4 { |
status = "okay"; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "spi refclk", "i2c", "ephy", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/E1700.dts |
@@ -0,0 +1,163 @@ |
/* |
* Device Tree file for the Linksys E1700 |
* |
* Copyright (C) 2014 Imre Kaloz <kaloz@openwrt.org> |
* |
* This file is licensed under the terms of the GNU General Public |
* License version 2. This program is licensed "as is" without any |
* warranty of any kind, whether express or implied. |
*/ |
|
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "linksys,e1700", "ralink,mt7620a-soc"; |
model = "Linksys E1700"; |
|
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 = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "e1700:green:power"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
}; |
|
wan { |
label = "e1700:green:wps"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "config"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
status = "okay"; |
mtd-mac-address = <&factory 0x28>; |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; |
|
port@5 { |
status = "okay"; |
mediatek,fixed-link = <1000 1 1 1>; |
phy-mode = "rgmii"; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy0: ethernet-phy@0 { |
reg = <0>; |
phy-mode = "rgmii"; |
}; |
|
phy1: ethernet-phy@1 { |
reg = <1>; |
phy-mode = "rgmii"; |
}; |
|
phy2: ethernet-phy@2 { |
reg = <2>; |
phy-mode = "rgmii"; |
}; |
|
phy3: ethernet-phy@3 { |
reg = <3>; |
phy-mode = "rgmii"; |
}; |
|
phy4: ethernet-phy@4 { |
reg = <4>; |
phy-mode = "rgmii"; |
}; |
|
phy1f: ethernet-phy@1f { |
reg = <0x1f>; |
phy-mode = "rgmii"; |
}; |
}; |
}; |
|
&gsw { |
mediatek,port4 = "gmac"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ESR-9753.dts |
@@ -0,0 +1,107 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "engenius,esr-9753", "ralink,rt3052-soc"; |
model = "Senao / EnGenius ESR-9753"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "esr-9753:orange:power"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "esr-9753:orange:wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x3e>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/EW1200.dts |
@@ -0,0 +1,137 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "afoundry,ew1200", "mediatek,mt7621-soc"; |
model = "EW1200"; |
|
aliases { |
led-boot = &led_run; |
led-failsafe = &led_run; |
led-running = &led_run; |
led-upgrade = &led_run; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x8000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
palmbus: palmbus@1E000000 { |
i2c@900 { |
status = "okay"; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_run: run { |
label = "ew1200:green:run"; |
gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>; |
}; |
|
usb { |
label = "ew1200:green:usb"; |
gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; |
trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; |
linux,default-trigger = "usbport"; |
}; |
}; |
}; |
|
&sdhci { |
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 0xfb0000>; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
ieee80211-freq-limit = <2400000 2500000>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "wdt", "rgmii2", "jtag", "mdio"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/EX2700.dts |
@@ -0,0 +1,155 @@ |
/* |
* Device Tree file for the Netgear EX2700 |
* |
* Copyright (C) 2016 Joseph C. Lehner <joseph.c.lehner@gmail.com> |
* |
* This file is licensed under the terms of the GNU General Public |
* License version 2. This program is licensed "as is" without any |
* warranty of any kind, whether express or implied. |
*/ |
|
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "netgear,ex2700", "ralink,mt7620a-soc"; |
model = "Netgear EX2700"; |
|
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,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power_green: power_g { |
label = "ex2700:green:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
default-state = "on"; |
}; |
|
power_r { |
label = "ex2700:red:power"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
device_g { |
label = "ex2700:green:device"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
device_r { |
label = "ex2700:red:device"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
}; |
|
router_g { |
label = "ex2700:green:router"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
router_r { |
label = "ex2700:red:router"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "ex2700:green:wps"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
partition@40000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x40000 0x3b0000>; |
}; |
|
art: partition@3f0000 { |
label = "art"; |
reg = <0x3f0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&art 0x0>; |
}; |
|
&wmac { |
mtd-mac-address = <&art 0x6>; |
ralink,mtd-eeprom = <&art 0x1000>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "i2c", "uartf", "spi refclk"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/EX3700.dts |
@@ -0,0 +1,170 @@ |
/* This file is released into the public domain */ |
|
/dts-v1/; |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
#include "mt7620a.dtsi" |
|
/ { |
compatible = "netgear,ex3700", "ralink,mt7620a-soc"; |
model = "Netgear EX3700/EX3800"; |
|
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,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power_green: power_g { |
label = "ex3700:green:power"; |
gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; |
default-state = "on"; |
}; |
|
power_a { |
label = "ex3700:amber:power"; |
gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; |
}; |
|
router_g { |
label = "ex3700:green:router"; |
gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; |
}; |
|
router_r { |
label = "ex3700:red:router"; |
gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; |
}; |
|
device_g { |
label = "ex3700:green:device"; |
gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; |
}; |
|
device_r { |
label = "ex3700:red:device"; |
gpios = <&gpio2 21 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "ex3700:green:wps"; |
gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio2 26 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio2 { |
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 = "config"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x790000>; |
}; |
|
partition@7e0000 { |
label = "board_data"; |
reg = <0x7e0000 0x10000>; |
read-only; |
}; |
|
partition@7f0000 { |
label = "nvram"; |
reg = <0x7f0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0 >; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0x0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "i2c", "rgmii2", "spi refclk"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/F5D8235_V1.dts |
@@ -0,0 +1,245 @@ |
/dts-v1/; |
|
#include "rt2880.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
#address-cells = <1>; |
#size-cells = <1>; |
compatible = "belkin,f5d8235-v1", "ralink,rt2880-soc"; |
model = "Belkin F5D8235 v1"; |
|
aliases { |
led-boot = &led_wired_blue; |
led-failsafe = &led_wired_blue; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0xbc400000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "uboot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "uboot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
|
rtl8366s { |
compatible = "realtek,rtl8366s"; |
gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
|
realtek,initvals = < |
0x0242 0x02BF |
0x0245 0x02BF |
0x0248 0x02BF |
0x024B 0x02BF |
0x024E 0x02BF |
0x0251 0x02BF |
0x0254 0x0A3F |
0x0256 0x0A3F |
0x0258 0x0A3F |
0x025A 0x0A3F |
0x025C 0x0A3F |
0x025E 0x0A3F |
0x0263 0x007C |
0x0100 0x0004 |
0xBE5B 0x3500 |
0x800E 0x200F |
0xBE1D 0x0F00 |
0x8001 0x5011 |
0x800A 0xA2F4 |
0x800B 0x17A3 |
0xBE4B 0x17A3 |
0xBE41 0x5011 |
0xBE17 0x2100 |
0x8000 0x8304 |
0xBE40 0x8304 |
0xBE4A 0xA2F4 |
0x800C 0xA8D5 |
0x8014 0x5500 |
0x8015 0x0004 |
0xBE4C 0xA8D5 |
0xBE59 0x0008 |
0xBE09 0x0E00 |
0xBE36 0x1036 |
0xBE37 0x1036 |
0x800D 0x00FF |
0xBE4D 0x00FF |
>; |
|
realtek,green-ethernet-features; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <100>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
internet { |
label = "f5d8235-v1:blue:internet"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
}; |
|
internet2 { |
label = "f5d8235-v1:amber:internet"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
}; |
|
modem { |
label = "f5d8235-v1:blue:modem"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
modem2 { |
label = "f5d8235-v1:amber:modem"; |
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; |
}; |
|
router { |
label = "f5d8235-v1:blue:router"; |
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; |
}; |
|
storage { |
label = "f5d8235-v1:blue:storage"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
storage2 { |
label = "f5d8235-v1:amber:storage"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
security { |
label = "f5d8235-v1:blue:security"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
}; |
|
security2 { |
label = "f5d8235-v1:amber:security"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
led_wired_blue: wired { |
label = "f5d8235-v1:blue:wired"; |
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; |
}; |
|
wired2 { |
label = "f5d8235-v1:amber:wired"; |
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
}; |
|
wireless { |
label = "f5d8235-v1:blue:wireless"; |
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
}; |
|
wireless2 { |
label = "f5d8235-v1:amber:wireless"; |
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "mdio", "uartlite"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
status = "okay"; |
mtd-mac-address = <&factory 0x4>; |
|
port@0 { |
mediatek,fixed-link = <1000 1 1 1>; |
}; |
}; |
|
&pci { |
status = "okay"; |
|
usb@11,0 { |
#address-cells = <1>; |
#size-cells = <0>; |
compatible = "pci1033,0035"; |
reg = <0x8800 0 0 0 0>; |
|
ohci_port1: port@1 { |
reg = <1>; |
#trigger-source-cells = <0>; |
}; |
}; |
|
usb@11,1 { |
#address-cells = <1>; |
#size-cells = <0>; |
compatible = "pci1033,00e0"; |
reg = <0x8900 0 0 0 0>; |
|
ehci_port1: port@1 { |
reg = <1>; |
#trigger-source-cells = <0>; |
}; |
}; |
}; |
|
&wmac { |
status = "okay"; |
ralink,mtd-eeprom = <&factory 0x0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/F5D8235_V2.dts |
@@ -0,0 +1,146 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "belkin,f5d8235-v2", "ralink,rt3052-soc"; |
model = "Belkin F5D8235 v2"; |
|
aliases { |
led-boot = &led_router; |
led-failsafe = &led_router; |
led-running = &led_router; |
led-upgrade = &led_router; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
uboot: partition@0 { |
label = "uboot"; |
reg = <0x0 0x50000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x790000>; |
}; |
|
partition@7e0000 { |
label = "nvram"; |
reg = <0x7e0000 0x10000>; |
}; |
|
factory: partition@7f0000 { |
label = "factory"; |
reg = <0x7f0000 0x10000>; |
}; |
}; |
}; |
|
rtl8366rb { |
compatible = "realtek,rtl8366rb"; |
gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
internet { |
label = "f5d8235-v2:blue:internet"; |
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; |
}; |
|
internet2 { |
label = "f5d8235-v2:amber:internet"; |
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
}; |
|
modem { |
label = "f5d8235-v2:blue:modem"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
modem2 { |
label = "f5d8235-v2:amber:modem"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
led_router: router { |
label = "f5d8235-v2:blue:router"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
storage { |
label = "f5d8235-v2:blue:storage"; |
gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; |
trigger-sources = <&otg_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
storage2 { |
label = "f5d8235-v2:amber:storage"; |
gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; |
}; |
|
security { |
label = "f5d8235-v2:blue:security"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
security2 { |
label = "f5d8235-v2:amber:security"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&uboot 0x40004>; |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii_pins>; |
}; |
|
&esw { |
ralink,rgmii = <1>; |
mediatek,portmap = <0x3f>; |
ralink,fct2 = <0x0002500c>; |
/* |
* ext phy base addr 31, rx/tx clock skew 0, |
* turbo mii off, rgmi 3.3v off, port 5 polling off |
* port5: enabled, gige, full-duplex, rx/tx-flow-control |
* port6: enabled, gige, full-duplex, rx/tx-flow-control |
*/ |
ralink,fpa2 = <0x1f003fff>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&uboot 0x40000>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/F7C027.dts |
@@ -0,0 +1,143 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "belkin,f7c027", "ralink,rt5350-soc"; |
model = "Belkin F7C027"; |
|
aliases { |
led-boot = &led_status_orange; |
led-failsafe = &led_status_orange; |
led-running = &led_status_orange; |
led-upgrade = &led_status_orange; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
status { |
label = "f7c027:blue:status"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
power { |
label = "f7c027:blue:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
led_status_orange: orange { |
label = "f7c027:orange:status"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
relay { |
label = "f7c027:device:relay"; |
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
top { |
label = "restore"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
power { |
label = "power"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
|
sensor { |
label = "sensor"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x770000>; |
}; |
|
partition@7c0000 { |
label = "firmware2"; |
reg = <0x7c0000 0x770000>; |
}; |
|
partition@f30000 { |
label = "belkin_settings"; |
reg = <0xf30000 0xa0000>; |
}; |
|
partition@fd0000 { |
label = "unknown"; |
reg = <0xfd0000 0x10000>; |
}; |
|
partition@fe0000 { |
label = "nvram"; |
reg = <0xfe0000 0x10000>; |
}; |
|
partition@ff0000 { |
label = "user_factory"; |
reg = <0xff0000 0x10000>; |
}; |
}; |
}; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/FIREWRT.dts |
@@ -0,0 +1,130 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "firefly,firewrt", "mediatek,mt7621-soc"; |
model = "Firefly FireWRT"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "firewrt:green:power"; |
gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
power { |
label = "power"; |
gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_POWER>; |
}; |
}; |
}; |
|
&sdhci { |
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 0xfb0000>; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
ieee80211-freq-limit = <2400000 2500000>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "wdt", "rgmii2"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/FONERA20N.dts |
@@ -0,0 +1,157 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "fon,fonera20n", "ralink,rt3052-soc"; |
model = "La Fonera 2.0N"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wifi { |
label = "fonera20n:orange:wifi"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
led_power: power { |
label = "fonera20n:green:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "fonera20n:orange:usb"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
trigger-sources = <&otg_port1>; |
linux,default-trigger = "usbport"; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
switch { |
label = "switch"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
linux,input-type = <EV_SW>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&esw { |
#address-cells = <1>; |
#size-cells = <0>; |
|
mediatek,portmap = <0x2f>; |
|
port@0 { |
compatible = "swconfig,port"; |
reg = <0>; |
swconfig,segment = "lan"; |
swconfig,portmap = <0 4>; |
}; |
|
port@1 { |
compatible = "swconfig,port"; |
reg = <1>; |
swconfig,segment = "lan"; |
swconfig,portmap = <1 3>; |
}; |
|
port@2 { |
compatible = "swconfig,port"; |
reg = <2>; |
swconfig,segment = "lan"; |
swconfig,portmap = <2 2>; |
}; |
|
port@3 { |
compatible = "swconfig,port"; |
reg = <3>; |
swconfig,segment = "lan"; |
swconfig,portmap = <3 1>; |
}; |
|
port@4 { |
compatible = "swconfig,port"; |
reg = <4>; |
swconfig,segment = "wan"; |
swconfig,portmap = <4 0>; |
}; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/FREESTATION5.dts |
@@ -0,0 +1,114 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "arcwireless,freestation5", "ralink,rt3050-soc"; |
model = "ARC FreeStation5"; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
|
gpio-export { |
compatible = "gpio-export"; |
|
/* |
* Used to enable power-over-ethernet passthrough from port0 to port1. |
* Disable passthrough by default to prevent accidental equipment damage. |
*/ |
poe { |
gpio-export,name = "poe-passthrough"; |
gpio-export,output = <1>; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
/* |
* The following leds are defined in the ArcOS firmware, but reportedly |
* not present in the Freestation5 device. |
*/ |
wifi { |
label = "freestation5:unknown:wifi"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
powerg { |
label = "freestation5:unknown:powerg"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "freestation5:unknown:usb"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x01>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/GB-PC1.dts |
@@ -0,0 +1,123 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc"; |
model = "GB-PC1"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
system { |
label = "gb-pc1:green:system"; |
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
}; |
|
led_status: status { |
label = "gb-pc1:green:status"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
lan1 { |
label = "gb-pc1:green:lan1"; |
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; |
}; |
|
lan2 { |
label = "gb-pc1:green:lan2"; |
gpios = <&gpio0 25 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x1fb0000>; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "jtag", "rgmii2", "uart3", "wdt"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/GB-PC2.dts |
@@ -0,0 +1,134 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "gnubee,gb-pc2", "mediatek,mt7621-soc"; |
model = "GB-PC2"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
system { |
label = "gb-pc2:green:system"; |
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
}; |
|
led_status: status { |
label = "gb-pc2:green:status"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
lan1 { |
label = "gb-pc2:green:lan1"; |
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; |
}; |
|
lan2 { |
label = "gb-pc2:green:lan2"; |
gpios = <&gpio0 25 GPIO_ACTIVE_LOW>; |
}; |
|
lan3-yellow { |
label = "gb-pc2:yellow:lan3"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
lan3-green { |
label = "gb-pc2:green:lan3"; |
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x1fb0000>; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "jtag", "rgmii2", "uart3", "wdt"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
/branches/18.06.1/target/linux/ramips/dts/GHL-R-001.dts |
@@ -0,0 +1,130 @@ |
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "gehua,ghl-r-001", "mediatek,mt7621-soc"; |
model = "GeHua GHL-R-001"; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
internet { |
label = "ghl-r-001:blue:internet"; |
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "ghl-r-001:blue:usb"; |
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; |
trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; |
linux,default-trigger = "usbport"; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&uartlite3 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
flash@0 { |
compatible = "mx25l25635f", "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <25000000>; |
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 0x1fb0000>; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
wifi@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
}; |
}; |
|
&pcie1 { |
wifi@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
|
led { |
led-sources = <2>; |
led-active-low; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "jtag", "wdt"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/GL-MT300A.dts |
@@ -0,0 +1,151 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "glinet,gl-mt300a", "ralink,mt7620a-soc"; |
model = "GL-MT300A"; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wan { |
label = "gl-mt300a:wan"; |
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; |
}; |
|
lan { |
label = "gl-mt300a:lan"; |
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; |
}; |
|
wlan { |
label = "gl-mt300a:wlan"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "gl-mt300a:usb"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
reset { |
label = "reset"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
BTN_0 { |
label = "BTN_0"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
|
BTN_1 { |
label = "BTN_1"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_1>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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>; |
}; |
|
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 0xf80000>; |
}; |
|
partition@ff0000 { |
label = "art"; |
reg = <0xff0000 0x10000>; |
}; |
}; |
}; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4000>; |
mediatek,portmap = "wllll"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "wled","ephy","uartf","i2c"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/GL-MT300N-V2.dts |
@@ -0,0 +1,151 @@ |
/dts-v1/; |
|
#include "mt7628an.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/{ |
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 = <KEY_RESTART>; |
}; |
|
BTN_0 { |
label = "BTN_0"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
|
BTN_1 { |
label = "BTN_1"; |
gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_1>; |
}; |
}; |
|
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"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/GL-MT300N.dts |
@@ -0,0 +1,142 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "glinet,gl-mt300n", "ralink,mt7620a-soc"; |
model = "GL-MT300N"; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wan { |
label = "gl-mt300n:wan"; |
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; |
}; |
|
lan { |
label = "gl-mt300n:lan"; |
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; |
}; |
|
wlan { |
label = "gl-mt300n:wlan"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
BTN_0 { |
label = "BTN_0"; |
gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
|
BTN_1 { |
label = "BTN_1"; |
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_1>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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>; |
}; |
|
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 0xf80000>; |
}; |
|
partition@ff0000 { |
label = "art"; |
reg = <0xff0000 0x10000>; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4000>; |
mediatek,portmap = "wllll"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "wled","ephy","i2c"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/GL-MT750.dts |
@@ -0,0 +1,157 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "glinet,gl-mt750", "ralink,mt7620a-soc"; |
model = "GL-MT750"; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wan { |
label = "gl-mt750:wan"; |
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; |
}; |
|
lan { |
label = "gl-mt750:lan"; |
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; |
}; |
|
wlan { |
label = "gl-mt750:wlan"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
reset { |
label = "reset"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
BTN_0 { |
label = "BTN_0"; |
gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
|
BTN_1 { |
label = "BTN_1"; |
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_1>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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>; |
}; |
|
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 0xf80000>; |
}; |
|
partition@ff0000 { |
label = "art"; |
reg = <0xff0000 0x10000>; |
}; |
}; |
}; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4000>; |
mediatek,portmap = "llllw"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "wled","ephy","uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/HC5661A.dts |
@@ -0,0 +1,132 @@ |
/dts-v1/; |
|
#include "mt7628an.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
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 = <KEY_RESTART>; |
}; |
}; |
}; |
|
&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"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/HC5861.dts |
@@ -0,0 +1,119 @@ |
/dts-v1/; |
|
#include "HC5X61.dtsi" |
|
/ { |
compatible = "hiwifi,hc5861", "hiwifi,hc5x61", "ralink,mt7620a-soc"; |
model = "HiWiFi HC5861"; |
|
aliases { |
led-boot = &led_system; |
led-failsafe = &led_system; |
led-running = &led_system; |
led-upgrade = &led_system; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_system: system { |
label = "hc5861:blue:system"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wlan2g { |
label = "hc5861:blue:wlan2g"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
internet { |
label = "hc5861:blue:internet"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
|
wlan5g { |
label = "hc5861:blue:wlan5g"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
turbo { |
label = "hc5861:blue:turbo"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usbpower { |
gpio-export,name = "usbpower"; |
gpio-export,output = <0>; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
sdpower { |
gpio-export,name = "sdpower"; |
gpio-export,output = <0>; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
status = "okay"; |
mtd-mac-address = <&factory 0x4>; |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; |
mediatek,portmap = "wllll"; |
|
port@4 { |
status = "okay"; |
phy-handle = <&phy4>; |
phy-mode = "rgmii"; |
}; |
|
port@5 { |
status = "okay"; |
phy-handle = <&phy5>; |
phy-mode = "rgmii"; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy4: ethernet-phy@4 { |
reg = <4>; |
phy-mode = "rgmii"; |
}; |
|
phy5: ethernet-phy@5 { |
reg = <5>; |
phy-mode = "rgmii"; |
}; |
}; |
}; |
|
&gsw { |
mediatek,port4 = "gmac"; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/HC5861B.dts |
@@ -0,0 +1,144 @@ |
/dts-v1/; |
|
#include "mt7628an.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
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 = <KEY_RESTART>; |
}; |
}; |
}; |
|
&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; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/HC5962.dts |
@@ -0,0 +1,157 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "hiwifi,hc5962", "mediatek,mt7621-soc"; |
model = "HiWiFi HC5962"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x10000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_status: status { |
label = "hc5962:white:status"; |
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
}; |
|
system { |
label = "hc5962:red:system"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&nand { |
status = "okay"; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x80000>; |
read-only; |
}; |
|
partition@80000 { |
label = "debug"; |
reg = <0x80000 0x80000>; |
read-only; |
}; |
|
factory: partition@100000 { |
label = "factory"; |
reg = <0x100000 0x40000>; |
read-only; |
}; |
|
partition@140000 { |
label = "kernel"; |
reg = <0x140000 0x200000>; |
}; |
|
partition@340000 { |
label = "ubi"; |
reg = <0x340000 0x1E00000>; |
}; |
|
partition@2140000 { |
label = "hw_panic"; |
reg = <0x2140000 0x80000>; |
read-only; |
}; |
|
partition@21c0000 { |
label = "bdinfo"; |
reg = <0x21c0000 0x80000>; |
read-only; |
}; |
|
partition@2240000 { |
label = "backup"; |
reg = <0x2240000 0x80000>; |
read-only; |
}; |
|
partition@22c0000 { |
label = "overly"; |
reg = <0x22c0000 0x1000000>; |
}; |
|
partition@32c0000 { |
label = "firmware_backup"; |
reg = <0x32c0000 0x2000000>; |
}; |
|
partition@52c0000 { |
label = "oem"; |
reg = <0x52c0000 0x200000>; |
}; |
|
partition@54c0000 { |
label = "opt"; |
reg = <0x54c0000 0x2ac0000>; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
ieee80211-freq-limit = <2400000 2500000>; |
}; |
}; |
|
&pcie1 { |
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 = "uart3", "jtag"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/HC5X61.dtsi |
@@ -0,0 +1,136 @@ |
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "hiwifi,hc5x61", "ralink,mt7620a-soc"; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usbpower { |
gpio-export,name = "usbpower"; |
gpio-export,output = <1>; |
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&sysc { |
ralink,gpiomux = "i2c", "jtag"; |
ralink,uartmux = "gpio"; |
ralink,wdtmux = <1>; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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 0xf80000>; |
}; |
|
partition@fd0000 { |
label = "hwf_config"; |
reg = <0xfd0000 0x10000>; |
read-only; |
}; |
|
bdinfo: partition@fe0000 { |
label = "bdinfo"; |
reg = <0xfe0000 0x10000>; |
read-only; |
}; |
|
partition@ff0000 { |
label = "backup"; |
reg = <0xff0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "wllll"; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
pinctrl-names = "default"; |
pinctrl-0 = <&pa_pins>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "uartf", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/HG255D.dts |
@@ -0,0 +1,145 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "huawei,hg255d", "ralink,rt3052-soc"; |
model = "HuaWei HG255D"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x1000000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x40000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x40000 0x20000>; |
read-only; |
}; |
|
factory: partition@60000 { |
label = "factory"; |
reg = <0x60000 0x20000>; |
read-only; |
}; |
|
partition@80000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x80000 0xf60000>; |
}; |
|
partition@fa0000 { |
label = "factory-orig"; |
reg = <0xfa0000 0x20000>; |
read-only; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "hg255d:green:power"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
internet { |
label = "hg255d:green:internet"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
wifi { |
label = "hg255d:green:wlan"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "hg255d:green:usb"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
trigger-sources = <&otg_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
wps { |
label = "hg255d:green:wps"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
voice { |
label = "hg255d:green:voice"; |
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <10>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
rfkill { |
label = "rfkill"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/HLKRM04.dts |
@@ -0,0 +1,128 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "hilink,hlk-rm04", "ralink,rt5350-soc"; |
model = "HILINK HLK-RM04"; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x1000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS1,57600"; |
}; |
|
gpio-export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
/* I2C */ |
gpio1 { |
/* I2C_I2C_SD */ |
gpio-export,name = "hlk-rm04:gpio0"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
}; |
gpio2 { |
/* I2C_I2C_SCLK */ |
gpio-export,name = "hlk-rm04:gpio1"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
reset { |
label = "reset"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
wps { |
label = "wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&uart { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag"; |
ralink,function = "gpio"; |
}; |
|
uartf_gpio { |
ralink,group = "uartf"; |
ralink,function = "gpio uartf"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/HPM.dts |
@@ -0,0 +1,162 @@ |
/dts-v1/; |
|
#include "rt3883.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "omnima,hpm", "ralink,rt3883-soc"; |
model = "Omnima HPM"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <100>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
power { |
label = "hpm:orange:power"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
default-state = "on"; |
}; |
|
led_status: status { |
label = "hpm:green:status"; |
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; |
default-state = "on"; |
}; |
|
eth { |
label = "hpm:green:eth"; |
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
}; |
|
eth2 { |
label = "hpm:red:eth"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
}; |
|
wifi { |
label = "hpm:green:wifi"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
}; |
|
wifi2 { |
label = "hpm:red:wifi"; |
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
/* gpio 12 and 13 handle the OC input */ |
|
usb0 { |
gpio-export,name = "usb0"; |
gpio-export,output = <1>; |
gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
}; |
|
usb1 { |
gpio-export,name = "usb1"; |
gpio-export,output = <1>; |
gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
spi-max-frequency = <25000000>; |
reg = <0>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
reg = <0x0 0x0030000>; |
label = "u-boot"; |
read-only; |
}; |
|
partition@30000 { |
reg = <0x00030000 0x00010000>; |
label = "config"; |
read-only; |
}; |
|
factory: partition@40000 { |
reg = <0x00040000 0x00010000>; |
label = "factory"; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
reg = <0x00050000 0x00fb0000>; |
label = "firmware"; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
phy-handle = <&phy0>; |
phy-mode = "rgmii"; |
mtd-mac-address = <&factory 0x28>; |
|
mdio-bus { |
status = "okay"; |
|
phy0: ethernet-phy@4 { |
reg = <4>; |
}; |
}; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/HT-TM02.dts |
@@ -0,0 +1,124 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "hootoo,ht-tm02", "ralink,rt5350-soc"; |
model = "HooToo HT-TM02"; |
|
aliases { |
led-boot = &led_wlan; |
led-failsafe = &led_wlan; |
led-running = &led_wlan; |
led-upgrade = &led_wlan; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_wlan: wlan { |
label = "ht-tm02:blue:wlan"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
lan { |
label = "ht-tm02:green:lan"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
modeswitch { |
label = "modeswitch"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&esw { |
mediatek,portmap = <0x10>; |
mediatek,portdisable = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/HW550-3G.dts |
@@ -0,0 +1,129 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "aztech,hw550-3g", "ralink,rt3052-soc"; |
model = "Aztech HW550-3G"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
usb { |
label = "hw550-3g:green:usb"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
trigger-sources = <&otg_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
3g { |
label = "hw550-3g:green:3g"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
led_status: status { |
label = "hw550-3g:green:status"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "hw550-3g:green:wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
connect { |
label = "connect"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_CONNECT>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&esw { |
mediatek,portmap = <0x3e>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/JHR-N926R.dts |
@@ -0,0 +1,140 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "jcg,jhr-n926r", "ralink,rt3052-soc"; |
model = "JCG JHR-N926R"; |
|
aliases { |
led-boot = &led_system; |
led-failsafe = &led_system; |
led-running = &led_system; |
led-upgrade = &led_system; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wlan1 { |
label = "jhr-n926r:red:wlan"; |
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
}; |
|
wlan2 { |
label = "jhr-n926r:yellow:wlan"; |
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; |
}; |
|
wlan3 { |
label = "jhr-n926r:green:wlan"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
}; |
|
led_system: system { |
label = "jhr-n926r:blue:system"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
display_data { |
gpio-export,name = "display_data"; |
gpio-export,output = <1>; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
}; |
|
display_clock { |
gpio-export,name = "display_clock"; |
gpio-export,output = <1>; |
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; |
}; |
|
display_blank { |
gpio-export,name = "display_blank"; |
gpio-export,output = <1>; |
gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset_wps { |
label = "reset_wps"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wlan { |
label = "wlan"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x2e>; |
}; |
|
&esw { |
mediatek,portmap = <0x3e>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/K2G.dts |
@@ -0,0 +1,144 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "phicomm,k2g", "ralink,mt7620a-soc"; |
model = "Phicomm K2G"; |
|
aliases { |
led-boot = &led_blue; |
led-failsafe = &led_blue; |
led-running = &led_blue; |
led-upgrade = &led_blue; |
serial0 = &uartlite; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_blue: blue { |
label = "k2g:blue:status"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
}; |
|
yellow { |
label = "k2g:yellow:status"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
red { |
label = "k2g:red:status"; |
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <24000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
reg = <0x0 0x30000>; |
label = "u-boot"; |
read-only; |
}; |
|
partition@30000 { |
reg = <0x30000 0x10000>; |
label = "u-boot-env"; |
read-only; |
}; |
|
factory: partition@40000 { |
reg = <0x40000 0x10000>; |
label = "factory"; |
read-only; |
}; |
|
partition@50000 { |
reg = <0x50000 0x50000>; |
label = "permanent_config"; |
read-only; |
}; |
|
partition@a0000 { |
compatible = "denx,uimage"; |
reg = <0xa0000 0x760000>; |
label = "firmware"; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii2_pins &mdio_pins>; |
mtd-mac-address = <&factory 0x28>; |
mediatek,portmap = "llllw"; |
|
port@5 { |
status = "okay"; |
phy-handle = <&phy5>; |
phy-mode = "rgmii"; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy5: ethernet-phy@5 { |
reg = <5>; |
phy-mode = "rgmii"; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
pinctrl-names = "default"; |
pinctrl-0 = <&pa_pins>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/K2P.dts |
@@ -0,0 +1,127 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "phicomm,k2p", "mediatek,mt7621-soc"; |
model = "Phicomm K2P"; |
|
aliases { |
led-boot = &led_blue; |
led-failsafe = &led_blue; |
led-running = &led_blue; |
led-upgrade = &led_blue; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x8000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
stat_r { |
label = "k2p:red:status"; |
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
}; |
|
stat_y { |
label = "k2p:yellow:status"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
led_blue: stat_b { |
label = "k2p:blue:status"; |
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&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 { |
label = "permanent_config"; |
reg = <0x50000 0x50000>; |
read-only; |
}; |
|
partition@a0000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0xa0000 0xf60000>; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe006>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/LINKIT7688.dts |
@@ -0,0 +1,174 @@ |
/dts-v1/; |
|
#include "mt7628an.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
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 = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&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"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/LR-25G001.dts |
@@ -0,0 +1,181 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "lava,lr-25g001", "ralink,mt7620a-soc"; |
model = "LAVA LR-25G001"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_status: status { |
label = "lr-25g001:green:status"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
wifi2g { |
label = "lr-25g001:green:wifi2g"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
wifi5g { |
label = "lr-25g001:green:wifi5g"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usbpower { |
gpio-export,name = "usbpower"; |
gpio-export,output = <1>; |
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&gpio0 { |
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 = "jboot"; |
reg = <0x0 0x10000>; |
read-only; |
}; |
|
partition@10000 { |
compatible = "amit,jimage"; |
label = "firmware"; |
reg = <0x10000 0xfe0000>; |
}; |
|
config: partition@ff0000 { |
label = "config"; |
reg = <0xff0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
status = "okay"; |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; |
|
port@5 { |
status = "okay"; |
phy-mode = "rgmii"; |
mediatek,fixed-link = <1000 1 1 1>; |
}; |
|
mdio-bus { |
status = "okay"; |
mediatek,mdio-mode = <1>; |
|
phy0: ethernet-phy@0 { |
reg = <0>; |
phy-mode = "rgmii"; |
qca,ar8327-initvals = < |
0x04 0x87300000 /* PORT0 PAD MODE CTRL */ |
0x0c 0x00000000 /* PORT6 PAD MODE CTRL */ |
0x7c 0x0000007e /* PORT0_STATUS */ |
0x94 0x00000000 /* PORT6_STATUS */ |
>; |
}; |
|
phy1: ethernet-phy@1 { |
reg = <1>; |
phy-mode = "rgmii"; |
}; |
|
phy2: ethernet-phy@2 { |
reg = <2>; |
phy-mode = "rgmii"; |
}; |
|
phy3: ethernet-phy@3 { |
reg = <3>; |
phy-mode = "rgmii"; |
}; |
|
phy4: ethernet-phy@4 { |
reg = <4>; |
phy-mode = "rgmii"; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76x0e@0,0 { |
reg = <0x0000 0 0 0 0>; |
mtd-mac-address = <&config 0xe07e>; |
mtd-mac-address-increment = <(2)>; |
mediatek,mtd-eeprom = <&config 0xe08a>; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "uartf", "i2c"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/M2M.dts |
@@ -0,0 +1,122 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "intenso,memory2move", "ralink,rt5350-soc"; |
model = "Intenso Memory 2 Move"; |
|
aliases { |
led-boot = &led_wifi; |
led-failsafe = &led_wifi; |
led-running = &led_wifi; |
led-upgrade = &led_wifi; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600n8 root=/dev/mtdblock5"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_wifi: wifi { |
label = "m2m:blue:wifi"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
wan { |
label = "m2m:green:wan"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
power { |
label = "power"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_POWER>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "Bootloader"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "Config"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "Factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0x0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/M3.dts |
@@ -0,0 +1,116 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "poray,m3", "ralink,rt5350-soc"; |
model = "Poray M3"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_status: status { |
label = "m3:blue:status"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
mode { |
label = "mode"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
mediatek,led_polarity = <1>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
ralink,led-polarity = <1>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/MINIEMBPLUG.dts |
@@ -0,0 +1,129 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "omnima,miniembplug", "ralink,rt5350-soc"; |
model = "Omnima MiniEMBPlug"; |
|
leds { |
compatible = "gpio-leds"; |
|
wlan { |
label = "miniembplug:red:wlan"; |
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; |
}; |
|
mobile { |
label = "miniembplug:green:mobile"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
mode-one { |
label = "mode1"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
mode-two { |
label = "mode2"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/MINIEMBWIFI.dts |
@@ -0,0 +1,105 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "omnima,miniembwifi", "ralink,rt3052-soc"; |
model = "Omnima MiniEMBWiFi"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_status: status { |
label = "miniembwifi:green:status"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wlan { |
label = "miniembwifi:green:wlan"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/MIR3G.dts |
@@ -0,0 +1,207 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "xiaomi,mir3g", "mediatek,mt7621-soc"; |
model = "Xiaomi Mi Router 3G"; |
|
aliases { |
led-boot = &led_status_blue; |
led-failsafe = &led_status_blue; |
led-running = &led_status_blue; |
led-upgrade = &led_status_blue; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x10000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200n8"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
status_red { |
label = "mir3g:red:status"; |
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
}; |
|
led_status_blue: status_blue { |
label = "mir3g:blue:status"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
status_yellow { |
label = "mir3g:yellow:status"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
}; |
|
wan_amber { |
label = "mir3g:amber:wan"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
lan1_amber { |
label = "mir3g:amber:lan1"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
lan2_amber { |
label = "mir3g:amber:lan2"; |
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
reg_usb_vbus: reg_usb_vbus { |
compatible = "regulator-fixed"; |
regulator-name = "usb_vbus"; |
regulator-min-microvolt = <5000000>; |
regulator-max-microvolt = <5000000>; |
gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
enable-active-high; |
}; |
}; |
|
&xhci { |
vbus-supply = <®_usb_vbus>; |
}; |
|
&nand { |
status = "okay"; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "Bootloader"; |
reg = <0x0 0x80000>; |
read-only; |
}; |
|
partition@80000 { |
label = "Config"; |
reg = <0x80000 0x40000>; |
}; |
|
partition@c0000 { |
label = "Bdata"; |
reg = <0xc0000 0x40000>; |
read-only; |
}; |
|
factory: partition@100000 { |
label = "Factory"; |
reg = <0x100000 0x40000>; |
read-only; |
}; |
|
partition@140000 { |
label = "crash"; |
reg = <0x140000 0x40000>; |
}; |
|
partition@180000 { |
label = "crash_syslog"; |
reg = <0x180000 0x40000>; |
}; |
|
partition@1c0000 { |
label = "reserved0"; |
reg = <0x1c0000 0x40000>; |
read-only; |
}; |
|
/* uboot expects to find kernels at 0x200000 & 0x600000 |
* referred to as system 1 & system 2 respectively. |
* a kernel is considered suitable for handing control over |
* if its linux magic number exists & uImage CRC are correct. |
* If either of those conditions fail, a matching sys'n'_fail flag |
* is set in uboot env & a restart performed in the hope that the |
* alternate kernel is okay. |
* if neither kernel checksums ok and both are marked failed, system 2 |
* is booted anyway. |
* |
* Note uboot's tftp flash install writes the transferred |
* image to both kernel partitions. |
*/ |
|
partition@200000 { |
label = "kernel_stock"; |
reg = <0x200000 0x400000>; |
}; |
|
partition@600000 { |
label = "kernel"; |
reg = <0x600000 0x400000>; |
}; |
|
/* ubi partition is the result of squashing |
* next consecutive stock partitions: |
* - rootfs0 (rootfs partition for stock kernel0), |
* - rootfs1 (rootfs partition for stock failsafe kernel1), |
* - overlay (used as ubi overlay in stock fw) |
* resulting 117,5MiB space for packages. |
*/ |
|
partition@a00000 { |
label = "ubi"; |
reg = <0xa00000 0x7580000>; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
wifi@0,0 { |
compatible = "pci14c3,7603"; |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
ieee80211-freq-limit = <2400000 2500000>; |
}; |
}; |
|
&pcie1 { |
wifi@0,0 { |
compatible = "pci14c3,7662"; |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
mediatek,portmap = "lwlll"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "jtag", "uart2", "uart3", "wdt"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/MIWIFI-MINI.dts |
@@ -0,0 +1,162 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "xiaomi,miwifi-mini", "ralink,mt7620a-soc"; |
model = "Xiaomi MiWiFi Mini"; |
|
aliases { |
led-boot = &led_blue; |
led-failsafe = &led_blue; |
led-running = &led_blue; |
led-upgrade = &led_blue; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_blue: blue { |
label = "miwifi-mini:blue:status"; |
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; |
default-state = "on"; |
}; |
|
yellow { |
label = "miwifi-mini:yellow:status"; |
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; |
}; |
|
red { |
label = "miwifi-mini:red:status"; |
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
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>; |
}; |
|
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 0xf80000>; |
}; |
|
partition@fd0000 { |
label = "crash"; |
reg = <0xfd0000 0x10000>; |
}; |
|
partition@fe0000 { |
label = "reserved"; |
reg = <0xfe0000 0x10000>; |
read-only; |
}; |
|
partition@ff0000 { |
label = "Bdata"; |
reg = <0xff0000 0x10000>; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
mtd-mac-address = <&factory 0x28>; |
mediatek,portmap = "llllw"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
pinctrl-names = "default"; |
pinctrl-0 = <&pa_pins>; |
}; |
|
&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 = "i2c", "rgmii1"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/MLW221.dts |
@@ -0,0 +1,132 @@ |
/dts-v1/; |
|
#include "mt7620n.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "kingston,mlw221", "ralink,mt7620n-soc"; |
model = "Kingston MLW221"; |
|
aliases { |
led-boot = &led_system; |
led-failsafe = &led_system; |
led-running = &led_system; |
led-upgrade = &led_system; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_system: system { |
label = "mlw221:blue:system"; |
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; |
}; |
|
wifi { |
label = "mlw221:blue:wifi"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
system { |
label = "system"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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 0xf60000>; |
}; |
|
partition@fb0000 { |
label = "user-config"; |
reg = <0xfb0000 0x50000>; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "wllll"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "i2c", "ephy", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/MLWG2.dts |
@@ -0,0 +1,132 @@ |
/dts-v1/; |
|
#include "mt7620n.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "kingston,mlwg2", "ralink,mt7620n-soc"; |
model = "Kingston MLWG2"; |
|
aliases { |
led-boot = &led_system; |
led-failsafe = &led_system; |
led-running = &led_system; |
led-upgrade = &led_system; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_system: system { |
label = "mlwg2:blue:system"; |
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; |
}; |
|
wifi { |
label = "mlwg2:blue:wifi"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
system { |
label = "system"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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 0xf60000>; |
}; |
|
partition@fb0000 { |
label = "user-config"; |
reg = <0xfb0000 0x50000>; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "wllll"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "i2c", "ephy", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/MOFI3500-3GN.dts |
@@ -0,0 +1,126 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "mofinetwork,mofi3500-3gn", "ralink,rt3052-soc"; |
model = "MoFi Network MOFI3500-3GN"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
usb { |
label = "mofi3500-3gn:green:usb"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
trigger-sources = <&otg_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
3g { |
label = "mofi3500-3gn:green:3g"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
led_status: status { |
label = "mofi3500-3gn:green:status"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "mofi3500-3gn:green:wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
connect { |
label = "connect"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_CONNECT>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
status = "okay"; |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/MPRA1.dts |
@@ -0,0 +1,133 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "hame,mpr-a1", "ralink,rt5350-soc"; |
model = "HAME MPR-A1"; |
|
aliases { |
led-boot = &led_system; |
led-failsafe = &led_system; |
led-running = &led_system; |
led-upgrade = &led_system; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_system: system { |
label = "mpr-a1:blue:system"; |
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
}; |
|
power { |
label = "mpr-a1:red:power"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "reset"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb { |
gpio-export,name = "usb"; |
gpio-export,output = <1>; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
}; |
|
root_hub { |
gpio-export,name = "root_hub"; |
gpio-export,output = <1>; |
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf", "led"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/MPRA2.dts |
@@ -0,0 +1,130 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "hame,mpr-a2", "ralink,rt5350-soc"; |
model = "HAME MPR-A2"; |
|
aliases { |
led-boot = &led_system; |
led-failsafe = &led_system; |
led-running = &led_system; |
led-upgrade = &led_system; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_system: system { |
label = "mpr-a2:blue:system"; |
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
}; |
|
power { |
label = "mpr-a2:red:power"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "reset"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb { |
gpio-export,name = "usb"; |
gpio-export,output = <1>; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
}; |
|
root_hub { |
gpio-export,name = "root_hub"; |
gpio-export,output = <1>; |
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x1>; |
mediatek,portdisable = <0x3e>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/MR-102N.dts |
@@ -0,0 +1,131 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "aximcom,mr-102n", "ralink,rt3052-soc"; |
model = "AXIMCom MR-102N"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x790000>; |
}; |
|
partition@7e0000 { |
label = "nvram"; |
reg = <0x7e0000 0x10000>; |
}; |
|
partition@7f0000 { |
label = "nvram_backup"; |
reg = <0x7f0000 0x10000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
usb { |
label = "mr-102n:green:usb"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
trigger-sources = <&otg_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
led_status: status { |
label = "mr-102n:amber:status"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wlan { |
label = "mr-102n:green:wlan"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
status = "okay"; |
#mediatek,portmap = <0x3e>; |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/MZK-750DHP.dts |
@@ -0,0 +1,137 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "planex,mzk-750dhp", "ralink,mt7620a-soc"; |
model = "Planex MZK-750DHP"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wps { |
label = "mzk-750dhp:green:wps"; |
gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; |
}; |
|
led_power: power { |
label = "mzk-750dhp:green:power"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
|
wlan5g { |
label = "mzk-750dhp:green:wlan5g"; |
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
s1 { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
s2 { |
label = "wps"; |
gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "spi refclk", "rgmii1", "nd_sd"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "llllw"; |
}; |
|
&gsw { |
mediatek,port4 = "ephy"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/MZK-DP150N.dts |
@@ -0,0 +1,112 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "planex,mzk-dp150n", "ralink,rt5350-soc"; |
model = "Planex MZK-DP150N"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "mzk-dp150n:green:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "uboot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "uboot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
}; |
|
&spi1 { |
spidev@0 { |
compatible = "linux,spidev"; |
spi-max-frequency = <10000000>; |
reg = <0>; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "jtag", "uartf", "led"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x17>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
ralink,led-polarity = <1>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/MZK-EX300NP.dts |
@@ -0,0 +1,142 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "planex,mzk-ex300np", "ralink,mt7620a-soc"; |
model = "Planex MZK-EX300NP"; |
|
aliases { |
led-boot = &led_wps; |
led-failsafe = &led_wps; |
led-running = &led_wps; |
led-upgrade = &led_wps; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wifi { |
label = "mzk-ex300np:green:wifi"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
|
led_wps: wps { |
label = "mzk-ex300np:green:wps"; |
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
}; |
|
rep { |
label = "mzk-ex300np:blue:rep"; |
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; |
}; |
|
wifi1 { |
label = "mzk-ex300np:blue:wifi1"; |
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; |
}; |
|
wifi2 { |
label = "mzk-ex300np:blue:wifi2"; |
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; |
}; |
|
wifi3 { |
label = "mzk-ex300np:blue:wifi3"; |
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio3 { |
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 0x730000>; |
}; |
|
partition@780000 { |
label = "Udata"; |
reg = <0x780000 0x80000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "spi refclk", "rgmii1", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "llllw"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/MZK-EX750NP.dts |
@@ -0,0 +1,158 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "planex,mzk-ex750np", "ralink,mt7620a-soc"; |
model = "Planex MZK-EX750NP"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "mzk-ex750np:red:power"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
wifi { |
label = "mzk-ex750np:red:wifi"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "mzk-ex750np:green:wps"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
}; |
|
rep { |
label = "mzk-ex750np:blue:rep"; |
gpios = <&gpio2 16 GPIO_ACTIVE_LOW>; |
}; |
|
wifi1 { |
label = "mzk-ex750np:blue:wifi1"; |
gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; |
}; |
|
wifi2 { |
label = "mzk-ex750np:blue:wifi2"; |
gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; |
}; |
|
wifi3 { |
label = "mzk-ex750np:blue:wifi3"; |
gpios = <&gpio2 17 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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 0x730000>; |
}; |
|
partition@780000 { |
label = "Udata"; |
reg = <0x780000 0x80000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "uartf", "nd_sd", "rgmii2", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "llllw"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/MZK-W300NH2.dts |
@@ -0,0 +1,124 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "planex,mzk-w300nh2", "ralink,rt3052-soc"; |
model = "Planex MZK-W300NH2"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@3e0000 { |
label = "cimage"; |
reg = <0x3e0000 0x20000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x390000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "mzk-w300nh2:green:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wlan { |
label = "mzk-w300nh2:amber:wlan"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "mzk-w300nh2:amber:wps"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
rt { |
label = "rt"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/NA930.dts |
@@ -0,0 +1,187 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "sercomm,na930", "ralink,mt7620a-soc"; |
model = "Sercomm NA930"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
chosen { |
bootargs = "console=ttyS1,57600"; |
}; |
|
nand { |
compatible = "mtk,mt7620-nand"; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x20000>; |
read-only; |
}; |
|
partition@200000 { |
label = "factory"; |
reg = <0x200000 0x40000>; |
read-only; |
}; |
|
partition@240000 { |
label = "Config"; |
reg = <0x240000 0x400000>; |
read-only; |
}; |
|
partition@640000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x640000 0x1400000>; |
}; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
zwave { |
label = "zwave"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
zwave { |
label = "na930:blue:zwave"; |
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; |
}; |
|
status { |
label = "na930:blue:status"; |
gpios = <&gpio2 26 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
service { |
label = "na930:blue:service"; |
gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; |
}; |
|
led_power: power { |
label = "na930:blue:power"; |
gpios = <&gpio2 29 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
telit { |
gpio-export,name = "telit"; |
gpio-export,output = <1>; |
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "rgmii2", "spi", "ephy"; |
ralink,function = "gpio"; |
}; |
|
uartf_gpio { |
ralink,group = "uartf"; |
ralink,function = "gpio uartf"; |
}; |
}; |
}; |
|
&uart { |
status = "okay"; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
ðernet { |
status = "okay"; |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii1_pins &mdio_pins>; |
mediatek,portmap = "llllw"; |
|
port@4 { |
status = "okay"; |
phy-handle = <&phy4>; |
phy-mode = "rgmii"; |
}; |
|
port@5 { |
status = "okay"; |
phy-handle = <&phy5>; |
phy-mode = "rgmii"; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy4: ethernet-phy@4 { |
reg = <4>; |
phy-mode = "rgmii"; |
}; |
|
phy5: ethernet-phy@5 { |
reg = <5>; |
phy-mode = "rgmii"; |
}; |
}; |
}; |
|
&gsw { |
mediatek,port4 = "gmac"; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/NBG-419N.dts |
@@ -0,0 +1,107 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "zyxel,nbg-419n", "ralink,rt3052-soc"; |
model = "ZyXEL NBG-419N"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "nbg-419n:green:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "nbg-419n:green:wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/NBG-419N2.dts |
@@ -0,0 +1,130 @@ |
/dts-v1/; |
|
#include "rt3352.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "zyxel,nbg-419n-v2", "ralink,rt3352-soc"; |
model = "ZyXEL NBG-419N v2"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
palmbus@10000000 { |
spi@b00 { |
status = "okay"; |
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0 0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "nbg-419n2:green:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "nbg-419n2:green:wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "nbg-419n2:green:usb"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
rfkill { |
label = "rfkill"; |
linux,input-type = <EV_SW>; |
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/NIXCORE.dtsi |
@@ -0,0 +1,155 @@ |
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
|
/ { |
compatible = "nixcore,x1", "ralink,rt5350-soc"; |
|
chosen { |
bootargs = "console=ttyS1,57600"; |
}; |
|
gpio-export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
gpio0 { |
gpio-export,name = "gpio0"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio1 { |
gpio-export,name = "gpio1"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; |
}; |
|
/* GPIOs 1-6 are I2C,SPI */ |
/* GPIO 7-14 are uart1 */ |
/* GPIOs 15 & 16 are uart2 */ |
/* JTAG */ |
|
gpio17 { |
/* JTAG_TDO */ |
gpio-export,name = "gpio17"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio18 { |
/* JTAG_TDI */ |
gpio-export,name = "gpio18"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio19 { |
/* JTAG_TMS */ |
gpio-export,name = "gpio19"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio20 { |
/* JTAG_TCLK */ |
gpio-export,name = "gpio20"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio21 { |
/* JTAG_TRST_N */ |
gpio-export,name = "gpio21"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; |
}; |
|
/* ETH LEDs */ |
/* |
gpio22 { |
gpio-export,name = "gpio22"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio23 { |
gpio-export,name = "gpio23"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio24 { |
gpio-export,name = "gpio24"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio25 { |
gpio-export,name = "gpio25"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; |
}; |
|
*/ |
gpio26 { |
/* ETH4_LED */ |
gpio-export,name = "gpio26"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio27 { |
/* spi_cs1 */ |
gpio-export,name = "gpio27"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&i2c { |
status = "okay"; |
}; |
|
&uart { |
status = "okay"; |
reset-names = "gpio uartf"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "jtag", "led", "spi_cs1"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x17>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/NW718.dts |
@@ -0,0 +1,121 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "netcore,nw718", "ralink,rt3050-soc"; |
model = "Netcore NW718"; |
|
aliases { |
led-boot = &led_cpu; |
led-failsafe = &led_cpu; |
led-running = &led_cpu; |
led-upgrade = &led_cpu; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_cpu: cpu { |
label = "nw718:amber:cpu"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "nw718:amber:usb"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
trigger-sources = <&otg_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
wps { |
label = "nw718:amber:wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <25000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "config"; |
reg = <0x30000 0x20000>; |
read-only; |
}; |
|
factory: partition@50000 { |
label = "factory"; |
reg = <0x50000 0x10000>; |
read-only; |
}; |
|
partition@60000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x60000 0x3a0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/Newifi-D1.dts |
@@ -0,0 +1,152 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "lenovo,newifi-d1", "mediatek,mt7621-soc"; |
model = "Newifi-D1"; |
|
aliases { |
led-boot = &led_blue; |
led-failsafe = &led_blue; |
led-running = &led_blue; |
led-upgrade = &led_blue; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x10000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
status-red { |
label = "newifi-d1:red:status"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
status-green { |
label = "newifi-d1:green:status"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
led_blue: status-blue { |
label = "newifi-d1:blue:status"; |
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; |
default-state = "on"; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb2power { |
gpio-export,name = "usb2power"; |
gpio-export,output = <1>; |
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; |
}; |
|
usb3power { |
gpio-export,name = "usb3power"; |
gpio-export,output = <1>; |
gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "mx25l25635f", "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <25000000>; |
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 0x1fb0000>; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "wdt", "rgmii2", "jtag", "uart2", "uart3", "i2c"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/Newifi-D2.dts |
@@ -0,0 +1,168 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "d-team,newifi-d2", "mediatek,mt7621-soc"; |
model = "Newifi-D2"; |
|
aliases { |
led-boot = &led_power_blue; |
led-failsafe = &led_power_blue; |
led-running = &led_power_blue; |
led-upgrade = &led_power_blue; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
power-amber { |
label = "newifi-d2:amber:power"; |
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
}; |
|
led_power_blue: power-blue { |
label = "newifi-d2:blue:power"; |
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; |
}; |
|
internet-amber { |
label = "newifi-d2:amber:internet"; |
gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; |
}; |
|
internet-blue { |
label = "newifi-d2:blue:internet"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
wlan2g { |
label = "newifi-d2:blue:wlan2g"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
wlan5g { |
label = "newifi-d2:blue:wlan5g"; |
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "newifi-d2:blue:usb"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; |
linux,default-trigger = "usbport"; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
power_usb3 { |
gpio-export,name = "power_usb3"; |
gpio-export,output = <1>; |
gpios = <&gpio0 11 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 0x1fb0000>; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uart2", "uart3"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/OMEGA2.dtsi |
@@ -0,0 +1,175 @@ |
#include "mt7628an.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
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 = <KEY_RESTART>; |
}; |
}; |
}; |
|
&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"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/OY-0001.dts |
@@ -0,0 +1,130 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "ohyeah,oy-0001", "ralink,mt7620a-soc"; |
model = "OY-0001"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: powerled { |
label = "oy-0001:green:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wifiled { |
label = "oy-0001:green:wifi"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
s1 { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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 0xfb0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
mediatek,portmap = "llllw"; |
}; |
|
&gsw { |
mediatek,port4 = "ephy"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/PBR-D1.dts |
@@ -0,0 +1,171 @@ |
/dts-v1/; |
|
#include "mt7628an.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
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 = <KEY_RESTART>; |
}; |
}; |
|
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; |
}; |
/branches/18.06.1/target/linux/ramips/dts/PBR-M1.dts |
@@ -0,0 +1,184 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "d-team,pbr-m1", "mediatek,mt7621-soc"; |
model = "PBR-M1"; |
|
aliases { |
led-boot = &led_sys; |
led-failsafe = &led_sys; |
led-running = &led_sys; |
led-upgrade = &led_sys; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x10000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
palmbus: palmbus@1E000000 { |
i2c: i2c@900 { |
status = "okay"; |
|
pcf8563: rtc@51 { |
status = "okay"; |
compatible = "nxp,pcf8563"; |
reg = <0x51>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
power { |
label = "pbr-m1:blue:power"; |
gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; |
default-state = "on"; |
}; |
|
led_sys: sys { |
label = "pbr-m1:blue:sys"; |
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; |
}; |
|
internet { |
label = "pbr-m1:blue:internet"; |
gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; |
}; |
|
wlan2g { |
label = "pbr-m1:blue:wlan2g"; |
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; |
}; |
|
wlan5g { |
label = "pbr-m1:blue:wlan5g"; |
gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
power_usb2 { |
gpio-export,name = "power_usb2"; |
gpio-export,output = <1>; |
gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>; |
}; |
|
power_usb3 { |
gpio-export,name = "power_usb3"; |
gpio-export,output = <1>; |
gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>; |
}; |
|
power_sata { |
gpio-export,name = "power_sata"; |
gpio-export,output = <1>; |
gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
beeper: beeper { |
compatible = "gpio-beeper"; |
gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
&sdhci { |
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 0xfb0000>; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "wdt", "rgmii2", "jtag", "mdio"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/PSG1208.dts |
@@ -0,0 +1,123 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "phicomm,psg1208", "ralink,mt7620a-soc"; |
model = "Phicomm PSG1208"; |
|
aliases { |
led-boot = &led_wps; |
led-failsafe = &led_wps; |
led-running = &led_wps; |
led-upgrade = &led_wps; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_wps: wps { |
label = "psg1208:white:wps"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
|
wlan { |
label = "psg1208:white:wlan2g"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio3 { |
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@20000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@30000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@40000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "spi refclk", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "llllw"; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/PWH2004.dts |
@@ -0,0 +1,97 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "prolink,pwh2004", "ralink,rt3052-soc"; |
model = "Prolink PWH2004"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wifi { |
label = "pwh2004:red:wifi"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
led_power: power { |
label = "pwh2004:green:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/R6120.dts |
@@ -0,0 +1,148 @@ |
/dts-v1/; |
|
#include "mt7628an.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
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 = <KEY_RESTART>; |
}; |
}; |
|
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>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "p0led_an", "p1led_an", "p2led_an", |
"p3led_an", "p4led_an", "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 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)>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/R6220.dts |
@@ -0,0 +1,169 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "netgear,r6220", "mediatek,mt7621-soc"; |
model = "Netgear R6220"; |
|
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,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "r6220:green:power"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "r6220:green:usb"; |
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; |
trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; |
linux,default-trigger = "usbport"; |
}; |
|
internet { |
label = "r6220:green:wan"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
wifi { |
label = "r6220:green:wifi"; |
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "r6220:green:wps"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
wifi { |
label = "wifi"; |
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RFKILL>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usbpower { |
gpio-export,name = "usbpower"; |
gpio-export,output = <1>; |
gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&nand { |
status = "okay"; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x100000>; |
read-only; |
}; |
|
partition@100000 { |
label = "SC PID"; |
reg = <0x100000 0x100000>; |
read-only; |
}; |
|
partition@200000 { |
label = "kernel"; |
reg = <0x200000 0x400000>; |
}; |
|
partition@600000 { |
label = "ubi"; |
reg = <0x600000 0x1c00000>; |
}; |
|
factory: partition@2e00000 { |
label = "factory"; |
reg = <0x2e00000 0x100000>; |
read-only; |
}; |
|
partition@4200000 { |
label = "reserved"; |
reg = <0x4200000 0x3c00000>; |
read-only; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
ieee80211-freq-limit = <2400000 2500000>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x00000004>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "uart3", "jtag"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/R6350.dts |
@@ -0,0 +1,157 @@ |
// SPDX-License-Identifier: GPL-2.0 |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "netgear,r6350", "mediatek,mt7621-soc"; |
model = "Netgear R6350"; |
|
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,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "r6350:green:power"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "r6350:green:usb"; |
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; |
trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; |
linux,default-trigger = "usbport"; |
}; |
|
internet { |
label = "r6350:green:wan"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
wifi { |
label = "r6350:green:wifi"; |
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usbpower { |
gpio-export,name = "usbpower"; |
gpio-export,output = <1>; |
gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&nand { |
status = "okay"; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x100000>; |
read-only; |
}; |
|
partition@100000 { |
label = "SC PART_MAP"; |
reg = <0x100000 0x100000>; |
read-only; |
}; |
|
partition@200000 { |
label = "kernel"; |
reg = <0x200000 0x400000>; |
}; |
|
partition@600000 { |
label = "ubi"; |
reg = <0x600000 0x2800000>; |
}; |
|
partition@2e00000 { |
label = "reserved0"; |
reg = <0x2e00000 0x1800000>; |
read-only; |
}; |
|
factory: partition@4600000 { |
label = "factory"; |
reg = <0x4600000 0x200000>; |
read-only; |
}; |
|
partition@4800000 { |
label = "reserved1"; |
reg = <0x4800000 0x3800000>; |
read-only; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie1 { |
wifi@0,0 { |
reg = <0x0 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0>; |
ieee80211-freq-limit = <2400000 2500000>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "uart3", "uart2", "jtag", "wdt"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/RB750Gr3.dts |
@@ -0,0 +1,155 @@ |
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/input/input.h> |
#include <dt-bindings/gpio/gpio.h> |
|
/ { |
compatible = "mikrotik,rb750gr3", "mediatek,mt7621-soc"; |
model = "MikroTik RouterBOARD 750Gr3"; |
|
aliases { |
led-boot = &led_usr; |
led-failsafe = &led_usr; |
led-running = &led_usr; |
led-upgrade = &led_usr; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x10000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
pwr { |
label = "rb750gr3:blue:pwr"; |
gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; |
default-state = "on"; |
}; |
|
led_usr: usr { |
label = "rb750gr3:green:usr"; |
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
mode { |
label = "mode"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
beeper { |
compatible = "gpio-beeper"; |
gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb_power { |
gpio-export,name = "usb_power"; |
gpio-export,output = <1>; |
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
flash@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <20000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "RouterBoot"; |
reg = <0x0 0x40000>; |
read-only; |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "bootloader1"; |
reg = <0x0 0xf000>; |
read-only; |
}; |
|
hard_config: partition@f000 { |
label = "hard_config"; |
reg = <0xf000 0x1000>; |
read-only; |
}; |
|
partition@10000 { |
label = "bootloader2"; |
reg = <0x10000 0xf000>; |
read-only; |
}; |
|
partition@20000 { |
label = "soft_config"; |
reg = <0x20000 0x1000>; |
}; |
|
partition@30000 { |
label = "bios"; |
reg = <0x30000 0x1000>; |
read-only; |
}; |
}; |
|
partition@40000 { |
compatible = "mikrotik,minor"; |
label = "firmware"; |
reg = <0x040000 0xfc0000>; |
}; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&hard_config 0x0010>; |
mtd-mac-address-increment = <1>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
/* via gpio7 (uart3 group) the PoE status can be read */ |
ralink,group = "uart2", "uart3", "jtag", "wdt"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/RBM11G.dts |
@@ -0,0 +1,168 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/input/input.h> |
#include <dt-bindings/gpio/gpio.h> |
|
/ { |
compatible = "mikrotik,rbm11g", "mediatek,mt7621-soc"; |
model = "MikroTik RouterBOARD M11G"; |
|
aliases { |
led-boot = &led_usr; |
led-failsafe = &led_usr; |
led-running = &led_usr; |
led-upgrade = &led_usr; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x10000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_usr: usr { |
label = "rbm11g:green:usr"; |
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; |
}; |
|
rssi0 { |
label = "rbm11g:green:rssi0"; |
gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; |
}; |
|
rssi1 { |
label = "rbm11g:green:rssi1"; |
gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; |
}; |
|
rssi2 { |
label = "rbm11g:green:rssi2"; |
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; |
}; |
|
rssi3 { |
label = "rbm11g:green:rssi3"; |
gpios = <&gpio0 25 GPIO_ACTIVE_LOW>; |
}; |
|
rssi4 { |
label = "rbm11g:green:rssi4"; |
gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
res { |
label = "reset"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
pcie0_vcc_reg { |
compatible = "regulator-fixed"; |
regulator-name = "pcie0_vcc"; |
|
regulator-min-microvolt = <3300000>; |
regulator-max-microvolt = <3300000>; |
gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>; |
enable-active-high; |
regulator-boot-on; |
regulator-always-on; |
}; |
}; |
|
|
&spi0 { |
status = "okay"; |
|
w25q128@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
// XXX empiric value to obtain actual 10MHz SCK at the chip |
spi-max-frequency = <3125000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "RouterBoot"; |
reg = <0x0 0x40000>; |
read-only; |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "bootloader1"; |
reg = <0x0 0xf000>; |
read-only; |
}; |
|
hard_config: partition@f000 { |
label = "hard_config"; |
reg = <0xf000 0x1000>; |
read-only; |
}; |
|
partition@10000 { |
label = "bootloader2"; |
reg = <0x10000 0xf000>; |
read-only; |
}; |
|
partition@20000 { |
label = "soft_config"; |
reg = <0x20000 0x1000>; |
}; |
|
partition@30000 { |
label = "bios"; |
reg = <0x30000 0x1000>; |
read-only; |
}; |
}; |
|
partition@40000 { |
compatible = "mikrotik,minor"; |
label = "firmware"; |
reg = <0x040000 0xFC0000>; |
}; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&hard_config 0x0010>; |
mtd-mac-address-increment = <1>; |
}; |
|
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "uart2", "wdt", "rgmii2"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&i2c { |
status = "okay"; |
}; |
|
&pcie { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/RBM33G.dts |
@@ -0,0 +1,197 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/input/input.h> |
#include <dt-bindings/gpio/gpio.h> |
|
/ { |
compatible = "mikrotik,rbm33g", "mediatek,mt7621-soc"; |
model = "MikroTik RouterBOARD M33G"; |
|
aliases { |
led-boot = &led_usr; |
led-failsafe = &led_usr; |
led-running = &led_usr; |
led-upgrade = &led_usr; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x10000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_usr: usr { |
label = "rbm33g:green:usr"; |
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
res { |
label = "res"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
pcie0_vcc_reg { |
compatible = "regulator-fixed"; |
regulator-name = "pcie0_vcc"; |
|
regulator-min-microvolt = <3300000>; |
regulator-max-microvolt = <3300000>; |
gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>; |
enable-active-high; |
regulator-boot-on; |
regulator-always-on; |
}; |
|
pcie1_vcc_reg { |
compatible = "regulator-fixed"; |
regulator-name = "pcie1_vcc"; |
|
regulator-min-microvolt = <3300000>; |
regulator-max-microvolt = <3300000>; |
gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>; |
enable-active-high; |
regulator-boot-on; |
regulator-always-on; |
}; |
|
pcie2_vcc_reg { |
compatible = "regulator-fixed"; |
regulator-name = "pcie2_vcc"; |
|
regulator-min-microvolt = <3300000>; |
regulator-max-microvolt = <3300000>; |
gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>; |
enable-active-high; |
regulator-boot-on; |
regulator-always-on; |
}; |
|
usb_vcc_reg { |
compatible = "regulator-fixed"; |
regulator-name = "usb_vcc"; |
|
regulator-min-microvolt = <5000000>; |
regulator-max-microvolt = <5000000>; |
gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
enable-active-high; |
regulator-always-on; |
}; |
}; |
|
|
&spi0 { |
status = "okay"; |
|
w25q40@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <3125000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "RouterBoot"; |
reg = <0x0 0x40000>; |
read-only; |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "bootloader1"; |
reg = <0x0 0xf000>; |
read-only; |
}; |
|
hard_config: partition@f000 { |
label = "hard_config"; |
reg = <0xf000 0x1000>; |
read-only; |
}; |
|
partition@10000 { |
label = "bootloader2"; |
reg = <0x10000 0xf000>; |
read-only; |
}; |
|
partition@20000 { |
label = "soft_config"; |
reg = <0x20000 0x1000>; |
}; |
|
partition@30000 { |
label = "bios"; |
reg = <0x30000 0x1000>; |
read-only; |
}; |
}; |
}; |
}; |
|
w25q128@1 { |
compatible = "jedec,spi-nor"; |
reg = <1>; |
// XXX empiric value to obtain actual 10MHz SCK at the chip |
spi-max-frequency = <3125000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
// Region <0x0 0x40000> seems reserved by OEM |
|
partition@40000 { |
compatible = "mikrotik,minor"; |
label = "firmware"; |
reg = <0x040000 0xFC0000>; |
}; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&hard_config 0x0010>; |
mtd-mac-address-increment = <1>; |
}; |
|
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "uart2", "wdt"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
&i2c { |
status = "okay"; |
}; |
|
&pcie { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/RE350.dts |
@@ -0,0 +1,171 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "tplink,re350-v1", "mediatek,mt7621-soc"; |
model = "TP-LINK RE350 v1"; |
|
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>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "re350-v1:blue:power"; |
gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; |
}; |
|
wifi2g { |
label = "re350-v1:blue:wifi2G"; |
gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; |
}; |
|
wifi5g { |
label = "re350-v1:blue:wifi5G"; |
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; |
}; |
|
wps_r { |
label = "re350-v1:red:wps"; |
gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>; |
}; |
|
wps_b { |
label = "re350-v1:blue:wps"; |
gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>; |
}; |
|
eth { |
label = "re350-v1:green:eth_act"; |
gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; |
}; |
|
eth2 { |
label = "re350-v1:green:eth_link"; |
gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
led { |
label = "led"; |
gpios = <&gpio0 30 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
power { |
label = "power"; |
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_POWER>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
w25q64@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x20000>; |
read-only; |
}; |
|
partition@20000 { |
compatible = "tplink,firmware"; |
label = "firmware"; |
reg = <0x20000 0x5e0000>; |
}; |
|
config: partition@600000 { |
label = "config"; |
reg = <0x600000 0x50000>; |
read-only; |
}; |
|
radio: partition@7f0000 { |
label = "radio"; |
reg = <0x7f0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&radio 0>; |
mtd-mac-address = <&config 0x10008>; |
mtd-mac-address-increment = <1>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&radio 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
mtd-mac-address = <&config 0x10008>; |
mtd-mac-address-increment = <2>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&config 0x10008>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "rgmii2", "wdt"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/RE6500.dts |
@@ -0,0 +1,135 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "linksys,re6500", "mediatek,mt7621-soc"; |
model = "Linksys RE6500"; |
|
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>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wifi { |
label = "re6500:orange:wifi"; |
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; |
}; |
|
led_power: power { |
label = "re6500:white:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uart2", "uart3", "rgmii2"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <2400000 2500000>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x2e>; |
}; |
|
&xhci { |
status = "disabled"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/RP-N53.dts |
@@ -0,0 +1,178 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "asus,rp-n53", "ralink,mt7620a-soc"; |
model = "Asus RP-N53"; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
touch { |
label = "touch"; |
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
|
audio { |
label = "audio"; |
gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; |
linux,code = <BTN_1>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
backlight { |
label = "rp-n53:white:back"; |
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; |
}; |
|
wifi0 { |
label = "rp-n53:blue:5g3"; |
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
}; |
|
wifi1 { |
label = "rp-n53:blue:5g2"; |
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
}; |
|
wifi2 { |
label = "rp-n53:blue:5g1"; |
gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; |
}; |
|
wifi3 { |
label = "rp-n53:blue:wifi"; |
gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; |
}; |
|
wifi4 { |
label = "rp-n53:blue:2g1"; |
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; |
}; |
|
wifi5 { |
label = "rp-n53:blue:2g2"; |
gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; |
}; |
|
wifi6 { |
label = "rp-n53:blue:2g3"; |
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&i2c { |
status = "okay"; |
}; |
|
&i2s { |
status = "okay"; |
pinctrl-names = "default"; |
pinctrl-0 = <&pcm_i2s_pins>; |
}; |
|
&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>; |
}; |
}; |
}; |
}; |
|
&pcm { |
status = "okay"; |
}; |
|
&gdma { |
status = "okay"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "mdio", "rgmii1"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&gsw { |
mediatek,port4 = "ephy"; |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
wifi@0,0 { |
compatible = "pci1814,5592"; |
reg = <0x0000 0 0 0 0>; |
ralink,2ghz = <0>; |
ralink,mtd-eeprom = <&factory 0x8000>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/RT-AC51U.dts |
@@ -0,0 +1,149 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "asus,rt-ac51u", "ralink,mt7620a-soc"; |
model = "Asus RT-AC51U"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "rt-ac51u:blue:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "rt-ac51u:blue:usb"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
wifi { |
label = "rt-ac51u:blue:wifi"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
enable-leds { |
gpio-export,name = "enable-leds"; |
gpio-export,output = <1>; |
gpios = <&gpio0 10 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>; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
ðernet { |
status = "okay"; |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "wllll"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "wled", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
wifi@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/RT-N12-PLUS.dts |
@@ -0,0 +1,127 @@ |
/dts-v1/; |
|
#include "mt7620n.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "asus,rt-n12p", "ralink,mt7620n-soc"; |
model = "Asus RT-N12+"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wan { |
label = "rt-n12p:green:wan"; |
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; |
}; |
|
lan { |
label = "rt-n12p:green:lan"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
|
led_power: power { |
label = "rt-n12p:green:power"; |
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; |
}; |
|
air { |
label = "rt-n12p:green:air"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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 0xfb0000>; |
}; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "wllll"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "ephy", "wled", "i2c", "wdt", "pa", "spi refclk"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/RT-N13U.dts |
@@ -0,0 +1,111 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "asus,rt-n13u", "ralink,rt3052-soc"; |
model = "Asus RT-N13U"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "rt-n13u:blue:power"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
wifi { |
label = "rt-n13u:blue:wifi"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <10>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/RT-N14U.dts |
@@ -0,0 +1,140 @@ |
/dts-v1/; |
|
#include "mt7620n.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "asus,rt-n14u", "ralink,mt7620n-soc"; |
model = "Asus RT-N14U"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wan { |
label = "rt-n14u:blue:wan"; |
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; |
}; |
|
lan { |
label = "rt-n14u:blue:lan"; |
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "rt-n14u:blue:usb"; |
gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
led_power: power { |
label = "rt-n14u:blue:power"; |
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; |
}; |
|
air { |
label = "rt-n14u:blue:air"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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 0xfb0000>; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "wllll"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "ephy", "wled", "i2c"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/RT-N15.dts |
@@ -0,0 +1,124 @@ |
/dts-v1/; |
|
#include "rt2880.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
#address-cells = <1>; |
#size-cells = <1>; |
compatible = "asus,rt-n15", "ralink,rt2880-soc"; |
model = "Asus RT-N15"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "uboot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "uboot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
rtl8366s { |
compatible = "realtek,rtl8366s"; |
gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <100>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "rt-n15:blue:power"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartlite", "mdio"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
status = "okay"; |
mtd-mac-address = <&factory 0x4>; |
|
port@0 { |
mediatek,fixed-link = <1000 1 1 1>; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy0: ethernet-phy@0 { |
phy-mode = "mii"; |
reg = <0>; |
}; |
}; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/RT-N56U.dts |
@@ -0,0 +1,151 @@ |
/dts-v1/; |
|
#include "rt3883.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "asus,rt-n56u", "ralink,rt3883-soc"; |
model = "Asus RT-N56U"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
nor-flash@1c000000 { |
compatible = "cfi-flash"; |
reg = <0x1c000000 0x800000>; |
bank-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
reg = <0x0 0x0030000>; |
label = "u-boot"; |
read-only; |
}; |
|
partition@30000 { |
reg = <0x00030000 0x00010000>; |
label = "u-boot-env"; |
read-only; |
}; |
|
factory: partition@40000 { |
reg = <0x00040000 0x00010000>; |
label = "factory"; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
reg = <0x00050000 0x007b0000>; |
label = "firmware"; |
}; |
}; |
}; |
|
rtl8367 { |
compatible = "realtek,rtl8367"; |
gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
realtek,extif1 = <1 0 1 1 1 1 1 1 2>; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <100>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "rt-n56u:blue:power"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
}; |
|
lan { |
label = "rt-n56u:blue:lan"; |
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; |
}; |
|
wan { |
label = "rt-n56u:blue:wan"; |
gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "rt-n56u:blue:usb"; |
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
|
port@0 { |
mediatek,fixed-link = <1000 1 1 1>; |
}; |
}; |
|
&pci { |
status = "okay"; |
}; |
|
&pci1 { |
status = "okay"; |
|
wifi@0,0 { |
compatible = "pci1814,3091"; |
reg = <0x10000 0 0 0 0>; |
ralink,mtd-eeprom = <&factory 0x8000>; |
}; |
}; |
|
&wmac { |
status = "okay"; |
ralink,2ghz = <0>; |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/SAP-G3200U3.dts |
@@ -0,0 +1,127 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "storylink,sap-g3200u3", "mediatek,mt7621-soc"; |
model = "STORYLiNK SAP-G3200U3"; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x8000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
usb { |
label = "sap-g3200u3:green:usb"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; |
linux,default-trigger = "usbport"; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
rfkill { |
label = "rfkill"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
}; |
|
&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>; |
read-only; |
}; |
|
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>; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
ieee80211-freq-limit = <2400000 2500000>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe006>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "uart3", "jtag"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/SK-WB8.dts |
@@ -0,0 +1,128 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
#include <dt-bindings/input/input.h> |
#include <dt-bindings/gpio/gpio.h> |
|
/ { |
compatible = "samknows,whitebox-v8", "mediatek,mt7621-soc"; |
model = "SamKnows Whitebox 8"; |
|
aliases { |
led-boot = &led_wps; |
led-failsafe = &led_wps; |
led-running = &led_wps; |
led-upgrade = &led_wps; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x8000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_wps: wps { |
label = "sk-wb8:green:wps"; |
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "sk-wb8:green:usb"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; |
linux,default-trigger = "usbport"; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
wps { |
label = "wps"; |
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
reset { |
label = "reset"; |
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&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>; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0xfb0000>; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/TEW-638APB-V2.dts |
@@ -0,0 +1,107 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "trendnet,tew-638apb-v2", "ralink,rt3050-soc"; |
model = "TRENDnet TEW-638APB v2"; |
|
aliases { |
led-boot = &led_wps_green; |
led-failsafe = &led_wps_green; |
led-running = &led_wps_green; |
led-upgrade = &led_wps_green; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x400000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wps { |
label = "tew-638apb-v2:orange:wps"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
led_wps_green: wps2 { |
label = "tew-638apb-v2:green:wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/TEW-691GR.dts |
@@ -0,0 +1,125 @@ |
/dts-v1/; |
|
#include "rt3883.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "trendnet,tew-691gr", "ralink,rt3883-soc"; |
model = "TRENDnet TEW-691GR"; |
|
aliases { |
led-boot = &led_wps; |
led-failsafe = &led_wps; |
led-running = &led_wps; |
led-upgrade = &led_wps; |
}; |
|
nor-flash@1c000000 { |
compatible = "cfi-flash"; |
reg = <0x1c000000 0x800000>; |
bank-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
reg = <0x0 0x0030000>; |
label = "u-boot"; |
read-only; |
}; |
|
partition@30000 { |
reg = <0x00030000 0x00010000>; |
label = "u-boot-env"; |
read-only; |
}; |
|
factory: partition@40000 { |
reg = <0x00040000 0x00010000>; |
label = "factory"; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
reg = <0x00050000 0x007b0000>; |
label = "firmware"; |
}; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <100>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
rfkill { |
label = "rfkill"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_wps: wps { |
label = "tew-691gr:green:wps"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
|
port@0 { |
phy-handle = <&phy0>; |
phy-mode = "rgmii"; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy0: ethernet-phy@0 { |
reg = <0>; |
phy-mode = "rgmii"; |
}; |
}; |
}; |
|
&wmac { |
status = "okay"; |
ralink,mtd-eeprom = <&factory 0x0>; |
ralink,5ghz = <0>; |
mtd-mac-address = <&factory 0x4>; |
mtd-mac-address-increment = <1>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/TEW-692GR.dts |
@@ -0,0 +1,151 @@ |
/dts-v1/; |
|
#include "rt3883.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "trendnet,tew-692gr", "ralink,rt3883-soc"; |
model = "TRENDnet TEW-692GR"; |
|
aliases { |
led-boot = &led_wps_green; |
led-failsafe = &led_wps_green; |
led-running = &led_wps_green; |
led-upgrade = &led_wps_green; |
}; |
|
nor-flash@1c000000 { |
compatible = "cfi-flash"; |
reg = <0x1c000000 0x800000>; |
bank-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
reg = <0x0 0x0030000>; |
label = "u-boot"; |
read-only; |
}; |
|
partition@30000 { |
reg = <0x00030000 0x00010000>; |
label = "u-boot-env"; |
read-only; |
}; |
|
factory: partition@40000 { |
reg = <0x00040000 0x00010000>; |
label = "factory"; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
reg = <0x00050000 0x007b0000>; |
label = "firmware"; |
}; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <100>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wps { |
label = "tew-692gr:orange:wps"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
led_wps_green: wps2 { |
label = "tew-692gr:green:wps"; |
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
status = "okay"; |
mtd-mac-address = <&factory 0x4>; |
|
port@0 { |
phy-handle = <&phy0>; |
phy-mode = "rgmii"; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy0: ethernet-phy@0 { |
reg = <0>; |
phy-mode = "rgmii"; |
|
qca,ar8327-initvals = < |
0x04 0x07600000 /* PORT0 PAD MODE CTRL */ |
0x0c 0x07600000 /* PORT6 PAD MODE CTRL */ |
0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */ |
0x50 0xc437c437 /* LED Control Register 0 */ |
0x54 0xc337c337 /* LED Control Register 1 */ |
0x58 0x00000000 /* LED Control Register 2 */ |
0x5c 0x03ffff00 /* LED Control Register 3 */ |
0x7c 0x0000007e /* PORT0_STATUS */ |
0x94 0x0000007e /* PORT6 STATUS */ |
>; |
}; |
}; |
}; |
|
&pci { |
status = "okay"; |
}; |
|
&pci1 { |
status = "okay"; |
|
wifi@0,0 { |
compatible = "pci0,0"; |
reg = < 0x10000 0 0 0 0 >; |
ralink,2ghz = <0>; |
}; |
}; |
|
&wmac { |
status = "okay"; |
ralink,mtd-eeprom = <&factory 0x0>; |
ralink,5ghz = <0>; |
mtd-mac-address = <&factory 0x4>; |
mtd-mac-address-increment = <3>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/TEW-714TRU.dts |
@@ -0,0 +1,129 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "trendnet,tew-714tru", "ralink,rt5350-soc"; |
model = "TRENDnet TEW714TRU"; |
|
leds { |
compatible = "gpio-leds"; |
|
usb { |
label = "tew-714tru:red:usb"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
wifi { |
label = "tew-714tru:green:wifi"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
repeater { |
gpio-export,name = "repeater_switch"; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
}; |
|
wisp { |
gpio-export,name = "wisp_switch"; |
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x1>; |
mediatek,portdisable = <0x3e>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/TINY-AC.dts |
@@ -0,0 +1,171 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "dovado,tiny-ac", "ralink,mt7620a-soc"; |
model = "Dovado Tiny AC"; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
usb { |
label = "tiny-ac:green:usb"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
wifi { |
label = "tiny-ac:orange:wifi"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usbpower { |
gpio-export,name = "usbpower"; |
gpio-export,output = <1>; |
gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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>; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
status = "okay"; |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; |
mediatek,portmap = "llllw"; |
|
port@4 { |
status = "okay"; |
phy-mode = "rgmii"; |
phy-handle = <&phy4>; |
}; |
|
port@5 { |
status = "okay"; |
phy-mode = "rgmii"; |
phy-handle = <&phy5>; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy4: ethernet-phy@4 { |
reg = <4>; |
phy-mode = "rgmii"; |
}; |
|
phy5: ethernet-phy@5 { |
reg = <5>; |
phy-mode = "rgmii"; |
}; |
}; |
}; |
|
&gsw { |
mediatek,port4 = "gmac"; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "uartf", "nd_sd", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/TL-MR3020V3.dts |
@@ -0,0 +1,149 @@ |
/dts-v1/; |
|
#include "mt7628an.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
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 = <KEY_WPS_BUTTON>; |
}; |
|
modec1 { |
label = "sw1"; |
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
|
modec2 { |
label = "sw2"; |
gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_1>; |
}; |
}; |
|
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>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/TL-MR3420V5.dts |
@@ -0,0 +1,93 @@ |
/dts-v1/; |
|
#include "TPLINK-8M.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
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 = <KEY_RESTART>; |
}; |
|
rfkill { |
label = "rfkill"; |
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
|
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"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/TL-WR840NV5.dts |
@@ -0,0 +1,114 @@ |
/dts-v1/; |
|
#include "mt7628an.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
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 = <KEY_RESTART>; |
}; |
}; |
/* 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"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/TL-WR841NV13.dts |
@@ -0,0 +1,93 @@ |
/dts-v1/; |
|
#include "TPLINK-8M.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
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 = <KEY_RESTART>; |
}; |
|
rfkill { |
label = "rfkill"; |
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
|
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"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/TL-WR842NV5.dts |
@@ -0,0 +1,93 @@ |
/dts-v1/; |
|
#include "TPLINK-8M.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
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 = <KEY_RESTART>; |
}; |
|
rfkill { |
label = "rfkill"; |
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
|
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"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/TL-WR902ACV3.dts |
@@ -0,0 +1,114 @@ |
/dts-v1/; |
|
#include "TPLINK-8M.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
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 = <KEY_RESTART>; |
}; |
|
sw1 { |
label = "sw1"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
|
sw2 { |
label = "sw2"; |
gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_1>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
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)>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/Timecloud.dts |
@@ -0,0 +1,115 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "thunder,timecloud", "mediatek,mt7621-soc"; |
model = "Thunder Timecloud"; |
|
aliases { |
led-boot = &led_statuso; |
led-failsafe = &led_statuso; |
led-running = &led_statuso; |
led-upgrade = &led_statuso; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x10000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
statw { |
label = "timecloud:white:status"; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
}; |
|
led_statuso: stato { |
label = "timecloud:orange:status"; |
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
BTN_0 { |
label = "BTN_0"; |
gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
}; |
}; |
|
&sdhci { |
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 0xfb0000>; |
}; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uart2", "jtag"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/U7621-06-256M-16M.dts |
@@ -0,0 +1,90 @@ |
/* |
* BSD LICENSE |
* |
* Copyright(c) 2017 Kristian Evensen <kristian.evensen@gmail.com>. |
* Copyright(c) 2017 Piotr Dymacz <pepe2k@gmail.com>. |
* 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 "U7621-06.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "unielec,u7621-06-256m-16m", "unielec,u7621-06", "mediatek,mt7621-soc"; |
model = "UniElec U7621-06 (256M RAM/16M flash)"; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x10000000>; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <14000000>; |
|
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; |
}; |
|
firmware: partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0xfb0000>; |
}; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/U7621-06-512M-64M.dts |
@@ -0,0 +1,91 @@ |
/* |
* BSD LICENSE |
* |
* Copyright(c) 2017 Kristian Evensen <kristian.evensen@gmail.com>. |
* Copyright(c) 2017 Piotr Dymacz <pepe2k@gmail.com>. |
* Copyright(c) 2018 Nishant Sharma <codemarauder@gmail.com>. |
* 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 "U7621-06.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "unielec,u7621-06-512m-64m", "unielec,u7621-06", "mediatek,mt7621-soc"; |
model = "UniElec U7621-06 (512M RAM/64M flash)"; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x1c000000>, <0x20000000 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 = "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; |
}; |
|
firmware: partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3fb0000>; |
}; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/U7621-06.dtsi |
@@ -0,0 +1,120 @@ |
/* |
* BSD LICENSE |
* |
* Copyright(c) 2017 Kristian Evensen <kristian.evensen@gmail.com>. |
* Copyright(c) 2017 Piotr Dymacz <pepe2k@gmail.com>. |
* 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 "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "unielec,u7621-06", "mediatek,mt7621-soc"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
gpio-export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
modem_reset { |
gpio-export,name = "modem_reset"; |
gpio-export,output = <1>; |
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_status: status { |
label = "u7621-06:green:status"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
}; |
|
led4 { |
label = "u7621-06:green:led4"; |
gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; |
}; |
|
led5 { |
label = "u7621-06:green:led5"; |
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
mediatek,portmap = "llllw"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "jtag", "uart2", "wdt"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/U7628-01-128M-16M.dts |
@@ -0,0 +1,87 @@ |
/* |
* BSD LICENSE |
* |
* Copyright(c) 2017 Kristian Evensen <kristian.evensen@gmail.com>. |
* Copyright(c) 2017 Piotr Dymacz <pepe2k@gmail.com>. |
* 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>; |
}; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/U7628-01.dtsi |
@@ -0,0 +1,139 @@ |
/* |
* BSD LICENSE |
* |
* Copyright(c) 2017 Kristian Evensen <kristian.evensen@gmail.com>. |
* Copyright(c) 2017 Piotr Dymacz <pepe2k@gmail.com>. |
* 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 <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
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 = <KEY_RESTART>; |
}; |
}; |
|
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"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/UR-326N4G.dts |
@@ -0,0 +1,126 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "upvel,ur-326n4g", "ralink,rt3052-soc"; |
model = "UPVEL UR-326N4G"; |
|
aliases { |
led-boot = &led_wps; |
led-failsafe = &led_wps; |
led-running = &led_wps; |
led-upgrade = &led_wps; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
3g { |
label = "ur-326n4g:green:3g"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
gateway { |
label = "ur-326n4g:green:gateway"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
ap { |
label = "ur-326n4g:green:ap"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
led_wps: wps { |
label = "ur-326n4g:green:wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
station { |
label = "ur-326n4g:green:station"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset_wps { |
label = "reset_wps"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
mode { |
label = "mode"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4004>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/UR-336UN.dts |
@@ -0,0 +1,126 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "upvel,ur-336un", "ralink,rt3052-soc"; |
model = "UPVEL UR-336UN"; |
|
aliases { |
led-boot = &led_wps; |
led-failsafe = &led_wps; |
led-running = &led_wps; |
led-upgrade = &led_wps; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
3g { |
label = "ur-336un:green:3g"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
gateway { |
label = "ur-336un:green:gateway"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
ap { |
label = "ur-336un:green:ap"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
led_wps: wps { |
label = "ur-336un:green:wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
station { |
label = "ur-336un:green:station"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset_wps { |
label = "reset_wps"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
mode { |
label = "mode"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4004>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/V22RW-2X2.dts |
@@ -0,0 +1,107 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "ralink,v22rw-2x2", "ralink,rt3052-soc"; |
model = "Ralink AP-RT3052-V22RW-2X2"; |
|
aliases { |
led-boot = &led_security; |
led-failsafe = &led_security; |
led-running = &led_security; |
led-upgrade = &led_security; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_security: security { |
label = "v22rw-2x2:green:security"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "v22rw-2x2:red:wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/VOCORE.dtsi |
@@ -0,0 +1,204 @@ |
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
|
/ { |
compatible = "vocore,vocore", "ralink,rt5350-soc"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
gpio-export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
gpio0 { |
gpio-export,name = "gpio0"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; |
}; |
|
/* UARTF */ |
gpio7 { |
/* UARTF_RTS_N */ |
gpio-export,name = "gpio7"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio8 { |
/* UARTF_TXD */ |
gpio-export,name = "gpio8"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio9 { |
/* UARTF_CTS_N */ |
gpio-export,name = "gpio9"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio12 { |
/* UARTF_DCD_N */ |
gpio-export,name = "gpio12"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio13 { |
/* UARTF_DSR_N */ |
gpio-export,name = "gpio13"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio14 { |
/* UARTF_RIN */ |
gpio-export,name = "gpio14"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; |
}; |
|
/* JTAG */ |
gpio17 { |
/* JTAG_TDO */ |
gpio-export,name = "gpio17"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio18 { |
/* JTAG_TDI */ |
gpio-export,name = "gpio18"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio19 { |
/* JTAG_TMS */ |
gpio-export,name = "gpio19"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio20 { |
/* JTAG_TCLK */ |
gpio-export,name = "gpio20"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio21 { |
/* JTAG_TRST_N */ |
gpio-export,name = "gpio21"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; |
}; |
|
/* ETH LEDs */ |
gpio22 { |
/* ETH0_LED */ |
gpio-export,name = "gpio22"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio23 { |
/* ETH1_LED */ |
gpio-export,name = "gpio23"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio24 { |
/* ETH2_LED */ |
gpio-export,name = "gpio24"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio25 { |
/* ETH3_LED */ |
gpio-export,name = "gpio25"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; |
}; |
|
gpio26 { |
/* ETH4_LED */ |
gpio-export,name = "gpio26"; |
gpio-export,direction_may_change = <1>; |
gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_status: status { |
/* UARTF_RXD */ |
label = "vocore:green:status"; |
gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; |
}; |
|
eth { |
/* UARTF_DTR_N */ |
label = "vocore:orange:eth"; |
gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&i2c { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "jtag", "uartf", "led"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x11>; |
mediatek,portdisable = <0x2e>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
&spi1 { |
status = "okay"; |
|
spidev@0 { |
compatible = "linux,spidev"; |
spi-max-frequency = <10000000>; |
reg = <0>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/W150M.dts |
@@ -0,0 +1,127 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "tenda,w150m", "ralink,rt3050-soc"; |
model = "Tenda W150M"; |
|
aliases { |
led-boot = &led_ap; |
led-failsafe = &led_ap; |
led-running = &led_ap; |
led-upgrade = &led_ap; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3c8000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
3grouter { |
label = "w150m:blue:3grouter"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
led_ap: ap { |
label = "w150m:blue:ap"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
wisprouter { |
label = "w150m:blue:wisprouter"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wirelessrouter { |
label = "w150m:blue:wirelessrouter"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
3g { |
label = "w150m:blue:3g"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
wpsreset { |
label = "w150m:blue:wpsreset"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
mode { |
label = "mode"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/W502U.dts |
@@ -0,0 +1,117 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "alfanetworks,w502u", "ralink,rt3052-soc"; |
model = "ALFA Networks W502U"; |
|
aliases { |
led-boot = &led_wps; |
led-failsafe = &led_wps; |
led-running = &led_wps; |
led-upgrade = &led_wps; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
usb { |
label = "w502u:blue:usb"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
trigger-sources = <&otg_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
led_wps: wps { |
label = "w502u:blue:wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&esw { |
mediatek,portmap = <0x3e>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WCR-1166DS.dts |
@@ -0,0 +1,181 @@ |
/dts-v1/; |
|
#include "mt7628an.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
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 = <KEY_WPS_BUTTON>; |
}; |
|
ap { |
label = "ap"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
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"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WCR150GN.dts |
@@ -0,0 +1,113 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "sparklan,wcr150gn", "ralink,rt3050-soc"; |
model = "Sparklan WCR-150GN"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
user { |
label = "wcr-150gn:amber:user"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
trigger-sources = <&otg_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
led_power: power { |
label = "wcr-150gn:amber:power"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WE1026-5G-16M.dts |
@@ -0,0 +1,81 @@ |
/* |
* BSD LICENSE |
* |
* Copyright(c) 2017 Kristian Evensen <kristian.evensen@gmail.com>. |
* 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 "WE1026-5G.dtsi" |
|
/ { |
compatible = "zbtlink,we1026-5g-16m", "ralink,mt7620a-soc"; |
model = "ZBT WE1026-5G (16M)"; |
}; |
|
&spi0 { |
status = "okay"; |
|
en25q128@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; |
}; |
|
firmware: partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0xfb0000>; |
}; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WE1026-5G.dtsi |
@@ -0,0 +1,125 @@ |
/* |
* BSD LICENSE |
* |
* Copyright(c) 2017 Kristian Evensen <kristian.evensen@gmail.com>. |
* 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 "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "zbtlink,we1026-5g", "ralink,mt7620a-soc"; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
lan { |
label = "we1026-5g:green:lan"; |
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "we1026-5g:green:usb"; |
gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
wifi { |
label = "we1026-5g:green:wifi"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "i2c", "uartf", "spi refclk", "ephy", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
wifi@0,0 { |
compatible = "pci14c3,7662"; |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WF-2881.dts |
@@ -0,0 +1,127 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "netis,wf-2881", "mediatek,mt7621-soc"; |
model = "NETIS WF-2881"; |
|
aliases { |
led-boot = &led_wps; |
led-failsafe = &led_wps; |
led-running = &led_wps; |
led-upgrade = &led_wps; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x8000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
usb { |
label = "wf-2881:green:usb"; |
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; |
linux,default-trigger = "usbport"; |
}; |
|
led_wps: wps { |
label = "wf-2881:green:wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&nand { |
status = "okay"; |
|
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>; |
read-only; |
}; |
|
partition@80000 { |
label = "config"; |
reg = <0x80000 0x80000>; |
read-only; |
}; |
|
factory: partition@100000 { |
label = "factory"; |
reg = <0x100000 0x40000>; |
read-only; |
}; |
|
partition@140000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x140000 0x7E40000>; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
ieee80211-freq-limit = <2400000 2500000>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe006>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "uart3", "jtag"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WHR-1166D.dts |
@@ -0,0 +1,182 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "buffalo,whr-1166d", "ralink,mt7620a-soc"; |
model = "Buffalo WHR-1166D"; |
|
aliases { |
led-boot = &led_power_green; |
led-failsafe = &led_power_green; |
led-running = &led_power_green; |
led-upgrade = &led_power_green; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
power { |
label = "whr-1166d:red:power"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
wifi { |
label = "whr-1166d:green:wifi"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
led_power_green: power2 { |
label = "whr-1166d:green:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wifi2 { |
label = "whr-1166d:orange:wifi"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
}; |
|
internet { |
label = "whr-1166d:green:internet"; |
gpios = <&gpio2 17 GPIO_ACTIVE_LOW>; |
}; |
|
router { |
label = "whr-1166d:orange:router"; |
gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; |
}; |
|
router2 { |
label = "whr-1166d:green:router"; |
gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
aoss { |
label = "aoss"; |
gpios = <&gpio2 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
ap { |
label = "ap"; |
gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
|
bridge { |
label = "bridge"; |
gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
}; |
}; |
|
&gpio2 { |
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 0xfb0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartf", "wled", "nd_sd"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii1_pins &mdio_pins>; |
|
port@5 { |
status = "okay"; |
phy-handle = <&phy5>; |
phy-mode = "rgmii"; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy5: ethernet-phy@5 { |
reg = <5>; |
phy-mode = "rgmii-rxid"; |
}; |
}; |
}; |
|
&gsw { |
mediatek,port4 = "ephy"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
wifi@0,0 { |
compatible = "pci0,0"; |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WHR-300HP2.dts |
@@ -0,0 +1,157 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "buffalo,whr-300hp2", "ralink,mt7620a-soc"; |
model = "Buffalo WHR-300HP2"; |
|
aliases { |
led-boot = &led_power_green; |
led-failsafe = &led_power_green; |
led-running = &led_power_green; |
led-upgrade = &led_power_green; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
power { |
label = "whr-300hp2:red:power"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
wifi { |
label = "whr-300hp2:green:wifi"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
led_power_green: power2 { |
label = "whr-300hp2:green:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wifi2 { |
label = "whr-300hp2:orange:wifi"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
}; |
|
internet { |
label = "whr-300hp2:green:internet"; |
gpios = <&gpio2 17 GPIO_ACTIVE_LOW>; |
}; |
|
router { |
label = "whr-300hp2:green:router"; |
gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; |
}; |
|
router2 { |
label = "whr-300hp2:orange:router"; |
gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
aoss { |
label = "aoss"; |
gpios = <&gpio2 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
ap { |
label = "ap"; |
gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
|
bridge { |
label = "bridge"; |
gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
}; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
mediatek,portmap = "llllw"; |
}; |
|
&gsw { |
mediatek,port4 = "ephy"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
pinctrl-names = "default"; |
pinctrl-0 = <&pa_pins>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WHR-600D.dts |
@@ -0,0 +1,168 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "buffalo,whr-600d", "ralink,mt7620a-soc"; |
model = "Buffalo WHR-600D"; |
|
aliases { |
led-boot = &led_power_green; |
led-failsafe = &led_power_green; |
led-running = &led_power_green; |
led-upgrade = &led_power_green; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
power { |
label = "whr-600d:red:power"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
wifi { |
label = "whr-600d:green:wifi"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
led_power_green: power2 { |
label = "whr-600d:green:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wifi2 { |
label = "whr-600d:orange:wifi"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
}; |
|
internet { |
label = "whr-600d:green:internet"; |
gpios = <&gpio2 17 GPIO_ACTIVE_LOW>; |
}; |
|
router { |
label = "whr-600d:green:router"; |
gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; |
}; |
|
router2 { |
label = "whr-600d:orange:router"; |
gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
aoss { |
label = "aoss"; |
gpios = <&gpio2 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
ap { |
label = "ap"; |
gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
|
bridge { |
label = "bridge"; |
gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
}; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "llllw"; |
}; |
|
&gsw { |
mediatek,port4 = "ephy"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
wifi@0,0 { |
compatible = "pci1814,5592"; |
reg = <0x0000 0 0 0 0>; |
ralink,mtd-eeprom = <&factory 0x8000>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WHR-G300N.dts |
@@ -0,0 +1,129 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "buffalo,whr-g300n", "ralink,rt3052-soc"; |
model = "Buffalo WHR-G300N"; |
|
aliases { |
led-boot = &led_diag; |
led-failsafe = &led_diag; |
led-upgrade = &led_diag; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3a0000>; |
}; |
|
partition@3f0000 { |
label = "user"; |
reg = <0x3f0000 0x10000>; |
read-only; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_diag: diag { |
label = "whr-g300n:red:diag"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
router { |
label = "whr-g300n:green:router"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
security { |
label = "whr-g300n:amber:security"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
aoss { |
label = "aoss"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
router-off { |
label = "router-off"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_2>; |
}; |
|
router-on { |
label = "router-on"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_3>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WIZFI630A.dts |
@@ -0,0 +1,158 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "wiznet,wizfi630a", "ralink,rt5350-soc"; |
model = "WIZnet WizFi630A"; |
|
aliases { |
led-boot = &led_run; |
led-failsafe = &led_run; |
led-running = &led_run; |
led-upgrade = &led_run; |
}; |
|
chosen { |
bootargs = "console=ttyS1,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_run: run { |
label = "wizfi630a::run"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "wizfi630a::wps"; |
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
}; |
|
uart1 { |
label = "wizfi630a::uart1"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
}; |
|
uart2 { |
label = "wizfi630a::uart2"; |
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
scm1 { |
label = "SCM1"; |
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
|
scm2 { |
label = "SCM2"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_1>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
#size-cells = <1>; |
label = "uboot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
#size-cells = <1>; |
label = "uboot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
#size-cells = <1>; |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
#size-cells = <1>; |
label = "firmware"; |
reg = <0x50000 0xfb0000>; |
}; |
}; |
}; |
}; |
|
&uart { |
status = "okay"; |
pinctrl-names = "default"; |
pinctrl-0 = <&uartf_pins>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag" ; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x17>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WL-330N.dts |
@@ -0,0 +1,110 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "asus,wl-330n", "ralink,rt3050-soc"; |
model = "Asus WL-330N"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
link { |
label = "wl-330n:blue:link"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
led_power: power { |
label = "wl-330n:blue:power"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x3e>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WL-330N3G.dts |
@@ -0,0 +1,119 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "asus,wl-330n3g", "ralink,rt3050-soc"; |
model = "Asus WL-330N3G"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
3g { |
label = "wl-330n3g:blue:3g"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
3g2 { |
label = "wl-330n3g:red:3g"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
led_power: power { |
label = "wl-330n3g:blue:power"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x3e>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WL-351.dts |
@@ -0,0 +1,133 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "sitecom,wl-351", "ralink,rt3052-soc"; |
model = "Sitecom WL-351 v1 002"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "wl-351:amber:power"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
unpopulated { |
label = "wl-351:amber:unpopulated"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
unpopulated2 { |
label = "wl-351:blue:unpopulated"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
rtl8366rb { |
compatible = "realtek,rtl8366rb"; |
gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii_pins>; |
}; |
|
&esw { |
ralink,rgmii = <1>; |
mediatek,portmap = <0x3f>; |
ralink,fct2 = <0x0002500c>; |
/* |
* ext phy base addr 31, rx/tx clock skew 0, |
* turbo mii off, rgmi 3.3v off, port 5 polling off |
* port5: enabled, gige, full-duplex, rx/tx-flow-control |
* port6: enabled, gige, full-duplex, rx/tx-flow-control |
*/ |
ralink,fpa2 = <0x1f003fff>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WL-WN570HA1.dts |
@@ -0,0 +1,135 @@ |
/dts-v1/; |
#include <dt-bindings/input/input.h> |
#include <dt-bindings/gpio/gpio.h> |
|
#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 = <KEY_RESTART>; |
}; |
}; |
|
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"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WL-WN575A3.dts |
@@ -0,0 +1,130 @@ |
/dts-v1/; |
#include <dt-bindings/input/input.h> |
#include <dt-bindings/gpio/gpio.h> |
|
#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 = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
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"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WLI-TX4-AG300N.dts |
@@ -0,0 +1,125 @@ |
/dts-v1/; |
|
#include "rt2880.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
#address-cells = <1>; |
#size-cells = <1>; |
compatible = "buffalo,wli-tx4-ag300n", "ralink,rt2880-soc"; |
model = "Buffalo WLI-TX4-AG300N"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "uboot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "uboot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <100>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
bandwidth { |
label = "bandwidth"; |
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RESTART>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
diag { |
label = "wli-tx4-ag300n:red:diag"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
}; |
|
led_power: power { |
label = "wli-tx4-ag300n:blue:power"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
security { |
label = "wli-tx4-ag300n:blue:security"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
ðernet { |
status = "okay"; |
mtd-mac-address = <&factory 0x4>; |
|
port@0 { |
mediatek,fixed-link = <100 1 1 1>; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy0: ethernet-phy@0 { |
phy-mode = "mii"; |
reg = <0>; |
}; |
}; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WLR-6000.dts |
@@ -0,0 +1,186 @@ |
/dts-v1/; |
|
#include "rt3883.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "sitecom,wlr-6000", "ralink,rt3883-soc"; |
model = "Sitecom WLR-6000"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "wlr-6000:red:power"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
}; |
|
ops { |
label = "wlr-6000:white:ops"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb { |
gpio-export,name = "usb"; |
gpio-export,output = <1>; |
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
status = "okay"; |
mtd-mac-address = <&factory 0x8004>; |
mtd-mac-address-increment = <1>; |
|
port@0 { |
phy-handle = <&phy0>; |
phy-mode = "rgmii"; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy0: ethernet-phy@0 { |
reg = <0>; |
phy-mode = "rgmii"; |
|
qca,ar8327-initvals = < |
0x04 0x07600000 /* PORT0 PAD MODE CTRL */ |
0x0c 0x07600000 /* PORT6 PAD MODE CTRL */ |
0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */ |
0x50 0xc437c437 /* LED Control Register 0 */ |
0x54 0xc337c337 /* LED Control Register 1 */ |
0x58 0x00000000 /* LED Control Register 2 */ |
0x5c 0x03ffff00 /* LED Control Register 3 */ |
0x7c 0x0000007e /* PORT0_STATUS */ |
0x94 0x0000007e /* PORT6 STATUS */ |
>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <8600000>; |
m25p,fast-read; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x713000>; |
}; |
|
partition@763000 { |
label = "manufacture"; |
reg = <0x763000 0x7D000>; |
read-only; |
}; |
|
partition@7E0000 { |
label = "backup"; |
reg = <0x7E0000 0x10000>; |
read-only; |
}; |
|
partition@7F0000 { |
label = "storage"; |
reg = <0x7F0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
&pci { |
status = "okay"; |
}; |
|
&pci1 { |
status = "okay"; |
|
wifi@0,0 { |
compatible = "pci1814,3091"; |
reg = <0x10000 0 0 0 0>; |
ralink,mtd-eeprom = <&factory 0x8000>; |
}; |
}; |
|
&wmac { |
status = "okay"; |
ralink,2ghz = <0>; |
ralink,mtd-eeprom = <&factory 0x0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WMR-300.dts |
@@ -0,0 +1,116 @@ |
/dts-v1/; |
|
#include "mt7620n.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "buffalo,wmr-300", "ralink,mt7620n-soc"; |
model = "Buffalo WMR-300"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
aoss1 { |
label = "wmr-300:red:aoss"; |
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; |
}; |
|
aoss2 { |
label = "wmr-300:green:aoss"; |
gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; |
}; |
|
led_status: status { |
label = "wmr-300:green:status"; |
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
aoss { |
label = "aoss"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "wllll"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "i2c", "ephy"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WN-AC1167GR.dts |
@@ -0,0 +1,216 @@ |
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "iodata,wn-ac1167gr", "ralink,mt7620a-soc"; |
model = "I-O DATA WN-AC1167GR"; |
|
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>; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "wn-ac1167gr:green:power"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
default-state = "on"; |
}; |
|
wlan2g { |
label = "wn-ac1167gr:green:wlan2g"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
}; |
|
notification { |
label = "wn-ac1167gr:green:notification"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
wlan5g { |
label = "wn-ac1167gr:green:wlan5g"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
auto { |
label = "auto"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
}; |
}; |
|
&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 0x8000>; |
read-only; |
}; |
|
iNIC_rf: partition@48000 { |
label = "iNIC_rf"; |
reg = <0x48000 0x8000>; |
read-only; |
}; |
|
partition@50000 { |
label = "NoUsed"; |
reg = <0x50000 0x20000>; |
read-only; |
}; |
|
partition@70000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x70000 0x6b4000>; |
}; |
|
partition@724000 { |
label = "manufacture"; |
reg = <0x724000 0x8c000>; |
read-only; |
}; |
|
partition@7b0000 { |
label = "backup"; |
reg = <0x7b0000 0x10000>; |
read-only; |
}; |
|
partition@7c0000 { |
label = "storage"; |
reg = <0x7c0000 0x40000>; |
read-only; |
}; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii1_pins &mdio_pins>; |
mtd-mac-address = <&Factory 0x4>; |
|
port@5 { |
status = "okay"; |
mediatek,fixed-link = <1000 1 1 1>; |
phy-mode = "rgmii"; |
}; |
|
mdio-bus { |
#address-cells = <1>; |
#size-cells = <0>; |
status = "okay"; |
|
ethernet-phy@0 { |
reg = <0>; |
phy-mode = "rgmii"; |
}; |
|
ethernet-phy@1 { |
reg = <1>; |
phy-mode = "rgmii"; |
}; |
|
ethernet-phy@2 { |
reg = <2>; |
phy-mode = "rgmii"; |
}; |
|
ethernet-phy@3 { |
reg = <3>; |
phy-mode = "rgmii"; |
}; |
|
ethernet-phy@4 { |
reg = <4>; |
phy-mode = "rgmii"; |
}; |
|
ethernet-phy@1f { |
reg = <0x1f>; |
phy-mode = "rgmii"; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
wifi@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&iNIC_rf 0x0>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&Factory 0x0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WN-AX1167GR.dts |
@@ -0,0 +1,172 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "iodata,wn-ax1167gr", "mediatek,mt7621-soc"; |
model = "I-O DATA WN-AX1167GR"; |
|
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>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "wn-ax1167gr:green:power"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "wn-ax1167gr:green:wps"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
auto { |
label = "auto"; |
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
|
custom { |
label = "custom"; |
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "Bootloader"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "Config"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
Factory: partition@40000 { |
label = "Factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
iNIC_rf: partition@50000 { |
label = "iNIC_rf"; |
reg = <0x50000 0x10000>; |
read-only; |
}; |
|
partition@60000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x60000 0xf30000>; |
}; |
|
partition@f90000 { |
label = "Key"; |
reg = <0xf90000 0x10000>; |
read-only; |
}; |
|
partition@fa0000 { |
label = "backup"; |
reg = <0xfa0000 0x10000>; |
read-only; |
}; |
|
partition@fb0000 { |
label = "storage"; |
reg = <0xfb0000 0x50000>; |
read-only; |
}; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&iNIC_rf 0x4>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "uart2", "uart3", "jtag"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&iNIC_rf 0x0>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&Factory 0x0>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&xhci { |
status = "disabled"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WN-GX300GR.dts |
@@ -0,0 +1,164 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "iodata,wn-gx300gr", "mediatek,mt7621-soc"; |
model = "I-O DATA WN-GX300GR"; |
|
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>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "wn-gx300gr:green:power"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "wn-gx300gr:green:wps"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
auto { |
label = "auto"; |
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
|
custom { |
label = "custom"; |
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "Bootloader"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "Config"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
Factory: partition@40000 { |
label = "Factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
label = "iNIC_rf"; |
reg = <0x50000 0x10000>; |
read-only; |
}; |
|
partition@60000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x60000 0x770000>; |
}; |
|
partition@7d0000 { |
label = "Key"; |
reg = <0x7d0000 0x10000>; |
read-only; |
}; |
|
partition@7e0000 { |
label = "backup"; |
reg = <0x7e0000 0x10000>; |
read-only; |
}; |
|
partition@7f0000 { |
label = "storage"; |
reg = <0x7f0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&Factory 0x4>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "uart2", "uart3", "jtag"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&Factory 0x0>; |
}; |
}; |
|
&xhci { |
status = "disabled"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WN3000RPV3.dts |
@@ -0,0 +1,153 @@ |
/* This file is released into the public domain */ |
|
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/input/input.h> |
#include <dt-bindings/gpio/gpio.h> |
|
/ { |
compatible = "netgear,wn3000rp-v3", "ralink,mt7620a-soc"; |
model = "Netgear WN3000RPv3"; |
|
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,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power_green: power_g { |
label = "wn3000rpv3:green:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
default-state = "on"; |
}; |
|
power_r { |
label = "wn3000rpv3:red:power"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
client_g { |
label = "wn3000rpv3:green:client"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
client_r { |
label = "wn3000rpv3:red:client"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
}; |
|
router_g { |
label = "wn3000rpv3:green:router"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
router_r { |
label = "wn3000rpv3:red:router"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "wn3000rpv3:green:wps"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
|
l_arrow { |
label = "wn3000rpv3:blue:leftarrow"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
r_arrow { |
label = "wn3000rpv3:blue:rightarrow"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
partition@40000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x40000 0x7b0000>; |
}; |
|
art: partition@7f0000 { |
label = "art"; |
reg = <0x7f0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&art 0x0>; |
}; |
|
&wmac { |
mtd-mac-address = <&art 0x6>; |
ralink,mtd-eeprom = <&art 0x1000>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "i2c", "uartf", "spi refclk"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WNCE2001.dts |
@@ -0,0 +1,149 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "netgear,wnce2001", "ralink,rt3052-soc"; |
model = "Netgear WNCE2001"; |
|
aliases { |
led-boot = &led_power_green; |
led-failsafe = &led_power_green; |
led-running = &led_power_green; |
led-upgrade = &led_power_green; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power_green: power-green { |
label = "wnce2001:green:power"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
power-red { |
label = "wnce2001:red:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wlan-green { |
label = "wnce2001:green:wlan"; |
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
}; |
|
wlan-red { |
label = "wnce2001:red:wlan"; |
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
rt { |
label = "rt"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
|
ap { |
label = "ap"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_1>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
factory: partition@30000 { |
label = "factory"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
partition@40000 { |
label = "config"; |
reg = <0x40000 0x20000>; |
read-only; |
}; |
|
partition@60000 { |
label = "language"; |
reg = <0x60000 0x30000>; |
read-only; |
}; |
|
partition@90000 { |
label = "pot"; |
reg = <0x90000 0x10000>; |
read-only; |
}; |
|
partition@a0000 { |
label = "checksum"; |
reg = <0xa0000 0x10000>; |
}; |
|
partition@b0000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0xb0000 0x350000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WNDR3700V5.dts |
@@ -0,0 +1,147 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "netgear,wndr3700-v5", "mediatek,mt7621-soc"; |
model = "Netgear WNDR3700v5"; |
|
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,57600 maxcpus=2"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wps { |
label = "wndr3700v5:green:wps"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
led_power: power { |
label = "wndr3700v5:green:power"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
wps { |
label = "wndr3700v5:wps"; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
wifi { |
label = "wndr3700v5:wifi"; |
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RFKILL>; |
}; |
|
reset { |
label = "wndr3700v5:reset"; |
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usbpower { |
gpio-export,name = "usbpower"; |
gpio-export,output = <1>; |
gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
mx25l12805d@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@f30000 { |
label = "factory"; |
reg = <0xf30000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0xee0000>; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x0000000c>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "rgmii2", "mdio", "wdt"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WR1200JS.dts |
@@ -0,0 +1,146 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "youhua,wr1200js", "mediatek,mt7621-soc"; |
model = "YouHua WR1200JS"; |
|
aliases { |
led-boot = &led_wps; |
led-failsafe = &led_wps; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x8000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
internet { |
label = "wr1200js:blue:internet"; |
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
}; |
|
led_wps: wps { |
label = "wr1200js:blue:wps"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "wr1200js:blue:usb"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; |
linux,default-trigger = "usbport"; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
wifi { |
label = "wifi"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RFKILL>; |
}; |
}; |
}; |
|
&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>; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
|
led { |
led-sources = <2>; |
led-active-low; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uart2", "uart3", "wdt"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WR1201.dts |
@@ -0,0 +1,158 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "mtc,wr1201", "mediatek,mt7621-soc"; |
model = "MTC Wireless Router WR1201"; |
|
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,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "wr1201:green:power"; |
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "wr1201:green:usb"; |
gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; |
trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; |
linux,default-trigger = "usbport"; |
}; |
|
eth_link { |
label = "wr1201:green:eth_link"; |
gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; |
}; |
|
wps { |
label = "wr1201:green:wps"; |
gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 25 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&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 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 0xfa0000>; |
}; |
|
partition@ff0000 { |
label = "Second_Config"; |
reg = <0xff0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
wifi@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
|
led { |
led-sources = <2>; |
led-active-low; |
}; |
}; |
}; |
|
&pcie1 { |
wifi@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
ieee80211-freq-limit = <2400000 2500000>; |
|
led { |
led-sources = <2>; |
led-active-low; |
}; |
}; |
}; |
|
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "rgmii2"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WR6202.dts |
@@ -0,0 +1,119 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "accton,wr6202", "ralink,rt3052-soc"; |
model = "AWB WR6202"; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wps { |
label = "wr6202:blue:wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
3g { |
label = "wr6202:blue:3g"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb { |
gpio-export,name = "usb"; |
gpio-export,output = <0>; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&esw { |
mediatek,portmap = <0x3e>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WRC-1167GHBK2-S.dts |
@@ -0,0 +1,155 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "elecom,wrc-1167ghbk2-s", "mediatek,mt7621-soc"; |
model = "ELECOM WRC-1167GHBK2-S"; |
|
aliases { |
led-boot = &led_power_green; |
led-failsafe = &led_power_green; |
led-running = &led_power_green; |
led-upgrade = &led_power_green; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x8000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wlan2g { |
label = "wrc-1167ghbk2-s:white:wlan2g"; |
gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; |
}; |
|
wlan5g { |
label = "wrc-1167ghbk2-s:white:wlan5g"; |
gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; |
}; |
|
led_power_green: power_green { |
label = "wrc-1167ghbk2-s:green:power"; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
}; |
|
power_blue { |
label = "wrc-1167ghbk2-s:blue:power"; |
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; |
}; |
|
wps { |
label = "wrc-1167ghbk2-s:red:wps"; |
gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; |
}; |
|
power_red { |
label = "wrc-1167ghbk2-s:red:power"; |
gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
}; |
|
&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 0xf20000>; |
}; |
|
partition@f70000 { |
label = "user_data"; |
reg = <0xf70000 0x80000>; |
read-only; |
}; |
|
partition@ff0000 { |
label = "NVRAM"; |
reg = <0xff0000 0x10000>; |
read-only; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uart3", "jtag", "wdt"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
/* |
* WRC-1167GHBK2-S has MT7615D for 2.4/5 GHz wifi, |
* but it's not supported in OpenWrt. |
*/ |
}; |
|
&xhci { |
status = "disabled"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WRH-300CR.dts |
@@ -0,0 +1,137 @@ |
/dts-v1/; |
|
#include "mt7620n.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "elecom,wrh-300cr", "ralink,mt7620n-soc"; |
model = "ELECOM WRH-300CR"; |
|
aliases { |
led-boot = &led_wps; |
led-failsafe = &led_wps; |
led-running = &led_wps; |
led-upgrade = &led_wps; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_wps: wps { |
label = "wrh-300cr:green:wps"; |
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; |
}; |
|
ethernet { |
label = "wrh-300cr:green:ethernet"; |
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; |
}; |
|
wlan { |
label = "wrh-300cr:green:wlan"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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>; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
label = "recover"; |
reg = <0x50000 0x1c0000>; |
read-only; |
}; |
|
partition@210000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x210000 0xdf0000>; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x2e>; |
mediatek,portmap = "llllw"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "i2c", "ephy", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WSR-1166.dts |
@@ -0,0 +1,197 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "buffalo,wsr-1166dhp", "mediatek,mt7621-soc"; |
model = "Buffalo WSR-1166DHP"; |
|
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,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
internet_g { |
label = "wsr-1166:green:internet"; |
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; |
}; |
|
router_g { |
label = "wsr-1166:green:router"; |
gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; |
}; |
|
router_o { |
label = "wsr-1166:orange:router"; |
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; |
}; |
|
internet_o { |
label = "wsr-1166:orange:internet"; |
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; |
}; |
|
wifi_o { |
label = "wsr-1166:orange:wifi"; |
gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; |
}; |
|
led_power: power { |
label = "wsr-1166:green:power"; |
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
}; |
|
diag { |
label = "wsr-1166:orange:diag"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
|
wifi_g { |
label = "wsr-1166:green:wifi"; |
gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
power { |
label = "power"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_POWER>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
aoss { |
label = "aoss"; |
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
auto { |
label = "mode"; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
|
ap { |
label = "ap"; |
gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
|
router { |
label = "router"; |
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
}; |
|
gpio_poweroff { |
compatible = "gpio-poweroff"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "openwrt,trx"; |
label = "firmware"; |
reg = <0x50000 0xf90000>; |
}; |
|
partition@fe0000 { |
label = "board_data"; |
reg = <0xfe0000 0x20000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci"; |
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>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
}; |
}; |
|
&xhci { |
status = "disabled"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WSR-600.dts |
@@ -0,0 +1,191 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "buffalo,wsr-600dhp", "mediatek,mt7621-soc"; |
model = "Buffalo WSR-600DHP"; |
|
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>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "wsr-600:green:power"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
wifi_o { |
label = "wsr-600:orange:wifi"; |
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; |
}; |
|
diag { |
label = "wsr-600:orange:diag"; |
gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; |
}; |
|
wifi_g { |
label = "wsr-600:green:wifi"; |
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; |
}; |
|
router_o { |
label = "wsr-600:orange:router"; |
gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; |
}; |
|
router_g { |
label = "wsr-600:green:router"; |
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
}; |
|
internet_o { |
label = "wsr-600:orange:internet"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
|
internet_g { |
label = "wsr-600:green:internet"; |
gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
power { |
label = "power"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_POWER>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
aoss { |
label = "aoss"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
auto { |
label = "mode"; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
|
ap { |
label = "ap"; |
gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
|
router { |
label = "router"; |
gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
}; |
|
gpio_poweroff { |
compatible = "gpio-poweroff"; |
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 = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0xfb0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
rt5592@0,0 { |
reg = <0x0000 0 0 0 0>; |
ralink,mtd-eeprom = <&factory 0x8000>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
}; |
}; |
|
&xhci { |
status = "disabled"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/WZR-AGL300NH.dts |
@@ -0,0 +1,149 @@ |
/dts-v1/; |
|
#include "rt2880.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
#address-cells = <1>; |
#size-cells = <1>; |
compatible = "buffalo,wzr-agl300nh", "ralink,rt2880-soc"; |
model = "Buffalo WZR-AGL300NH"; |
|
aliases { |
led-boot = &led_router; |
led-failsafe = &led_router; |
led-running = &led_router; |
led-upgrade = &led_router; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "uboot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "uboot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
rtl8366s { |
compatible = "realtek,rtl8366s"; |
gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>; |
gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <100>; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
router { |
label = "router_switch"; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
linux,code = <BTN_0>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_router: router { |
label = "wzr-agl300nh:green:router"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
}; |
|
diag { |
label = "wzr-agl300nh:red:diag"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
security_g { |
label = "wzr-agl300nh:orange:security_g"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
security_n { |
label = "wzr-agl300nh:orange:security_n"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartlite", "mdio"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
status = "okay"; |
mtd-mac-address = <&factory 0x4>; |
|
port@0 { |
mediatek,fixed-link = <1000 1 1 1>; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy0: ethernet-phy@0 { |
phy-mode = "mii"; |
reg = <0>; |
}; |
}; |
}; |
|
&pci { |
status = "okay"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
/branches/18.06.1/target/linux/ramips/dts/X5.dts |
@@ -0,0 +1,148 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "poray,x5", "ralink,rt5350-soc"; |
model = "Poray X5"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "x5:green:power"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
20 { |
label = "x5:green:20"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
50 { |
label = "x5:green:50"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
80 { |
label = "x5:green:80"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
bat { |
label = "bat"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
mode { |
label = "mode"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb-mode { |
gpio-export,name = "usb-mode"; |
gpio-export,output = <0>; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
mediatek,led_polarity = <1>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
ralink,led-polarity = <1>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/X8.dts |
@@ -0,0 +1,109 @@ |
/dts-v1/; |
|
#include "rt5350.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "poray,x8", "ralink,rt5350-soc"; |
model = "Poray X8"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "x8:green:power"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "jtag", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
mediatek,led_polarity = <1>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
ralink,led-polarity = <1>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/XDXRN502J.dts |
@@ -0,0 +1,105 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "unbranded,xdxrn502j", "ralink,rt3052-soc"; |
model = "XDX RN502J"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wifi { |
label = "xdxrn502j:green:wifi"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
led_power: power { |
label = "xdxrn502j:green:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&esw { |
mediatek,portmap = <0x3e>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/Y1S.dts |
@@ -0,0 +1,115 @@ |
/dts-v1/; |
|
#include "Y1.dtsi" |
|
/ { |
compatible = "lenovo,newifi-y1s", "lenovo,newifi-y1", "ralink,mt7620a-soc"; |
model = "Lenovo Y1S"; |
|
aliases { |
led-boot = &led_power_blue; |
led-failsafe = &led_power_blue; |
led-running = &led_power_blue; |
led-upgrade = &led_power_blue; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb0 { |
gpio-export,name = "usb0"; |
gpio-export,output = <1>; |
gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>; |
}; |
usb1 { |
gpio-export,name = "usb1"; |
gpio-export,output = <1>; |
gpios = <&gpio2 15 GPIO_ACTIVE_HIGH>; |
}; |
usb2 { |
gpio-export,name = "usb2"; |
gpio-export,output = <1>; |
gpios = <&gpio2 16 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
power1 { |
label = "y1s:yellow:power"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
led_power_blue: power2 { |
label = "y1s:blue:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
wlan1 { |
label = "y1s:yellow:wifi"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
|
wlan2 { |
label = "y1s:blue:wifi"; |
gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; |
}; |
|
usb1 { |
label = "y1s:yellow:usb"; |
gpios = <&gpio2 13 GPIO_ACTIVE_LOW>; |
}; |
|
usb2 { |
label = "y1s:blue:usb"; |
gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
internet { |
label = "y1s:blue:internet"; |
gpios = <&gpio2 11 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
ðernet { |
status = "okay"; |
mtd-mac-address = <&factory 0x4>; |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; |
mediatek,portmap = "wllll"; |
|
port@4 { |
status = "okay"; |
phy-handle = <&phy4>; |
phy-mode = "rgmii"; |
}; |
|
port@5 { |
status = "okay"; |
phy-handle = <&phy5>; |
phy-mode = "rgmii"; |
}; |
|
mdio-bus { |
status = "okay"; |
|
phy4: ethernet-phy@4 { |
reg = <4>; |
phy-mode = "rgmii"; |
}; |
|
phy5: ethernet-phy@5 { |
reg = <5>; |
phy-mode = "rgmii"; |
}; |
}; |
}; |
|
&gsw { |
mediatek,port4 = "gmac"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/YOUKU-YK1.dts |
@@ -0,0 +1,138 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "youku,yk1", "ralink,mt7620a-soc"; |
model = "YOUKU YK1"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
leds { |
compatible = "gpio-leds"; |
wan { |
label = "youku-yk1:blue:wan"; |
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; |
}; |
air { |
label = "youku-yk1:blue:air"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
usb { |
label = "youku-yk1:blue:usb"; |
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
led_power: power { |
label = "youku-yk1:blue:power"; |
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "mx25l25635f", "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <25000000>; |
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 0x1fb0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "i2c", "rgmii1", "ephy", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "llllw"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ZBT-APE522II.dts |
@@ -0,0 +1,144 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "zbtlink,zbt-ape522ii", "ralink,mt7620a-soc"; |
model = "ZBT-APE522II"; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
sys1 { |
label = "zbt-ape522ii:green:sys1"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
sys2 { |
label = "zbt-ape522ii:green:sys2"; |
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
}; |
|
sys3 { |
label = "zbt-ape522ii:green:sys3"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
sys4 { |
label = "zbt-ape522ii:green:sys4"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
|
wlan2g4 { |
label = "zbt-ape522ii:green:wlan2g4"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
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>; |
}; |
|
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 0xf80000>; |
}; |
}; |
}; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "wllll"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
pinctrl-names = "default"; |
pinctrl-0 = <&pa_pins>; |
}; |
|
&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 = "wled", "i2c", "uartf", "wdt"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ZBT-CPE102.dts |
@@ -0,0 +1,129 @@ |
/dts-v1/; |
|
#include "mt7620n.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "zbtlink,zbt-cpe102", "ralink,mt7620n-soc"; |
model = "Zbtlink ZBT-CPE102"; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
|
aliases { |
led-boot = &led_4g_0; |
led-failsafe = &led_4g_0; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_4g_0: 4g-0 { |
label = "zbt-cpe102:green:4g-0"; |
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
}; |
|
4g-1 { |
label = "zbt-cpe102:green:4g-1"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
}; |
|
4g-2 { |
label = "zbt-cpe102:green:4g-2"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
en25q64@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 0x760000>; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "wllll"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "i2c", "spi refclk", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ZBT-WA05.dts |
@@ -0,0 +1,132 @@ |
/dts-v1/; |
|
#include "mt7620n.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "zbtlink,zbt-wa05", "ralink,mt7620n-soc"; |
model = "Zbtlink ZBT-WA05"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "zbt-wa05:blue:power"; |
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "zbt-wa05:blue:usb"; |
gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
air { |
label = "zbt-wa05:blue:air"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio2 { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
en25q64@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 0x760000>; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "wllll"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "i2c", "spi refclk", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ZBT-WE1226.dts |
@@ -0,0 +1,120 @@ |
/dts-v1/; |
#include <dt-bindings/input/input.h> |
#include <dt-bindings/gpio/gpio.h> |
|
#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 = <KEY_RESTART>; |
}; |
}; |
|
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"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ZBT-WE2026.dts |
@@ -0,0 +1,113 @@ |
/dts-v1/; |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
#include "mt7620n.dtsi" |
|
/ { |
compatible = "zbtlink,zbt-we2026", "ralink,mt7620n-soc"; |
model = "Zbtlink ZBT-WE2026"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "zbt-we2026:red:power"; |
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
}; |
|
wlan { |
label = "zbt-we2026:green:wlan"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
en25q64@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 0x760000>; |
}; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "wllll"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "i2c", "spi refclk", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ZBT-WG2626.dts |
@@ -0,0 +1,130 @@ |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "zbtlink,zbt-wg2626", "mediatek,mt7621-soc"; |
model = "ZBT-WG2626"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
palmbus: palmbus@1E000000 { |
i2c@900 { |
status = "okay"; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_status: status { |
label = "zbt-wg2626:green:status"; |
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&sdhci { |
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 0xfb0000>; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
}; |
}; |
|
&pcie1 { |
mt76@0,0 { |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
ieee80211-freq-limit = <2400000 2500000>; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "wdt", "rgmii2", "jtag", "mdio"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ZBT-WG3526.dtsi |
@@ -0,0 +1,131 @@ |
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "zbtlink,zbt-wg3526", "mediatek,mt7621-soc"; |
|
aliases { |
led-boot = &led_status; |
led-failsafe = &led_status; |
led-running = &led_status; |
led-upgrade = &led_status; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,115200"; |
}; |
|
palmbus: palmbus@1E000000 { |
i2c@900 { |
status = "okay"; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_status: status { |
label = "zbt-wg3526:green:status"; |
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; |
}; |
}; |
}; |
|
&sdhci { |
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; |
}; |
|
firmware: partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
}; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
}; |
|
&pcie0 { |
wifi@0,0 { |
compatible = "pci14c3,7603"; |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x0000>; |
}; |
}; |
|
&pcie1 { |
wifi@0,0 { |
compatible = "pci14c3,7662"; |
reg = <0x0000 0 0 0 0>; |
mediatek,mtd-eeprom = <&factory 0x8000>; |
ieee80211-freq-limit = <5000000 6000000>; |
|
led { |
led-sources = <2>; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "wdt", "rgmii2", "jtag", "mdio"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ZBT-WR8305RT.dts |
@@ -0,0 +1,126 @@ |
/dts-v1/; |
|
#include "mt7620n.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "zbtlink,zbt-wr8305rt", "ralink,mt7620n-soc"; |
model = "Zbtlink ZBT-WR8305RT"; |
|
aliases { |
led-boot = &led_sys; |
led-failsafe = &led_sys; |
led-running = &led_sys; |
led-upgrade = &led_sys; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_sys: sys { |
label = "zbt-wr8305rt:green:sys"; |
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
}; |
|
lan { |
label = "zbt-wr8305rt:green:usb"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
wifi { |
label = "zbt-wr8305rt:green:wifi"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio3 { |
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>; |
}; |
}; |
}; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
ðernet { |
pinctrl-names = "default"; |
pinctrl-0 = <&ephy_pins>; |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "llllw"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
default { |
ralink,group = "i2c", "uartf", "spi refclk", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ZTE-Q7.dts |
@@ -0,0 +1,125 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "zte,q7", "ralink,mt7620a-soc"; |
model = "ZTE Q7"; |
|
aliases { |
led-boot = &led_status_blue; |
led-failsafe = &led_status_blue; |
led-running = &led_status_blue; |
led-upgrade = &led_status_blue; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
statred { |
label = "zte-q7:red:status"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
}; |
|
led_status_blue: statblue { |
label = "zte-q7:blue:status"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
}; |
}; |
|
&gpio0 { |
status = "okay"; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "wllll"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&sdhci { |
status = "okay"; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
|
&gsw { |
mediatek,port4 = "ephy"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/elecom_wrc-gst.dtsi |
@@ -0,0 +1,180 @@ |
// SPDX-License-Identifier: GPL-2.0 |
/dts-v1/; |
|
#include "mt7621.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
aliases { |
led-boot = &led_power_green; |
led-failsafe = &led_power_green; |
led-running = &led_power_green; |
led-upgrade = &led_power_green; |
}; |
|
memory@0 { |
device_type = "memory"; |
reg = <0x0 0x8000000>; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power_green: power_green { |
label = "wrc-gst:green:power"; |
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
}; |
|
power_blue { |
label = "wrc-gst:blue:power"; |
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; |
}; |
|
wps { |
label = "wrc-gst:red:wps"; |
gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; |
}; |
|
power_red { |
label = "wrc-gst:red:power"; |
gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
client { |
label = "client"; |
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
|
ap { |
label = "ap"; |
gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
|
extender { |
label = "extender"; |
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
|
router { |
label = "router"; |
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
linux,input-type = <EV_SW>; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0xe000>; |
}; |
|
&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 0xb00000>; |
}; |
|
partition@b50000 { |
label = "tm_pattern"; |
reg = <0xb50000 0x380000>; |
read-only; |
}; |
|
partition@ed0000 { |
label = "tm_key"; |
reg = <0xed0000 0x80000>; |
read-only; |
}; |
|
partition@f50000 { |
label = "art_block"; |
reg = <0xf50000 0x30000>; |
read-only; |
}; |
|
partition@f80000 { |
label = "user_data"; |
reg = <0xf80000 0x80000>; |
read-only; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "uart3", "jtag", "wdt", "sdhci"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
&pcie { |
status = "okay"; |
/* WRC-xxxxGST has MT7615 for 2.4/5 GHz wifi, but it's not supported */ |
}; |
|
&xhci { |
status = "disabled"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/ki_rb.dts |
@@ -0,0 +1,216 @@ |
/dts-v1/; |
|
#include "mt7628an.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
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 = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
fn { |
label = "fn"; |
gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
}; |
|
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"; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/kn.dts |
@@ -0,0 +1,125 @@ |
/dts-v1/; |
|
#include "rt3050.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "zyxel,keenetic", "ralink,rt3052-soc"; |
model = "ZyXEL Keenetic"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
cfi@1f000000 { |
compatible = "cfi-flash"; |
reg = <0x1f000000 0x800000>; |
bank-width = <2>; |
device-width = <2>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x3b0000>; |
}; |
}; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
led_power: power { |
label = "kn:green:power"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "kn:green:usb"; |
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
trigger-sources = <&otg_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
wps { |
label = "kn:green:wps"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys-polled"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
rfkill { |
label = "rfkill"; |
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
linux,code = <KEY_RFKILL>; |
linux,input-type = <EV_SW>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x28>; |
}; |
|
&esw { |
mediatek,portmap = <0x2f>; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&otg { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/kn_rc.dts |
@@ -0,0 +1,152 @@ |
/dts-v1/; |
|
#include "mt7620n.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "zyxel,keenetic-omni", "ralink,mt7620n-soc"; |
model = "ZyXEL Keenetic Omni"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wan { |
label = "kn_rc:green:wan"; |
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "kn_rc:green:usb"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
wifi { |
label = "kn_rc:green:wifi"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
|
led_power: power { |
label = "kn_rc:green:power"; |
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
fn { |
label = "fn"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb_power { |
gpio-export,name = "usb"; |
gpio-export,output = <1>; |
gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "wdt", "pa", "spi refclk", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "llllw"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/kn_rf.dts |
@@ -0,0 +1,152 @@ |
/dts-v1/; |
|
#include "mt7620n.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "zyxel,keenetic-omni-ii", "ralink,mt7620n-soc"; |
model = "ZyXEL Keenetic Omni II"; |
|
aliases { |
led-boot = &led_power; |
led-failsafe = &led_power; |
led-running = &led_power; |
led-upgrade = &led_power; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wan { |
label = "kn_rc:green:wan"; |
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "kn_rc:green:usb"; |
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
wifi { |
label = "kn_rc:green:wifi"; |
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
}; |
|
led_power: power { |
label = "kn_rc:green:power"; |
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
fn { |
label = "fn"; |
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb_power { |
gpio-export,name = "usb"; |
gpio-export,output = <1>; |
gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; |
}; |
}; |
}; |
|
&gpio1 { |
status = "okay"; |
}; |
|
&gpio3 { |
status = "okay"; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0x7b0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "wdt", "pa", "spi refclk", "wled"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
mtd-mac-address = <&factory 0x4>; |
mediatek,portmap = "wllll"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/kng_rc.dts |
@@ -0,0 +1,178 @@ |
/dts-v1/; |
|
#include "mt7620a.dtsi" |
|
#include <dt-bindings/gpio/gpio.h> |
#include <dt-bindings/input/input.h> |
|
/ { |
compatible = "zyxel,keenetic-viva", "ralink,mt7620a-soc"; |
model = "ZyXEL Keenetic Viva"; |
|
aliases { |
led-boot = &led_power_green; |
led-failsafe = &led_power_green; |
led-running = &led_power_green; |
led-upgrade = &led_power_green; |
}; |
|
leds { |
compatible = "gpio-leds"; |
|
wan { |
label = "kng_rc:green:wan"; |
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
}; |
|
usb { |
label = "kng_rc:green:usb"; |
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
trigger-sources = <&ohci_port1>, <&ehci_port1>; |
linux,default-trigger = "usbport"; |
}; |
|
power_alert { |
label = "kng_rc:red:power"; |
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
}; |
|
wifi { |
label = "kng_rc:green:wifi"; |
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
}; |
|
led_power_green: power { |
label = "kng_rc:green:power"; |
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
}; |
}; |
|
keys { |
compatible = "gpio-keys"; |
poll-interval = <20>; |
|
reset { |
label = "reset"; |
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_RESTART>; |
}; |
|
wps { |
label = "wps"; |
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
linux,code = <KEY_WPS_BUTTON>; |
}; |
|
fn { |
label = "fn"; |
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
linux,code = <BTN_0>; |
}; |
}; |
|
gpio_export { |
compatible = "gpio-export"; |
#size-cells = <0>; |
|
usb_power { |
gpio-export,name = "usb"; |
gpio-export,output = <1>; |
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
}; |
}; |
|
rtl8367rb { |
compatible = "realtek,rtl8367b"; |
cpu_port = <7>; |
realtek,extif2 = <1 0 1 1 1 1 1 1 2>; |
mii-bus = <&mdio0>; |
}; |
}; |
|
&spi0 { |
status = "okay"; |
|
m25p80@0 { |
compatible = "jedec,spi-nor"; |
reg = <0>; |
spi-max-frequency = <10000000>; |
|
partitions { |
compatible = "fixed-partitions"; |
#address-cells = <1>; |
#size-cells = <1>; |
|
partition@0 { |
label = "u-boot"; |
reg = <0x0 0x30000>; |
read-only; |
}; |
|
partition@30000 { |
label = "u-boot-env"; |
reg = <0x30000 0x10000>; |
read-only; |
}; |
|
factory: partition@40000 { |
label = "factory"; |
reg = <0x40000 0x10000>; |
read-only; |
}; |
|
partition@50000 { |
compatible = "denx,uimage"; |
label = "firmware"; |
reg = <0x50000 0xfb0000>; |
}; |
}; |
}; |
}; |
|
&pinctrl { |
state_default: pinctrl0 { |
gpio { |
ralink,group = "i2c", "uartf"; |
ralink,function = "gpio"; |
}; |
}; |
}; |
|
ðernet { |
status = "okay"; |
pinctrl-names = "default"; |
pinctrl-0 = <&rgmii2_pins &mdio_pins>; |
mtd-mac-address = <&factory 0x00004>; |
|
port@4 { |
status = "okay"; |
mediatek,fixed-link = <1000 1 1 1>; |
phy-mode = "rgmii"; |
phy-handle = <&phy4>; |
}; |
|
mdio0: mdio-bus { |
status = "okay"; |
|
phy4: ethernet-phy@4 { |
reg = <4>; |
phy-mode = "rgmii"; |
}; |
}; |
}; |
|
&gsw { |
mediatek,port4 = "gmac"; |
}; |
|
&wmac { |
ralink,mtd-eeprom = <&factory 0>; |
}; |
|
&ehci { |
status = "okay"; |
}; |
|
&ohci { |
status = "okay"; |
}; |
/branches/18.06.1/target/linux/ramips/dts/mt7620a.dtsi |
@@ -0,0 +1,603 @@ |
/ { |
#address-cells = <1>; |
#size-cells = <1>; |
compatible = "ralink,mt7620a-soc"; |
|
cpus { |
#address-cells = <1>; |
#size-cells = <0>; |
|
cpu@0 { |
compatible = "mips,mips24KEc"; |
reg = <0>; |
}; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
cpuintc: cpuintc { |
#address-cells = <0>; |
#interrupt-cells = <1>; |
interrupt-controller; |
compatible = "mti,cpu-interrupt-controller"; |
}; |
|
aliases { |
spi0 = &spi0; |
spi1 = &spi1; |
serial0 = &uartlite; |
}; |
|
palmbus: palmbus@10000000 { |
compatible = "palmbus"; |
reg = <0x10000000 0x200000>; |
ranges = <0x0 0x10000000 0x1FFFFF>; |
|
#address-cells = <1>; |
#size-cells = <1>; |
|
sysc: sysc@0 { |
compatible = "ralink,mt7620a-sysc", "ralink,rt3050-sysc", "syscon"; |
reg = <0x0 0x100>; |
}; |
|
timer: timer@100 { |
compatible = "ralink,mt7620a-timer", "ralink,rt2880-timer"; |
reg = <0x100 0x20>; |
|
interrupt-parent = <&intc>; |
interrupts = <1>; |
}; |
|
watchdog: watchdog@120 { |
compatible = "ralink,mt7620a-wdt", "ralink,rt2880-wdt"; |
reg = <0x120 0x10>; |
|
resets = <&rstctrl 8>; |
reset-names = "wdt"; |
|
interrupt-parent = <&intc>; |
interrupts = <1>; |
}; |
|
intc: intc@200 { |
compatible = "ralink,mt7620a-intc", "ralink,rt2880-intc"; |
reg = <0x200 0x100>; |
|
resets = <&rstctrl 19>; |
reset-names = "intc"; |
|
interrupt-controller; |
#interrupt-cells = <1>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <2>; |
}; |
|
memc: memc@300 { |
compatible = "ralink,mt7620a-memc", "ralink,rt3050-memc"; |
reg = <0x300 0x100>; |
|
resets = <&rstctrl 20>; |
reset-names = "mc"; |
|
interrupt-parent = <&intc>; |
interrupts = <3>; |
}; |
|
uart: uart@500 { |
compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a"; |
reg = <0x500 0x100>; |
|
resets = <&rstctrl 12>; |
reset-names = "uart"; |
|
interrupt-parent = <&intc>; |
interrupts = <5>; |
|
reg-shift = <2>; |
|
status = "disabled"; |
}; |
|
gpio0: gpio@600 { |
compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio"; |
reg = <0x600 0x34>; |
|
resets = <&rstctrl 13>; |
reset-names = "pio"; |
|
interrupt-parent = <&intc>; |
interrupts = <6>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <0>; |
ralink,nr-gpio = <24>; |
ralink,register-map = [ 00 04 08 0c |
20 24 28 2c |
30 34 ]; |
}; |
|
gpio1: gpio@638 { |
compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio"; |
reg = <0x638 0x24>; |
|
interrupt-parent = <&intc>; |
interrupts = <6>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <24>; |
ralink,nr-gpio = <16>; |
ralink,register-map = [ 00 04 08 0c |
10 14 18 1c |
20 24 ]; |
|
status = "disabled"; |
}; |
|
gpio2: gpio@660 { |
compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio"; |
reg = <0x660 0x24>; |
|
interrupt-parent = <&intc>; |
interrupts = <6>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <40>; |
ralink,nr-gpio = <32>; |
ralink,register-map = [ 00 04 08 0c |
10 14 18 1c |
20 24 ]; |
|
status = "disabled"; |
}; |
|
gpio3: gpio@688 { |
compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio"; |
reg = <0x688 0x24>; |
|
interrupt-parent = <&intc>; |
interrupts = <6>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <72>; |
ralink,nr-gpio = <1>; |
ralink,register-map = [ 00 04 08 0c |
10 14 18 1c |
20 24 ]; |
|
status = "disabled"; |
}; |
|
i2c: i2c@900 { |
compatible = "ralink,rt2880-i2c"; |
reg = <0x900 0x100>; |
|
resets = <&rstctrl 16>; |
reset-names = "i2c"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
status = "disabled"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&i2c_pins>; |
}; |
|
i2s: i2s@a00 { |
compatible = "mediatek,mt7620-i2s"; |
reg = <0xa00 0x100>; |
|
resets = <&rstctrl 17>; |
reset-names = "i2s"; |
|
interrupt-parent = <&intc>; |
interrupts = <10>; |
|
txdma-req = <2>; |
rxdma-req = <3>; |
|
dmas = <&gdma 4>, |
<&gdma 6>; |
dma-names = "tx", "rx"; |
|
status = "disabled"; |
}; |
|
spi0: spi@b00 { |
compatible = "ralink,mt7620a-spi", "ralink,rt2880-spi"; |
reg = <0xb00 0x40>; |
|
resets = <&rstctrl 18>; |
reset-names = "spi"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
status = "disabled"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&spi_pins>; |
}; |
|
spi1: spi@b40 { |
compatible = "ralink,rt2880-spi"; |
reg = <0xb40 0x60>; |
|
resets = <&rstctrl 18>; |
reset-names = "spi"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
status = "disabled"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&spi_cs1>; |
}; |
|
uartlite: uartlite@c00 { |
compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a"; |
reg = <0xc00 0x100>; |
|
resets = <&rstctrl 19>; |
reset-names = "uartl"; |
|
interrupt-parent = <&intc>; |
interrupts = <12>; |
|
reg-shift = <2>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&uartlite_pins>; |
}; |
|
systick: systick@d00 { |
compatible = "ralink,mt7620a-systick", "ralink,cevt-systick"; |
reg = <0xd00 0x10>; |
|
resets = <&rstctrl 28>; |
reset-names = "intc"; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <7>; |
}; |
|
pcm: pcm@2000 { |
compatible = "ralink,mt7620a-pcm"; |
reg = <0x2000 0x800>; |
|
resets = <&rstctrl 11>; |
reset-names = "pcm"; |
|
interrupt-parent = <&intc>; |
interrupts = <4>; |
|
status = "disabled"; |
}; |
|
gdma: gdma@2800 { |
compatible = "ralink,mt7620a-gdma", "ralink,rt3883-gdma"; |
reg = <0x2800 0x800>; |
|
resets = <&rstctrl 14>; |
reset-names = "dma"; |
|
interrupt-parent = <&intc>; |
interrupts = <7>; |
|
#dma-cells = <1>; |
#dma-channels = <16>; |
#dma-requests = <16>; |
|
status = "disabled"; |
}; |
}; |
|
pinctrl: pinctrl { |
compatible = "ralink,rt2880-pinmux"; |
pinctrl-names = "default"; |
pinctrl-0 = <&state_default>; |
|
state_default: pinctrl0 { |
}; |
|
pcm_i2s_pins: pcm_i2s { |
pcm_i2s { |
ralink,group = "uartf"; |
ralink,function = "pcm i2s"; |
}; |
}; |
|
uartf_gpio_pins: uartf_gpio { |
uartf_gpio { |
ralink,group = "uartf"; |
ralink,function = "gpio uartf"; |
}; |
}; |
|
gpio_i2s_pins: gpio_i2s { |
gpio_i2s { |
ralink,group = "uartf"; |
ralink,function = "gpio i2s"; |
}; |
}; |
|
spi_pins: spi_pins { |
spi_pins { |
ralink,group = "spi"; |
ralink,function = "spi"; |
}; |
}; |
|
spi_cs1: spi1 { |
spi1 { |
ralink,group = "spi refclk"; |
ralink,function = "spi refclk"; |
}; |
}; |
|
i2c_pins: i2c_pins { |
i2c_pins { |
ralink,group = "i2c"; |
ralink,function = "i2c"; |
}; |
}; |
|
uartlite_pins: uartlite { |
uart { |
ralink,group = "uartlite"; |
ralink,function = "uartlite"; |
}; |
}; |
|
mdio_pins: mdio { |
mdio { |
ralink,group = "mdio"; |
ralink,function = "mdio"; |
}; |
}; |
|
mdio_refclk_pins: mdio_refclk { |
mdio_refclk { |
ralink,group = "mdio"; |
ralink,function = "refclk"; |
}; |
}; |
|
ephy_pins: ephy { |
ephy { |
ralink,group = "ephy"; |
ralink,function = "ephy"; |
}; |
}; |
|
wled_pins: wled { |
wled { |
ralink,group = "wled"; |
ralink,function = "wled"; |
}; |
}; |
|
rgmii1_pins: rgmii1 { |
rgmii1 { |
ralink,group = "rgmii1"; |
ralink,function = "rgmii1"; |
}; |
}; |
|
rgmii2_pins: rgmii2 { |
rgmii2 { |
ralink,group = "rgmii2"; |
ralink,function = "rgmii2"; |
}; |
}; |
|
pcie_pins: pcie { |
pcie { |
ralink,group = "pcie"; |
ralink,function = "pcie rst"; |
}; |
}; |
|
pa_pins: pa { |
pa { |
ralink,group = "pa"; |
ralink,function = "pa"; |
}; |
}; |
|
sdhci_pins: sdhci { |
sdhci { |
ralink,group = "nd_sd"; |
ralink,function = "sd"; |
}; |
}; |
}; |
|
rstctrl: rstctrl { |
compatible = "ralink,mt7620a-reset", "ralink,rt2880-reset"; |
#reset-cells = <1>; |
}; |
|
clkctrl: clkctrl { |
compatible = "ralink,rt2880-clock"; |
#clock-cells = <1>; |
}; |
|
usbphy: usbphy { |
compatible = "mediatek,mt7620-usbphy"; |
#phy-cells = <0>; |
|
ralink,sysctl = <&sysc>; |
resets = <&rstctrl 22 &rstctrl 25>; |
reset-names = "host", "device"; |
|
clocks = <&clkctrl 22 &clkctrl 25>; |
clock-names = "host", "device"; |
}; |
|
ethernet: ethernet@10100000 { |
compatible = "mediatek,mt7620-eth"; |
reg = <0x10100000 0x10000>; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <5>; |
|
resets = <&rstctrl 21 &rstctrl 23>; |
reset-names = "fe", "esw"; |
|
mediatek,switch = <&gsw>; |
|
port@4 { |
compatible = "mediatek,mt7620a-gsw-port", "mediatek,eth-port"; |
reg = <4>; |
|
status = "disabled"; |
}; |
|
port@5 { |
compatible = "mediatek,mt7620a-gsw-port", "mediatek,eth-port"; |
reg = <5>; |
|
status = "disabled"; |
}; |
|
mdio-bus { |
#address-cells = <1>; |
#size-cells = <0>; |
|
status = "disabled"; |
}; |
}; |
|
gsw: gsw@10110000 { |
compatible = "mediatek,mt7620-gsw"; |
reg = <0x10110000 0x8000>; |
|
resets = <&rstctrl 23>; |
reset-names = "esw"; |
|
interrupt-parent = <&intc>; |
interrupts = <17>; |
}; |
|
sdhci: sdhci@10130000 { |
compatible = "ralink,mt7620-sdhci"; |
reg = <0x10130000 0x4000>; |
|
interrupt-parent = <&intc>; |
interrupts = <14>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&sdhci_pins>; |
|
status = "disabled"; |
}; |
|
ehci: ehci@101c0000 { |
#address-cells = <1>; |
#size-cells = <0>; |
compatible = "generic-ehci"; |
reg = <0x101c0000 0x1000>; |
|
interrupt-parent = <&intc>; |
interrupts = <18>; |
|
phys = <&usbphy>; |
phy-names = "usb"; |
|
status = "disabled"; |
|
ehci_port1: port@1 { |
reg = <1>; |
#trigger-source-cells = <0>; |
}; |
}; |
|
ohci: ohci@101c1000 { |
#address-cells = <1>; |
#size-cells = <0>; |
compatible = "generic-ohci"; |
reg = <0x101c1000 0x1000>; |
|
interrupt-parent = <&intc>; |
interrupts = <18>; |
|
phys = <&usbphy>; |
phy-names = "usb"; |
|
status = "disabled"; |
|
ohci_port1: port@1 { |
reg = <1>; |
#trigger-source-cells = <0>; |
}; |
}; |
|
pcie: pcie@10140000 { |
compatible = "mediatek,mt7620-pci"; |
reg = <0x10140000 0x100 |
0x10142000 0x100>; |
|
#address-cells = <3>; |
#size-cells = <2>; |
|
resets = <&rstctrl 26>; |
reset-names = "pcie0"; |
|
clocks = <&clkctrl 26>; |
clock-names = "pcie0"; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <4>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&pcie_pins>; |
|
device_type = "pci"; |
|
bus-range = <0 255>; |
ranges = < |
0x02000000 0 0x00000000 0x20000000 0 0x10000000 /* pci memory */ |
0x01000000 0 0x00000000 0x10160000 0 0x00010000 /* io space */ |
>; |
|
status = "disabled"; |
|
pcie0: pcie@0,0 { |
reg = <0x0000 0 0 0 0>; |
|
#address-cells = <3>; |
#size-cells = <2>; |
|
device_type = "pci"; |
|
ranges; |
}; |
}; |
|
wmac: wmac@10180000 { |
compatible = "ralink,rt7620-wmac", "ralink,rt2880-wmac"; |
reg = <0x10180000 0x40000>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <6>; |
|
ralink,eeprom = "soc_wmac.eeprom"; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/mt7620n.dtsi |
@@ -0,0 +1,400 @@ |
/ { |
#address-cells = <1>; |
#size-cells = <1>; |
compatible = "ralink,mt7620n-soc"; |
|
cpus { |
#address-cells = <1>; |
#size-cells = <0>; |
|
cpu@0 { |
compatible = "mips,mips24KEc"; |
reg = <0>; |
}; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
cpuintc: cpuintc { |
#address-cells = <0>; |
#interrupt-cells = <1>; |
interrupt-controller; |
compatible = "mti,cpu-interrupt-controller"; |
}; |
|
aliases { |
spi0 = &spi0; |
spi1 = &spi1; |
serial0 = &uartlite; |
}; |
|
palmbus: palmbus@10000000 { |
compatible = "palmbus"; |
reg = <0x10000000 0x200000>; |
ranges = <0x0 0x10000000 0x1FFFFF>; |
|
#address-cells = <1>; |
#size-cells = <1>; |
|
sysc: sysc@0 { |
compatible = "ralink,mt7620a-sysc", "ralink,rt3050-sysc", "syscon"; |
reg = <0x0 0x100>; |
}; |
|
timer: timer@100 { |
compatible = "ralink,mt7620a-timer", "ralink,rt2880-timer"; |
reg = <0x100 0x20>; |
|
interrupt-parent = <&intc>; |
interrupts = <1>; |
}; |
|
watchdog: watchdog@120 { |
compatible = "ralink,mt7620a-wdt", "ralink,rt2880-wdt"; |
reg = <0x120 0x10>; |
|
resets = <&rstctrl 8>; |
reset-names = "wdt"; |
|
interrupt-parent = <&intc>; |
interrupts = <1>; |
}; |
|
intc: intc@200 { |
compatible = "ralink,mt7620a-intc", "ralink,rt2880-intc"; |
reg = <0x200 0x100>; |
|
resets = <&rstctrl 19>; |
reset-names = "intc"; |
|
interrupt-controller; |
#interrupt-cells = <1>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <2>; |
}; |
|
memc: memc@300 { |
compatible = "ralink,mt7620a-memc", "ralink,rt3050-memc"; |
reg = <0x300 0x100>; |
|
resets = <&rstctrl 20>; |
reset-names = "mc"; |
|
interrupt-parent = <&intc>; |
interrupts = <3>; |
}; |
|
gpio0: gpio@600 { |
compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio"; |
reg = <0x600 0x34>; |
|
resets = <&rstctrl 13>; |
reset-names = "pio"; |
|
interrupt-parent = <&intc>; |
interrupts = <6>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <0>; |
ralink,nr-gpio = <24>; |
ralink,register-map = [ 00 04 08 0c |
20 24 28 2c |
30 34 ]; |
}; |
|
gpio1: gpio@638 { |
compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio"; |
reg = <0x638 0x24>; |
|
interrupt-parent = <&intc>; |
interrupts = <6>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <24>; |
ralink,nr-gpio = <16>; |
ralink,register-map = [ 00 04 08 0c |
10 14 18 1c |
20 24 ]; |
|
status = "disabled"; |
}; |
|
gpio2: gpio@660 { |
compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio"; |
reg = <0x660 0x24>; |
|
interrupt-parent = <&intc>; |
interrupts = <6>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <40>; |
ralink,nr-gpio = <32>; |
ralink,register-map = [ 00 04 08 0c |
10 14 18 1c |
20 24 ]; |
|
status = "disabled"; |
}; |
|
gpio3: gpio@688 { |
compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio"; |
reg = <0x688 0x24>; |
|
interrupt-parent = <&intc>; |
interrupts = <6>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <72>; |
ralink,nr-gpio = <1>; |
ralink,register-map = [ 00 04 08 0c |
10 14 18 1c |
20 24 ]; |
|
status = "disabled"; |
}; |
|
i2c: i2c@900 { |
compatible = "ralink,rt2880-i2c"; |
reg = <0x900 0x100>; |
|
resets = <&rstctrl 16>; |
reset-names = "i2c"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
status = "disabled"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&i2c_pins>; |
}; |
|
spi0: spi@b00 { |
compatible = "ralink,mt7620a-spi", "ralink,rt2880-spi"; |
reg = <0xb00 0x40>; |
|
resets = <&rstctrl 18>; |
reset-names = "spi"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
status = "disabled"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&spi_pins>; |
}; |
|
spi1: spi@b40 { |
compatible = "ralink,rt2880-spi"; |
reg = <0xb40 0x60>; |
|
resets = <&rstctrl 18>; |
reset-names = "spi"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
status = "disabled"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&spi_cs1>; |
}; |
|
uartlite: uartlite@c00 { |
compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a"; |
reg = <0xc00 0x100>; |
|
resets = <&rstctrl 19>; |
reset-names = "uartl"; |
|
interrupt-parent = <&intc>; |
interrupts = <12>; |
|
reg-shift = <2>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&uartlite_pins>; |
}; |
|
systick: systick@d00 { |
compatible = "ralink,mt7620a-systick", "ralink,cevt-systick"; |
reg = <0xd00 0x10>; |
|
resets = <&rstctrl 28>; |
reset-names = "intc"; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <7>; |
}; |
}; |
|
pinctrl: pinctrl { |
compatible = "ralink,rt2880-pinmux"; |
pinctrl-names = "default"; |
pinctrl-0 = <&state_default>; |
|
state_default: pinctrl0 { |
}; |
|
ephy_pins: ephy { |
ephy { |
ralink,group = "ephy"; |
ralink,function = "ephy"; |
}; |
}; |
|
spi_pins: spi_pins { |
spi_pins { |
ralink,group = "spi"; |
ralink,function = "spi"; |
}; |
}; |
|
spi_cs1: spi1 { |
spi1 { |
ralink,group = "spi refclk"; |
ralink,function = "spi refclk"; |
}; |
}; |
|
i2c_pins: i2c_pins { |
i2c_pins { |
ralink,group = "i2c"; |
ralink,function = "i2c"; |
}; |
}; |
|
uartlite_pins: uartlite { |
uart { |
ralink,group = "uartlite"; |
ralink,function = "uartlite"; |
}; |
}; |
}; |
|
rstctrl: rstctrl { |
compatible = "ralink,mt7620a-reset", "ralink,rt2880-reset"; |
#reset-cells = <1>; |
}; |
|
clkctrl: clkctrl { |
compatible = "ralink,rt2880-clock"; |
#clock-cells = <1>; |
}; |
|
usbphy: usbphy { |
compatible = "mediatek,mt7620-usbphy"; |
#phy-cells = <0>; |
|
ralink,sysctl = <&sysc>; |
resets = <&rstctrl 22 &rstctrl 25>; |
reset-names = "host", "device"; |
|
clocks = <&clkctrl 22 &clkctrl 25>; |
clock-names = "host", "device"; |
}; |
|
ethernet: ethernet@10100000 { |
compatible = "mediatek,mt7620-eth"; |
reg = <0x10100000 0x10000>; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <5>; |
|
resets = <&rstctrl 21 &rstctrl 23>; |
reset-names = "fe", "esw"; |
|
mediatek,switch = <&gsw>; |
|
mdio-bus { |
#address-cells = <1>; |
#size-cells = <0>; |
|
status = "disabled"; |
}; |
|
port@4 { |
compatible = "mediatek,mt7620a-gsw-port", "mediatek,eth-port"; |
reg = <4>; |
|
status = "disabled"; |
}; |
}; |
|
gsw: gsw@10110000 { |
compatible = "mediatek,mt7620-gsw"; |
reg = <0x10110000 0x8000>; |
|
resets = <&rstctrl 23>; |
reset-names = "esw"; |
|
interrupt-parent = <&intc>; |
interrupts = <17>; |
mediatek,port4 = "ephy"; |
}; |
|
ehci: ehci@101c0000 { |
#address-cells = <1>; |
#size-cells = <0>; |
compatible = "generic-ehci"; |
reg = <0x101c0000 0x1000>; |
|
interrupt-parent = <&intc>; |
interrupts = <18>; |
|
phys = <&usbphy>; |
phy-names = "usb"; |
|
status = "disabled"; |
|
ehci_port1: port@1 { |
reg = <1>; |
#trigger-source-cells = <0>; |
}; |
}; |
|
ohci: ohci@101c1000 { |
#address-cells = <1>; |
#size-cells = <0>; |
compatible = "generic-ohci"; |
reg = <0x101c1000 0x1000>; |
|
phys = <&usbphy>; |
phy-names = "usb"; |
|
interrupt-parent = <&intc>; |
interrupts = <18>; |
|
status = "disabled"; |
|
ohci_port1: port@1 { |
reg = <1>; |
#trigger-source-cells = <0>; |
}; |
}; |
|
wmac: wmac@10180000 { |
compatible = "ralink,rt7620-wmac", "ralink,rt2880-wmac"; |
reg = <0x10180000 0x40000>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <6>; |
|
ralink,eeprom = "soc_wmac.eeprom"; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/mt7621.dtsi |
@@ -0,0 +1,546 @@ |
#include <dt-bindings/interrupt-controller/mips-gic.h> |
#include <dt-bindings/clock/mt7621-clk.h> |
|
/ { |
#address-cells = <1>; |
#size-cells = <1>; |
compatible = "mediatek,mt7621-soc"; |
|
cpus { |
#address-cells = <1>; |
#size-cells = <0>; |
|
cpu@0 { |
device_type = "cpu"; |
compatible = "mips,mips1004Kc"; |
reg = <0>; |
}; |
|
cpu@1 { |
device_type = "cpu"; |
compatible = "mips,mips1004Kc"; |
reg = <1>; |
}; |
}; |
|
cpuintc: cpuintc { |
#address-cells = <0>; |
#interrupt-cells = <1>; |
interrupt-controller; |
compatible = "mti,cpu-interrupt-controller"; |
}; |
|
aliases { |
serial0 = &uartlite; |
}; |
|
pll: pll { |
compatible = "mediatek,mt7621-pll", "syscon"; |
|
#clock-cells = <1>; |
clock-output-names = "cpu", "bus"; |
}; |
|
sysclock: sysclock { |
#clock-cells = <0>; |
compatible = "fixed-clock"; |
|
/* FIXME: there should be way to detect this */ |
clock-frequency = <50000000>; |
}; |
|
|
|
palmbus: palmbus@1E000000 { |
compatible = "palmbus"; |
reg = <0x1E000000 0x100000>; |
ranges = <0x0 0x1E000000 0x0FFFFF>; |
|
#address-cells = <1>; |
#size-cells = <1>; |
|
sysc: sysc@0 { |
compatible = "mtk,mt7621-sysc"; |
reg = <0x0 0x100>; |
}; |
|
wdt: wdt@100 { |
compatible = "mediatek,mt7621-wdt"; |
reg = <0x100 0x100>; |
}; |
|
gpio@600 { |
#address-cells = <1>; |
#size-cells = <0>; |
|
compatible = "mtk,mt7621-gpio"; |
reg = <0x600 0x100>; |
|
gpio0: bank@0 { |
reg = <0>; |
compatible = "mtk,mt7621-gpio-bank"; |
gpio-controller; |
#gpio-cells = <2>; |
}; |
|
gpio1: bank@1 { |
reg = <1>; |
compatible = "mtk,mt7621-gpio-bank"; |
gpio-controller; |
#gpio-cells = <2>; |
}; |
|
gpio2: bank@2 { |
reg = <2>; |
compatible = "mtk,mt7621-gpio-bank"; |
gpio-controller; |
#gpio-cells = <2>; |
}; |
}; |
|
i2c: i2c@900 { |
compatible = "mediatek,mt7621-i2c"; |
reg = <0x900 0x100>; |
|
clocks = <&sysclock>; |
|
resets = <&rstctrl 16>; |
reset-names = "i2c"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
status = "disabled"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&i2c_pins>; |
}; |
|
i2s: i2s@a00 { |
compatible = "mediatek,mt7621-i2s"; |
reg = <0xa00 0x100>; |
|
clocks = <&sysclock>; |
|
resets = <&rstctrl 17>; |
reset-names = "i2s"; |
|
interrupt-parent = <&gic>; |
interrupts = <GIC_SHARED 16 IRQ_TYPE_LEVEL_HIGH>; |
|
txdma-req = <2>; |
rxdma-req = <3>; |
|
dmas = <&gdma 4>, |
<&gdma 6>; |
dma-names = "tx", "rx"; |
|
status = "disabled"; |
}; |
|
systick: systick@500 { |
compatible = "ralink,mt7621-systick", "ralink,cevt-systick"; |
reg = <0x500 0x10>; |
|
resets = <&rstctrl 28>; |
reset-names = "intc"; |
|
interrupt-parent = <&gic>; |
interrupts = <GIC_SHARED 5 IRQ_TYPE_LEVEL_HIGH>; |
}; |
|
memc: memc@5000 { |
compatible = "mtk,mt7621-memc"; |
reg = <0x5000 0x1000>; |
}; |
|
cpc: cpc@1fbf0000 { |
compatible = "mtk,mt7621-cpc"; |
reg = <0x1fbf0000 0x8000>; |
}; |
|
mc: mc@1fbf8000 { |
compatible = "mtk,mt7621-mc"; |
reg = <0x1fbf8000 0x8000>; |
}; |
|
uartlite: uartlite@c00 { |
compatible = "ns16550a"; |
reg = <0xc00 0x100>; |
|
clock-frequency = <50000000>; |
|
interrupt-parent = <&gic>; |
interrupts = <GIC_SHARED 26 IRQ_TYPE_LEVEL_HIGH>; |
|
reg-shift = <2>; |
reg-io-width = <4>; |
no-loopback-test; |
}; |
|
uartlite2: uartlite2@d00 { |
compatible = "ns16550a"; |
reg = <0xd00 0x100>; |
|
clock-frequency = <50000000>; |
|
interrupt-parent = <&gic>; |
interrupts = <GIC_SHARED 27 IRQ_TYPE_LEVEL_HIGH>; |
|
reg-shift = <2>; |
reg-io-width = <4>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&uart2_pins>; |
|
status = "disabled"; |
}; |
|
uartlite3: uartlite3@e00 { |
compatible = "ns16550a"; |
reg = <0xe00 0x100>; |
|
clock-frequency = <50000000>; |
|
interrupt-parent = <&gic>; |
interrupts = <GIC_SHARED 28 IRQ_TYPE_LEVEL_HIGH>; |
|
reg-shift = <2>; |
reg-io-width = <4>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&uart3_pins>; |
|
status = "disabled"; |
}; |
|
spi0: spi@b00 { |
status = "disabled"; |
|
compatible = "ralink,mt7621-spi"; |
reg = <0xb00 0x100>; |
|
clocks = <&pll MT7621_CLK_BUS>; |
|
resets = <&rstctrl 18>; |
reset-names = "spi"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&spi_pins>; |
}; |
|
gdma: gdma@2800 { |
compatible = "ralink,rt3883-gdma"; |
reg = <0x2800 0x800>; |
|
resets = <&rstctrl 14>; |
reset-names = "dma"; |
|
interrupt-parent = <&gic>; |
interrupts = <0 13 4>; |
|
#dma-cells = <1>; |
#dma-channels = <16>; |
#dma-requests = <16>; |
|
status = "disabled"; |
}; |
|
hsdma: hsdma@7000 { |
compatible = "mediatek,mt7621-hsdma"; |
reg = <0x7000 0x1000>; |
|
resets = <&rstctrl 5>; |
reset-names = "hsdma"; |
|
interrupt-parent = <&gic>; |
interrupts = <0 11 4>; |
|
#dma-cells = <1>; |
#dma-channels = <1>; |
#dma-requests = <1>; |
|
status = "disabled"; |
}; |
}; |
|
pinctrl: pinctrl { |
compatible = "ralink,rt2880-pinmux"; |
pinctrl-names = "default"; |
pinctrl-0 = <&state_default>; |
|
state_default: pinctrl0 { |
}; |
|
i2c_pins: i2c_pins { |
i2c_pins { |
ralink,group = "i2c"; |
ralink,function = "i2c"; |
}; |
}; |
|
spi_pins: spi_pins { |
spi_pins { |
ralink,group = "spi"; |
ralink,function = "spi"; |
}; |
}; |
|
uart1_pins: uart1 { |
uart1 { |
ralink,group = "uart1"; |
ralink,function = "uart1"; |
}; |
}; |
|
uart2_pins: uart2 { |
uart2 { |
ralink,group = "uart2"; |
ralink,function = "uart2"; |
}; |
}; |
|
uart3_pins: uart3 { |
uart3 { |
ralink,group = "uart3"; |
ralink,function = "uart3"; |
}; |
}; |
|
rgmii1_pins: rgmii1 { |
rgmii1 { |
ralink,group = "rgmii1"; |
ralink,function = "rgmii1"; |
}; |
}; |
|
rgmii2_pins: rgmii2 { |
rgmii2 { |
ralink,group = "rgmii2"; |
ralink,function = "rgmii2"; |
}; |
}; |
|
mdio_pins: mdio { |
mdio { |
ralink,group = "mdio"; |
ralink,function = "mdio"; |
}; |
}; |
|
pcie_pins: pcie { |
pcie { |
ralink,group = "pcie"; |
ralink,function = "pcie rst"; |
}; |
}; |
|
nand_pins: nand { |
spi-nand { |
ralink,group = "spi"; |
ralink,function = "nand1"; |
}; |
|
sdhci-nand { |
ralink,group = "sdhci"; |
ralink,function = "nand2"; |
}; |
}; |
|
sdhci_pins: sdhci { |
sdhci { |
ralink,group = "sdhci"; |
ralink,function = "sdhci"; |
}; |
}; |
}; |
|
rstctrl: rstctrl { |
compatible = "ralink,rt2880-reset"; |
#reset-cells = <1>; |
}; |
|
clkctrl: clkctrl { |
compatible = "ralink,rt2880-clock"; |
#clock-cells = <1>; |
}; |
|
sdhci: sdhci@1E130000 { |
status = "disabled"; |
|
compatible = "ralink,mt7620-sdhci"; |
reg = <0x1E130000 0x4000>; |
|
interrupt-parent = <&gic>; |
interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&sdhci_pins>; |
}; |
|
xhci: xhci@1E1C0000 { |
#address-cells = <1>; |
#size-cells = <0>; |
status = "okay"; |
|
compatible = "mediatek,mt8173-xhci"; |
reg = <0x1e1c0000 0x1000 |
0x1e1d0700 0x0100>; |
reg-names = "mac", "ippc"; |
|
clocks = <&sysclock>; |
clock-names = "sys_ck"; |
|
interrupt-parent = <&gic>; |
interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>; |
|
/* |
* Port 1 of both hubs is one usb slot and referenced here. |
* The binding doesn't allow to address individual hubs. |
* hub 1 - port 1 is ehci and ohci, hub 2 - port 1 is xhci. |
*/ |
xhci_ehci_port1: port@1 { |
reg = <1>; |
#trigger-source-cells = <0>; |
}; |
|
/* |
* Only the second usb hub has a second port. That port serves |
* ehci and ohci. |
*/ |
ehci_port2: port@2 { |
reg = <2>; |
#trigger-source-cells = <0>; |
}; |
}; |
|
gic: interrupt-controller@1fbc0000 { |
compatible = "mti,gic"; |
reg = <0x1fbc0000 0x2000>; |
|
interrupt-controller; |
#interrupt-cells = <3>; |
|
mti,reserved-cpu-vectors = <7>; |
|
timer { |
compatible = "mti,gic-timer"; |
interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>; |
clocks = <&pll MT7621_CLK_CPU>; |
}; |
}; |
|
nand: nand@1e003000 { |
status = "disabled"; |
|
compatible = "mtk,mt7621-nand"; |
bank-width = <2>; |
reg = <0x1e003000 0x800 |
0x1e003800 0x800>; |
}; |
|
ethernet: ethernet@1e100000 { |
compatible = "mediatek,mt7621-eth"; |
reg = <0x1e100000 0x10000>; |
|
#address-cells = <1>; |
#size-cells = <1>; |
|
resets = <&rstctrl 6 &rstctrl 23>; |
reset-names = "fe", "eth"; |
|
interrupt-parent = <&gic>; |
interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>; |
|
mediatek,switch = <&gsw>; |
|
mdio-bus { |
#address-cells = <1>; |
#size-cells = <0>; |
|
phy1f: ethernet-phy@1f { |
reg = <0x1f>; |
phy-mode = "rgmii"; |
}; |
}; |
|
hnat: hnat@0 { |
compatible = "mediatek,mt7623-hnat"; |
reg = <0 0x10000>; |
mtketh-ppd = "eth0"; |
mtketh-lan = "eth0"; |
mtketh-wan = "eth0"; |
resets = <&rstctrl 0>; |
reset-names = "mtketh"; |
}; |
}; |
|
gsw: gsw@1e110000 { |
compatible = "mediatek,mt7621-gsw"; |
reg = <0x1e110000 0x8000>; |
interrupt-parent = <&gic>; |
interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>; |
}; |
|
pcie: pcie@1e140000 { |
compatible = "mediatek,mt7621-pci"; |
reg = <0x1e140000 0x100 |
0x1e142000 0x100>; |
|
#address-cells = <3>; |
#size-cells = <2>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&pcie_pins>; |
|
device_type = "pci"; |
|
bus-range = <0 255>; |
ranges = < |
0x02000000 0 0x00000000 0x60000000 0 0x10000000 /* pci memory */ |
0x01000000 0 0x00000000 0x1e160000 0 0x00010000 /* io space */ |
>; |
|
interrupt-parent = <&gic>; |
interrupts = <GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH |
GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH |
GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>; |
|
status = "disabled"; |
|
resets = <&rstctrl 24 &rstctrl 25 &rstctrl 26>; |
reset-names = "pcie0", "pcie1", "pcie2"; |
clocks = <&clkctrl 24 &clkctrl 25 &clkctrl 26>; |
clock-names = "pcie0", "pcie1", "pcie2"; |
|
pcie0: pcie@0,0 { |
reg = <0x0000 0 0 0 0>; |
|
#address-cells = <3>; |
#size-cells = <2>; |
|
ranges; |
}; |
|
pcie1: pcie@1,0 { |
reg = <0x0800 0 0 0 0>; |
|
#address-cells = <3>; |
#size-cells = <2>; |
|
ranges; |
}; |
|
pcie2: pcie@2,0 { |
reg = <0x1000 0 0 0 0>; |
|
#address-cells = <3>; |
#size-cells = <2>; |
|
ranges; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/mt7628an.dtsi |
@@ -0,0 +1,513 @@ |
/ { |
#address-cells = <1>; |
#size-cells = <1>; |
compatible = "mediatek,mt7628an-soc"; |
|
cpus { |
#address-cells = <1>; |
#size-cells = <0>; |
|
cpu@0 { |
compatible = "mips,mips24KEc"; |
reg = <0>; |
}; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
aliases { |
serial0 = &uartlite; |
}; |
|
cpuintc: cpuintc { |
#address-cells = <0>; |
#interrupt-cells = <1>; |
interrupt-controller; |
compatible = "mti,cpu-interrupt-controller"; |
}; |
|
palmbus: palmbus@10000000 { |
compatible = "palmbus"; |
reg = <0x10000000 0x200000>; |
ranges = <0x0 0x10000000 0x1FFFFF>; |
|
#address-cells = <1>; |
#size-cells = <1>; |
|
sysc: sysc@0 { |
compatible = "ralink,mt7620a-sysc", "syscon"; |
reg = <0x0 0x100>; |
}; |
|
watchdog: watchdog@100 { |
compatible = "ralink,mt7628an-wdt", "mediatek,mt7621-wdt"; |
reg = <0x100 0x30>; |
|
resets = <&rstctrl 8>; |
reset-names = "wdt"; |
|
interrupt-parent = <&intc>; |
interrupts = <24>; |
}; |
|
intc: intc@200 { |
compatible = "ralink,mt7628an-intc", "ralink,rt2880-intc"; |
reg = <0x200 0x100>; |
|
resets = <&rstctrl 9>; |
reset-names = "intc"; |
|
interrupt-controller; |
#interrupt-cells = <1>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <2>; |
|
ralink,intc-registers = <0x9c 0xa0 |
0x6c 0xa4 |
0x80 0x78>; |
}; |
|
memc: memc@300 { |
compatible = "ralink,mt7620a-memc", "ralink,rt3050-memc"; |
reg = <0x300 0x100>; |
|
resets = <&rstctrl 20>; |
reset-names = "mc"; |
|
interrupt-parent = <&intc>; |
interrupts = <3>; |
}; |
|
gpio@600 { |
#address-cells = <1>; |
#size-cells = <0>; |
|
compatible = "mtk,mt7628-gpio", "mtk,mt7621-gpio"; |
reg = <0x600 0x100>; |
|
interrupt-parent = <&intc>; |
interrupts = <6>; |
|
gpio0: bank@0 { |
reg = <0>; |
compatible = "mtk,mt7621-gpio-bank"; |
gpio-controller; |
#gpio-cells = <2>; |
}; |
|
gpio1: bank@1 { |
reg = <1>; |
compatible = "mtk,mt7621-gpio-bank"; |
gpio-controller; |
#gpio-cells = <2>; |
}; |
|
gpio2: bank@2 { |
reg = <2>; |
compatible = "mtk,mt7621-gpio-bank"; |
gpio-controller; |
#gpio-cells = <2>; |
}; |
}; |
|
i2c: i2c@900 { |
compatible = "mediatek,mt7621-i2c"; |
reg = <0x900 0x100>; |
|
resets = <&rstctrl 16>; |
reset-names = "i2c"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
status = "disabled"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&i2c_pins>; |
}; |
|
i2s: i2s@a00 { |
compatible = "mediatek,mt7628-i2s"; |
reg = <0xa00 0x100>; |
|
resets = <&rstctrl 17>; |
reset-names = "i2s"; |
|
interrupt-parent = <&intc>; |
interrupts = <10>; |
|
txdma-req = <2>; |
rxdma-req = <3>; |
|
dmas = <&gdma 4>, |
<&gdma 6>; |
dma-names = "tx", "rx"; |
|
status = "disabled"; |
}; |
|
spi0: spi@b00 { |
compatible = "ralink,mt7621-spi"; |
reg = <0xb00 0x100>; |
|
resets = <&rstctrl 18>; |
reset-names = "spi"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&spi_pins>; |
|
status = "disabled"; |
}; |
|
uartlite: uartlite@c00 { |
compatible = "ns16550a"; |
reg = <0xc00 0x100>; |
|
reg-shift = <2>; |
reg-io-width = <4>; |
no-loopback-test; |
|
clock-frequency = <40000000>; |
|
resets = <&rstctrl 12>; |
reset-names = "uartl"; |
|
interrupt-parent = <&intc>; |
interrupts = <20>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&uart0_pins>; |
}; |
|
uart1: uart1@d00 { |
compatible = "ns16550a"; |
reg = <0xd00 0x100>; |
|
reg-shift = <2>; |
reg-io-width = <4>; |
no-loopback-test; |
|
clock-frequency = <40000000>; |
|
resets = <&rstctrl 19>; |
reset-names = "uart1"; |
|
interrupt-parent = <&intc>; |
interrupts = <21>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&uart1_pins>; |
|
status = "disabled"; |
}; |
|
uart2: uart2@e00 { |
compatible = "ns16550a"; |
reg = <0xe00 0x100>; |
|
reg-shift = <2>; |
reg-io-width = <4>; |
no-loopback-test; |
|
clock-frequency = <40000000>; |
|
resets = <&rstctrl 20>; |
reset-names = "uart2"; |
|
interrupt-parent = <&intc>; |
interrupts = <22>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&uart2_pins>; |
|
status = "disabled"; |
}; |
|
pwm: pwm@5000 { |
compatible = "mediatek,mt7628-pwm"; |
reg = <0x5000 0x1000>; |
|
resets = <&rstctrl 31>; |
reset-names = "pwm"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&pwm0_pins>, <&pwm1_pins>; |
|
status = "disabled"; |
}; |
|
pcm: pcm@2000 { |
compatible = "ralink,mt7620a-pcm"; |
reg = <0x2000 0x800>; |
|
resets = <&rstctrl 11>; |
reset-names = "pcm"; |
|
interrupt-parent = <&intc>; |
interrupts = <4>; |
|
status = "disabled"; |
}; |
|
gdma: gdma@2800 { |
compatible = "ralink,rt3883-gdma"; |
reg = <0x2800 0x800>; |
|
resets = <&rstctrl 14>; |
reset-names = "dma"; |
|
interrupt-parent = <&intc>; |
interrupts = <7>; |
|
#dma-cells = <1>; |
#dma-channels = <16>; |
#dma-requests = <16>; |
|
status = "disabled"; |
}; |
}; |
|
pinctrl: pinctrl { |
compatible = "ralink,rt2880-pinmux"; |
pinctrl-names = "default"; |
pinctrl-0 = <&state_default>; |
|
state_default: pinctrl0 { |
}; |
|
spi_pins: spi_pins { |
spi_pins { |
ralink,group = "spi"; |
ralink,function = "spi"; |
}; |
}; |
|
spi_cs1_pins: spi_cs1 { |
spi_cs1 { |
ralink,group = "spi cs1"; |
ralink,function = "spi cs1"; |
}; |
}; |
|
i2c_pins: i2c_pins { |
i2c_pins { |
ralink,group = "i2c"; |
ralink,function = "i2c"; |
}; |
}; |
|
i2s_pins: i2s { |
i2s { |
ralink,group = "i2s"; |
ralink,function = "i2s"; |
}; |
}; |
|
uart0_pins: uartlite { |
uartlite { |
ralink,group = "uart0"; |
ralink,function = "uart0"; |
}; |
}; |
|
uart1_pins: uart1 { |
uart1 { |
ralink,group = "uart1"; |
ralink,function = "uart1"; |
}; |
}; |
|
uart2_pins: uart2 { |
uart2 { |
ralink,group = "uart2"; |
ralink,function = "uart2"; |
}; |
}; |
|
sdxc_pins: sdxc { |
sdxc { |
ralink,group = "sdmode"; |
ralink,function = "sdxc"; |
}; |
}; |
|
pwm0_pins: pwm0 { |
pwm0 { |
ralink,group = "pwm0"; |
ralink,function = "pwm0"; |
}; |
}; |
|
pwm1_pins: pwm1 { |
pwm1 { |
ralink,group = "pwm1"; |
ralink,function = "pwm1"; |
}; |
}; |
|
pcm_i2s_pins: pcm_i2s { |
pcm_i2s { |
ralink,group = "i2s"; |
ralink,function = "pcm"; |
}; |
}; |
|
refclk_pins: refclk { |
refclk { |
ralink,group = "refclk"; |
ralink,function = "refclk"; |
}; |
}; |
}; |
|
rstctrl: rstctrl { |
compatible = "ralink,mt7620a-reset", "ralink,rt2880-reset"; |
#reset-cells = <1>; |
}; |
|
clkctrl: clkctrl { |
compatible = "ralink,rt2880-clock"; |
#clock-cells = <1>; |
}; |
|
usbphy: usbphy@10120000 { |
compatible = "mediatek,mt7628-usbphy", "mediatek,mt7620-usbphy"; |
reg = <0x10120000 0x1000>; |
#phy-cells = <0>; |
|
ralink,sysctl = <&sysc>; |
resets = <&rstctrl 22 &rstctrl 25>; |
reset-names = "host", "device"; |
clocks = <&clkctrl 22 &clkctrl 25>; |
clock-names = "host", "device"; |
}; |
|
sdhci: sdhci@10130000 { |
compatible = "ralink,mt7620-sdhci"; |
reg = <0x10130000 0x4000>; |
|
interrupt-parent = <&intc>; |
interrupts = <14>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&sdxc_pins>; |
|
status = "disabled"; |
}; |
|
ehci: ehci@101c0000 { |
#address-cells = <1>; |
#size-cells = <0>; |
compatible = "generic-ehci"; |
reg = <0x101c0000 0x1000>; |
|
phys = <&usbphy>; |
phy-names = "usb"; |
|
interrupt-parent = <&intc>; |
interrupts = <18>; |
|
ehci_port1: port@1 { |
reg = <1>; |
#trigger-source-cells = <0>; |
}; |
}; |
|
ohci: ohci@101c1000 { |
#address-cells = <1>; |
#size-cells = <0>; |
compatible = "generic-ohci"; |
reg = <0x101c1000 0x1000>; |
|
phys = <&usbphy>; |
phy-names = "usb"; |
|
interrupt-parent = <&intc>; |
interrupts = <18>; |
|
ohci_port1: port@1 { |
reg = <1>; |
#trigger-source-cells = <0>; |
}; |
}; |
|
ethernet: ethernet@10100000 { |
compatible = "ralink,rt5350-eth"; |
reg = <0x10100000 0x10000>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <5>; |
|
resets = <&rstctrl 21 &rstctrl 23>; |
reset-names = "fe", "esw"; |
|
mediatek,switch = <&esw>; |
}; |
|
esw: esw@10110000 { |
compatible = "mediatek,mt7628-esw", "ralink,rt3050-esw"; |
reg = <0x10110000 0x8000>; |
|
resets = <&rstctrl 23>; |
reset-names = "esw"; |
|
interrupt-parent = <&intc>; |
interrupts = <17>; |
}; |
|
pcie: pcie@10140000 { |
compatible = "mediatek,mt7620-pci"; |
reg = <0x10140000 0x100 |
0x10142000 0x100>; |
|
#address-cells = <3>; |
#size-cells = <2>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <4>; |
|
resets = <&rstctrl 26 &rstctrl 27>; |
reset-names = "pcie0", "pcie1"; |
clocks = <&clkctrl 26 &clkctrl 27>; |
clock-names = "pcie0", "pcie1"; |
|
status = "disabled"; |
|
device_type = "pci"; |
|
bus-range = <0 255>; |
ranges = < |
0x02000000 0 0x00000000 0x20000000 0 0x10000000 /* pci memory */ |
0x01000000 0 0x00000000 0x10160000 0 0x00010000 /* io space */ |
>; |
|
pcie0: pcie@0,0 { |
reg = <0x0000 0 0 0 0>; |
|
#address-cells = <3>; |
#size-cells = <2>; |
|
device_type = "pci"; |
|
ranges; |
}; |
}; |
|
wmac: wmac@10300000 { |
compatible = "mediatek,mt7628-wmac"; |
reg = <0x10300000 0x100000>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <6>; |
|
status = "disabled"; |
|
mediatek,mtd-eeprom = <&factory 0x0000>; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/rt2880.dtsi |
@@ -0,0 +1,238 @@ |
/ { |
#address-cells = <1>; |
#size-cells = <1>; |
compatible = "ralink,rt2880-soc"; |
|
cpus { |
#address-cells = <1>; |
#size-cells = <0>; |
|
cpu@0 { |
compatible = "mips,mips24KEc"; |
reg = <0>; |
}; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
aliases { |
serial0 = &uartlite; |
}; |
|
cpuintc: cpuintc { |
#address-cells = <0>; |
#interrupt-cells = <1>; |
interrupt-controller; |
compatible = "mti,cpu-interrupt-controller"; |
}; |
|
palmbus: palmbus@300000 { |
compatible = "palmbus"; |
reg = <0x300000 0x200000>; |
ranges = <0x0 0x300000 0x1FFFFF>; |
|
#address-cells = <1>; |
#size-cells = <1>; |
|
sysc: sysc@0 { |
compatible = "ralink,rt2880-sysc"; |
reg = <0x000 0x100>; |
}; |
|
timer: timer@100 { |
compatible = "ralink,rt2880-timer"; |
reg = <0x100 0x20>; |
|
interrupt-parent = <&intc>; |
interrupts = <1>; |
|
status = "disabled"; |
}; |
|
watchdog: watchdog@120 { |
compatible = "ralink,rt2880-wdt"; |
reg = <0x120 0x10>; |
}; |
|
intc: intc@200 { |
compatible = "ralink,rt2880-intc"; |
reg = <0x200 0x100>; |
|
interrupt-controller; |
#interrupt-cells = <1>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <2>; |
}; |
|
memc: memc@300 { |
compatible = "ralink,rt2880-memc"; |
reg = <0x300 0x100>; |
}; |
|
gpio0: gpio@600 { |
compatible = "ralink,rt2880-gpio"; |
reg = <0x600 0x34>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <0>; |
ralink,nr-gpio = <24>; |
ralink,register-map = [ 00 04 08 0c |
20 24 28 2c |
30 34 ]; |
}; |
|
gpio1: gpio@638 { |
compatible = "ralink,rt2880-gpio"; |
reg = <0x638 0x24>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <24>; |
ralink,nr-gpio = <16>; |
ralink,register-map = [ 00 04 08 0c |
10 14 18 1c |
20 24 ]; |
|
status = "disabled"; |
}; |
|
gpio2: gpio@660 { |
compatible = "ralink,rt2880-gpio"; |
reg = <0x660 0x24>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <40>; |
ralink,nr-gpio = <32>; |
ralink,register-map = [ 00 04 08 0c |
10 14 18 1c |
20 24 ]; |
|
status = "disabled"; |
}; |
|
i2c: i2c@900 { |
compatible = "ralink,rt2880-i2c"; |
reg = <0x900 0x100>; |
|
resets = <&rstctrl 9>; |
reset-names = "i2c"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
status = "disabled"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&i2c_pins>; |
}; |
|
uartlite: uartlite@c00 { |
compatible = "ralink,rt2880-uart", "ns16550a"; |
reg = <0xc00 0x100>; |
|
interrupt-parent = <&intc>; |
interrupts = <8>; |
|
reg-shift = <2>; |
}; |
}; |
|
pinctrl: pinctrl { |
compatible = "ralink,rt2880-pinmux"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&state_default>; |
|
state_default: pinctrl0 { |
sdram { |
ralink,group = "sdram"; |
ralink,function = "sdram"; |
}; |
}; |
|
i2c_pins: i2c_pins { |
i2c_pins { |
ralink,group = "i2c"; |
ralink,function = "i2c"; |
}; |
}; |
|
spi_pins: spi_pins { |
spi_pins { |
ralink,group = "spi"; |
ralink,function = "spi"; |
}; |
}; |
|
uartlite_pins: uartlite { |
uart { |
ralink,group = "uartlite"; |
ralink,function = "uartlite"; |
}; |
}; |
}; |
|
rstctrl: rstctrl { |
compatible = "ralink,rt2880-reset"; |
#reset-cells = <1>; |
}; |
|
clkctrl: clkctrl { |
compatible = "ralink,rt2880-clock"; |
#clock-cells = <1>; |
}; |
|
pci: pci@440000 { |
compatible = "ralink,rt288x-pci"; |
reg = <0x00440000 0x20000>; |
#address-cells = <3>; |
#size-cells = <2>; |
status = "disabled"; |
}; |
|
ethernet: ethernet@400000 { |
compatible = "ralink,rt2880-eth"; |
reg = <0x00400000 0x10000>; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
resets = <&rstctrl 18>; |
reset-names = "fe"; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <5>; |
|
status = "disabled"; |
|
port@0 { |
compatible = "ralink,rt2880-port", "mediatek,eth-port"; |
reg = <0>; |
}; |
|
mdio-bus { |
#address-cells = <1>; |
#size-cells = <0>; |
|
status = "disabled"; |
}; |
}; |
|
wmac: wmac@480000 { |
compatible = "ralink,rt2880-wmac"; |
reg = <0x480000 0x40000>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <6>; |
|
ralink,eeprom = "soc_wmac.eeprom"; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/rt3050.dtsi |
@@ -0,0 +1,356 @@ |
/ { |
#address-cells = <1>; |
#size-cells = <1>; |
compatible = "ralink,rt3050-soc", "ralink,rt3052-soc", "ralink,rt3350-soc"; |
|
cpus { |
#address-cells = <1>; |
#size-cells = <0>; |
|
cpu@0 { |
compatible = "mips,mips24KEc"; |
reg = <0>; |
}; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
aliases { |
spi0 = &spi0; |
serial0 = &uartlite; |
}; |
|
cpuintc: cpuintc { |
#address-cells = <0>; |
#interrupt-cells = <1>; |
interrupt-controller; |
compatible = "mti,cpu-interrupt-controller"; |
}; |
|
palmbus: palmbus@10000000 { |
compatible = "palmbus"; |
reg = <0x10000000 0x200000>; |
ranges = <0x0 0x10000000 0x1FFFFF>; |
|
#address-cells = <1>; |
#size-cells = <1>; |
|
sysc: sysc@0 { |
compatible = "ralink,rt3050-sysc", "syscon"; |
reg = <0x0 0x100>; |
}; |
|
timer: timer@100 { |
compatible = "ralink,rt3050-timer", "ralink,rt2880-timer"; |
reg = <0x100 0x20>; |
|
interrupt-parent = <&intc>; |
interrupts = <1>; |
}; |
|
watchdog: watchdog@120 { |
compatible = "ralink,rt3050-wdt", "ralink,rt2880-wdt"; |
reg = <0x120 0x10>; |
|
resets = <&rstctrl 8>; |
reset-names = "wdt"; |
|
interrupt-parent = <&intc>; |
interrupts = <1>; |
}; |
|
intc: intc@200 { |
compatible = "ralink,rt3050-intc", "ralink,rt2880-intc"; |
reg = <0x200 0x100>; |
|
resets = <&rstctrl 19>; |
reset-names = "intc"; |
|
interrupt-controller; |
#interrupt-cells = <1>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <2>; |
}; |
|
memc: memc@300 { |
compatible = "ralink,rt3050-memc"; |
reg = <0x300 0x100>; |
|
resets = <&rstctrl 20>; |
reset-names = "mc"; |
|
interrupt-parent = <&intc>; |
interrupts = <3>; |
}; |
|
uart: uart@500 { |
compatible = "ralink,rt3050-uart", "ralink,rt2880-uart", "ns16550a"; |
reg = <0x500 0x100>; |
|
resets = <&rstctrl 12>; |
reset-names = "uart"; |
|
interrupt-parent = <&intc>; |
interrupts = <5>; |
|
reg-shift = <2>; |
|
status = "disabled"; |
}; |
|
gpio0: gpio@600 { |
compatible = "ralink,rt3050-gpio", "ralink,rt2880-gpio"; |
reg = <0x600 0x34>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <0>; |
ralink,nr-gpio = <24>; |
ralink,register-map = [ 00 04 08 0c |
20 24 28 2c |
30 34 ]; |
|
resets = <&rstctrl 13>; |
reset-names = "pio"; |
|
interrupt-parent = <&intc>; |
interrupts = <6>; |
}; |
|
gpio1: gpio@638 { |
compatible = "ralink,rt3050-gpio", "ralink,rt2880-gpio"; |
reg = <0x638 0x24>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <24>; |
ralink,nr-gpio = <16>; |
ralink,register-map = [ 00 04 08 0c |
10 14 18 1c |
20 24 ]; |
|
status = "disabled"; |
}; |
|
gpio2: gpio@660 { |
compatible = "ralink,rt3050-gpio", "ralink,rt2880-gpio"; |
reg = <0x660 0x24>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <40>; |
ralink,nr-gpio = <12>; |
ralink,register-map = [ 00 04 08 0c |
10 14 18 1c |
20 24 ]; |
|
status = "disabled"; |
}; |
|
gdma: gdma@700 { |
compatible = "ralink,rt305x-gdma"; |
reg = <0x700 0x100>; |
|
resets = <&rstctrl 14>; |
reset-names = "dma"; |
|
interrupt-parent = <&intc>; |
interrupts = <7>; |
|
#dma-cells = <1>; |
#dma-channels = <8>; |
#dma-requests = <8>; |
|
status = "disabled"; |
}; |
|
i2c@900 { |
compatible = "ralink,rt2880-i2c"; |
reg = <0x900 0x100>; |
|
resets = <&rstctrl 16>; |
reset-names = "i2c"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
status = "disabled"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&i2c_pins>; |
}; |
|
i2s@a00 { |
compatible = "ralink,rt3050-i2s"; |
reg = <0xa00 0x100>; |
|
resets = <&rstctrl 17>; |
reset-names = "i2s"; |
|
interrupt-parent = <&intc>; |
interrupts = <10>; |
|
txdma-req = <2>; |
|
dmas = <&gdma 4>; |
dma-names = "tx"; |
|
status = "disabled"; |
}; |
|
spi0: spi@b00 { |
compatible = "ralink,rt3050-spi", "ralink,rt2880-spi"; |
reg = <0xb00 0x100>; |
|
resets = <&rstctrl 18>; |
reset-names = "spi"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&spi_pins>; |
|
status = "disabled"; |
}; |
|
uartlite: uartlite@c00 { |
compatible = "ralink,rt3050-uart", "ralink,rt2880-uart", "ns16550a"; |
reg = <0xc00 0x100>; |
|
resets = <&rstctrl 19>; |
reset-names = "uartl"; |
|
interrupt-parent = <&intc>; |
interrupts = <12>; |
|
reg-shift = <2>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&uartlite_pins>; |
}; |
}; |
|
pinctrl: pinctrl { |
compatible = "ralink,rt2880-pinmux"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&state_default>; |
|
state_default: pinctrl0 { |
sdram { |
ralink,group = "sdram"; |
ralink,function = "sdram"; |
}; |
}; |
|
i2c_pins: i2c_pins { |
i2c_pins { |
ralink,group = "i2c"; |
ralink,function = "i2c"; |
}; |
}; |
|
spi_pins: spi_pins { |
spi_pins { |
ralink,group = "spi"; |
ralink,function = "spi"; |
}; |
}; |
|
rgmii_pins: rgmii { |
rgmii { |
ralink,group = "rgmii"; |
ralink,function = "rgmii"; |
}; |
}; |
|
uartlite_pins: uartlite { |
uart { |
ralink,group = "uartlite"; |
ralink,function = "uartlite"; |
}; |
}; |
}; |
|
rstctrl: rstctrl { |
compatible = "ralink,rt3050-reset", "ralink,rt2880-reset"; |
#reset-cells = <1>; |
}; |
|
clkctrl: clkctrl { |
compatible = "ralink,rt2880-clock"; |
#clock-cells = <1>; |
}; |
|
usbphy: usbphy { |
compatible = "ralink,rt3050-usbphy"; |
#phy-cells = <0>; |
|
ralink,sysctl = <&sysc>; |
resets = <&rstctrl 22>; |
reset-names = "host"; |
clocks = <&clkctrl 18>; |
clock-names = "host"; |
}; |
|
ethernet: ethernet@10100000 { |
compatible = "ralink,rt3050-eth"; |
reg = <0x10100000 0x10000>; |
|
resets = <&rstctrl 21>; |
reset-names = "fe"; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <5>; |
|
mediatek,switch = <&esw>; |
}; |
|
esw: esw@10110000 { |
compatible = "ralink,rt3050-esw"; |
reg = <0x10110000 0x8000>; |
|
resets = <&rstctrl 23>; |
reset-names = "esw"; |
|
interrupt-parent = <&intc>; |
interrupts = <17>; |
}; |
|
wmac: wmac@10180000 { |
compatible = "ralink,rt3050-wmac", "ralink,rt2880-wmac"; |
reg = <0x10180000 0x40000>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <6>; |
|
ralink,eeprom = "soc_wmac.eeprom"; |
}; |
|
otg: otg@101c0000 { |
#address-cells = <1>; |
#size-cells = <0>; |
compatible = "ralink,rt3050-otg", "snps,dwc2"; |
reg = <0x101c0000 0x40000>; |
|
interrupt-parent = <&intc>; |
interrupts = <18>; |
|
resets = <&rstctrl 22>; |
reset-names = "otg"; |
|
status = "disabled"; |
|
otg_port1: port@1 { |
reg = <1>; |
#trigger-source-cells = <0>; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/rt3352.dtsi |
@@ -0,0 +1,399 @@ |
/ { |
#address-cells = <1>; |
#size-cells = <1>; |
compatible = "ralink,rt3352-soc"; |
|
cpus { |
#address-cells = <1>; |
#size-cells = <0>; |
|
cpu@0 { |
compatible = "mips,mips24KEc"; |
reg = <0>; |
}; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
cpuintc: cpuintc { |
#address-cells = <0>; |
#interrupt-cells = <1>; |
interrupt-controller; |
compatible = "mti,cpu-interrupt-controller"; |
}; |
|
aliases { |
spi0 = &spi0; |
spi1 = &spi1; |
serial0 = &uartlite; |
}; |
|
palmbus: palmbus@10000000 { |
compatible = "palmbus"; |
reg = <0x10000000 0x200000>; |
ranges = <0x0 0x10000000 0x1FFFFF>; |
|
#address-cells = <1>; |
#size-cells = <1>; |
|
sysc: sysc@0 { |
compatible = "ralink,rt3352-sysc", "ralink,rt3050-sysc", "syscon"; |
reg = <0x0 0x100>; |
}; |
|
timer: timer@100 { |
compatible = "ralink,rt3352-timer", "ralink,rt2880-timer"; |
reg = <0x100 0x20>; |
|
interrupt-parent = <&intc>; |
interrupts = <1>; |
}; |
|
watchdog: watchdog@120 { |
compatible = "ralink,rt3352-wdt", "ralink,rt2880-wdt"; |
reg = <0x120 0x10>; |
|
resets = <&rstctrl 8>; |
reset-names = "wdt"; |
|
interrupt-parent = <&intc>; |
interrupts = <1>; |
}; |
|
intc: intc@200 { |
compatible = "ralink,rt3352-intc", "ralink,rt2880-intc"; |
reg = <0x200 0x100>; |
|
interrupt-controller; |
#interrupt-cells = <1>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <2>; |
}; |
|
memc: memc@300 { |
compatible = "ralink,rt3352-memc", "ralink,rt3050-memc"; |
reg = <0x300 0x100>; |
|
resets = <&rstctrl 20>; |
reset-names = "mc"; |
|
interrupt-parent = <&intc>; |
interrupts = <3>; |
}; |
|
uart: uart@500 { |
compatible = "ralink,rt3352-uart", "ralink,rt2880-uart", "ns16550a"; |
reg = <0x500 0x100>; |
|
resets = <&rstctrl 12>; |
reset-names = "uart"; |
|
interrupt-parent = <&intc>; |
interrupts = <5>; |
|
reg-shift = <2>; |
|
status = "disabled"; |
}; |
|
gpio0: gpio@600 { |
compatible = "ralink,rt3352-gpio", "ralink,rt2880-gpio"; |
reg = <0x600 0x34>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <0>; |
ralink,nr-gpio = <24>; |
ralink,register-map = [ 00 04 08 0c |
20 24 28 2c |
30 34 ]; |
resets = <&rstctrl 13>; |
reset-names = "pio"; |
|
interrupt-parent = <&intc>; |
interrupts = <6>; |
}; |
|
gpio1: gpio@638 { |
compatible = "ralink,rt3352-gpio", "ralink,rt2880-gpio"; |
reg = <0x638 0x24>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <24>; |
ralink,nr-gpio = <16>; |
ralink,register-map = [ 00 04 08 0c |
10 14 18 1c |
20 24 ]; |
|
status = "disabled"; |
}; |
|
gpio2: gpio@660 { |
compatible = "ralink,rt3352-gpio", "ralink,rt2880-gpio"; |
reg = <0x660 0x24>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <40>; |
ralink,nr-gpio = <6>; |
ralink,register-map = [ 00 04 08 0c |
10 14 18 1c |
20 24 ]; |
|
status = "disabled"; |
}; |
|
i2c@900 { |
compatible = "ralink,rt2880-i2c"; |
reg = <0x900 0x100>; |
|
resets = <&rstctrl 16>; |
reset-names = "i2c"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
status = "disabled"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&i2c_pins>; |
}; |
|
i2s@a00 { |
compatible = "ralink,rt3352-i2s"; |
reg = <0xa00 0x100>; |
|
resets = <&rstctrl 17>; |
reset-names = "i2s"; |
|
interrupt-parent = <&intc>; |
interrupts = <10>; |
|
txdma-req = <2>; |
rxdma-req = <3>; |
|
dmas = <&gdma 4>, |
<&gdma 6>; |
dma-names = "tx", "rx"; |
|
status = "disabled"; |
}; |
|
spi0: spi@b00 { |
compatible = "ralink,rt3352-spi", "ralink,rt2880-spi"; |
reg = <0xb00 0x40>; |
#address-cells = <1>; |
#size-cells = <0>; |
|
resets = <&rstctrl 18>; |
reset-names = "spi"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&spi_pins>; |
|
status = "disabled"; |
}; |
|
spi1: spi@b40 { |
compatible = "ralink,rt3352-spi", "ralink,rt2880-spi"; |
reg = <0xb40 0x60>; |
#address-cells = <1>; |
#size-cells = <0>; |
|
resets = <&rstctrl 18>; |
reset-names = "spi"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&spi_cs1>; |
|
status = "disabled"; |
}; |
|
uartlite: uartlite@c00 { |
compatible = "ralink,rt3352-uart", "ralink,rt2880-uart", "ns16550a"; |
reg = <0xc00 0x100>; |
|
resets = <&rstctrl 19>; |
reset-names = "uartl"; |
|
interrupt-parent = <&intc>; |
interrupts = <12>; |
|
reg-shift = <2>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&uartlite_pins>; |
}; |
|
gdma: gdma@2800 { |
compatible = "ralink,rt3883-gdma"; |
reg = <0x2800 0x800>; |
|
resets = <&rstctrl 14>; |
reset-names = "dma"; |
|
interrupt-parent = <&intc>; |
interrupts = <7>; |
|
#dma-cells = <1>; |
#dma-channels = <16>; |
#dma-requests = <16>; |
|
status = "disabled"; |
}; |
}; |
|
pinctrl: pinctrl { |
compatible = "ralink,rt2880-pinmux"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&state_default>; |
|
state_default: pinctrl0 { |
}; |
|
i2c_pins: i2c_pins { |
i2c_pins { |
ralink,group = "i2c"; |
ralink,function = "i2c"; |
}; |
}; |
|
mdio_pins: mdio { |
mdio { |
ralink,group = "mdio"; |
ralink,function = "mdio"; |
}; |
}; |
|
rgmii_pins: rgmii { |
rgmii { |
ralink,group = "rgmii"; |
ralink,function = "rgmii"; |
}; |
}; |
|
spi_pins: spi_pins { |
spi_pins { |
ralink,group = "spi"; |
ralink,function = "spi"; |
}; |
}; |
|
spi_cs1: spi1 { |
spi1 { |
ralink,group = "spi_cs1"; |
ralink,function = "spi_cs1"; |
}; |
}; |
|
uartlite_pins: uartlite { |
uart { |
ralink,group = "uartlite"; |
ralink,function = "uartlite"; |
}; |
}; |
}; |
|
rstctrl: rstctrl { |
compatible = "ralink,rt3352-reset", "ralink,rt2880-reset"; |
#reset-cells = <1>; |
}; |
|
clkctrl: clkctrl { |
compatible = "ralink,rt2880-clock"; |
#clock-cells = <1>; |
}; |
|
ethernet: ethernet@10100000 { |
compatible = "ralink,rt3352-eth", "ralink,rt3050-eth"; |
reg = <0x10100000 0x10000>; |
|
resets = <&rstctrl 21>; |
reset-names = "fe"; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <5>; |
|
mediatek,switch = <&esw>; |
}; |
|
esw: esw@10110000 { |
compatible = "ralink,rt3352-esw", "ralink,rt3050-esw"; |
reg = <0x10110000 0x8000>; |
|
resets = <&rstctrl 23>; |
reset-names = "esw"; |
|
interrupt-parent = <&intc>; |
interrupts = <17>; |
}; |
|
usbphy: usbphy { |
compatible = "ralink,rt3352-usbphy"; |
#phy-cells = <0>; |
|
ralink,sysctl = <&sysc>; |
resets = <&rstctrl 22 &rstctrl 25>; |
reset-names = "host", "device"; |
clocks = <&clkctrl 18 &clkctrl 20>; |
clock-names = "host", "device"; |
}; |
|
wmac: wmac@10180000 { |
compatible = "ralink,rt3352-wmac", "ralink,rt2880-wmac"; |
reg = <0x10180000 0x40000>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <6>; |
|
ralink,eeprom = "soc_wmac.eeprom"; |
}; |
|
ehci: ehci@101c0000 { |
#address-cells = <1>; |
#size-cells = <0>; |
compatible = "generic-ehci"; |
reg = <0x101c0000 0x1000>; |
|
phys = <&usbphy>; |
phy-names = "usb"; |
|
interrupt-parent = <&intc>; |
interrupts = <18>; |
|
status = "disabled"; |
|
ehci_port1: port@1 { |
reg = <1>; |
#trigger-source-cells = <0>; |
}; |
}; |
|
ohci: ohci@101c1000 { |
#address-cells = <1>; |
#size-cells = <0>; |
compatible = "generic-ohci"; |
reg = <0x101c1000 0x1000>; |
|
phys = <&usbphy>; |
phy-names = "usb"; |
|
interrupt-parent = <&intc>; |
interrupts = <18>; |
|
status = "disabled"; |
|
ohci_port1: port@1 { |
reg = <1>; |
#trigger-source-cells = <0>; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/rt3883.dtsi |
@@ -0,0 +1,497 @@ |
/ { |
#address-cells = <1>; |
#size-cells = <1>; |
compatible = "ralink,rt3883-soc"; |
|
cpus { |
#address-cells = <1>; |
#size-cells = <0>; |
|
cpu@0 { |
compatible = "mips,mips74Kc"; |
reg = <0>; |
}; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
aliases { |
spi0 = &spi0; |
spi1 = &spi1; |
serial0 = &uartlite; |
}; |
|
cpuintc: cpuintc { |
#address-cells = <0>; |
#interrupt-cells = <1>; |
interrupt-controller; |
compatible = "mti,cpu-interrupt-controller"; |
}; |
|
palmbus: palmbus@10000000 { |
compatible = "palmbus"; |
reg = <0x10000000 0x200000>; |
ranges = <0x0 0x10000000 0x1FFFFF>; |
|
#address-cells = <1>; |
#size-cells = <1>; |
|
sysc: sysc@0 { |
compatible = "ralink,rt3883-sysc", "ralink,rt3050-sysc", "syscon"; |
reg = <0x0 0x100>; |
}; |
|
timer: timer@100 { |
compatible = "ralink,rt3883-timer", "ralink,rt2880-timer"; |
reg = <0x100 0x20>; |
|
interrupt-parent = <&intc>; |
interrupts = <1>; |
}; |
|
watchdog: watchdog@120 { |
compatible = "ralink,rt3883-wdt", "ralink,rt2880-wdt"; |
reg = <0x120 0x10>; |
|
resets = <&rstctrl 8>; |
reset-names = "wdt"; |
|
interrupt-parent = <&intc>; |
interrupts = <1>; |
}; |
|
intc: intc@200 { |
compatible = "ralink,rt3883-intc", "ralink,rt2880-intc"; |
reg = <0x200 0x100>; |
|
resets = <&rstctrl 19>; |
reset-names = "intc"; |
|
interrupt-controller; |
#interrupt-cells = <1>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <2>; |
}; |
|
memc: memc@300 { |
compatible = "ralink,rt3883-memc", "ralink,rt3050-memc"; |
reg = <0x300 0x100>; |
|
resets = <&rstctrl 20>; |
reset-names = "mc"; |
|
interrupt-parent = <&intc>; |
interrupts = <3>; |
}; |
|
uart: uart@500 { |
compatible = "ralink,rt3883-uart", "ralink,rt2880-uart", "ns16550a"; |
reg = <0x500 0x100>; |
|
resets = <&rstctrl 12>; |
reset-names = "uart"; |
|
interrupt-parent = <&intc>; |
interrupts = <5>; |
|
reg-shift = <2>; |
|
status = "disabled"; |
}; |
|
gpio0: gpio@600 { |
compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio"; |
reg = <0x600 0x34>; |
|
resets = <&rstctrl 13>; |
reset-names = "pio"; |
|
interrupt-parent = <&intc>; |
interrupts = <6>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <0>; |
ralink,nr-gpio = <24>; |
ralink,register-map = [ 00 04 08 0c |
20 24 28 2c |
30 34 ]; |
}; |
|
gpio1: gpio@638 { |
compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio"; |
reg = <0x638 0x24>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <24>; |
ralink,nr-gpio = <16>; |
ralink,register-map = [ 00 04 08 0c |
10 14 18 1c |
20 24 ]; |
|
status = "disabled"; |
}; |
|
gpio2: gpio@660 { |
compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio"; |
reg = <0x660 0x24>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <40>; |
ralink,nr-gpio = <32>; |
ralink,register-map = [ 00 04 08 0c |
10 14 18 1c |
20 24 ]; |
|
status = "disabled"; |
}; |
|
gpio3: gpio@688 { |
compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio"; |
reg = <0x688 0x24>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <72>; |
ralink,nr-gpio = <24>; |
ralink,register-map = [ 00 04 08 0c |
10 14 18 1c |
20 24 ]; |
|
status = "disabled"; |
}; |
|
i2c@900 { |
compatible = "ralink,rt2880-i2c"; |
reg = <0x900 0x100>; |
|
resets = <&rstctrl 16>; |
reset-names = "i2c"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
status = "disabled"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&i2c_pins>; |
}; |
|
i2s@a00 { |
compatible = "ralink,rt3883-i2s"; |
reg = <0xa00 0x100>; |
|
resets = <&rstctrl 17>; |
reset-names = "i2s"; |
|
interrupt-parent = <&intc>; |
interrupts = <10>; |
|
txdma-req = <2>; |
rxdma-req = <3>; |
|
dmas = <&gdma 4>, |
<&gdma 6>; |
dma-names = "tx", "rx"; |
|
status = "disabled"; |
}; |
|
spi0: spi@b00 { |
compatible = "ralink,rt3883-spi", "ralink,rt2880-spi"; |
reg = <0xb00 0x40>; |
#address-cells = <1>; |
#size-cells = <0>; |
|
resets = <&rstctrl 18>; |
reset-names = "spi"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&spi_pins>; |
|
status = "disabled"; |
}; |
|
spi1: spi@b40 { |
compatible = "ralink,rt3883-spi", "ralink,rt2880-spi"; |
reg = <0xb40 0x60>; |
#address-cells = <1>; |
#size-cells = <0>; |
|
resets = <&rstctrl 18>; |
reset-names = "spi"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&spi_cs1>; |
|
status = "disabled"; |
}; |
|
uartlite: uartlite@c00 { |
compatible = "ralink,rt3883-uart", "ralink,rt2880-uart", "ns16550a"; |
reg = <0xc00 0x100>; |
|
resets = <&rstctrl 19>; |
reset-names = "uartl"; |
|
interrupt-parent = <&intc>; |
interrupts = <12>; |
|
reg-shift = <2>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&uartlite_pins>; |
}; |
|
gdma: gdma@2800 { |
compatible = "ralink,rt3883-gdma"; |
reg = <0x2800 0x800>; |
|
resets = <&rstctrl 14>; |
reset-names = "dma"; |
|
interrupt-parent = <&intc>; |
interrupts = <7>; |
|
#dma-cells = <1>; |
#dma-channels = <16>; |
#dma-requests = <16>; |
|
status = "disabled"; |
}; |
}; |
|
pinctrl: pinctrl { |
compatible = "ralink,rt2880-pinmux"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&state_default>; |
|
state_default: pinctrl0 { |
}; |
|
i2c_pins: i2c_pins { |
i2c_pins { |
ralink,group = "i2c"; |
ralink,function = "i2c"; |
}; |
}; |
|
spi_pins: spi_pins { |
spi_pins { |
ralink,group = "spi"; |
ralink,function = "spi"; |
}; |
}; |
|
spi_cs1: spi1 { |
spi1 { |
ralink,group = "pci"; |
ralink,function = "pci-func"; |
}; |
}; |
|
uartlite_pins: uartlite { |
uart { |
ralink,group = "uartlite"; |
ralink,function = "uartlite"; |
}; |
}; |
|
pci_pins: pci { |
pci { |
ralink,group = "pci"; |
ralink,function = "pci-fnc"; |
}; |
}; |
}; |
|
ethernet: ethernet@10100000 { |
compatible = "ralink,rt3883-eth"; |
#address-cells = <1>; |
#size-cells = <0>; |
reg = <0x10100000 0x10000>; |
|
resets = <&rstctrl 21>; |
reset-names = "fe"; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <5>; |
|
port@0 { |
compatible = "ralink,rt3883-port", "mediatek,eth-port"; |
reg = <0>; |
}; |
|
mdio-bus { |
#address-cells = <1>; |
#size-cells = <0>; |
|
status = "disabled"; |
}; |
}; |
|
rstctrl: rstctrl { |
compatible = "ralink,rt3883-reset", "ralink,rt2880-reset"; |
#reset-cells = <1>; |
}; |
|
clkctrl: clkctrl { |
compatible = "ralink,rt2880-clock"; |
#clock-cells = <1>; |
}; |
|
pci: pci@10140000 { |
compatible = "ralink,rt3883-pci"; |
reg = <0x10140000 0x20000>; |
#address-cells = <1>; |
#size-cells = <1>; |
ranges; /* direct mapping */ |
|
pinctrl-names = "default"; |
pinctrl-0 = <&pci_pins>; |
|
status = "disabled"; |
|
pciintc: interrupt-controller { |
interrupt-controller; |
#address-cells = <0>; |
#interrupt-cells = <1>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <4>; |
}; |
|
pci@0 { |
#address-cells = <3>; |
#size-cells = <2>; |
#interrupt-cells = <1>; |
|
device_type = "pci"; |
|
bus-range = <0 255>; |
ranges = < |
0x02000000 0 0x00000000 0x20000000 0 0x10000000 /* pci memory */ |
0x01000000 0 0x00000000 0x10160000 0 0x00010000 /* io space */ |
>; |
|
interrupt-map-mask = <0xf800 0 0 7>; |
interrupt-map = < |
/* IDSEL 17 */ |
0x8800 0 0 1 &pciintc 18 |
0x8800 0 0 2 &pciintc 18 |
0x8800 0 0 3 &pciintc 18 |
0x8800 0 0 4 &pciintc 18 |
/* IDSEL 18 */ |
0x9000 0 0 1 &pciintc 19 |
0x9000 0 0 2 &pciintc 19 |
0x9000 0 0 3 &pciintc 19 |
0x9000 0 0 4 &pciintc 19 |
>; |
|
pci1: pci@1 { |
reg = <0x0800 0 0 0 0>; |
device_type = "pci"; |
#interrupt-cells = <1>; |
#address-cells = <3>; |
#size-cells = <2>; |
|
status = "disabled"; |
|
interrupt-map-mask = <0x0 0 0 0>; |
interrupt-map = <0x0 0 0 0 &pciintc 20>; |
|
bus-range = <1 255>; |
ranges; |
}; |
|
pci17: pci@11,0 { |
reg = <0x8800 0 0 0 0>; |
#interrupt-cells = <1>; |
#address-cells = <3>; |
#size-cells = <2>; |
|
status = "disabled"; |
}; |
|
pci18: pci@12,0 { |
reg = <0x9000 0 0 0 0>; |
#interrupt-cells = <1>; |
#address-cells = <3>; |
#size-cells = <2>; |
|
status = "disabled"; |
}; |
}; |
}; |
|
usbphy: usbphy { |
compatible = "ralink,rt3352-usbphy"; |
#phy-cells = <0>; |
|
ralink,sysctl = <&sysc>; |
resets = <&rstctrl 22 &rstctrl 25>; |
reset-names = "host", "device"; |
clocks = <&clkctrl 22 &clkctrl 25>; |
clock-names = "host", "device"; |
}; |
|
wmac: wmac@10180000 { |
compatible = "ralink,rt3883-wmac", "ralink,rt2880-wmac"; |
reg = <0x10180000 0x40000>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <6>; |
|
ralink,eeprom = "soc_wmac.eeprom"; |
}; |
|
ehci: ehci@101c0000 { |
#address-cells = <1>; |
#size-cells = <0>; |
compatible = "generic-ehci"; |
reg = <0x101c0000 0x1000>; |
|
phys = <&usbphy>; |
phy-names = "usb"; |
|
interrupt-parent = <&intc>; |
interrupts = <18>; |
|
status = "disabled"; |
|
ehci_port1: port@1 { |
reg = <1>; |
#trigger-source-cells = <0>; |
}; |
}; |
|
ohci: ohci@101c1000 { |
#address-cells = <1>; |
#size-cells = <0>; |
compatible = "generic-ohci"; |
reg = <0x101c1000 0x1000>; |
|
phys = <&usbphy>; |
phy-names = "usb"; |
|
interrupt-parent = <&intc>; |
interrupts = <18>; |
|
status = "disabled"; |
|
ohci_port1: port@1 { |
reg = <1>; |
#trigger-source-cells = <0>; |
}; |
}; |
}; |
/branches/18.06.1/target/linux/ramips/dts/rt5350.dtsi |
@@ -0,0 +1,409 @@ |
/ { |
#address-cells = <1>; |
#size-cells = <1>; |
compatible = "ralink,rt5350-soc"; |
|
cpus { |
#address-cells = <1>; |
#size-cells = <0>; |
|
cpu@0 { |
compatible = "mips,mips24KEc"; |
reg = <0>; |
}; |
}; |
|
chosen { |
bootargs = "console=ttyS0,57600"; |
}; |
|
cpuintc: cpuintc { |
#address-cells = <0>; |
#interrupt-cells = <1>; |
interrupt-controller; |
compatible = "mti,cpu-interrupt-controller"; |
}; |
|
aliases { |
spi0 = &spi0; |
spi1 = &spi1; |
serial0 = &uartlite; |
}; |
|
palmbus: palmbus@10000000 { |
compatible = "palmbus"; |
reg = <0x10000000 0x200000>; |
ranges = <0x0 0x10000000 0x1FFFFF>; |
|
#address-cells = <1>; |
#size-cells = <1>; |
|
sysc: sysc@0 { |
compatible = "ralink,rt5350-sysc", "ralink,rt3050-sysc", "syscon"; |
reg = <0x0 0x100>; |
}; |
|
timer: timer@100 { |
compatible = "ralink,rt5350-timer", "ralink,rt2880-timer"; |
reg = <0x100 0x20>; |
|
interrupt-parent = <&intc>; |
interrupts = <1>; |
}; |
|
watchdog: watchdog@120 { |
compatible = "ralink,rt5350-wdt", "ralink,rt2880-wdt"; |
reg = <0x120 0x10>; |
|
resets = <&rstctrl 8>; |
reset-names = "wdt"; |
|
interrupt-parent = <&intc>; |
interrupts = <1>; |
}; |
|
intc: intc@200 { |
compatible = "ralink,rt5350-intc", "ralink,rt2880-intc"; |
reg = <0x200 0x100>; |
|
resets = <&rstctrl 19>; |
reset-names = "intc"; |
|
interrupt-controller; |
#interrupt-cells = <1>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <2>; |
}; |
|
memc: memc@300 { |
compatible = "ralink,rt5350-memc", "ralink,rt3050-memc"; |
reg = <0x300 0x100>; |
|
resets = <&rstctrl 20>; |
reset-names = "mc"; |
|
interrupt-parent = <&intc>; |
interrupts = <3>; |
}; |
|
uart: uart@500 { |
compatible = "ralink,rt5350-uart", "ralink,rt2880-uart", "ns16550a"; |
reg = <0x500 0x100>; |
|
resets = <&rstctrl 12>; |
reset-names = "uart"; |
|
interrupt-parent = <&intc>; |
interrupts = <5>; |
|
reg-shift = <2>; |
|
status = "disabled"; |
}; |
|
gpio0: gpio@600 { |
compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio"; |
reg = <0x600 0x34>; |
|
resets = <&rstctrl 13>; |
reset-names = "pio"; |
|
interrupt-parent = <&intc>; |
interrupts = <6>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <0>; |
ralink,nr-gpio = <22>; |
ralink,register-map = [ 00 04 08 0c |
20 24 28 2c |
30 34 ]; |
}; |
|
gpio1: gpio@660 { |
compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio"; |
reg = <0x660 0x24>; |
|
interrupt-parent = <&intc>; |
interrupts = <6>; |
|
gpio-controller; |
#gpio-cells = <2>; |
|
ralink,gpio-base = <22>; |
ralink,nr-gpio = <6>; |
ralink,register-map = [ 00 04 08 0c |
10 14 18 1c |
20 24 ]; |
|
status = "disabled"; |
}; |
|
i2c: i2c@900 { |
compatible = "ralink,rt2880-i2c"; |
reg = <0x900 0x100>; |
|
resets = <&rstctrl 16>; |
reset-names = "i2c"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&i2c_pins>; |
|
status = "disabled"; |
}; |
|
i2s: i2s@a00 { |
compatible = "ralink,rt3352-i2s"; |
reg = <0xa00 0x100>; |
|
resets = <&rstctrl 17>; |
reset-names = "i2s"; |
|
interrupt-parent = <&intc>; |
interrupts = <10>; |
|
txdma-req = <2>; |
rxdma-req = <3>; |
|
dmas = <&gdma 4>, |
<&gdma 6>; |
dma-names = "tx", "rx"; |
|
status = "disabled"; |
}; |
|
spi0: spi@b00 { |
compatible = "ralink,rt5350-spi", "ralink,rt2880-spi"; |
reg = <0xb00 0x40>; |
|
resets = <&rstctrl 18>; |
reset-names = "spi"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&spi_pins>; |
|
status = "disabled"; |
}; |
|
spi1: spi@b40 { |
compatible = "ralink,rt5350-spi", "ralink,rt2880-spi"; |
reg = <0xb40 0x60>; |
|
resets = <&rstctrl 18>; |
reset-names = "spi"; |
|
#address-cells = <1>; |
#size-cells = <0>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&spi_cs1>; |
|
status = "disabled"; |
}; |
|
uartlite: uartlite@c00 { |
compatible = "ralink,rt5350-uart", "ralink,rt2880-uart", "ns16550a"; |
reg = <0xc00 0x100>; |
|
resets = <&rstctrl 19>; |
reset-names = "uartl"; |
|
interrupt-parent = <&intc>; |
interrupts = <12>; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&uartlite_pins>; |
|
reg-shift = <2>; |
}; |
|
systick: systick@d00 { |
compatible = "ralink,rt5350-systick", "ralink,cevt-systick"; |
reg = <0xd00 0x10>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <7>; |
}; |
|
pcm: pcm@2000 { |
compatible = "ralink,rt5350-pcm"; |
reg = <0x2000 0x800>; |
|
resets = <&rstctrl 11>; |
reset-names = "pcm"; |
|
interrupt-parent = <&intc>; |
interrupts = <4>; |
|
status = "disabled"; |
}; |
|
gdma: gdma@2800 { |
compatible = "ralink,rt3883-gdma"; |
reg = <0x2800 0x800>; |
|
resets = <&rstctrl 14>; |
reset-names = "dma"; |
|
interrupt-parent = <&intc>; |
interrupts = <7>; |
|
#dma-cells = <1>; |
#dma-channels = <16>; |
#dma-requests = <16>; |
|
status = "disabled"; |
}; |
}; |
|
pinctrl: pinctrl { |
compatible = "ralink,rt2880-pinmux"; |
|
pinctrl-names = "default"; |
pinctrl-0 = <&state_default>; |
|
state_default: pinctrl0 { |
}; |
|
i2c_pins: i2c_pins { |
i2c_pins { |
ralink,group = "i2c"; |
ralink,function = "i2c"; |
}; |
}; |
|
spi_pins: spi_pins { |
spi_pins { |
ralink,group = "spi"; |
ralink,function = "spi"; |
}; |
}; |
|
phy_led_pins: phy_led { |
phy_led { |
ralink,group = "led"; |
ralink,function = "led"; |
}; |
}; |
|
uartlite_pins: uartlite { |
uart { |
ralink,group = "uartlite"; |
ralink,function = "uartlite"; |
}; |
}; |
|
uartf_pins: uartf { |
uartf { |
ralink,group = "uartf"; |
ralink,function = "uartf"; |
}; |
}; |
|
spi_cs1: spi1 { |
spi1 { |
ralink,group = "spi_cs1"; |
ralink,function = "spi_cs1"; |
}; |
}; |
}; |
|
rstctrl: rstctrl { |
compatible = "ralink,rt5350-reset", "ralink,rt2880-reset"; |
#reset-cells = <1>; |
}; |
|
clkctrl: clkctrl { |
compatible = "ralink,rt2880-clock"; |
#clock-cells = <1>; |
}; |
|
usbphy: usbphy { |
compatible = "ralink,rt3352-usbphy"; |
#phy-cells = <0>; |
|
ralink,sysctl = <&sysc>; |
resets = <&rstctrl 22 &rstctrl 25>; |
reset-names = "host", "device"; |
clocks = <&clkctrl 18>; |
clock-names = "host"; |
}; |
|
ethernet: ethernet@10100000 { |
compatible = "ralink,rt5350-eth"; |
reg = <0x10100000 0x10000>; |
|
resets = <&rstctrl 21 &rstctrl 23>; |
reset-names = "fe", "esw"; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <5>; |
|
mediatek,switch = <&esw>; |
}; |
|
esw: esw@10110000 { |
compatible = "ralink,rt5350-esw", "ralink,rt3050-esw"; |
reg = <0x10110000 0x8000>; |
|
resets = <&rstctrl 23>; |
reset-names = "esw"; |
|
interrupt-parent = <&intc>; |
interrupts = <17>; |
}; |
|
wmac: wmac@10180000 { |
compatible = "ralink,rt5350-wmac", "ralink,rt2880-wmac"; |
reg = <0x10180000 0x40000>; |
|
interrupt-parent = <&cpuintc>; |
interrupts = <6>; |
|
ralink,eeprom = "soc_wmac.eeprom"; |
}; |
|
ehci: ehci@101c0000 { |
#address-cells = <1>; |
#size-cells = <0>; |
compatible = "generic-ehci"; |
reg = <0x101c0000 0x1000>; |
|
phys = <&usbphy>; |
phy-names = "usb"; |
|
interrupt-parent = <&intc>; |
interrupts = <18>; |
|
ehci_port1: port@1 { |
reg = <1>; |
#trigger-source-cells = <0>; |
}; |
}; |
|
ohci: ohci@101c1000 { |
#address-cells = <1>; |
#size-cells = <0>; |
compatible = "generic-ohci"; |
reg = <0x101c1000 0x1000>; |
|
phys = <&usbphy>; |
phy-names = "usb"; |
|
interrupt-parent = <&intc>; |
interrupts = <18>; |
|
ohci_port1: port@1 { |
reg = <1>; |
#trigger-source-cells = <0>; |
}; |
}; |
}; |