ar7240_netgear_wnr612-v2.dtsi 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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 "ar7240.dtsi"
  6. / {
  7. aliases {
  8. led-boot = &power;
  9. led-failsafe = &power;
  10. led-running = &power;
  11. led-upgrade = &power;
  12. };
  13. keys {
  14. compatible = "gpio-keys-polled";
  15. poll-interval = <20>;
  16. reset {
  17. label = "reset";
  18. linux,code = <KEY_RESTART>;
  19. gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
  20. debounce-interval = <60>;
  21. };
  22. };
  23. leds {
  24. compatible = "gpio-leds";
  25. power: power {
  26. label = "netgear:green:power";
  27. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  28. };
  29. lan1 {
  30. label = "netgear:green:lan1";
  31. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  32. };
  33. lan2 {
  34. label = "netgear:green:lan2";
  35. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  36. };
  37. wan {
  38. label = "netgear:green:wan";
  39. gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
  40. };
  41. wlan: wlan {
  42. label = "netgear:green:wlan";
  43. gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
  44. linux,default-trigger = "phy0tpt";
  45. };
  46. };
  47. };
  48. &spi {
  49. status = "okay";
  50. num-cs = <1>;
  51. flash@0 {
  52. compatible = "jedec,spi-nor";
  53. reg = <0>;
  54. spi-max-frequency = <25000000>;
  55. partitions {
  56. compatible = "fixed-partitions";
  57. #address-cells = <1>;
  58. #size-cells = <1>;
  59. uboot: partition@0 {
  60. reg = <0x0 0x40000>;
  61. label = "u-boot";
  62. read-only;
  63. };
  64. partition@40000 {
  65. reg = <0x40000 0x10000>;
  66. label = "u-boot-env";
  67. };
  68. partition@50000 {
  69. compatible = "netgear,uimage";
  70. reg = <0x50000 0x3a0000>;
  71. label = "firmware";
  72. };
  73. partition@3f0000 {
  74. reg = <0x3f0000 0x10000>;
  75. label = "art";
  76. read-only;
  77. };
  78. };
  79. };
  80. };
  81. &eth0 {
  82. status = "okay";
  83. mtd-mac-address = <&uboot 0x1fc00>;
  84. mtd-mac-address-increment = <(-1)>;
  85. };
  86. &eth1 {
  87. status = "okay";
  88. mtd-mac-address = <&uboot 0x1fc00>;
  89. mtd-mac-address-increment = <1>;
  90. };
  91. &pcie {
  92. status = "okay";
  93. ath9k: wifi@0,0 {
  94. compatible = "pci168c,002b";
  95. reg = <0x0000 0 0 0 0>;
  96. qca,no-eeprom;
  97. #gpio-cells = <2>;
  98. gpio-controller;
  99. };
  100. };
  101. &uart {
  102. status = "okay";
  103. };