ar9331_ew_dorin.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. // SPDX-License-Identifier: GPL-2.0
  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";
  9. aliases {
  10. serial0 = &uart;
  11. };
  12. memory@0 {
  13. device_type = "memory";
  14. reg = <0x0 0x4000000>;
  15. };
  16. leds {
  17. compatible = "gpio-leds";
  18. 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. #address-cells = <1>;
  27. #size-cells = <0>;
  28. poll-interval = <100>;
  29. wps {
  30. label = "wps";
  31. linux,code = <KEY_WPS_BUTTON>;
  32. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  33. };
  34. reset {
  35. label = "reset";
  36. linux,code = <KEY_RESTART>;
  37. gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
  38. };
  39. };
  40. };
  41. &uart {
  42. status = "okay";
  43. };
  44. &gpio {
  45. status = "okay";
  46. };
  47. &usb {
  48. dr_mode = "host";
  49. status = "okay";
  50. };
  51. &usb_phy {
  52. status = "okay";
  53. };
  54. &spi {
  55. num-chipselects = <1>;
  56. status = "okay";
  57. spiflash {
  58. #address-cells = <1>;
  59. #size-cells = <1>;
  60. compatible = "jedec,spi-nor";
  61. spi-max-frequency = <104000000>;
  62. reg = <0>;
  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. &eth1 {
  84. status = "okay";
  85. mtd-mac-address = <&art 0x1002>;
  86. fixed-link {
  87. speed = <1000>;
  88. full-duplex;
  89. };
  90. gmac-config {
  91. device = <&gmac>;
  92. switch-phy-addr-swap = <1>;
  93. switch-phy-swap = <1>;
  94. };
  95. };
  96. &mdio1 {
  97. status = "okay";
  98. };