Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2680025lqo; Tue, 14 May 2024 06:21:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRo2viayfk55eYFhxPhgQgO/ZKtJkCz8yBpp6HAZGjCyvrpzHPzgmfFaK8nMO3X1T7NdU6ed9a3A1tuCrCWQNGgTGb78ne3POCeoYCvg== X-Google-Smtp-Source: AGHT+IEgr5+tOWG1uIzuSwJfiqF1ZSfxpsmMmq6OmOjxghb9/9YvR/QIq/xXZTQEcw16YkU3F0UI X-Received: by 2002:a05:6102:5128:b0:47f:1575:7194 with SMTP id ada2fe7eead31-48077dce248mr12593888137.3.1715692914301; Tue, 14 May 2024 06:21:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715692914; cv=pass; d=google.com; s=arc-20160816; b=jZA1ftpMZyTu9OjgnkdF+yUz6LNZnDoQ0t3V02U3mh3JceNaA+9vTztrBRAfFvG5Kh UXjhOUf54tDHPzRmi28AIHPdVCtBKMkDgzxlOn3ooKsw4nFfRdrXEJfyz57RBuBPqw34 sZlPl2qnsIqzRUhAUsfRe+tM85A5GjhM9m+YXbR7yvdNuWVPUZWlHb6ukvWyS3ijYkXh 5Novpy5/gaVmeOvhjTa57Fb1k1SGNnX5hSQVw5kpeoULrsconc4AGai5ui7BqS96efRB /vWluOOxs+TqJ4On3YMYgtxyS00t4w9ibCfB4hHMr6k9xRM4gnmqZtJ6gyPq9WRzc/Ca lWLg== 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=nZ9CTuj1kqu/wBSJbBypDvy+JHm3ToPIsPmT+uAV+L0=; fh=AdHNhCtWvzQ4m3gvjLcQf/A8N+/eciSOcHcuwEtxpDw=; b=FezWh2M1s2A5LL6y/HCuWIjGjaeetoVcFhYe+Pxf9QTapDLmDj+GNPFDCpZ81Yf+Ks Zssr3OVKpLgx/S6y5MPiprHJ5TJptbzL13Fopmowjwnrjf07ylSdKaMYpouq7Xc++sie JKrachce2AzlYU9Aej0v1Wn0qjc6cLoO12IW+8K0nqYdOgPxUScMtHVKOWZpMp0lAMvI Ubd/ondk3KHwXX/RG8hG6Ah5rD9S07AaO532Iv8uWWrDPYDHUfMApFyp8g70Lhzd1gxC eG5zEmpSZSP8YtO4i6ddPWbBG2KrQ4DdyFJIG778iqW0ID7jeMdtw+mnnQ8nzQ8B6m/W A1fg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="V/72oiVi"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-178724-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178724-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ada2fe7eead31-4806cc42682si1603594137.306.2024.05.14.06.21.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 06:21:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178724-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="V/72oiVi"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-178724-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178724-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EAAA51C22162 for ; Tue, 14 May 2024 13:21:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 55F5315539A; Tue, 14 May 2024 13:17:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="V/72oiVi" 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 4B393154C1E; Tue, 14 May 2024 13:17:52 +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=1715692673; cv=none; b=kFa5CDBELWpjgqJwvSXURHqSiMAip2F/UF6M8l4qy6uAuI8ns/b+JfCepUog9RzY7qGlopA2SqGOCF5nnju6BD6cul43o2UsbF1K0mhQmZt/flB4wI+vK/uE2Fak9mG7fLn6RzSrl0ipqxJ8VVNgMSmNdONXxbqeAmFEj56wKUY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715692673; c=relaxed/simple; bh=MzymZe5AeNOy0Hys7FWPDKvERmnV15f9sS+TqgjbX8c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Y6BsVrmA3LBdWAm5WAExs5ik0Q1ilX7bs4W8ne/Xxc/y80MpbObN0ylqR6xufybtgDnRdYI38n7MO9bNJDOFQdCDyzGwuWstbZKXM3eFCbUQqw5ibSNW5e0Ti+X6uX3huMIMPjL0/xLDcHL2Igtkb+uArMzaRBFMlddWorpn8z4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=V/72oiVi; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E9D6C4AF0D; Tue, 14 May 2024 13:17:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715692672; bh=MzymZe5AeNOy0Hys7FWPDKvERmnV15f9sS+TqgjbX8c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=V/72oiViDqsWQvKmqmyN40qLGPky9eHG2WoE0hkT1b707HnFKH88hWVYmpJ874Z/w 6xuJMVhr80CCQo3v4IgQiOORTsZg/jgb+SlShgIBPI6qVOeq65OexVc67prVVsv8MO ofdYqK1BI9jXaoYhh8AVDFqpENruOPASnQVOkFBxc4tkd7SBsMpO1vOeNpTgXTfgCY fMzXYtxOD7I0J+njh6F7JwLh47u1CebSb6FczGKlQ+droxVIZK49i+bYfqEYCPtY1k HnacziYsZZM2Re2LJNESxUpDFiv0fAvrD9cdb0CHrD+N5jErhJomMKy3FLEh6qFh4z LFs2rD7aAyGgg== Date: Tue, 14 May 2024 08:17:50 -0500 From: Rob Herring 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 Message-ID: <20240514131750.GA1214311-robh@kernel.org> References: <20240513205913.313592-1-matthew.gerlach@linux.intel.com> <171563836233.3319279.14962600621083837198.robh@kernel.org> 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: <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 > > > > Convert the device tree bindings for the Altera Root Port PCIe controller > > from text to YAML. > > > > Signed-off-by: Matthew Gerlach > > --- > > 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