Y1S.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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-status = &led_power_blue;
  8. };
  9. gpio_export {
  10. compatible = "gpio-export";
  11. #size-cells = <0>;
  12. usb0 {
  13. gpio-export,name = "usb0";
  14. gpio-export,output = <1>;
  15. gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;
  16. };
  17. usb1 {
  18. gpio-export,name = "usb1";
  19. gpio-export,output = <1>;
  20. gpios = <&gpio2 15 GPIO_ACTIVE_HIGH>;
  21. };
  22. usb2 {
  23. gpio-export,name = "usb2";
  24. gpio-export,output = <1>;
  25. gpios = <&gpio2 16 GPIO_ACTIVE_HIGH>;
  26. };
  27. };
  28. gpio-leds {
  29. compatible = "gpio-leds";
  30. power1 {
  31. label = "y1s:yellow:power";
  32. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  33. };
  34. led_power_blue: power2 {
  35. label = "y1s:blue:power";
  36. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  37. };
  38. wlan1 {
  39. label = "y1s:yellow:wifi";
  40. gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
  41. };
  42. wlan2 {
  43. label = "y1s:blue:wifi";
  44. gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
  45. };
  46. usb1 {
  47. label = "y1s:yellow:usb";
  48. gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
  49. };
  50. usb2 {
  51. label = "y1s:blue:usb";
  52. gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
  53. };
  54. internet {
  55. label = "y1s:blue:internet";
  56. gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
  57. };
  58. };
  59. };
  60. &ethernet {
  61. status = "okay";
  62. mtd-mac-address = <&factory 0x4>;
  63. pinctrl-names = "default";
  64. pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
  65. mediatek,portmap = "wllll";
  66. port@4 {
  67. status = "okay";
  68. phy-handle = <&phy4>;
  69. phy-mode = "rgmii";
  70. };
  71. port@5 {
  72. status = "okay";
  73. phy-handle = <&phy5>;
  74. phy-mode = "rgmii";
  75. };
  76. mdio-bus {
  77. status = "okay";
  78. phy4: ethernet-phy@4 {
  79. reg = <4>;
  80. phy-mode = "rgmii";
  81. };
  82. phy5: ethernet-phy@5 {
  83. reg = <5>;
  84. phy-mode = "rgmii";
  85. };
  86. };
  87. };
  88. &gsw {
  89. mediatek,port4 = "gmac";
  90. };