Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3716369pxb; Tue, 26 Jan 2021 02:57:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqNHc0vz7aHofPjeJj20UG7K7QP4Ph0HMwuwr2D2gSKpbSSVF3Uk9mprzceJXJRmj/wD82 X-Received: by 2002:a05:6402:270d:: with SMTP id y13mr4082996edd.149.1611658672223; Tue, 26 Jan 2021 02:57:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611658672; cv=none; d=google.com; s=arc-20160816; b=dHt/O5HTiXAP3XC5WOPP3LFjJ0UqUY7+MveZ0rrDdGhrx2BUrUUrhFDJwc5RGnldCo +Xgvgt6x2BQ3Zvk8VnuJDlUX/M1AvvZWq1vvVCYf6lbzdF6DvzHCJ90oDMiqYlRO/bhS 5GquRHYNJ+GPE/htyPm/g+B6koz2jYHXM0hBrNANR8pt86hJ7iAo84pGYrskDP9f95Cv 3JAbe9JNqLR3fThX8LBDUy6PhxgFT6V6jcgThVa82o/M0GEaWquyfVB3rjx0Uot8FmfZ XJELT3J1VTlMy7gAbA6XbTdToD6aW+qxWfxTuU8Z0HDHnD3LrcDvviOsCJ6IZGFeR41A e5kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LwqYiU3oRlYo9FShj+CR8F39sEMecoUEsL8JexS7mlk=; b=APJL27Gvbx3SnRXh06mQ5U3LNajCsUO8s8DdiTdw2su3RMmJSbVqx/DmadqlZsrVng iyCtQsVk3ji9nDY+arqJbj5DlXIxc7qtdbcIL/CBUMIXi4W4so4gPvSOzuL/F4+WMqLt wqNiTle2T+dPBB5zV5RHGQlxLynpqHgAKmbdV1JjBKLQJIfw0DxqeL4zhiPIwk3CpqJF PhrPgFDDSQsWztisPPcULr3h5kpQa9OGw1X8TYWigAoVs+q4rUx4s07+Z8dLLTlsAD8l Xh+d5bRpOMIplLm7o4HQyMgPTz/ihCdQW+3ViOIGKFl6nbMYLFsAXQGkku43m+BnHmJZ 9JPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ytpa+AJg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u22si7014203ejc.544.2021.01.26.02.57.27; Tue, 26 Jan 2021 02:57:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ytpa+AJg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404538AbhAZKxb (ORCPT + 99 others); Tue, 26 Jan 2021 05:53:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:42012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729771AbhAZCsF (ORCPT ); Mon, 25 Jan 2021 21:48:05 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 865C322EBF; Tue, 26 Jan 2021 02:47:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611629244; bh=LwqYiU3oRlYo9FShj+CR8F39sEMecoUEsL8JexS7mlk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Ytpa+AJgfdSkPhWvfrCLezbbz355uloVnAK/2fKFQowbfA7lckWbiPn6NoxlBkrnu 5lfD+IlN9yrOP5buiZRptqOt56rvqd0mOQyYpSXM4E8NT/ggkTGpHV/0HLoY5D+EiY YMjJhjvEBNl1LKp5ZjV97nYWBX08ak0aS0XtjjaepdSTfopPsNCBTYQcf1qIDrn+29 n/wtiPxcTkTFBUmUA7G/gke7Z0eytD8X8ZFXJUM5vLerJnOTKJhj2m6ZWdz7NftPJO jfsrRHCYxJ67dpXzOFr5MBwDARwWlRonY5N0c+V6+6YiCYvJPchobIAFYxH80IznUW dqr3/w0ervbYQ== Received: by mail-ej1-f45.google.com with SMTP id ox12so21016791ejb.2; Mon, 25 Jan 2021 18:47:24 -0800 (PST) X-Gm-Message-State: AOAM531LUtRKVvxE8UkeGh+nwI1tehCA1EAYu7KK62B8gromemeBM635 ktJcCAAwjIbhF7B65Sy/05pKcql9JBih+AXtPg== X-Received: by 2002:a17:906:a94:: with SMTP id y20mr2013640ejf.525.1611629243021; Mon, 25 Jan 2021 18:47:23 -0800 (PST) MIME-Version: 1.0 References: <20210115205819.19426-1-s-anna@ti.com> <20210126000443.GA1223706@robh.at.kernel.org> <8f4a47f8-18dc-cb73-10db-033e5e5adb25@ti.com> In-Reply-To: <8f4a47f8-18dc-cb73-10db-033e5e5adb25@ti.com> From: Rob Herring Date: Mon, 25 Jan 2021 20:47:11 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dt-bindings: irqchip: Add #address-cells to PRUSS INTC To: Suman Anna Cc: Marc Zyngier , Thomas Gleixner , Nishanth Menon , Lokesh Vutla , Sekhar Nori , Jan Kiszka , David Lechner , devicetree@vger.kernel.org, linux-omap , linux-arm-kernel , "linux-kernel@vger.kernel.org" , Grzegorz Jaszczyk Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 25, 2021 at 6:16 PM Suman Anna wrote: > > Hi Rob, > > On 1/25/21 6:04 PM, Rob Herring wrote: > > On Fri, Jan 15, 2021 at 02:58:19PM -0600, Suman Anna wrote: > >> The '#address-cells' property looks to be a required property for > >> interrupt controller nodes as indicated by a warning message seen > >> when building dtbs with W=2. Adding the property to the PRUSS INTC > >> dts nodes though fails the dtbs_check. Add this property to the > >> PRUSS INTC binding to make it compliant with both dtbs_check and > >> building dtbs. > >> > >> Signed-off-by: Suman Anna > >> --- > >> Hi Rob, > >> > >> This patch is also part of our effort to get rid of the warnings seen > >> around interrupt providers on TI K3 dtbs [1]. I needed this in the PRUSS > >> INTC bindings to not get a warning with dtbs_check while also ensuring > >> no warnings while building dtbs with W=2. > >> > >> I would have expected the '#address-cells' requirement to be inherited > >> automatically. And looking through the schema files, I actually do not > >> see the interrupt-controller.yaml included automatically anywhere. You > >> had asked us to drop the inclusion in this binding in our first version > >> with YAML [3]. Am I missing something, and how do we ensure that this > >> is enforced automatically for everyone? > > > > interrupt-controller.yaml is applied to any node named > > 'interrupt-controller'. More generally, if 'compatible' is not present, > > then we look at $nodename for the default 'select'. In your case, you > > didn't name the node appropriately. > > Thanks for the clarification. Yeah, I didn't add anything specifically, since > the expectation is interrupt-controller. Should I be adding that to this binding? No, either interrupt-controller.yaml needs to learn a new node name or your node names need to be fixed. I prefer the latter, but if you have more than 1 and don't have a unit-address (and in turn a 'reg' prop) we'd have to do the former. How are the interrupts controllers accessed if there's no way to address them? > > > > > We can't check this in interrupt-controller.yaml because #address-cells > > is not always 0. GICv3 is one notable exception. > > > >> > >> regards > >> Suman > >> > >> [1] https://patchwork.kernel.org/project/linux-arm-kernel/patch/20210115083003.27387-1-lokeshvutla@ti.com/ > > > > I've commented on this thread now in regards to #address-cells. > > I suppose I still need this patch to be defined to unblock the ICSSG nodes > getting accepted by our dts maintainer. Care to give your Reviewed-by for the > change? Or I can spin a v2 with $nodename added as well if that's needed too. No, I don't think you have to add #address-cells. We need to fix the warning in dtc. Rob