Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5136603rwb; Wed, 21 Sep 2022 03:47:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5gGFzg4pKAeJwYycG45Y3xKU/+wTMz+uxi8KIBIPLSSObLnwEbycCKxrnCYrKaeJCLnX7m X-Received: by 2002:a17:907:842:b0:731:3310:4187 with SMTP id ww2-20020a170907084200b0073133104187mr19371534ejb.578.1663757278064; Wed, 21 Sep 2022 03:47:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663757278; cv=none; d=google.com; s=arc-20160816; b=PMYQE8Or2Zl9cxcsEc3CQhQjgcHNXqMZnk8OuIDd6vCx1wbdRQH/32Nf3CoxFTwqRX wNRhYXl1bxE2kzwO6Ibt1kgd6+Jhqu5ksZX/+3shEFLZITSUr8rudLicPk5eplJWpm4W hLtSf42626sRIB/E/gwdmRZPvkapWa4LA5eQzi+S9x0O95N6p5I0yKoPu9PZP/AkkQoG nnt9P8MGXCRHkbjvuuXevOTJQ6IlAU0nBg4emFPXQ75IGmjpM11JMS2eDNdMVCUH6Xdu +6onnrPiQz5DobqBi26eZRwR18N11QCaxiijDz0gof2VQJcuFbpyafFZK/cnM0ZqIuJ4 MOGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wOAG2nHa6V+mQVTn24MXKEjrtz2FiEQdyWfc/VJPXp4=; b=Q9pLdJRSEzkoAh8/cNMPuaNS6+0RadSNbfoNTRYjxomX/7xiycCFHK5MgQ7XtB7gnF IPvO57ArswXjZptEj/50mMhJG2zSBKKvlJoabrzoVXNKKAf9L07JDLcij446m5AVZnh+ Wu2nugQ7MYajmY3DgfuTNGXUeDcA+lwm2Wn/ROOWB0tJDwtMHGkzVcQLMbIkoJ8MtTJW UEuUSnf3HZx8eASzBmaqhr+phmcpooRIYl1yCsltM2tnSiEHQK5sKX4BdV7iFKLrzLeH Mhy5XJLTiVCw+md1UloC2OU1qS8pxlziZi3sWia+6YJe1GAnLOKHRZKcN0YRLCJNKs+2 goPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e5OcUsAv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s21-20020a170906169500b0073d8b93700csi1849324ejd.165.2022.09.21.03.47.31; Wed, 21 Sep 2022 03:47:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e5OcUsAv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229913AbiIUKUn (ORCPT + 99 others); Wed, 21 Sep 2022 06:20:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231425AbiIUKUV (ORCPT ); Wed, 21 Sep 2022 06:20:21 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA08685AAD for ; Wed, 21 Sep 2022 03:20:19 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id p5so6341293ljc.13 for ; Wed, 21 Sep 2022 03:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=wOAG2nHa6V+mQVTn24MXKEjrtz2FiEQdyWfc/VJPXp4=; b=e5OcUsAvRzypoYJDGBslX71DzA8KWabXMVX1vSTnJfgvbDoWQe9lySb5EMW+2q1x+m 6/mV9CPyDldV0G1YA8abb9/kiNN60Tk+2Tn9jELj+DnAvO47JPVfmvwSaEYbp+8UiBP3 AQ9VS3j9dnj/4elK6HU8XANNv3/351mR7HwvowWW5rSB1zXDhxugoBvRR+5skUpHr+E8 wemp9ZgtZt4ETUEseOBpne0jQ4Qqod5ir/XyqhLyLzOpECZYKiUmKjNB44jGhvdikUbn Zc0Noc9sRKfRqZpm0bbsYOeCbrke0yhqnGqA0qnGh4gd7R7ZYUTgOI8WNIiWtlnTb+eN deMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=wOAG2nHa6V+mQVTn24MXKEjrtz2FiEQdyWfc/VJPXp4=; b=WlCQxYtb9oF9OA2exbshDrOLQcByu2GjIW4KiZMp9NaSS5Xw+hZEB8tzhe37Vf8bcp vIvCKtEZltmdswg2ArqKzw/YNlvOZ9BrBzG6vexNeIiIHMS84of3PQ3uJgCC+HoVcM24 aVpuduvuOIs6Z5loiIO03gAN5Whe3nOl6YOdDYc7i8Zk9uoBrcWiYJA8h3xdVjIx5odZ i+irloE+uSnkIp+Jletl76KPO++JQGiiuHC2SKdTesbknayjsnq1X10NclGMfcSOTOKe v865VK2UONGvy4omL/5h7J5gFkGyo0W60psGt2+DiwxXeENWmds0HYubgwcufiX2iqoW JiVw== X-Gm-Message-State: ACrzQf0w4b4QlI9mJVtjhw7qf9mjAl0uge0fbAgfCkQvZOjBFx7XMkAi tupkYOJeDRRvx+slHdD/osnVuQ== X-Received: by 2002:a2e:9dc6:0:b0:26c:5d06:e18 with SMTP id x6-20020a2e9dc6000000b0026c5d060e18mr2259266ljj.64.1663755617941; Wed, 21 Sep 2022 03:20:17 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id b3-20020ac25e83000000b0049a6a9bc0dcsm368555lfq.134.2022.09.21.03.20.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Sep 2022 03:20:17 -0700 (PDT) Message-ID: <9f6c0330-b1e8-b71c-9883-95cbb6924b08@linaro.org> Date: Wed, 21 Sep 2022 12:20:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: Similar SoCs with different CPUs and interrupt bindings Content-Language: en-US To: Geert Uytterhoeven , Robin Murphy Cc: Rob Herring , Krzysztof Kozlowski , Andre Przywara , Conor Dooley , Samuel Holland , Biju Das , Chris Paterson , Atish Patra , "Lad, Prabhakar" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-riscv , Linux ARM , Linux-Renesas , Linux Kernel Mailing List , Arnd Bergmann , Olof Johansson References: <45d2e6c2-3b4b-5720-0431-002c74b1f9cc@arm.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/09/2022 12:13, Geert Uytterhoeven wrote: >> 4. Put all the "interrupts" properties in the SoC-specific DTSI at the >> same level as the interrupt controller to which they correspond. Works >> out of the box with no horrible mystery macros, and is really no more or >> less error-prone than any other approach. Yes, it means replicating a >> bit of structure and/or having labels for everything (many of which may >> be wanted anyway), but that's not necessarily a bad thing for >> readability anyway. Hierarchical definitions are standard FDT practice >> and should be well understood, so this is arguably the simplest and >> least surprising approach :) > > Thanks for the suggestion! > > It does mean we have to update 3 .dtsi files when adding support > for a new device. As long as all DT changes go through the same (soc) > tree, we can easily manage the dependencies. If the new nodes are disabled (in main shared DTSI), then it would not need immediate update in other arch. However enabling it in other arch would require cross-tree pull (AFAIR, RISC-V changes do not go to SoC tree). Best regards, Krzysztof