Hasivo switches

@ariko I have a thread here on the forum U-Boot for XGS12xx switches (and others based on realtek rtl930x) where I compiled my own rtl930x U-Boot from the dump. We can always improve it to add support if needed (only net stuff is probably needed ...) The repo I have for it lives here: https://gitlab.com/olliver/openwrt/realtek_sdk

@bevanweiss I've added your switch based on the openwrt github dts you sent a while ago. https://gitlab.com/olliver/openwrt/openwrt/-/commit/a521116365bbb78b8e99f29d46e71708e64dce23 is the current state, if you could read it over? I'm not sure on the LED configuration, as I can't find a picture of it. Also, I don't see (m)any hasvio switches with 2 leds, yet you documented two. The led on GPIO0, is hardware controlled as the 'sys_led' normally. it can do rapid blinking during power-on and booting. You called it the 'pwr' led? What is the function of the led you called 'status led' then? or is there a 'fixed always on' led to indicate power (that is more common) which cannot be controlled at all (as its not connected to a GPIO).

Also, You mentioned 'RTL8221 and RTL8226 PHYs' in your DTS, but then list 8 entries. So which one is it? I'll read your wiki page to see if I can learn more :slight_smile:

I haven't added the flash chip yet, but that should be a triviality and not matter for initramfs booting. So if you can give the dts some views, that would be good :slight_smile:

I haven't yet tested my tree; so no guarantee's that the WIP tree works at all :slight_smile: