ramips: add support for Sercomm CPJ routers
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_iptime.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 aliases {
10 label-mac-device = &ethernet;
11 };
12 };
13
14 &gpio1 {
15 status = "okay";
16 };
17
18 &spi0 {
19 status = "okay";
20
21 flash@0 {
22 compatible = "jedec,spi-nor";
23 reg = <0>;
24 spi-max-frequency = <40000000>;
25
26 partitions {
27 compatible = "fixed-partitions";
28 #address-cells = <1>;
29 #size-cells = <1>;
30
31 uboot: partition@0 {
32 compatible = "nvmem-cells";
33 label = "u-boot";
34 reg = <0x0 0x20000>;
35 #address-cells = <1>;
36 #size-cells = <1>;
37 read-only;
38
39 eeprom_uboot_1f400: eeprom@1f400 {
40 reg = <0x1f400 0x200>;
41 };
42
43 eeprom_uboot_1f800: eeprom@1f800 {
44 reg = <0x1f800 0x200>;
45 };
46
47 macaddr_uboot_1fc20: macaddr@1fc20 {
48 reg = <0x1fc20 0x6>;
49 };
50 };
51
52 partition@20000 {
53 label = "config";
54 reg = <0x20000 0x10000>;
55 read-only;
56 };
57
58 firmware: partition@30000 {
59 compatible = "denx,uimage";
60 label = "firmware";
61 };
62 };
63 };
64 };
65
66 &ethernet {
67 nvmem-cells = <&macaddr_uboot_1fc20>;
68 nvmem-cell-names = "mac-address";
69 };
70
71 &ehci {
72 status = "okay";
73 };
74
75 &ohci {
76 status = "okay";
77 };
78
79 &pcie {
80 status = "okay";
81 };
82
83 &pcie0 {
84 wifi@0,0 {
85 compatible = "mediatek,mt76";
86 reg = <0x0000 0 0 0 0>;
87 nvmem-cells = <&eeprom_uboot_1f800>;
88 nvmem-cell-names = "eeprom";
89 ieee80211-freq-limit = <5000000 6000000>;
90
91 led {
92 led-sources = <0>;
93 led-active-low;
94 };
95 };
96 };
97
98 &wmac {
99 pinctrl-names = "default";
100 pinctrl-0 = <&wled_pins>;
101 nvmem-cells = <&eeprom_uboot_1f400>;
102 nvmem-cell-names = "eeprom";
103 };