Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752242AbcDSVwT (ORCPT ); Tue, 19 Apr 2016 17:52:19 -0400 Received: from mail-by2on0075.outbound.protection.outlook.com ([207.46.100.75]:59312 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750717AbcDSVwR (ORCPT ); Tue, 19 Apr 2016 17:52:17 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; From: Stuart Yoder To: , CC: , , , , , Stuart Yoder , Stuart Yoder Subject: [PATCH 1/2 v3] Documentation: fsl-mc: binding updates for MSIs, ranges, PHYs Date: Tue, 19 Apr 2016 16:53:08 -0500 Message-ID: <1461102788-30565-1-git-send-email-stuart.yoder@nxp.com> X-Mailer: git-send-email 1.9.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131055763348266188;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(48376002)(5001770100001)(50466002)(189998001)(36756003)(2906002)(586003)(5003940100001)(1220700001)(81166005)(4326007)(1096002)(15650500001)(31430400001)(5008740100001)(50226001)(6806005)(47776003)(106466001)(33646002)(104016004)(11100500001)(19580395003)(19580405001)(229853001)(575784001)(87936001)(86362001)(50986999)(77096005)(92566002)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR0301MB1221;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD034;1:MeXdEuUkV7wmjI9cMDEbI8nRjA81roSMNx062JeOVpczXS2B2n7FMslL+VwSX3TxQHZkY1JK1ucelKZAL0Kbk72uCN3pV7yAjq9C8Xy8/tJyboJ5Dq16bcWMjoUwMV5ogOlME/4MtLpcy7BcVWoJVqazwp1egrOvVKY7ZaDaFcwHx6oaQUsl3gonSBRDq8Mgs6Ix2Jfrka2LesCgWvRZ5ji3iV2Mds63ehDvUE5AEcsDeHqrGsWrxr02E91I6qJVfX3tAxP/KRlmM6rEdmP6YWZrBYAE6wguzQCFd9dENjz6/yJFTjaU0Pycp+p0tey6tVeOreve1M4Vh50diifdBdbRx9ZPFevxkLZao+Dywqa+M1nyjxKntqf0VNOksSeAHC2ZqcWJK1ELt7e8gAJCQf25t25m/KGnCuB7YNhw9Y1OMBwEh030NHlz5BYTTiJfQxUINy2ouocrTIJjkfKiev5NQigxPd14Rn/JHdpWYep0u5mN7eljKJEmLcyasqlEkDlitACpSt9mRdEplnWDFqIXO7FeUMFOVfsFOxmkuOID5sPdLi9oMolXgV2maJavBlg+Zbj4QcDZn/p+D853j5DMuSCHpT/C6wZv9DU0cRa4GaxmNFFzhlHw4guRhCuX8sOHn5dYLPlj4LdALNjHhJq2MzqBGtLna7UHKCFmb1dwUXQdgdDG4YgUiOlnNvxE5AjJfMTjq2aJmjLrTWQpxLiAD/guup20TV8UETVAqRc= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 9fd74854-f3d8-46f5-1ccc-08d3689cde9b X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB1221;2:Kv1y75WzMw3DADkTM17y+owv0LrXHhBCP3csQo3SejfGEWDX09YUPkiKvroW8ciTeGFEkgWf7PU5B2GmdlpMLnjG0uex2XTO76AOxj72v9Sh+9e8+Fmn07yk+VZOwsH6bLGVpdWpPVK053f4s5PVt4Y2Z2CwIuYBPIqHFMfPcqdJiEfZXHWVTELGTMju54WQ;3:yMQLQF8qqGLfhAmxLf01jv5eS9YhNN6H8257XwYNzFhzonwi1TA3b8R7oR9bSKBX1SwG7/kMsDOtiAZsS08s2GLjoLV3h5CIeLpV//ptP5TIiCp79KCJwCd6ahoJmuPaOtYIPEhkrrfiyrBySaavuQAM1ktPBrr+BueC2EEf2nO6DGu1qvjDzTTAhTHjCnvj0CVe35Gs/qRt2ahOdg2Rr1sJjrBqJYltQrUdFmC/UxA= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB1221; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB1221;25:Y+gb9fAHbLVStJq1m8TOCe5O79pTeBPTEeEBQVyJwjVFh8ywoDIxutiFtToAXa+gKwwHRqHBZtfRSBoD1zuvURPtwxI3fVt0ZzYLNK4l49CGPpooz7GGO01q9a8GlQblZASuIsI8wSln4f13GlO4DTK78kq5qq6M36691LmzPZxgzRn5ENr2GOn0h+jYKj2vMk17//h0CYTQvTq4fOo3O7VfGnovAHt34xkhU98mrzu53+Ffpa0nQDscuipPc/RL6F2h+UF6u70X6o2CJTuefzBeLh6cPTV3885BOzQR9Ktu/YTjLAa2CRJ9ji0rGK8KAXFuS8rjgC3iGA5hZTZcMBrjiIZzv8BmrRfKsfsi+qlSRXz9YhMiHETSlh/vDfDUA9ce95zbosdHlkIosQM3v8YQylQ2JOnMREc6ydTwUFBuw6506RAfMGWrZkbsv+fgM+QlFBFgeU1X2XclSlZZUZOBI7OFWCwQh+sekYryt1Yxq5sS70MEAXBMAcPPkI3ItO7NKque9b30WQUZ1eyU2zeMcnVwWYhHiPIQWiILz1izV3Ea9rm93BvhTyDbf5Hi4TchEGU2HCRdMSDC4pJplMYy4Z4TWeKUMhRtn8wubrkJzdpb99SRr+sqpJgMSeKAhNtL5QFG9XOnzmrSUkgdToNISLTil1Vw7EIxPbKYtzE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(13018025)(13023025)(13017025)(13024025)(8121501046)(5005006)(13015025)(10201501046)(3002001)(6055026);SRVR:BY1PR0301MB1221;B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Q?vyYaDMWhPVhLPyESA14GkW0cxbi1a9fB9RGXTjZnmM/6Jjp90cDbG0MTdmIW?= =?us-ascii?Q?6l/dAENROdm3vef47yFfskW+55LnfL3LId4gaIMQkDa6XIcFnIeawTNM6ImE?= =?us-ascii?Q?EPY0HLJi6zcEzIBwpoMx1E+1xtdnDGlFxzJqSvOcMUHMaDUhwAz6NdlUEQ0O?= =?us-ascii?Q?avhamk5QXelyMV3aAVzq2acA9qc2FlHpatNxR2R72nJrijbteMsTQFwL8tck?= =?us-ascii?Q?ygL12MFoQVBjq2ggs7OLTBBrcHG8toKO10DEWlisMMb/h1cHWihlNAt2sp/D?= =?us-ascii?Q?nqQgr5yGIrZB/ujD8Jx5vgxO9hSc1mOcdlnB7741ADFSqabOK2KjYolvDdk9?= =?us-ascii?Q?GlMymLLakGnmntpRE64ZfdKZvfXMe1Y6+kR8U9kIGw5fSVNnORzLiOA5MTc4?= =?us-ascii?Q?g33j2daVX8Okgd0F4jmQCzO60tenHo+4WBK1ezF1siZoQKVl8I8s9Jm4mF/l?= =?us-ascii?Q?9Zpy2t7skrzWaTS6HJS46QQ+JgPGbuyDtT2O6G0/Hn9rYxDxiWDLx300go9v?= =?us-ascii?Q?dwA1d5WbMWs0y5dnQakrb576ZSP3JuCwYSE02qKoSv4uBYmUktrPfGoAI9sx?= =?us-ascii?Q?6nBICwm44K5/b0QGYckMe3bx/a3vac07FALu0CxJbm13mKAt4wK1jD5oEthA?= =?us-ascii?Q?RYEuatxFHxgFPoc0rycZIZL6VbthYHIUXmEwPaKmcdJ8fnReN2ZlFZz453nE?= =?us-ascii?Q?6EKi2eA8=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB1221;5:o4UxGRjcOHnB7XYOX6xxTt9QEz7K+keb/ZCQ38jcM07M7Tl7wz9qNVFcSfLsAtsRLasASnEYKgo/0mv1+CbevV+sX5Rg1OOy5AvHpeN2LasURQqQ2rPvG9J7rz0rwTqErGh6dKC23tHZlvYW9z8GeNoXAdwkS/ho5VDTlfQtYEwdi/8mgbjaUr8sB4Cgr7Jls+aqjqVIMqeQHVHfcG9SkQ==;24:X6aanh6UVOxzQ8XiCIuhV1e9p2SIv5K3ZjpoJKnOfCE6kZIAr/B+RUomqcc9O7pzUDRbMcmv+oHPm0lpsrb0nb+RYp9Ue/F4ZEm7ZlYuFo0=;7:4dV+qmzobAkM/BjHNY+K79CU5vrhTN0TIaNDEx9L06NpSNm/t1GQZCaZ2gBECV4r/nS+Vo4ky6aajs10dRQtFV9SufQezGb5gjrArlki+zsn9Q4x6TXMo0/9emxseDpRsItXwIkF3a1Z4NwZZ+jkXLfwyGEZ3hITMks/7andMySRLUNew0NRB9gjE3zLlup3Z7MPTyYQoQSboOLDxmokroZSo9tUnF3uXVVqo5wDY6w= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2016 21:52:14.6550 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0301MB1221 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4339 Lines: 120 From: Stuart Yoder -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 Acked-by: J. German Rivera Acked-by: Rob Herring --- -v3 -no changes .../devicetree/bindings/misc/fsl,qoriq-mc.txt | 81 +++++++++++++++++++++- 1 file changed, 80 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt b/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt index c7a26ca..6611a7c 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: region may not be present in some scenarios, such as in the device tree presented to a virtual machine. + - msi-parent + Value type: + Definition: Must be present and point to the MSI controller node + handling message interrupts for the MC. + + - ranges + Value type: + Definition: A standard property. Defines the mapping between the child + MC address space and the parent system address space. + + The MC address space is defined by 3 components: + + + Valid values for region type are + 0x0 - MC portals + 0x1 - QBMAN portals + + - #address-cells + Value type: + Definition: Must be 3. (see definition in 'ranges' property) + + - #size-cells + Value type: + Definition: Must be 1. + +Sub-nodes: + + 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. + + The dpmac nodes must be under a node named "dpmacs" which contains + the following properties: + + - #address-cells + Value type: + Definition: Must be present if dpmac sub-nodes are defined and must + have a value of 1. + + - #size-cells + Value type: + Definition: Must be present if dpmac sub-nodes are defined and must + have a value of 0. + + These nodes must have the following properties: + + - compatible + Value type: + Definition: Must be "fsl,qoriq-mc-dpmac". + + - reg + Value type: + Definition: Specifies the id of the dpmac. + + - phy-handle + Value type: + Definition: Specifies the phandle to the PHY device node associated + with the this dpmac. + Example: fsl_mc: fsl-mc@80c000000 { compatible = "fsl,qoriq-mc"; reg = <0x00000008 0x0c000000 0 0x40>, /* MC portal base */ <0x00000000 0x08340000 0 0x40000>; /* MC control reg */ - }; + msi-parent = <&its>; + #address-cells = <3>; + #size-cells = <1>; + + /* + * Region type 0x0 - MC portals + * Region type 0x1 - QBMAN portals + */ + ranges = <0x0 0x0 0x0 0x8 0x0c000000 0x4000000 + 0x1 0x0 0x0 0x8 0x18000000 0x8000000>; + dpmacs { + #address-cells = <1>; + #size-cells = <0>; + + dpmac@1 { + compatible = "fsl,qoriq-mc-dpmac"; + reg = <1>; + phy-handle = <&mdio0_phy0>; + } + } + }; -- 1.9.0