DIR-620-A1.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. / {
  4. compatible = "DIR-620-A1", "ralink,rt3050-soc";
  5. model = "D-Link DIR-620 A1";
  6. cfi@1f000000 {
  7. compatible = "cfi-flash";
  8. reg = <0x1f000000 0x800000>;
  9. bank-width = <2>;
  10. device-width = <2>;
  11. #address-cells = <1>;
  12. #size-cells = <1>;
  13. partition@0 {
  14. label = "u-boot";
  15. reg = <0x0 0x30000>;
  16. read-only;
  17. };
  18. partition@30000 {
  19. label = "u-boot-env";
  20. reg = <0x30000 0x10000>;
  21. read-only;
  22. };
  23. factory: partition@40000 {
  24. label = "factory";
  25. reg = <0x40000 0x10000>;
  26. read-only;
  27. };
  28. partition@50000 {
  29. label = "firmware";
  30. reg = <0x50000 0x7b0000>;
  31. };
  32. };
  33. gpio-keys-polled {
  34. compatible = "gpio-keys-polled";
  35. #address-cells = <1>;
  36. #size-cells = <0>;
  37. poll-interval = <20>;
  38. reset {
  39. label = "reset";
  40. gpios = <&gpio0 10 1>;
  41. linux,code = <0x198>;
  42. };
  43. wps {
  44. label = "wps";
  45. gpios = <&gpio0 0 1>;
  46. linux,code = <0x211>;
  47. };
  48. };
  49. gpio-leds {
  50. compatible = "gpio-leds";
  51. status {
  52. label = "dir-620-a1:amber:status";
  53. gpios = <&gpio0 8 1>;
  54. };
  55. status2 {
  56. label = "dir-620-a1:green:status";
  57. gpios = <&gpio0 9 1>;
  58. };
  59. wan {
  60. label = "dir-620-a1:amber:wan";
  61. gpios = <&gpio0 14 1>;
  62. };
  63. wan2 {
  64. label = "dir-620-a1:green:wan";
  65. gpios = <&gpio0 12 1>;
  66. };
  67. wps {
  68. label = "dir-620-a1:blue:wps";
  69. gpios = <&gpio0 13 0>;
  70. };
  71. wps2 {
  72. label = "dir-620-a1:amber:wps";
  73. gpios = <&gpio0 11 0>;
  74. };
  75. };
  76. };
  77. &pinctrl {
  78. state_default: pinctrl0 {
  79. gpio {
  80. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  81. ralink,function = "gpio";
  82. };
  83. };
  84. };
  85. &ethernet {
  86. mtd-mac-address = <&factory 0x4>;
  87. };
  88. &esw {
  89. mediatek,portmap = <0x2f>;
  90. };
  91. &wmac {
  92. ralink,mtd-eeprom = <&factory 0>;
  93. };
  94. &otg {
  95. status = "okay";
  96. };