Changeset View
Changeset View
Standalone View
Standalone View
sys/gnu/dts/mips/DIR-615-H1.dts
/dts-v1/; | /dts-v1/; | ||||
#include "rt3352.dtsi" | #include "rt3352.dtsi" | ||||
#include <dt-bindings/gpio/gpio.h> | |||||
#include <dt-bindings/input/input.h> | |||||
/ { | / { | ||||
compatible = "DIR-615-H1", "ralink,rt3352-soc"; | compatible = "dlink,dir-615-h1", "ralink,rt3352-soc"; | ||||
model = "D-Link DIR-615 H1"; | model = "D-Link DIR-615 H1"; | ||||
gpio-leds { | gpio-leds { | ||||
compatible = "gpio-leds"; | compatible = "gpio-leds"; | ||||
status { | status { | ||||
label = "dir-615-h1:amber:status"; | label = "dir-615-h1:amber:status"; | ||||
gpios = <&gpio0 7 0>; | gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; | ||||
}; | }; | ||||
status2 { | status2 { | ||||
label = "dir-615-h1:green:status"; | label = "dir-615-h1:green:status"; | ||||
gpios = <&gpio0 9 0>; | gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; | ||||
}; | }; | ||||
wan { | wan { | ||||
label = "dir-615-h1:amber:wan"; | label = "dir-615-h1:amber:wan"; | ||||
gpios = <&gpio0 12 1>; | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
wan2 { | wan2 { | ||||
label = "dir-615-h1:green:wan"; | label = "dir-615-h1:green:wan"; | ||||
gpios = <&gpio0 13 1>; | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
wps { | wps { | ||||
label = "dir-615-h1:blue:wps"; | label = "dir-615-h1:blue:wps"; | ||||
gpios = <&gpio0 14 1>; | gpios = <&gpio0 14 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>; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
&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", "mx25l3205d"; | |||||
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 All 17 Lines | |||||
}; | }; | ||||
&pinctrl { | &pinctrl { | ||||
state_default: pinctrl0 { | state_default: pinctrl0 { | ||||
gpio { | gpio { | ||||
ralink,group = "i2c", "jtag", "uartf"; | ralink,group = "i2c", "jtag", "uartf"; | ||||
ralink,function = "gpio"; | ralink,function = "gpio"; | ||||
}; | }; | ||||
rgmii { | |||||
ralink,group = "rgmii"; | |||||
ralink,function = "rgmii"; | |||||
}; | }; | ||||
mdio { | |||||
ralink,group = "mdio"; | |||||
ralink,function = "mdio"; | |||||
}; | }; | ||||
}; | |||||
}; | |||||
ðernet { | ðernet { | ||||
mtd-mac-address = <&factory 0x28>; | mtd-mac-address = <&factory 0x28>; | ||||
pinctrl-names = "default"; | |||||
pinctrl-0 = <&rgmii_pins &mdio_pins>; | |||||
}; | }; | ||||
&esw { | &esw { | ||||
mediatek,portmap = <0x2f>; | mediatek,portmap = <0x2f>; | ||||
}; | }; | ||||
&wmac { | &wmac { | ||||
ralink,mtd-eeprom = <&factory 0>; | ralink,mtd-eeprom = <&factory 0>; | ||||
}; | }; |