bcm47189-tenda-ac9.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /*
  3. * Copyright (C) 2016 Rafał Miłecki <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include "bcm53573.dtsi"
  7. / {
  8. compatible = "tenda,ac9", "brcm,bcm47189", "brcm,bcm53573";
  9. model = "Tenda AC9";
  10. chosen {
  11. bootargs = "console=ttyS0,115200 earlycon";
  12. };
  13. memory@0 {
  14. device_type = "memory";
  15. reg = <0x00000000 0x08000000>;
  16. };
  17. leds {
  18. compatible = "gpio-leds";
  19. usb {
  20. label = "bcm53xx:blue:usb";
  21. gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
  22. trigger-sources = <&ohci_port1>, <&ehci_port1>;
  23. linux,default-trigger = "usbport";
  24. };
  25. wps {
  26. label = "bcm53xx:blue:wps";
  27. gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
  28. };
  29. 5ghz {
  30. label = "bcm53xx:blue:5ghz";
  31. gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
  32. };
  33. system {
  34. label = "bcm53xx:blue:system";
  35. gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
  36. linux,default-trigger = "timer";
  37. };
  38. };
  39. pcie0_leds {
  40. compatible = "gpio-leds";
  41. 2ghz {
  42. label = "bcm53xx:blue:2ghz";
  43. gpios = <&pcie0_chipcommon 3 GPIO_ACTIVE_HIGH>;
  44. };
  45. };
  46. gpio-keys {
  47. compatible = "gpio-keys";
  48. button-rfkill {
  49. label = "WiFi";
  50. linux,code = <KEY_RFKILL>;
  51. gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  52. };
  53. button-restart {
  54. label = "Reset";
  55. linux,code = <KEY_RESTART>;
  56. gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
  57. };
  58. button-wps {
  59. label = "WPS";
  60. linux,code = <KEY_WPS_BUTTON>;
  61. gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>;
  62. };
  63. };
  64. };
  65. &pcie0 {
  66. ranges = <0x00000000 0 0 0 0 0x00100000>;
  67. #address-cells = <3>;
  68. #size-cells = <2>;
  69. bridge@0,0,0 {
  70. reg = <0x0000 0 0 0 0>;
  71. ranges = <0x00000000 0 0 0 0 0 0 0x00100000>;
  72. #address-cells = <3>;
  73. #size-cells = <2>;
  74. wifi@0,1,0 {
  75. reg = <0x0000 0 0 0 0>;
  76. ranges = <0x00000000 0 0 0 0x00100000>;
  77. #address-cells = <1>;
  78. #size-cells = <1>;
  79. pcie0_chipcommon: chipcommon@0 {
  80. reg = <0 0x1000>;
  81. gpio-controller;
  82. #gpio-cells = <2>;
  83. };
  84. };
  85. };
  86. };
  87. &switch {
  88. status = "okay";
  89. ports {
  90. port@0 {
  91. reg = <0>;
  92. label = "wan";
  93. };
  94. port@1 {
  95. reg = <1>;
  96. label = "lan1";
  97. };
  98. port@2 {
  99. reg = <2>;
  100. label = "lan2";
  101. };
  102. port@3 {
  103. reg = <3>;
  104. label = "lan3";
  105. };
  106. port@4 {
  107. reg = <4>;
  108. label = "lan4";
  109. };
  110. port@8 {
  111. reg = <8>;
  112. label = "cpu";
  113. ethernet = <&gmac0>;
  114. };
  115. };
  116. };