VG3503J.dts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /dts-v1/;
  2. #include "vr9.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "VG3503J - BT OpenReach VDSL Modem";
  6. chosen {
  7. bootargs = "console=ttyLTQ0,115200";
  8. };
  9. aliases {
  10. led-boot = &power_green;
  11. led-failsafe = &power_red;
  12. led-running = &power_green;
  13. led-internet = &dsl;
  14. };
  15. memory@0 {
  16. reg = <0x0 0x2000000>;
  17. };
  18. fpi@10000000 {
  19. localbus@0 {
  20. ranges = <0 0 0x0 0x3ffffff>;
  21. nor-boot@0 {
  22. compatible = "lantiq,nor";
  23. bank-width = <2>;
  24. reg = <0 0x0 0x2000000>;
  25. #address-cells = <1>;
  26. #size-cells = <1>;
  27. partitions {
  28. compatible = "fixed-partitions";
  29. #address-cells = <1>;
  30. #size-cells = <1>;
  31. partition@0 {
  32. label = "uboot";
  33. reg = <0x00000 0x20000>;
  34. };
  35. partition@20000 {
  36. label = "firmware";
  37. reg = <0x20000 0x7d0000>;
  38. };
  39. partition@7f0000 {
  40. label = "uboot-env";
  41. reg = <0x7f0000 0x10000>;
  42. };
  43. };
  44. };
  45. };
  46. gpio: pinmux@E100B10 {
  47. pinctrl-names = "default";
  48. pinctrl-0 = <&state_default>;
  49. state_default: pinmux {
  50. mdio {
  51. lantiq,groups = "mdio";
  52. lantiq,function = "mdio";
  53. };
  54. gphy-leds {
  55. lantiq,groups = "gphy0 led0", "gphy0 led1",
  56. "gphy0 led2", "gphy1 led0",
  57. "gphy1 led1", "gphy1 led2";
  58. lantiq,function = "gphy";
  59. lantiq,pull = <2>;
  60. lantiq,open-drain = <0>;
  61. lantiq,output = <1>;
  62. };
  63. };
  64. };
  65. };
  66. gphy-xrx200 {
  67. compatible = "lantiq,phy-xrx200";
  68. firmware1 = "lantiq/vr9_phy11g_a1x.bin"; /*VR9 1.1*/
  69. firmware2 = "lantiq/vr9_phy11g_a2x.bin"; /*VR9 1.2*/
  70. phys = [ 00 01 ];
  71. };
  72. gpio-keys-polled {
  73. compatible = "gpio-keys-polled";
  74. #address-cells = <1>;
  75. #size-cells = <0>;
  76. poll-interval = <100>;
  77. reset {
  78. label = "reset";
  79. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  80. linux,code = <KEY_RESTART>;
  81. };
  82. };
  83. gpio-leds {
  84. compatible = "gpio-leds";
  85. power_red: power2 {
  86. label = "vg3503j:red:power";
  87. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  88. };
  89. dsl: dsl {
  90. label = "vg3503j:green:dsl";
  91. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  92. };
  93. power_green: power {
  94. label = "vg3503j:green:power";
  95. gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
  96. default-state = "keep";
  97. };
  98. };
  99. };
  100. &eth0 {
  101. interface@0 {
  102. compatible = "lantiq,xrx200-pdi";
  103. #address-cells = <1>;
  104. #size-cells = <0>;
  105. reg = <0>;
  106. lantiq,switch;
  107. ethernet@2 {
  108. compatible = "lantiq,xrx200-pdi-port";
  109. reg = <2>;
  110. phy-mode = "mii";
  111. phy-handle = <&phy11>;
  112. };
  113. ethernet@4 {
  114. compatible = "lantiq,xrx200-pdi-port";
  115. reg = <4>;
  116. phy-mode = "mii";
  117. phy-handle = <&phy13>;
  118. };
  119. };
  120. mdio@0 {
  121. #address-cells = <1>;
  122. #size-cells = <0>;
  123. compatible = "lantiq,xrx200-mdio";
  124. phy11: ethernet-phy@11 {
  125. reg = <0x11>;
  126. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  127. lantiq,led1h = <0x70>;
  128. lantiq,led1l = <0x00>;
  129. lantiq,led2h = <0x00>;
  130. lantiq,led2l = <0x03>;
  131. };
  132. phy13: ethernet-phy@13 {
  133. reg = <0x13>;
  134. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  135. lantiq,led1h = <0x70>;
  136. lantiq,led1l = <0x00>;
  137. lantiq,led2h = <0x00>;
  138. lantiq,led2l = <0x03>;
  139. };
  140. };
  141. };