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