2
0

DIR-320-B1.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "DIR-320-B1", "ralink,rt5350-soc";
  6. model = "D-Link DIR-320 B1";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. status {
  10. label = "dir-320-b1:green:status";
  11. gpios = <&gpio0 9 1>;
  12. };
  13. usb {
  14. label = "dir-320-b1:green:usb";
  15. gpios = <&gpio0 14 1>;
  16. };
  17. wps {
  18. label = "dir-320-b1:green:wps";
  19. gpios = <&gpio0 13 1>;
  20. };
  21. };
  22. gpio-keys-polled {
  23. compatible = "gpio-keys-polled";
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. poll-interval = <20>;
  27. reset {
  28. label = "reset";
  29. gpios = <&gpio0 10 1>;
  30. linux,code = <KEY_RESTART>;
  31. };
  32. wps {
  33. label = "wps";
  34. gpios = <&gpio0 0 1>;
  35. linux,code = <KEY_WPS_BUTTON>;
  36. };
  37. };
  38. gpio_export {
  39. compatible = "gpio-export";
  40. #size-cells = <0>;
  41. usb {
  42. gpio-export,name = "usb";
  43. gpio-export,output = <1>;
  44. gpios = <&gpio0 7 0>;
  45. };
  46. root_hub {
  47. gpio-export,name = "root_hub";
  48. gpio-export,output = <1>;
  49. gpios = <&gpio0 12 0>;
  50. };
  51. };
  52. };
  53. &spi0 {
  54. status = "okay";
  55. m25p80@0 {
  56. #address-cells = <1>;
  57. #size-cells = <1>;
  58. compatible = "jedec,spi-nor";
  59. reg = <0>;
  60. spi-max-frequency = <10000000>;
  61. partition@0 {
  62. label = "u-boot";
  63. reg = <0x0 0x30000>;
  64. read-only;
  65. };
  66. partition@30000 {
  67. label = "u-boot-env";
  68. reg = <0x30000 0x10000>;
  69. read-only;
  70. };
  71. factory: partition@40000 {
  72. label = "factory";
  73. reg = <0x40000 0x10000>;
  74. read-only;
  75. };
  76. partition@50000 {
  77. label = "firmware";
  78. reg = <0x50000 0x7b0000>;
  79. };
  80. };
  81. };
  82. &pinctrl {
  83. state_default: pinctrl0 {
  84. gpio {
  85. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  86. ralink,function = "gpio";
  87. };
  88. };
  89. };
  90. &ethernet {
  91. mtd-mac-address = <&factory 0x4>;
  92. };
  93. &esw {
  94. mediatek,portmap = <0x2f>;
  95. mediatek,led_polarity = <0x17>;
  96. };
  97. &wmac {
  98. ralink,mtd-eeprom = <&factory 0>;
  99. };
  100. &ehci {
  101. status = "okay";
  102. };
  103. &ohci {
  104. status = "okay";
  105. };