Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp490463rdb; Tue, 16 Jan 2024 06:48:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGK6f5bYudhZJpwXZHf7K55N361IYqQhZgGiSZte6e2wIh/JvMw6JVDkHx7YBM1DdeccNu8 X-Received: by 2002:a05:622a:1788:b0:429:c8b0:e4fd with SMTP id s8-20020a05622a178800b00429c8b0e4fdmr9690506qtk.64.1705416526787; Tue, 16 Jan 2024 06:48:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705416526; cv=none; d=google.com; s=arc-20160816; b=qqAhulvGa5Lxso+c5xhpR1xQF49edw/eAlfrwYnG4ftSb1bTSiGmZgO1R0jOTXd9TF 7FOyRBBgkLf2axz0d5TMJcmhyyNC/TYVFIequvw2n7Fa4EhASz2jeqSiEV0ZJugF8lcN PYWi8/+e+FqBWFz9b2GhEsU1XdPr6z8JbpxXB11Qj47wfSEAqead8D62Ew4oTQS5R0/N vIHLHGwX4E7JzZdVZnfAUTFQ2qjoeLZ2vc7tBWaVXT+D6Oxrcy5t6xvpPbLuL323Y3v4 Vd7eJlEJFK0+XJcY6Hw8lI0kxnadfzP6n8I3idBx/uSVGr2C2URH4dmeeP13cl68Y44k lPRQ== ARC-Message-Signature: i=1; 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=jASaGnaxuqmiWndAxRfkl2ysPIkTarplZPl5dAQK6Q4=; fh=K3Rc3+v9HQXlO0gDmcETqS8dDgQAd1VXz0Z84/E67Vo=; b=0ysC2+zs+xfee/hgJLWY13TEqaUNXIeQPGPoLB6coOynOHuUsqMMOuCCU/LUrlWStd mK/H2tMqM/tH8dxT5DNoSQg0fi0ODqbnlo5H+QyWtIzIfqMw/0hhD26MZMdd78mFpF4m YOLG5WgGnHVuSxPlPFojVbEMjSGLyn0/oDF4hOyRWuVZfznDP4+7o5c3uotESRCnDJJk o9B03rgUTa09qXuPweb8is7/kKATqookk+jqqsIb98oCFo4LXcQSTpMBlO65cG76/ZUD SBSjLn4GeXbbwg6d9L4GYIyOMb0LRO4fNKqmwOcm3YEuyWEhtTXrFAW6HqChbFXGtDYp akcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qen+nHYN; spf=pass (google.com: domain of linux-kernel+bounces-27479-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27479-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c40-20020a05620a26a800b007835417f902si5875943qkp.335.2024.01.16.06.48.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 06:48:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27479-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qen+nHYN; spf=pass (google.com: domain of linux-kernel+bounces-27479-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27479-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 88F201C22E15 for ; Tue, 16 Jan 2024 14:48:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B4AB1BF3E; Tue, 16 Jan 2024 14:48:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qen+nHYN" 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 313171BDEC; Tue, 16 Jan 2024 14:48:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85FC5C433F1; Tue, 16 Jan 2024 14:48:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705416514; bh=QsOUfpw0sKNyK82N25qTzsWt9o3KXn2BtArWY/psjWo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qen+nHYN1z0V6Sos/d1MsGN9VEwHv/7Tid1I6otH+DimQ6gUgSaS5u4AHnvopHR3u laYyH0scL8JIYY/NDbvQKDJEvWbpzwuF2DusabswVidysBabjPuYwhGXLKxtZYumdi iWONeaPMwucp3vFiGHuCMqv4EPkvMcoWJWh0ZYRGpaxRz9Ay+11AIAmS+pDCRd6Eru pQbYrv8a7+Ss0shfBpg4FVOP8bH7Q4Ru0eMus64iq0bZ/mLvCBr0RVLh9cZFWdLMkL YLaurjShTGch/Iu0VNY7HFjtlCLH1IsaqYiEuG5z9UaewtZ5Bbaj9Nuz+DESEb1PMb 8DEt7CLB/WUVQ== Date: Tue, 16 Jan 2024 08:48:32 -0600 From: Rob Herring To: Krzysztof Kozlowski Cc: Bjorn Andersson , Konrad Dybcio , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/6] dt-bindings: PCI: qcom,pcie-sm8450: move SM8450 to dedicated schema Message-ID: <20240116144832.GA3862516-robh@kernel.org> References: <20240108-dt-bindings-pci-qcom-split-v1-0-d541f05f4de0@linaro.org> <20240108-dt-bindings-pci-qcom-split-v1-2-d541f05f4de0@linaro.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: <20240108-dt-bindings-pci-qcom-split-v1-2-d541f05f4de0@linaro.org> On Mon, Jan 08, 2024 at 03:19:15PM +0100, Krzysztof Kozlowski wrote: > Move SM8450 PCIe devices from qcom,pcie.yaml binding to a dedicated file > to make reviewing easier. > > This creates equivalent schema file, except missing required compatible > which is actually redundant. > > Signed-off-by: Krzysztof Kozlowski > --- > .../devicetree/bindings/pci/qcom,pcie-sm8450.yaml | 215 +++++++++++++++++++++ > .../devicetree/bindings/pci/qcom,pcie.yaml | 67 ------- > 2 files changed, 215 insertions(+), 67 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie-sm8450.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie-sm8450.yaml > new file mode 100644 > index 000000000000..59ba809b6204 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pci/qcom,pcie-sm8450.yaml > @@ -0,0 +1,215 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pci/qcom,pcie-sm8450.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm SM8450 PCI Express Root Complex > + > +maintainers: > + - Bjorn Andersson > + - Manivannan Sadhasivam > + > +description: > + Qualcomm SM8450 SoC PCIe root complex controller is based on the Synopsys > + DesignWare PCIe IP. > + > +properties: > + compatible: > + enum: > + - qcom,pcie-sm8450-pcie0 > + - qcom,pcie-sm8450-pcie1 > + > + reg: > + minItems: 5 > + maxItems: 6 > + > + reg-names: > + minItems: 5 > + items: > + - const: parf # Qualcomm specific registers > + - const: dbi # DesignWare PCIe registers > + - const: elbi # External local bus interface registers > + - const: atu # ATU address space > + - const: config # PCIe configuration space > + - const: mhi # MHI registers > + > + clocks: > + minItems: 11 > + maxItems: 12 > + > + clock-names: > + minItems: 11 > + maxItems: 12 > + > + resets: > + maxItems: 1 > + > + reset-names: > + items: > + - const: pci > + > +oneOf: > + - properties: > + interrupts: > + maxItems: 1 > + interrupt-names: > + items: > + - const: msi > + > + - properties: > + interrupts: > + minItems: 8 > + interrupt-names: > + items: > + - const: msi0 > + - const: msi1 > + - const: msi2 > + - const: msi3 > + - const: msi4 > + - const: msi5 > + - const: msi6 > + - const: msi7 > + > +allOf: > + - $ref: qcom,pcie-common.yaml# > + - if: > + properties: > + compatible: > + contains: > + enum: > + - qcom,pcie-sm8450-pcie0 > + then: > + properties: > + clocks: > + minItems: 12 > + maxItems: 12 > + clock-names: > + items: > + - const: pipe # PIPE clock > + - const: pipe_mux # PIPE MUX > + - const: phy_pipe # PIPE output clock > + - const: ref # REFERENCE clock > + - const: aux # Auxiliary clock > + - const: cfg # Configuration clock > + - const: bus_master # Master AXI clock > + - const: bus_slave # Slave AXI clock > + - const: slave_q2a # Slave Q2A clock > + - const: ddrss_sf_tbu # PCIe SF TBU clock > + - const: aggre0 # Aggre NoC PCIe0 AXI clock > + - const: aggre1 # Aggre NoC PCIe1 AXI clock > + > + - if: > + properties: > + compatible: > + contains: > + enum: > + - qcom,pcie-sm8450-pcie1 > + then: > + properties: > + clocks: > + minItems: 11 > + maxItems: 11 > + clock-names: > + items: > + - const: pipe # PIPE clock > + - const: pipe_mux # PIPE MUX > + - const: phy_pipe # PIPE output clock > + - const: ref # REFERENCE clock > + - const: aux # Auxiliary clock > + - const: cfg # Configuration clock > + - const: bus_master # Master AXI clock > + - const: bus_slave # Slave AXI clock > + - const: slave_q2a # Slave Q2A clock > + - const: ddrss_sf_tbu # PCIe SF TBU clock > + - const: aggre1 # Aggre NoC PCIe1 AXI clock Almost the same list. Combine them and just make the 11th entry "enum: [aggre0, aggre1]". Rob