Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ramips: add support for Netgear JWNR2010v5
- Loading branch information
Showing
6 changed files
with
156 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
/dts-v1/; | ||
|
||
#include "mt7620n.dtsi" | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/input/input.h> | ||
|
||
/ { | ||
compatible = "netgear,jwnr2010-v5", "ralink,mt7620n-soc"; | ||
model = "Netgear JWNR2010v5"; | ||
|
||
gpio-leds { | ||
compatible = "gpio-leds"; | ||
|
||
led_power: power { | ||
label = "jwnr2010-v5:green:power"; | ||
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
wan { | ||
label = "jwnr2010-v5:green:wan"; | ||
gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
wlan { | ||
label = "jwnr2010-v5:green:wlan"; | ||
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; | ||
linux,default-trigger = "phy0radio"; | ||
}; | ||
|
||
lan1 { | ||
label = "jwnr2010-v5:green:lan1"; | ||
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
lan2 { | ||
label = "jwnr2010-v5:green:lan2"; | ||
gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
lan3 { | ||
label = "jwnr2010-v5:green:lan3"; | ||
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
lan4 { | ||
label = "jwnr2010-v5:green:lan4"; | ||
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; | ||
}; | ||
}; | ||
|
||
gpio-keys-polled { | ||
compatible = "gpio-keys-polled"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
poll-interval = <20>; | ||
|
||
reset { | ||
label = "reset"; | ||
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; | ||
linux,code = <KEY_RESTART>; | ||
}; | ||
}; | ||
}; | ||
|
||
&gpio2 { | ||
status = "okay"; | ||
}; | ||
|
||
&gpio3 { | ||
status = "okay"; | ||
}; | ||
|
||
&spi0 { | ||
status = "okay"; | ||
|
||
m25p80@0 { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
compatible = "jedec,spi-nor"; | ||
reg = <0>; | ||
spi-max-frequency = <20000000>; | ||
|
||
partition@0 { | ||
label = "u-boot"; | ||
reg = <0x0 0x20000>; | ||
read-only; | ||
}; | ||
|
||
partition@20000 { | ||
label = "firmware"; | ||
reg = <0x20000 0x3c0000>; | ||
}; | ||
|
||
partition@3e0000 { | ||
label = "nvram"; | ||
reg = <0x3e0000 0x10000>; | ||
read-only; | ||
}; | ||
|
||
factory: partition@3f0000 { | ||
label = "factory"; | ||
reg = <0x3f0000 0x10000>; | ||
read-only; | ||
}; | ||
}; | ||
}; | ||
|
||
ðernet { | ||
mtd-mac-address = <&factory 0x4>; | ||
mediatek,portmap = "wllll"; | ||
}; | ||
|
||
&wmac { | ||
ralink,mtd-eeprom = <&factory 0>; | ||
}; | ||
|
||
&pinctrl { | ||
state_default: pinctrl0 { | ||
default { | ||
ralink,group = "pa", "ephy", "wled"; | ||
ralink,function = "gpio"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters