bcm47081-tplink-archer-c5-v2.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /*
  3. * Copyright (C) 2017 Rafał Miłecki <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include "bcm47081.dtsi"
  7. / {
  8. compatible = "tplink,archer-c5-v2", "brcm,bcm47081", "brcm,bcm4708";
  9. model = "TP-LINK Archer C5 V2";
  10. chosen {
  11. bootargs = "earlycon";
  12. };
  13. memory@0 {
  14. device_type = "memory";
  15. reg = <0x00000000 0x08000000>;
  16. };
  17. leds {
  18. compatible = "gpio-leds";
  19. 2ghz {
  20. label = "bcm53xx:green:2ghz";
  21. gpios = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
  22. };
  23. lan {
  24. label = "bcm53xx:green:lan";
  25. gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
  26. };
  27. usb2-port1 {
  28. label = "bcm53xx:green:usb2-port1";
  29. gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
  30. trigger-sources = <&ohci_port1>, <&ehci_port1>;
  31. linux,default-trigger = "usbport";
  32. };
  33. power {
  34. label = "bcm53xx:green:power";
  35. gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
  36. linux,default-trigger = "default-on";
  37. };
  38. wan-green {
  39. label = "bcm53xx:green:wan";
  40. gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
  41. };
  42. wps {
  43. label = "bcm53xx:green:wps";
  44. gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
  45. };
  46. wan-amber {
  47. label = "bcm53xx:amber:wan";
  48. gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
  49. };
  50. 5ghz {
  51. label = "bcm53xx:green:5ghz";
  52. gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
  53. };
  54. usb2-port2 {
  55. label = "bcm53xx:green:usb2-port2";
  56. gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
  57. trigger-sources = <&ohci_port2>, <&ehci_port2>;
  58. linux,default-trigger = "usbport";
  59. };
  60. };
  61. gpio-keys {
  62. compatible = "gpio-keys";
  63. button-rfkill {
  64. label = "WiFi";
  65. linux,code = <KEY_RFKILL>;
  66. gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  67. };
  68. button-restart {
  69. label = "Reset";
  70. linux,code = <KEY_RESTART>;
  71. gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
  72. };
  73. };
  74. };
  75. &spi_nor {
  76. status = "okay";
  77. partitions {
  78. compatible = "fixed-partitions";
  79. #address-cells = <1>;
  80. #size-cells = <1>;
  81. boot@0 {
  82. label = "boot";
  83. reg = <0x000000 0x040000>;
  84. read-only;
  85. };
  86. os-image@100000 {
  87. label = "os-image";
  88. reg = <0x040000 0x200000>;
  89. compatible = "brcm,trx";
  90. };
  91. rootfs@240000 {
  92. label = "rootfs";
  93. reg = <0x240000 0xc00000>;
  94. };
  95. nvram@ff0000 {
  96. label = "nvram";
  97. reg = <0xff0000 0x010000>;
  98. };
  99. };
  100. };
  101. &usb2 {
  102. vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
  103. };