DIR-620-D1.dts 1.7 KB

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