ramips: fix size-cells on spi nodes
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / RUT5XX.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 / {
6 compatible = "RUT5XX", "ralink,rt3050-soc";
7 model = "Teltonika RUT5XX";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 status {
13 label = "rut5xx:green:status";
14 gpios = <&gpio0 14 1>;
15 };
16 };
17
18 gpio-keys-polled {
19 compatible = "gpio-keys-polled";
20 #address-cells = <1>;
21 #size-cells = <0>;
22 poll-interval = <20>;
23
24 reset {
25 label = "reset";
26 gpios = <&gpio0 10 1>;
27 linux,code = <0x198>;
28 };
29 };
30 };
31
32 &spi0 {
33 status = "okay";
34
35 m25p80@0 {
36 #address-cells = <1>;
37 #size-cells = <1>;
38 compatible = "jedec,spi-nor";
39 reg = <0>;
40 linux,modalias = "m25p80", "n25q128a13";
41 spi-max-frequency = <10000000>;
42
43 partition@0 {
44 label = "u-boot";
45 reg = <0x0 0x30000>;
46 read-only;
47 };
48
49 partition@30000 {
50 label = "u-boot-env";
51 reg = <0x30000 0x10000>;
52 read-only;
53 };
54
55 factory: partition@40000 {
56 label = "factory";
57 reg = <0x40000 0x10000>;
58 read-only;
59 };
60
61 partition@50000 {
62 label = "firmware";
63 reg = <0x50000 0xfb0000>;
64 };
65 };
66 };
67
68 &pinctrl {
69 state_default: pinctrl0 {
70 gpio {
71 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
72 ralink,function = "gpio";
73 };
74 };
75 };
76
77 &ethernet {
78 mtd-mac-address = <&factory 0x28>;
79 };
80
81 &esw {
82 mediatek,portmap = <0x3e>;
83 };
84
85 &wmac {
86 ralink,mtd-eeprom = <&factory 0>;
87 };
88
89 &otg {
90 status = "okay";
91 };