bcm4708-smartrg-sr400ac.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /*
  3. * Broadcom BCM470X / BCM5301X arm platform code.
  4. * DTS for SmartRG SR400ac
  5. *
  6. * Copyright (C) 2015 Rafał Miłecki <[email protected]>
  7. */
  8. /dts-v1/;
  9. #include "bcm4708.dtsi"
  10. #include "bcm5301x-nand-cs0-bch8.dtsi"
  11. / {
  12. compatible = "smartrg,sr400ac", "brcm,bcm4708";
  13. model = "SmartRG SR400ac";
  14. chosen {
  15. bootargs = "console=ttyS0,115200 earlycon";
  16. };
  17. memory@0 {
  18. device_type = "memory";
  19. reg = <0x00000000 0x08000000>,
  20. <0x88000000 0x08000000>;
  21. };
  22. leds {
  23. compatible = "gpio-leds";
  24. power-white {
  25. label = "bcm53xx:white:power";
  26. gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
  27. linux,default-trigger = "default-on";
  28. };
  29. power-amber {
  30. label = "bcm53xx:amber:power";
  31. gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
  32. };
  33. usb2 {
  34. label = "bcm53xx:white:usb2";
  35. gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>;
  36. trigger-sources = <&ohci_port2>, <&ehci_port2>;
  37. linux,default-trigger = "usbport";
  38. };
  39. usb3-white {
  40. label = "bcm53xx:white:usb3";
  41. gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
  42. trigger-sources = <&xhci_port1>;
  43. linux,default-trigger = "usbport";
  44. };
  45. usb3-green {
  46. label = "bcm53xx:green:usb3";
  47. gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
  48. trigger-sources = <&ohci_port1>, <&ehci_port1>;
  49. linux,default-trigger = "usbport";
  50. };
  51. wps {
  52. label = "bcm53xx:white:wps";
  53. gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
  54. };
  55. status-red {
  56. label = "bcm53xx:red:status";
  57. gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
  58. };
  59. status-green {
  60. label = "bcm53xx:green:status";
  61. gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
  62. };
  63. status-blue {
  64. label = "bcm53xx:blue:status";
  65. gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
  66. };
  67. wan-white {
  68. label = "bcm53xx:white:wan";
  69. gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
  70. };
  71. wan-red {
  72. label = "bcm53xx:red:wan";
  73. gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
  74. };
  75. };
  76. gpio-keys {
  77. compatible = "gpio-keys";
  78. button-rfkill {
  79. label = "WiFi";
  80. linux,code = <KEY_RFKILL>;
  81. gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
  82. };
  83. button-wps {
  84. label = "WPS";
  85. linux,code = <KEY_WPS_BUTTON>;
  86. gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
  87. };
  88. button-restart {
  89. label = "Reset";
  90. linux,code = <KEY_RESTART>;
  91. gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
  92. };
  93. };
  94. };
  95. &spi_nor {
  96. status = "okay";
  97. };
  98. &srab {
  99. status = "okay";
  100. ports {
  101. port@0 {
  102. reg = <0>;
  103. label = "lan4";
  104. };
  105. port@1 {
  106. reg = <1>;
  107. label = "lan3";
  108. };
  109. port@2 {
  110. reg = <2>;
  111. label = "lan2";
  112. };
  113. port@3 {
  114. reg = <3>;
  115. label = "lan1";
  116. };
  117. port@4 {
  118. reg = <4>;
  119. label = "wan";
  120. };
  121. port@5 {
  122. reg = <5>;
  123. label = "cpu";
  124. ethernet = <&gmac0>;
  125. };
  126. };
  127. };
  128. &usb3_phy {
  129. status = "okay";
  130. };