ralink: add pinctrl driver
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / MT7620a.dts
1 /dts-v1/;
2
3 /include/ "mt7620a.dtsi"
4
5 / {
6 compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
7 model = "Ralink MT7620a + MT7610e evaluation board";
8
9 palmbus@10000000 {
10 spi@b00 {
11 status = "okay";
12
13 m25p80@0 {
14 #address-cells = <1>;
15 #size-cells = <1>;
16 compatible = "en25q64";
17 reg = <0 0>;
18 linux,modalias = "m25p80", "en25q64";
19 spi-max-frequency = <10000000>;
20
21 partition@0 {
22 label = "u-boot";
23 reg = <0x0 0x30000>;
24 read-only;
25 };
26
27 partition@30000 {
28 label = "u-boot-env";
29 reg = <0x30000 0x10000>;
30 read-only;
31 };
32
33 factory: partition@40000 {
34 label = "factory";
35 reg = <0x40000 0x10000>;
36 read-only;
37 };
38
39 partition@50000 {
40 label = "firmware";
41 reg = <0x50000 0x7b0000>;
42 };
43 };
44 };
45 };
46
47 pinctrl {
48 state_default: pinctrl0 {
49 gpio {
50 ralink,group = "jtag", "mdio", "rgmii1", "rgmii1", "i2c", "uartf";
51 ralink,function = "gpio";
52 };
53 };
54 };
55
56 ethernet@10100000 {
57 status = "okay";
58
59 port@4 {
60 compatible = "ralink,mt7620a-gsw-port", "ralink,eth-port";
61 reg = <4>;
62 phy-mode = "rgmii";
63 phy-handle = <&phy4>;
64 };
65
66 port@5 {
67 compatible = "ralink,mt7620a-gsw-port", "ralink,eth-port";
68 reg = <5>;
69 phy-mode = "rgmii";
70 phy-handle = <&phy5>;
71 };
72
73 mdio-bus {
74 status = "okay";
75
76 phy4: ethernet-phy@4 {
77 reg = <4>;
78 phy-mode = "rgmii";
79 };
80
81 phy5: ethernet-phy@5 {
82 reg = <5>;
83 phy-mode = "rgmii";
84 };
85 };
86 };
87
88 gsw@10110000 {
89 ralink,port4 = "gmac";
90
91 pinctrl-names = "default";
92 pinctrl-0 = <&ephy_pins>;
93 };
94
95 sdhci@10130000 {
96 status = "okay";
97 };
98
99 pcie@10140000 {
100 status = "okay";
101 };
102
103 gpio-keys-polled {
104 compatible = "gpio-keys";
105 #address-cells = <1>;
106 #size-cells = <0>;
107 poll-interval = <20>;
108 s2 {
109 label = "S2";
110 gpios = <&gpio0 1 1>;
111 linux,code = <0x100>;
112 };
113 s3 {
114 label = "S3";
115 gpios = <&gpio0 2 1>;
116 linux,code = <0x101>;
117 };
118 };
119 };