Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp94741lqj; Wed, 10 Apr 2024 05:16:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZQ4BCsR/y6lNib8sHvxw1cBUiqiq1cf2aq/ps41T0UYzEREmhlWJ6p80V1F7Q6ywoUr4Qawfw2jdCg/TOjWV1CtFX2oSyOXVrwLIbdw== X-Google-Smtp-Source: AGHT+IFZj0z78SpKWdFR733upeM2hHMfOFYdERdp49Be4R78Bjx4NCti7fnLejs5Ju/C/5pa8yDi X-Received: by 2002:a50:8d59:0:b0:56b:b5d6:1efc with SMTP id t25-20020a508d59000000b0056bb5d61efcmr1452490edt.18.1712751405486; Wed, 10 Apr 2024 05:16:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712751405; cv=pass; d=google.com; s=arc-20160816; b=qAGMEdfmcSzXugi39UFxEVtVliJRGsFGT2ASo8l8ua5btaI2acWWfdeZGEua4dEbEC KL06sp4JAXgBP/ZjBJ0VEHUDb2mANvnqqY4RIK5GAEnunVafNzIwcqsGRio7UFjwJPrq l34BKhgjpmqqrxneRNU2GOw0rFCjZZ4zEHfUVlQTTgUxooBCbDH5gQf7CusP8S1pWg5R Hpxb5Zg/5B8sF54scQT7Xleb/cVRfXwnrJHHlQXe+x/fROPRjqrRUh9NTZh+EvgQtLxG 6vGFC3DvzqdL8USSSMgQOuKs8dIYc6SnB6AUutyOVDluBYtXR5lP8pT3UjjuM7bXDOd5 JemA== 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=KQSTe5uddMKgl3Stwbv0GzFMgnUd5rXK1ZDRzKfSlr4=; fh=ZDpKi8viABPMSmZhhJjz11b0uvfXyTjeQwvCPpc81ow=; b=Gd2NqcEgLtm2jrP5Zo6gd19yQJuf9RnLRI0LDO7zNOOwcNbAD9gezipVg9v/Pio2BM 5H9yaNtxY1pWIdYGE7OXIA1nY6C6SPfTMb7zsfG6UcqJCc3HEZ5s3CPdtRjqb4xhEH1g GqCsD9qdJ97GwnxH6AQSqCUwN/RNTqpu2YFEJqDlWl+F+DAxElNObsKv2A8voj31teZw 8rdRFY7r1Z2+OThy+ZfgsJvKDWeLtpyp2CIN8pnGgS6tRDkVZtv+kvNUq6N8KwSF9vYF Wp30vYpEKZg0/ONgMysTTmEtxJThVh2yBgRvs727B8xgdYPN/0EbHPO8hVdTy20eGKNR Tnaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g+G9RV4B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-138475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138475-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w5-20020a056402268500b0056c3783c709si6029085edd.292.2024.04.10.05.16.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 05:16:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g+G9RV4B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-138475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138475-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0BB121F21E8D for ; Wed, 10 Apr 2024 12:16:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2BBF15B135; Wed, 10 Apr 2024 12:16:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="g+G9RV4B" 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 9376715957F; Wed, 10 Apr 2024 12:16:30 +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=1712751390; cv=none; b=nj71+ZIRUaj0Zz6aX1kTOKWhgSVMM4iC+Fe0WuOSkycpGefrzkn7kjDfuhll1WrG328UnnBeMd/2o0i90cFMaIVOENmdWGEvziZQynQKDqVQuoNXtrRoNK9UV5qbXaf+2fMGO5oM+i9fWTnIVxKRc0d241g4ehc09aPL4eCxErk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712751390; c=relaxed/simple; bh=uqgIbQjDdQ7mXlLuRp0MGBFFQHK0OHDSrqq0mSqlVPU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qZGekQ+2MB6KFpKG5NNIIcMnNGFEdE9L8QYVnySrTXJYSHZ4819R2dDVPfa/umWbhKGrm5k/cCqJZDOk54JACrE/8Kjz1oUahAGqloDmCdE97KKgEzjQ5YZ5jrGmwLwyPOWtsEPZAqQ87sy0C06nXpvs2yVsmCxbdu/knyc7aVk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=g+G9RV4B; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA30DC433C7; Wed, 10 Apr 2024 12:16:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712751390; bh=uqgIbQjDdQ7mXlLuRp0MGBFFQHK0OHDSrqq0mSqlVPU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g+G9RV4BO0X3JsN/4qj/fub/YCO1DybeOA5yiCnNbFx3qhkImsTvXTWQ79tkGkp1i VUYo/Xh+LaQIJ3EyEZ1gfvBdVXQWpImOH3Ks5aDGqrtuu7ZRf959UinfC11+FR7nNy 4M0WFulk4cnWOsQA0YA7SEISW7DLRwmtgHTwDf4pplsY9D5Ikf0fH3zDjT6Jr5Wui1 s8N61TgN8zWUlMmCSoSOF5Xa1dspvlcq51zUskwiRaJ36rsGZ5wf89rT5r8fxFRZpk xf931uUP91Pl/8O+3CN2NdTNbzb6pEmifUJujQp40Mr7p3mYKFDqrmXin8Na+GBtLB T6FpY0ioZg8og== Date: Wed, 10 Apr 2024 07:16:27 -0500 From: Rob Herring To: Yoshinori Sato Cc: linux-sh@vger.kernel.org, Damien Le Moal , Niklas Cassel , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Michael Turquette , Stephen Boyd , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Thomas Gleixner , Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Greg Kroah-Hartman , Jiri Slaby , Magnus Damm , Daniel Lezcano , Rich Felker , John Paul Adrian Glaubitz , Lee Jones , Helge Deller , Heiko Stuebner , Shawn Guo , Sebastian Reichel , Chris Morgan , Linus Walleij , Arnd Bergmann , David Rientjes , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Vlastimil Babka , Baoquan He , Andrew Morton , Guenter Roeck , Kefeng Wang , Stephen Rothwell , Javier Martinez Canillas , Guo Ren , Azeem Shaikh , Max Filippov , Jonathan Corbet , Jacky Huang , Herve Codina , Manikanta Guntupalli , Anup Patel , Biju Das , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Sam Ravnborg , Sergey Shtylyov , 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 Subject: Re: [RESEND v7 12/37] dt-bindings: pci: pci-sh7751: Add SH7751 PCI Message-ID: <20240410121627.GA4069350-robh@kernel.org> References: <5ab3c5952b49d7998734855e2ec1ee980795a724.1712207606.git.ysato@users.sourceforge.jp> 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: <5ab3c5952b49d7998734855e2ec1ee980795a724.1712207606.git.ysato@users.sourceforge.jp> On Thu, Apr 04, 2024 at 02:14:23PM +0900, Yoshinori Sato wrote: > Renesas SH7751 PCI Controller json-schema. > > Signed-off-by: Yoshinori Sato > --- > .../bindings/pci/renesas,sh7751-pci.yaml | 89 +++++++++++++++++++ > 1 file changed, 89 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pci/renesas,sh7751-pci.yaml > > diff --git a/Documentation/devicetree/bindings/pci/renesas,sh7751-pci.yaml b/Documentation/devicetree/bindings/pci/renesas,sh7751-pci.yaml > new file mode 100644 > index 000000000000..115c2bb67339 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pci/renesas,sh7751-pci.yaml > @@ -0,0 +1,89 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pci/renesas,sh7751-pci.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Renesas SH7751 PCI Host controller > + > +maintainers: > + - Yoshinori Sato > + > +allOf: > + - $ref: /schemas/pci/pci-bus.yaml# > + > +properties: > + compatible: > + const: renesas,sh7751-pci > + > + reg: > + minItems: 2 > + maxItems: 2 > + > + reg-names: > + items: > + - const: PCI Controller > + - const: Bus State Controller > + > + "#interrupt-cells": > + const: 1 > + > + "#address-cells": > + const: 3 > + > + "#size-cells": > + const: 2 > + > + ranges: true > + > + dma-ranges: true All 5 of these are defined in pci-bus-common.yaml, so you can drop them. > + > + interrupt-controller: true > + > + renesas,bus-arbit-round-robin: > + $ref: /schemas/types.yaml#/definitions/flag > + description: | Don't need '|'. > + Set DMA bus arbitration to round robin. > + > +required: > + - compatible > + - reg > + - "#interrupt-cells" > + - "#address-cells" > + - "#size-cells" > + - ranges These 3 are already required, so drop. > + - interrupt-map > + - interrupt-map-mask > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + pci@fe200000 { > + compatible = "renesas,sh7751-pci"; > + #address-cells = <3>; > + #size-cells = <2>; > + #interrupt-cells = <1>; > + interrupt-controller; > + device_type = "pci"; > + bus-range = <0 0>; > + ranges = <0x02000000 0 0xfd000000 0xfd000000 0 0x01000000>, > + <0x01000000 0 0x00000000 0xfe240000 0 0x00040000>; > + dma-ranges = <0x02000000 0 0xc000000 0x0c000000 0 0x04000000>; > + reg = <0xfe200000 0x0400>, > + <0xff800000 0x0100>; > + interrupt-map = <0x0000 0 0 1 &julianintc 5 IRQ_TYPE_LEVEL_LOW>, > + <0x0000 0 0 2 &julianintc 6 IRQ_TYPE_LEVEL_LOW>, > + <0x0000 0 0 3 &julianintc 7 IRQ_TYPE_LEVEL_LOW>, > + <0x0000 0 0 4 &julianintc 8 IRQ_TYPE_LEVEL_LOW>, > + <0x0800 0 0 1 &julianintc 6 IRQ_TYPE_LEVEL_LOW>, > + <0x0800 0 0 2 &julianintc 7 IRQ_TYPE_LEVEL_LOW>, > + <0x0800 0 0 3 &julianintc 8 IRQ_TYPE_LEVEL_LOW>, > + <0x0800 0 0 4 &julianintc 5 IRQ_TYPE_LEVEL_LOW>, > + <0x1000 0 0 1 &julianintc 7 IRQ_TYPE_LEVEL_LOW>, > + <0x1000 0 0 2 &julianintc 8 IRQ_TYPE_LEVEL_LOW>, > + <0x1000 0 0 3 &julianintc 5 IRQ_TYPE_LEVEL_LOW>, > + <0x1000 0 0 4 &julianintc 6 IRQ_TYPE_LEVEL_LOW>; > + interrupt-map-mask = <0x1800 0 0 7>; > + }; > -- > 2.39.2 >