openwrt-mirror/target/linux/generic
Mieczyslaw Nalewaj dca146cc77 kernel: rtl8366_smi: explicitly set phy addr for switch
By default rtl8366_smi use phy addr 0 at mii-bus to access switch registers.
This patch allow to set it explicitly in dts-file:

	rtl8367 {
		compatible = "realtek,rtl8367b";
		phy-id = <29>; /* switch address at mii-bus */
		realtek,extif2 = <1 0 1 1 1 1 1 1 2>;
		mii-bus = <&mdio>;
		cpu-port = <7>;
	}

Use default 0 address if not set.
Backward compatibility tested on tplink archer c2 v1 (rtl8367rb switch)

Signed-off-by: Serge Vasilugin <vasilugin@yandex.ru>
[code style fixes, add explicit phy_id assignment in probe_plat, use
phy-id instead of phy_id for of property name]
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
[rebase]
Signed-off-by: Gaspare Bruno <gaspare@anlix.io>
[added phy_id to struct rtl8366_smi]
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
2024-02-24 19:20:52 +01:00
..
backport-5.15 generic: replace simple AQR hack patch with upstream version 2024-02-21 02:34:32 +01:00
backport-6.1 generic: replace simple AQR hack patch with upstream version 2024-02-21 02:34:32 +01:00
files kernel: rtl8366_smi: explicitly set phy addr for switch 2024-02-24 19:20:52 +01:00
hack-5.15 generic: replace simple AQR hack patch with upstream version 2024-02-21 02:34:32 +01:00
hack-6.1 generic: replace simple AQR hack patch with upstream version 2024-02-21 02:34:32 +01:00
image target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
other-files initramfs: switch to tmpfs to fix ujail 2020-11-27 01:23:43 +00:00
pending-5.15 kernel: bump 5.15 to 5.15.148 2024-02-01 21:36:00 +01:00
pending-6.1 kernel: fix warning when building fitblk on 32-bit platforms 2024-02-24 03:34:27 +00:00
config-5.15 kernel: move uImage.FIT partition parser to mediatek target 2024-02-15 19:06:36 +00:00
config-6.1 generic: 6.1: add missing symbol for EN8811H PHY driver 2024-02-19 21:40:06 +01:00
config-filter generic: filter out CONFIG_FRAME_WARN 2023-07-01 11:52:07 +02:00
PATCHES