671dcff05ab7b1a21bbb6f90c16113371910c3ae
[15.05/openwrt.git] / target / linux / ramips / dts / AWM002.dtsi
1 /include/ "rt5350.dtsi"
2
3 / {
4         compatible = "AWM002", "ralink,rt5350-soc";
5         model = "AsiaRF AWM002";
6
7         palmbus@10000000 {
8                 sysc@0 {
9                         ralink,pinmux = "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
10                         ralink,gpiomux = "i2c";
11                         ralink,uartmux = "gpio";
12                         ralink,wdtmux = <1>;
13                 };
14
15                 gpio0: gpio@600 {
16                         status = "okay";
17                 };
18
19                 spi@b00 {
20                         status = "okay";
21                         m25p80@0 {
22                                 #address-cells = <1>;
23                                 #size-cells = <1>;
24                                 reg = <0 0>;
25                                 spi-max-frequency = <10000000>;
26
27                                 partition@0 {
28                                         label = "u-boot";
29                                         reg = <0x0 0x30000>;
30                                         read-only;
31                                 };
32
33                                 partition@30000 {
34                                         label = "u-boot-env";
35                                         reg = <0x30000 0x10000>;
36                                         read-only;
37                                 };
38
39                                 factory: partition@40000 {
40                                         label = "factory";
41                                         reg = <0x40000 0x10000>;
42                                         read-only;
43                                 };
44
45                                 partition@50000 {
46                                         label = "firmware";
47                                         reg = <0x50000 0x1fb0000>;
48                                 };
49                         };
50                 };
51         };
52
53         ethernet@10100000 {
54                 status = "okay";
55         };
56
57         esw@10110000 {
58                 status = "okay";
59                 ralink,portmap = <0x3f>;
60         };
61
62         wmac@10180000 {
63                 status = "okay";
64         };
65
66         ehci@101c0000 {
67                 status = "okay";
68         };
69
70         ohci@101c1000 {
71                 status = "okay";
72         };
73
74         gpio-leds {
75                 compatible = "gpio-leds";
76                 ld1 {
77                         label = "asiarf:green:ld1";
78                         gpios = <&gpio0 0 1>;
79                 };
80                 ld2 {
81                         label = "asiarf:green:ld2";
82                         gpios = <&gpio0 1 1>;
83                 };
84         };
85 };