WL-330N3G.dts 1.8 KB

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