DIR-645.dts 2.2 KB

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