Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp291849rdd; Tue, 9 Jan 2024 04:31:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEfsdPFTwTeDnt+FWJspBMbPdNg8mWWpADScg+uBCf+aKQYqgL8LR+ky56TojACwb7ePC0W X-Received: by 2002:a05:6a21:279c:b0:199:f43d:6ce4 with SMTP id rn28-20020a056a21279c00b00199f43d6ce4mr699845pzb.50.1704803460128; Tue, 09 Jan 2024 04:31:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704803460; cv=none; d=google.com; s=arc-20160816; b=VGV72C/LfSlfE5eHpIAQl6zi7Aw3tkCVdJp6Mu8iaaT10P1RL/2XM3lQvBPQz1Glel v+lV/BPTny0Ezw1xfE53G/6FR0/Da7x9b7/M3CzgV/awcdI1M3zRGOnAvulbTh9mcTPQ vfBKbE0LDlRrCtpi15pQvFMuyaRwpCksqCLyRu3H27aaf0qQOAhzA/ofMpIhuij5iHcp 4YY47arlTIBeoLTWSr/+MLnTRBjKA5OaTilabFfEIzttp8KqPO4gUd6K8r8P03vS7tNa IVOxe9OMgvNQXabFscKVhIXhobdHJcNlsKSIYxc47UWOu8m+7+lViJeoppa5keM9yC8Y 9CHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=W6bnxa+GSR1FpCAvVqbsQV97G8p0dAq+kFC9sgXphqE=; fh=3JU6YNBOqvZEumi8pm7+UQTjjpMelwIQbV0mavieXOQ=; b=q1meMt7uzrVYFBuL3Au5yZFVrDBU5RjNEOxMjPYiCXElnitjbPISOHiF5iVhkXOuCQ qAifkwY86uPMej7+X4QCNo2STWe/YSQLUSqaaYUTMQedl0RBt1YTwtCVgzX9VMBLNFzj O82N5Zr8TAC3U15IkR+YytFFJ5i1ycfzb5z1FIpEyndwEGy14yQfs6193/aGHYz1H49g x6qPiuDiBgnThHjYWqfta99yyc8/m2HJD7PZrtxEQtcCyDiwbVEgWoV6OXyxzSI2domU PDCCoQ9roKQJqg4s93+qKFiayHpbU0kaek0xZ8LmAqkGi4Wnk5RstoDvYZtqkutDUFTj IDgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=chSnIHus; spf=pass (google.com: domain of linux-kernel+bounces-20844-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20844-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id bo10-20020a056a02038a00b005cdbeb82287si1385420pgb.128.2024.01.09.04.30.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 04:31:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20844-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=chSnIHus; spf=pass (google.com: domain of linux-kernel+bounces-20844-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20844-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 B327C285FBC for ; Tue, 9 Jan 2024 12:30:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B214E38DD8; Tue, 9 Jan 2024 12:30:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="chSnIHus" Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42A6A381CE for ; Tue, 9 Jan 2024 12:30:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f180.google.com with SMTP id 3f1490d57ef6-dbdb124491cso2179119276.1 for ; Tue, 09 Jan 2024 04:30:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704803446; x=1705408246; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=W6bnxa+GSR1FpCAvVqbsQV97G8p0dAq+kFC9sgXphqE=; b=chSnIHusUnwn3XCrUTGLl/woFUhegzPC+/qykv4jRfXUGqRo//F7oY6CKp7Ssy6iYA b1HGiRoyj77jg3J4ZSuJcQ1U0aAgpZogjKM5C1Kue04YzIfW0IpaPvdifHezeC9XfmJr L/ViysLijTicR+FY22YHpCtiDyUtFbNy2rcFlivO2XUDLv8kFRUrak8LOI23rPqypVVT tz/letFnoDyMKLsj5Ise4CkaJS1Lgg/ZEMwxpz7LzKtZmdV5QiiXcqiSb6XH+jD/eQ54 ZWLSkP+EMLHhGSdFvbG6h+dEvmx5/BqryPukhdMNFGmTgwHfBZTpJmCzWYe38ZS+/X1o 2s/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704803446; x=1705408246; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W6bnxa+GSR1FpCAvVqbsQV97G8p0dAq+kFC9sgXphqE=; b=VFJuqpOBimUj8r3oLoEPeQPAVWqBf+3ZyO5wXNL+2UxdEFthqGq0WClzKEkNIzb9n6 NfKU4gvDpHImiMmK2CI7EfMKihuOKaElLH8hnmkT71vW+fnGH6HuQWbLqR2fyqzhn1AL FfA8dX6tarVUcfWbGynwu1sfYdGoYxmKv+bCb9nnqTkkHbcqFwKh+VbbD90wcxbL4DOx mKOFdtz3IFwf7o8F54QIB6a+m14NCobWdTzEewWZrGiUeRHARWINch8Oa1JuQlEPhXjs pf6YhYMNFaRHoYhua6p/PVfZux1O4jr3njql1pqz0EVurH3D7xv2d8YFCjoJqtPUoSV9 xEfA== X-Gm-Message-State: AOJu0YzxpaFUlJajrShboqoPD7/eYcsvlOuJ1nKsWyns9SgFjJn1qfqH 71JNRCYcsH95LFFWZ5TacFimI2ScTc8CctQOwtJceH+5zn+22g== X-Received: by 2002:a25:1908:0:b0:dbc:ed55:dd7b with SMTP id 8-20020a251908000000b00dbced55dd7bmr248450ybz.36.1704803446144; Tue, 09 Jan 2024 04:30:46 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Linus Walleij Date: Tue, 9 Jan 2024 13:30:34 +0100 Message-ID: Subject: Re: [DO NOT MERGE v6 17/37] dt-bindings: interrupt-controller: renesas,sh7751-intc: Add json-schema To: Yoshinori Sato Cc: linux-sh@vger.kernel.org, Damien Le Moal , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Michael Turquette , Stephen Boyd , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Thomas Gleixner , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Bjorn Helgaas , Greg Kroah-Hartman , Jiri Slaby , Magnus Damm , Daniel Lezcano , Rich Felker , John Paul Adrian Glaubitz , Lee Jones , Helge Deller , Heiko Stuebner , Jernej Skrabec , Chris Morgan , Yang Xiwen , Sebastian Reichel , Randy Dunlap , Arnd Bergmann , Vlastimil Babka , Hyeonggon Yoo <42.hyeyoo@gmail.com>, David Rientjes , Baoquan He , Andrew Morton , Guenter Roeck , Stephen Rothwell , Azeem Shaikh , Javier Martinez Canillas , Max Filippov , Palmer Dabbelt , Bin Meng , Jonathan Corbet , Jacky Huang , Lukas Bulwahn , Biju Das , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Sam Ravnborg , Sergey Shtylyov , Michael Karcher , Laurent Pinchart , linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pci@vger.kernel.org, linux-serial@vger.kernel.org, linux-fbdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Yoshinori, thanks for your patch! On Tue, Jan 9, 2024 at 9:24=E2=80=AFAM Yoshinori Sato wrote: > + renesas,icr-irlm: > + $ref: /schemas/types.yaml#/definitions/flag > + description: If true four independent interrupt requests mode (ICR.I= RLM is 1). > + > + renesas,ipr-map: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + description: | > + IRQ to IPR mapping definition. > + 1st - INTEVT code > + 2nd - Register > + 3rd - bit index (...) > + renesas,ipr-map =3D <0x240 IPRD IPR_B12>, /* IRL0 */ > + <0x2a0 IPRD IPR_B8>, /* IRL1 */ > + <0x300 IPRD IPR_B4>, /* IRL2 */ > + <0x360 IPRD IPR_B0>, /* IRL3 */ (...) Is it really necessary to have all this in the device tree? You know from the compatible that this is "renesas,sh7751-intc" and I bet this table will be the same for any sh7751 right? Then just put it in a table in the driver instead and skip this from the device tree and bindings. If more interrupt controllers need to be supported by the driver, you can simply look up the table from the compatible string. Yours, Linus Walleij