RT-N56U.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /dts-v1/;
  2. #include "rt3883.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "asus,rt-n56u", "ralink,rt3883-soc";
  7. model = "Asus RT-N56U";
  8. aliases {
  9. led-boot = &led_power;
  10. led-failsafe = &led_power;
  11. led-running = &led_power;
  12. led-upgrade = &led_power;
  13. };
  14. nor-flash@1c000000 {
  15. compatible = "cfi-flash";
  16. reg = <0x1c000000 0x800000>;
  17. bank-width = <2>;
  18. partitions {
  19. compatible = "fixed-partitions";
  20. #address-cells = <1>;
  21. #size-cells = <1>;
  22. partition@0 {
  23. reg = <0x0 0x0030000>;
  24. label = "u-boot";
  25. read-only;
  26. };
  27. partition@30000 {
  28. reg = <0x00030000 0x00010000>;
  29. label = "u-boot-env";
  30. read-only;
  31. };
  32. factory: partition@40000 {
  33. reg = <0x00040000 0x00010000>;
  34. label = "factory";
  35. read-only;
  36. };
  37. partition@50000 {
  38. compatible = "denx,uimage";
  39. reg = <0x00050000 0x007b0000>;
  40. label = "firmware";
  41. };
  42. };
  43. };
  44. rtl8367 {
  45. compatible = "realtek,rtl8367";
  46. gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  47. gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
  48. realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
  49. };
  50. keys {
  51. compatible = "gpio-keys-polled";
  52. poll-interval = <100>;
  53. reset {
  54. label = "reset";
  55. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  56. linux,code = <KEY_RESTART>;
  57. };
  58. wps {
  59. label = "wps";
  60. gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
  61. linux,code = <KEY_WPS_BUTTON>;
  62. };
  63. };
  64. leds {
  65. compatible = "gpio-leds";
  66. led_power: power {
  67. label = "rt-n56u:blue:power";
  68. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  69. };
  70. lan {
  71. label = "rt-n56u:blue:lan";
  72. gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
  73. };
  74. wan {
  75. label = "rt-n56u:blue:wan";
  76. gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
  77. };
  78. usb {
  79. label = "rt-n56u:blue:usb";
  80. gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
  81. };
  82. };
  83. };
  84. &gpio1 {
  85. status = "okay";
  86. };
  87. &pinctrl {
  88. state_default: pinctrl0 {
  89. gpio {
  90. ralink,group = "spi", "i2c", "jtag", "uartf";
  91. ralink,function = "gpio";
  92. };
  93. };
  94. };
  95. &ethernet {
  96. mtd-mac-address = <&factory 0x4>;
  97. port@0 {
  98. mediatek,fixed-link = <1000 1 1 1>;
  99. };
  100. };
  101. &pci {
  102. status = "okay";
  103. };
  104. &pci1 {
  105. status = "okay";
  106. wifi@0,0 {
  107. compatible = "pci1814,3091";
  108. reg = <0x10000 0 0 0 0>;
  109. ralink,mtd-eeprom = <&factory 0x8000>;
  110. };
  111. };
  112. &wmac {
  113. status = "okay";
  114. ralink,2ghz = <0>;
  115. ralink,mtd-eeprom = <&factory 0>;
  116. };
  117. &ehci {
  118. status = "okay";
  119. };
  120. &ohci {
  121. status = "okay";
  122. };