Commit 7d272e6
net: phy: mscc: timestamping and PHC support
This patch adds support for PHC and timestamping operations for the MSCC
PHY. PTP 1-step and 2-step modes are supported, over Ethernet and UDP.
To get and set the PHC time, a GPIO has to be used and changes are only
retrieved or committed when on a rising edge. The same GPIO is shared by
all PHYs, so the granularity of the lock protecting it has to be
different from the ones protecting the 1588 registers (the VSC8584 PHY
has 2 1588 blocks, and a single load/save pin).
Co-developed-by: Quentin Schulz <[email protected]>
Signed-off-by: Quentin Schulz <[email protected]>
Signed-off-by: Antoine Tenart <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent ab2bf93 commit 7d272e6
3 files changed
+630
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| 378 | + | |
| 379 | + | |
378 | 380 | | |
379 | 381 | | |
| 382 | + | |
| 383 | + | |
380 | 384 | | |
381 | 385 | | |
382 | 386 | | |
| |||
386 | 390 | | |
387 | 391 | | |
388 | 392 | | |
389 | | - | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
390 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
391 | 406 | | |
392 | 407 | | |
393 | 408 | | |
| |||
416 | 431 | | |
417 | 432 | | |
418 | 433 | | |
| 434 | + | |
419 | 435 | | |
| 436 | + | |
420 | 437 | | |
| 438 | + | |
421 | 439 | | |
422 | 440 | | |
423 | 441 | | |
424 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
425 | 446 | | |
426 | 447 | | |
427 | 448 | | |
428 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
429 | 454 | | |
430 | 455 | | |
431 | 456 | | |
432 | 457 | | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
433 | 462 | | |
434 | 463 | | |
435 | 464 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1475 | 1475 | | |
1476 | 1476 | | |
1477 | 1477 | | |
| 1478 | + | |
1478 | 1479 | | |
1479 | 1480 | | |
1480 | 1481 | | |
1481 | | - | |
| 1482 | + | |
1482 | 1483 | | |
1483 | 1484 | | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
1484 | 1492 | | |
1485 | 1493 | | |
1486 | 1494 | | |
| |||
1920 | 1928 | | |
1921 | 1929 | | |
1922 | 1930 | | |
| 1931 | + | |
1923 | 1932 | | |
1924 | 1933 | | |
1925 | 1934 | | |
| |||
2033 | 2042 | | |
2034 | 2043 | | |
2035 | 2044 | | |
2036 | | - | |
2037 | | - | |
| 2045 | + | |
| 2046 | + | |
2038 | 2047 | | |
2039 | 2048 | | |
2040 | 2049 | | |
| |||
2045 | 2054 | | |
2046 | 2055 | | |
2047 | 2056 | | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
2048 | 2063 | | |
2049 | 2064 | | |
2050 | 2065 | | |
| |||
0 commit comments