ramips: correct vendor name for COMFAST/Joowin
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_comfast_cf-wr758ac.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
7
8 / {
9 compatible = "comfast,cf-wr758ac", "mediatek,mt7628an-soc";
10
11 keys {
12 compatible = "gpio-keys";
13
14 wps {
15 label = "wps";
16 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
17 linux,code = <KEY_WPS_BUTTON>;
18 };
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 wifi-high {
25 label = "blue:wifi-high";
26 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
27 };
28
29 wifi-med {
30 label = "blue:wifi-med";
31 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
32 };
33
34 wifi-low {
35 label = "blue:wifi-low";
36 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
37 };
38 };
39 };
40
41 &state_default {
42 gpio {
43 groups = "refclk", "wdt", "wled_an";
44 function = "gpio";
45 };
46 };
47
48 &pcie {
49 status = "okay";
50 };
51
52 &pcie0 {
53 wifi@0,0 {
54 compatible = "mediatek,mt76";
55 reg = <0x0000 0 0 0 0>;
56 mediatek,mtd-eeprom = <&factory 0x8000>;
57 ieee80211-freq-limit = <5000000 6000000>;
58 };
59 };
60
61 &spi0 {
62 status = "okay";
63
64 flash@0 {
65 compatible = "jedec,spi-nor";
66 reg = <0>;
67 spi-max-frequency = <50000000>;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "u-boot";
76 reg = <0x0 0x30000>;
77 read-only;
78 };
79
80 partition@30000 {
81 label = "u-boot-env";
82 reg = <0x30000 0x10000>;
83 read-only;
84 };
85
86 factory: partition@40000 {
87 label = "factory";
88 reg = <0x40000 0x10000>;
89 read-only;
90 };
91
92 partition@50000 {
93 compatible = "denx,uimage";
94 label = "firmware";
95 reg = <0x50000 0x7b0000>;
96 };
97 };
98 };
99 };
100
101 &wmac {
102 status = "okay";
103
104 mediatek,mtd-eeprom = <&factory 0x0>;
105 };
106
107 &ethernet {
108 nvmem-cells = <&macaddr_factory_e000>;
109 nvmem-cell-names = "mac-address";
110 };
111
112 &esw {
113 mediatek,portdisable = <0x2f>;
114 };
115
116 &factory {
117 compatible = "nvmem-cells";
118 #address-cells = <1>;
119 #size-cells = <1>;
120
121 macaddr_factory_e000: macaddr@e000 {
122 reg = <0xe000 0x6>;
123 };
124 };