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
..
2023-06-02 21:20:53 +02:00
2020-10-30 19:45:24 +01:00
2016-06-07 08:58:42 +02:00
2023-05-22 22:28:18 +02:00
2023-05-22 22:28:18 +02:00
2022-03-27 04:51:38 +01:00
2020-07-25 21:50:50 +02:00
2020-12-05 12:06:28 +01:00
2023-06-08 17:25:22 +02:00
2020-05-17 18:35:59 +02:00
2024-02-24 19:20:52 +01:00
2024-02-24 19:20:52 +01:00
2018-11-26 12:05:46 +01:00
2018-11-26 12:05:46 +01:00
2018-11-26 12:05:46 +01:00
2020-06-11 21:50:01 +08:00
2023-05-22 22:28:17 +02:00
2023-05-30 01:58:20 +02:00