Received: by 10.223.176.5 with SMTP id f5csp2017113wra; Thu, 8 Feb 2018 07:11:02 -0800 (PST) X-Google-Smtp-Source: AH8x2254nSH9SyZplSOWKM9cXrhYjbkqRh4jDmGhmsxoz2cAMLhptiNDIparMAki6BMI1Qx2Ggho X-Received: by 10.98.35.211 with SMTP id q80mr1016486pfj.64.1518102662692; Thu, 08 Feb 2018 07:11:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518102662; cv=none; d=google.com; s=arc-20160816; b=uno5NzxvUdgU8zJ+v6mQXKuX8f2gECnft220wyBG9aDdDsDKEGd6YKiSlNjzLkPiXn RMarH8+5l6OQIu9BuHDu27MU2lT+siClxPr23KmX362c+MMA9CEsz2iyr9CKaCKvnJgc ZWyxuJP+l43YxT9Otmin2Y/Nz22YFdHlBx7zPtjtS8xxBqju+BqsKt0GXiKiWMfTlNwS CunDtYNANjQbOgxSovwjVuoH2r2ToeEenmnS0d8xLut7ShSTIeXuIuEelpxTolA3cBzn 0PR0cJuFJeKT2TReIdJOdX0RI45+M9obTO+Sb43zlxMzvkcixLwDIFYuOzhPaWRYsW10 l2PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender: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=PtRx5kmP0NvvqAi8Igdw/4VoANuEJtmf5UsyQtOgDos=; b=CaPo09INc+AIQnPo4gkQD6HD/V5fsDfDqCotst1QYUpLhcCrol/PVXEeVXA/hu8BSm UjCo4Be2TB7boGLoqZO+087GWJNjHHKkzjWeTJa0nx2VGVVq+9pzwGuS84ogODN8gH6h C2aIMvhDZ3+gq4AU5vim1+EB4nqor4Aiu4E94ziCv0JJ2pzOpvjcNzYBRtf9wHiFzi1w ONwTsfHgVL6bUUyW0Lx8d6r+Zd8VKBk0MLr3Rk/md77F5wx7An4hYEtJNZhaLYUYrK/D itNtPS0dCOveTncjecehRjh7KIwjJvUCK55nqL8urBVfnfvWVrEh0q1J1hVzDmgdiyfg hJAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@prevas.dk header.s=ironport2 header.b=CpK6EcbJ; 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 c2-v6si97599pli.77.2018.02.08.07.10.46; Thu, 08 Feb 2018 07:11:02 -0800 (PST) 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=fail header.i=@prevas.dk header.s=ironport2 header.b=CpK6EcbJ; 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 S1752166AbeBHPJh (ORCPT + 99 others); Thu, 8 Feb 2018 10:09:37 -0500 Received: from mail02.prevas.se ([62.95.78.10]:22395 "EHLO mail02.prevas.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751317AbeBHPJc (ORCPT ); Thu, 8 Feb 2018 10:09:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=1341; q=dns/txt; s=ironport2; t=1518102572; x=1549638572; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=gI40IG+o1+K8+2KBSSUwRrPmI5s08oIMCqp7izJHkEg=; b=CpK6EcbJvZC2GJgnn55bHBDrfmPsaQ26zpeSZOBTiF8ZJDJL/OFgzSib n1sNKgAMtQOAhYEDkt9uxlk0GfZlSTTs/ARIy/hM4XlpVPV9tmPGKR/Sf AE6wwOoipzE71mT6XwIbbDc0IE/wqjp6TATGrFtlP+oGnXvmO+wwWdRw7 A=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2FCAQBoZ3xa/2h+ugUNUBwBAQEEAQEKA?= =?us-ascii?q?QGJNJpLmW0KhTsCgwUUAQIBAQEBAQECA4Y1AQEBAyNWEAsYAgImAgJXBg0IAQG?= =?us-ascii?q?4b26CJ4UAg3eCCgEBAQEBAQQBAQEBJIEPg2qDbIIRgwWIOYJlBZJMkV8JgkyTM?= =?us-ascii?q?JQ+mAyBPDaBc02DPIR3jkgBAQE?= X-IPAS-Result: =?us-ascii?q?A2FCAQBoZ3xa/2h+ugUNUBwBAQEEAQEKAQGJNJpLmW0KhTs?= =?us-ascii?q?CgwUUAQIBAQEBAQECA4Y1AQEBAyNWEAsYAgImAgJXBg0IAQG4b26CJ4UAg3eCC?= =?us-ascii?q?gEBAQEBAQQBAQEBJIEPg2qDbIIRgwWIOYJlBZJMkV8JgkyTMJQ+mAyBPDaBc02?= =?us-ascii?q?DPIR3jkgBAQE?= X-IronPort-AV: E=Sophos;i="5.46,479,1511823600"; d="scan'208";a="3031129" Received: from dhcp-5-186-126-104.cgn.ip.fibianet.dk (HELO [192.168.0.193]) ([5.186.126.104]) by mail02.prevas.se with ESMTP/TLS/DHE-RSA-AES128-SHA; 08 Feb 2018 16:08:03 +0100 Subject: Re: [PATCH v4 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: <20180122092133.23177-1-rasmus.villemoes@prevas.dk> <20180125150230.7234-1-rasmus.villemoes@prevas.dk> <20180125150230.7234-2-rasmus.villemoes@prevas.dk> <20180205060705.cg3qywtqs65w74ee@rob-hp-laptop> From: Rasmus Villemoes Message-ID: <15ac0da3-e85b-c6be-366a-368934752018@prevas.dk> Date: Thu, 8 Feb 2018 16:08:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180205060705.cg3qywtqs65w74ee@rob-hp-laptop> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-02-05 07:07, Rob Herring wrote: >> +Example: >> + scfg: scfg@1570000 { >> + compatible = "fsl,ls1021a-scfg", "syscon"; >> + ... >> + extirq: interrupt-controller { >> + compatible = "fsl,ls1021a-extirq"; >> + #interrupt-cells = <3>; >> + interrupt-controller; >> + interrupt-parent = <&gic>; >> + offset = <0x1ac>; > > Use reg here instead (with a length). Hm, ok, but what does the length buy us? Should the driver just ignore it, or should it check that it is 4 and bail out if not? >> + interrupts = <163 164 165 167 168 169>; > > These don't look like GIC interrupt cells. Building this with current > dtc will have errors. Indeed, they are not. They simply record which interrupt lines on the GIC the external interrupt lines IRQ0...IRQ5 map to (the arm64 socs apparently have 12 such lines, but I don't know what they map to). I originally had that mapping in the driver, but I was asked to move it to DT. Is the problem the use of the name "interrupts" for this property? I'm happy to use something else (parent-interrupts, interrupt-mapping, ...) I find it very hard to figure out which property names have magic/reserved meanings. I don't see any warnings/errors from dtc in the 4.14 tree I'm working on. Does it require an even newer dtc than that? Thanks, Rasmus