1
0

ZBT-WE826.dtsi 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #include "mt7620a.dtsi"
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "zbtlink,zbt-we826", "ralink,mt7620a-soc";
  6. aliases {
  7. led-boot = &led_power;
  8. led-failsafe = &led_power;
  9. led-running = &led_power;
  10. led-upgrade = &led_power;
  11. };
  12. chosen {
  13. bootargs = "console=ttyS0,115200";
  14. };
  15. gpio-leds {
  16. compatible = "gpio-leds";
  17. led_power: power {
  18. label = "zbt-we826:green:power";
  19. gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
  20. };
  21. usb {
  22. label = "zbt-we826:green:usb";
  23. gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
  24. trigger-sources = <&ohci_port1>, <&ehci_port1>;
  25. linux,default-trigger = "usbport";
  26. };
  27. air {
  28. label = "zbt-we826:green:wifi";
  29. gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
  30. };
  31. };
  32. gpio-keys-polled {
  33. compatible = "gpio-keys-polled";
  34. poll-interval = <20>;
  35. reset {
  36. label = "reset";
  37. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  38. linux,code = <KEY_RESTART>;
  39. };
  40. };
  41. };
  42. &gpio0 {
  43. status = "okay";
  44. };
  45. &gpio1 {
  46. status = "okay";
  47. };
  48. &gpio3 {
  49. status = "okay";
  50. };
  51. &sdhci {
  52. status = "okay";
  53. };
  54. &ehci {
  55. status = "okay";
  56. };
  57. &ohci {
  58. status = "okay";
  59. };
  60. &ethernet {
  61. mtd-mac-address = <&factory 0x4>;
  62. mediatek,portmap = "wllll";
  63. };
  64. &wmac {
  65. ralink,mtd-eeprom = <&factory 0>;
  66. };
  67. &pinctrl {
  68. state_default: pinctrl0 {
  69. default {
  70. ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa";
  71. ralink,function = "gpio";
  72. };
  73. };
  74. };
  75. &pcie {
  76. status = "okay";
  77. };