1
0

DWR-116-A1.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /dts-v1/;
  2. #include "mt7620n.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "dlink,dwr-116-a1", "ralink,mt7620n-soc";
  7. model = "D-Link DWR-116 A1/A2";
  8. aliases {
  9. led-boot = &led_status;
  10. led-failsafe = &led_status;
  11. led-running = &led_status;
  12. led-upgrade = &led_status;
  13. };
  14. gpio-keys-polled {
  15. compatible = "gpio-keys-polled";
  16. poll-interval = <20>;
  17. wps {
  18. label = "wps";
  19. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  20. linux,code = <KEY_WPS_BUTTON>;
  21. };
  22. reset {
  23. label = "reset";
  24. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  25. linux,code = <KEY_RESTART>;
  26. };
  27. };
  28. gpio-leds {
  29. compatible = "gpio-leds";
  30. led_status: status {
  31. label = "dwr-116-a1:green:status";
  32. gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
  33. };
  34. wifi {
  35. label = "dwr-116-a1:green:wifi";
  36. gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
  37. };
  38. };
  39. };
  40. &gpio1 {
  41. status = "okay";
  42. };
  43. &gpio3 {
  44. status = "okay";
  45. };
  46. &spi0 {
  47. status = "okay";
  48. m25p80@0 {
  49. compatible = "jedec,spi-nor";
  50. reg = <0>;
  51. spi-max-frequency = <50000000>;
  52. partitions {
  53. compatible = "fixed-partitions";
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. partition@0 {
  57. label = "jboot";
  58. reg = <0x0 0x10000>;
  59. read-only;
  60. };
  61. partition@10000 {
  62. label = "firmware";
  63. reg = <0x10000 0x7e0000>;
  64. };
  65. config: partition@7f0000 {
  66. label = "config";
  67. reg = <0x7f0000 0x10000>;
  68. read-only;
  69. };
  70. };
  71. };
  72. };
  73. &ehci {
  74. status = "okay";
  75. };
  76. &ohci {
  77. status = "okay";
  78. };
  79. &pinctrl {
  80. state_default: pinctrl0 {
  81. default {
  82. ralink,group = "i2c", "wled";
  83. ralink,function = "gpio";
  84. };
  85. };
  86. };
  87. &ethernet {
  88. mediatek,portmap = "llllw";
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&ephy_pins>;
  91. };