RT-N14U.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /dts-v1/;
  2. /include/ "mt7620n.dtsi"
  3. / {
  4. compatible = "asus,rt-n14u", "ralink,mt7620n-soc";
  5. model = "Asus RT-N14U";
  6. palmbus@10000000 {
  7. gpio2: gpio@660 {
  8. status = "okay";
  9. };
  10. gpio3: gpio@688 {
  11. status = "okay";
  12. };
  13. spi@b00 {
  14. status = "okay";
  15. m25p80@0 {
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. #compatible = "mx25l6405d";
  19. compatible = "w25q128";
  20. reg = <0 0>;
  21. linux,modalias = "m25p80", "w25q128";
  22. spi-max-frequency = <10000000>;
  23. partition@0 {
  24. label = "u-boot";
  25. reg = <0x0 0x30000>;
  26. read-only;
  27. };
  28. partition@30000 {
  29. label = "u-boot-env";
  30. reg = <0x30000 0x10000>;
  31. read-only;
  32. };
  33. factory: partition@40000 {
  34. label = "factory";
  35. reg = <0x40000 0x10000>;
  36. read-only;
  37. };
  38. partition@50000 {
  39. label = "firmware";
  40. reg = <0x50000 0xfb0000>;
  41. };
  42. };
  43. };
  44. };
  45. ehci@101c0000 {
  46. status = "okay";
  47. };
  48. ohci@101c1000 {
  49. status = "okay";
  50. };
  51. ethernet@10100000 {
  52. mtd-mac-address = <&factory 0x4>;
  53. ralink,port-map = "wllll";
  54. };
  55. wmac@10180000 {
  56. ralink,mtd-eeprom = <&factory 0>;
  57. };
  58. pinctrl {
  59. state_default: pinctrl0 {
  60. default {
  61. ralink,group = "ephy", "wled", "i2c";
  62. ralink,function = "gpio";
  63. };
  64. };
  65. };
  66. gpio-leds {
  67. compatible = "gpio-leds";
  68. wan {
  69. label = "asus:blue:wan";
  70. gpios = <&gpio2 0 1>;
  71. };
  72. lan {
  73. label = "asus:blue:lan";
  74. gpios = <&gpio2 1 1>;
  75. };
  76. usb {
  77. label = "asus:blue:usb";
  78. gpios = <&gpio2 2 1>;
  79. };
  80. power {
  81. label = "asus:blue:power";
  82. gpios = <&gpio2 3 1>;
  83. };
  84. air {
  85. label = "asus:blue:air";
  86. gpios = <&gpio3 0 1>;
  87. };
  88. };
  89. gpio-keys-polled {
  90. compatible = "gpio-keys-polled";
  91. #address-cells = <1>;
  92. #size-cells = <0>;
  93. poll-interval = <20>;
  94. reset {
  95. label = "reset";
  96. gpios = <&gpio0 1 1>;
  97. linux,code = <0x198>;
  98. };
  99. wps {
  100. label = "wps";
  101. gpios = <&gpio0 2 1>;
  102. linux,code = <0x211>;
  103. };
  104. };
  105. };