ramips: add support for Widora Neo 32MB flash revision
[oweals/openwrt.git] / target / linux / ramips / dts / WIDORA-NEO-32M.dts
1 /dts-v1/;
2
3 #include "WIDORA-NEO.dtsi"
4
5 / {
6         compatible = "widora,neo-32m", "widora,neo", "mediatek,mt7628an-soc";
7         model = "Widora-NEO (32M)";
8 };
9
10 &spi0 {
11         status = "okay";
12
13         pinctrl-names = "default";
14         pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
15
16         m25p80@0 {
17                 #address-cells = <1>;
18                 #size-cells = <1>;
19                 compatible = "jedec,spi-nor";
20                 reg = <0>;
21                 spi-max-frequency = <40000000>;
22                 m25p,chunked-io = <31>;
23
24                 partition@0 {
25                         label = "u-boot";
26                         reg = <0x0 0x30000>;
27                         read-only;
28                 };
29
30                 partition@30000 {
31                         label = "u-boot-env";
32                         reg = <0x30000 0x10000>;
33                 };
34
35                 factory: partition@40000 {
36                         label = "factory";
37                         reg = <0x40000 0x10000>;
38                         read-only;
39                 };
40
41                 partition@50000 {
42                         label = "firmware";
43                         reg = <0x50000 0x1fb0000>;
44                 };
45         };
46
47         spidev@1 {
48                 #address-cells = <1>;
49                 #size-cells = <1>;
50                 compatible = "linux,spidev";
51                 reg = <1>;
52                 spi-max-frequency = <40000000>;
53         };
54 };