dts: switch spi-flash to jedec, spi-nor compatible
[oweals/u-boot.git] / arch / mips / dts / ap121.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
4  */
5
6 /dts-v1/;
7 #include "ar933x.dtsi"
8
9 / {
10         model = "AP121 Reference Board";
11         compatible = "qca,ap121", "qca,ar933x";
12
13         aliases {
14                 spi0 = &spi0;
15                 serial0 = &uart0;
16         };
17
18         chosen {
19                 stdout-path = "serial0:115200n8";
20         };
21 };
22
23 &xtal {
24         clock-frequency = <25000000>;
25 };
26
27 &uart0 {
28         status = "okay";
29 };
30
31 &spi0 {
32         spi-max-frequency = <25000000>;
33         status = "okay";
34         spi-flash@0 {
35                 #address-cells = <1>;
36                 #size-cells = <1>;
37                 compatible = "jedec,spi-nor";
38                 memory-map = <0x9f000000 0x00800000>;
39                 spi-max-frequency = <25000000>;
40                 reg = <0>;
41         };
42 };
43
44 &gmac0 {
45         phy-mode = "rmii";
46         status = "okay";
47 };