1
0

RT-N56U.dts 2.2 KB

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