1
0

Y1.dts 1023 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /dts-v1/;
  2. #include "Y1.dtsi"
  3. / {
  4. compatible = "lenovo,newifi-y1", "ralink,mt7620a-soc";
  5. model = "Lenovo Y1";
  6. aliases {
  7. led-boot = &led_power;
  8. led-failsafe = &led_power;
  9. led-running = &led_power;
  10. led-upgrade = &led_power;
  11. };
  12. gpio-leds {
  13. compatible = "gpio-leds";
  14. led_power: power {
  15. label = "y1:blue:power";
  16. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  17. };
  18. wlan1 {
  19. label = "y1:blue:wifi";
  20. gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
  21. };
  22. wlan2 {
  23. label = "y1:blue:wifi5g";
  24. gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
  25. };
  26. usb {
  27. label = "y1:blue:usb";
  28. gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
  29. trigger-sources = <&ohci_port1>, <&ehci_port1>;
  30. linux,default-trigger = "usbport";
  31. };
  32. lan {
  33. label = "y1:blue:lan";
  34. gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
  35. };
  36. internet {
  37. label = "y1:blue:internet";
  38. gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
  39. };
  40. };
  41. };
  42. &ethernet {
  43. pinctrl-names = "default";
  44. pinctrl-0 = <&ephy_pins>;
  45. mtd-mac-address = <&factory 0x4>;
  46. mediatek,portmap = "llllw";
  47. };