mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
5e973dd61f
Although VLANs are used, the "eth0" device by itself does not have a valid MAC, so fix that with preinit script. More initvals added by editing the driver to print switch registers, after the bootloader sets them but before openwrt changes them. The register bits needed for the QCA8337 switch can be read from interrupted boot (tftpboot, bootm) by adding print lines in the switch driver ar8327.c before 'qca,ar8327-initvals' is parsed from DTS and written for example: pr_info("0x04 %08x\n", ar8xxx_read(priv, AR8327_REG_PAD0_MODE)); Signed-off-by: Michael Pratt <mcpratt@pm.me>
80 lines
1.4 KiB
Plaintext
80 lines
1.4 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "qca955x_senao_router-dual.dtsi"
|
|
|
|
/ {
|
|
model = "EnGenius EPG5000";
|
|
compatible = "engenius,epg5000", "qca,qca9558";
|
|
|
|
aliases {
|
|
led-boot = &led_power;
|
|
led-failsafe = &led_power;
|
|
led-running = &led_power;
|
|
led-upgrade = &led_power;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_power: power {
|
|
label = "amber:power";
|
|
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
|
default-state = "on";
|
|
};
|
|
|
|
wlan2g {
|
|
label = "blue:wlan2g";
|
|
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy1tpt";
|
|
};
|
|
|
|
wlan5g {
|
|
label = "blue:wlan5g";
|
|
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy0tpt";
|
|
};
|
|
|
|
wps_amber {
|
|
label = "amber:wps";
|
|
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
wps_blue {
|
|
label = "blue:wps";
|
|
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&phy0 {
|
|
qca,mib-poll-interval = <500>;
|
|
|
|
qca,ar8327-initvals = <
|
|
0x04 0x87680000 /* PORT0 PAD MODE CTRL */
|
|
0x10 0x40000000 /* POWER_ON_STRAP */
|
|
0x50 0xcf35cf35 /* LED_CTRL0 */
|
|
0x54 0xcf35cf35 /* LED_CTRL1 */
|
|
0x58 0xcf35cf35 /* LED_CTRL2 */
|
|
0x5c 0x03ffff00 /* LED_CTRL3 */
|
|
0x7c 0x0000007e /* PORT0_STATUS */
|
|
>;
|
|
};
|
|
|
|
&usb_phy1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&wmac {
|
|
nvmem-cells = <&calibration_art_1000>;
|
|
nvmem-cell-names = "calibration";
|
|
};
|
|
|
|
&ath10k_0 {
|
|
nvmem-cells = <&calibration_art_5000>;
|
|
nvmem-cell-names = "calibration";
|
|
};
|