ramips: convert MT7915 EEPROM to NVMEM format
[openwrt/openwrt.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 = "yellow:power";
41 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
42 };
43
44 led_power_blue: power2 {
45 label = "blue:power";
46 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
47 };
48
49 wlan1 {
50 label = "yellow:wifi";
51 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
52 };
53
54 wlan2 {
55 label = "blue:wifi";
56 gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
57 };
58
59 usb1 {
60 label = "yellow:usb";
61 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
62 };
63
64 usb2 {
65 label = "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 = "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 nvmem-cells = <&macaddr_factory_28>;
83 nvmem-cell-names = "mac-address";
84
85 mediatek,portmap = "wllll";
86
87 port@4 {
88 status = "okay";
89 phy-handle = <&phy4>;
90 phy-mode = "rgmii";
91 };
92
93 port@5 {
94 status = "okay";
95 phy-handle = <&phy5>;
96 phy-mode = "rgmii";
97 };
98
99 mdio-bus {
100 status = "okay";
101
102 phy4: ethernet-phy@4 {
103 reg = <4>;
104 phy-mode = "rgmii";
105 };
106
107 phy5: ethernet-phy@5 {
108 reg = <5>;
109 phy-mode = "rgmii";
110 };
111 };
112 };
113
114 &gsw {
115 mediatek,port4-gmac;
116 mediatek,ephy-base = /bits/ 8 <8>;
117 };
118
119 &factory {
120 compatible = "nvmem-cells";
121 #address-cells = <1>;
122 #size-cells = <1>;
123
124 macaddr_factory_28: macaddr@28 {
125 reg = <0x28 0x6>;
126 };
127 };