Y1S.dts 1.6 KB

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