ZBT-WE826.dts 1.7 KB

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