Changeset View
Changeset View
Standalone View
Standalone View
sys/gnu/dts/mips/DIR-620-D1.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-620-D1", "ralink,rt3352-soc"; | compatible = "dlink,dir-620-d1", "ralink,rt3352-soc"; | ||||
model = "D-Link DIR-620 D1"; | model = "D-Link DIR-620 D1"; | ||||
gpio-leds { | gpio-leds { | ||||
compatible = "gpio-leds"; | compatible = "gpio-leds"; | ||||
status { | status { | ||||
label = "dir-620-d1:green:status"; | label = "dir-620-d1:green:status"; | ||||
gpios = <&gpio0 9 1>; | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
wifi { | wifi { | ||||
label = "dir-620-d1:green:wifi"; | label = "dir-620-d1:green:wifi"; | ||||
gpios = <&gpio0 17 1>; | gpios = <&gpio0 17 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_wps { | reset_wps { | ||||
label = "reset_wps"; | label = "reset_wps"; | ||||
gpios = <&gpio0 7 1>; | gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; | ||||
linux,code = <0x198>; | linux,code = <KEY_RESTART>; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
&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", "mx25l6405d"; | |||||
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 0x4>; | mtd-mac-address = <&factory 0x4>; | ||||
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>; | ||||
Show All 9 Lines |