90f3a1eada8c137fe8338efe13d759858748972a
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / AIBR100.dts
1 /dts-v1/;
2
3 /include/ "mt7620a.dtsi"
4
5 / {
6 compatible = "AIBR100", "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 = "en25q64";
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 ralink,port-map = "llllw";
77 };
78
79 wmac@10180000 {
80 ralink,mtd-eeprom = <&factory 0>;
81 };
82
83 gpio-leds {
84 compatible = "gpio-leds";
85 wan {
86 label = "aigale:blue:wan";
87 gpios = <&gpio2 4 1>;
88 };
89 wlan {
90 label = "aigale:blue:wlan";
91 gpios = <&gpio3 0 1>;
92 };
93 };
94
95 gpio-keys-polled {
96 compatible = "gpio-keys-polled";
97 #address-cells = <1>;
98 #size-cells = <0>;
99 poll-interval = <20>;
100 reset {
101 label = "reset";
102 gpios = <&gpio0 12 1>;
103 linux,code = <0x198>;
104 };
105 };
106 };