ramips: cleanup SPI flash device tree properties usage
[openwrt/openwrt.git] / target / linux / ramips / dts / WRTNODE.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 / {
6 compatible = "wrtnode", "ralink,mt7620n-soc";
7 model = "WRTNODE";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 indicator {
13 label = "wrtnode:blue:indicator";
14 gpios = <&gpio1 14 1>;
15 };
16 };
17 };
18
19 &gpio1 {
20 status = "okay";
21 };
22
23 &gpio2 {
24 status = "okay";
25 };
26
27 &gpio3 {
28 status = "okay";
29 };
30
31 &spi0 {
32 status = "okay";
33
34 m25p80@0 {
35 #address-cells = <1>;
36 #size-cells = <1>;
37 compatible = "jedec,spi-nor";
38 reg = <0>;
39 spi-max-frequency = <10000000>;
40
41 partition@0 {
42 label = "u-boot";
43 reg = <0x0 0x30000>;
44 read-only;
45 };
46
47 partition@30000 {
48 label = "u-boot-env";
49 reg = <0x30000 0x10000>;
50 read-only;
51 };
52
53 factory: partition@40000 {
54 label = "factory";
55 reg = <0x40000 0x10000>;
56 read-only;
57 };
58
59 partition@50000 {
60 label = "firmware";
61 reg = <0x50000 0xfb0000>;
62 };
63 };
64 };
65
66 &ehci {
67 status = "okay";
68 };
69
70 &ohci {
71 status = "okay";
72 };
73
74 &ethernet {
75 mtd-mac-address = <&factory 0x4>;
76 mediatek,portmap = "wllll";
77 };
78
79 &wmac {
80 ralink,mtd-eeprom = <&factory 0>;
81 };
82
83 &pinctrl {
84 state_default: pinctrl0 {
85 default {
86 ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk";
87 ralink,function = "gpio";
88 };
89 };
90 };