Y1S.dts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /dts-v1/;
  2. /include/ "Y1.dtsi"
  3. / {
  4. compatible = "lenovo,Y1S", "ralink,mt7620a-soc";
  5. model = "Lenovo Y1S";
  6. ethernet@10100000 {
  7. status = "okay";
  8. mtd-mac-address = <&factory 0x4>;
  9. pinctrl-names = "default";
  10. pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
  11. ralink,port-map = "wllll";
  12. port@4 {
  13. status = "okay";
  14. phy-handle = <&phy4>;
  15. phy-mode = "rgmii";
  16. };
  17. port@5 {
  18. status = "okay";
  19. phy-handle = <&phy5>;
  20. phy-mode = "rgmii";
  21. };
  22. mdio-bus {
  23. status = "okay";
  24. phy4: ethernet-phy@4 {
  25. reg = <4>;
  26. phy-mode = "rgmii";
  27. };
  28. phy5: ethernet-phy@5 {
  29. reg = <5>;
  30. phy-mode = "rgmii";
  31. };
  32. };
  33. };
  34. gsw@10110000 {
  35. ralink,port4 = "gmac";
  36. };
  37. gpio-leds {
  38. compatible = "gpio-leds";
  39. power1 {
  40. label = "lenovo:yellow:power";
  41. gpios = <&gpio0 14 1>;
  42. };
  43. power2 {
  44. label = "lenovo:blue:power";
  45. gpios = <&gpio0 9 1>;
  46. };
  47. wlan1 {
  48. label = "lenovo:yellow:wifi";
  49. gpios = <&gpio3 0 1>;
  50. };
  51. wlan2 {
  52. label = "lenovo:blue:wifi";
  53. gpios = <&gpio2 10 1>;
  54. };
  55. usb1 {
  56. label = "lenovo:yellow:usb";
  57. gpios = <&gpio2 13 1>;
  58. };
  59. usb2 {
  60. label = "lenovo:blue:usb";
  61. gpios = <&gpio2 12 1>;
  62. };
  63. internet {
  64. label = "lenovo:blue:internet";
  65. gpios = <&gpio2 11 1>;
  66. };
  67. };
  68. };