6538b6926e582a7a5f786bb9015f2161188f72c4
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_netgear_sercomm_bzv.dtsi
1 // SPDX-License-Identifier: GPL-2.0
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 chosen {
12 bootargs = "console=ttyS0,57600";
13 };
14
15 keys {
16 compatible = "gpio-keys";
17
18 wps {
19 label = "wps";
20 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_WPS_BUTTON>;
22 };
23
24 rfkill {
25 label = "rfkill";
26 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RFKILL>;
28 };
29
30 reset {
31 label = "reset";
32 gpios = <&gpio0 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 &ethernet {
61 mtd-mac-address = <&factory 0x4>;
62 };
63
64 &i2c {
65 status = "okay";
66
67 gpio_expander: i2c0gpio-expander@20{
68 #gpio-cells = <2>;
69 #interrupt-cells = <2>;
70 compatible = "semtech,sx1503q";
71 reg = <0x20>;
72
73 gpio-controller;
74 };
75 };
76
77 &nand {
78 status = "okay";
79
80 partitions {
81 compatible = "fixed-partitions";
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 partition@0 {
86 label = "u-boot";
87 reg = <0x0 0x100000>;
88 read-only;
89 };
90
91 partition@100000 {
92 label = "SC PART_MAP";
93 reg = <0x100000 0x100000>;
94 read-only;
95 };
96
97 partition@200000 {
98 label = "kernel";
99 reg = <0x200000 0x400000>;
100 };
101
102 partition@600000 {
103 label = "ubi";
104 reg = <0x600000 0x2800000>;
105 };
106
107 partition@2e00000 {
108 label = "reserved0";
109 reg = <0x2e00000 0x1800000>;
110 read-only;
111 };
112
113 factory: partition@4600000 {
114 label = "factory";
115 reg = <0x4600000 0x200000>;
116 read-only;
117 };
118
119 partition@4800000 {
120 label = "reserved1";
121 reg = <0x4800000 0x3800000>;
122 read-only;
123 };
124 };
125 };