2
0

DIR-620-D1.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. 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. keys {
  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. compatible = "denx,uimage";
  62. label = "firmware";
  63. reg = <0x50000 0x7b0000>;
  64. };
  65. };
  66. };
  67. };
  68. &pinctrl {
  69. state_default: pinctrl0 {
  70. gpio {
  71. ralink,group = "i2c", "jtag", "uartf";
  72. ralink,function = "gpio";
  73. };
  74. };
  75. };
  76. &ethernet {
  77. mtd-mac-address = <&factory 0x4>;
  78. pinctrl-names = "default";
  79. pinctrl-0 = <&rgmii_pins &mdio_pins>;
  80. };
  81. &esw {
  82. mediatek,portmap = <0x2f>;
  83. };
  84. &wmac {
  85. ralink,mtd-eeprom = <&factory 0>;
  86. };
  87. &ehci {
  88. status = "okay";
  89. };
  90. &ohci {
  91. status = "okay";
  92. };