2b7421de9b79f5857934d15bd959564ec2eb8417
[openwrt/staging/jow.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 label = "u-boot";
33 reg = <0x0 0x20000>;
34 read-only;
35
36 nvmem-layout {
37 compatible = "fixed-layout";
38 #address-cells = <1>;
39 #size-cells = <1>;
40
41 eeprom_uboot_1f400: eeprom@1f400 {
42 reg = <0x1f400 0x200>;
43 };
44
45 eeprom_uboot_1f800: eeprom@1f800 {
46 reg = <0x1f800 0x200>;
47 };
48
49 macaddr_uboot_1fc20: macaddr@1fc20 {
50 reg = <0x1fc20 0x6>;
51 };
52 };
53 };
54
55 partition@20000 {
56 label = "config";
57 reg = <0x20000 0x10000>;
58 read-only;
59 };
60
61 firmware: partition@30000 {
62 compatible = "denx,uimage";
63 label = "firmware";
64 };
65 };
66 };
67 };
68
69 &ethernet {
70 nvmem-cells = <&macaddr_uboot_1fc20>;
71 nvmem-cell-names = "mac-address";
72 };
73
74 &ehci {
75 status = "okay";
76 };
77
78 &ohci {
79 status = "okay";
80 };
81
82 &pcie {
83 status = "okay";
84 };
85
86 &pcie0 {
87 wifi@0,0 {
88 compatible = "mediatek,mt76";
89 reg = <0x0000 0 0 0 0>;
90 nvmem-cells = <&eeprom_uboot_1f800>;
91 nvmem-cell-names = "eeprom";
92 ieee80211-freq-limit = <5000000 6000000>;
93
94 led {
95 led-sources = <0>;
96 led-active-low;
97 };
98 };
99 };
100
101 &wmac {
102 pinctrl-names = "default";
103 pinctrl-0 = <&wled_pins>;
104 nvmem-cells = <&eeprom_uboot_1f400>;
105 nvmem-cell-names = "eeprom";
106 };