Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1689566imj; Fri, 8 Feb 2019 05:52:30 -0800 (PST) X-Google-Smtp-Source: AHgI3Iai8ldSWLqrkY3jjF6OjhK9d6PZW5doJqh85XqnBx+iml0EMlkuVEOoS6+26kNYJwQUdjHh X-Received: by 2002:a62:4e83:: with SMTP id c125mr22526503pfb.101.1549633950786; Fri, 08 Feb 2019 05:52:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549633950; cv=none; d=google.com; s=arc-20160816; b=u6f4aUNTybH6J7jkMjftZNF9TYWiJrahbUjLCXH7UUtNhUGnpKIVDc4kR0l4Gs+5dl +OxmmAOzV4e6lHc5auLzZRRR6Res9cgSgtSeY8Tn4xwAWgPR/FgBWxrtP9WDHJv8+eqr cZSIcgeqmDVLamIW8KY3Sz1tcW4xEI6wgf4v6j8pv9JNUdvKzbvAYQgrlZ/C0DAWbn+y t1KPDmyeCe+0PRF0vTI2XZxMqI++yYtwKq8XijExfFd0MnIt2ILZZifOE01midxPm4A1 t7BYS/KR4Eh6+GeTgELFRnBSw6LzIStNxznhkfGrQ7ExC/6oGHNMdR/zr4v4k3irWvPu 1Yjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=PInxNDhRMPt7VBa2yep5M8Vl7JTh2r2fIfH8k75T0uo=; b=Fj/fJCr6WcrMzrB+NeFupAJ/85Ct7HCHqox5ufdKL4pUWT21ylojNqT8kPpIKh6+yK k4eEtsJQhKGdMwVJnuP6RLm6hz75B/iIggpJhU5O7Q4QRkzqbdkj3GAvf6Pl8FRh+pT1 JPFF4cnnfS2vYmMvHM9zZSM49h7LjBq6qQUQWQRXUVUd5SCLuVpmU4REs9b04PlfQS5b Dm6s3HI1YZpnY33mrPnoSQpvithj7aWN9a0lJqi1OxhDPv8a39aMT9QsyOPlL+ulZTIe yV4aBZ13IprJYIkb2+ZSoHwMxTUBQn/tRxLmaHnhD7knuDSECON/kJwjzlFB2FgGvE7T o+Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="j/0xva+q"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d13si2183706pgh.196.2019.02.08.05.52.15; Fri, 08 Feb 2019 05:52:30 -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=pass header.i=@linaro.org header.s=google header.b="j/0xva+q"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727870AbfBHNvg (ORCPT + 99 others); Fri, 8 Feb 2019 08:51:36 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:45250 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727760AbfBHNvf (ORCPT ); Fri, 8 Feb 2019 08:51:35 -0500 Received: by mail-lj1-f193.google.com with SMTP id s5-v6so3012579ljd.12 for ; Fri, 08 Feb 2019 05:51:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PInxNDhRMPt7VBa2yep5M8Vl7JTh2r2fIfH8k75T0uo=; b=j/0xva+q5ABK30VwSTKQc1JZ8A55+OaDlCVzUlPvKf6Xy6+Ld7rYoumSJt3ySiTXpC OC0xWF79TXaRYxgGgmREnS4mRL1HfUBiRefvJKFAvPH7tZZIHCKZW57Ag5EMhaabNVk0 nA/2p50p3+9gcX3v5IDt7iPUXus4wdHJhY7hXaVNPX7FWaTAECP4AUQwXIqJlR7eC2t5 HZ7jiWHYOMjizclycjZWsH1+/RCFZXh848PKxLs440Jd6YqxiCSJDvJYcGpQmCHd4zpE NlHH9drKDoNeBOuTYYOMuA3gOtWGXlY9j12vwKODk2xL/tYLCdmBwpsvDjs3iSR7afII e+tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PInxNDhRMPt7VBa2yep5M8Vl7JTh2r2fIfH8k75T0uo=; b=NjxINbEPFsYGPt3M/yMdAlR0M07GcvTI6l/SmpuH08cxiG6xa+FzHPGoyhfZ9UEZDr aQRDly2/MtEyxveMUbOe1Fqqim+Bu0LDK0QSZbXGgIcLuqSMnbUsOBMvJh4j2jFQahIf 1hv8XNMlgH1DrQHWGFXQLAftkdQqyhmPLK5LtFdpS4Q09n3QRYfGixkgYXRJmy0fxJFG VCAPlv11A920o2Pa7WWmckXxgDHyQQp6ij6/sALOH+GMias+sDlPWZqUE3nR2G6wl7aw bC1cY0mMHuj7uDJFOQHCueOLOCFdEHvbE47IhwDZQUyrSwlXtv4TK3RI3Oe6+uhGcHkh FG7w== X-Gm-Message-State: AHQUAublBJCpfgVcbYSB3Kb4XJhm3RnaM1pVPZrdIACFLDEZ1oOZqglb W5FFYMTh0MeZ1qcowGEOUi9d5vU9LO60YgG2j9pkGg== X-Received: by 2002:a2e:6503:: with SMTP id z3-v6mr13767323ljb.153.1549633892650; Fri, 08 Feb 2019 05:51:32 -0800 (PST) MIME-Version: 1.0 References: <1549290167-876-1-git-send-email-rogerq@ti.com> <1549290167-876-2-git-send-email-rogerq@ti.com> In-Reply-To: <1549290167-876-2-git-send-email-rogerq@ti.com> From: Linus Walleij Date: Fri, 8 Feb 2019 14:51:20 +0100 Message-ID: Subject: Re: [PATCH v2 01/14] dt-bindings: remoteproc: Add TI PRUSS bindings To: Roger Quadros , Marc Zyngier Cc: ext Tony Lindgren , Ohad Ben-Cohen , Bjorn Andersson , Suman Anna , David Lechner , "Nori, Sekhar" , Tero Kristo , nsaulnier@ti.com, jreeder@ti.com, Murali Karicheri , woods.technical@gmail.com, Linux-OMAP , linux-remoteproc@vger.kernel.org, "linux-kernel@vger.kernel.org" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 4, 2019 at 3:24 PM Roger Quadros wrote: > From: Suman Anna > > This patch adds the bindings for the Programmable Real-Time Unit > and Industrial Communication Subsystem (PRU-ICSS) present on various > SoCs such as AM33xx, AM437x, AM57xx, Keystone 66AK2G SoC, etc. It is > present on the Davinci based OMAPL138 SoCs and K3 architecture > based AM65x SoCs as well (not covered for now). > > Signed-off-by: Suman Anna > Signed-off-by: Roger Quadros (...) > + pruss_intc: intc@20000 { > + compatible = "ti,am3356-pruss-intc"; > + reg = <0x20000 0x2000>; > + reg-names = "intc"; > + interrupt-controller; > + #interrupt-cells = <1>; > + interrupts = <20 21 22 23 24 25 26 27>; > + interrupt-names = "host2", "host3", "host4", > + "host5", "host6", "host7", > + "host8", "host9"; If thsese interrupts are mapped 1-to-1 to a parent interrupt controller then this is a hierarchical interrupt domain and then these should be handled locally in the driver as offset from child to parent statically encoded in the driver. Several old drivers and old device tree bindings make this kind of maps, but it is not how we do it anymore, if we can avoid it. To be able to use hierarchical interrupt domain in the kernel, the top interrupt controller must use the hierarchical (v2) irqdomain, so if this is anything else than the ARM GIC it will be an interesting undertaking to handle this. The more I understand of hierarchical irqdomains, the more of workarounds where we should be using it I see, we really need to spread this knowledge. Using it requires a lot of upfront work sometimes, sorry about that but the end result is so much better. Yours, Linus Walleij