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. };
  22. };
  23. keys {
  24. compatible = "gpio-keys-polled";
  25. poll-interval = <100>;
  26. wps {
  27. label = "wps";
  28. linux,code = <KEY_WPS_BUTTON>;
  29. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  30. };
  31. reset {
  32. label = "reset";
  33. linux,code = <KEY_RESTART>;
  34. gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
  35. };
  36. };
  37. };
  38. &uart {
  39. status = "okay";
  40. };
  41. &gpio {
  42. status = "okay";
  43. };
  44. &usb {
  45. dr_mode = "host";
  46. status = "okay";
  47. };
  48. &usb_phy {
  49. status = "okay";
  50. };
  51. &spi {
  52. num-chipselects = <1>;
  53. status = "okay";
  54. flash@0 {
  55. compatible = "jedec,spi-nor";
  56. spi-max-frequency = <104000000>;
  57. reg = <0>;
  58. partitions {
  59. compatible = "fixed-partitions";
  60. #address-cells = <1>;
  61. #size-cells = <1>;
  62. partition@0 {
  63. label = "u-boot";
  64. reg = <0x000000 0x040000>;
  65. read-only;
  66. };
  67. partition@1 {
  68. label = "u-boot-env";
  69. reg = <0x040000 0x010000>;
  70. };
  71. partition@2 {
  72. compatible = "denx,uimage";
  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. };