Changeset View
Changeset View
Standalone View
Standalone View
sys/gnu/dts/mips/DIR-300-B1.dts
/dts-v1/; | /dts-v1/; | ||||
#include "rt3050.dtsi" | #include "rt3050.dtsi" | ||||
#include <dt-bindings/gpio/gpio.h> | |||||
#include <dt-bindings/input/input.h> | |||||
/ { | / { | ||||
compatible = "DIR-300-B1", "ralink,rt3050-soc"; | compatible = "dlink,dir-300-b1", "ralink,rt3050-soc"; | ||||
model = "D-Link DIR-300 B1"; | model = "D-Link DIR-300 B1"; | ||||
cfi@1f000000 { | cfi@1f000000 { | ||||
compatible = "cfi-flash"; | compatible = "cfi-flash"; | ||||
reg = <0x1f000000 0x800000>; | reg = <0x1f000000 0x800000>; | ||||
bank-width = <2>; | bank-width = <2>; | ||||
device-width = <2>; | device-width = <2>; | ||||
#address-cells = <1>; | #address-cells = <1>; | ||||
Show All 26 Lines | / { | ||||
gpio-keys-polled { | gpio-keys-polled { | ||||
compatible = "gpio-keys-polled"; | compatible = "gpio-keys-polled"; | ||||
#address-cells = <1>; | #address-cells = <1>; | ||||
#size-cells = <0>; | #size-cells = <0>; | ||||
poll-interval = <20>; | poll-interval = <20>; | ||||
reset { | reset { | ||||
label = "reset"; | label = "reset"; | ||||
gpios = <&gpio0 10 1>; | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; | ||||
linux,code = <0x198>; | linux,code = <KEY_RESTART>; | ||||
}; | }; | ||||
wps { | wps { | ||||
label = "wps"; | label = "wps"; | ||||
gpios = <&gpio0 0 1>; | gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; | ||||
linux,code = <0x211>; | linux,code = <KEY_WPS_BUTTON>; | ||||
}; | }; | ||||
}; | }; | ||||
gpio-leds { | gpio-leds { | ||||
compatible = "gpio-leds"; | compatible = "gpio-leds"; | ||||
status { | status { | ||||
label = "dir-300-b1:amber:status"; | label = "dir-300-b1:amber:status"; | ||||
gpios = <&gpio0 8 1>; | gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
status2 { | status2 { | ||||
label = "dir-300-b1:green:status"; | label = "dir-300-b1:green:status"; | ||||
gpios = <&gpio0 9 1>; | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
wan { | wan { | ||||
label = "dir-300-b1:amber:wan"; | label = "dir-300-b1:amber:wan"; | ||||
gpios = <&gpio0 14 1>; | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
wan2 { | wan2 { | ||||
label = "dir-300-b1:green:wan"; | label = "dir-300-b1:green:wan"; | ||||
gpios = <&gpio0 12 1>; | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
wps { | wps { | ||||
label = "dir-300-b1:blue:wps"; | label = "dir-300-b1:blue:wps"; | ||||
gpios = <&gpio0 13 1>; | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
&pinctrl { | &pinctrl { | ||||
state_default: pinctrl0 { | state_default: pinctrl0 { | ||||
gpio { | gpio { | ||||
ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; | ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf"; | ||||
Show All 16 Lines |