DIR-620-D1.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. gpio-leds {
  9. compatible = "gpio-leds";
  10. status {
  11. label = "dir-620-d1:green:status";
  12. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  13. };
  14. wifi {
  15. label = "dir-620-d1:green:wifi";
  16. gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
  17. };
  18. };
  19. gpio-keys-polled {
  20. compatible = "gpio-keys-polled";
  21. #address-cells = <1>;
  22. #size-cells = <0>;
  23. poll-interval = <20>;
  24. reset_wps {
  25. label = "reset_wps";
  26. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  27. linux,code = <KEY_RESTART>;
  28. };
  29. };
  30. };
  31. &spi0 {
  32. status = "okay";
  33. m25p80@0 {
  34. #address-cells = <1>;
  35. #size-cells = <1>;
  36. compatible = "jedec,spi-nor";
  37. reg = <0>;
  38. spi-max-frequency = <10000000>;
  39. partition@0 {
  40. label = "u-boot";
  41. reg = <0x0 0x30000>;
  42. read-only;
  43. };
  44. partition@30000 {
  45. label = "u-boot-env";
  46. reg = <0x30000 0x10000>;
  47. read-only;
  48. };
  49. factory: partition@40000 {
  50. label = "factory";
  51. reg = <0x40000 0x10000>;
  52. read-only;
  53. };
  54. partition@50000 {
  55. label = "firmware";
  56. reg = <0x50000 0x7b0000>;
  57. };
  58. };
  59. };
  60. &pinctrl {
  61. state_default: pinctrl0 {
  62. gpio {
  63. ralink,group = "i2c", "jtag", "uartf";
  64. ralink,function = "gpio";
  65. };
  66. };
  67. };
  68. &ethernet {
  69. mtd-mac-address = <&factory 0x4>;
  70. pinctrl-names = "default";
  71. pinctrl-0 = <&rgmii_pins &mdio_pins>;
  72. };
  73. &esw {
  74. mediatek,portmap = <0x2f>;
  75. };
  76. &wmac {
  77. ralink,mtd-eeprom = <&factory 0>;
  78. };
  79. &ehci {
  80. status = "okay";
  81. };
  82. &ohci {
  83. status = "okay";
  84. };