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