DAP-1350.dts 1.8 KB

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