DIR-620-A1.dts 1.8 KB

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