RT-N56U.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. reg = <0x00050000 0x007b0000>;
  39. label = "firmware";
  40. };
  41. };
  42. };
  43. rtl8367 {
  44. compatible = "realtek,rtl8367";
  45. gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  46. gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
  47. realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
  48. };
  49. gpio-keys-polled {
  50. compatible = "gpio-keys-polled";
  51. poll-interval = <100>;
  52. reset {
  53. label = "reset";
  54. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  55. linux,code = <KEY_RESTART>;
  56. };
  57. wps {
  58. label = "wps";
  59. gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
  60. linux,code = <KEY_WPS_BUTTON>;
  61. };
  62. };
  63. gpio-leds {
  64. compatible = "gpio-leds";
  65. led_power: power {
  66. label = "rt-n56u:blue:power";
  67. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  68. };
  69. lan {
  70. label = "rt-n56u:blue:lan";
  71. gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
  72. };
  73. wan {
  74. label = "rt-n56u:blue:wan";
  75. gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
  76. };
  77. usb {
  78. label = "rt-n56u:blue:usb";
  79. gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
  80. };
  81. };
  82. };
  83. &gpio1 {
  84. status = "okay";
  85. };
  86. &pinctrl {
  87. state_default: pinctrl0 {
  88. gpio {
  89. ralink,group = "spi", "i2c", "jtag", "uartf";
  90. ralink,function = "gpio";
  91. };
  92. };
  93. };
  94. &ethernet {
  95. mtd-mac-address = <&factory 0x4>;
  96. port@0 {
  97. mediatek,fixed-link = <1000 1 1 1>;
  98. };
  99. };
  100. &pci {
  101. status = "okay";
  102. };
  103. &pci1 {
  104. status = "okay";
  105. wifi@0,0 {
  106. compatible = "pci1814,3091";
  107. reg = <0x10000 0 0 0 0>;
  108. ralink,mtd-eeprom = <&factory 0x8000>;
  109. };
  110. };
  111. &wmac {
  112. status = "okay";
  113. ralink,2ghz = <0>;
  114. ralink,mtd-eeprom = <&factory 0>;
  115. };
  116. &ehci {
  117. status = "okay";
  118. };
  119. &ohci {
  120. status = "okay";
  121. };