DAP-1522-A1.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /dts-v1/;
  2. #include "rt2880.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "dlink,dap-1522-a1", "ralink,rt2880-soc";
  7. model = "D-Link DAP-1522 A1";
  8. aliases {
  9. led-boot = &led_status;
  10. led-failsafe = &led_status;
  11. led-running = &led_status;
  12. led-upgrade = &led_status;
  13. };
  14. cfi@bc400000 {
  15. compatible = "cfi-flash";
  16. reg = <0xbc400000 0x800000>;
  17. bank-width = <2>;
  18. device-width = <2>;
  19. partitions {
  20. compatible = "fixed-partitions";
  21. #address-cells = <1>;
  22. #size-cells = <1>;
  23. partition@0 {
  24. label = "uboot";
  25. reg = <0x0 0x30000>;
  26. read-only;
  27. };
  28. factory: partition@30000 {
  29. label = "factory";
  30. reg = <0x30000 0x10000>;
  31. read-only;
  32. };
  33. partition@40000 {
  34. label = "firmware";
  35. reg = <0x40000 0x3a0000>;
  36. };
  37. };
  38. };
  39. rtl8366s {
  40. compatible = "realtek,rtl8366s";
  41. gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  42. gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
  43. };
  44. gpio-keys-polled {
  45. compatible = "gpio-keys-polled";
  46. poll-interval = <100>;
  47. reset {
  48. label = "reset";
  49. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  50. linux,code = <KEY_RESTART>;
  51. };
  52. wps {
  53. label = "wps";
  54. gpios = <&gpio2 16 GPIO_ACTIVE_LOW>;
  55. linux,code = <KEY_WPS_BUTTON>;
  56. };
  57. ap {
  58. label = "ap";
  59. gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
  60. linux,code = <BTN_0>;
  61. linux,input-type = <EV_SW>;
  62. };
  63. bridge {
  64. label = "bridge";
  65. gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
  66. linux,code = <BTN_1>;
  67. linux,input-type = <EV_SW>;
  68. };
  69. };
  70. gpio-leds {
  71. compatible = "gpio-leds";
  72. wps {
  73. label = "dap-1522-a1:blue:wps";
  74. gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
  75. };
  76. ap {
  77. label = "dap-1522-a1:blue:ap";
  78. gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
  79. };
  80. sta {
  81. label = "dap-1522-a1:red:sta";
  82. gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
  83. };
  84. led_status: status {
  85. label = "dap-1522-a1:blue:status";
  86. gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
  87. };
  88. };
  89. };
  90. &gpio0 {
  91. status = "okay";
  92. };
  93. &gpio2 {
  94. status = "okay";
  95. };
  96. &pinctrl {
  97. state_default: pinctrl0 {
  98. gpio {
  99. ralink,group = "i2c", "uartlite", "pci";
  100. ralink,function = "gpio";
  101. };
  102. };
  103. };
  104. &ethernet {
  105. status = "okay";
  106. mtd-mac-address = <&factory 0x2004>;
  107. port@0 {
  108. mediatek,fixed-link = <1000 1 1 1>;
  109. };
  110. mdio-bus {
  111. status = "okay";
  112. phy0: ethernet-phy@0 {
  113. phy-mode = "mii";
  114. reg = <0>;
  115. };
  116. };
  117. };
  118. &wmac {
  119. ralink,mtd-eeprom = <&factory 0x2000>;
  120. };