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-08-09 22:06:24 +02:00
2023-11-25 22:50:32 +01:00
2024-01-19 21:24:44 +01:00
2023-08-09 22:06:24 +02:00
2024-02-19 16:51:39 +01:00
2024-02-18 11:20:27 +00:00
2024-01-06 10:53:39 +01:00
2024-02-15 19:06:36 +00:00
2024-02-07 14:48:35 +01:00
2023-10-27 19:43:06 +01:00
2024-02-08 09:45:26 +01:00
2024-01-06 12:52:49 +01:00
2024-02-24 19:20:52 +01:00
2024-02-18 11:23:19 +00:00
2024-02-23 19:46:23 +01:00
2024-02-23 18:05:09 +01:00
2023-12-09 14:45:50 +01:00
2024-02-18 11:20:27 +00:00
2024-02-08 00:01:22 +01:00
2024-02-15 19:06:36 +00:00
2024-02-03 04:35:25 +00:00
2024-02-24 17:02:35 +00:00
2024-02-07 14:48:40 +01:00
2024-02-18 11:20:27 +00:00
2024-02-07 14:48:41 +01:00
2024-02-01 21:36:00 +01:00
2024-02-13 19:05:48 +01:00
2024-01-01 02:34:48 +01:00
2023-10-31 17:33:28 +01:00
2023-12-02 14:06:56 +02:00
2024-02-23 13:34:59 +01:00
2024-02-22 22:53:30 +01:00
2024-02-18 09:56:45 +01:00
2024-02-22 17:30:05 +01:00
2023-11-19 16:46:24 +01:00
2023-12-19 16:02:05 +01:00
2023-09-23 13:10:28 +02:00
2023-12-23 07:52:05 +00:00
2024-02-08 23:04:55 +01:00