ASL56026.dts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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 = "alphanetworks,asl56026", "lantiq,xway", "lantiq,vr9";
  7. model = "BT OpenReach VDSL Modem";
  8. chosen {
  9. bootargs = "console=ttyLTQ0,115200";
  10. };
  11. aliases {
  12. led-boot = &power_green;
  13. led-failsafe = &power_red;
  14. led-running = &power_green;
  15. led-upgrade = &power_green;
  16. led-dsl = &dsl;
  17. };
  18. memory@0 {
  19. reg = <0x0 0x2000000>;
  20. };
  21. gpio-keys-polled {
  22. compatible = "gpio-keys-polled";
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. poll-interval = <100>;
  26. reset {
  27. label = "reset";
  28. gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
  29. linux,code = <KEY_RESTART>;
  30. };
  31. };
  32. gpio-leds {
  33. compatible = "gpio-leds";
  34. dsl: dsl {
  35. label = "asl56026:green:dsl";
  36. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  37. };
  38. /* power-* is a bicolour led */
  39. power_green: power_green {
  40. label = "asl56026:green:power";
  41. gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
  42. default-state = "keep";
  43. };
  44. power_red: power_red {
  45. label = "asl56026:red:power";
  46. gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
  47. };
  48. };
  49. gpio_export {
  50. compatible = "gpio-export";
  51. #size-cells = <0>;
  52. power_led_blink {
  53. gpio-export,name = "power_led_blink";
  54. gpio-export,output = <0>;
  55. gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
  56. };
  57. };
  58. };
  59. &eth0 {
  60. lan: interface@0 {
  61. compatible = "lantiq,xrx200-pdi";
  62. #address-cells = <1>;
  63. #size-cells = <0>;
  64. reg = <0>;
  65. lantiq,switch;
  66. ethernet@2 {
  67. compatible = "lantiq,xrx200-pdi-port";
  68. reg = <2>;
  69. phy-mode = "mii";
  70. phy-handle = <&phy11>;
  71. };
  72. ethernet@3 {
  73. compatible = "lantiq,xrx200-pdi-port";
  74. reg = <3>;
  75. phy-mode = "mii";
  76. phy-handle = <&phy14>;
  77. };
  78. };
  79. mdio@0 {
  80. #address-cells = <1>;
  81. #size-cells = <0>;
  82. compatible = "lantiq,xrx200-mdio";
  83. reg = <0>;
  84. phy11: ethernet-phy@11 {
  85. reg = <0x11>;
  86. compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
  87. };
  88. phy14: ethernet-phy@14 {
  89. reg = <0x14>;
  90. compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
  91. };
  92. };
  93. };
  94. &gphy0 {
  95. lantiq,gphy-mode = <GPHY_MODE_FE>;
  96. };
  97. &gphy1 {
  98. lantiq,gphy-mode = <GPHY_MODE_FE>;
  99. };
  100. &gpio {
  101. pinctrl-names = "default";
  102. pinctrl-0 = <&state_default>;
  103. state_default: pinmux {
  104. mdio {
  105. lantiq,groups = "mdio";
  106. lantiq,function = "mdio";
  107. };
  108. };
  109. };
  110. &localbus {
  111. nor@0 {
  112. compatible = "lantiq,nor";
  113. bank-width = <2>;
  114. reg = <0 0x0 0x0800000>;
  115. #address-cells = <1>;
  116. #size-cells = <1>;
  117. partitions {
  118. compatible = "fixed-partitions";
  119. #address-cells = <1>;
  120. #size-cells = <1>;
  121. partition@0 {
  122. label = "uboot";
  123. reg = <0x0 0x30000>;
  124. };
  125. partition@30000 {
  126. label = "uboot_env";
  127. reg = <0x30000 0x10000>;
  128. };
  129. partition@40000 {
  130. label = "firmware";
  131. reg = <0x40000 0x750000>;
  132. };
  133. partition@790000 {
  134. label = "ddrconfig";
  135. reg = <0x790000 0x70000>;
  136. read-only;
  137. };
  138. };
  139. };
  140. };