RT-N56U.dts 2.3 KB

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