2
0

W502U.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "W502U", "ralink,rt3052-soc";
  6. model = "ALFA Networks W502U";
  7. chosen {
  8. bootargs = "console=ttyS0,115200";
  9. };
  10. cfi@1f000000 {
  11. compatible = "cfi-flash";
  12. reg = <0x1f000000 0x800000>;
  13. bank-width = <2>;
  14. device-width = <2>;
  15. #address-cells = <1>;
  16. #size-cells = <1>;
  17. partition@0 {
  18. label = "u-boot";
  19. reg = <0x0 0x30000>;
  20. read-only;
  21. };
  22. partition@30000 {
  23. label = "u-boot-env";
  24. reg = <0x30000 0x10000>;
  25. read-only;
  26. };
  27. factory: partition@40000 {
  28. label = "factory";
  29. reg = <0x40000 0x10000>;
  30. read-only;
  31. };
  32. partition@50000 {
  33. label = "firmware";
  34. reg = <0x50000 0x7b0000>;
  35. };
  36. };
  37. gpio-leds {
  38. compatible = "gpio-leds";
  39. usb {
  40. label = "w502u:blue:usb";
  41. gpios = <&gpio0 13 1>;
  42. };
  43. wps {
  44. label = "w502u:blue:wps";
  45. gpios = <&gpio0 14 1>;
  46. };
  47. };
  48. gpio-keys-polled {
  49. compatible = "gpio-keys-polled";
  50. #address-cells = <1>;
  51. #size-cells = <0>;
  52. poll-interval = <20>;
  53. reset {
  54. label = "reset";
  55. gpios = <&gpio0 10 1>;
  56. linux,code = <KEY_RESTART>;
  57. };
  58. wps {
  59. label = "wps";
  60. gpios = <&gpio0 0 1>;
  61. linux,code = <KEY_WPS_BUTTON>;
  62. };
  63. };
  64. };
  65. &pinctrl {
  66. state_default: pinctrl0 {
  67. gpio {
  68. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  69. ralink,function = "gpio";
  70. };
  71. };
  72. };
  73. &ethernet {
  74. mtd-mac-address = <&factory 0x28>;
  75. };
  76. &esw {
  77. mediatek,portmap = <0x3e>;
  78. };
  79. &wmac {
  80. ralink,mtd-eeprom = <&factory 0>;
  81. };
  82. &otg {
  83. status = "okay";
  84. };