diff options
Diffstat (limited to 'target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi')
-rw-r--r-- | target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi b/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi new file mode 100644 index 0000000000..384b2efec0 --- /dev/null +++ b/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi @@ -0,0 +1,73 @@ +#include "rt5350.dtsi" + +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/input.h> + +/ { + compatible = "asiarf,awm002-evb", "ralink,rt5350-soc"; + + leds { + compatible = "gpio-leds"; + + tx { + label = "awm002-evb:green:tx"; + gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; + }; + + rx { + label = "awm002-evb:green:rx"; + gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "awm002-evb:green:wps"; + gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + reset_wps { + label = "reset_wps"; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + linux,code = <KEY_RESTART>; + }; + + mode { + label = "mode"; + gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; + linux,code = <BTN_0>; + }; + }; +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; + +&pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag"; + ralink,function = "gpio"; + }; + }; +}; + +&esw { + mediatek,portmap = <0x3f>; +}; + +&ehci { + status = "okay"; +}; + +&ohci { + status = "okay"; +}; |