DIR-320-B1.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. linux,modalias = "m25p80", "s25fl064k";
  61. spi-max-frequency = <10000000>;
  62. partition@0 {
  63. label = "u-boot";
  64. reg = <0x0 0x30000>;
  65. read-only;
  66. };
  67. partition@30000 {
  68. label = "u-boot-env";
  69. reg = <0x30000 0x10000>;
  70. read-only;
  71. };
  72. factory: partition@40000 {
  73. label = "factory";
  74. reg = <0x40000 0x10000>;
  75. read-only;
  76. };
  77. partition@50000 {
  78. label = "firmware";
  79. reg = <0x50000 0x7b0000>;
  80. };
  81. };
  82. };
  83. &pinctrl {
  84. state_default: pinctrl0 {
  85. gpio {
  86. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  87. ralink,function = "gpio";
  88. };
  89. };
  90. };
  91. &ethernet {
  92. mtd-mac-address = <&factory 0x4>;
  93. };
  94. &esw {
  95. mediatek,portmap = <0x2f>;
  96. mediatek,led_polarity = <0x17>;
  97. };
  98. &wmac {
  99. ralink,mtd-eeprom = <&factory 0>;
  100. };
  101. &ehci {
  102. status = "okay";
  103. };
  104. &ohci {
  105. status = "okay";
  106. };