1
0

Y1S.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /dts-v1/;
  2. #include "Y1.dtsi"
  3. / {
  4. compatible = "lenovo,newifi-y1s", "lenovo,newifi-y1", "ralink,mt7620a-soc";
  5. model = "Lenovo Y1S";
  6. aliases {
  7. led-boot = &led_power_blue;
  8. led-failsafe = &led_power_blue;
  9. led-running = &led_power_blue;
  10. led-upgrade = &led_power_blue;
  11. };
  12. gpio_export {
  13. compatible = "gpio-export";
  14. #size-cells = <0>;
  15. usb0 {
  16. gpio-export,name = "usb0";
  17. gpio-export,output = <1>;
  18. gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;
  19. };
  20. usb1 {
  21. gpio-export,name = "usb1";
  22. gpio-export,output = <1>;
  23. gpios = <&gpio2 15 GPIO_ACTIVE_HIGH>;
  24. };
  25. usb2 {
  26. gpio-export,name = "usb2";
  27. gpio-export,output = <1>;
  28. gpios = <&gpio2 16 GPIO_ACTIVE_HIGH>;
  29. };
  30. };
  31. gpio-leds {
  32. compatible = "gpio-leds";
  33. power1 {
  34. label = "y1s:yellow:power";
  35. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  36. };
  37. led_power_blue: power2 {
  38. label = "y1s:blue:power";
  39. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  40. };
  41. wlan1 {
  42. label = "y1s:yellow:wifi";
  43. gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
  44. };
  45. wlan2 {
  46. label = "y1s:blue:wifi";
  47. gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
  48. };
  49. usb1 {
  50. label = "y1s:yellow:usb";
  51. gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
  52. };
  53. usb2 {
  54. label = "y1s:blue:usb";
  55. gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
  56. trigger-sources = <&ohci_port1>, <&ehci_port1>;
  57. linux,default-trigger = "usbport";
  58. };
  59. internet {
  60. label = "y1s:blue:internet";
  61. gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
  62. };
  63. };
  64. };
  65. &ethernet {
  66. status = "okay";
  67. mtd-mac-address = <&factory 0x4>;
  68. pinctrl-names = "default";
  69. pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
  70. mediatek,portmap = "wllll";
  71. port@4 {
  72. status = "okay";
  73. phy-handle = <&phy4>;
  74. phy-mode = "rgmii";
  75. };
  76. port@5 {
  77. status = "okay";
  78. phy-handle = <&phy5>;
  79. phy-mode = "rgmii";
  80. };
  81. mdio-bus {
  82. status = "okay";
  83. phy4: ethernet-phy@4 {
  84. reg = <4>;
  85. phy-mode = "rgmii";
  86. };
  87. phy5: ethernet-phy@5 {
  88. reg = <5>;
  89. phy-mode = "rgmii";
  90. };
  91. };
  92. };
  93. &gsw {
  94. mediatek,port4 = "gmac";
  95. };