ZBT-WE3526.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "zbtlink,zbt-we3526", "mediatek,mt7621-soc";
  7. model = "ZBT-WE3526";
  8. memory@0 {
  9. device_type = "memory";
  10. reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
  11. };
  12. chosen {
  13. bootargs = "console=ttyS0,115200";
  14. };
  15. palmbus: palmbus@1E000000 {
  16. i2c@900 {
  17. status = "okay";
  18. };
  19. };
  20. gpio-keys-polled {
  21. compatible = "gpio-keys-polled";
  22. poll-interval = <20>;
  23. reset {
  24. label = "reset";
  25. gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
  26. linux,code = <KEY_RESTART>;
  27. };
  28. };
  29. };
  30. &sdhci {
  31. status = "okay";
  32. };
  33. &spi0 {
  34. status = "okay";
  35. m25p80@0 {
  36. compatible = "jedec,spi-nor";
  37. reg = <0>;
  38. spi-max-frequency = <10000000>;
  39. m25p,chunked-io = <32>;
  40. partitions {
  41. compatible = "fixed-partitions";
  42. #address-cells = <1>;
  43. #size-cells = <1>;
  44. partition@0 {
  45. label = "u-boot";
  46. reg = <0x0 0x30000>;
  47. read-only;
  48. };
  49. partition@30000 {
  50. label = "u-boot-env";
  51. reg = <0x30000 0x10000>;
  52. read-only;
  53. };
  54. factory: partition@40000 {
  55. label = "factory";
  56. reg = <0x40000 0x10000>;
  57. read-only;
  58. };
  59. firmware: partition@50000 {
  60. label = "firmware";
  61. reg = <0x50000 0xfb0000>;
  62. };
  63. };
  64. };
  65. };
  66. &pcie {
  67. status = "okay";
  68. };
  69. &pcie0 {
  70. wifi@0,0 {
  71. compatible = "pci14c3,7662";
  72. reg = <0x0000 0 0 0 0>;
  73. mediatek,mtd-eeprom = <&factory 0x8000>;
  74. ieee80211-freq-limit = <5000000 6000000>;
  75. led {
  76. led-sources = <2>;
  77. };
  78. };
  79. };
  80. &pcie1 {
  81. wifi@0,0 {
  82. compatible = "pci14c3,7603";
  83. reg = <0x0000 0 0 0 0>;
  84. mediatek,mtd-eeprom = <&factory 0x0000>;
  85. };
  86. };
  87. &ethernet {
  88. mtd-mac-address = <&factory 0xe000>;
  89. };
  90. &pinctrl {
  91. state_default: pinctrl0 {
  92. gpio {
  93. ralink,group = "wdt";
  94. ralink,function = "gpio";
  95. };
  96. };
  97. };