W502U.dts 1.5 KB

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