1
0

DIR-615-D.dts 2.0 KB

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