Guest User

Untitled

a guest
Dec 24th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. /dts-v1/;
  2.  
  3. #include "rt3883.dtsi"
  4.  
  5. #include <dt-bindings/input/input.h>
  6.  
  7. / {
  8. compatible = "DIR-815-A1", "ralink,rt3883-soc";
  9. model = "D-Link DIR-815 A1";
  10.  
  11. palmbus@10000000 {
  12. gpio1: gpio@638 {
  13. status = "okay";
  14. };
  15. };
  16.  
  17.  
  18.  
  19. nor-flash@1c000000 {
  20. compatible = "cfi-flash";
  21. reg = <0x1c000000 0x800000>;
  22.  
  23. bank-width = <2>;
  24. #address-cells = <1>;
  25. #size-cells = <1>;
  26. partition@0 {
  27. label = "uboot";
  28. reg = <0x0 0x30000>;
  29. read-only;
  30. };
  31. partition@30000 {
  32. label = "uboot-env";
  33. reg = <0x30000 0x4000>;
  34. read-only;
  35. };
  36. factory: partition@34000 {
  37. label = "factory";
  38. reg = <0x34000 0x4000>;
  39. read-only;
  40. };
  41. partition@38000 {
  42. label = "nvram";
  43. reg = <0x38000 0x8000>;
  44. read-only;
  45. };
  46. partition@40000 {
  47. label = "devdata";
  48. reg = <0x40000 0x10000>;
  49. read-only;
  50. };
  51. partition@50000 {
  52. label = "firmware";
  53. reg = <0x50000 0x3b0000>;
  54. };
  55. };
  56.  
  57. pinctrl {
  58. state_default: pinctrl0 {
  59. gpio {
  60. ralink,group = "spi", "i2c", "jtag", "uartf";
  61. ralink,function = "gpio";
  62. };
  63. };
  64. };
  65.  
  66. ethernet@10100000 {
  67. status = "okay";
  68. mtd-mac-address = <&factory 0x4>;
  69.  
  70. port@0 {
  71. phy-handle = <&phy0>;
  72. phy-mode = "mii";
  73. };
  74.  
  75. mdio-bus {
  76. status = "okay";
  77. phy0: ethernet-phy@0 {
  78. phy-mode = "mii";
  79. reg = <0>;
  80. };
  81. };
  82.  
  83. };
  84.  
  85. wmac@10180000 {
  86. status = "okay";
  87. ralink,2ghz = <0>;
  88. ralink,mtd-eeprom = <&factory 0>;
  89. };
  90.  
  91. pci@10140000 {
  92. status = "okay";
  93.  
  94. pinctrl-names = "default";
  95. pinctrl-0 = <&pci_pins>;
  96. pci_pins: pci {
  97. pci {
  98. ralink,group = "pci";
  99. ralink,function = "pci-fnc";
  100. };
  101. };
  102.  
  103. host-bridge {
  104. pci-bridge@1 {
  105. status = "okay";
  106. wmac@0,0 {
  107. compatible = "ralink,rt2880-pci", "pciclass060400", "pciclass0604";
  108. ralink,5ghz = <0>;
  109. reg = < 0x10000 0 0 0 0 >;
  110. ralink,mtd-eeprom = <&factory 0x2000>;
  111. mtd-mac-address = <&factory 0x2004>;
  112. };
  113. };
  114. };
  115. };
  116.  
  117. gpio-keys-polled {
  118. compatible = "gpio-keys-polled";
  119. #address-cells = <1>;
  120. #size-cells = <0>;
  121. poll-interval = <100>;
  122. reset {
  123. label = "reset";
  124. gpios = <&gpio1 1 1>;
  125. linux,code = <0x198>;
  126. };
  127. wps {
  128. label = "wps";
  129. gpios = <&gpio1 2 1>;
  130. linux,code = <0x211>;
  131. };
  132. };
  133.  
  134. gpio-leds {
  135. compatible = "gpio-leds";
  136. status {
  137. label = "dir-815-a1:amber:status";
  138. gpios = <&gpio1 6 1>;
  139. default-state = "on";
  140. };
  141. status2 {
  142. label = "dir-815-a1:green:status";
  143. gpios = <&gpio1 5 1>;
  144. };
  145. wan {
  146. label = "dir-815-a1:amber:wan";
  147. gpios = <&gpio1 3 1>;
  148. };
  149. wan2 {
  150. label = "dir-815-a1:green:wan";
  151. gpios = <&gpio1 4 1>;
  152. };
  153. wps {
  154. label = "dir-815-a1:blue:wps";
  155. gpios = <&gpio0 0 1>;
  156. };
  157. };
  158.  
  159. };
Add Comment
Please, Sign In to add comment