VG3503J.dts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. /dts-v1/;
  2. /include/ "vr9.dtsi"
  3. / {
  4. model = "VG3503J - BT OpenReach VDSL Modem";
  5. chosen {
  6. bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
  7. leds {
  8. boot = &power_green;
  9. failsafe = &power_red;
  10. running = &power_green;
  11. internet = &dsl;
  12. };
  13. };
  14. memory@0 {
  15. reg = <0x0 0x2000000>;
  16. };
  17. fpi@10000000 {
  18. localbus@0 {
  19. ranges = <0 0 0x0 0x3ffffff>;
  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 = <0x00000 0x20000>;
  33. };
  34. partition@20000 {
  35. label = "kernel";
  36. reg = <0x20000 0x300000>;
  37. };
  38. partition@1a0000 {
  39. label = "rootfs";
  40. reg = <0x320000 0x420000>;
  41. };
  42. partition@740000 {
  43. label = "btagent";
  44. reg = <0x740000 0x80000>;
  45. };
  46. partition@7c0000 {
  47. label = "pri_bfocus_cfg";
  48. reg = <0x7c0000 0x10000>;
  49. };
  50. partition@7d0000 {
  51. label = "sec_bfocus_cfg";
  52. reg = <0x7d0000 0x10000>;
  53. };
  54. partition@7e0000 {
  55. label = "sysconfig";
  56. reg = <0x7e0000 0x10000>;
  57. };
  58. partition@7f0000 {
  59. label = "misc_cfg";
  60. reg = <0x7f0000 0x10000>;
  61. };
  62. };
  63. };
  64. };
  65. gpio: pinmux@E100B10 {
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&state_default>;
  68. state_default: pinmux {
  69. mdio {
  70. lantiq,groups = "mdio";
  71. lantiq,function = "mdio";
  72. };
  73. gphy-leds {
  74. lantiq,groups = "gphy0 led0", "gphy0 led1",
  75. "gphy0 led2", "gphy1 led0",
  76. "gphy1 led1", "gphy1 led2";
  77. lantiq,function = "gphy";
  78. lantiq,pull = <2>;
  79. lantiq,open-drain = <0>;
  80. lantiq,output = <1>;
  81. };
  82. };
  83. };
  84. };
  85. gphy-xrx200 {
  86. compatible = "lantiq,phy-xrx200";
  87. firmware1 = "lantiq/vr9_phy11g_a1x.bin"; /*VR9 1.1*/
  88. firmware2 = "lantiq/vr9_phy11g_a2x.bin"; /*VR9 1.2*/
  89. phys = [ 00 01 ];
  90. };
  91. gpio-keys-polled {
  92. compatible = "gpio-keys-polled";
  93. #address-cells = <1>;
  94. #size-cells = <0>;
  95. poll-interval = <100>;
  96. reset {
  97. label = "reset";
  98. gpios = <&gpio 6 1>;
  99. linux,code = <0x198>;
  100. };
  101. };
  102. gpio-leds {
  103. compatible = "gpio-leds";
  104. power_red: power2 {
  105. label = "vg3503j:red:power";
  106. gpios = <&gpio 14 1>;
  107. };
  108. dsl: dsl {
  109. label = "vg3503j:green:dsl";
  110. gpios = <&gpio 19 1>;
  111. };
  112. power_green: power {
  113. label = "vg3503j:green:power";
  114. gpios = <&gpio 28 1>;
  115. default-state = "keep";
  116. };
  117. };
  118. };
  119. &eth0 {
  120. interface@0 {
  121. compatible = "lantiq,xrx200-pdi";
  122. #address-cells = <1>;
  123. #size-cells = <0>;
  124. reg = <0>;
  125. mac-address = [ 00 11 22 33 44 55 ];
  126. lantiq,switch;
  127. ethernet@2 {
  128. compatible = "lantiq,xrx200-pdi-port";
  129. reg = <2>;
  130. phy-mode = "mii";
  131. phy-handle = <&phy11>;
  132. };
  133. ethernet@4 {
  134. compatible = "lantiq,xrx200-pdi-port";
  135. reg = <4>;
  136. phy-mode = "mii";
  137. phy-handle = <&phy13>;
  138. };
  139. };
  140. mdio@0 {
  141. #address-cells = <1>;
  142. #size-cells = <0>;
  143. compatible = "lantiq,xrx200-mdio";
  144. phy11: ethernet-phy@11 {
  145. reg = <0x11>;
  146. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  147. lantiq,led1h = <0x70>;
  148. lantiq,led1l = <0x00>;
  149. lantiq,led2h = <0x00>;
  150. lantiq,led2l = <0x03>;
  151. };
  152. phy13: ethernet-phy@13 {
  153. reg = <0x13>;
  154. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  155. lantiq,led1h = <0x70>;
  156. lantiq,led1l = <0x00>;
  157. lantiq,led2h = <0x00>;
  158. lantiq,led2l = <0x03>;
  159. };
  160. };
  161. };