ZBT-WE826.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "zbtlink,zbt-we826", "ralink,mt7620a-soc";
  6. model = "ZBT-WE826";
  7. chosen {
  8. bootargs = "console=ttyS0,115200";
  9. };
  10. gpio-leds {
  11. compatible = "gpio-leds";
  12. power {
  13. label = "zbt-we826:green:power";
  14. gpios = <&gpio1 14 0>;
  15. };
  16. usb {
  17. label = "zbt-we826:green:usb";
  18. gpios = <&gpio1 15 0>;
  19. };
  20. air {
  21. label = "zbt-we826:green:wifi";
  22. gpios = <&gpio3 0 1>;
  23. };
  24. };
  25. gpio-keys-polled {
  26. compatible = "gpio-keys-polled";
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. poll-interval = <20>;
  30. reset {
  31. label = "reset";
  32. gpios = <&gpio0 1 1>;
  33. linux,code = <KEY_RESTART>;
  34. };
  35. };
  36. };
  37. &gpio0 {
  38. status = "okay";
  39. };
  40. &gpio1 {
  41. status = "okay";
  42. };
  43. &gpio3 {
  44. status = "okay";
  45. };
  46. &spi0 {
  47. status = "okay";
  48. en25q128@0 {
  49. #address-cells = <1>;
  50. #size-cells = <1>;
  51. compatible = "w25q128";
  52. reg = <0>;
  53. linux,modalias = "m25p80";
  54. spi-max-frequency = <10000000>;
  55. partition@0 {
  56. label = "u-boot";
  57. reg = <0x0 0x30000>;
  58. read-only;
  59. };
  60. partition@30000 {
  61. label = "u-boot-env";
  62. reg = <0x30000 0x10000>;
  63. read-only;
  64. };
  65. factory: partition@40000 {
  66. label = "factory";
  67. reg = <0x40000 0x10000>;
  68. read-only;
  69. };
  70. partition@50000 {
  71. label = "firmware";
  72. reg = <0x50000 0xfb0000>;
  73. };
  74. };
  75. };
  76. &sdhci {
  77. status = "okay";
  78. };
  79. &ehci {
  80. status = "okay";
  81. };
  82. &ohci {
  83. status = "okay";
  84. };
  85. &ethernet {
  86. mtd-mac-address = <&factory 0x4>;
  87. ralink,port-map = "wllll";
  88. };
  89. &wmac {
  90. ralink,mtd-eeprom = <&factory 0>;
  91. };
  92. &pinctrl {
  93. state_default: pinctrl0 {
  94. default {
  95. ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa";
  96. ralink,function = "gpio";
  97. };
  98. };
  99. };
  100. &pcie {
  101. status = "okay";
  102. };