Advertisement
Guest User

MP264 LEDE config (SPI/WiFi/USB not working)

a guest
Dec 7th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.06 KB | None | 0 0
  1.  
  2. /dts-v1/;
  3.  
  4. #include "vr9.dtsi"
  5.  
  6. / {
  7. model = "MP264 Commander";
  8.  
  9. chosen {
  10. bootargs = "console=ttyLTQ0,115200 init=/etc/preinit earlyprintk debug";
  11.  
  12. leds {
  13. boot = &power;
  14. failsafe = &power;
  15.  
  16. dsl = &dsl;
  17. internet = &internet;
  18. usb = &usb;
  19. usb2 = &usb;
  20. };
  21. };
  22.  
  23. memory@0 {
  24. reg = <0x0 0x3e00000>;
  25. };
  26.  
  27. sram@1F000000 {
  28. vmmc@107000 {
  29. status = "okay";
  30. gpios = <&gpio 31 0>;
  31. };
  32. };
  33.  
  34. fpi@10000000 {
  35. gpio: pinmux@E100B10 {
  36. pinctrl-names = "default";
  37. pinctrl-0 = <&state_default>;
  38.  
  39. state_default: pinmux {
  40. mdio {
  41. lantiq,groups = "mdio";
  42. lantiq,function = "mdio";
  43. };
  44. gphy-leds {
  45. lantiq,groups = "gphy0 led1", "gphy1 led1";
  46. lantiq,function = "gphy";
  47. lantiq,pull = <2>;
  48. lantiq,open-drain = <0>;
  49. lantiq,output = <1>;
  50. };
  51. phy-rst {
  52. lantiq,pins = "io42";
  53. lantiq,pull = <0>;
  54. lantiq,open-drain = <0>;
  55. lantiq,output = <1>;
  56. };
  57. pcie-rst {
  58. lantiq,pins = "io38";
  59. lantiq,pull = <0>;
  60. lantiq,output = <1>;
  61. };
  62. };
  63. pins_spi_default: pins_spi_default {
  64. spi_in {
  65. lantiq,groups = "spi_di";
  66. lantiq,function = "spi";
  67. };
  68. spi_out {
  69. lantiq,groups = "spi_do", "spi_clk",
  70. "spi_cs4";
  71. lantiq,function = "spi";
  72. lantiq,output = <1>;
  73. };
  74. };
  75. };
  76.  
  77. ralink_eep {
  78. compatible = "ralink,eeprom";
  79. ralink,eeprom = "RT3062.eeprom";
  80. };
  81.  
  82. ifxhcd@E101000 {
  83. status = "okay";
  84. gpios = <&gpio 33 0>;
  85. lantiq,portmask = <0x3>;
  86. interrupts = <54>;
  87. };
  88.  
  89. ifxhcd@E106000 {
  90. status = "okay";
  91. gpios = <&gpio 33 0>;
  92. interrupts = <83>;
  93. };
  94.  
  95. pcie@d900000 {
  96. status = "enabled";
  97. compatible = "lantiq,pcie-xway";
  98. };
  99.  
  100. pci@E105400 {
  101. status = "okay";
  102. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  103. interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
  104. gpio-reset = <&gpio 21 0>;
  105. req-mask = <0xf>;
  106. };
  107.  
  108. };
  109.  
  110. gphy-xrx200 {
  111. compatible = "lantiq,phy-xrx200";
  112. firmware = "lantiq/vr9_phy11g_a2x.bin";
  113. phys = [ 00 01 ];
  114. };
  115.  
  116. gpio-keys-polled {
  117. compatible = "gpio-keys-polled";
  118. #address-cells = <1>;
  119. #size-cells = <0>;
  120. poll-interval = <100>;
  121. reset {
  122. label = "reset";
  123. gpios = <&gpio 22 1>;
  124. linux,code = <0x198>;
  125. };
  126.  
  127. wifi {
  128. label = "wifi";
  129. gpios = <&gpio 0 0>;
  130. linux,code = <0xf7>;
  131. linux,input-type = <5>;
  132. };
  133.  
  134. wps {
  135. label = "wps";
  136. gpios = <&gpio 2 1>;
  137. linux,code = <0x211>;
  138. };
  139.  
  140. dect_paging {
  141. label = "dect_paging";
  142. gpios = <&gpio 39 1>;
  143. linux,code = <0x211>;
  144. };
  145. };
  146.  
  147. gpio-leds {
  148. compatible = "gpio-leds";
  149. power: power {
  150. label = "vr200v:blue:power";
  151. gpios = <&gpio 46 1>;
  152. };
  153. dsl: dsl {
  154. label = "vr200v:blue:dsl";
  155. gpios = <&gpio 4 1>;
  156. };
  157. internet: internet {
  158. label = "vr200v:blue:internet";
  159. gpios = <&gpio 5 1>;
  160. };
  161. usb: usb {
  162. label = "vr200v:blue:usb";
  163. gpios = <&gpio 25 1>;
  164. };
  165. eth {
  166. label = "vr200v:blue:lan";
  167. gpios = <&gpio 40 1>;
  168. };
  169. wlan {
  170. label = "vr200v:blue:wlan";
  171. gpios = <&gpio 24 1>;
  172. };
  173. wlan5g {
  174. label = "vr200v:blue:wlan5g";
  175. gpios = <&gpio 20 1>;
  176. };
  177. phone {
  178. label = "vr200v:blue:phone";
  179. gpios = <&gpio 44 1>;
  180. };
  181. };
  182. };
  183.  
  184. &eth0 {
  185. lan: interface@0 {
  186. compatible = "lantiq,xrx200-pdi";
  187. #address-cells = <1>;
  188. #size-cells = <0>;
  189. reg = <0>;
  190. //mtd-mac-address = <&romfile 0xf100>;
  191. lantiq,switch;
  192.  
  193. ethernet@0 {
  194. compatible = "lantiq,xrx200-pdi-port";
  195. reg = <0>;
  196. phy-mode = "rgmii";
  197. phy-handle = <&phy0>;
  198. // gpios = <&gpio 42 1>;
  199. };
  200. ethernet@5 {
  201. compatible = "lantiq,xrx200-pdi-port";
  202. reg = <5>;
  203. phy-mode = "rgmii";
  204. phy-handle = <&phy5>;
  205. };
  206. ethernet@2 {
  207. compatible = "lantiq,xrx200-pdi-port";
  208. reg = <2>;
  209. phy-mode = "gmii";
  210. phy-handle = <&phy11>;
  211. };
  212. ethernet@3 {
  213. compatible = "lantiq,xrx200-pdi-port";
  214. reg = <4>;
  215. phy-mode = "gmii";
  216. phy-handle = <&phy13>;
  217. };
  218. };
  219.  
  220. mdio@0 {
  221. #address-cells = <1>;
  222. #size-cells = <0>;
  223. compatible = "lantiq,xrx200-mdio";
  224. phy0: ethernet-phy@0 {
  225. reg = <0x0>;
  226. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  227. };
  228. phy5: ethernet-phy@5 {
  229. reg = <0x5>;
  230. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  231. };
  232. phy11: ethernet-phy@11 {
  233. reg = <0x11>;
  234. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  235. };
  236. phy13: ethernet-phy@13 {
  237. reg = <0x13>;
  238. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  239. };
  240. };
  241. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement