DIR-610-A1.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "DIR-610-A1", "ralink,rt5350-soc";
  6. model = "D-Link DIR-610 A1";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. status {
  10. label = "dir-610-a1:green:status";
  11. gpios = <&gpio0 9 1>;
  12. };
  13. wps {
  14. label = "dir-610-a1:green:wps";
  15. gpios = <&gpio0 13 1>;
  16. };
  17. };
  18. gpio-keys-polled {
  19. compatible = "gpio-keys-polled";
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. poll-interval = <20>;
  23. reset {
  24. label = "reset";
  25. gpios = <&gpio0 10 1>;
  26. linux,code = <KEY_RESTART>;
  27. };
  28. wps {
  29. label = "wps";
  30. gpios = <&gpio0 0 1>;
  31. linux,code = <KEY_WPS_BUTTON>;
  32. };
  33. };
  34. };
  35. &spi0 {
  36. status = "okay";
  37. m25p80@0 {
  38. #address-cells = <1>;
  39. #size-cells = <1>;
  40. compatible = "jedec,spi-nor";
  41. reg = <0>;
  42. spi-max-frequency = <10000000>;
  43. partition@0 {
  44. label = "u-boot";
  45. reg = <0x0 0x30000>;
  46. read-only;
  47. };
  48. devdata: partition@30000 {
  49. label = "devdata";
  50. reg = <0x30000 0x10000>;
  51. read-only;
  52. };
  53. factory: partition@40000 {
  54. label = "factory";
  55. reg = <0x40000 0x10000>;
  56. read-only;
  57. };
  58. partition@50000 {
  59. label = "firmware";
  60. reg = <0x50000 0x3b0000>;
  61. };
  62. };
  63. };
  64. &pinctrl {
  65. state_default: pinctrl0 {
  66. gpio {
  67. ralink,group = "i2c", "jtag", "uartf";
  68. ralink,function = "gpio";
  69. };
  70. };
  71. };
  72. &ethernet {
  73. mtd-mac-address = <&devdata 0x4004>;
  74. };
  75. &esw {
  76. status = "okay";
  77. mediatek,portmap = <0x2f>;
  78. mediatek,led_polarity = <0x17>;
  79. };
  80. &wmac {
  81. status = "okay";
  82. ralink,led-polarity = <1>;
  83. ralink,mtd-eeprom = <&devdata 0x4000>;
  84. };