eefda078606a27a390c698fd7ef83ed4928e06cf
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7621_netgear_sercomm_bzv.dtsi
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "mediatek,mt7621-soc";
10
11 aliases {
12 label-mac-device = &gmac0;
13 };
14
15 keys {
16 compatible = "gpio-keys";
17
18 wps {
19 label = "wps";
20 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_WPS_BUTTON>;
22 };
23
24 rfkill {
25 label = "rfkill";
26 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RFKILL>;
28 };
29
30 reset {
31 label = "reset";
32 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_RESTART>;
34 };
35 };
36 };
37
38 &pcie {
39 status = "okay";
40 };
41
42 &pcie0 {
43 wifi@0,0 {
44 compatible = "mediatek,mt76";
45 reg = <0x0 0 0 0 0>;
46 mediatek,mtd-eeprom = <&factory 0x0>;
47 ieee80211-freq-limit = <2400000 2500000>;
48 };
49 };
50
51 &pcie1 {
52 wifi@0,0 {
53 compatible = "mediatek,mt76";
54 reg = <0x0 0 0 0 0>;
55 mediatek,mtd-eeprom = <&factory 0x8000>;
56 ieee80211-freq-limit = <5000000 6000000>;
57 };
58 };
59
60 &gmac0 {
61 mtd-mac-address = <&factory 0x4>;
62 };
63
64 &switch0 {
65 ports {
66 port@0 {
67 status = "okay";
68 label = "lan4";
69 };
70
71 port@1 {
72 status = "okay";
73 label = "lan3";
74 };
75
76 port@2 {
77 status = "okay";
78 label = "lan2";
79 };
80
81 port@3 {
82 status = "okay";
83 label = "lan1";
84 };
85
86 port@4 {
87 status = "okay";
88 label = "wan";
89 mtd-mac-address = <&factory 0x4>;
90 mtd-mac-address-increment = <2>;
91 };
92 };
93 };
94
95 &i2c {
96 status = "okay";
97
98 gpio_expander: i2c0gpio-expander@20{
99 #gpio-cells = <2>;
100 #interrupt-cells = <2>;
101 compatible = "semtech,sx1503q";
102 reg = <0x20>;
103
104 gpio-controller;
105 };
106 };
107
108 &nand {
109 status = "okay";
110
111 partitions {
112 compatible = "fixed-partitions";
113 #address-cells = <1>;
114 #size-cells = <1>;
115
116 partition@0 {
117 label = "u-boot";
118 reg = <0x0 0x100000>;
119 read-only;
120 };
121
122 partition@100000 {
123 label = "SC PART_MAP";
124 reg = <0x100000 0x100000>;
125 read-only;
126 };
127
128 partition@200000 {
129 label = "kernel";
130 reg = <0x200000 0x400000>;
131 };
132
133 partition@600000 {
134 label = "ubi";
135 reg = <0x600000 0x2800000>;
136 };
137
138 partition@2e00000 {
139 label = "reserved0";
140 reg = <0x2e00000 0x1800000>;
141 read-only;
142 };
143
144 factory: partition@4600000 {
145 label = "factory";
146 reg = <0x4600000 0x200000>;
147 read-only;
148 };
149
150 partition@4800000 {
151 label = "reserved1";
152 reg = <0x4800000 0x3800000>;
153 read-only;
154 };
155 };
156 };