ralink: add pinctrl driver
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ASL26555-16M.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "ASL26555", "ralink,rt3050-soc";
7 model = "Alpha ASL26555";
8
9 palmbus@10000000 {
10 gpio0: gpio@600 {
11 status = "okay";
12 };
13
14 spi@b00 {
15 status = "okay";
16 m25p80@0 {
17 #address-cells = <1>;
18 #size-cells = <1>;
19 compatible = "s25sl12801";
20 reg = <0 0>;
21 linux,modalias = "m25p80", "s25sl12801";
22 spi-max-frequency = <10000000>;
23
24 partition@0 {
25 label = "uboot";
26 reg = <0x0 0x30000>;
27 read-only;
28 };
29 partition@30000 {
30 label = "uboot-env";
31 reg = <0x30000 0x10000>;
32 read-only;
33 };
34 partition@40000 {
35 label = "factory";
36 reg = <0x40000 0x10000>;
37 read-only;
38 };
39 partition@50000 {
40 label = "firmware";
41 reg = <0x50000 0xf80000>;
42 };
43 partition@fd0000 {
44 label = "cert";
45 reg = <0xfd0000 0x10000>;
46 read-only;
47 };
48 partition@fe0000 {
49 label = "langpack";
50 reg = <0xfe0000 0x10000>;
51 read-only;
52 };
53 partition@ff0000 {
54 label = "devdata";
55 reg = <0xff0000 0x10000>;
56 read-only;
57 };
58 };
59 };
60 };
61
62 pinctrl {
63 state_default: pinctrl0 {
64 gpio {
65 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
66 ralink,function = "gpio";
67 };
68 };
69 };
70
71 esw@10110000 {
72 ralink,portmap = <0x1e>;
73 };
74
75 otg@101c0000 {
76 status = "okay";
77 };
78
79 gpio-keys-polled {
80 compatible = "gpio-keys-polled";
81 #address-cells = <1>;
82 #size-cells = <0>;
83 poll-interval = <20>;
84 reset {
85 label = "reset";
86 gpios = <&gpio0 10 0>;
87 linux,code = <0x198>;
88 };
89 wps {
90 label = "wps";
91 gpios = <&gpio0 12 0>;
92 linux,code = <0x211>;
93 };
94 };
95
96 gpio-leds {
97 compatible = "gpio-leds";
98 eth {
99 label = "asl26555:green:eth";
100 gpios = <&gpio0 0 1>;
101 };
102 wan-red {
103 label = "asl26555:red:wan";
104 gpios = <&gpio0 1 0>;
105 };
106 wan-green {
107 label = "asl26555:green:wan";
108 gpios = <&gpio0 2 0>;
109 };
110 wlan {
111 label = "asl26555:green:wlan";
112 gpios = <&gpio0 7 0>;
113 };
114 power-green {
115 label = "asl26555:green:power";
116 gpios = <&gpio0 8 0>;
117 };
118 power-red {
119 label = "asl26555:red:power";
120 gpios = <&gpio0 9 0>;
121 };
122 3g-green {
123 label = "asl26555:green:3g";
124 gpios = <&gpio0 14 1>;
125 };
126 3g-red {
127 label = "asl26555:red:3g";
128 gpios = <&gpio0 17 1>;
129 };
130 };
131 };