Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1070912imj; Thu, 14 Feb 2019 00:24:07 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ8o+BgyryHcrVuvRdkD2DYsz+GDjD/G/kgGFHAi4F7YsO35BfqKTQTYl49l1UGoC0Z1c9T X-Received: by 2002:a17:902:8e8b:: with SMTP id bg11mr2927391plb.332.1550132647226; Thu, 14 Feb 2019 00:24:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550132647; cv=none; d=google.com; s=arc-20160816; b=IER2gTDZgv/A7csPWNkhOUdedBgvWan9CDnCGilUaijOevXcyW4V0GsTp4J2cd4weR lmie5gMRbmWktYewa60n1qPl9pDpRhfJbqaVqeqDic1bHXyXM9aYgnkMhxpTUUzQuLxg UKampLE3PWxe+q9AeEFGUBg1kt699sldEdhVbtp3KHH30wSN1RR/jXJmpKflq9sd4iD4 hB38DY32ChFUxZLq8AMWcbz+CZx5Oghd1e6uwRt68tosCER/bobdNocppFqDd4TrRKzB QnqD2NGCPgqT656eT4ymN8+4y8vPDBvh8TUk31rtAeCJfaXQJmNmE2JN+AQCd+jbrCYY C8TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TQCmFVh7Tf8A1zsUWhrcyFMJXEj/kwdqYS8gaLBDDSc=; b=XG9mZfdbVLiq7voydzxoPs1NHomFdr0hLM0zyNakzCs6GV1URSYjmQa3vm39tTB+2Y dXVCq1/wGWy5Higs7JqRNDH1wNbZX7tHEUGxKIA4zXTwq071acS2Dpec3a7pKccIp3PC Bzn2i6vSv4z9uW9mcSIcoSg5Z4Rw96H2k862C2t3wkrfR532MPbs0Nn2y5R6ldTQkom6 LRSCvwu1qxUYvWNR38HSMRf3Yvtf2AQtepAD/Ax3IC/S24693YAAgUrizJpCYevIwVHk eAGx+tASgGyfQv1qCkzTqfH0EwflAdEC07u7stTluDLxpY+tOMkhk8CTKDHlJo3F/Mt7 TEPg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r9si1782202pgn.471.2019.02.14.00.23.50; Thu, 14 Feb 2019 00:24:07 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731448AbfBMUkb (ORCPT + 99 others); Wed, 13 Feb 2019 15:40:31 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:38870 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbfBMUkb (ORCPT ); Wed, 13 Feb 2019 15:40:31 -0500 Received: by mail-ot1-f67.google.com with SMTP id m1so6679455otf.5; Wed, 13 Feb 2019 12:40:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TQCmFVh7Tf8A1zsUWhrcyFMJXEj/kwdqYS8gaLBDDSc=; b=YlXD5nusrDAgLBB2y2cAUPVCeiN5AaiMflwCojIid0XdB2LzKhKVha6dJRerPoRnM+ LISbQ/RocIga9cV9AQYDXth9lFAA6gtoffmrfj6LsG4gO27uZEBkKf5SH5n7G/n/EQNZ Gts2NzHe+zhMBDMdJQn6PMvBG1vzaPIs/emrHI2gz6+f1qtaEb9QpAX4+O3ytHMmgPgy 7qcc5pTYwkNBNO5RwCfySgoj3GPznC4tMUUxuTQaK7DPicScbgc0/5gVL1mq2p4lAZTU sEDkBUdSL6i3UNPsCbcZsGCBMNUU2Z+x6yIUyYioxfZLn49aX6cunsr9HZM1m9Ips7Cb spYQ== X-Gm-Message-State: AHQUAub5+c9FyZS/jtTSbjNlAoMTwsfI7jY+fbeMnWrqVBivoCqaDGXs 1gQaAQMqv/9QW16WCUutHg== X-Received: by 2002:a05:6830:1292:: with SMTP id z18mr11015otp.161.1550090430244; Wed, 13 Feb 2019 12:40:30 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id x19sm125148otp.10.2019.02.13.12.40.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Feb 2019 12:40:29 -0800 (PST) Date: Wed, 13 Feb 2019 14:40:23 -0600 From: Rob Herring To: Tony Lindgren Cc: Lokesh Vutla , marc.zyngier@arm.com, Nishanth Menon , Santosh Shilimkar , tglx@linutronix.de, jason@lakedaemon.net, Linux ARM Mailing List , linux-kernel@vger.kernel.org, Device Tree Mailing List , Sekhar Nori , Tero Kristo , Peter Ujfalusi Subject: Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings Message-ID: <20190213204023.GA21941@bogus> References: <20190212074237.2875-1-lokeshvutla@ti.com> <20190212074237.2875-6-lokeshvutla@ti.com> <20190212162247.GK5720@atomide.com> <6a274588-0fb6-2ddf-3bcc-f9e4d849ac07@ti.com> <20190213152620.GS5720@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190213152620.GS5720@atomide.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 13, 2019 at 07:26:20AM -0800, Tony Lindgren wrote: > * Lokesh Vutla [190213 04:26]: > > Hi Tony, > > > > On 12/02/19 9:52 PM, Tony Lindgren wrote: > > > Hi, > > > > > > * Lokesh Vutla [190212 07:43]: > > >> +Example: > > >> +-------- > > >> +The following example demonstrates both interrupt router node and the consumer > > >> +node(main gpio) on the AM654 SoC: > > >> + > > >> +main_intr: interrupt-controller0 { > > >> + compatible = "ti,sci-intr"; > > >> + interrupt-controller; > > >> + interrupt-parent = <&gic500>; > > >> + #interrupt-cells = <4>; > > >> + ti,sci = <&dmsc>; > > >> + ti,sci-dst-id = <56>; > > >> + ti,sci-rm-range-girq = <0x1>; > > >> +}; > > > > > > Can you describe a bit what the "ti,sci-dst-id" is above? > > > > > > These IDs seem to be listed at at [0] below, but is it really a property > > > of the hardware? Or is it some enumeration of SoC devices in the firmware? > > > > This is the way that sysfw describes the hardware. In this case it is GIC and it > > is identified by this ID. > > If this ID is an enumeration in the sysfw rather than an actual > hardware property it should not be in the device tree. If so, > the device driver should request the id from the sysfw based > on a name. That is, if no struct device or device phandle can > be used. > > The problem with using enumeration in the dts is that it > requires maintaining the dts, driver(s) and possibly firmware > in sync. And that might change between SoCs variants when new > devices get added and removed. IOW, don't repeat h/w designers mistakes and make your firmware discoverable. We have DT only for what is not discoverable. Rob