ramips: only add spidev node in for WrtNode2R (and not for 2P)
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620a_lenovo_newifi-y1s.dts
1 /dts-v1/;
2
3 #include "mt7620a_lenovo_newifi-y1.dtsi"
4
5 / {
6         compatible = "lenovo,newifi-y1s", "lenovo,newifi-y1", "ralink,mt7620a-soc";
7         model = "Lenovo Y1S";
8
9         aliases {
10                 led-boot = &led_power_blue;
11                 led-failsafe = &led_power_blue;
12                 led-running = &led_power_blue;
13                 led-upgrade = &led_power_blue;
14         };
15
16         gpio_export {
17                 compatible = "gpio-export";
18                 #size-cells = <0>;
19
20                 usb0 {
21                         gpio-export,name = "usb0";
22                         gpio-export,output = <1>;
23                         gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;
24                 };
25                 usb1 {
26                         gpio-export,name = "usb1";
27                         gpio-export,output = <1>;
28                         gpios = <&gpio2 15 GPIO_ACTIVE_HIGH>;
29                 };
30                 usb2 {
31                         gpio-export,name = "usb2";
32                         gpio-export,output = <1>;
33                         gpios = <&gpio2 16 GPIO_ACTIVE_HIGH>;
34                 };
35         };
36
37         leds {
38                 compatible = "gpio-leds";
39
40                 power1 {
41                         label = "newifi-y1s:yellow:power";
42                         gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
43                 };
44
45                 led_power_blue: power2 {
46                         label = "newifi-y1s:blue:power";
47                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
48                 };
49
50                 wlan1 {
51                         label = "newifi-y1s:yellow:wifi";
52                         gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
53                 };
54
55                 wlan2 {
56                         label = "newifi-y1s:blue:wifi";
57                         gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
58                 };
59
60                 usb1 {
61                         label = "newifi-y1s:yellow:usb";
62                         gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
63                 };
64
65                 usb2 {
66                         label = "newifi-y1s:blue:usb";
67                         gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
68                         trigger-sources = <&ohci_port1>, <&ehci_port1>;
69                         linux,default-trigger = "usbport";
70                 };
71
72                 internet {
73                         label = "newifi-y1s:blue:internet";
74                         gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
75                 };
76         };
77 };
78
79 &ethernet {
80         status = "okay";
81         mtd-mac-address = <&factory 0x28>;
82         pinctrl-names = "default";
83         pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
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 };