W502U.dts 1.5 KB

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