ramips: fix edimax 6200nl switch config
[librecmc/librecmc.git] / target / linux / ramips / dts / Newifi-D1.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 / {
6         compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
7         model = "Newifi-D1";
8
9         memory@0 {
10                 device_type = "memory";
11                 reg = <0x0 0x10000000>;
12         };
13
14         chosen {
15                 bootargs = "console=ttyS0,115200";
16         };
17
18         gpio-leds {
19                 compatible = "gpio-leds";
20
21                 status-red {
22                         label = "newifi-d1:red:status";
23                         gpios = <&gpio0 14 1>;
24                 };
25
26                 status-green {
27                         label = "newifi-d1:green:status";
28                         gpios = <&gpio0 13 1>;
29                 };
30
31                 statys-blue {
32                         label = "newifi-d1:blue:status";
33                         gpios = <&gpio0 16 1>;
34                 };
35         };
36
37         gpio-keys-polled {
38                 compatible = "gpio-keys-polled";
39                 #address-cells = <1>;
40                 #size-cells = <0>;
41                 poll-interval = <20>;
42
43                 reset {
44                         label = "reset";
45                         gpios = <&gpio0 15 1>;
46                         linux,code = <0x198>;
47                 };
48         };
49
50         gpio_export {
51                 compatible = "gpio-export";
52                 #size-cells = <0>;
53
54                 usb2power {
55                         gpio-export,name = "usb2power";
56                         gpio-export,output = <1>;
57                         gpios = <&gpio0 9 0>;
58                 };
59
60                 usb3power {
61                         gpio-export,name = "usb3power";
62                         gpio-export,output = <1>;
63                         gpios = <&gpio0 11 0>;
64                 };
65         };
66 };
67
68 &sdhci {
69         status = "okay";
70         pinctrl-names = "default";
71         pinctrl-0 = <&sdhci_pins>;
72 };
73
74 &xhci {
75         status = "okay";
76 };
77
78 &spi0 {
79         status = "okay";
80
81         m25p80@0 {
82                 #address-cells = <1>;
83                 #size-cells = <1>;
84                 compatible = "jedec,spi-nor";
85                 reg = <0>;
86                 linux,modalias = "m25p80";
87                 spi-max-frequency = <10000000>;
88
89                 partition@0 {
90                         label = "u-boot";
91                         reg = <0x0 0x30000>;
92                         read-only;
93                 };
94
95                 partition@30000 {
96                         label = "u-boot-env";
97                         reg = <0x30000 0x10000>;
98                         read-only;
99                 };
100
101                 factory: partition@40000 {
102                         label = "factory";
103                         reg = <0x40000 0x10000>;
104                         read-only;
105                 };
106
107                 partition@50000 {
108                         label = "firmware";
109                         reg = <0x50000 0x2000000>;
110                 };
111         };
112 };
113
114 &pcie {
115         status = "okay";
116
117         pcie0 {
118                 mt76@0,0 {
119                         reg = <0x0000 0 0 0 0>;
120                         device_type = "pci";
121                         mediatek,mtd-eeprom = <&factory 0x8000>;
122                         mediatek,2ghz = <0>;
123                 };
124         };
125
126         pcie1 {
127                 mt76@1,0 {
128                         reg = <0x0000 0 0 0 0>;
129                         device_type = "pci";
130                         mediatek,mtd-eeprom = <&factory 0x0000>;
131                         mediatek,5ghz = <0>;
132                 };
133         };
134 };
135
136 &ethernet {
137         mtd-mac-address = <&factory 0xe000>;
138 };
139
140
141
142 &pinctrl {
143         state_default: pinctrl0 {
144                 gpio {
145                         ralink,group = "wdt", "rgmii2", "jtag", "uart2", "uart3", "i2c";
146                         ralink,function = "gpio";
147                 };
148         };
149 };