Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1221150imu; Wed, 23 Jan 2019 12:52:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN6IdClkUZ2Wwr3fkxaMT6LfG9HSQNo+r2zk8yDI5EoWQqUqWpVwfZELPkGDDwIYs99447Hy X-Received: by 2002:a63:f552:: with SMTP id e18mr3428410pgk.239.1548276767169; Wed, 23 Jan 2019 12:52:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548276767; cv=none; d=google.com; s=arc-20160816; b=UCScDM9gmz/jrkFulILiuyuB3h8uoznYqVQk+rQ2g4yw9cJ0fvy1/noGsB8o/0aQyC krrseM057uh3W3bXGQQKroYK5Xq3XX6otbZ0gGjUje6e4QEMHk2AnJmIe35MTXuhpsEJ V1b5WueurYb8MTvteOyNzSEVrLjURiBfeCOxsNOS+Odr8wlplhdNnbiNFCULRIg5u74h IA4hU6GU2Nfd7A8WA99vSaGoh+/kuFO1Z2UKq+xbMAAjlCBH0lBSVGnfilEQcQwgUN5A t+Ltntzi1IIAWnVelpe2sayQ9UL5TuO0Nm79ShLvqzP+if35zKY8CtewYP5JkKDJVCOZ R6YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:to:message-id:in-reply-to:from:cc :user-agent:references:subject:content-transfer-encoding :mime-version:dkim-signature; bh=bXeu6E3QeLuaGp+qjeiDmBsnCZgMz+VXt93+l0l/4+s=; b=bH9fyMvF2q4k9Pi8z0cPuZFsPGYWPqfsXdhnEWeOTRz9ri+b/Z4cxJY09lTP5Sbjjs G+1b8bWYIPiAe1EWsPYTEa3CDpQrLWHs/siDSuFJcO5TIJXfqhF5xnnAxIGIt/ZIK28/ iKvBErVw2uNS2DQo69Cxj1EOMRaeakuEmt3Af8LOOw9ZepOCoPbTVP7rpOoqVXN/Y51J /ztmnjnBJc36dbfG34Pm/ThQHww580ISECeIiYdf5bc4/6oFsNtRLt4WtsR5diocVGH0 GhJBOTtUCUJmrwofQ37alhCk1TZLysDrvl7ZHmv/ipJad/u1MywTR9amHBsD5U7VZqhd Infg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="NkFT4v/5"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 187si20158025pfv.238.2019.01.23.12.52.31; Wed, 23 Jan 2019 12:52:47 -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=@chromium.org header.s=google header.b="NkFT4v/5"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726785AbfAWUwM (ORCPT + 99 others); Wed, 23 Jan 2019 15:52:12 -0500 Received: from mail-pl1-f179.google.com ([209.85.214.179]:33359 "EHLO mail-pl1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726356AbfAWUwM (ORCPT ); Wed, 23 Jan 2019 15:52:12 -0500 Received: by mail-pl1-f179.google.com with SMTP id z23so1770018plo.0 for ; Wed, 23 Jan 2019 12:52:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:subject:references :user-agent:cc:from:in-reply-to:message-id:to:date; bh=bXeu6E3QeLuaGp+qjeiDmBsnCZgMz+VXt93+l0l/4+s=; b=NkFT4v/5dG1GqD4cfER2tKz0Kka14obhhviwu3Z97gFffOhK2fxJcOEW9cwP0T/FMd 7gkASifh8pGw+r1TMz7wdmO3sRNU3K0O4pR9U+1OOCT+069X3hunH6nWXJqEM349MxlI 5cMgHVwOcDMqqtCpQGUZf9ZR5R7M09F4P+KbM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:subject :references:user-agent:cc:from:in-reply-to:message-id:to:date; bh=bXeu6E3QeLuaGp+qjeiDmBsnCZgMz+VXt93+l0l/4+s=; b=MpGDLFswvdZWGGB5CqXfl7rtGX1iS1sn9a+q/J9QUL/e95m8JZEgQ+qNf/l/3dTXsC 87NCVr/VFNhtcT3/Q6VTAb72u+Bl/II04rjaBvxnm4yZdzC5FlzU2kP1kIRg+UEzpkj9 GxPiI7He7rwsqTVKhJa9aTCZ5PS4t1hnX1YCgr7BJ7/Bwcznr8ypCfSmF+JdtoqzDPp4 7KJniXJXbv9iyJ00WzuKjCIm+fmZz0GCMynQZnLm1W+SVMGhw566krYiHFp6Z64nFoR1 ru8BSufZa4xi/vK6PpOc8WmNFjAzlDPk17h2+muGfofNUZgaFlEEQDduF7F/sErQMtsU mLMQ== X-Gm-Message-State: AJcUukcY/bzjSPwgzQzgRGh+lKUD0i7IFotllKn/MXtrXOPSNRk1UiTQ 8L2eHobN1auAvmO7biWtga41GQ== X-Received: by 2002:a17:902:1101:: with SMTP id d1mr3789052pla.136.1548276731494; Wed, 23 Jan 2019 12:52:11 -0800 (PST) Received: from localhost ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id d21sm27893569pfo.162.2019.01.23.12.52.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Jan 2019 12:52:10 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH 4/7] dt-bindings: sdm845-pinctrl: add wakeup interrupt parent for GPIO References: <20181219221105.3004-1-ilina@codeaurora.org> <20181219221105.3004-5-ilina@codeaurora.org> <20181229000714.GA3654@bogus> <20190107185113.GH14960@codeaurora.org> <20190109173111.GB22547@codeaurora.org> <154724884881.169631.9705938789464714812@swboyd.mtv.corp.google.com> User-Agent: alot/0.8 Cc: Evan Green , Marc Zyngier , "linux-kernel@vger.kernel.org" , "Raju P.L.S.S.S.N" , linux-arm-msm , Thierry Reding , Bjorn Andersson , devicetree@vger.kernel.org From: Stephen Boyd In-Reply-To: <154724884881.169631.9705938789464714812@swboyd.mtv.corp.google.com> Message-ID: <154827672955.136743.8509585166504871320@swboyd.mtv.corp.google.com> To: Lina Iyer , Rob Herring Date: Wed, 23 Jan 2019 12:52:09 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Stephen Boyd (2019-01-11 15:20:48) > Quoting Rob Herring (2019-01-09 11:36:56) > >=20 > > > >However, my main concern is documenting something genericish in a > > > >device specific binding. It looks like Tegra is trying to add the sa= me > > > >thing, so this needs to be documented in a common place. One question > > > >is whether wakeup is the only use or if this should be more generally > > > >a secondary interrupt parent? > > > > > > > Yes, wakeup is the only use of this interrupt parent. > >=20 > > Maybe for you, but I was wondering about this more generally. Should > > we encode what the function (e.g. wakeup) is in the property name or > > have something like aux-interrupt-controller? Maybe some platforms > > have some need for a secondary interrupt-controller which is not > > wakeup. Routing interrupts to other cores perhaps? > >=20 >=20 > I'd say it's not the interrupt-parent, but a secondary-interrupt-parent, > because it's another path that some GPIO interrupts will go through vs. > the "normal" summary irq line that uses the interrupt-parent. Maybe > that's similar to the interrupt partitioning that ARM is doing for PPIs > that only go to some CPUs? >=20 > We don't really specify that some GPIO is corresponding to the secondary > or primary interrupt controller for the GPIO controller in DT. If we > did, then we could do something like the interrupt-map binding and have > the index of that property be the gpio number and the interrupt parent > that it maps to (either summary from the GIC or MPM pin number). >=20 > interrupt-map =3D <0 0 &gic GIC_SPI 208 0>, > <1 0 &pdc 3 0>; > interrupt-map-mask =3D <0xfffffff 0>; >=20 > And then we would pass the 2-cell GPIO interrupt specifier (gpio# and > flags) through the table and remap it to arbitrary domain parents. We > could use this same design for the SSBI and SPMI gpio interrupt > controller where we're currently looking at hardcoding the base > interrupt number in the driver (0xc0) and then adding the GPIO number to > that to get the parent interrupt specifier. >=20 > It's sort of an abuse of interrupt-map, but I don't know if it really > matters because there isn't a child of the gpio controller that is going > to go through this table. >=20 Rob, can you please respond?