bcm4709-tplink-archer-c9-v1.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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 "bcm4709.dtsi"
  7. / {
  8. compatible = "tplink,archer-c9-v1", "brcm,bcm4709", "brcm,bcm4708";
  9. model = "TP-LINK Archer C9 V1";
  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. lan {
  20. label = "bcm53xx:blue:lan";
  21. gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
  22. };
  23. wps {
  24. label = "bcm53xx:blue:wps";
  25. gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
  26. };
  27. 2ghz {
  28. label = "bcm53xx:blue:2ghz";
  29. gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
  30. };
  31. 5ghz {
  32. label = "bcm53xx:blue:5ghz";
  33. gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
  34. };
  35. usb3 {
  36. label = "bcm53xx:blue:usb3";
  37. gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
  38. trigger-sources = <&ohci_port1>, <&ehci_port1>,
  39. <&xhci_port1>;
  40. linux,default-trigger = "usbport";
  41. };
  42. usb2 {
  43. label = "bcm53xx:blue:usb2";
  44. gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
  45. trigger-sources = <&ohci_port2>, <&ehci_port2>;
  46. linux,default-trigger = "usbport";
  47. };
  48. wan-blue {
  49. label = "bcm53xx:blue:wan";
  50. gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
  51. };
  52. wan-amber {
  53. label = "bcm53xx:amber:wan";
  54. gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
  55. };
  56. power {
  57. label = "bcm53xx:blue:power";
  58. gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
  59. linux,default-trigger = "default-on";
  60. };
  61. };
  62. gpio-keys {
  63. compatible = "gpio-keys";
  64. button-wps {
  65. label = "WPS";
  66. linux,code = <KEY_WPS_BUTTON>;
  67. gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
  68. };
  69. button-restart {
  70. label = "Reset";
  71. linux,code = <KEY_RESTART>;
  72. gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  73. };
  74. };
  75. };
  76. &usb2 {
  77. vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
  78. };
  79. &usb3 {
  80. vcc-gpio = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
  81. };
  82. &spi_nor {
  83. status = "okay";
  84. partitions {
  85. compatible = "fixed-partitions";
  86. #address-cells = <1>;
  87. #size-cells = <1>;
  88. boot@0 {
  89. label = "boot";
  90. reg = <0x000000 0x040000>;
  91. read-only;
  92. };
  93. os-image@100000 {
  94. label = "os-image";
  95. reg = <0x040000 0x200000>;
  96. compatible = "brcm,trx";
  97. };
  98. rootfs@240000 {
  99. label = "rootfs";
  100. reg = <0x240000 0xc00000>;
  101. };
  102. nvram@ff0000 {
  103. label = "nvram";
  104. reg = <0xff0000 0x010000>;
  105. };
  106. };
  107. };
  108. &usb3_phy {
  109. status = "okay";
  110. };