Changeset View
Changeset View
Standalone View
Standalone View
sys/gnu/dts/mips/DIR-810L.dts
/dts-v1/; | /dts-v1/; | ||||
#include "mt7620a.dtsi" | #include "mt7620a.dtsi" | ||||
#include <dt-bindings/gpio/gpio.h> | |||||
#include <dt-bindings/input/input.h> | |||||
/ { | / { | ||||
compatible = "dlink,dir-810l", "ralink,mt7620a-soc"; | compatible = "dlink,dir-810l", "ralink,mt7620a-soc"; | ||||
model = "D-Link DIR-810L"; | model = "D-Link DIR-810L"; | ||||
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 1 1>; | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; | ||||
linux,code = <0x100>; | linux,code = <BTN_0>; | ||||
}; | }; | ||||
wps { | wps { | ||||
label = "wps"; | label = "wps"; | ||||
gpios = <&gpio0 2 1>; | gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; | ||||
linux,code = <0x100>; | linux,code = <BTN_0>; | ||||
}; | }; | ||||
}; | }; | ||||
gpio-leds { | gpio-leds { | ||||
compatible = "gpio-leds"; | compatible = "gpio-leds"; | ||||
power { | power { | ||||
label = "dir-810l:green:power"; | label = "dir-810l:green:power"; | ||||
gpios = <&gpio0 9 0>; | gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; | ||||
}; | }; | ||||
wan { | wan { | ||||
label = "dir-810l:orange:wan"; | label = "dir-810l:orange:wan"; | ||||
gpios = <&gpio0 12 0>; | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; | ||||
}; | }; | ||||
status { | status { | ||||
label = "dir-810l:orange:power"; | label = "dir-810l:orange:power"; | ||||
gpios = <&gpio0 13 0>; | gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
&spi0 { | &spi0 { | ||||
status = "okay"; | status = "okay"; | ||||
m25p80@0 { | m25p80@0 { | ||||
#address-cells = <1>; | #address-cells = <1>; | ||||
#size-cells = <1>; | #size-cells = <1>; | ||||
compatible = "jedec,spi-nor"; | compatible = "jedec,spi-nor"; | ||||
reg = <0>; | reg = <0>; | ||||
linux,modalias = "m25p80"; | |||||
spi-max-frequency = <10000000>; | spi-max-frequency = <10000000>; | ||||
partition@0 { | partition@0 { | ||||
label = "u-boot"; | label = "u-boot"; | ||||
reg = <0x0 0x30000>; | reg = <0x0 0x30000>; | ||||
read-only; | read-only; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |