WL-330N3G.dts 1.5 KB

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