Advertisement
Guest User

Untitled

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