difos/target/linux/realtek
Sander Vanheule a93dfff10e realtek: add RTL8231 chip detection
When initialising the driver, check if the RTL8231 chip is actually
present at the specified address. If the READY_CODE value does not match
the expected value, return -ENXIO to fail probing.

This should help users to figure out which address an RTL8231 is
configured to use, if measuring pull-up/-down resistors is not an
option.

On an unsuccesful probe, the driver will log:
    [    0.795364] Probing RTL8231 GPIOs
    [    0.798978] rtl8231_init called, MDIO bus ID: 30
    [    0.804194] rtl8231-gpio rtl8231-gpio: no device found at bus address 30

When a device is found, only the first two lines will be logged:
    [    0.453698] Probing RTL8231 GPIOs
    [    0.457312] rtl8231_init called, MDIO bus ID: 31

Signed-off-by: Sander Vanheule <sander@svanheule.net>
Tested-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-02-17 19:11:42 +02:00
..
base-files realtek: sort the port list numerically 2021-12-05 18:49:14 +01:00
dts-5.10 realtek: Add RTL931X sub-target 2022-02-17 15:21:47 +00:00
files/firmware/rtl838x_phy realtek: update the tree to the latest refactored version 2020-11-26 13:29:27 +01:00
files-5.10 realtek: add RTL8231 chip detection 2022-02-17 19:11:42 +02:00
image realtek: Add RTL931X sub-target 2022-02-17 15:21:47 +00:00
patches-5.10 realtek: switch to use generic MDIO accessor functions 2022-02-17 15:21:47 +00:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: Use new CEVT timer 2022-02-17 15:21:47 +00:00
rtl839x realtek: Remove RTL838X PHY firmware from RTL839X kernel 2022-02-17 15:21:47 +00:00
rtl930x realtek: Add RTL930X sub-target 2022-02-17 15:21:47 +00:00
rtl931x realtek: Add RTL931X sub-target 2022-02-17 15:21:47 +00:00
Makefile realtek: Add RTL931X sub-target 2022-02-17 15:21:47 +00:00