ZBT-WE1226.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /dts-v1/;
  2. #include <dt-bindings/input/input.h>
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include "mt7628an.dtsi"
  5. / {
  6. compatible = "zbtlink,zbt-we1226", "mediatek,mt7628an-soc";
  7. model = "Zbtlink ZBT-WE1226";
  8. aliases {
  9. led-boot = &led_wlan;
  10. led-failsafe = &led_wlan;
  11. led-running = &led_wlan;
  12. led-upgrade = &led_wlan;
  13. };
  14. chosen {
  15. bootargs = "console=ttyS0,115200";
  16. };
  17. memory@0 {
  18. device_type = "memory";
  19. reg = <0x0 0x4000000>;
  20. };
  21. gpio-keys-polled {
  22. compatible = "gpio-keys-polled";
  23. poll-interval = <20>;
  24. reset {
  25. label = "reset";
  26. gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
  27. linux,code = <KEY_RESTART>;
  28. };
  29. };
  30. gpio-leds {
  31. compatible = "gpio-leds";
  32. wan {
  33. label = "zbt-we1226:green:wan";
  34. gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
  35. };
  36. lan1 {
  37. label = "zbt-we1226:green:lan1";
  38. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  39. };
  40. lan2 {
  41. label = "zbt-we1226:green:lan2";
  42. gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
  43. };
  44. led_wlan: wlan {
  45. label = "zbt-we1226:green:wlan";
  46. gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  47. };
  48. };
  49. };
  50. &pinctrl {
  51. state_default: pinctrl0 {
  52. gpio {
  53. ralink,group = "p0led_an", "p1led_an", "p4led_an", "wdt", "wled_an";
  54. ralink,function = "gpio";
  55. };
  56. };
  57. };
  58. &spi0 {
  59. status = "okay";
  60. m25p80@0 {
  61. compatible = "jedec,spi-nor";
  62. reg = <0>;
  63. spi-max-frequency = <10000000>;
  64. m25p,chunked-io = <32>;
  65. partitions {
  66. compatible = "fixed-partitions";
  67. #address-cells = <1>;
  68. #size-cells = <1>;
  69. partition@0 {
  70. label = "u-boot";
  71. reg = <0x0 0x30000>;
  72. read-only;
  73. };
  74. partition@30000 {
  75. label = "u-boot-env";
  76. reg = <0x30000 0x10000>;
  77. read-only;
  78. };
  79. factory: partition@40000 {
  80. label = "factory";
  81. reg = <0x40000 0x10000>;
  82. read-only;
  83. };
  84. partition@50000 {
  85. label = "firmware";
  86. reg = <0x50000 0x7b0000>;
  87. };
  88. };
  89. };
  90. };
  91. &wmac {
  92. status = "okay";
  93. ralink,mtd-eeprom = <&factory 0x4>;
  94. };
  95. &ethernet {
  96. mtd-mac-address = <&factory 0x2e>;
  97. mediatek,portmap = "llllw";
  98. };