adbb4cf65cc3f57ec58ac1391f213558337f1990
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7620a_cameo_810.dtsi
1 //SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 keys {
10 compatible = "gpio-keys";
11
12 reset {
13 label = "reset";
14 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
15 linux,code = <KEY_RESTART>;
16 };
17
18 wps {
19 label = "wps";
20 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_WPS_BUTTON>;
22 };
23 };
24 };
25
26 &spi0 {
27 status = "okay";
28
29 flash@0 {
30 compatible = "jedec,spi-nor";
31 reg = <0>;
32 spi-max-frequency = <50000000>;
33
34 partitions {
35 compatible = "fixed-partitions";
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 partition@0 {
40 label = "u-boot";
41 reg = <0x0 0x30000>;
42 read-only;
43 };
44
45 partition@30000 {
46 label = "u-boot-env";
47 reg = <0x30000 0x10000>;
48 read-only;
49 };
50
51 factory: partition@40000 {
52 label = "factory";
53 reg = <0x40000 0x10000>;
54 read-only;
55 };
56
57 factory5g: partition@50000 {
58 label = "factory5g";
59 reg = <0x50000 0x10000>;
60 read-only;
61 };
62
63 partition@60000 {
64 label = "Wolf_Config";
65 reg = <0x60000 0x10000>;
66 read-only;
67 };
68
69 partition@70000 {
70 label = "MyDlink";
71 reg = <0x70000 0x80000>;
72 read-only;
73 };
74
75 partition@f0000 {
76 label = "Jffs2";
77 reg = <0xf0000 0x80000>;
78 read-only;
79 };
80
81 partition@170000 {
82 compatible = "denx,uimage";
83 label = "firmware";
84 reg = <0x170000 0x690000>;
85 };
86 };
87 };
88 };
89
90 &ethernet {
91 mtd-mac-address = <&factory 0x28>;
92
93 mediatek,portmap = "llllw";
94 };
95
96 &gsw {
97 mediatek,port4 = "ephy";
98 };
99
100 &gpio2 {
101 status = "okay";
102 };
103
104 &wmac {
105 pinctrl-names = "default";
106 pinctrl-0 = <&pa_pins>;
107
108 ralink,mtd-eeprom = <&factory 0x0>;
109 mtd-mac-address = <&factory 0x28>;
110 };
111
112 &pcie {
113 status = "okay";
114 };
115
116 &pcie0 {
117 wifi@0,0 {
118 reg = <0x0000 0 0 0 0>;
119 mediatek,mtd-eeprom = <&factory 0x8000>;
120 ieee80211-freq-limit = <5000000 6000000>;
121 mtd-mac-address = <&factory 0x28>;
122 mtd-mac-address-increment = <2>;
123 };
124 };