ARV7519RW22.dts 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. /dts-v1/;
  2. #include "vr9.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "ARV7519RW22 - Orange Livebox 2.1";
  6. chosen {
  7. bootargs = "console=ttyLTQ0,115200";
  8. };
  9. aliases {
  10. led-boot = &power_green;
  11. led-failsafe = &power_green;
  12. led-running = &power_green;
  13. led-internet = &internet_green;
  14. };
  15. memory@0 {
  16. reg = <0x0 0x8000000>;
  17. };
  18. fpi@10000000 {
  19. localbus@0 {
  20. nor-boot@0 {
  21. compatible = "lantiq,nor";
  22. bank-width = <2>;
  23. reg = <0 0x0 0x2000000>;
  24. #address-cells = <1>;
  25. #size-cells = <1>;
  26. partitions {
  27. compatible = "fixed-partitions";
  28. #address-cells = <1>;
  29. #size-cells = <1>;
  30. partition@0 {
  31. label = "uboot";
  32. reg = <0x0 0x60000>;
  33. read-only;
  34. };
  35. partition@60000 {
  36. label = "uboot-env";
  37. reg = <0x60000 0x20000>;
  38. read-only;
  39. };
  40. partition@80000 {
  41. label = "firmware";
  42. reg = <0x80000 0x1f00000>;
  43. };
  44. boardconfig: partition@1f80000 {
  45. label = "boardconfig";
  46. reg = <0x1f80000 0x80000>;
  47. read-only;
  48. };
  49. };
  50. };
  51. };
  52. gpio: pinmux@E100B10 {
  53. pinctrl-names = "default";
  54. pinctrl-0 = <&state_default>;
  55. state_default: pinmux {
  56. mdio {
  57. lantiq,groups = "mdio";
  58. lantiq,function = "mdio";
  59. };
  60. pcie-rst {
  61. lantiq,pins = "io21";
  62. lantiq,pull = <0>;
  63. lantiq,output = <1>;
  64. };
  65. };
  66. };
  67. ifxhcd@E101000 {
  68. status = "okay";
  69. gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
  70. };
  71. ifxhcd@E106000 {
  72. status = "okay";
  73. gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
  74. };
  75. pcie@d900000 {
  76. status = "disabled";
  77. };
  78. };
  79. gphy-xrx200 {
  80. compatible = "lantiq,phy-xrx200";
  81. firmware1 = "lantiq/vr9_phy22f_a1x.bin"; /*VR9 1.1*/
  82. firmware2 = "lantiq/vr9_phy22f_a2x.bin"; /*VR9 1.2*/
  83. phys = [ 00 01 ];
  84. };
  85. gpio-keys-polled {
  86. compatible = "gpio-keys-polled";
  87. #address-cells = <1>;
  88. #size-cells = <0>;
  89. poll-interval = <100>;
  90. reset {
  91. label = "reset";
  92. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  93. linux,code = <KEY_RESTART>;
  94. };
  95. rfkill {
  96. label = "rfkill";
  97. gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
  98. linux,code = <KEY_RFKILL>;
  99. };
  100. wps {
  101. label = "wps";
  102. gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
  103. linux,code = <KEY_WPS_BUTTON>;
  104. };
  105. };
  106. gpio-leds {
  107. compatible = "gpio-leds";
  108. lan_green {
  109. label = "arv7519rw22:green:lan";
  110. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  111. };
  112. internet_red {
  113. label = "arv7519rw22:red:internet";
  114. gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
  115. };
  116. power_green: power_green {
  117. label = "arv7519rw22:green:power";
  118. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  119. default-state = "keep";
  120. };
  121. alarm_blue {
  122. label = "arv7519rw22:blue:alarm";
  123. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  124. };
  125. internet_orange {
  126. label = "arv7519rw22:orange:internet";
  127. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  128. };
  129. internet_green: internet_green {
  130. label = "arv7519rw22:green:internet";
  131. gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
  132. };
  133. voice_green {
  134. label = "arv7519rw22:green:voice";
  135. gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
  136. };
  137. };
  138. };
  139. &eth0 {
  140. lan: interface@0 {
  141. compatible = "lantiq,xrx200-pdi";
  142. #address-cells = <1>;
  143. #size-cells = <0>;
  144. reg = <0>;
  145. mtd-mac-address = <&boardconfig 0x16>;
  146. lantiq,switch;
  147. ethernet@0 {
  148. compatible = "lantiq,xrx200-pdi-port";
  149. reg = <0>;
  150. phy-mode = "rgmii";
  151. phy-handle = <&phy0>;
  152. };
  153. ethernet@1 {
  154. compatible = "lantiq,xrx200-pdi-port";
  155. reg = <4>;
  156. phy-mode = "mii";
  157. phy-handle = <&phy13>;
  158. };
  159. ethernet@2 {
  160. compatible = "lantiq,xrx200-pdi-port";
  161. reg = <5>;
  162. phy-mode = "mii";
  163. phy-handle = <&phy14>;
  164. };
  165. ethernet@3 {
  166. compatible = "lantiq,xrx200-pdi-port";
  167. reg = <2>;
  168. phy-mode = "mii";
  169. phy-handle = <&phy11>;
  170. };
  171. ethernet@4 {
  172. compatible = "lantiq,xrx200-pdi-port";
  173. reg = <3>;
  174. phy-mode = "mii";
  175. phy-handle = <&phy12>;
  176. };
  177. };
  178. mdio@0 {
  179. #address-cells = <1>;
  180. #size-cells = <0>;
  181. compatible = "lantiq,xrx200-mdio";
  182. phy0: ethernet-phy@0 {
  183. reg = <0x0>;
  184. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  185. };
  186. phy11: ethernet-phy@11 {
  187. reg = <0x11>;
  188. compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
  189. };
  190. phy12: ethernet-phy@12 {
  191. reg = <0x12>;
  192. compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
  193. };
  194. phy13: ethernet-phy@13 {
  195. reg = <0x13>;
  196. compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
  197. };
  198. phy14: ethernet-phy@14 {
  199. reg = <0x14>;
  200. compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
  201. };
  202. };
  203. };