qca9557_buffalo_bhr-4grv2.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include "qca9557.dtsi"
  6. / {
  7. compatible = "buffalo,bhr-4grv2", "qca,qca9557";
  8. model = "Buffalo BHR-4GRV2";
  9. aliases {
  10. led-boot = &power;
  11. led-failsafe = &power;
  12. led-running = &power;
  13. led-upgrade = &power;
  14. };
  15. chosen {
  16. bootargs = "console=ttyS0,115200n8";
  17. };
  18. leds {
  19. compatible = "gpio-leds";
  20. power: power {
  21. label = "bhr-4grv2:green:power";
  22. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  23. default-state = "on";
  24. };
  25. diag {
  26. label = "bhr-4grv2:orange:diag";
  27. gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
  28. };
  29. vpn_orange {
  30. label = "bhr-4grv2:orange:vpn";
  31. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  32. };
  33. vpn_green {
  34. label = "bhr-4grv2:green:vpn";
  35. gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
  36. };
  37. };
  38. keys {
  39. compatible = "gpio-keys-polled";
  40. poll-interval = <20>;
  41. reset {
  42. label = "reset";
  43. gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
  44. linux,code = <KEY_RESTART>;
  45. debounce-interval = <60>;
  46. };
  47. eco {
  48. label = "eco";
  49. gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
  50. linux,code = <BTN_0>;
  51. linux,input-type = <EV_SW>;
  52. debounce-interval = <60>;
  53. };
  54. };
  55. };
  56. &spi {
  57. status = "okay";
  58. num-cs = <1>;
  59. flash@0 {
  60. compatible = "jedec,spi-nor";
  61. reg = <0>;
  62. spi-max-frequency = <25000000>;
  63. partitions {
  64. compatible = "fixed-partitions";
  65. #address-cells = <1>;
  66. #size-cells = <1>;
  67. partition@0 {
  68. label = "u-boot";
  69. reg = <0x000000 0x040000>;
  70. read-only;
  71. };
  72. partition@40000 {
  73. label = "u-boot-env";
  74. reg = <0x040000 0x010000>;
  75. };
  76. partition@50000 {
  77. compatible = "denx,uimage";
  78. label = "firmware";
  79. reg = <0x050000 0xfa0000>;
  80. };
  81. art: partition@ff0000 {
  82. label = "art";
  83. reg = <0xff0000 0x010000>;
  84. read-only;
  85. };
  86. };
  87. };
  88. };
  89. &mdio0 {
  90. status = "okay";
  91. phy0: ethernet-phy@0 {
  92. reg = <0>;
  93. qca,ar8327-initvals = <
  94. 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
  95. 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
  96. 0x7c 0x0000007e /* PORT0_STATUS */
  97. 0x94 0x0000007e /* PORT6 STATUS */
  98. >;
  99. };
  100. };
  101. &eth0 {
  102. status = "okay";
  103. mtd-mac-address = <&art 0x0>;
  104. phy-handle = <&phy0>;
  105. pll-data = <0x56000000 0x00000101 0x00001616>;
  106. };
  107. &eth1 {
  108. status = "okay";
  109. mtd-mac-address = <&art 0x6>;
  110. pll-data = <0x03000101 0x00000101 0x00001616>;
  111. fixed-link {
  112. speed = <1000>;
  113. full-duplex;
  114. };
  115. };
  116. &uart {
  117. status = "okay";
  118. };