[OpenWrt-Devel] ar71xx/ath79: at803x_platform_data: reset_gpio
Adrian Schmutzler
mail at adrianschmutzler.de
Fri Jan 31 11:45:38 EST 2020
Hi,
during support of the Ubiquiti Nanostation Loco XW, we encountered the following
blocks in ar71xx which are only present for devices not migrated to ath79 yet:
static struct mdio_board_info ubnt_loco_m_xw_mdio_info[] = {
{
[...]
.platform_data = &ubnt_loco_m_xw_at803x_data,
},
};
static struct at803x_platform_data ubnt_loco_m_xw_at803x_data = {
.has_reset_gpio = 1,
.reset_gpio = 0,
};
How is this translated into ath79? The Loco XW (just merged to master [1]) seems
to work well with the setup we have right now, other devices with reset_gpio are
few:
adsc at buildfff:/data/openwrt$ grep -rn "reset_gpio"
target/linux/ar71xx/files/arch/
target/linux/ar71xx/files/arch/mips/ath79/mach-rambutan.c:35: .has_reset_gpio
= 1,
target/linux/ar71xx/files/arch/mips/ath79/mach-rambutan.c:36: .reset_gpio =
17,
target/linux/ar71xx/files/arch/mips/ath79/mach-rambutan.c:48: .has_reset_gpio
= 1,
target/linux/ar71xx/files/arch/mips/ath79/mach-rambutan.c:50: .reset_gpio =
23,
target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-xm.c:485: .has_reset_gpio
= 1,
target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-xm.c:486: .reset_gpio = 0,
target/linux/ar71xx/files/arch/mips/ath79/mach-fritz450e.c:124: .has_reset_gpio
= 1,
target/linux/ar71xx/files/arch/mips/ath79/mach-fritz450e.c:126: .reset_gpio =
FRITZ450E_GPIO_PHY_RESET,
Can anyone enlighten me?
Best
Adrian
[1]
https://github.com/openwrt/openwrt/commit/633c4304ad42d18d180ba65a264ba668de445d
91
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list