EW1200.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. model = "EW1200";
  7. memory@0 {
  8. device_type = "memory";
  9. reg = <0x0 0x8000000>;
  10. };
  11. chosen {
  12. bootargs = "console=ttyS0,57600";
  13. };
  14. palmbus: palmbus@1E000000 {
  15. i2c@900 {
  16. status = "okay";
  17. };
  18. };
  19. gpio-keys-polled {
  20. compatible = "gpio-keys-polled";
  21. #address-cells = <1>;
  22. #size-cells = <0>;
  23. poll-interval = <20>;
  24. reset {
  25. label = "reset";
  26. gpios = <&gpio0 18 1>;
  27. linux,code = <KEY_RESTART>;
  28. };
  29. };
  30. gpio-leds {
  31. compatible = "gpio-leds";
  32. status {
  33. label = "ew1200:green:run";
  34. gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
  35. };
  36. usb {
  37. label = "ew1200:green:usb";
  38. gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
  39. };
  40. };
  41. };
  42. &sdhci {
  43. status = "okay";
  44. };
  45. &spi0 {
  46. status = "okay";
  47. m25p80@0 {
  48. #address-cells = <1>;
  49. #size-cells = <1>;
  50. compatible = "jedec,spi-nor";
  51. reg = <0>;
  52. spi-max-frequency = <10000000>;
  53. m25p,chunked-io = <32>;
  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. &pcie {
  76. status = "okay";
  77. pcie0 {
  78. mt76@0,0 {
  79. reg = <0x0000 0 0 0 0>;
  80. device_type = "pci";
  81. mediatek,mtd-eeprom = <&factory 0x8000>;
  82. ieee80211-freq-limit = <5000000 6000000>;
  83. };
  84. };
  85. pcie1 {
  86. mt76@1,0 {
  87. reg = <0x0000 0 0 0 0>;
  88. device_type = "pci";
  89. mediatek,mtd-eeprom = <&factory 0x0000>;
  90. ieee80211-freq-limit = <2400000 2500000>;
  91. };
  92. };
  93. };
  94. &ethernet {
  95. mtd-mac-address = <&factory 0xe000>;
  96. };
  97. &pinctrl {
  98. state_default: pinctrl0 {
  99. gpio {
  100. ralink,group = "wdt", "rgmii2", "wdt rst", "jtag", "mdio";
  101. ralink,function = "gpio";
  102. };
  103. };
  104. };