DIR-615-H1.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /dts-v1/;
  2. #include "rt3352.dtsi"
  3. / {
  4. compatible = "DIR-615-H1", "ralink,rt3352-soc";
  5. model = "D-Link DIR-615 H1";
  6. gpio-leds {
  7. compatible = "gpio-leds";
  8. status {
  9. label = "dir-615-h1:amber:status";
  10. gpios = <&gpio0 7 0>;
  11. };
  12. status2 {
  13. label = "dir-615-h1:green:status";
  14. gpios = <&gpio0 9 0>;
  15. };
  16. wan {
  17. label = "dir-615-h1:amber:wan";
  18. gpios = <&gpio0 12 1>;
  19. };
  20. wan2 {
  21. label = "dir-615-h1:green:wan";
  22. gpios = <&gpio0 13 1>;
  23. };
  24. wps {
  25. label = "dir-615-h1:blue:wps";
  26. gpios = <&gpio0 14 1>;
  27. };
  28. };
  29. gpio-keys-polled {
  30. compatible = "gpio-keys-polled";
  31. #address-cells = <1>;
  32. #size-cells = <0>;
  33. poll-interval = <20>;
  34. reset {
  35. label = "reset";
  36. gpios = <&gpio0 10 1>;
  37. linux,code = <0x198>;
  38. };
  39. wps {
  40. label = "wps";
  41. gpios = <&gpio0 0 1>;
  42. linux,code = <0x211>;
  43. };
  44. };
  45. };
  46. &spi0 {
  47. status = "okay";
  48. m25p80@0 {
  49. #address-cells = <1>;
  50. #size-cells = <1>;
  51. compatible = "jedec,spi-nor";
  52. reg = <0>;
  53. linux,modalias = "m25p80", "mx25l3205d";
  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. };