2
0

DIR-615-D.dts 1.6 KB

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