mirror of
https://github.com/armbian/build.git
synced 2026-04-15 18:41:50 +02:00
The sff,sfp DT binding has additionalProperties: false, so our custom leds property on SFP nodes violates the schema. Move LED-to-SFP association into per-port child nodes of the sfp_led_controller. DTS: sfp_led_controller now has port@0/port@1 sub-nodes, each with sfp phandle and leds list. SFP nodes no longer carry leds property. Driver: sfp_led_probe() iterates child nodes instead of sfp-ports phandle array. sfp_led_register_port() receives the port child node, parses the sfp phandle from it, and reads LEDs from the child node instead of from the SFP node.