RT-N56U.dts 2.2 KB

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