Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4228499pxf; Tue, 30 Mar 2021 02:33:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxkttbmCGWZaDRzrO/ldEP1Ya6p7F/TyGKagrEyDLZGAdsoCHcYtUBMKF+Qm2r4iCa3wQd X-Received: by 2002:a17:906:7842:: with SMTP id p2mr33849545ejm.87.1617096789742; Tue, 30 Mar 2021 02:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617096789; cv=none; d=google.com; s=arc-20160816; b=wT0vS820XOfHPhizBwaTOwQ1KmiBu1Fj/0OOG6NVB98oGye3BeuITEV0hs0ILUWP2X etaop/KYEFEmCmc3MFcsYwzDErNWTGUiTaTbeTvgKWi2nuoYfwIDIfG2DOILiNbVk9Iw 7TVX1NuwraCo5SCGiB7lilpTN1LncSlck+JdluUYxgS3aU1uvGC84v/s/oquCi26GOF2 KvwJn0+OmKMCCiIqK/1ITlQ21uvcgb5NsLt7pex5I3ZD11xKs7PfWCgxeLwLbPszwsvz g4YOQQBfXw3X0lThcNuGDBwR+gyo9RK6l/z8EfYc08Hun0+5vBn4xXvgZV4TkZJ/hf+O JKKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=SyUbvgmeLGI6nGnrfGyJb7UDzXwfVV31iX4s+By/M0g=; b=auu2fCFA0pYvVeINJnrAhbXaYCLptgvI1WXMJOvVTyGHIvvdB0hTfOGgExE7SN3412 G9t+b6KdJNXgQwg/VxA9AYLaj/rkssS/vz1BmZNQPLt3uhK20wjopLb4cJGVMLwutqas z1Epy/YkArXl0ZJo2Or0+ndwELbjARnC5g9KVJYq74A76mUTzYtQvOyjeStKI+rN668I RaDy0HifL6Y+cpQaRVlyJF71UzAfWU5GzMzRbYLsfa9CkxtsYOf0E6EhR7eutA4nXFnC ZsLpIBSjE3MuY4frJ74TIGSEiQc6hkGQKL3aS3QN3m9UjgqQdHNL2clESfrzfat9K1Cb yLlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=u7QToUNQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l33si16919681ede.161.2021.03.30.02.32.47; Tue, 30 Mar 2021 02:33:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=u7QToUNQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230224AbhC3J3w (ORCPT + 99 others); Tue, 30 Mar 2021 05:29:52 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:52356 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231511AbhC3J3m (ORCPT ); Tue, 30 Mar 2021 05:29:42 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12U9TNfT025028; Tue, 30 Mar 2021 04:29:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1617096563; bh=SyUbvgmeLGI6nGnrfGyJb7UDzXwfVV31iX4s+By/M0g=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=u7QToUNQD3z2Gxpn4a2gX3b0qVVQGC8AW/NrsXipo6L04A1pSJnFdUrjLroX2I3tX Ka7sdwKXs8y+y+Kl0mpDTshck3/50enXclfsgzs24ey0eHUVtrh2T5qBs0OAzX64Gi 0uQFzqOBXdLiZke9GU3YYVjQ/RT5/Fa/GiLshcC8= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12U9TNV4042979 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 30 Mar 2021 04:29:23 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 30 Mar 2021 04:29:23 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Tue, 30 Mar 2021 04:29:23 -0500 Received: from [10.250.234.46] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 12U9TH7e129563; Tue, 30 Mar 2021 04:29:18 -0500 Subject: Re: [PATCH 1/6] dt-bindings: PCI: ti,am65: Add PCIe host mode dt-bindings for TI's AM65 SoC To: Rob Herring CC: Bjorn Helgaas , Lorenzo Pieralisi , Marc Zyngier , , , , , Lokesh Vutla References: <20210325090026.8843-1-kishon@ti.com> <20210325090026.8843-2-kishon@ti.com> <20210325233812.GA1943834@robh.at.kernel.org> From: Kishon Vijay Abraham I Message-ID: <985bd950-7bdf-d9b5-0a89-c05a56739c68@ti.com> Date: Tue, 30 Mar 2021 14:59:16 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210325233812.GA1943834@robh.at.kernel.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 26/03/21 5:08 am, Rob Herring wrote: > On Thu, Mar 25, 2021 at 02:30:21PM +0530, Kishon Vijay Abraham I wrote: >> Add PCIe host mode dt-bindings for TI's AM65 SoC. >> >> Signed-off-by: Kishon Vijay Abraham I >> --- >> .../bindings/pci/ti,am65-pci-host.yaml | 111 ++++++++++++++++++ >> 1 file changed, 111 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/pci/ti,am65-pci-host.yaml >> >> diff --git a/Documentation/devicetree/bindings/pci/ti,am65-pci-host.yaml b/Documentation/devicetree/bindings/pci/ti,am65-pci-host.yaml >> new file mode 100644 >> index 000000000000..b77e492886fa >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/pci/ti,am65-pci-host.yaml >> @@ -0,0 +1,111 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +# Copyright (C) 2021 Texas Instruments Incorporated - http://www.ti.com/ >> +%YAML 1.2 >> +--- >> +$id: "http://devicetree.org/schemas/pci/ti,am65-pci-host.yaml#" >> +$schema: "http://devicetree.org/meta-schemas/core.yaml#" >> + >> +title: TI AM65 PCI Host >> + >> +maintainers: >> + - Kishon Vijay Abraham I >> + >> +allOf: >> + - $ref: /schemas/pci/pci-bus.yaml# >> + >> +properties: >> + compatible: >> + enum: >> + - ti,am654-pcie-rc >> + >> + reg: >> + maxItems: 4 >> + >> + reg-names: >> + items: >> + - const: app >> + - const: dbics > > Please use 'dbi' like everyone else if this isn't shared with the other > TI DW PCI bindings. I'm just converting existing binding in pci-keystone.txt to yaml. Documentation/devicetree/bindings/pci/pci-keystone.txt Device tree for AM65 is also already in the upstream kernel. I can try to remove the am65 specific part from pci-keystone.txt > >> + - const: config >> + - const: atu >> + >> + power-domains: >> + maxItems: 1 >> + >> + ti,syscon-pcie-id: >> + description: Phandle to the SYSCON entry required for getting PCIe device/vendor ID >> + $ref: /schemas/types.yaml#/definitions/phandle >> + >> + ti,syscon-pcie-mode: >> + description: Phandle to the SYSCON entry required for configuring PCIe in RC or EP mode. >> + $ref: /schemas/types.yaml#/definitions/phandle >> + >> + msi-map: true >> + >> + dma-coherent: true >> + >> +patternProperties: >> + "interrupt-controller": > > Don't need quotes. sure, will fix it. > >> + type: object >> + description: interrupt controller to handle legacy interrupts. >> + >> +required: >> + - compatible >> + - reg >> + - reg-names >> + - max-link-speed >> + - num-lanes >> + - power-domains >> + - ti,syscon-pcie-id >> + - ti,syscon-pcie-mode >> + - msi-map >> + - ranges >> + - reset-gpios >> + - phys >> + - phy-names >> + - dma-coherent > > 'interrupt-controller' node is optional? yeah, upstream DT doesn't have interrupt-controller. It's added as part of this series. Thanks Kishon > >> + >> +unevaluatedProperties: false >> + >> +examples: >> + - | >> + #include >> + #include >> + >> + bus { >> + #address-cells = <2>; >> + #size-cells = <2>; >> + >> + pcie0_rc: pcie@5500000 { >> + compatible = "ti,am654-pcie-rc"; >> + reg = <0x0 0x5500000 0x0 0x1000>, >> + <0x0 0x5501000 0x0 0x1000>, >> + <0x0 0x10000000 0x0 0x2000>, >> + <0x0 0x5506000 0x0 0x1000>; >> + reg-names = "app", "dbics", "config", "atu"; >> + power-domains = <&k3_pds 120 TI_SCI_PD_EXCLUSIVE>; >> + #address-cells = <3>; >> + #size-cells = <2>; >> + ranges = <0x81000000 0 0 0x0 0x10020000 0 0x00010000>, >> + <0x82000000 0 0x10030000 0x0 0x10030000 0 0x07FD0000>; >> + ti,syscon-pcie-id = <&pcie_devid>; >> + ti,syscon-pcie-mode = <&pcie0_mode>; >> + bus-range = <0x0 0xff>; >> + num-viewport = <16>; >> + max-link-speed = <2>; >> + dma-coherent; >> + interrupts = ; >> + msi-map = <0x0 &gic_its 0x0 0x10000>; >> + #interrupt-cells = <1>; >> + interrupt-map-mask = <0 0 0 7>; >> + interrupt-map = <0 0 0 1 &pcie0_intc 0>, /* INT A */ >> + <0 0 0 2 &pcie0_intc 0>, /* INT B */ >> + <0 0 0 3 &pcie0_intc 0>, /* INT C */ >> + <0 0 0 4 &pcie0_intc 0>; /* INT D */ >> + >> + pcie0_intc: interrupt-controller { >> + interrupt-controller; >> + #interrupt-cells = <1>; >> + interrupt-parent = <&gic500>; >> + interrupts = ; >> + }; >> + }; >> -- >> 2.17.1 >>