ar9331_embeddedwireless_dorin.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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 "ar9331.dtsi"
  6. / {
  7. model = "Embedded Wireless Dorin";
  8. compatible = "embeddedwireless,dorin", "qca,ar9331";
  9. aliases {
  10. led-boot = &status;
  11. led-failsafe = &status;
  12. led-running = &status;
  13. led-upgrade = &status;
  14. serial0 = &uart;
  15. };
  16. leds {
  17. compatible = "gpio-leds";
  18. status: status {
  19. label = "dorin:green:status";
  20. gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
  21. default-state = "off";
  22. };
  23. };
  24. keys {
  25. compatible = "gpio-keys-polled";
  26. poll-interval = <100>;
  27. wps {
  28. label = "wps";
  29. linux,code = <KEY_WPS_BUTTON>;
  30. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  31. };
  32. reset {
  33. label = "reset";
  34. linux,code = <KEY_RESTART>;
  35. gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
  36. };
  37. };
  38. };
  39. &uart {
  40. status = "okay";
  41. };
  42. &gpio {
  43. status = "okay";
  44. };
  45. &usb {
  46. dr_mode = "host";
  47. status = "okay";
  48. };
  49. &usb_phy {
  50. status = "okay";
  51. };
  52. &spi {
  53. num-chipselects = <1>;
  54. status = "okay";
  55. flash@0 {
  56. compatible = "jedec,spi-nor";
  57. spi-max-frequency = <104000000>;
  58. reg = <0>;
  59. partitions {
  60. compatible = "fixed-partitions";
  61. #address-cells = <1>;
  62. #size-cells = <1>;
  63. partition@0 {
  64. label = "u-boot";
  65. reg = <0x000000 0x040000>;
  66. read-only;
  67. };
  68. partition@1 {
  69. label = "u-boot-env";
  70. reg = <0x040000 0x010000>;
  71. };
  72. partition@2 {
  73. label = "firmware";
  74. reg = <0x050000 0xfa0000>;
  75. };
  76. art: partition@3 {
  77. label = "ART";
  78. reg = <0xff0000 0x010000>;
  79. read-only;
  80. };
  81. };
  82. };
  83. };
  84. &eth1 {
  85. status = "okay";
  86. mtd-mac-address = <&art 0x1002>;
  87. mtd-mac-address-increment-byte = <3>;
  88. mtd-mac-address-increment = <0x40>;
  89. };
  90. &mdio1 {
  91. status = "okay";
  92. };
  93. &wmac {
  94. status = "okay";
  95. mtd-cal-data = <&art 0x1000>;
  96. mtd-mac-address = <&art 0x1002>;
  97. };