Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp297954rdd; Tue, 9 Jan 2024 04:43:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1JH6NcOXfnyVwiv7rVySMw7JEWKPgQ+LPRGuNcfwuhze7Z+KTu+UKN5ugbK3F8F5g3FSP X-Received: by 2002:a05:620a:1a89:b0:783:14a5:ea83 with SMTP id bl9-20020a05620a1a8900b0078314a5ea83mr6314294qkb.22.1704804198607; Tue, 09 Jan 2024 04:43:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704804198; cv=none; d=google.com; s=arc-20160816; b=o3FksQ2lSeu/uh4mEyOmYXahcYCb0R/g4J1KXCV5ULZc/hYO6mgitezpLC32hfbjdF /e1ygYmaL3CVDlDXrQttAFXIFIEtGazCNLBb4g0TgYhHV5L3Q3Ymw/exesvCa6kL4QdA E1dIvCYHmGMxDjiO6jJj4DkO/kzKUMGBQKC4z2FBvvnp0UMYVZS2B80jb8nbFWZyX6/C bRFpDSDFzSa0h99g8I5YYCtqtBb3isDkZeHWUMQon+mzlMgz/JFTPjKSzmSIPtXyRMOI 24ZS+iU1eyo+1YEFRrS0ghLOhlCz/Hrjm1arq1ApKtp93Xv5Y2oQ4pgjDL+g6Yi5pOW8 nwXQ== 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=YRdzfj7JEW1eBQjWfVgccO0cPj0nGjhcrGXH3osu83E=; fh=3JU6YNBOqvZEumi8pm7+UQTjjpMelwIQbV0mavieXOQ=; b=QDeEhi6n6o3Qb6mDuwz7vRlU3MQQ9mE8iWhHaTqquT3Ol4hN5GWV9Nw+zHkVpAKcKZ 15L410+Y/FUoRsI+SQ6ZPsNkiFKrYmDsRrzpKOmbjkp0+WDvIIeNUa9v2UKgAQftvVhJ CzzZZgBag/Jm0uQCuFA4tazg0MMA2qTKohUHPbFnHLPblqqdv9qcR24gVTsnywkxoCW9 3y7pr5zjsJJKsiDAAkF+fI8oGBgRLynjjR2W+zGjrncMQAfrGC9ovwh2oaOtzmU81KiH tfvovTh6H44eu/T0/MjW+oVFjvbJRvmpznv8jfnBTJfbN+Qfl8fcbQJ5UNW0ljlhkR90 Y9lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QeIOoMPx; spf=pass (google.com: domain of linux-kernel+bounces-20848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20848-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i12-20020a05620a404c00b007832ec62fb4si1113224qko.355.2024.01.09.04.43.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 04:43:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QeIOoMPx; spf=pass (google.com: domain of linux-kernel+bounces-20848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20848-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4D9CD1C23AAE for ; Tue, 9 Jan 2024 12:43:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE1FE381C3; Tue, 9 Jan 2024 12:43:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QeIOoMPx" Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com [209.85.128.179]) (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 5CA2E381CB for ; Tue, 9 Jan 2024 12:43:05 +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-yw1-f179.google.com with SMTP id 00721157ae682-5ed10316e22so24123287b3.3 for ; Tue, 09 Jan 2024 04:43:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704804184; x=1705408984; 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=YRdzfj7JEW1eBQjWfVgccO0cPj0nGjhcrGXH3osu83E=; b=QeIOoMPxJmnP7J6Ahz9RoFYBBAyFE1JBl58mDEbiOpjOXlXa4xctkyQ4nrjf58hZKM UXAqgSfKfhBETJo7a6hI3NqYN/e/itjolyWBN7FXOOc1GVl4LoyzphSDupJkrBa6CcUx uhg8+zb05cg3wX8odOqH1lntKqpAMgurMrtZCrBQHowdaKJVPOJ+e0AXNkXtdjlgelGx e+KH88M4t756B0qSvZN4tKYQFQflFf4mg2QDBHbjdVtjW53sR3LDi55rkiBQ0f84/fuJ bjjACC4hup/9yntLNcJlH8FzrZr8+C15ucKIwwVU8w2GBCAXJrzU3XiImhpFHY+eE/Ve zvaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704804184; x=1705408984; 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=YRdzfj7JEW1eBQjWfVgccO0cPj0nGjhcrGXH3osu83E=; b=CpabraqJJBwYhrVtfaCSHWdJsQJ0VmOVgLUa1UXYNQtlRnL/CVm3fEJuBtsHDTQSqQ ORMSAfeZD743/H2h9pgSlAKEogTHjDFiW5eL008duGCSbForuBEVTvYucJ31poBGC7wG KRqSxeafktsVLSIe7KyeVFDsRA0mJxJrB2qTv3oBCrSi6CgV9oOOjtPRz5i+BL4anxCM 1VuHWERXHJopqIkJRv+ZL84YSIDGUr4muPJ35UURPewZ6qwe3GbHoZKI4CmKp0gj2ZZM 3aMiZV5zbSbs4Dpolxb6002kYiiHz9Jjtwu5nBgDA944qwfycVNBZRErvNsIVzwVbAG5 RnIA== X-Gm-Message-State: AOJu0Ywf1iBbPwoosDO6hgpJmaUnW/KHcnSDQ4+ix4ghztcX/FeVtkh6 eopowE8Hzok+y6DugC/7oVFuISf7BAHMViVgWmPUGgL+46jGgg== X-Received: by 2002:a0d:cb85:0:b0:5f1:7189:b9d with SMTP id n127-20020a0dcb85000000b005f171890b9dmr2932736ywd.82.1704804184379; Tue, 09 Jan 2024 04:43:04 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <160ee086771703c951c5522d997662aeac122a28.1704788539.git.ysato@users.sourceforge.jp> In-Reply-To: <160ee086771703c951c5522d997662aeac122a28.1704788539.git.ysato@users.sourceforge.jp> From: Linus Walleij Date: Tue, 9 Jan 2024 13:42:53 +0100 Message-ID: Subject: Re: [DO NOT MERGE v6 12/37] dt-bindings: pci: pci-sh7751: Add SH7751 PCI 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 SH7751 PCI Controller json-schema. > > Signed-off-by: Yoshinori Sato (...) > + renesas,bus-arbit-round-robin: > + $ref: /schemas/types.yaml#/definitions/flag > + description: | > + Set DMA bus arbitration to round robin. > + > + pci-command-reg-fast-back-to-back: > + $ref: /schemas/types.yaml#/definitions/flag > + description: | > + Set for PCI command register Fast Back-to-Back enable bit. > + > + pci-command-reg-serr: > + $ref: /schemas/types.yaml#/definitions/flag > + description: | > + Set for PCI command register SERR# enable. > + > + pci-command-reg-wait-cycle-control: > + $ref: /schemas/types.yaml#/definitions/flag > + description: | > + Set for PCI command register Wait cycle control bit. > + > + pci-command-reg-parity-error-response: > + $ref: /schemas/types.yaml#/definitions/flag > + description: | > + Set for PCI Command register Parity error response bit. > + > + pci-command-reg-vga-snoop: > + $ref: /schemas/types.yaml#/definitions/flag > + description: | > + Set for PCI Command register VGA palette snoop bit. > + > + pci-command-reg-write-invalidate: > + $ref: /schemas/types.yaml#/definitions/flag > + description: | > + Set for PCI Command register Memory write and invaldate enable bit= . > + > + pci-command-reg-special-cycle: > + $ref: /schemas/types.yaml#/definitions/flag > + description: | > + Set for PCI Command register Special cycle bit. > + > + pci-command-reg-bus-master: > + $ref: /schemas/types.yaml#/definitions/flag > + description: | > + Set for PCI Command register Bus master bit. > + > + pci-command-reg-memory-space: > + $ref: /schemas/types.yaml#/definitions/flag > + description: | > + Set for PCI Command register Memory space bit. > + > + pci-command-reg-io-space: > + $ref: /schemas/types.yaml#/definitions/flag > + description: | > + Set for PCI Command register I/O space bit. Do you really need to configure all these things? It seems they are just set to default values anyway? Can't you just look at the compatible "renesas,sh7751-pci" and set it to the values you know are needed for that compatible? > + pci-bar: > + $ref: /schemas/types.yaml#/definitions/uint32-matrix > + description: Overwrite to PCI CONFIG Base Address Registers value. > + items: > + items: > + - description: BAR register number > + - description: BAR register value > + minItems: 1 > + maxItems: 6 Same with this, isn't this always the same (hardcoded) values for "renesas,sh7751-pci" if used? > + interrupt-map =3D <0x0000 0 0 1 &julianintc 5>, > + <0x0000 0 0 2 &julianintc 6>, > + <0x0000 0 0 3 &julianintc 7>, > + <0x0000 0 0 4 &julianintc 8>, > + <0x0800 0 0 1 &julianintc 6>, > + <0x0800 0 0 2 &julianintc 7>, > + <0x0800 0 0 3 &julianintc 8>, > + <0x0800 0 0 4 &julianintc 5>, > + <0x1000 0 0 1 &julianintc 7>, > + <0x1000 0 0 2 &julianintc 8>, > + <0x1000 0 0 3 &julianintc 5>, > + <0x1000 0 0 4 &julianintc 6>; This interrupt-map looks very strange, usually the last cell is the polarit= y flag and here it is omitted? I would expect something like: <0x0000 0 0 1 &julianintc 5 IRQ_TYPE_LEVEL_LOW>, (...) The interrupt-map schema in dtschema isn't really looking at this so it is easy to get it wrong. Yours, Linus Walleij