W502U.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. palmbus@10000000 {
  10. sysc@0 {
  11. ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
  12. ralink,uartmux = "gpio";
  13. ralink,wdtmux = <1>;
  14. };
  15. gpio0: gpio@600 {
  16. status = "okay";
  17. };
  18. };
  19. cfi@1f000000 {
  20. compatible = "cfi-flash";
  21. reg = <0x1f000000 0x800000>;
  22. bank-width = <2>;
  23. device-width = <2>;
  24. #address-cells = <1>;
  25. #size-cells = <1>;
  26. partition@0 {
  27. label = "u-boot";
  28. reg = <0x0 0x30000>;
  29. read-only;
  30. };
  31. partition@30000 {
  32. label = "u-boot-env";
  33. reg = <0x30000 0x10000>;
  34. read-only;
  35. };
  36. factory: partition@40000 {
  37. label = "factory";
  38. reg = <0x40000 0x10000>;
  39. read-only;
  40. };
  41. partition@50000 {
  42. label = "firmware";
  43. reg = <0x50000 0x7b0000>;
  44. };
  45. };
  46. ethernet@10100000 {
  47. status = "okay";
  48. };
  49. esw@10110000 {
  50. status = "okay";
  51. ralink,portmap = <0x3e>;
  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. wmac@10180000 {
  81. status = "okay";
  82. };
  83. otg@101c0000 {
  84. status = "okay";
  85. };
  86. };