bcm47081-buffalo-wzr-900dhp.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /*
  3. * Broadcom BCM470X / BCM5301X ARM platform code.
  4. * DTS for Buffalo WZR-900DHP
  5. *
  6. * Copyright (C) 2015 Rafał Miłecki <[email protected]>
  7. */
  8. /dts-v1/;
  9. #include "bcm47081.dtsi"
  10. #include "bcm5301x-nand-cs0-bch8.dtsi"
  11. / {
  12. compatible = "buffalo,wzr-900dhp", "brcm,bcm47081", "brcm,bcm4708";
  13. model = "Buffalo WZR-900DHP (BCM47081)";
  14. chosen {
  15. bootargs = "console=ttyS0,115200";
  16. };
  17. memory@0 {
  18. device_type = "memory";
  19. reg = <0x00000000 0x08000000>,
  20. <0x88000000 0x08000000>;
  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:green:usb";
  43. gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
  44. };
  45. power0 {
  46. label = "bcm53xx:green:power";
  47. gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
  48. linux,default-trigger = "default-on";
  49. };
  50. power1 {
  51. label = "bcm53xx:red:power";
  52. gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
  53. };
  54. router0 {
  55. label = "bcm53xx:green:router";
  56. gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
  57. linux,default-trigger = "default-on";
  58. };
  59. router1 {
  60. label = "bcm53xx:amber:router";
  61. gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
  62. };
  63. wan {
  64. label = "bcm53xx:green:wan";
  65. gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
  66. linux,default-trigger = "default-on";
  67. };
  68. wireless0 {
  69. label = "bcm53xx:green:wireless";
  70. gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
  71. };
  72. wireless1 {
  73. label = "bcm53xx:amber:wireless";
  74. gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
  75. };
  76. };
  77. gpio-keys {
  78. compatible = "gpio-keys";
  79. button-restart {
  80. label = "Reset";
  81. linux,code = <KEY_RESTART>;
  82. gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
  83. };
  84. };
  85. };
  86. &usb3_phy {
  87. status = "okay";
  88. };