diff options
38 files changed, 1011 insertions, 426 deletions
diff --git a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt index edeea160ca39..edda55f74004 100644 --- a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt +++ b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt | |||
| @@ -7,6 +7,7 @@ CONTENTS | |||
| 7 | - FMan MURAM Node | 7 | - FMan MURAM Node |
| 8 | - FMan dTSEC/XGEC/mEMAC Node | 8 | - FMan dTSEC/XGEC/mEMAC Node |
| 9 | - FMan IEEE 1588 Node | 9 | - FMan IEEE 1588 Node |
| 10 | - FMan MDIO Node | ||
| 10 | - Example | 11 | - Example |
| 11 | 12 | ||
| 12 | ============================================================================= | 13 | ============================================================================= |
| @@ -357,6 +358,69 @@ ptp-timer@fe000 { | |||
| 357 | }; | 358 | }; |
| 358 | 359 | ||
| 359 | ============================================================================= | 360 | ============================================================================= |
| 361 | FMan MDIO Node | ||
| 362 | |||
| 363 | DESCRIPTION | ||
| 364 | |||
| 365 | The MDIO is a bus to which the PHY devices are connected. | ||
| 366 | |||
| 367 | PROPERTIES | ||
| 368 | |||
| 369 | - compatible | ||
| 370 | Usage: required | ||
| 371 | Value type: <stringlist> | ||
| 372 | Definition: A standard property. | ||
| 373 | Must include "fsl,fman-mdio" for 1 Gb/s MDIO from FMan v2. | ||
| 374 | Must include "fsl,fman-xmdio" for 10 Gb/s MDIO from FMan v2. | ||
| 375 | Must include "fsl,fman-memac-mdio" for 1/10 Gb/s MDIO from | ||
| 376 | FMan v3. | ||
| 377 | |||
| 378 | - reg | ||
| 379 | Usage: required | ||
| 380 | Value type: <prop-encoded-array> | ||
| 381 | Definition: A standard property. | ||
| 382 | |||
| 383 | - bus-frequency | ||
| 384 | Usage: optional | ||
| 385 | Value type: <u32> | ||
| 386 | Definition: Specifies the external MDIO bus clock speed to | ||
| 387 | be used, if different from the standard 2.5 MHz. | ||
| 388 | This may be due to the standard speed being unsupported (e.g. | ||
| 389 | due to a hardware problem), or to advertise that all relevant | ||
| 390 | components in the system support a faster speed. | ||
| 391 | |||
| 392 | - interrupts | ||
| 393 | Usage: required for external MDIO | ||
| 394 | Value type: <prop-encoded-array> | ||
| 395 | Definition: Event interrupt of external MDIO controller. | ||
| 396 | |||
| 397 | - fsl,fman-internal-mdio | ||
| 398 | Usage: required for internal MDIO | ||
| 399 | Value type: boolean | ||
| 400 | Definition: Fman has internal MDIO for internal PCS(Physical | ||
| 401 | Coding Sublayer) PHYs and external MDIO for external PHYs. | ||
| 402 | The settings and programming routines for internal/external | ||
| 403 | MDIO are different. Must be included for internal MDIO. | ||
| 404 | |||
| 405 | EXAMPLE | ||
| 406 | |||
| 407 | Example for FMan v2 external MDIO: | ||
| 408 | |||
| 409 | mdio@f1000 { | ||
| 410 | compatible = "fsl,fman-xmdio"; | ||
| 411 | reg = <0xf1000 0x1000>; | ||
| 412 | interrupts = <101 2 0 0>; | ||
| 413 | }; | ||
| 414 | |||
| 415 | Example for FMan v3 internal MDIO: | ||
| 416 | |||
| 417 | mdio@f1000 { | ||
| 418 | compatible = "fsl,fman-memac-mdio"; | ||
| 419 | reg = <0xf1000 0x1000>; | ||
| 420 | fsl,fman-internal-mdio; | ||
| 421 | }; | ||
| 422 | |||
| 423 | ============================================================================= | ||
| 360 | Example | 424 | Example |
| 361 | 425 | ||
| 362 | fman@400000 { | 426 | fman@400000 { |
| @@ -531,4 +595,10 @@ fman@400000 { | |||
| 531 | compatible = "fsl,fman-ptp-timer"; | 595 | compatible = "fsl,fman-ptp-timer"; |
| 532 | reg = <0xfe000 0x1000>; | 596 | reg = <0xfe000 0x1000>; |
| 533 | }; | 597 | }; |
| 598 | |||
| 599 | mdio@f1000 { | ||
| 600 | compatible = "fsl,fman-xmdio"; | ||
| 601 | reg = <0xf1000 0x1000>; | ||
| 602 | interrupts = <101 2 0 0>; | ||
| 603 | }; | ||
| 534 | }; | 604 | }; |
diff --git a/Documentation/devicetree/bindings/soc/fsl/bman.txt b/Documentation/devicetree/bindings/soc/fsl/bman.txt index 9f80bf8709ac..47ac834414d8 100644 --- a/Documentation/devicetree/bindings/soc/fsl/bman.txt +++ b/Documentation/devicetree/bindings/soc/fsl/bman.txt | |||
| @@ -36,6 +36,11 @@ are located at offsets 0xbf8 and 0xbfc | |||
| 36 | Value type: <prop-encoded-array> | 36 | Value type: <prop-encoded-array> |
| 37 | Definition: Standard property. The error interrupt | 37 | Definition: Standard property. The error interrupt |
| 38 | 38 | ||
| 39 | - fsl,bman-portals | ||
| 40 | Usage: Required | ||
| 41 | Value type: <phandle> | ||
| 42 | Definition: Phandle to this BMan instance's portals | ||
| 43 | |||
| 39 | - fsl,liodn | 44 | - fsl,liodn |
| 40 | Usage: See pamu.txt | 45 | Usage: See pamu.txt |
| 41 | Value type: <prop-encoded-array> | 46 | Value type: <prop-encoded-array> |
| @@ -96,7 +101,7 @@ The example below shows a BMan FBPR dynamic allocation memory node | |||
| 96 | 101 | ||
| 97 | bman_fbpr: bman-fbpr { | 102 | bman_fbpr: bman-fbpr { |
| 98 | compatible = "fsl,bman-fbpr"; | 103 | compatible = "fsl,bman-fbpr"; |
| 99 | alloc-ranges = <0 0 0xf 0xffffffff>; | 104 | alloc-ranges = <0 0 0x10 0>; |
| 100 | size = <0 0x1000000>; | 105 | size = <0 0x1000000>; |
| 101 | alignment = <0 0x1000000>; | 106 | alignment = <0 0x1000000>; |
| 102 | }; | 107 | }; |
| @@ -104,6 +109,10 @@ The example below shows a BMan FBPR dynamic allocation memory node | |||
