Commit 61c5ff6
gateway-dk: move SFP LED refs from SFP nodes to sfp_led_controller
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.1 parent 3645693 commit 61c5ff6
2 files changed
Lines changed: 43 additions & 32 deletions
File tree
- packages/bsp/gateway-dk
- patch/kernel/archive/ls1046a-6.12
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
42 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
43 | 50 | | |
44 | 51 | | |
45 | 52 | | |
| |||
483 | 490 | | |
484 | 491 | | |
485 | 492 | | |
486 | | - | |
| 493 | + | |
487 | 494 | | |
488 | 495 | | |
489 | | - | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
490 | 504 | | |
491 | 505 | | |
492 | 506 | | |
493 | | - | |
| 507 | + | |
494 | 508 | | |
495 | 509 | | |
496 | 510 | | |
| |||
510 | 524 | | |
511 | 525 | | |
512 | 526 | | |
513 | | - | |
514 | | - | |
| 527 | + | |
| 528 | + | |
515 | 529 | | |
516 | 530 | | |
517 | 531 | | |
518 | 532 | | |
519 | 533 | | |
520 | 534 | | |
521 | | - | |
| 535 | + | |
522 | 536 | | |
523 | 537 | | |
524 | 538 | | |
| |||
589 | 603 | | |
590 | 604 | | |
591 | 605 | | |
592 | | - | |
| 606 | + | |
593 | 607 | | |
594 | 608 | | |
595 | 609 | | |
| |||
599 | 613 | | |
600 | 614 | | |
601 | 615 | | |
602 | | - | |
603 | | - | |
604 | | - | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
605 | 619 | | |
606 | 620 | | |
607 | 621 | | |
| |||
612 | 626 | | |
613 | 627 | | |
614 | 628 | | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
623 | 632 | | |
624 | | - | |
625 | | - | |
| 633 | + | |
626 | 634 | | |
627 | 635 | | |
628 | 636 | | |
| |||
Lines changed: 13 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
| |||
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
118 | | - | |
119 | 117 | | |
120 | 118 | | |
121 | | - | |
| 119 | + | |
| 120 | + | |
122 | 121 | | |
123 | 122 | | |
124 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
125 | 133 | | |
126 | 134 | | |
127 | 135 | | |
| |||
605 | 613 | | |
606 | 614 | | |
607 | 615 | | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | 616 | | |
614 | 617 | | |
615 | 618 | | |
| |||
0 commit comments