Changeset View
Changeset View
Standalone View
Standalone View
sys/gnu/dts/mips/DIR-320-B1.dts
- This file was copied to sys/gnu/dts/mips/kn_rc.dts, sys/gnu/dts/mips/kn_rf.dts.
/dts-v1/; | /dts-v1/; | ||||
#include "rt5350.dtsi" | #include "rt5350.dtsi" | ||||
#include <dt-bindings/gpio/gpio.h> | |||||
#include <dt-bindings/input/input.h> | |||||
/ { | / { | ||||
compatible = "DIR-320-B1", "ralink,rt5350-soc"; | compatible = "dlink,dir-320-b1", "ralink,rt5350-soc"; | ||||
model = "D-Link DIR-320 B1"; | model = "D-Link DIR-320 B1"; | ||||
gpio-leds { | gpio-leds { | ||||
compatible = "gpio-leds"; | compatible = "gpio-leds"; | ||||
status { | status { | ||||
label = "dir-320-b1:green:status"; | label = "dir-320-b1:green:status"; | ||||
gpios = <&gpio0 9 1>; | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
usb { | usb { | ||||
label = "dir-320-b1:green:usb"; | label = "dir-320-b1:green:usb"; | ||||
gpios = <&gpio0 14 1>; | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
wps { | wps { | ||||
label = "dir-320-b1:green:wps"; | label = "dir-320-b1:green:wps"; | ||||
gpios = <&gpio0 13 1>; | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
}; | }; | ||||
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_export { | gpio_export { | ||||
compatible = "gpio-export"; | compatible = "gpio-export"; | ||||
#size-cells = <0>; | #size-cells = <0>; | ||||
usb { | usb { | ||||
gpio-export,name = "usb"; | gpio-export,name = "usb"; | ||||
gpio-export,output = <1>; | gpio-export,output = <1>; | ||||
gpios = <&gpio0 7 0>; | gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; | ||||
}; | }; | ||||
root_hub { | root_hub { | ||||
gpio-export,name = "root_hub"; | gpio-export,name = "root_hub"; | ||||
gpio-export,output = <1>; | gpio-export,output = <1>; | ||||
gpios = <&gpio0 12 0>; | gpios = <&gpio0 12 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", "s25fl064k"; | |||||
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 48 Lines • Show Last 20 Lines |