Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758591AbcJYMsL (ORCPT ); Tue, 25 Oct 2016 08:48:11 -0400 Received: from mail-co1nam03on0050.outbound.protection.outlook.com ([104.47.40.50]:21440 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755273AbcJYMsJ (ORCPT ); Tue, 25 Oct 2016 08:48:09 -0400 X-Greylist: delayed 868 seconds by postgrey-1.27 at vger.kernel.org; Tue, 25 Oct 2016 08:48:08 EDT 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=fail action=none header.from=nxp.com;nxp.com; dkim=none (message not signed) header.d=none; From: Minghuan Lian To: , , CC: Shawn Guo , Marc Zyngier , Rob Herring , Mingkai Hu , Stuart Yoder , Yang-Leo Li , Scott Wood , Minghuan Lian Subject: [PATCH 1/6] dt/bindings: adjust bindings for Layerscape SCFG MSI Date: Tue, 25 Oct 2016 20:35:40 +0800 Message-ID: <1477398945-22774-1-git-send-email-Minghuan.Lian@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131218724192084629;(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)(7916002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(2906002)(586003)(104016004)(5001770100001)(97736004)(47776003)(48376002)(36756003)(68736007)(8676002)(77096005)(6666003)(2201001)(8936002)(81166006)(189998001)(5660300001)(81156014)(11100500001)(305945005)(7416002)(4326007)(106466001)(50226002)(50986999)(19580405001)(19580395003)(86362001)(356003)(85426001)(87936001)(626004)(92566002)(7846002)(105606002)(229853001)(5003940100001)(8666005)(50466002)(7059030)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR0301MB1618;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD037;1:Pkv7/4hvV7FOKB5M3GohygRY6+5jRR8jJP/iftbeyQ/2EQWUDeqQbUO9V1ypItWHhmC3cd5Oiyt2HebIh66pOLQGSF0dBX5P6fOFJ1O2CYirhP3BGa+kbRMAjlKlvOK+OXBtnA8LAekmdFQewlStUeacf3Mp1OCOTfN3gogIYOXu7Nbtyzr2f21Jzkzr3jJVNerwr8EUvPuFjzAqPoga0EpxZu03VlcS9K4w2muCszPY+PSCPg9Vy/DTJnukp64b9ii9kKmzaPWHXbNvcoVRoeJfJGBQeybQ9b8rllJGxWmyMoENbAMAFgs2NorTD9R0oV1Y1CEiW1W8VM4qjhovJAEdo71ifwAqMsvGsB6RE470SWABPxzcdAXI4l36ziNXJyHkXlgwUlqLx+2okbQK90+TVaRHI3TNxleCkCzCswV7QzDvw062ivkMNTAE/S826EDEioaSmJwDAc+BjbKPsIqYezzYVE3HTKcUAfLBknrYOmA5sGxfJso9m+a5LsXTHsyE29Suj6u5p9r7mfV6LfhzhU8bINxaXybCW/N8HzZHNekady8/RiN9oUcXv55H1VdZKoOirg0pB98+T85V76tMgvBUJRY4S+grZVK+uQYItIxGvTkWzckpCfHN5wuf/oAaAbEKWrViT6J9gJA4Bcg0v0dDj9j4G0moBN1jNjJx8W4Z0/L/GRLgQ9cLdCFZ/uZVmvxsaQ9uqOqmbJRFO6wLyQwaTOnGsaMkRd6BJOiGQxOOxif+89de2LeKDhkH MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 4411bf5f-3098-458b-578d-08d3fcd325bd X-Microsoft-Exchange-Diagnostics: 1;BLUPR0301MB1618;2:+dum2pl2En/BNSlbOV6Qq3c13GCF7a48+/zvC7nGdu3zCQqqb8TnU4nLizCKC7okXT23QYJu4aP6/+mMfSIRrsE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ziQnLnykYPqRSx7pnXcOlIbIQZ5scTATbrMypBe+l2dKFm+tVYbi1lAUZBSiTSa3xCl7L2OHES8/AOr3AaxQokLR86HG1fe5ALYk//4UO8+JjuncMa3urya2e4o+5vlgIPVDR45DI5r5uGMX36rrQ9mFP6qxw==;4:6Ko3Hg/2D1RARxMyhhgr1TIDccHxtacR57LyPm+xcJDodf0wt2Xomya+d4BwP+qzfvSYYdDPXhZihbTjyqcU6PkIkA2TdffqgvXYe6qCuLyqbuvwPLBGLr7xRlGDAI4hPoYO1NBXlsIfvoho7XHKTebwHIqe84OEPdH6Dt+71xjFrMaFbJTcF40bsGFy7tv8CAJydfHMIyutjiKJlcAFHwysPdv0VOEVr9th0a2eH/tcPFwwtJZuERPaWXI/LFykYlfEl1+bHBjA+6NdgyG0XUGv30wOq5WSrNnm219KSFOp8eQW07Qowq0WYJxNe0XNhePBARLuoSoCtxV94qr4PNknoMwppFhvdOPJhT6bSte7T/r8jG5YeBU5O2dSG9dlezCayaTK1yw4wKKhB9PgF1dsXDGU/4/859WVCJ7MtDSyl1UgLBQ5zW7TTIzVNq85HHyKZ0MWsFaMekJy2cjJMdV2uAHZ2loawkadugFoGOybfPb4fbbFPLnWN2ljlySAZftlpMfhofRAJ9BlIUtSU82cnnsNPfhYz71HQbtP4537zL16UokzNAJjtei8/EAR X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(13023025)(13024025)(13017025)(13015025)(13018025)(8121501046)(5005006)(10201501046)(3002001)(6055026);SRVR:BLUPR0301MB1618;BCL:0;PCL:0;RULEID:(400006);SRVR:BLUPR0301MB1618; X-Forefront-PRVS: 01068D0A20 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR0301MB1618;23:XCOs8Fro6HyWcoACxP2YhWOJPblCVcEE0cJZm/E?= =?us-ascii?Q?1eAtRpfSOp+exksLDij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dE?= =?us-ascii?Q?/VQnv/0jmH4x7BIbRBFfz1F/wbp+q7j046oQYYmamFb6Ytxqp98AADf4Y0mj?= =?us-ascii?Q?LFlLpHuFffZXUaycSlfg51mYfybsGhGqmeIDaaRcnH0dQxoLWFTtw0F+r0nC?= =?us-ascii?Q?EgWMkH14FdiZ31buyeE/wPhHe//6nka2Vwb+Z1gmjVBeYVyGfhUBB3XO0n4R?= =?us-ascii?Q?103R+OP4ZhPcxxfMepAT5DxTmbGpivYgyKmbdMliBgESwrSecY8HDFqZY1/K?= =?us-ascii?Q?NIbs2MWdPwsxti/I=3D?= X-Microsoft-Exchange-Diagnostics: 1;BLUPR0301MB1618;6:+P82kGhJUIaWWkqXHW9t8DJU8ANg4VUnIj7cs6XZdDwbcZMyiA4E+xp8GycphuzTokzK8jukGQ/+rrurOx42mdaXy53IGc3nT+q4WSinPSh5dTKlzXlx6Wf/2nmt56EwvGqnv1rAG4AVHTdHDnz41/DDeZ3LKd3lkVJe3i4uu4PPSo9vxGh6GE8owK2HM9B40lma/UuCkDL0G6PfhzLBo80ihapWZJvNSzixS8E88OzzktfgW8IVmPyACSVLkdGMZYx9ajozbWBnAeFrdQbaeLMfDyus+0wilaM0oV8fc0GdHYeGRmdCyQWs797iZbwk;5:Kr+GAdYQTlDc/0YyXZ7HfmjY0K90+ySHJjXsLWAaL7U70+PnaqNIr5clseBY951h/QO1S8d6WCM+nFy8wYcsVPbhPNQYnjkb4YsUzlNVQZ4pJuUTNWspHy3Q6kr9N45uxvnHYpgGpJ1knCUDr7q1XzWIs/rhMrqIvR7GQSgarTx+TgQNCYH7ZUwKSbhlitzE;24:5e7KQ+YDVNTWqiOuwrkevybjOe1D1dqc8SeBlPO+4Rpw3dOfIMYlppkWQkhk7b3CKZIFQfZVhA+mSNMw6dnh0VRsvWFJI4kdT49/nfgVY2U= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BLUPR0301MB1618;7:Uxe3I3V9ez4RgRnZhBg7GAkZiBu/IYxiihmL8ak/52rWBU5arpI7mFuUqmjA908KNUSjPnXCDyWL2m4aXgt/62VQS6OVxlEixxXUboIp298lQ/P2+S/hak7jbjP/4Ds4DRsAYTcsDMgSPDrO9LmuY8Rfg35jqxaKePTA/EkCFLmZIr+FQntDbGoi2UO9jjTigtUPQ1ZF0Md+/5vFymwyL03K46/WLGqSa1VXccZ3sLFHRGEiCL39Ixg0+iplu+BtcLKqnIRQ68O7g9SOfc3F12gXVYWvXiVaNl0QAbC8oZT+VfNKpR68kkSa+PCY1tHLqP5jYWw0Y8Y92azNGzHF4eI/1YdlJzPZ35MG3ZVoR6U= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2016 12:33:38.8496 (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: BLUPR0301MB1618 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3296 Lines: 101 1. The different version of a SoC may have different MSI implementation. But compatible "fsl,-msi" can not describe the SoC version. The MSI driver will use SoC match interface to get SoC type and version instead of compatible string. So all MSI node can use the common compatible "fsl,ls-scfg-msi" and the original compatible is unnecessary. 2. Layerscape SoCs may have one or several MSI controllers. In order to increase MSI interrupt number of a PCIe, the patch moves all MSI node into the parent node "msi-controller". So a PCIe can request MSI from all the MSI controllers. Signed-off-by: Minghuan Lian --- .../interrupt-controller/fsl,ls-scfg-msi.txt | 57 +++++++++++++++++++--- 1 file changed, 49 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-scfg-msi.txt b/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-scfg-msi.txt index 9e38949..29f95fd 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-scfg-msi.txt +++ b/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-scfg-msi.txt @@ -1,18 +1,28 @@ * Freescale Layerscape SCFG PCIe MSI controller +Layerscape SoCs may have one or multiple MSI controllers. +Each MSI controller must be showed as a child node. + Required properties: -- compatible: should be "fsl,-msi" to identify - Layerscape PCIe MSI controller block such as: - "fsl,1s1021a-msi" - "fsl,1s1043a-msi" +- compatible: should be "fsl,ls-scfg-msi" +- #address-cells: must be 2 +- #size-cells: must be 2 +- ranges: allows valid 1:1 translation between child's address space and + parent's address space - msi-controller: indicates that this is a PCIe MSI controller node + +Required child node: +A child node must exist to represent the MSI controller. +The following are properties specific to those nodes: + - reg: physical base address of the controller and length of memory mapped. - interrupts: an interrupt to the parent interrupt controller. Optional properties: - interrupt-parent: the phandle to the parent interrupt controller. +Notes: This interrupt controller hardware is a second level interrupt controller that is hooked to a parent interrupt controller: e.g: ARM GIC for ARM-based platforms. If interrupt-parent is not provided, the default parent interrupt @@ -22,9 +32,40 @@ MSI controller node Examples: - msi1: msi-controller@1571000 { - compatible = "fsl,1s1043a-msi"; - reg = <0x0 0x1571000 0x0 0x8>, + msi: msi-controller { + compatible = "fsl,ls-scfg-msi"; + #address-cells = <2>; + #size-cells = <2>; + ranges; msi-controller; - interrupts = <0 116 0x4>; + + msi0@1580000 { + reg = <0x0 0x1580000 0x0 0x10000>; + interrupts = <0 116 0x4>, + <0 111 0x4>, + <0 112 0x4>, + <0 113 0x4>; + }; + + msi1@1590000 { + reg = <0x0 0x1590000 0x0 0x10000>; + interrupts = <0 126 0x4>, + <0 121 0x4>, + <0 122 0x4>, + <0 123 0x4>; + }; + + msi2@15a0000 { + reg = <0x0 0x15a0000 0x0 0x10000>; + interrupts = <0 160 0x4>, + <0 155 0x4>, + <0 156 0x4>, + <0 157 0x4>; + }; + }; + + pcie@3400000 { + ... + msi-parent = <&msi>; + ... }; -- 1.9.1