DAP-1350.dts 1.8 KB

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