DM200.dts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. /dts-v1/;
  2. #include "vr9.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. #include <dt-bindings/mips/lantiq_rcu_gphy.h>
  5. / {
  6. compatible = "netgear,dm200", "lantiq,xway", "lantiq,vr9";
  7. model = "Netgear DM200";
  8. chosen {
  9. bootargs = "console=ttyLTQ0,115200";
  10. };
  11. aliases {
  12. led-boot = &power_green;
  13. led-failsafe = &power_amber;
  14. led-running = &power_green;
  15. led-dsl = &dsl_green;
  16. };
  17. memory@0 {
  18. reg = <0x0 0x4000000>;
  19. };
  20. gpio-keys-polled {
  21. compatible = "gpio-keys-polled";
  22. #address-cells = <1>;
  23. #size-cells = <0>;
  24. poll-interval = <100>;
  25. reset {
  26. label = "reset";
  27. gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
  28. linux,code = <KEY_RESTART>;
  29. };
  30. };
  31. gpio_export {
  32. compatible = "gpio-export";
  33. #size-cells = <0>;
  34. annexa {
  35. gpio-export,name = "annexa";
  36. gpio-export,output = <0>;
  37. gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
  38. };
  39. annexb {
  40. gpio-export,name = "annexb";
  41. gpio-export,output = <0>;
  42. gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
  43. };
  44. };
  45. gpio-leds {
  46. compatible = "gpio-leds";
  47. power_amber: power_amber {
  48. label = "dm200:amber:power";
  49. gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
  50. };
  51. power_green: power_green {
  52. label = "dm200:green:power";
  53. gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
  54. };
  55. lan_amber {
  56. label = "dm200:amber:lan";
  57. gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
  58. };
  59. lan_green {
  60. label = "dm200:green:lan";
  61. gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
  62. };
  63. dsl_amber {
  64. label = "dm200:amber:dsl";
  65. gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
  66. };
  67. dsl_green: dsl_green {
  68. label = "dm200:green:dsl";
  69. gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
  70. };
  71. };
  72. };
  73. &eth0 {
  74. lantiq,phys = <&gphy1>;
  75. lan: interface@0 {
  76. compatible = "lantiq,xrx200-pdi";
  77. #address-cells = <1>;
  78. #size-cells = <0>;
  79. reg = <0>;
  80. ethernet@4 {
  81. compatible = "lantiq,xrx200-pdi-port";
  82. reg = <4>;
  83. phy-mode = "mii";
  84. phy-handle = <&phy13>;
  85. };
  86. };
  87. mdio@0 {
  88. #address-cells = <1>;
  89. #size-cells = <0>;
  90. compatible = "lantiq,xrx200-mdio";
  91. reg = <0>;
  92. phy13: ethernet-phy@13 {
  93. reg = <0x13>;
  94. compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
  95. };
  96. };
  97. };
  98. &gphy1 {
  99. lantiq,gphy-mode = <GPHY_MODE_FE>;
  100. };
  101. &gpio {
  102. pinctrl-names = "default";
  103. pinctrl-0 = <&state_default>;
  104. state_default: pinmux {
  105. mdio {
  106. lantiq,groups = "mdio";
  107. lantiq,function = "mdio";
  108. };
  109. };
  110. pins_spi_default: pins_spi_default {
  111. spi_in {
  112. lantiq,groups = "spi_di";
  113. lantiq,function = "spi";
  114. };
  115. spi_out {
  116. lantiq,groups = "spi_do", "spi_clk", "spi_cs4";
  117. lantiq,function = "spi";
  118. lantiq,output = <1>;
  119. };
  120. };
  121. };
  122. &pcie0 {
  123. status = "disabled";
  124. };
  125. &spi {
  126. status = "okay";
  127. pinctrl-names = "default";
  128. pinctrl-0 = <&pins_spi_default>;
  129. m25p80@4 {
  130. #address-cells = <1>;
  131. #size-cells = <1>;
  132. compatible = "jedec,spi-nor";
  133. reg = <4 0>;
  134. spi-max-frequency = <10000000>;
  135. partitions {
  136. compatible = "fixed-partitions";
  137. #address-cells = <1>;
  138. #size-cells = <1>;
  139. partition@0 {
  140. reg = <0x0 0x20000>;
  141. label = "uboot";
  142. read-only;
  143. };
  144. partition@20000 {
  145. reg = <0x20000 0x10000>;
  146. label = "gphyfirmware";
  147. read-only;
  148. };
  149. partition@30000 {
  150. reg = <0x30000 0x7b0000>;
  151. label = "firmware";
  152. };
  153. partition@7e0000 {
  154. reg = <0x7e0000 0x10000>;
  155. label = "sysconfig";
  156. read-only;
  157. };
  158. partition@7f0000 {
  159. reg = <0x7f0000 0x2000>;
  160. label = "ubootconfig";
  161. read-only;
  162. };
  163. partition@7f2000 {
  164. reg = <0x7f2000 0x1000>;
  165. label = "ART";
  166. read-only;
  167. };
  168. partition@7f3000 {
  169. reg = <0x7f3000 0x1000>;
  170. label = "pot";
  171. read-only;
  172. };
  173. partition@7f4000 {
  174. reg = <0x7f4000 0xc000>;
  175. label = "ret";
  176. read-only;
  177. };
  178. };
  179. };
  180. };