WR6202.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /dts-v1/;
  2. /include/ "rt3050.dtsi"
  3. / {
  4. compatible = "WR6202", "ralink,rt3052-soc";
  5. model = "AWB WR6202";
  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. gpio-leds {
  20. compatible = "gpio-leds";
  21. wps {
  22. label = "wr6202:blue:wps";
  23. gpios = <&gpio0 14 1>;
  24. };
  25. 3g {
  26. label = "wr6202:blue:3g";
  27. gpios = <&gpio0 13 1>;
  28. };
  29. };
  30. gpio-keys-polled {
  31. compatible = "gpio-keys-polled";
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. poll-interval = <20>;
  35. reset {
  36. label = "reset";
  37. gpios = <&gpio0 10 1>;
  38. linux,code = <0x198>;
  39. };
  40. wps {
  41. label = "wps";
  42. gpios = <&gpio0 0 1>;
  43. linux,code = <0x211>;
  44. };
  45. };
  46. cfi@1f000000 {
  47. compatible = "cfi-flash";
  48. reg = <0x1f000000 0x800000>;
  49. bank-width = <2>;
  50. device-width = <2>;
  51. #address-cells = <1>;
  52. #size-cells = <1>;
  53. partition@0 {
  54. label = "u-boot";
  55. reg = <0x0 0x30000>;
  56. read-only;
  57. };
  58. partition@30000 {
  59. label = "u-boot-env";
  60. reg = <0x30000 0x10000>;
  61. read-only;
  62. };
  63. factory: partition@40000 {
  64. label = "factory";
  65. reg = <0x40000 0x10000>;
  66. read-only;
  67. };
  68. partition@50000 {
  69. label = "firmware";
  70. reg = <0x50000 0x7b0000>;
  71. };
  72. };
  73. ethernet@10100000 {
  74. status = "okay";
  75. };
  76. esw@10110000 {
  77. status = "okay";
  78. ralink,portmap = <0x3e>;
  79. };
  80. wmac@10180000 {
  81. status = "okay";
  82. };
  83. otg@101c0000 {
  84. status = "okay";
  85. };
  86. gpio_export {
  87. compatible = "gpio-export";
  88. #size-cells = <0>;
  89. usb {
  90. gpio-export,name = "usb";
  91. gpio-export,output = <0>;
  92. gpios = <&gpio0 11 0>;
  93. };
  94. };
  95. };