ar9330_pqi_air-pen.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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 = "PQI Air-Pen";
  8. compatible = "pqi,air-pen", "qca,ar9330";
  9. aliases {
  10. serial0 = &uart;
  11. led-boot = &wlan;
  12. led-failsafe = &wlan;
  13. led-upgrade = &wlan;
  14. };
  15. leds {
  16. compatible = "gpio-leds";
  17. wlan: wlan {
  18. label = "air-pen:blue:wlan";
  19. gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
  20. linux,default-trigger = "phy0tpt";
  21. };
  22. wps {
  23. label = "air-pen:blue:wps";
  24. gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
  25. };
  26. };
  27. keys {
  28. compatible = "gpio-keys-polled";
  29. poll-interval = <100>;
  30. wps {
  31. label = "wps";
  32. linux,code = <KEY_WPS_BUTTON>;
  33. gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
  34. debounce-interval = <60>;
  35. };
  36. reset {
  37. label = "reset";
  38. linux,code = <KEY_RESTART>;
  39. gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
  40. debounce-interval = <60>;
  41. };
  42. };
  43. };
  44. &uart {
  45. status = "okay";
  46. };
  47. &gpio {
  48. status = "okay";
  49. };
  50. &usb {
  51. dr_mode = "host";
  52. status = "okay";
  53. };
  54. &usb_phy {
  55. status = "okay";
  56. };
  57. &spi {
  58. num-cs = <1>;
  59. status = "okay";
  60. flash@0 {
  61. compatible = "jedec,spi-nor";
  62. spi-max-frequency = <104000000>;
  63. reg = <0>;
  64. partitions {
  65. compatible = "fixed-partitions";
  66. #address-cells = <1>;
  67. #size-cells = <1>;
  68. partition@0 {
  69. label = "u-boot";
  70. reg = <0x000000 0x040000>;
  71. read-only;
  72. };
  73. partition@40000 {
  74. label = "u-boot-env";
  75. reg = <0x040000 0x010000>;
  76. };
  77. art: partition@50000 {
  78. label = "art";
  79. reg = <0x050000 0x010000>;
  80. read-only;
  81. };
  82. partition@60000 {
  83. label = "NVRAM";
  84. reg = <0x060000 0x010000>;
  85. read-only;
  86. };
  87. partition@70000 {
  88. compatible = "denx,uimage";
  89. label = "firmware";
  90. reg = <0x070000 0x780000>;
  91. };
  92. partition@7f0000 {
  93. label = "CONF";
  94. reg = <0x7f0000 0x010000>;
  95. read-only;
  96. };
  97. };
  98. };
  99. };
  100. &eth0 {
  101. status = "okay";
  102. mtd-mac-address = <&art 0x1002>;
  103. gmac-config {
  104. device = <&gmac>;
  105. switch-phy-addr-swap = <0>;
  106. switch-phy-swap = <0>;
  107. };
  108. };
  109. &eth1 {
  110. status = "okay";
  111. compatible = "syscon", "simple-mfd";
  112. };
  113. &wmac {
  114. status = "okay";
  115. mtd-cal-data = <&art 0x1000>;
  116. mtd-mac-address = <&art 0x2>;
  117. };