1
0

DAP-1350.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "DAP-1350", "ralink,rt3052-soc";
  6. model = "D-Link DAP-1350";
  7. chosen {
  8. bootargs = "console=ttyS0,115200";
  9. };
  10. cfi@1f000000 {
  11. compatible = "cfi-flash";
  12. reg = <0x1f000000 0x800000>;
  13. bank-width = <2>;
  14. device-width = <2>;
  15. #address-cells = <1>;
  16. #size-cells = <1>;
  17. partition@0 {
  18. label = "u-boot";
  19. reg = <0x0 0x30000>;
  20. read-only;
  21. };
  22. devdata: partition@30000 {
  23. label = "devdata";
  24. reg = <0x30000 0x10000>;
  25. read-only;
  26. };
  27. partition@40000 {
  28. label = "devconf";
  29. reg = <0x40000 0x30000>;
  30. read-only;
  31. };
  32. partition@70000 {
  33. label = "devlang";
  34. reg = <0x70000 0x40000>;
  35. read-only;
  36. };
  37. partition@b0000 {
  38. label = "firmware";
  39. reg = <0xb0000 0x750000>;
  40. };
  41. };
  42. gpio-leds {
  43. compatible = "gpio-leds";
  44. power {
  45. label = "dap-1350:blue:power";
  46. gpios = <&gpio0 8 1>;
  47. };
  48. power2 {
  49. label = "dap-1350:red:power";
  50. gpios = <&gpio0 9 1>;
  51. };
  52. wps {
  53. label = "dap-1350:blue:wps";
  54. gpios = <&gpio0 14 1>;
  55. };
  56. };
  57. gpio-keys-polled {
  58. compatible = "gpio-keys-polled";
  59. #address-cells = <1>;
  60. #size-cells = <0>;
  61. poll-interval = <20>;
  62. reset {
  63. label = "reset";
  64. gpios = <&gpio0 10 1>;
  65. linux,code = <KEY_RESTART>;
  66. };
  67. wps {
  68. label = "wps";
  69. gpios = <&gpio0 0 1>;
  70. linux,code = <KEY_WPS_BUTTON>;
  71. };
  72. rt {
  73. label = "rt";
  74. gpios = <&gpio0 11 1>;
  75. linux,code = <BTN_0>;
  76. };
  77. ap {
  78. label = "ap";
  79. gpios = <&gpio0 7 1>;
  80. linux,code = <BTN_1>;
  81. };
  82. };
  83. };
  84. &pinctrl {
  85. state_default: pinctrl0 {
  86. gpio {
  87. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  88. ralink,function = "gpio";
  89. };
  90. };
  91. };
  92. &ethernet {
  93. mtd-mac-address = <&devdata 0x2e>;
  94. };
  95. &esw {
  96. mediatek,portmap = <0x2f>;
  97. };
  98. &wmac {
  99. ralink,mtd-eeprom = <&devdata 0>;
  100. };
  101. &otg {
  102. status = "okay";
  103. };