DIR-615-H1.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. spi-max-frequency = <10000000>;
  55. partition@0 {
  56. label = "u-boot";
  57. reg = <0x0 0x30000>;
  58. read-only;
  59. };
  60. partition@30000 {
  61. label = "u-boot-env";
  62. reg = <0x30000 0x10000>;
  63. read-only;
  64. };
  65. factory: partition@40000 {
  66. label = "factory";
  67. reg = <0x40000 0x10000>;
  68. read-only;
  69. };
  70. partition@50000 {
  71. label = "firmware";
  72. reg = <0x50000 0x3b0000>;
  73. };
  74. };
  75. };
  76. &pinctrl {
  77. state_default: pinctrl0 {
  78. gpio {
  79. ralink,group = "i2c", "jtag", "uartf";
  80. ralink,function = "gpio";
  81. };
  82. rgmii {
  83. ralink,group = "rgmii";
  84. ralink,function = "rgmii";
  85. };
  86. mdio {
  87. ralink,group = "mdio";
  88. ralink,function = "mdio";
  89. };
  90. };
  91. };
  92. &ethernet {
  93. mtd-mac-address = <&factory 0x28>;
  94. };
  95. &esw {
  96. mediatek,portmap = <0x2f>;
  97. };
  98. &wmac {
  99. ralink,mtd-eeprom = <&factory 0>;
  100. };