diff options
| author | Stuart Yoder <stuart.yoder@freescale.com> | 2016-04-19 17:53:08 -0400 |
|---|---|---|
| committer | Shawn Guo <shawnguo@kernel.org> | 2016-04-25 23:25:40 -0400 |
| commit | 852224038560768f919af83ca2015f0d31be82c1 (patch) | |
| tree | 0a9828faf5c4976c24679d9a03e6b1b7eab0d7f4 | |
| parent | e26e054ba8a2f9d357cdc874168396ea4ef73c28 (diff) | |
Documentation: fsl-mc: binding updates for MSIs, ranges, PHYs
-The Freescale Management Complex and all associated objects
use message interrupts, and thus an msi-parent is required.
-Define a ranges property to specify the mapping between
the MC address space and the system address space.
-The fsl-mc node may optionally have dpmac sub-nodes that describe
the relationship between the Ethernet MACs which belong to the MC
and the Ethernet PHYs on the system board.
Signed-off-by: Stuart Yoder <stuart.yoder@nxp.com>
Acked-by: J. German Rivera <German.Rivera@nxp.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
| -rw-r--r-- | Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt | 81 |
1 files changed, 80 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt b/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt index c7a26ca8da12..6611a7c2053a 100644 --- a/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt +++ b/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt | |||
| @@ -30,11 +30,90 @@ Required properties: | |||
| 30 | region may not be present in some scenarios, such | 30 | region may not be present in some scenarios, such |
| 31 | as in the device tree presented to a virtual machine. | 31 | as in the device tree presented to a virtual machine. |
| 32 | 32 | ||
| 33 | - msi-parent | ||
| 34 | Value type: <phandle> | ||
| 35 | Definition: Must be present and point to the MSI controller node | ||
| 36 | handling message interrupts for the MC. | ||
| 37 | |||
| 38 | - ranges | ||
| 39 | Value type: <prop-encoded-array> | ||
| 40 | Definition: A standard property. Defines the mapping between the child | ||
| 41 | MC address space and the parent system address space. | ||
| 42 | |||
| 43 | The MC address space is defined by 3 components: | ||
| 44 | <region type> <offset hi> <offset lo> | ||
| 45 | |||
| 46 | Valid values for region type are | ||
| 47 | 0x0 - MC portals | ||
| 48 | 0x1 - QBMAN portals | ||
| 49 | |||
| 50 | - #address-cells | ||
| 51 | Value type: <u32> | ||
| 52 | Definition: Must be 3. (see definition in 'ranges' property) | ||
| 53 | |||
| 54 | - #size-cells | ||
| 55 | Value type: <u32> | ||
| 56 | Definition: Must be 1. | ||
| 57 | |||
| 58 | Sub-nodes: | ||
| 59 | |||
| 60 | The fsl-mc node may optionally have dpmac sub-nodes that describe | ||
| 61 | the relationship between the Ethernet MACs which belong to the MC | ||
| 62 | and the Ethernet PHYs on the system board. | ||
| 63 | |||
| 64 | The dpmac nodes must be under a node named "dpmacs" which contains | ||
| 65 | the following properties: | ||
| 66 | |||
| 67 | - #address-cells | ||
| 68 | Value type: <u32> | ||
| 69 | Definition: Must be present if dpmac sub-nodes are defined and must | ||
| 70 | have a value of 1. | ||
| 71 | |||
| 72 | - #size-cells | ||
| 73 | Value type: <u32> | ||
| 74 | Definition: Must be present if dpmac sub-nodes are defined and must | ||
| 75 | have a value of 0. | ||
| 76 | |||
| 77 | These nodes must have the following properties: | ||
| 78 | |||
| 79 | - compatible | ||
| 80 | Value type: <string> | ||
| 81 | Definition: Must be "fsl,qoriq-mc-dpmac". | ||
| 82 | |||
| 83 | - reg | ||
| 84 | Value type: <prop-encoded-array> | ||
| 85 | Definition: Specifies the id of the dpmac. | ||
| 86 | |||
| 87 | - phy-handle | ||
| 88 | Value type: <phandle> | ||
| 89 | Definition: Specifies the phandle to the PHY device node associated | ||
| 90 | with the this dpmac. | ||
| 91 | |||
| 33 | Example: | 92 | Example: |
| 34 | 93 | ||
| 35 | fsl_mc: fsl-mc@80c000000 { | 94 | fsl_mc: fsl-mc@80c000000 { |
| 36 | compatible = "fsl,qoriq-mc"; | 95 | compatible = "fsl,qoriq-mc"; |
| 37 | reg = <0x00000008 0x0c000000 0 0x40>, /* MC portal base */ | 96 | reg = <0x00000008 0x0c000000 0 0x40>, /* MC portal base */ |
| 38 | <0x00000000 0x08340000 0 0x40000>; /* MC control reg */ | 97 | <0x00000000 0x08340000 0 0x40000>; /* MC control reg */ |
| 39 | }; | 98 | msi-parent = <&its>; |
| 99 | #address-cells = <3>; | ||
| 100 | #size-cells = <1>; | ||
| 101 | |||
| 102 | /* | ||
| 103 | * Region type 0x0 - MC portals | ||
| 104 | * Region type 0x1 - QBMAN portals | ||
| 105 | */ | ||
| 106 | ranges = <0x0 0x0 0x0 0x8 0x0c000000 0x4000000 | ||
| 107 | 0x1 0x0 0x0 0x8 0x18000000 0x8000000>; | ||
| 40 | 108 | ||
| 109 | dpmacs { | ||
| 110 | #address-cells = <1>; | ||
| 111 | #size-cells = <0>; | ||
| 112 | |||
| 113 | dpmac@1 { | ||
| 114 | compatible = "fsl,qoriq-mc-dpmac"; | ||
| 115 | reg = <1>; | ||
| 116 | phy-handle = <&mdio0_phy0>; | ||
| 117 | } | ||
| 118 | } | ||
| 119 | }; | ||
