2
0

DIR-645.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. /dts-v1/;
  2. #include "rt3883.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "DIR-645", "ralink,rt3883-soc";
  6. model = "D-Link DIR-645";
  7. rtl8367b {
  8. compatible = "realtek,rtl8367b";
  9. gpio-sda = <&gpio0 1 0>;
  10. gpio-sck = <&gpio0 2 0>;
  11. realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
  12. };
  13. gpio-keys-polled {
  14. compatible = "gpio-keys-polled";
  15. #address-cells = <1>;
  16. #size-cells = <0>;
  17. poll-interval = <100>;
  18. reset {
  19. label = "reset";
  20. gpios = <&gpio0 9 0>;
  21. linux,code = <KEY_RESTART>;
  22. };
  23. wps {
  24. label = "wps";
  25. gpios = <&gpio0 14 0>;
  26. linux,code = <KEY_WPS_BUTTON>;
  27. };
  28. };
  29. gpio-leds {
  30. compatible = "gpio-leds";
  31. inet {
  32. label = "dir-645:green:inet";
  33. gpios = <&gpio0 0 1>;
  34. };
  35. wps {
  36. label = "dir-645:green:wps";
  37. gpios = <&gpio1 2 0>;
  38. };
  39. };
  40. gpio_export {
  41. compatible = "gpio-export";
  42. #size-cells = <0>;
  43. usb {
  44. gpio-export,name = "usb";
  45. gpio-export,output = <1>;
  46. gpios = <&gpio1 6 0>;
  47. };
  48. };
  49. };
  50. &gpio1 {
  51. status = "okay";
  52. };
  53. &spi0 {
  54. status = "okay";
  55. m25p80@0 {
  56. #address-cells = <1>;
  57. #size-cells = <1>;
  58. compatible = "jedec,spi-nor";
  59. reg = <0>;
  60. linux,modalias = "m25p80";
  61. spi-max-frequency = <25000000>;
  62. partition@0 {
  63. label = "uboot";
  64. reg = <0x0 0x30000>;
  65. read-only;
  66. };
  67. partition@30000 {
  68. label = "uboot-env";
  69. reg = <0x30000 0x4000>;
  70. read-only;
  71. };
  72. factory: partition@34000 {
  73. label = "factory";
  74. reg = <0x34000 0x4000>;
  75. read-only;
  76. };
  77. partition@38000 {
  78. label = "nvram";
  79. reg = <0x38000 0x8000>;
  80. read-only;
  81. };
  82. partition@40000 {
  83. label = "devdata";
  84. reg = <0x40000 0x10000>;
  85. };
  86. partition@50000 {
  87. label = "firmware";
  88. reg = <0x50000 0x7b0000>;
  89. };
  90. };
  91. };
  92. &pinctrl {
  93. state_default: pinctrl0 {
  94. gpio {
  95. ralink,group = "i2c", "jtag", "uartf";
  96. ralink,function = "gpio";
  97. };
  98. };
  99. };
  100. &ethernet {
  101. mtd-mac-address = <&factory 0x4>;
  102. port@0 {
  103. mediatek,fixed-link = <1000 1 1 0>;
  104. };
  105. };
  106. &wmac {
  107. ralink,5ghz = <0>;
  108. ralink,mtd-eeprom = <&factory 0>;
  109. };
  110. &ehci {
  111. status = "okay";
  112. };
  113. &ohci {
  114. status = "okay";
  115. };