bcm4708-buffalo-wzr-1750dhp.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /*
  3. * Broadcom BCM470X / BCM5301X ARM platform code.
  4. * DTS for Buffalo WZR-1750DHP
  5. *
  6. * Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com>
  7. */
  8. /dts-v1/;
  9. #include "bcm4708.dtsi"
  10. #include "bcm5301x-nand-cs0-bch8.dtsi"
  11. / {
  12. compatible = "buffalo,wzr-1750dhp", "brcm,bcm4708";
  13. model = "Buffalo WZR-1750DHP (BCM4708)";
  14. chosen {
  15. bootargs = "console=ttyS0,115200 earlycon";
  16. };
  17. memory {
  18. reg = <0x00000000 0x08000000
  19. 0x88000000 0x18000000>;
  20. };
  21. spi {
  22. compatible = "spi-gpio";
  23. num-chipselects = <1>;
  24. gpio-sck = <&chipcommon 7 0>;
  25. gpio-mosi = <&chipcommon 4 0>;
  26. cs-gpios = <&chipcommon 6 0>;
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. hc595: gpio_spi@0 {
  30. compatible = "fairchild,74hc595";
  31. reg = <0>;
  32. registers-number = <1>;
  33. spi-max-frequency = <100000>;
  34. gpio-controller;
  35. #gpio-cells = <2>;
  36. };
  37. };
  38. leds {
  39. compatible = "gpio-leds";
  40. usb {
  41. label = "bcm53xx:blue:usb";
  42. gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
  43. trigger-sources = <&ohci_port1>, <&ehci_port1>,
  44. <&xhci_port1>, <&ohci_port2>,
  45. <&ehci_port2>;
  46. linux,default-trigger = "usbport";
  47. };
  48. power0 {
  49. label = "bcm53xx:red:power";
  50. gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
  51. };
  52. power1 {
  53. label = "bcm53xx:white:power";
  54. gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
  55. linux,default-trigger = "default-on";
  56. };
  57. router0 {
  58. label = "bcm53xx:blue:router";
  59. gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
  60. linux,default-trigger = "default-on";
  61. };
  62. router1 {
  63. label = "bcm53xx:amber:router";
  64. gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
  65. };
  66. wan {
  67. label = "bcm53xx:blue:wan";
  68. gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
  69. linux,default-trigger = "default-on";
  70. };
  71. wireless0 {
  72. label = "bcm53xx:blue:wireless";
  73. gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
  74. };
  75. wireless1 {
  76. label = "bcm53xx:amber:wireless";
  77. gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
  78. };
  79. };
  80. gpio-keys {
  81. compatible = "gpio-keys";
  82. #address-cells = <1>;
  83. #size-cells = <0>;
  84. restart {
  85. label = "Reset";
  86. linux,code = <KEY_RESTART>;
  87. gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
  88. };
  89. aoss {
  90. label = "AOSS";
  91. linux,code = <KEY_WPS_BUTTON>;
  92. gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
  93. };
  94. /* Commit mode set by switch? */
  95. mode {
  96. label = "Mode";
  97. linux,code = <KEY_SETUP>;
  98. gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
  99. };
  100. /* Switch: AP mode */
  101. sw_ap {
  102. label = "AP";
  103. linux,code = <BTN_0>;
  104. gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
  105. };
  106. eject {
  107. label = "USB eject";
  108. linux,code = <KEY_EJECTCD>;
  109. gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
  110. };
  111. };
  112. };
  113. &usb2 {
  114. vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
  115. };
  116. &usb3 {
  117. vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_LOW>;
  118. };
  119. &spi_nor {
  120. status = "okay";
  121. };