1
0

DIR-620-D1.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /dts-v1/;
  2. #include "rt3352.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "dlink,dir-620-d1", "ralink,rt3352-soc";
  7. model = "D-Link DIR-620 D1";
  8. aliases {
  9. led-boot = &led_status;
  10. led-failsafe = &led_status;
  11. led-running = &led_status;
  12. led-upgrade = &led_status;
  13. };
  14. gpio-leds {
  15. compatible = "gpio-leds";
  16. led_status: status {
  17. label = "dir-620-d1:green:status";
  18. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  19. };
  20. wifi {
  21. label = "dir-620-d1:green:wifi";
  22. gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
  23. };
  24. };
  25. gpio-keys-polled {
  26. compatible = "gpio-keys-polled";
  27. poll-interval = <20>;
  28. reset_wps {
  29. label = "reset_wps";
  30. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  31. linux,code = <KEY_RESTART>;
  32. };
  33. };
  34. };
  35. &spi0 {
  36. status = "okay";
  37. m25p80@0 {
  38. compatible = "jedec,spi-nor";
  39. reg = <0>;
  40. spi-max-frequency = <10000000>;
  41. partitions {
  42. compatible = "fixed-partitions";
  43. #address-cells = <1>;
  44. #size-cells = <1>;
  45. partition@0 {
  46. label = "u-boot";
  47. reg = <0x0 0x30000>;
  48. read-only;
  49. };
  50. partition@30000 {
  51. label = "u-boot-env";
  52. reg = <0x30000 0x10000>;
  53. read-only;
  54. };
  55. factory: partition@40000 {
  56. label = "factory";
  57. reg = <0x40000 0x10000>;
  58. read-only;
  59. };
  60. partition@50000 {
  61. label = "firmware";
  62. reg = <0x50000 0x7b0000>;
  63. };
  64. };
  65. };
  66. };
  67. &pinctrl {
  68. state_default: pinctrl0 {
  69. gpio {
  70. ralink,group = "i2c", "jtag", "uartf";
  71. ralink,function = "gpio";
  72. };
  73. };
  74. };
  75. &ethernet {
  76. mtd-mac-address = <&factory 0x4>;
  77. pinctrl-names = "default";
  78. pinctrl-0 = <&rgmii_pins &mdio_pins>;
  79. };
  80. &esw {
  81. mediatek,portmap = <0x2f>;
  82. };
  83. &wmac {
  84. ralink,mtd-eeprom = <&factory 0>;
  85. };
  86. &ehci {
  87. status = "okay";
  88. };
  89. &ohci {
  90. status = "okay";
  91. };