ar9330_thinkpenguin_tpe-r1100.dts 2.2 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 "ar9330.dtsi"
  6. / {
  7. model = "ThinkPenguin TPE-R1100";
  8. compatible = "thinkpenguin,tpe-r1100", "qca,ar9330";
  9. aliases {
  10. serial0 = &uart;
  11. led-boot = &led_power;
  12. led-failsafe = &led_power;
  13. led-running = &led_power;
  14. led-upgrade = &led_power;
  15. };
  16. leds {
  17. compatible = "gpio-leds";
  18. wlan {
  19. label = "gl-ar150:orange:wlan";
  20. gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
  21. linux,default-trigger = "phy0tpt";
  22. };
  23. configurable {
  24. label = "gl-ar150:green:configurable";
  25. gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
  26. };
  27. led_power: power {
  28. label = "gl-ar150:green:power";
  29. gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
  30. default-state = "on";
  31. };
  32. };
  33. keys {
  34. compatible = "gpio-keys-polled";
  35. poll-interval = <100>;
  36. manual {
  37. label = "manual";
  38. linux,code = <BTN_7>;
  39. gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
  40. };
  41. auto {
  42. label = "auto";
  43. linux,code = <BTN_8>;
  44. gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
  45. };
  46. reset {
  47. label = "reset";
  48. linux,code = <KEY_RESTART>;
  49. gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
  50. };
  51. };
  52. };
  53. &uart {
  54. status = "okay";
  55. };
  56. &gpio {
  57. status = "okay";
  58. };
  59. &usb {
  60. dr_mode = "host";
  61. status = "okay";
  62. };
  63. &usb_phy {
  64. status = "okay";
  65. gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
  66. };
  67. &spi {
  68. num-chipselects = <1>;
  69. status = "okay";
  70. flash@0 {
  71. compatible = "jedec,spi-nor";
  72. spi-max-frequency = <104000000>;
  73. reg = <0>;
  74. partitions {
  75. compatible = "fixed-partitions";
  76. #address-cells = <1>;
  77. #size-cells = <1>;
  78. partition@0 {
  79. label = "u-boot";
  80. reg = <0x000000 0x040000>;
  81. read-only;
  82. };
  83. partition@1 {
  84. label = "u-boot-env";
  85. reg = <0x040000 0x010000>;
  86. };
  87. partition@2 {
  88. compatible = "denx,uimage";
  89. label = "firmware";
  90. reg = <0x050000 0xfa0000>;
  91. };
  92. art: partition@3 {
  93. label = "art";
  94. reg = <0xff0000 0x010000>;
  95. read-only;
  96. };
  97. };
  98. };
  99. };
  100. &eth0 {
  101. status = "okay";
  102. mtd-mac-address = <&art 0x0>;
  103. };
  104. &eth1 {
  105. status = "okay";
  106. mtd-mac-address = <&art 0x0>;
  107. gmac-config {
  108. device = <&gmac>;
  109. switch-phy-addr-swap = <0>;
  110. switch-phy-swap = <0>;
  111. };
  112. };
  113. &wmac {
  114. status = "okay";
  115. mtd-cal-data = <&art 0x1000>;
  116. mtd-mac-address = <&art 0x0>;
  117. };