ralink: add pinctrl driver
[openwrt/staging/florian.git] / target / linux / ramips / dts / RP-N53.dts
1 /dts-v1/;
2
3 /include/ "mt7620a.dtsi"
4
5 / {
6 compatible = "asus,rp-n53", "ralink,mt7620a-soc";
7 model = "Asus RP-N53";
8
9 palmbus@10000000 {
10 gpio1: gpio@638 {
11 status = "okay";
12 };
13
14 i2c@900 {
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 = "mx25l6405d";
25 reg = <0 0>;
26 linux,modalias = "m25p80";
27 spi-max-frequency = <10000000>;
28
29 partition@0 {
30 label = "u-boot";
31 reg = <0x0 0x30000>;
32 read-only;
33 };
34
35 partition@30000 {
36 label = "u-boot-env";
37 reg = <0x30000 0x10000>;
38 read-only;
39 };
40
41 factory: partition@40000 {
42 label = "factory";
43 reg = <0x40000 0x10000>;
44 read-only;
45 };
46
47 partition@50000 {
48 label = "firmware";
49 reg = <0x50000 0x7b0000>;
50 };
51 };
52 };
53 };
54
55 pinctrl {
56 state_default: pinctrl0 {
57 gpio {
58 ralink,group = "jtag", "mdio", "rgmii1", "rgmii1", "i2c", "uartf";
59 ralink,function = "gpio";
60 };
61 };
62 };
63
64 codec {
65 compatible = "ralink,mt7620-audio";
66 };
67
68 gsw@10110000 {
69 ralink,port4 = "ephy";
70
71 pinctrl-names = "default";
72 pinctrl-0 = <&ephy_pins>;
73 };
74
75 pcie@10140000 {
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 touch {
85 label = "touch";
86 gpios = <&gpio1 0 1>;
87 linux,code = <0x100>;
88 };
89 wps {
90 label = "wps";
91 gpios = <&gpio1 1 1>;
92 linux,code = <0x100>;
93 };
94 reset {
95 label = "reset";
96 gpios = <&gpio1 2 1>;
97 linux,code = <0x100>;
98 };
99 audio {
100 label = "audio";
101 gpios = <&gpio1 3 0>;
102 linux,code = <0x101>;
103 };
104 };
105
106 gpio-leds {
107 compatible = "gpio-leds";
108 backlight {
109 label = "asus:white:back";
110 gpios = <&gpio1 4 1>;
111 };
112 wifi0 {
113 label = "asus:blue:5g3";
114 gpios = <&gpio1 5 1>;
115 };
116 wifi1 {
117 label = "asus:blue:5g2";
118 gpios = <&gpio1 6 1>;
119 };
120 wifi2 {
121 label = "asus:blue:5g1";
122 gpios = <&gpio1 7 1>;
123 };
124 wifi3 {
125 label = "asus:blue:wifi";
126 gpios = <&gpio1 8 1>;
127 };
128 wifi4 {
129 label = "asus:blue:2g1";
130 gpios = <&gpio1 9 1>;
131 };
132 wifi5 {
133 label = "asus:blue:2g2";
134 gpios = <&gpio1 10 1>;
135 };
136 wifi6 {
137 label = "asus:blue:2g3";
138 gpios = <&gpio1 11 1>;
139 };
140 };
141 };