Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp753341lqe; Sun, 7 Apr 2024 02:11:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVq5pGg1V51876oKypWwPBsCFD7q164qi/7HXZCv8D2iMVx6yHZR6aXaDxGaePKgrxXFW0n2ed3fgzqOVErYBGlyPXHS2nnzpeZhNCbSQ== X-Google-Smtp-Source: AGHT+IEzjSas0sQ2Mbc6L6wMAE1bz2z4kJ3F0AgpfQr35oU+1ILzDxADoxvz/Qy7La7EvhWuVB6q X-Received: by 2002:a50:8d5d:0:b0:56e:3f0:a163 with SMTP id t29-20020a508d5d000000b0056e03f0a163mr5895560edt.14.1712481098319; Sun, 07 Apr 2024 02:11:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712481098; cv=pass; d=google.com; s=arc-20160816; b=B3I1a2BM0kk5DgWUixCU6T1KPRORryf3zsTtCMvSuNole0wRGZ/BGY3jdxI3nb0riG 5E5Rdf9U0oeYBx2aUUS/chGhNCbi8i2NkbmbnUaaywH/cJc//ANB/oJvvbExGsIRIy0G inCWu9BBq0nBqiP2FinRv1WgtzbdE8FfvIqFYtZKeXDhjqnIhKvDUBWrKVnMBOT3o+ec y60fGWPtCbwGGo4qGw6G6iWAIAd7ahaeqw55YAw1uPhIZBDD4m1MxPUMP+O4aLN1Z/0p DRjuEEdWWPNfK3iGPFMAHo08kVvyG6gFrSmR5CvROI0zmAKC/XKPp/nmtbFnWLUfDuxS ituQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=P4+Ds6zMskgTtFTucouK+9QjpIsEysLLyxn6ITWVq4w=; fh=Dj59DAEnmahkGNkHJiyIfMZXzabnpii+GU3nOuENEoA=; b=CGEDSr2Ts+t7I9mg/5VNskhg9SvAPviNzHcJxIIpQ18rRanNHWBs3p6JuhLbuSTEDJ Wtm5m0mmrnomeVY7xC765sVW9NVtB2bNdGktpbrJcnX3CkJYVMy+w6KzS4yM3SbJky3T 22YpGCmgMQmqNM8NBo86LSqNsaPsP+hrpiUEC9AgHwlZUwEHhWE58+o3AxAQns7fvmWI 1k8tlY5qqGlKJKhTyRVuEKP/LTqSCc1JELbuw+NebrSIGoCTmiRjDdUJNT14t5qtoYiw nC+5VWrygAbQJV4xEwvcb2DiNN/aW2vXy1+hWYO+2RMHooQjAeR0zNhL+QiG5NEb1UYD kJdw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ovpYySem; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-134295-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134295-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x1-20020a50d601000000b0056e0ac85636si2674178edi.195.2024.04.07.02.11.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 02:11:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134295-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ovpYySem; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-134295-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134295-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 am.mirrors.kernel.org (Postfix) with ESMTPS id D202A1F22CC9 for ; Sun, 7 Apr 2024 09:11:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9125014F78; Sun, 7 Apr 2024 09:11:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ovpYySem" Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 60DCB12B7D for ; Sun, 7 Apr 2024 09:11:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712481087; cv=none; b=mBdSf+AzKOH2GcAGj6Mc10GbElz4WSpy5rqtGG0fryaibF0WqZWLY9g5Okf/uioZwHT/Jv7jlYLwhnHRDyh6qxlPXID+u8amz2P7Ay3U8vD0SgPYcQ6mpfCYbP07K7rs0QFIM3bR3zXmDFos+CPf8D1lA6Cn5Os6LqfWX9zN39Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712481087; c=relaxed/simple; bh=lXul3KyzGjRuiUvtWHlr7bqBlU2M6CPHl9ZLwiyZbGE=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=eNNDxwVOiOzhQdI7nutxMVzfIGS2yDCMIIdySPV7CAHkRAWIQpimf7vnLr5oBq0wYfuzk7ZW9DbD5r+P4dj7RHqB+X4DfK0duc6ZiBo/e0FjYNMh2SvgH5fdmSK5DBpJ+8r1IAMZHi5MuZUzzqN35sb4r2WJNmxOpv0jswut3to= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ovpYySem; arc=none smtp.client-ip=209.85.218.47 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-ej1-f47.google.com with SMTP id a640c23a62f3a-a51a80b190bso148282266b.3 for ; Sun, 07 Apr 2024 02:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712481084; x=1713085884; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=P4+Ds6zMskgTtFTucouK+9QjpIsEysLLyxn6ITWVq4w=; b=ovpYySemNLD0G4T6Lu54xvQ9rgNsAJjrTN8Yzcm5a21FpcltuCh9u5GHTeSvbHG0Q8 pIvBqRUMbp/PyUwqMRtjYPAg1mHwqlZWaoSkXFDTj+JsNHk7rJmXYP7IrkvtgN6rRGoK TUKydj0aFgK5Fnaul1fiXVnU8E2kIozHrk5n/bYKmvQDO8vQ7p/Pq3MxFS9RpJf/sRM9 mPFPJjkl/ccgk3Z0tXnvzHTb+AZarKMG/pzoicm64swDqrBXGqk9wOCRZBy9xLeP+JaN ul0ZFTtkA0Fzfn9P/TZHei3Zu1Zqa/r7YJTUkDZFBJez3in6jM+/A4oPEFBG80DmTi/Z aTYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712481084; x=1713085884; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=P4+Ds6zMskgTtFTucouK+9QjpIsEysLLyxn6ITWVq4w=; b=iCaKaNQkvy/jFDCIG8AOglpgrZDkLl4m2UvZMvhdGcnk8cP/Rg3mTtHgvIDA8YekL+ ZnCEEmR5Nnb4NzpfIRXKkA/iK3dM1JpuDKkhHf2c3z77isP/FRGLDdQuXgYhhhohqom9 jQ1qAe/daQmV1mGMBwakldaNjHja0bp7zzAVgKrDfguwFLyoz7KKgiYMUytr1WUGBom7 y7H+mEhf08rEkeczT6kDsUWx0wuoR5/lhAwGxPrD6pBakGjKZy1ABK9hJuIxL6YAVa32 I/ub1z1WpEYRWpVfnl3GrS1nES3rZLKTCn2xC/qAgswdDrLB66AVI9XchByK8jBhJrRq seqA== X-Forwarded-Encrypted: i=1; AJvYcCXehlYkNRi48vai0VZ20aCpoYeKQQVjOeAWAGrAhtpp0lYl2BJ1ft39EF52nqBCxn0+VcuEUOxgiVtNtev73sQFI27qdBHj0hfYqX4n X-Gm-Message-State: AOJu0YyMyWK9ymWngTQAsuttV6jUQbHJzV9r1NPTGLWnnO3sWoFjxm5s uIVuqBGcLzIWe2stuiBiSn4fI/WvWXyV7EqGZ+/HjZ1TzpUu768iPiA33LQlpeA= X-Received: by 2002:a50:8ad1:0:b0:56b:d1c2:9b42 with SMTP id k17-20020a508ad1000000b0056bd1c29b42mr5907261edk.29.1712481083695; Sun, 07 Apr 2024 02:11:23 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id eo9-20020a056402530900b0056c1380a972sm2703802edb.74.2024.04.07.02.11.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Apr 2024 02:11:23 -0700 (PDT) Message-ID: <2ece9ac2-899c-4185-b0f3-8ab939afc1e5@linaro.org> Date: Sun, 7 Apr 2024 11:11:21 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] dt-bindings: PCI: altera: Convert to YAML To: matthew.gerlach@linux.intel.com, bhelgaas@google.com, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240405145322.3805828-1-matthew.gerlach@linux.intel.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOl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pMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240405145322.3805828-1-matthew.gerlach@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 05/04/2024 16:53, 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 > --- > v2: > - Move allOf: to bottom of file, just like example-schema is showing No, just open it and you will see it is placed differently... > - add constraint for reg and reg-names Not complete... > - 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 | 106 ++++++++++++++++++ > 2 files changed, 106 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 > > diff --git a/Documentation/devicetree/bindings/pci/altera-pcie.txt b/Documentation/devicetree/bindings/pci/altera-pcie.txt > deleted file mode 100644 > index 816b244a221e..000000000000 > --- a/Documentation/devicetree/bindings/pci/altera-pcie.txt > +++ /dev/null > @@ -1,50 +0,0 @@ > -* Altera PCIe controller > - > -Required properties: > -- compatible : should contain "altr,pcie-root-port-1.0" or "altr,pcie-root-port-2.0" > -- reg: a list of physical base address and length for TXS and CRA. > - For "altr,pcie-root-port-2.0", additional HIP base address and length. > -- reg-names: must include the following entries: > - "Txs": TX slave port region > - "Cra": Control register access region > - "Hip": Hard IP region (if "altr,pcie-root-port-2.0") > -- interrupts: specifies the interrupt source of the parent interrupt > - controller. The format of the interrupt specifier depends > - on the parent interrupt controller. > -- device_type: must be "pci" > -- #address-cells: set to <3> > -- #size-cells: set to <2> > -- #interrupt-cells: set to <1> > -- ranges: describes the translation of addresses for root ports and > - standard PCI regions. > -- interrupt-map-mask and interrupt-map: standard PCI properties to define the > - mapping of the PCIe interface to interrupt numbers. > - > -Optional properties: > -- msi-parent: Link to the hardware entity that serves as the MSI controller > - for this PCIe controller. > -- bus-range: PCI bus numbers covered > - > -Example > - pcie_0: pcie@c00000000 { > - compatible = "altr,pcie-root-port-1.0"; > - reg = <0xc0000000 0x20000000>, > - <0xff220000 0x00004000>; > - reg-names = "Txs", "Cra"; > - interrupt-parent = <&hps_0_arm_gic_0>; > - interrupts = <0 40 4>; > - interrupt-controller; > - #interrupt-cells = <1>; > - bus-range = <0x0 0xFF>; > - device_type = "pci"; > - msi-parent = <&msi_to_gic_gen_0>; > - #address-cells = <3>; > - #size-cells = <2>; > - interrupt-map-mask = <0 0 0 7>; > - interrupt-map = <0 0 0 1 &pcie_0 1>, > - <0 0 0 2 &pcie_0 2>, > - <0 0 0 3 &pcie_0 3>, > - <0 0 0 4 &pcie_0 4>; > - ranges = <0x82000000 0x00000000 0x00000000 0xc0000000 0x00000000 0x10000000 > - 0x82000000 0x00000000 0x10000000 0xd0000000 0x00000000 0x10000000>; > - }; > diff --git a/Documentation/devicetree/bindings/pci/altr,pcie-root-port.yaml b/Documentation/devicetree/bindings/pci/altr,pcie-root-port.yaml > new file mode 100644 > index 000000000000..999dcda05f55 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pci/altr,pcie-root-port.yaml > @@ -0,0 +1,106 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright (C) 2024, Intel Corporation This is derivative of previous work, which is easily visible by doing the same mistakes in DTS as they were before. You now added fresh copyrights ignoring all previous work, even though you copied it. I don't agree. If you want to ignore previous copyrights, then at least don't copy existing code... although even that would not be sufficient. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/altr,pcie-root-port.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Altera PCIe Root Port > + > +maintainers: > + - Matthew Gerlach > + > +properties: > + compatible: > + items: Drop items. > + - enum: > + - altr,pcie-root-port-1.0 > + - altr,pcie-root-port-2.0 > + Missing reg with constraints. > + interrupts: > + maxItems: 1 > + > + interrupt-map-mask: > + items: > + - const: 0 > + - const: 0 > + - const: 0 > + - const: 7 > + > + interrupt-map: > + maxItems: 4 > + > + "#interrupt-cells": > + const: 1 > + > + msi-parent: true > + > +required: > + - compatible > + - reg > + - reg-names > + - device_type > + - interrupts > + - interrupt-map > + - interrupt-map-mask > + > +unevaluatedProperties: false > + > +allOf: > + - $ref: /schemas/pci/pci-bus.yaml# That's deprecated, as explained in its description. You should use pci-host-bridge.yaml. > + - if: > + properties: > + compatible: > + enum: > + - altr,pcie-root-port-1.0 > + then: > + properties: > + reg: > + items: > + - description: TX slave port region > + - description: Control register access region > + > + reg-names: > + items: > + - const: Txs > + - const: Cra > + > + else: > + properties: > + reg: > + items: > + - description: Hard IP region > + - description: TX slave port region > + - description: Control register access region > + > + reg-names: > + items: > + - const: Hip > + - const: Txs > + - const: Cra > + unevaluated goes here, just like example-schema. > +examples: > + - | > + #include > + #include > + pcie_0: pcie@c00000000 { > + compatible = "altr,pcie-root-port-1.0"; > + reg = <0xc0000000 0x20000000>, > + <0xff220000 0x00004000>; > + reg-names = "Txs", "Cra"; > + interrupt-parent = <&hps_0_arm_gic_0>; > + interrupts = ; > + #interrupt-cells = <1>; > + bus-range = <0x0 0xff>; > + device_type = "pci"; > + msi-parent = <&msi_to_gic_gen_0>; > + #address-cells = <3>; > + #size-cells = <2>; > + interrupt-map-mask = <0 0 0 7>; > + interrupt-map = <0 0 0 1 &pcie_intc 1>, > + <0 0 0 2 &pcie_intc 2>, > + <0 0 0 3 &pcie_intc 3>, > + <0 0 0 4 &pcie_intc 4>; > + ranges = <0x82000000 0x00000000 0x00000000 0xc0000000 0x00000000 0x10000000 > + 0x82000000 0x00000000 0x10000000 0xd0000000 0x00000000 0x10000000>; That's two entries. Best regards, Krzysztof