ARM: kirkwood: use devicetree for SPI on dreamplug
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / kirkwood-dreamplug.dts
1 /dts-v1/;
2
3 /include/ "kirkwood.dtsi"
4
5 / {
6         model = "Globalscale Technologies Dreamplug";
7         compatible = "globalscale,dreamplug-003-ds2001", "globalscale,dreamplug", "marvell,kirkwood-88f6281", "marvell,kirkwood";
8
9         memory {
10                 device_type = "memory";
11                 reg = <0x00000000 0x20000000>;
12         };
13
14         chosen {
15                 bootargs = "console=ttyS0,115200n8 earlyprintk";
16         };
17
18         ocp@f1000000 {
19                 serial@12000 {
20                         clock-frequency = <200000000>;
21                         status = "ok";
22                 };
23
24                 spi@10600 {
25                         status = "okay";
26
27                         m25p40@0 {
28                                 #address-cells = <1>;
29                                 #size-cells = <1>;
30                                 compatible = "mx25l1606e";
31                                 reg = <0>;
32                                 spi-max-frequency = <50000000>;
33                                 mode = <0>;
34
35                                 partition@0 {
36                                         reg = <0x0 0x80000>;
37                                         label = "u-boot";
38                                 };
39
40                                 partition@100000 {
41                                         reg = <0x100000 0x10000>;
42                                         label = "u-boot env";
43                                 };
44
45                                 partition@180000 {
46                                         reg = <0x180000 0x10000>;
47                                         label = "dtb";
48                                 };
49                         };
50                 };
51         };
52
53 };