Re: [RFC PATCH 0/2] MIIM regmap and RTL8231 GPIO expander support

2021-04-16 Thread Sander Vanheule
Hi Andrew, On Fri, 2021-04-09 at 22:10 +0200, Andrew Lunn wrote: > On Fri, Apr 09, 2021 at 07:42:32AM +0200, Sander Vanheule wrote: > > Hi Andrew, > > > > Thank you for the feedback. You can find a (leaked) datasheet at: > > https://github.com/libc0607/Realtek_switch_hacking/blob/files/RTL8231_D

Re: [RFC PATCH 0/2] MIIM regmap and RTL8231 GPIO expander support

2021-04-09 Thread Andrew Lunn
On Fri, Apr 09, 2021 at 07:42:32AM +0200, Sander Vanheule wrote: > Hi Andrew, > > Thank you for the feedback. You can find a (leaked) datasheet at: > https://github.com/libc0607/Realtek_switch_hacking/blob/files/RTL8231_Datasheet_1.2.pdf So this is not really an MFD. It has different ways of maki

Re: [RFC PATCH 0/2] MIIM regmap and RTL8231 GPIO expander support

2021-04-08 Thread Sander Vanheule
Hi Andrew, Thank you for the feedback. You can find a (leaked) datasheet at: https://github.com/libc0607/Realtek_switch_hacking/blob/files/RTL8231_Datasheet_1.2.pdf On Fri, 2021-04-09 at 00:18 +0200, Andrew Lunn wrote: > > - Providing no compatible for an MDIO child node is considered to > > be e

Re: [RFC PATCH 0/2] MIIM regmap and RTL8231 GPIO expander support

2021-04-08 Thread Andrew Lunn
> - Providing no compatible for an MDIO child node is considered to be > equivalent > to a c22 ethernet phy, so one must be provided. However, this node is then > not automatically probed. It cannot be automatically probed, since register 2 and 3 do not contain an ID, which PHYs do. So you ne

[RFC PATCH 0/2] MIIM regmap and RTL8231 GPIO expander support

2021-04-08 Thread Sander Vanheule
The RTL8231 GPIO and LED expander can be configured for use as an MIIM or I2C bus device. To provide uniform data access between these two modes, the regmap interface is used. Since no regmap interface exists for MIIM busses, a basic implementation is provided. Currently outstanding questions: - T