2
0

WL-330N3G.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "WL-330N3G", "ralink,rt3050-soc";
  6. model = "Asus WL-330N3G";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. 3g {
  10. label = "wl-330n3g:blue:3g";
  11. gpios = <&gpio0 9 1>;
  12. };
  13. 3g2 {
  14. label = "wl-330n3g:red:3g";
  15. gpios = <&gpio0 13 1>;
  16. };
  17. power {
  18. label = "wl-330n3g:blue:power";
  19. gpios = <&gpio0 11 1>;
  20. };
  21. };
  22. gpio-keys-polled {
  23. compatible = "gpio-keys-polled";
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. poll-interval = <20>;
  27. reset {
  28. label = "reset";
  29. gpios = <&gpio0 10 1>;
  30. linux,code = <KEY_RESTART>;
  31. };
  32. wps {
  33. label = "wps";
  34. gpios = <&gpio0 0 1>;
  35. linux,code = <KEY_RESTART>;
  36. };
  37. };
  38. };
  39. &spi0 {
  40. status = "okay";
  41. m25p80@0 {
  42. #address-cells = <1>;
  43. #size-cells = <1>;
  44. compatible = "jedec,spi-nor";
  45. reg = <0>;
  46. linux,modalias = "m25p80", "mx25l3205d";
  47. spi-max-frequency = <10000000>;
  48. partition@0 {
  49. label = "u-boot";
  50. reg = <0x0 0x30000>;
  51. read-only;
  52. };
  53. partition@30000 {
  54. label = "u-boot-env";
  55. reg = <0x30000 0x10000>;
  56. read-only;
  57. };
  58. factory: partition@40000 {
  59. label = "factory";
  60. reg = <0x40000 0x10000>;
  61. read-only;
  62. };
  63. partition@50000 {
  64. label = "firmware";
  65. reg = <0x50000 0x3b0000>;
  66. };
  67. };
  68. };
  69. &pinctrl {
  70. state_default: pinctrl0 {
  71. gpio {
  72. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  73. ralink,function = "gpio";
  74. };
  75. };
  76. };
  77. &ethernet {
  78. mtd-mac-address = <&factory 0x4>;
  79. };
  80. &esw {
  81. mediatek,portmap = <0x3e>;
  82. };
  83. &wmac {
  84. ralink,mtd-eeprom = <&factory 0>;
  85. };
  86. &otg {
  87. status = "okay";
  88. };