From: Rob Herring <robh@kernel.org>
To: matthew.gerlach@linux.intel.com
Cc: linux-kernel@vger.kernel.org, conor+dt@kernel.org,
lpieralisi@kernel.org, krzysztof.kozlowski+dt@linaro.org,
kw@linux.com, bhelgaas@google.com, linux-pci@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v5] dt-bindings: PCI: altera: Convert to YAML
Date: Tue, 14 May 2024 08:17:50 -0500 [thread overview]
Message-ID: <20240514131750.GA1214311-robh@kernel.org> (raw)
In-Reply-To: <171563836233.3319279.14962600621083837198.robh@kernel.org>
On Mon, May 13, 2024 at 05:12:42PM -0500, Rob Herring (Arm) wrote:
>
> On Mon, 13 May 2024 15:59:13 -0500, matthew.gerlach@linux.intel.com wrote:
> > From: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> >
> > Convert the device tree bindings for the Altera Root Port PCIe controller
> > from text to YAML.
> >
> > Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> > ---
> > v5:
> > - add interrupt-conntroller #interrupt-cells to required field
> > - don't touch original example dts
> >
> > v4:
> > - reorder reg-names to match original binding
> > - move reg and reg-names to top level with limits.
> >
> > v3:
> > - Added years to copyright
> > - Correct order in file of allOf and unevaluatedProperties
> > - remove items: in compatible field
> > - fix reg and reg-names constraints
> > - replace deprecated pci-bus.yaml with pci-host-bridge.yaml
> > - fix entries in ranges property
> > - remove device_type from required
> >
> > v2:
> > - Move allOf: to bottom of file, just like example-schema is showing
> > - add constraint for reg and reg-names
> > - remove unneeded device_type
> > - drop #address-cells and #size-cells
> > - change minItems to maxItems for interrupts:
> > - change msi-parent to just "msi-parent: true"
> > - cleaned up required:
> > - make subject consistent with other commits coverting to YAML
> > - s/overt/onvert/g
> > ---
> > .../devicetree/bindings/pci/altera-pcie.txt | 50 ----------
> > .../bindings/pci/altr,pcie-root-port.yaml | 93 +++++++++++++++++++
> > 2 files changed, 93 insertions(+), 50 deletions(-)
> > delete mode 100644 Documentation/devicetree/bindings/pci/altera-pcie.txt
> > create mode 100644 Documentation/devicetree/bindings/pci/altr,pcie-root-port.yaml
> >
>
> My bot found errors running 'make dt_binding_check' on your patch:
>
> yamllint warnings/errors:
>
> dtschema/dtc warnings/errors:
> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/altr,pcie-root-port.example.dtb: pcie@c00000000: interrupt-map: [[0, 0, 0, 1, 2, 1, 0, 0, 0], [2, 2, 2, 0, 0, 0, 3, 2, 3], [0, 0, 0, 4, 2, 4]] is too short
> from schema $id: http://devicetree.org/schemas/altr,pcie-root-port.yaml#
You need 3 address cells after the phandles since the interrupt parent
has 3 address cells.
What does your actual DT contain and do interrupts work because
interrupts never would have worked I think? Making the PCI host the
interrupt parent didn't even work in the kernel until somewhat recently
(maybe a few years now). That's why a bunch of PCI hosts have an
interrupt-controller child node.
Rob
next prev parent reply other threads:[~2024-05-14 13:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-13 20:59 [PATCH v5] dt-bindings: PCI: altera: Convert to YAML matthew.gerlach
2024-05-13 22:12 ` Rob Herring (Arm)
2024-05-14 13:17 ` Rob Herring [this message]
2024-05-14 18:30 ` matthew.gerlach
2024-05-17 19:56 ` Rob Herring
2024-05-13 23:40 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240514131750.GA1214311-robh@kernel.org \
--to=robh@kernel.org \
--cc=bhelgaas@google.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kw@linux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=matthew.gerlach@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox