bcm6368-comtrend-vr-3025u.dts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. #include "bcm6368.dtsi"
  3. / {
  4. model = "Comtrend VR-3025u";
  5. compatible = "comtrend,vr-3025u", "brcm,bcm6368";
  6. aliases {
  7. led-boot = &led_power_green;
  8. led-failsafe = &led_power_red;
  9. led-running = &led_power_green;
  10. led-upgrade = &led_power_green;
  11. };
  12. keys {
  13. compatible = "gpio-keys-polled";
  14. poll-interval = <100>;
  15. reset {
  16. label = "reset";
  17. gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
  18. linux,code = <KEY_RESTART>;
  19. debounce-interval = <60>;
  20. };
  21. };
  22. leds {
  23. compatible = "gpio-leds";
  24. led-2 {
  25. label = "green:dsl";
  26. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  27. };
  28. led-5 {
  29. label = "green:internet";
  30. gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
  31. };
  32. led_power_green: led-22 {
  33. function = LED_FUNCTION_POWER;
  34. color = <LED_COLOR_ID_GREEN>;
  35. gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
  36. };
  37. led_power_red: led-24 {
  38. function = LED_FUNCTION_POWER;
  39. color = <LED_COLOR_ID_RED>;
  40. gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
  41. panic-indicator;
  42. };
  43. led-31 {
  44. label = "red:internet";
  45. gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
  46. };
  47. };
  48. bcm43222-sprom {
  49. compatible = "brcm,ssb-sprom";
  50. pci-bus = <0>;
  51. pci-dev = <1>;
  52. nvmem-cells = <&macaddr_cfe_6a0 1>;
  53. nvmem-cell-names = "mac-address";
  54. brcm,sprom = "brcm/bcm43222-sprom.bin";
  55. brcm,sprom-fixups = <97 0xfeb3>,
  56. <98 0x1618>,
  57. <99 0xfab0>,
  58. <113 0xfed1>,
  59. <114 0x1609>,
  60. <115 0xfad9>;
  61. };
  62. };
  63. &ehci {
  64. status = "okay";
  65. };
  66. &ethernet {
  67. status = "okay";
  68. nvmem-cells = <&macaddr_cfe_6a0 0>;
  69. nvmem-cell-names = "mac-address";
  70. };
  71. &ohci {
  72. status = "okay";
  73. };
  74. &pci {
  75. status = "okay";
  76. };
  77. &pflash {
  78. status = "okay";
  79. partitions {
  80. compatible = "fixed-partitions";
  81. #address-cells = <1>;
  82. #size-cells = <1>;
  83. partition@0 {
  84. label = "CFE";
  85. reg = <0x0000000 0x0020000>;
  86. read-only;
  87. nvmem-layout {
  88. compatible = "fixed-layout";
  89. #address-cells = <1>;
  90. #size-cells = <1>;
  91. macaddr_cfe_6a0: macaddr@6a0 {
  92. compatible = "mac-base";
  93. reg = <0x6a0 0x6>;
  94. #nvmem-cell-cells = <1>;
  95. };
  96. };
  97. };
  98. partition@20000 {
  99. compatible = "brcm,bcm963xx-imagetag";
  100. label = "firmware";
  101. reg = <0x0020000 0x1fc0000>;
  102. };
  103. partition@1fe0000 {
  104. label = "nvram";
  105. reg = <0x1fe0000 0x020000>;
  106. };
  107. };
  108. };
  109. &pinctrl {
  110. pinctrl-names = "default";
  111. pinctrl-0 = <&pinctrl_ephy0_led &pinctrl_ephy1_led
  112. &pinctrl_ephy2_led &pinctrl_ephy3_led>;
  113. };
  114. &switch0 {
  115. ports {
  116. port@0 {
  117. reg = <0>;
  118. label = "lan1";
  119. phy-handle = <&phy1>;
  120. phy-mode = "mii";
  121. };
  122. port@1 {
  123. reg = <1>;
  124. label = "lan2";
  125. phy-handle = <&phy2>;
  126. phy-mode = "mii";
  127. };
  128. port@2 {
  129. reg = <2>;
  130. label = "lan3";
  131. phy-handle = <&phy3>;
  132. phy-mode = "mii";
  133. };
  134. port@3 {
  135. reg = <3>;
  136. label = "lan4";
  137. phy-handle = <&phy4>;
  138. phy-mode = "mii";
  139. };
  140. };
  141. };
  142. &uart0 {
  143. status = "okay";
  144. };
  145. &usbh {
  146. status = "okay";
  147. };