1
0

ASL26555.dtsi 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. #include "rt3050.dtsi"
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "alphanetworks,asl26555", "ralink,rt3050-soc";
  6. aliases {
  7. led-boot = &led_power_green;
  8. led-failsafe = &led_power_green;
  9. led-running = &led_power_green;
  10. led-upgrade = &led_power_green;
  11. };
  12. gpio-keys-polled {
  13. compatible = "gpio-keys-polled";
  14. poll-interval = <20>;
  15. reset {
  16. label = "reset";
  17. gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
  18. linux,code = <KEY_RESTART>;
  19. };
  20. wps {
  21. label = "wps";
  22. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  23. linux,code = <KEY_WPS_BUTTON>;
  24. };
  25. };
  26. gpio-leds {
  27. compatible = "gpio-leds";
  28. eth {
  29. label = "asl26555:green:eth";
  30. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  31. };
  32. wan-red {
  33. label = "asl26555:red:wan";
  34. gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  35. };
  36. wan-green {
  37. label = "asl26555:green:wan";
  38. gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
  39. };
  40. wlan {
  41. label = "asl26555:green:wlan";
  42. gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
  43. };
  44. led_power_green: power-green {
  45. label = "asl26555:green:power";
  46. gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
  47. };
  48. power-red {
  49. label = "asl26555:red:power";
  50. gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
  51. };
  52. 3g-green {
  53. label = "asl26555:green:3g";
  54. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  55. trigger-sources = <&otg_port1>;
  56. linux,default-trigger = "usbport";
  57. };
  58. 3g-red {
  59. label = "asl26555:red:3g";
  60. gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
  61. };
  62. };
  63. };
  64. &gpio0 {
  65. status = "okay";
  66. };
  67. &pinctrl {
  68. state_default: pinctrl0 {
  69. gpio {
  70. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  71. ralink,function = "gpio";
  72. };
  73. };
  74. };
  75. &ethernet {
  76. mtd-mac-address = <&devdata 0x4004>;
  77. };
  78. &esw {
  79. mediatek,portmap = <0x1e>;
  80. };
  81. &wmac {
  82. ralink,mtd-eeprom = <&devdata 0x4000>;
  83. };
  84. &otg {
  85. status = "okay";
  86. };