1
0

WD03.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "ravpower,wd03", "ralink,mt7620n-soc";
  7. model = "Ravpower WD03";
  8. chosen {
  9. bootargs = "console=ttyS0,115200";
  10. };
  11. gpio-leds {
  12. compatible = "gpio-leds";
  13. green-wifi {
  14. label = "wd03:green:wifi";
  15. gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
  16. };
  17. blue-wifi {
  18. label = "wd03:blue:wifi";
  19. gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
  20. };
  21. };
  22. gpio-keys-polled {
  23. compatible = "gpio-keys-polled";
  24. poll-interval = <20>;
  25. reset {
  26. label = "reset";
  27. gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
  28. linux,code = <KEY_RESTART>;
  29. };
  30. };
  31. };
  32. &gpio2 {
  33. status = "okay";
  34. };
  35. &gpio3 {
  36. status = "okay";
  37. };
  38. &i2c {
  39. status = "okay";
  40. };
  41. &spi0 {
  42. status = "okay";
  43. m25p80@0 {
  44. compatible = "jedec,spi-nor";
  45. reg = <0>;
  46. spi-max-frequency = <10000000>;
  47. partitions {
  48. compatible = "fixed-partitions";
  49. #address-cells = <1>;
  50. #size-cells = <1>;
  51. partition@0 {
  52. label = "u-boot";
  53. reg = <0x0 0x30000>;
  54. read-only;
  55. };
  56. partition@30000 {
  57. label = "u-boot-env";
  58. reg = <0x30000 0x10000>;
  59. read-only;
  60. };
  61. factory: partition@40000 {
  62. label = "factory";
  63. reg = <0x40000 0x10000>;
  64. read-only;
  65. };
  66. partition@50000 {
  67. label = "firmware";
  68. reg = <0x50000 0x7b0000>;
  69. };
  70. };
  71. };
  72. };
  73. &ehci {
  74. status = "okay";
  75. };
  76. &ohci {
  77. status = "okay";
  78. };
  79. &ethernet {
  80. mtd-mac-address = <&factory 0x4000>;
  81. ralink,port-map = "wllll";
  82. };
  83. &wmac {
  84. ralink,mtd-eeprom = <&factory 0>;
  85. };
  86. &pinctrl {
  87. state_default: pinctrl0 {
  88. gpio {
  89. ralink,group = "wled", "ephy";
  90. ralink,function = "gpio";
  91. };
  92. };
  93. };