DIR-320-B1.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "dlink,dir-320-b1", "ralink,rt5350-soc";
  7. model = "D-Link DIR-320 B1";
  8. gpio-leds {
  9. compatible = "gpio-leds";
  10. status {
  11. label = "dir-320-b1:green:status";
  12. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  13. };
  14. usb {
  15. label = "dir-320-b1:green:usb";
  16. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  17. };
  18. wps {
  19. label = "dir-320-b1:green:wps";
  20. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  21. };
  22. };
  23. gpio-keys-polled {
  24. compatible = "gpio-keys-polled";
  25. #address-cells = <1>;
  26. #size-cells = <0>;
  27. poll-interval = <20>;
  28. reset {
  29. label = "reset";
  30. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  31. linux,code = <KEY_RESTART>;
  32. };
  33. wps {
  34. label = "wps";
  35. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  36. linux,code = <KEY_WPS_BUTTON>;
  37. };
  38. };
  39. gpio_export {
  40. compatible = "gpio-export";
  41. #size-cells = <0>;
  42. usb {
  43. gpio-export,name = "usb";
  44. gpio-export,output = <1>;
  45. gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
  46. };
  47. root_hub {
  48. gpio-export,name = "root_hub";
  49. gpio-export,output = <1>;
  50. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  51. };
  52. };
  53. };
  54. &spi0 {
  55. status = "okay";
  56. m25p80@0 {
  57. #address-cells = <1>;
  58. #size-cells = <1>;
  59. compatible = "jedec,spi-nor";
  60. reg = <0>;
  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. };