Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp329483pxa; Thu, 27 Aug 2020 03:38:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZQKewsWgUZabaRf5sI5myDD2PujO6dRv2sfv3jxtcV0o6uDx2euntPMh+nAVsQfGDI1T8 X-Received: by 2002:a17:906:f8d2:: with SMTP id lh18mr15483633ejb.363.1598524702041; Thu, 27 Aug 2020 03:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598524702; cv=none; d=google.com; s=arc-20160816; b=pEdZlA2BIvcNU1kefrqsZNp910lFARlcSm+Yttw5nuz1kW1Z+vbgYtN9B7hDJxUmLY WdVLWEnSSifXldWwkwHPYpzVCmm6JgoYL0rY5IGo6+Qen+81ooks/C4SjhV8MP8z+pr7 nR7PYZ+peqYj+vGmyC/4kVgsj5+yuPdMrrMBnlHtR0z4NhuKR7F+dezy5ruDbWON0uwL xXSC7yp/kw6jHNWScYLiFSb7XtqE6XOcU7zjO79WJTnotHdtt8gRrlVJldEbrSyLol64 JSfCYmSnYQUiTgI6MUIy6MHEQ6UjFjOCPCNFGAy4QtlnZTAVUl7wPJJVT70Aujd17f0x FzGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=G1jMLZ0SpHIOZmWoK1vHTYGtirbwpNA8v/2qjNofZIM=; b=nTesuajOq/WQOXfP8yiWaO5w6AigP84SeudkHCSSPrr61Z2/dQfakn/I9L9ZF2bIY8 f/zrSW9NDA8hHqHB4soWf5fyYrSB5DMS1Q4qnQpkC3ySzJN/zapG+NJUjvsAZe129Dpk Sf0bA3riPQo76W7Dfz3ZiKgDgGK7Ya7jx8DGdpyAkUSyGpJrX2SG4byi06+mzfd7LnSh vg4MRlgAPQFaLYv15TAOGJjHklUxbtWM3FGAaNmxFmuQkAiphGSM2F7sLop1ZLT0k8Y6 s1B/iNa0huK6F6Nnpy8u8C0zo9UlzsqCXEGu0YCYkjPO3no/DBt/8EsdTd1Te/mDt0J3 6JGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1QJbiyzN; 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 l26si1039053eje.138.2020.08.27.03.37.59; Thu, 27 Aug 2020 03:38:22 -0700 (PDT) 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=default header.b=1QJbiyzN; 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 S1728358AbgH0KfL (ORCPT + 99 others); Thu, 27 Aug 2020 06:35:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:49764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728172AbgH0KfJ (ORCPT ); Thu, 27 Aug 2020 06:35:09 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7D7AE2080C; Thu, 27 Aug 2020 10:35:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598524508; bh=j53l6xpN5pfCrGpF8KAKqigp2K/D3ZSlNkM8qZH4iBM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=1QJbiyzNg3t5cOLZnLALBry05iDYnUfmlvxdMa+gNBq+poiejYDO/HotOcgm2kQrr OCvUO1JJ0veZ52Vd9ETYHdmWCcvQp7Sgv9Q+8D/+HNX9Y+2VVnBweShMgDbzgzeKLu OMBNP7tvMokoJgPZOtwj/knq9U5MtWlwARObRb+4= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kBFFK-0076Gl-U5; Thu, 27 Aug 2020 11:35:07 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 27 Aug 2020 11:35:06 +0100 From: Marc Zyngier To: Cristian Ciocaltea Cc: Rob Herring , Thomas Gleixner , Jason Cooper , =?UTF-8?Q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-actions@lists.infradead.org Subject: Re: [PATCH v5 1/3] dt-bindings: interrupt-controller: Add Actions SIRQ controller binding In-Reply-To: <20200827100629.GA2451538@BV030612LT> References: <6bd99d4a7e50904b57bb3ad050725fbb418874b7.1597852360.git.cristian.ciocaltea@gmail.com> <20200825220913.GA1423455@bogus> <20200826214220.GA2444747@BV030612LT> <20200827100629.GA2451538@BV030612LT> User-Agent: Roundcube Webmail/1.4.8 Message-ID: <64580e3b9acada6ff4ae9fdef02ac304@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: cristian.ciocaltea@gmail.com, robh@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, afaerber@suse.de, manivannan.sadhasivam@linaro.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-27 11:06, Cristian Ciocaltea wrote: > On Wed, Aug 26, 2020 at 04:48:38PM -0600, Rob Herring wrote: >> On Wed, Aug 26, 2020 at 3:42 PM Cristian Ciocaltea >> wrote: [...] >> Ultimately the GIC trigger type has to be >> something. Is it fixed or passed thru? If the latter, just use 0 >> (IRQ_TYPE_NONE) if the GIC trigger mode is not fixed. Having some sort >> of translation of the trigger is pretty common. > > Yes, as explained above, the SIRQ controller performs indeed the > translation of the incoming signal. So if I understand correctly, your > suggestion would be to use the following inside the sirq node: > > interrupts = , /* SIRQ0 */ > [...] Please don't. If you are describing a GIC interrupt, use a trigger that actually exists. Given that you have a 1:1 mapping between input and output, just encode the output trigger that matches the input. M. -- Jazz is not dead. It just smells funny...