DAP-1350.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. compatible = "denx,uimage";
  48. label = "firmware";
  49. reg = <0xb0000 0x750000>;
  50. };
  51. };
  52. };
  53. leds {
  54. compatible = "gpio-leds";
  55. led_power_blue: power {
  56. label = "dap-1350:blue:power";
  57. gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
  58. };
  59. power2 {
  60. label = "dap-1350:red:power";
  61. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  62. };
  63. wps {
  64. label = "dap-1350:blue:wps";
  65. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  66. };
  67. };
  68. keys {
  69. compatible = "gpio-keys-polled";
  70. poll-interval = <20>;
  71. reset {
  72. label = "reset";
  73. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  74. linux,code = <KEY_RESTART>;
  75. };
  76. wps {
  77. label = "wps";
  78. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  79. linux,code = <KEY_WPS_BUTTON>;
  80. };
  81. rt {
  82. label = "rt";
  83. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  84. linux,code = <BTN_0>;
  85. };
  86. ap {
  87. label = "ap";
  88. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  89. linux,code = <BTN_1>;
  90. };
  91. };
  92. };
  93. &pinctrl {
  94. state_default: pinctrl0 {
  95. gpio {
  96. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  97. ralink,function = "gpio";
  98. };
  99. };
  100. };
  101. &ethernet {
  102. mtd-mac-address = <&devdata 0x2e>;
  103. };
  104. &esw {
  105. mediatek,portmap = <0x2f>;
  106. };
  107. &wmac {
  108. ralink,mtd-eeprom = <&devdata 0>;
  109. };
  110. &otg {
  111. status = "okay";
  112. };