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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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 <[email protected]>
  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@0 {
  18. device_type = "memory";
  19. reg = <0x00000000 0x08000000>,
  20. <0x88000000 0x18000000>;
  21. };
  22. spi {
  23. compatible = "spi-gpio";
  24. num-chipselects = <1>;
  25. gpio-sck = <&chipcommon 7 0>;
  26. gpio-mosi = <&chipcommon 4 0>;
  27. cs-gpios = <&chipcommon 6 0>;
  28. #address-cells = <1>;
  29. #size-cells = <0>;
  30. hc595: gpio_spi@0 {
  31. compatible = "fairchild,74hc595";
  32. reg = <0>;
  33. registers-number = <1>;
  34. spi-max-frequency = <100000>;
  35. gpio-controller;
  36. #gpio-cells = <2>;
  37. };
  38. };
  39. leds {
  40. compatible = "gpio-leds";
  41. usb {
  42. label = "bcm53xx:blue:usb";
  43. gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
  44. trigger-sources = <&ohci_port1>, <&ehci_port1>,
  45. <&xhci_port1>, <&ohci_port2>,
  46. <&ehci_port2>;
  47. linux,default-trigger = "usbport";
  48. };
  49. power0 {
  50. label = "bcm53xx:red:power";
  51. gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
  52. };
  53. power1 {
  54. label = "bcm53xx:white:power";
  55. gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
  56. linux,default-trigger = "default-on";
  57. };
  58. router0 {
  59. label = "bcm53xx:blue:router";
  60. gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
  61. linux,default-trigger = "default-on";
  62. };
  63. router1 {
  64. label = "bcm53xx:amber:router";
  65. gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
  66. };
  67. wan {
  68. label = "bcm53xx:blue:wan";
  69. gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
  70. linux,default-trigger = "default-on";
  71. };
  72. wireless0 {
  73. label = "bcm53xx:blue:wireless";
  74. gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
  75. };
  76. wireless1 {
  77. label = "bcm53xx:amber:wireless";
  78. gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
  79. };
  80. };
  81. gpio-keys {
  82. compatible = "gpio-keys";
  83. button-restart {
  84. label = "Reset";
  85. linux,code = <KEY_RESTART>;
  86. gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
  87. };
  88. button-aoss {
  89. label = "AOSS";
  90. linux,code = <KEY_WPS_BUTTON>;
  91. gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
  92. };
  93. /* Commit mode set by switch? */
  94. button-mode {
  95. label = "Mode";
  96. linux,code = <KEY_SETUP>;
  97. gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
  98. };
  99. /* Switch: AP mode */
  100. button-sw-ap {
  101. label = "AP";
  102. linux,code = <BTN_0>;
  103. gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
  104. };
  105. button-eject {
  106. label = "USB eject";
  107. linux,code = <KEY_EJECTCD>;
  108. gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
  109. };
  110. };
  111. };
  112. &usb2 {
  113. vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
  114. };
  115. &usb3 {
  116. vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_LOW>;
  117. };
  118. &spi_nor {
  119. status = "okay";
  120. };
  121. &usb3_phy {
  122. status = "okay";
  123. };