Thanks, pushed. It's gpio3 on my rtl9301 as well, 22 on my rtl9302b 
Yeah, not so much sed, just phat fingers :s or typing to fast for my own good 
Being able to flash from linux would still be useful, in case the vendor updates the firmware 
Where did you find it, I don't see it on your pics, probably related to the GPIO's of those SFP ports. But to be able to probe it, you'd need to know and enable the correct i2c ports. Maybe it sits on the second i2c controller by itself?
RTL8231 is not an 8 pin chip though; and I'm not sure they make them in different sizes. But it makes sense that they use one or two rtl8231's as that is 'baked into' their soc in a way. likely to drive the leds is my guess, but we can easily test that by setting up proper led-sets.
Hmm, I think without the led-set compatible, we are not configuring the leds at all, thus they are using the default register values, which would make it 'just work'. A bug imo
as we should reset the led-sets in that case.
Does any of this work in u-boot with rtk-network on? You can dump the led values in that case from U-boot (otherwise from vendor linux) to figure out what they are. rtk network on; md 0xbb00cc00 should give you all led registers, paste them here and we can confirm if these are default settings or not.
does it rapidly blink during power on? does it go 'off' when linux is booting? It shouldn't be visible in linux without status_led { status = "okay"; } in the dts ... with that added, i like the heartbeat trigger to see if its working properly.
ohh nice one, i'll add those asap!!
Which i2c ports? anything on i2c0? or are you using i2c1 too. I think i2c1 can't work right now.
Thanks for the research!!
Yeah
I think I fixed those also; I forgot to enable some dts compiles last few times, I turned them on to make sure all of them get built.