[PATCH] realtek-poe: add support for PoE on Realtek switches
Rafał Miłecki
zajec5 at gmail.com
Tue May 11 10:34:11 PDT 2021
On 11.05.2021 17:22, John Crispin wrote:
> This patch adds a C rewrite of the LUA tool previously posted. With this new
> daemon we map the DSA port names to the PSE port id. Support for several now
> features was added, such as setting the priority and at/af mode. In the next
> iteration addition port/mcu states will be exposed, aswell as adding support
> for 4 wire mode and fault handling.
>
> A Sample config looks like this:
>
> config global
> option budget '65'
>
> config port
> option enable '1'
> option id '1'
> option name 'lan1'
> option poe_plus '1'
> option priority '2'
>
> ubus call poe info
> {
> "firmware": "v48.2",
> "mcu": "Nuvoton M05xx LAN Microcontroller",
> "budget": 65.000000,
> "consumption": 2.400000,
> "ports": {
> "lan1": {
> "priority": 2,
> "mode": "PoE",
> "status": "Delivering power",
> "consumption": 2.400000
> }
> }
> }
I'm happy to see C code, but this implementation still doesn't address
any of my comments I posted in the
Re: [PATCH v2] rtl83xx-poe: add package
https://patchwork.ozlabs.org/project/openwrt/patch/20210313165419.10713-1-bjorn@mork.no/#2666485
I strongly believe we need a more generic solution. A tiny framework
with generic PoE imlementation and then rtl83xx support on top of that.
More information about the openwrt-devel
mailing list