VR200.dtsi 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. #include "vr9.dtsi"
  2. #include <dt-bindings/input/input.h>
  3. #include <dt-bindings/mips/lantiq_rcu_gphy.h>
  4. / {
  5. memory@0 {
  6. reg = <0x0 0x7f00000>;
  7. };
  8. usb_vbus: regulator-usb-vbus {
  9. compatible = "regulator-fixed";
  10. regulator-name = "USB_VBUS";
  11. regulator-min-microvolt = <5000000>;
  12. regulator-max-microvolt = <5000000>;
  13. gpio = <&gpio 33 GPIO_ACTIVE_HIGH>;
  14. enable-active-high;
  15. };
  16. };
  17. &eth0 {
  18. lan: interface@0 {
  19. compatible = "lantiq,xrx200-pdi";
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. reg = <0>;
  23. mtd-mac-address = <&romfile 0xf100>;
  24. lantiq,switch;
  25. ethernet@0 {
  26. compatible = "lantiq,xrx200-pdi-port";
  27. reg = <0>;
  28. phy-mode = "rgmii";
  29. phy-handle = <&phy0>;
  30. // gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
  31. };
  32. ethernet@5 {
  33. compatible = "lantiq,xrx200-pdi-port";
  34. reg = <5>;
  35. phy-mode = "rgmii";
  36. phy-handle = <&phy5>;
  37. };
  38. ethernet@2 {
  39. compatible = "lantiq,xrx200-pdi-port";
  40. reg = <2>;
  41. phy-mode = "gmii";
  42. phy-handle = <&phy11>;
  43. };
  44. ethernet@3 {
  45. compatible = "lantiq,xrx200-pdi-port";
  46. reg = <4>;
  47. phy-mode = "gmii";
  48. phy-handle = <&phy13>;
  49. };
  50. };
  51. mdio@0 {
  52. #address-cells = <1>;
  53. #size-cells = <0>;
  54. compatible = "lantiq,xrx200-mdio";
  55. reg = <0>;
  56. phy0: ethernet-phy@0 {
  57. reg = <0x0>;
  58. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  59. };
  60. phy5: ethernet-phy@5 {
  61. reg = <0x5>;
  62. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  63. };
  64. phy11: ethernet-phy@11 {
  65. reg = <0x11>;
  66. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  67. };
  68. phy13: ethernet-phy@13 {
  69. reg = <0x13>;
  70. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  71. };
  72. };
  73. };
  74. &gphy0 {
  75. lantiq,gphy-mode = <GPHY_MODE_GE>;
  76. };
  77. &gphy1 {
  78. lantiq,gphy-mode = <GPHY_MODE_GE>;
  79. };
  80. &gpio {
  81. pinctrl-names = "default";
  82. pinctrl-0 = <&state_default>;
  83. state_default: pinmux {
  84. mdio {
  85. lantiq,groups = "mdio";
  86. lantiq,function = "mdio";
  87. };
  88. gphy-leds {
  89. lantiq,groups = "gphy0 led1", "gphy1 led1";
  90. lantiq,function = "gphy";
  91. lantiq,pull = <2>;
  92. lantiq,open-drain = <0>;
  93. lantiq,output = <1>;
  94. };
  95. phy-rst {
  96. lantiq,pins = "io42";
  97. lantiq,pull = <0>;
  98. lantiq,open-drain = <0>;
  99. lantiq,output = <1>;
  100. };
  101. pcie-rst {
  102. lantiq,pins = "io38";
  103. lantiq,pull = <0>;
  104. lantiq,output = <1>;
  105. };
  106. };
  107. pins_spi_default: pins_spi_default {
  108. spi_in {
  109. lantiq,groups = "spi_di";
  110. lantiq,function = "spi";
  111. };
  112. spi_out {
  113. lantiq,groups = "spi_do", "spi_clk",
  114. "spi_cs4";
  115. lantiq,function = "spi";
  116. lantiq,output = <1>;
  117. };
  118. };
  119. };
  120. &pci0 {
  121. status = "okay";
  122. gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
  123. };
  124. &spi {
  125. status = "okay";
  126. pinctrl-names = "default";
  127. pinctrl-0 = <&pins_spi_default>;
  128. m25p80@4 {
  129. #address-cells = <1>;
  130. #size-cells = <1>;
  131. compatible = "jedec,spi-nor";
  132. reg = <4 0>;
  133. spi-max-frequency = <33250000>;
  134. m25p,fast-read;
  135. partitions {
  136. compatible = "fixed-partitions";
  137. #address-cells = <1>;
  138. #size-cells = <1>;
  139. partition@0 {
  140. reg = <0x0 0x20000>;
  141. label = "u-boot";
  142. read-only;
  143. };
  144. partition@20000 {
  145. reg = <0x20000 0xf90000>;
  146. label = "firmware";
  147. };
  148. partition@fb0000 {
  149. reg = <0xfb0000 0x10000>;
  150. label = "radioDECT";
  151. read-only;
  152. };
  153. partition@fc0000 {
  154. reg = <0xfc0000 0x10000>;
  155. label = "config";
  156. read-only;
  157. };
  158. romfile: partition@fd0000 {
  159. reg = <0xfd0000 0x10000>;
  160. label = "romfile";
  161. read-only;
  162. };
  163. partition@fe0000 {
  164. reg = <0xfe0000 0x10000>;
  165. label = "rom";
  166. read-only;
  167. };
  168. partition@ff0000 {
  169. reg = <0xff0000 0x10000>;
  170. label = "radio";
  171. read-only;
  172. };
  173. };
  174. };
  175. };
  176. &usb_phy0 {
  177. status = "okay";
  178. };
  179. &usb_phy1 {
  180. status = "okay";
  181. };
  182. &usb0 {
  183. status = "okay";
  184. vbus-supply = <&usb_vbus>;
  185. };
  186. &usb1 {
  187. status = "okay";
  188. vbus-supply = <&usb_vbus>;
  189. };