1
0

ZBT-WA05.dts 2.0 KB

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