DIR-645.dts 2.0 KB

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