Received: by 10.192.165.148 with SMTP id m20csp490637imm; Fri, 4 May 2018 01:09:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpGQfoiVX9oAhwI8Jdh3Bs5WTb5PuY9ZKM/PGRnDJJ/AYLqQCjcZpalMEPpSE6KmofM+0rC X-Received: by 2002:a17:902:8f94:: with SMTP id z20-v6mr12587278plo.391.1525421340669; Fri, 04 May 2018 01:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525421340; cv=none; d=google.com; s=arc-20160816; b=a6WqcLvxkGPOCW2HYg+P7VYLiRSW8JBMi9X2ak9Ewf5EKtIyCos0BGVXQ09npAEy6s yq0pSi4RO3MsMT0bzi0WpRkd8maiiHzl8d6MvtdliSYyMDsrAkwtjbXOPCHblMplk7EA wy+FhykNHCY8JcJd7QECwjwTCMYD1kGZ0ECPof5gdB7LDccgrpknYiMnNr0E7TS3EQE1 +/ZAAQ5/F3I1SWHks9p2axwiAID/F0KYbhs8lusD22HHjO8BUSAvQEzE1FqA2qqmFnQX Kvt+znf1dK5nwPARakBPq7FwATVTHHG7/R4K7VJvOvSakUHwCFT+zNro6mo0qtPMO6PS Ff5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=tNvsUgl4qOW2p/1MIbKmYke/wVrYZemAJeM2acEgxSg=; b=kZuMTBn6BneUg1nTyHWaSRef9JP6DJbBG3Gis09OJKA5Y1hSeghAlag7exzi8P6az4 LmTmJiTHPIKCO20aGdunP/xHxZMvDlZ0zJqffDAvoxJEIqfwjJzz32JKtd3zTjmoBYfw dvfEvdZdz+i8Oo4MVLdn/pTcf1120qvi8lg4YNtvGN65vq3vh67sRQ2+xs6LPHrVAHUD /JH55A84R7a8c4ahBQjp3sGQhqjUY30NItU4GSfSf6k5kXorbkR/P7dzmXayYVfvWINd pXE3TLcfZybylYPCD9B0xF8+h6O6+TDYVVRONdjD7M16jcrWcOvDb21BpO5FTx+uxeC3 ZPlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@prevasonline.onmicrosoft.com header.s=selector1-prevas-se header.b=ETIIgGgf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a12-v6si13105317pgd.102.2018.05.04.01.08.46; Fri, 04 May 2018 01:09:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@prevasonline.onmicrosoft.com header.s=selector1-prevas-se header.b=ETIIgGgf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751651AbeEDIHu (ORCPT + 99 others); Fri, 4 May 2018 04:07:50 -0400 Received: from mail-he1eur01on0118.outbound.protection.outlook.com ([104.47.0.118]:45382 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751447AbeEDIHo (ORCPT ); Fri, 4 May 2018 04:07:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevasonline.onmicrosoft.com; s=selector1-prevas-se; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=tNvsUgl4qOW2p/1MIbKmYke/wVrYZemAJeM2acEgxSg=; b=ETIIgGgf4WwGHFy2lkSk6rHRhdX26FKNw+gtbFh+c1n0nU7xplmXKD/tAazvrr4DP7ZRqp1ae6ssyAwGSleX9eqX8abO3ofEI4g8VlqYs7N3nopqeyo5YdZ8o6n5pGVQMH2YquTu50tjdHUye6Rp1mSNeLbMbUtNo0R4G4QKPKA= Received: from [172.16.11.52] (81.216.59.226) by DB6PR10MB0438.EURPRD10.PROD.OUTLOOK.COM (10.168.14.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.17; Fri, 4 May 2018 08:07:39 +0000 Subject: Re: [PATCH v5 2/2] dt/bindings: Add bindings for Layerscape external irqs To: Rob Herring Cc: Shawn Guo , Thomas Gleixner , Jason Cooper , Marc Zyngier , Mark Rutland , Andy Tang , Alexander Stein , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20180125150230.7234-1-rasmus.villemoes@prevas.dk> <20180223210901.23480-1-rasmus.villemoes@prevas.dk> <20180223210901.23480-3-rasmus.villemoes@prevas.dk> <20180302194935.yq3xw4nxyrxuonz5@rob-hp-laptop> From: Rasmus Villemoes Message-ID: <0bb4533d-c749-d8ff-e1f2-4b08eb724713@prevas.dk> Date: Fri, 4 May 2018 10:07:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180302194935.yq3xw4nxyrxuonz5@rob-hp-laptop> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [81.216.59.226] X-ClientProxiedBy: HE1PR0102CA0031.eurprd01.prod.exchangelabs.com (10.170.250.44) To DB6PR10MB0438.EURPRD10.PROD.OUTLOOK.COM (10.168.14.146) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020);SRVR:DB6PR10MB0438; X-Microsoft-Exchange-Diagnostics: 1;DB6PR10MB0438;3:L3tncY7Fu2m/XZujjY/abSa2PrQv8MhLafNUCe1ZjJsZwTVzGv9ahzBdVL3rtLOErNQZEXtw6lWdGIal26/PJbaiSrlmHYEwLDODnXtdNWuk4MKEx7T34fwfe4dsT8rHrz94vwNHo5Ptiqcl4xN7dqjb+RoF/z2Y9udu9mCem50KIejrYBSxxgnPM+OrC64sC5pgfpDRPQPYp9rz2tLgC+aw4QjLXrHfvTKq1oz5RHN0KC/gCDzQc0vQ7fCxFBFH;25:nQCDodVQDj90luUt0qJRKkZPuPqIchKBAsd8ITljR4V1Up/TpSqDdCyBD3vesHZmUKV3jy+FAo2O6x2OmIoz/gqpAVABOx4EZDmtedvY29FZjythXdDX1VzjKa0rx8QcuKkdjDtoxX8Fjdv7C8AU+sCHVkYGYQj9+Ctm0+FqB5OC5b/mro69gzTNr6MTwPUivf0xbUeXuOF8cgrQw11nHuALUsYFO+ZTAn+K4DFeQMGgEXKuWsGo0goY/rMXMzMmmq8UP+3JTkLOVv6G/Rkzot7cXD9/BLuqpzsrFiFonudcTjgZ5Am6Uyd489VsCE07+BpzDpPhquhezgKi+tivEg==;31:VKtgKGsmzROHXS8OhWeewmfPykxW0viNny3nFnmcyARRJ1wyJe1YzDQXK0bMsa4alo9wUN6DRjV0eSOR1I/Kxa2MY3DbpgK953tizvBWL/pzVz94Ly6xAusVkoS+KN+aq0+iDCZS4mqBa9NHg/8e8TT8bpAPVI+6mMmsWxz65Ew+DCDq4BBoKcDH8F12LeomEBrSzgolUOKWtRCmXxejCEZ49BlGC06DhBtPKfwpDuA= X-MS-TrafficTypeDiagnostic: DB6PR10MB0438: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Rasmus.Villemoes@prevas.se; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(3231254)(944501410)(52105095)(3002001)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011);SRVR:DB6PR10MB0438;BCL:0;PCL:0;RULEID:;SRVR:DB6PR10MB0438; X-Microsoft-Exchange-Diagnostics: 1;DB6PR10MB0438;4:jkXDyQQBWZpqPd7GvQs7vOELqq/AQri130tKFogYhg5m30cHa943XiGpGC+gE5fdX55UPa/G8gxndbEjC95ALffa56rkaEecdqncfS1Psv1DwJTcYKhKVaJEMi2qavlD6IbUy23XFRffsh3LiKstWKT2fZckXYX3FnJDJzoI6fSMoQoLy3t2JGJybftJplDBzC/7g2n5NFU/Hm2D7lGhgzoJa0qng0DMZS2tCH6UAZx2BAgYXFx39K8Pnnk9RMTAWRXRkwlOqikzEpHQtTJPwg== X-Forefront-PRVS: 06628F7CA4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(376002)(396003)(39380400002)(366004)(346002)(39850400004)(199004)(189003)(377424004)(65956001)(11346002)(476003)(66066001)(486006)(446003)(65806001)(6916009)(6666003)(2616005)(53936002)(50466002)(25786009)(44832011)(68736007)(42882007)(305945005)(47776003)(15974865002)(64126003)(6306002)(966005)(6486002)(97736004)(52146003)(23676004)(2486003)(956004)(5660300001)(478600001)(4326008)(229853002)(65826007)(72206003)(8656006)(77096007)(26005)(7416002)(31686004)(6246003)(36756003)(52116002)(16526019)(186003)(106356001)(105586002)(53546011)(76176011)(386003)(54906003)(8976002)(31696002)(74482002)(93886005)(2906002)(7736002)(58126008)(81156014)(8936002)(16576012)(81166006)(230700001)(316002)(6116002)(3846002)(8676002)(18886075002);DIR:OUT;SFP:1102;SCL:1;SRVR:DB6PR10MB0438;H:[172.16.11.52];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: prevas.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjZQUjEwTUIwNDM4OzIzOk5UVmt5V2FtWWVicH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hhon5yCKxRMNLaGlpMlWqVV1xXiJPy/rJ5GGZgC3o5NZ3yvK61JdUi0bW/3/BRpARzsOVth8hKh0vZ20CTM5LlMHDHh3UOA7DenE0YdE5+vjNTLtcIbrXQbGHddVqotpa8LacdqNLF+8z3oqibPqc0DP8HR3CAc8EAs3f+6y1E9xlUikbRP+y4TRTwgi2B0fh3kO5ve+kA==;5:YahYY05GDx4LNFz5I3ib4/anIIs6QbM0emq1yuj/4SRUD9HNZ5TI1OAr+n/0OSkTVKBrz/AD7MLt+xfARfBA7GEdP0CTNiPhC9LsXYFwyEg7nTb4QD4IPDDhHjtGYZhhoCjCsOReA31jWiaHmk+VVwqzgS5pJlrUyOBN0amTeDc=;24:ItvwXq85G8u9XLLOsYs6PiaCV0WqfYMw+mOWa6QFQnjYaVq0uSjmE/WLj/ini4bprDWeiNcV63FC3Q2EM4CeUj1MvFiDFNO7ozCPKTazh2I= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DB6PR10MB0438;7:zBKJpppAbetucsPIvgD/kLHR1XA59lSw+UNB6zq5UQVKUoUX7x+GIbtt4iU5OaizXOT90zq4/w6hDdCHNYGTLNNyvvQxDrLOp7wztk2FBVsr7U6F5U8vor74rYKYAcR5vyevi/DU4BmqHxmwWwC4tJie3NGceWEfIHMPBuVwWQWdh1lDnpmo4zszkWeVRiT4SRfCajVb33XkqBwDqFrTwVUPXw3DjMuTRZypsh4le+c3zys/O35J5QoThr3JJHa7 X-MS-Office365-Filtering-Correlation-Id: 5d090abf-feb8-4f91-0eca-08d5b1961b25 X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2018 08:07:39.2354 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5d090abf-feb8-4f91-0eca-08d5b1961b25 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR10MB0438 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-03-02 20:49, Rob Herring wrote: > On Fri, Feb 23, 2018 at 10:09:00PM +0100, Rasmus Villemoes wrote: >> This adds Device Tree binding documentation for the external interrupt >> lines with configurable polarity present on some Layerscape SOCs. >> >> Signed-off-by: Rasmus Villemoes >> --- >> .../interrupt-controller/fsl,ls-extirq.txt | 44 ++++++++++++++++++++++ >> 1 file changed, 44 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.txt >> >> diff --git a/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.txt b/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.txt >> new file mode 100644 >> index 000000000000..e510c715e8f6 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.txt >> @@ -0,0 +1,44 @@ >> +* Freescale Layerscape external IRQs >> + >> +Some Layerscape SOCs (LS1021A, LS1043A, LS1046A) support inverting >> +the polarity of certain external interrupt lines. >> + >> +The device node must be a child of the node representing the >> +Supplemental Configuration Unit (SCFG). >> + >> +Required properties: >> +- compatible: should be "fsl,-extirq", e.g. "fsl,ls1021a-extirq". >> +- interrupt-controller: Identifies the node as an interrupt controller >> +- #interrupt-cells: Must be 2. The first element is the index of the >> + external interrupt line. The second element is the trigger type. >> +- interrupt-parent: phandle of GIC. >> +- reg: Specifies the Interrupt Polarity Control Register (INTPCR) in the SCFG. >> +- fsl,extirq-map: Specifies the mapping to interrupt numbers in the parent >> + interrupt controller. Interrupts are mapped one-to-one to parent >> + interrupts. > > Use the interrupt-map property for this. Please point me at some documentation for that. AFAICT, that would require the property to consist of n*(3+2)*4 values, instead of just n (with 3+2 being sum of #interrupt-cells and 4 being the four different allowed incoming IRQ_TYPE_*). That seems quite excessive. I used a private property based on advice from Marc Most interrupt controllers use a private property, potentially with a range (see the recent example of the Qualcomm PDC [1]). [1] https://patchwork.kernel.org/patch/10208037/ and the qcom,pdc-ranges has this description (and that patch has your Reviewed-by): +- qcom,pdc-ranges: + Usage: required + Value type: + Definition: Specifies the PDC pin offset and the number of PDC ports. + The tuples indicates the valid mapping of valid PDC ports + and their hwirq mapping. + The first element of the tuple is the starting PDC port. + The second element is the GIC hwirq number for the PDC port. + The third element is the number of interrupts in sequence. In my case, this is simplified by the external irq lines being numbered consecutively from 0, so the array index itself serves as the "starting pdc port". I also omit the "number of interrupts in sequence", and have that be 1 implicitly, since it will only ever be either 6 or 12 elements. So I end up with a simple array of GIC hwirq numbers. >> + >> +Optional properties: >> +- fsl,bit-reverse: This boolean property should be set on the LS1021A >> + if the SCFGREVCR register has been set to all-ones (which is usually >> + the case), meaning that all reads and writes of SCFG registers are >> + implicitly bit-reversed. Other compatible platforms do not have such >> + a register. >> + >> +Example: >> + scfg: scfg@1570000 { >> + compatible = "fsl,ls1021a-scfg", "syscon"; >> + ... >> + extirq: interrupt-controller { >> + compatible = "fsl,ls1021a-extirq"; >> + #interrupt-cells = <2>; >> + interrupt-controller; >> + interrupt-parent = <&gic>; >> + reg = <0x1ac>; > > This needs the length too. What is buys us is following the standard in > which mmio has a #size-cells >= 1. BTW, you need a #size-cells and > #address-cells properties in the parent. (I think dtc will complain if > not). Well, the parent consists solely of 32 bit registers, so I think it would make sense to have #size-cells = 0, to avoid redundant boilerplate in subnodes' reg properties. But you're right, the ls1021a scfg node currently has neither #size-cells or #address-cells, so I'll have to add a patch adding those before adding this subnode. And if #size-cells=0 is somehow frowned upon, I'll just make it 1. -- Rasmus Villemoes Software Developer Prevas A/S Hedeager 3 DK-8200 Aarhus N +45 51210274 rasmus.villemoes@prevas.dk www.prevas.dk