bcm47094-dlink-dir-885l.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /*
  3. * Broadcom BCM470X / BCM5301X ARM platform code.
  4. * DTS for D-Link DIR-885L
  5. *
  6. * Copyright (C) 2016 Rafał Miłecki <[email protected]>
  7. */
  8. /dts-v1/;
  9. #include "bcm47094.dtsi"
  10. #include "bcm5301x-nand-cs0-bch1.dtsi"
  11. / {
  12. compatible = "dlink,dir-885l", "brcm,bcm47094", "brcm,bcm4708";
  13. model = "D-Link DIR-885L";
  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. nand_controller: nand-controller@18028000 {
  23. nand@0 {
  24. partitions {
  25. compatible = "fixed-partitions";
  26. #address-cells = <1>;
  27. #size-cells = <1>;
  28. partition@0 {
  29. label = "firmware";
  30. reg = <0x00000000 0x08000000>;
  31. };
  32. };
  33. };
  34. };
  35. leds {
  36. compatible = "gpio-leds";
  37. power-white {
  38. label = "bcm53xx:white:power";
  39. gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
  40. linux,default-trigger = "default-on";
  41. };
  42. wan-white {
  43. label = "bcm53xx:white:wan";
  44. gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
  45. };
  46. power-amber {
  47. label = "bcm53xx:amber:power";
  48. gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
  49. };
  50. wan-amber {
  51. label = "bcm53xx:amber:wan";
  52. gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  53. };
  54. usb3-white {
  55. label = "bcm53xx:white:usb3";
  56. gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
  57. trigger-sources = <&ohci_port1>, <&ehci_port1>,
  58. <&xhci_port1>;
  59. linux,default-trigger = "usbport";
  60. };
  61. 2ghz {
  62. label = "bcm53xx:white:2ghz";
  63. gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
  64. };
  65. 5ghz {
  66. label = "bcm53xx:white:5ghz";
  67. gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
  68. };
  69. };
  70. gpio-keys {
  71. compatible = "gpio-keys";
  72. button-wps {
  73. label = "WPS";
  74. linux,code = <KEY_WPS_BUTTON>;
  75. gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
  76. };
  77. /* Switch: router / extender */
  78. button-extender {
  79. label = "Extender";
  80. linux,code = <BTN_0>;
  81. gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
  82. };
  83. button-restart {
  84. label = "Reset";
  85. linux,code = <KEY_RESTART>;
  86. gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
  87. };
  88. };
  89. };
  90. &usb3 {
  91. vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
  92. };
  93. &spi_nor {
  94. status = "okay";
  95. };
  96. &usb3_phy {
  97. status = "okay";
  98. };
  99. &srab {
  100. status = "okay";
  101. ports {
  102. port@0 {
  103. reg = <0>;
  104. label = "lan4";
  105. };
  106. port@1 {
  107. reg = <1>;
  108. label = "lan3";
  109. };
  110. port@2 {
  111. reg = <2>;
  112. label = "lan2";
  113. };
  114. port@3 {
  115. reg = <3>;
  116. label = "lan1";
  117. };
  118. port@4 {
  119. reg = <4>;
  120. label = "wan";
  121. };
  122. port@8 {
  123. reg = <8>;
  124. label = "cpu";
  125. ethernet = <&gmac2>;
  126. fixed-link {
  127. speed = <1000>;
  128. full-duplex;
  129. };
  130. };
  131. };
  132. };