DIR-645.dts 2.1 KB

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