ramips: Add support for the NixCore X1 Module
[openwrt/openwrt.git] / target / linux / ramips / dts / AI-BR100.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 / {
6 compatible = "AI-BR100", "ralink,mt7620a-soc";
7 model = "Aigale Ai-BR100";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 wan {
13 label = "ai-br100:blue:wan";
14 gpios = <&gpio2 4 1>;
15 };
16
17 wlan {
18 label = "ai-br100:blue:wlan";
19 gpios = <&gpio3 0 1>;
20 };
21 };
22
23 gpio-keys-polled {
24 compatible = "gpio-keys-polled";
25 #address-cells = <1>;
26 #size-cells = <0>;
27 poll-interval = <20>;
28
29 reset {
30 label = "reset";
31 gpios = <&gpio0 12 1>;
32 linux,code = <0x198>;
33 };
34 };
35 };
36
37 &gpio2 {
38 status = "okay";
39 };
40
41 &gpio3 {
42 status = "okay";
43 };
44
45 &spi0 {
46 status = "okay";
47
48 m25p80@0 {
49 #address-cells = <1>;
50 #size-cells = <1>;
51 compatible = "jedec,spi-nor";
52 reg = <0 0>;
53 linux,modalias = "m25p80", "en25q64";
54 spi-max-frequency = <10000000>;
55
56 partition@0 {
57 label = "u-boot";
58 reg = <0x0 0x20000>;
59 read-only;
60 };
61
62 partition@20000 {
63 label = "u-boot-env";
64 reg = <0x20000 0x10000>;
65 read-only;
66 };
67
68 factory: partition@30000 {
69 label = "factory";
70 reg = <0x30000 0x10000>;
71 read-only;
72 };
73
74 partition@40000 {
75 label = "firmware";
76 reg = <0x40000 0x7c0000>;
77 };
78 };
79 };
80
81 &ehci {
82 status = "okay";
83 };
84
85 &ohci {
86 status = "okay";
87 };
88
89 &pinctrl {
90 state_default: pinctrl0 {
91 gpio {
92 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd";
93 ralink,function = "gpio";
94 };
95 };
96 };
97
98 &ethernet {
99 pinctrl-names = "default";
100 pinctrl-0 = <&ephy_pins>;
101 mtd-mac-address = <&factory 0x4>;
102 mediatek,portmap = "llllw";
103 };
104
105 &wmac {
106 ralink,mtd-eeprom = <&factory 0>;
107 };