Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp656804rdb; Thu, 22 Feb 2024 15:43:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVglsm1Qj1da1lGv6SvIF7KW/0yFEAu10tMqoZEze9GvbAfaehc621ii1KsI178seSvnPQyT7ou/bhXQmfBlFssMBKADcHvwaVlK75gRQ== X-Google-Smtp-Source: AGHT+IE0RkKdnIgxRQQ6nrFVzlgM5OJdDKUzNJkXZAIU7euJ9JrDYMZEjLH/UcbUMy4JyR4Un7WV X-Received: by 2002:a17:90a:d598:b0:29a:1351:59d5 with SMTP id v24-20020a17090ad59800b0029a135159d5mr284599pju.25.1708645392766; Thu, 22 Feb 2024 15:43:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708645392; cv=pass; d=google.com; s=arc-20160816; b=dHxD/8zVZ/NDC/5L05xelwL4SzILuDHKJHLIYs4anaA+OxgM713JeXzbvrHvUeyDc+ hzBTDJk4C/6qLuGZ2hhnkF7g8UsX2wFQ8xNzk26te4UkmQkNOPLVZPIA7LATneyI7UH6 cbafOgOtjBSQzyMJ126JeYpNfJhf/ztxlAfjXqq0NfGAldyi3SjemMAKoG5uqt/5w/kN dbnQZDRTlToW0f3tDQgYhah3uv5TsnSqZuMaymXw+vJbOVvFgBc8kkVtBha4QTQQ5Cwk ypbqUesyRmF/z5rh0NVxHaU90/malsiX79+PF65f/TpEMYe342zxb/fJIxpGTKqK+zuQ u6uA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=G/nvPhHFRESNx5SPkU8gWeU9pake2Am/la8lRvhijW4=; fh=E807BcftKTTiaHLURLg4Z2Nv8i5yeOmoUGCGOIr2YWE=; b=bj6OLsWgU831c0ldSNl/867c34wDUM/U9lJMg7vjp1taVH+PmINjXCSDwzLYj7Ii/X L4FnP//to8PaKBnei9TfI6/XCWxoaX1rZUCoVmbD6dQC9k41B/bxZNO6qviZ+D2U9oRk 7M9m5mE8+LxsCuzJ05mP+0wcHdB6lAq0ApK7SCVNbrL3dxiUTzgu3UhuIkWQNzJMmOrd Ou9XtzFJpKj3rksfPwC/LY4u+V1Mu6VMr9vNqcTy2ACrJwawNK/4qi9iqnl/R2hGXY5F x6br9YCh6AYXyu24yOhPavioksG7yPtJyWVBURKb12h29M5bq0gNKu71maJiLDhmEeSc 6zFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jnJy0g8a; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77543-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77543-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e10-20020a17090a804a00b00299bceb07e2si98355pjw.11.2024.02.22.15.43.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 15:43:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77543-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jnJy0g8a; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77543-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77543-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 78687284516 for ; Thu, 22 Feb 2024 23:43:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09F6F13BAE1; Thu, 22 Feb 2024 23:43:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jnJy0g8a" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D6471CD25; Thu, 22 Feb 2024 23:43:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708645385; cv=none; b=g3oRLvnXnEb3urdrHToAbTx1ZuNAnDmGPTnEfA9BO4Nduo8GWyKnlQAp2Bemt1y/o5nWnoZ3kn9w1p3TSuH/75Kr8Hj5LV7uZ97PeJc+8Qx6d6LkpOfSQOKnrB6iuI1pMfOO1/rget5rz+GmTG9rNw6fRTG/9y/pE1ByQZvxQ8U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708645385; c=relaxed/simple; bh=orYPHvKEF7pNsfLnqS3JuQ7jmo0kJmxsHCs+Py+BljA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EvV6+WSXxJnujFkmJnR+9D1DyzRkGtkj1vPE2aQ0i6QnjgLuOuAr1CZRC3cyqXJKOqYS/CGG1/AiKMlV7xdJ3vps4WMzCs+wqoO3utX8nvFn2tKmhZ5KECbBQiVeN8T8MIzgh0o+ItTQLnklqW6BCRbreO135hjVXV2BTlppzME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jnJy0g8a; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3385EC433F1; Thu, 22 Feb 2024 23:43:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708645384; bh=orYPHvKEF7pNsfLnqS3JuQ7jmo0kJmxsHCs+Py+BljA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jnJy0g8aJUy/nsIbPKzZliYyca0yhygNbHrmb8qSxM9IRSUuonUBjN6cqCGiQPs7t sinQph2fUfALhfnfpUT+l0JSThKKjSVvJkRtH+chmJYXTaWkISRtTzM1H1qxPKZ7Z0 XLw1swd88spcG3rvy3Ts3unIJLjo5G5UCye+DlcyDHRtWAa9e26hKlFH3FGdmUrOU3 E0hiarafAkSIvMbvLMG/egu1oKGeUll0sJq9ExZ6oHzpX2Xop7tAqpemff2KWx6Yy1 kwE7TSSNCsvBNiIhxz/PEwmOGs2fh/vgnCYqVv/Pc0OH9RQQ8mDNbBnRfdiXSC7mUq RsVPZsDPDk7UQ== Date: Thu, 22 Feb 2024 16:43:00 -0700 From: Rob Herring To: Antonio Borneo Cc: Thomas Gleixner , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Fabrice Gasnier Subject: Re: [PATCH 02/12] dt-bindings: interrupt-controller: stm32-exti: Add irq nexus child node Message-ID: <20240222234300.GA3809915-robh@kernel.org> References: <20240216094758.916722-1-antonio.borneo@foss.st.com> <20240216094758.916722-3-antonio.borneo@foss.st.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240216094758.916722-3-antonio.borneo@foss.st.com> On Fri, Feb 16, 2024 at 10:47:47AM +0100, Antonio Borneo wrote: > The mapping of EXTI interrupts to its parent interrupt controller > is both SoC and instance dependent. > The current implementation requires adding a new table to the > driver's code and a new compatible for each new EXTI instance. > > Add to the binding an interrupt nexus child node that will be > used on the new EXTI instances and can be optionally used on the > existing instances. > The property 'interrupt-map' in the nexus node maps each EXTI > interrupt to the parent interrupt. > Align #address-cells and #interrupt-cells between the EXTI node > and its nexus node. Looks like an abuse of interrupt-map. You avoid adding yourself to the abuser list by putting it in a child node. Clever. (See list in drivers/of/irq.c if you don't know what I'm talking about) I assume the EXTI has 0..N interrupts. Just define 'interrupts' with N entries with each entry mapping EXTI interrupt N to 'interrupts' entry N. Rob