2016-06-09 14:51:39 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
2016-09-29 16:22:55 +00:00
|
|
|
#include "vr9.dtsi"
|
2016-06-09 14:51:39 +00:00
|
|
|
|
2016-11-11 21:43:08 +00:00
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
2016-06-09 14:51:39 +00:00
|
|
|
/ {
|
2017-04-08 08:33:53 +00:00
|
|
|
compatible = "buffalo,wbmr-300hpd", "lantiq,xway", "lantiq,vr9";
|
2017-04-08 09:40:07 +00:00
|
|
|
model = "Buffalo WBMR-300HPD";
|
2016-06-09 14:51:39 +00:00
|
|
|
|
2017-01-04 20:53:22 +00:00
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyLTQ0,115200";
|
|
|
|
};
|
|
|
|
|
2016-10-04 18:34:03 +00:00
|
|
|
aliases {
|
|
|
|
led-boot = &power_g;
|
|
|
|
led-failsafe = &diag_r;
|
|
|
|
led-running = &power_g;
|
2016-06-09 14:51:39 +00:00
|
|
|
|
2016-10-04 18:34:03 +00:00
|
|
|
led-dsl = &dsl;
|
|
|
|
led-internet = &router_g;
|
|
|
|
led-wifi = &wifi_g;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
memory@0 {
|
|
|
|
reg = <0x0 0x4000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
fpi@10000000 {
|
|
|
|
gpio: pinmux@E100B10 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&state_default>;
|
|
|
|
|
|
|
|
state_default: pinmux {
|
|
|
|
mdio {
|
|
|
|
lantiq,groups = "mdio";
|
|
|
|
lantiq,function = "mdio";
|
|
|
|
};
|
|
|
|
phy-rst {
|
|
|
|
lantiq,pins = "io42";
|
|
|
|
lantiq,pull = <0>;
|
|
|
|
lantiq,open-drain = <0>;
|
|
|
|
lantiq,output = <1>;
|
|
|
|
};
|
|
|
|
pcie-rst {
|
|
|
|
lantiq,pins = "io38";
|
|
|
|
lantiq,pull = <0>;
|
|
|
|
lantiq,output = <1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
pins_spi_default: pins_spi_default {
|
|
|
|
spi_in {
|
|
|
|
lantiq,groups = "spi_di";
|
|
|
|
lantiq,function = "spi";
|
|
|
|
};
|
|
|
|
spi_out {
|
|
|
|
lantiq,groups = "spi_do", "spi_clk",
|
|
|
|
"spi_cs4";
|
|
|
|
lantiq,function = "spi";
|
|
|
|
lantiq,output = <1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ifxhcd@E101000 {
|
|
|
|
status = "okay";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
|
2016-06-09 14:51:39 +00:00
|
|
|
lantiq,portmask = <0x3>;
|
|
|
|
};
|
|
|
|
|
|
|
|
ifxhcd@E106000 {
|
|
|
|
status = "okay";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gphy-xrx200 {
|
|
|
|
compatible = "lantiq,phy-xrx200";
|
2017-12-31 10:48:15 +00:00
|
|
|
firmware = "lantiq/xrx200_phy22f_a22.bin";
|
2016-06-09 14:51:39 +00:00
|
|
|
phys = [ 00 01 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_poweroff {
|
|
|
|
compatible = "gpio-poweroff";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
gpio-keys-polled {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
poll-interval = <100>;
|
|
|
|
|
|
|
|
power {
|
|
|
|
label = "power";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_POWER>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_RESTART>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "wps";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
auto {
|
|
|
|
label = "auto";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 48 GPIO_ACTIVE_HIGH>;
|
|
|
|
linux,code = <BTN_0>;
|
|
|
|
linux,input-type = <EV_SW>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
router {
|
|
|
|
label = "router";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
|
2016-11-27 08:47:51 +00:00
|
|
|
linux,code = <BTN_1>;
|
2016-09-29 16:22:55 +00:00
|
|
|
linux,input-type = <EV_SW>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
diag_r: diag_r {
|
|
|
|
label = "wbmr300:red:diag";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
2016-06-09 14:51:39 +00:00
|
|
|
default_state = "off";
|
|
|
|
};
|
|
|
|
|
|
|
|
wifi_g: wifi_g {
|
|
|
|
label = "wbmr300:green:wifi";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dsl: dsl {
|
|
|
|
label = "dsl";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
router_y: router_y {
|
|
|
|
label = "wbmr300:yellow:router";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
wifi_y: wifi_y {
|
|
|
|
label = "wbmr300:yellow:wifi";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
lan1: lan1 {
|
|
|
|
label = "wbmr300:green:lan1";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
wan: wan {
|
|
|
|
label = "wbmr300:green:wan";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
lan3: lan3 {
|
|
|
|
label = "wbmr300:green:lan3";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
lan2: lan2 {
|
|
|
|
label = "wbmr300:green:lan2";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
internet_g: internet_g {
|
|
|
|
label = "wbmr300:green:internet";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 34 GPIO_ACTIVE_HIGH>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
internet_y: internet_y {
|
|
|
|
label = "wbmr300:yellow:internet";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
router_g: router_g {
|
|
|
|
label = "wbmr300:green:router";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
power_g: power_g {
|
|
|
|
label = "wbmr300:green:power";
|
2016-09-29 16:22:55 +00:00
|
|
|
gpios = <&gpio 49 GPIO_ACTIVE_HIGH>;
|
2016-06-09 14:51:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pins_spi_default>;
|
|
|
|
|
|
|
|
status = "ok";
|
|
|
|
m25p80@4 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <4 0>;
|
|
|
|
spi-max-frequency = <20000000>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
reg = <0x0 0x10000>;
|
|
|
|
label = "u-boot";
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@10000 {
|
|
|
|
reg = <0x10000 0x10000>;
|
|
|
|
label = "gphyfirmware";
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@20000 {
|
|
|
|
reg = <0x20000 0x80000>;
|
|
|
|
label = "dsl_fw";
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@de0000 {
|
|
|
|
reg = <0xa0000 0xf40000>;
|
|
|
|
label = "firmware";
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@fe0000 {
|
|
|
|
reg = <0xfe0000 0x10000>;
|
|
|
|
label = "sysconfig";
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@ff0000 {
|
|
|
|
reg = <0xff0000 0x2000>;
|
|
|
|
label = "ubootconfig";
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@ff3000 {
|
|
|
|
reg = <0xff3000 0x2000>;
|
|
|
|
label = "board_config";
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ð0 {
|
|
|
|
lan: interface@0 {
|
|
|
|
compatible = "lantiq,xrx200-pdi";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0>;
|
|
|
|
lantiq,switch;
|
|
|
|
|
|
|
|
ethernet@1 {
|
|
|
|
compatible = "lantiq,xrx200-pdi-port";
|
|
|
|
reg = <4>;
|
|
|
|
phy-mode = "mii";
|
|
|
|
phy-handle = <&phy13>;
|
|
|
|
};
|
|
|
|
ethernet@2 {
|
|
|
|
compatible = "lantiq,xrx200-pdi-port";
|
|
|
|
reg = <5>;
|
|
|
|
phy-mode = "mii";
|
|
|
|
phy-handle = <&phy14>;
|
|
|
|
};
|
|
|
|
ethernet@3 {
|
|
|
|
compatible = "lantiq,xrx200-pdi-port";
|
|
|
|
reg = <2>;
|
|
|
|
phy-mode = "mii";
|
|
|
|
phy-handle = <&phy11>;
|
|
|
|
};
|
|
|
|
ethernet@4 {
|
|
|
|
compatible = "lantiq,xrx200-pdi-port";
|
|
|
|
reg = <3>;
|
|
|
|
phy-mode = "mii";
|
|
|
|
phy-handle = <&phy12>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
mdio@0 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
compatible = "lantiq,xrx200-mdio";
|
|
|
|
phy11: ethernet-phy@11 {
|
|
|
|
reg = <0x11>;
|
|
|
|
compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
|
|
|
|
};
|
|
|
|
phy12: ethernet-phy@12 {
|
|
|
|
reg = <0x12>;
|
|
|
|
compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
|
|
|
|
};
|
|
|
|
phy13: ethernet-phy@13 {
|
|
|
|
reg = <0x13>;
|
|
|
|
compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
|
|
|
|
};
|
|
|
|
phy14: ethernet-phy@14 {
|
|
|
|
reg = <0x14>;
|
|
|
|
compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|