DAP-1350.dts 2.2 KB

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