mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
f53fa2a0cb
This patch converts MT761{0,2,3} PCIe WiFi calibration data to NVMEM format for legacy Ralink SoCs (MT7620 and Mt7628). The EEPROM size of the MT7610 and MT7612 is 0x200. there are only three devices uses MT7613 NIC, ASUS RT-AC1200 V2, COMFAST CF-WR758AC V2 and Keenetic KN-1613. The EEPROM size of them is 0x4da8. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
65 lines
1.4 KiB
Plaintext
65 lines
1.4 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* D-Link DWR-961 A1 Board Description
|
|
* Copyright 2022 Pawel Dembicki <paweldembicki@gmail.com>
|
|
*/
|
|
#include "mt7620a_dlink_dwr-96x.dtsi"
|
|
|
|
/ {
|
|
compatible = "dlink,dwr-961-a1", "ralink,mt7620a-soc";
|
|
model = "D-Link DWR-961 A1";
|
|
|
|
leds {
|
|
hidden-1 { /* hidden next to wlan5g led */
|
|
label = "green:hidden-1";
|
|
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
hidden-2 { /* hidden next to sms led*/
|
|
label = "green:hidden-2";
|
|
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
};
|
|
|
|
ðernet {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
|
|
|
|
port@5 {
|
|
status = "okay";
|
|
phy-mode = "rgmii";
|
|
mediatek,fixed-link = <1000 1 1 1>;
|
|
};
|
|
|
|
mdio-bus {
|
|
status = "okay";
|
|
|
|
ethernet-phy@0 {
|
|
reg = <0>;
|
|
phy-mode = "rgmii";
|
|
qca,ar8327-initvals = <
|
|
0x04 0x87300000 /* PORT0 PAD MODE CTRL */
|
|
0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
|
|
0x7c 0x0000007e /* PORT0_STATUS */
|
|
0x80 0x00001200 /* PORT1_STATUS */
|
|
0x84 0x00001200 /* PORT2_STATUS */
|
|
0x88 0x00001200 /* PORT3_STATUS */
|
|
0x8c 0x00001200 /* PORT4_STATUS */
|
|
0x90 0x00001200 /* PORT5_STATUS */
|
|
0x94 0x00000000 /* PORT6_STATUS */
|
|
>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&gsw {
|
|
mediatek,ephy-base = /bits/ 8 <8>;
|
|
};
|
|
|
|
&wifi {
|
|
nvmem-cells = <&eeprom_config_e29e>, <&macaddr_config_e50e>;
|
|
nvmem-cell-names = "eeprom", "mac-address";
|
|
mac-address-increment = <2>;
|
|
};
|