|
372 | 372 | }; |
373 | 373 | }; |
374 | 374 |
|
| 375 | +ðernet { |
| 376 | + pinctrl-0 = <ðernet_defaults>; |
| 377 | + pinctrl-names = "default"; |
| 378 | + |
| 379 | + phy-handle = <&rgmii_phy>; |
| 380 | + phy-mode = "rgmii-id"; |
| 381 | + |
| 382 | + snps,mtl-rx-config = <&mtl_rx_setup>; |
| 383 | + snps,mtl-tx-config = <&mtl_tx_setup>; |
| 384 | + |
| 385 | + status = "okay"; |
| 386 | + |
| 387 | + mdio: mdio { |
| 388 | + compatible = "snps,dwmac-mdio"; |
| 389 | + #address-cells = <1>; |
| 390 | + #size-cells = <0>; |
| 391 | + |
| 392 | + rgmii_phy: phy@7 { |
| 393 | + compatible = "ethernet-phy-ieee802.3-c22"; |
| 394 | + reg = <0x7>; |
| 395 | + |
| 396 | + interrupts-extended = <&tlmm 121 IRQ_TYPE_EDGE_FALLING>; |
| 397 | + device_type = "ethernet-phy"; |
| 398 | + reset-gpios = <&tlmm 104 GPIO_ACTIVE_LOW>; |
| 399 | + reset-assert-us = <11000>; |
| 400 | + reset-deassert-us = <70000>; |
| 401 | + }; |
| 402 | + }; |
| 403 | + |
| 404 | + mtl_rx_setup: rx-queues-config { |
| 405 | + snps,rx-queues-to-use = <1>; |
| 406 | + snps,rx-sched-sp; |
| 407 | + |
| 408 | + queue0 { |
| 409 | + snps,dcb-algorithm; |
| 410 | + snps,map-to-dma-channel = <0x0>; |
| 411 | + snps,route-up; |
| 412 | + snps,priority = <0x1>; |
| 413 | + }; |
| 414 | + }; |
| 415 | + |
| 416 | + mtl_tx_setup: tx-queues-config { |
| 417 | + snps,tx-queues-to-use = <1>; |
| 418 | + snps,tx-sched-wrr; |
| 419 | + |
| 420 | + queue0 { |
| 421 | + snps,weight = <0x10>; |
| 422 | + snps,dcb-algorithm; |
| 423 | + snps,priority = <0x0>; |
| 424 | + }; |
| 425 | + }; |
| 426 | +}; |
| 427 | + |
375 | 428 | &gpu { |
376 | 429 | status = "okay"; |
377 | 430 | }; |
|
552 | 605 | }; |
553 | 606 |
|
554 | 607 | &tlmm { |
| 608 | + ethernet_defaults: ethernet-defaults-state { |
| 609 | + mdc-pins { |
| 610 | + pins = "gpio113"; |
| 611 | + function = "rgmii"; |
| 612 | + bias-pull-up; |
| 613 | + }; |
| 614 | + |
| 615 | + mdio-pins { |
| 616 | + pins = "gpio114"; |
| 617 | + function = "rgmii"; |
| 618 | + bias-pull-up; |
| 619 | + }; |
| 620 | + |
| 621 | + rgmii-rx-pins { |
| 622 | + pins = "gpio81", "gpio82", "gpio83", "gpio102", "gpio103", "gpio112"; |
| 623 | + function = "rgmii"; |
| 624 | + bias-disable; |
| 625 | + drive-strength = <2>; |
| 626 | + }; |
| 627 | + |
| 628 | + rgmii-tx-pins { |
| 629 | + pins = "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97"; |
| 630 | + function = "rgmii"; |
| 631 | + bias-pull-up; |
| 632 | + drive-strength = <16>; |
| 633 | + }; |
| 634 | + |
| 635 | + phy-intr-pins { |
| 636 | + pins = "gpio121"; |
| 637 | + function = "gpio"; |
| 638 | + bias-disable; |
| 639 | + drive-strength = <8>; |
| 640 | + }; |
| 641 | + |
| 642 | + pps-pins { |
| 643 | + pins = "gpio91"; |
| 644 | + function = "rgmii"; |
| 645 | + bias-disable; |
| 646 | + drive-strength = <8>; |
| 647 | + }; |
| 648 | + |
| 649 | + phy-reset-pins { |
| 650 | + pins = "gpio104"; |
| 651 | + function = "gpio"; |
| 652 | + bias-pull-up; |
| 653 | + drive-strength = <16>; |
| 654 | + }; |
| 655 | + }; |
| 656 | + |
555 | 657 | bt_en_state: bt-en-state { |
556 | 658 | pins = "gpio85"; |
557 | 659 | function = "gpio"; |
|
0 commit comments