ramips: fix WHR-600D eeprom dt property
[openwrt/openwrt.git] / target / linux / ramips / dts / W2914NSV2.dtsi
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 chosen {
8 bootargs = "console=ttyS0,57600";
9 };
10
11 gpio-keys-polled {
12 compatible = "gpio-keys-polled";
13 #address-cells = <1>;
14 #size-cells = <0>;
15 poll-interval = <20>;
16
17 reset {
18 label = "reset";
19 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_RESTART>;
21 };
22
23 wps {
24 label = "wps";
25 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
27 };
28 };
29 };
30
31 &xhci {
32 status = "okay";
33 };
34
35 &spi0 {
36 status = "okay";
37
38 m25p80@0 {
39 #address-cells = <1>;
40 #size-cells = <1>;
41 compatible = "jedec,spi-nor";
42 reg = <0>;
43 spi-max-frequency = <10000000>;
44 m25p,chunked-io = <32>;
45
46 partition@0 {
47 label = "u-boot";
48 reg = <0x0 0x30000>;
49 read-only;
50 };
51
52 partition@30000 {
53 label = "u-boot-env";
54 reg = <0x30000 0x10000>;
55 read-only;
56 };
57
58 factory: partition@40000 {
59 label = "factory";
60 reg = <0x40000 0x10000>;
61 read-only;
62 };
63
64 partition@50000 {
65 label = "firmware";
66 reg = <0x50000 0xfb0000>;
67 };
68 };
69 };
70
71 &pcie {
72 status = "okay";
73
74 pcie0 {
75 wifi@14c3,7662 {
76 compatible = "pci14c3,7662";
77 reg = <0x0000 0 0 0 0>;
78 mediatek,mtd-eeprom = <&factory 0x0000>;
79 mediatek,5ghz = <0>;
80 };
81 };
82
83 pcie1 {
84 wifi@14c3,7603 {
85 compatible = "pci14c3,7603";
86 reg = <0x0000 0 0 0 0>;
87 mediatek,mtd-eeprom = <&factory 0x8000>;
88 mediatek,2ghz = <0>;
89 };
90 };
91 };
92
93 &ethernet {
94 mtd-mac-address = <&factory 0xe000>;
95 };
96
97 &pinctrl {
98 state_default: pinctrl0 {
99 gpio {
100 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
101 ralink,function = "gpio";
102 };
103 };
104 };