|
340 | 340 | status = "okay"; |
341 | 341 | }; |
342 | 342 |
|
| 343 | +ðernet { |
| 344 | + pinctrl-0 = <ðernet_defaults>; |
| 345 | + pinctrl-names = "default"; |
| 346 | + |
| 347 | + phy-handle = <&rgmii_phy>; |
| 348 | + phy-mode = "rgmii-id"; |
| 349 | + |
| 350 | + snps,mtl-rx-config = <&mtl_rx_setup>; |
| 351 | + snps,mtl-tx-config = <&mtl_tx_setup>; |
| 352 | + |
| 353 | + status = "okay"; |
| 354 | + |
| 355 | + mdio: mdio { |
| 356 | + compatible = "snps,dwmac-mdio"; |
| 357 | + #address-cells = <1>; |
| 358 | + #size-cells = <0>; |
| 359 | + |
| 360 | + rgmii_phy: phy@1 { |
| 361 | + compatible = "ethernet-phy-ieee802.3-c22"; |
| 362 | + reg = <0x1>; |
| 363 | + |
| 364 | + interrupts-extended = <&tlmm 121 IRQ_TYPE_EDGE_FALLING>; |
| 365 | + device_type = "ethernet-phy"; |
| 366 | + reset-gpios = <&tlmm 105 GPIO_ACTIVE_LOW>; |
| 367 | + reset-assert-us = <11000>; |
| 368 | + reset-deassert-us = <70000>; |
| 369 | + }; |
| 370 | + }; |
| 371 | + |
| 372 | + mtl_rx_setup: rx-queues-config { |
| 373 | + snps,rx-queues-to-use = <1>; |
| 374 | + snps,rx-sched-sp; |
| 375 | + |
| 376 | + queue0 { |
| 377 | + snps,dcb-algorithm; |
| 378 | + snps,map-to-dma-channel = <0x0>; |
| 379 | + snps,route-up; |
| 380 | + snps,priority = <0x1>; |
| 381 | + }; |
| 382 | + }; |
| 383 | + |
| 384 | + mtl_tx_setup: tx-queues-config { |
| 385 | + snps,tx-queues-to-use = <1>; |
| 386 | + snps,tx-sched-wrr; |
| 387 | + |
| 388 | + queue0 { |
| 389 | + snps,weight = <0x10>; |
| 390 | + snps,dcb-algorithm; |
| 391 | + snps,priority = <0x0>; |
| 392 | + }; |
| 393 | + }; |
| 394 | +}; |
| 395 | + |
343 | 396 | &gpu { |
344 | 397 | status = "okay"; |
345 | 398 | }; |
|
494 | 547 | bias-pull-down; |
495 | 548 | }; |
496 | 549 |
|
| 550 | + ethernet_defaults: ethernet-defaults-state { |
| 551 | + mdc-pins { |
| 552 | + pins = "gpio113"; |
| 553 | + function = "rgmii"; |
| 554 | + bias-pull-up; |
| 555 | + }; |
| 556 | + |
| 557 | + mdio-pins { |
| 558 | + pins = "gpio114"; |
| 559 | + function = "rgmii"; |
| 560 | + bias-pull-up; |
| 561 | + }; |
| 562 | + |
| 563 | + rgmii-rx-pins { |
| 564 | + pins = "gpio81", "gpio82", "gpio83", "gpio102", "gpio103", "gpio112"; |
| 565 | + function = "rgmii"; |
| 566 | + bias-disable; |
| 567 | + drive-strength = <2>; |
| 568 | + }; |
| 569 | + |
| 570 | + rgmii-tx-pins { |
| 571 | + pins = "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97"; |
| 572 | + function = "rgmii"; |
| 573 | + bias-pull-up; |
| 574 | + drive-strength = <16>; |
| 575 | + }; |
| 576 | + |
| 577 | + phy-intr-pins { |
| 578 | + pins = "gpio121"; |
| 579 | + function = "gpio"; |
| 580 | + bias-disable; |
| 581 | + drive-strength = <8>; |
| 582 | + }; |
| 583 | + |
| 584 | + phy-reset-pins { |
| 585 | + pins = "gpio105"; |
| 586 | + function = "gpio"; |
| 587 | + bias-pull-up; |
| 588 | + drive-strength = <16>; |
| 589 | + }; |
| 590 | + }; |
| 591 | + |
497 | 592 | pcie_default_state: pcie-default-state { |
498 | 593 | clkreq-pins { |
499 | 594 | pins = "gpio90"; |
|
0 commit comments