ralink: update patches
[openwrt/openwrt.git] / target / linux / ramips / dts / MPRA2.dts
1 /dts-v1/;
2
3 /include/ "rt5350.dtsi"
4
5 / {
6 compatible = "MPRA2", "ralink,rt5350-soc";
7 model = "HAME MPR-A2";
8
9 memory@0 {
10 reg = <0x0 0x2000000>;
11 };
12
13 palmbus@10000000 {
14 sysc@0 {
15 ralink,pinmux = "i2c", "spi", "uartlite", "mdio", "sdram", "rgmii";
16 ralink,gpiomux = "jtag";
17 ralink,uartmux = "gpio";
18 ralink,wdtmux = <1>;
19 };
20
21 gpio0: gpio@600 {
22 status = "okay";
23 };
24
25 spi@b00 {
26 status = "okay";
27 m25p80@0 {
28 #address-cells = <1>;
29 #size-cells = <1>;
30 compatible = "s25fl064k";
31 reg = <0 0>;
32 linux,modalias = "m25p80", "s25fl064k";
33 spi-max-frequency = <10000000>;
34
35 partition@0 {
36 label = "u-boot";
37 reg = <0x0 0x30000>;
38 read-only;
39 };
40
41 partition@30000 {
42 label = "u-boot-env";
43 reg = <0x30000 0x10000>;
44 read-only;
45 };
46
47 factory: partition@40000 {
48 label = "factory";
49 reg = <0x40000 0x10000>;
50 read-only;
51 };
52
53 partition@50000 {
54 label = "firmware";
55 reg = <0x50000 0x7b0000>;
56 };
57 };
58 };
59 };
60
61 ethernet@10100000 {
62 status = "okay";
63 };
64
65 esw@10110000 {
66 status = "okay";
67 ralink,portmap = <0x2f>;
68 };
69
70 wmac@10180000 {
71 status = "okay";
72 };
73
74 ehci@101c0000 {
75 status = "okay";
76 };
77
78 ohci@101c1000 {
79 status = "okay";
80 };
81
82 gpio-leds {
83 compatible = "gpio-leds";
84 system {
85 label = "mpr-a2:blue:system";
86 gpios = <&gpio0 20 1>;
87 };
88 power {
89 label = "mpr-a2:red:power";
90 gpios = <&gpio0 17 1>;
91 };
92 };
93
94 gpio-keys-polled {
95 compatible = "gpio-keys-polled";
96 #address-cells = <1>;
97 #size-cells = <0>;
98 poll-interval = <20>;
99 wps {
100 label = "reset";
101 gpios = <&gpio0 0 1>;
102 linux,code = <0x198>;
103 };
104 };
105
106 usb0: gpio-regulator {
107 compatible = "regulator-gpio";
108
109 regulator-name = "usb0-power";
110 regulator-min-microvolt = <5000000>;
111 regulator-max-microvolt = <5000000>;
112 regulator-boot-on;
113
114 enable-active-high;
115 enable-gpio = <&gpio0 7 0>;
116 };
117
118 hub0: gpio-regulator {
119 compatible = "regulator-gpio";
120
121 regulator-name = "hub0-power";
122 regulator-min-microvolt = <5000000>;
123 regulator-max-microvolt = <5000000>;
124 regulator-boot-on;
125
126 enable-active-high;
127 enable-gpio = <&gpio0 12 0>;
128 };
129 };