1
0

WL-330N.dts 1.5 KB

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