ralink: add pinctrl driver
[openwrt/staging/wigyori.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 spi@b00 {
9 status = "okay";
10 m25p80@0 {
11 #address-cells = <1>;
12 #size-cells = <1>;
13 reg = <0 0>;
14 spi-max-frequency = <10000000>;
15
16 partition@0 {
17 label = "u-boot";
18 reg = <0x0 0x30000>;
19 read-only;
20 };
21
22 partition@30000 {
23 label = "u-boot-env";
24 reg = <0x30000 0x10000>;
25 read-only;
26 };
27
28 factory: partition@40000 {
29 label = "factory";
30 reg = <0x40000 0x10000>;
31 read-only;
32 };
33
34 partition@50000 {
35 label = "firmware";
36 reg = <0x50000 0x1fb0000>;
37 };
38 };
39 };
40 };
41
42 pinctrl {
43 state_default: pinctrl0 {
44 gpio {
45 ralink,group = "i2c", "jtag", "uartf";
46 ralink,function = "gpio";
47 };
48 };
49 };
50
51 esw@10110000 {
52 ralink,portmap = <0x3f>;
53 };
54
55 ehci@101c0000 {
56 status = "okay";
57 };
58
59 ohci@101c1000 {
60 status = "okay";
61 };
62
63 gpio-leds {
64 compatible = "gpio-leds";
65 ld1 {
66 label = "asiarf:green:ld1";
67 gpios = <&gpio0 0 1>;
68 };
69 ld2 {
70 label = "asiarf:green:ld2";
71 gpios = <&gpio0 1 1>;
72 };
73 };
74 };