2
0

DIR-615-H1.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. /dts-v1/;
  2. #include "rt3352.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "DIR-615-H1", "ralink,rt3352-soc";
  6. model = "D-Link DIR-615 H1";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. status {
  10. label = "dir-615-h1:amber:status";
  11. gpios = <&gpio0 7 0>;
  12. };
  13. status2 {
  14. label = "dir-615-h1:green:status";
  15. gpios = <&gpio0 9 0>;
  16. };
  17. wan {
  18. label = "dir-615-h1:amber:wan";
  19. gpios = <&gpio0 12 1>;
  20. };
  21. wan2 {
  22. label = "dir-615-h1:green:wan";
  23. gpios = <&gpio0 13 1>;
  24. };
  25. wps {
  26. label = "dir-615-h1:blue:wps";
  27. gpios = <&gpio0 14 1>;
  28. };
  29. };
  30. gpio-keys-polled {
  31. compatible = "gpio-keys-polled";
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. poll-interval = <20>;
  35. reset {
  36. label = "reset";
  37. gpios = <&gpio0 10 1>;
  38. linux,code = <KEY_RESTART>;
  39. };
  40. wps {
  41. label = "wps";
  42. gpios = <&gpio0 0 1>;
  43. linux,code = <KEY_WPS_BUTTON>;
  44. };
  45. };
  46. };
  47. &spi0 {
  48. status = "okay";
  49. m25p80@0 {
  50. #address-cells = <1>;
  51. #size-cells = <1>;
  52. compatible = "jedec,spi-nor";
  53. reg = <0>;
  54. linux,modalias = "m25p80", "mx25l3205d";
  55. spi-max-frequency = <10000000>;
  56. partition@0 {
  57. label = "u-boot";
  58. reg = <0x0 0x30000>;
  59. read-only;
  60. };
  61. partition@30000 {
  62. label = "u-boot-env";
  63. reg = <0x30000 0x10000>;
  64. read-only;
  65. };
  66. factory: partition@40000 {
  67. label = "factory";
  68. reg = <0x40000 0x10000>;
  69. read-only;
  70. };
  71. partition@50000 {
  72. label = "firmware";
  73. reg = <0x50000 0x3b0000>;
  74. };
  75. };
  76. };
  77. &pinctrl {
  78. state_default: pinctrl0 {
  79. gpio {
  80. ralink,group = "i2c", "jtag", "uartf";
  81. ralink,function = "gpio";
  82. };
  83. rgmii {
  84. ralink,group = "rgmii";
  85. ralink,function = "rgmii";
  86. };
  87. mdio {
  88. ralink,group = "mdio";
  89. ralink,function = "mdio";
  90. };
  91. };
  92. };
  93. &ethernet {
  94. mtd-mac-address = <&factory 0x28>;
  95. };
  96. &esw {
  97. mediatek,portmap = <0x2f>;
  98. };
  99. &wmac {
  100. ralink,mtd-eeprom = <&factory 0>;
  101. };