bcm4709-buffalo-wxr-1900dhp.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /*
  3. * Broadcom BCM470X / BCM5301X ARM platform code.
  4. * DTS for Buffalo WXR-1900DHP
  5. *
  6. * Copyright (C) 2015 Felix Fietkau <[email protected]>
  7. */
  8. /dts-v1/;
  9. #include "bcm4709.dtsi"
  10. #include "bcm5301x-nand-cs0-bch8.dtsi"
  11. / {
  12. compatible = "buffalo,wxr-1900dhp", "brcm,bcm4709", "brcm,bcm4708";
  13. model = "Buffalo WXR-1900DHP";
  14. chosen {
  15. bootargs = "console=ttyS0,115200";
  16. };
  17. memory@0 {
  18. device_type = "memory";
  19. reg = <0x00000000 0x08000000>,
  20. <0x88000000 0x18000000>;
  21. };
  22. leds {
  23. compatible = "gpio-leds";
  24. usb {
  25. label = "bcm53xx:green:usb";
  26. gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
  27. };
  28. power-amber {
  29. label = "bcm53xx:amber:power";
  30. gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
  31. };
  32. power-white {
  33. label = "bcm53xx:white:power";
  34. gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
  35. linux,default-trigger = "default-on";
  36. };
  37. router-amber {
  38. label = "bcm53xx:amber:router";
  39. gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
  40. };
  41. router-white {
  42. label = "bcm53xx:white:router";
  43. gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
  44. };
  45. wan-amber {
  46. label = "bcm53xx:amber:wan";
  47. gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
  48. };
  49. wan-white {
  50. label = "bcm53xx:white:wan";
  51. gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
  52. };
  53. wireless-amber {
  54. label = "bcm53xx:amber:wireless";
  55. gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
  56. };
  57. wireless-white {
  58. label = "bcm53xx:white:wireless";
  59. gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
  60. };
  61. };
  62. gpio-keys {
  63. compatible = "gpio-keys";
  64. button-power {
  65. label = "Power";
  66. linux,code = <KEY_POWER>;
  67. gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
  68. };
  69. button-restart {
  70. label = "Reset";
  71. linux,code = <KEY_RESTART>;
  72. gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
  73. };
  74. button-aoss {
  75. label = "AOSS";
  76. linux,code = <KEY_WPS_BUTTON>;
  77. gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
  78. };
  79. /* Commit mode set by switch? */
  80. button-mode {
  81. label = "Mode";
  82. linux,code = <KEY_SETUP>;
  83. gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
  84. };
  85. /* Switch: AP mode */
  86. button-sw-ap {
  87. label = "AP";
  88. linux,code = <BTN_0>;
  89. gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
  90. };
  91. button-eject {
  92. label = "USB eject";
  93. linux,code = <KEY_EJECTCD>;
  94. gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
  95. };
  96. };
  97. };
  98. &usb2 {
  99. vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
  100. };
  101. &spi_nor {
  102. status = "okay";
  103. };
  104. &usb3_phy {
  105. status = "okay";
  106. };