WR6202.dts 1.7 KB

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