ramips: cleanup SPI flash device tree properties usage
[lede.git] / target / linux / ramips / dts / OY-0001.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "ralink,mt7620a-soc";
9         model = "OY-0001";
10
11         chosen {
12                 bootargs = "console=ttyS0,115200";
13         };
14
15         gpio-leds {
16                 compatible = "gpio-leds";
17
18                 powerled {
19                         label = "oy-0001:green:power";
20                         gpios = <&gpio0 9 1>;
21                 };
22
23                 wifiled {
24                         label = "oy-0001:green:wifi";
25                         gpios = <&gpio3 0 1>;
26                 };
27         };
28
29         gpio-keys-polled {
30                 compatible = "gpio-keys-polled";
31                 #address-cells = <1>;
32                 #size-cells = <0>;
33                 poll-interval = <20>;
34
35                 s1 {
36                         label = "reset";
37                         gpios = <&gpio0 1 1>;
38                         linux,code = <KEY_RESTART>;
39                 };
40         };
41 };
42
43 &gpio2 {
44         status = "okay";
45 };
46
47 &gpio3 {
48         status = "okay";
49 };
50
51 &spi0 {
52         status = "okay";
53
54         m25p80@0 {
55                 #address-cells = <1>;
56                 #size-cells = <1>;
57                 compatible = "jedec,spi-nor";
58                 reg = <0>;
59                 spi-max-frequency = <10000000>;
60
61                 partition@0 {
62                         label = "u-boot";
63                         reg = <0x0 0x30000>;
64                         read-only;
65                 };
66
67                 partition@30000 {
68                         label = "u-boot-env";
69                         reg = <0x30000 0x10000>;
70                         read-only;
71                 };
72
73                 factory: partition@40000 {
74                         label = "factory";
75                         reg = <0x40000 0x10000>;
76                         read-only;
77                 };
78
79                 partition@50000 {
80                         label = "firmware";
81                         reg = <0x50000 0xfb0000>;
82                 };
83         };
84 };
85
86 &pinctrl {
87         state_default: pinctrl0 {
88                 gpio {
89                         ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
90                         ralink,function = "gpio";
91                 };
92         };
93 };
94
95 &ethernet {
96         pinctrl-names = "default";
97         pinctrl-0 = <&ephy_pins>;
98         mediatek,portmap = "llllw";
99 };
100
101 &gsw {
102         mediatek,port4 = "ephy";
103 };
104
105 &wmac {
106         ralink,mtd-eeprom = <&factory 0>;
107 };
108
109 &sdhci {
110         status = "okay";
111 };
112
113 &ehci {
114         status = "okay";
115 };
116
117 &ohci {
118         status = "okay";
119 };
120
121 &pcie {
122         status = "okay";
123 };