From patchwork Sat Mar 25 12:24:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 74892 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp374209vqo; Sat, 25 Mar 2023 05:26:57 -0700 (PDT) X-Google-Smtp-Source: AKy350YiGXGt1mMNTr46ZMUwZkffS2XuerySLn3n5QaoEDFDHk64uATsDCloN15QYWwTXMu+whdT X-Received: by 2002:a17:907:1c21:b0:8b1:7ead:7d43 with SMTP id nc33-20020a1709071c2100b008b17ead7d43mr8252027ejc.50.1679747217046; Sat, 25 Mar 2023 05:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679747217; cv=none; d=google.com; s=arc-20160816; b=LzPiASC6IV8Yijn9W8li/S8PHlS9lZbGo6Fo21Krhj/ixDLn3anKomQKrc5GepWrPY T5vZ513ls/XE3Cysi9jlF1maclaKI6HCCRB3jz0NWA2TR6DE/Wy1iKtJ+zdp5JHqDh8z 5Od0SvA7qflkRuqn8tZaFgEemEEPMb8qfeex6Boy4iCF/amejxguY2Cs8iW6g7GdePly TCaMUrbXGVbwWesDTz1WHxtX51D45eoX+6+SG+xcCh5oHtoCGJGImMWd2Joa9KZRYQnJ RYkCozZ8HS8T/lMlQpc2vkr/0mluXUCUFPyZYsTRqnHQt0do6fNT/bl+27o9y5u/Qi8Z 9KMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ND+TiDHMWNXDGCK93kYwl3HzLNPwB+s8pcMFlTtRLDI=; b=LPkpbG1lIKU5UhFv3DduuGNS6JyUvITDfb54YCkVGn98skCR+xWlbXFpBClX1J+ZiP 1FZQ9CD3NDmyosIU1Mq1Bdida/P8gegRxMXjE6miuLdG+Ej0yhEe8qq3/F5RWikEoj0J +bYqGEaa6TSDMpAS5C7j2N9tLz3h7oXOImgrJhku13bFAVNyrtq2RzlqqX3XDxZYBK0l YeYxxe27NCx9Es9pc2O7GGajRQ0sxgO9Y+7mG26Pn1N0wgF4QTG/RDjWdmGYChBMOAiR rbQ9CfjbIwpsLouN1CQ7Ce7BXipesaYsKAib2bdYJBn7Pfft6FsLbdGFI2l2bfHYaCLV hLMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tRXG/kvd"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b5-20020a1709062b4500b0093b064e5934si7855868ejg.464.2023.03.25.05.26.33; Sat, 25 Mar 2023 05:26:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tRXG/kvd"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232060AbjCYMZM (ORCPT + 99 others); Sat, 25 Mar 2023 08:25:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232027AbjCYMZJ (ORCPT ); Sat, 25 Mar 2023 08:25:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BF7A14226; Sat, 25 Mar 2023 05:25:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DEC28B80707; Sat, 25 Mar 2023 12:25:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F48EC433A1; Sat, 25 Mar 2023 12:25:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679747104; bh=9q14Il46k5uyn12jYNB4ZkkGtkCjMJRqckUk0X9df9w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tRXG/kvdlZXHpWZv1Laz4Spb7z8KV1mSQVHI4zCmzLozMf5Rspktwx6QP9i0PhNYV frz7snEppGdeqdQkjAXrLBgrEnOsCOvEXQhdkBa7poDuVwaPhUaGMUzA+tGtEX+tnv uvjf7PztK8GL3MytSd8g+y84WkKXiUzzYfflc9dR7PkT3Trn68v3MWC7Rsh9wb/3C5 ongHUZzTX2VJLTWAerPagg2n45dlnSOTm8XR49QjnmNVIzZpUskqcK1fNnM6kgry9s s0feSFSd6f5ZJsuEea6hHjpAbZjifashomF7wmTR4+X0f4FdOs1Sy1+RAIHK6nSNpN TPs5cnM6sWsJA== From: Vinod Koul To: Lorenzo Pieralisi , Bjorn Helgaas , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Konrad Dybcio , Rob Herring , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Krzysztof Kozlowski , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 02/12] dt-bindings: PCI: qcom: Document sc8180x properties Date: Sat, 25 Mar 2023 17:54:34 +0530 Message-Id: <20230325122444.249507-3-vkoul@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230325122444.249507-1-vkoul@kernel.org> References: <20230325122444.249507-1-vkoul@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761342617933800861?= X-GMAIL-MSGID: =?utf-8?q?1761342617933800861?= sc8180x PCIe clocks and resets are different from the common pcie binding, this warrants the oneOf clause for the clocks and resets Signed-off-by: Vinod Koul --- .../devicetree/bindings/pci/qcom,pcie.yaml | 49 ++++++++++++++++++- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml index fb32c43dd12d..d4f837924e7c 100644 --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml @@ -459,6 +459,33 @@ allOf: items: - const: pci # PCIe core reset + - if: + properties: + compatible: + contains: + enum: + - qcom,pcie-sc8180x + then: + properties: + clocks: + minItems: 8 + maxItems: 8 + clock-names: + items: + - const: pipe # PIPE 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: ref # REFERENCE clock + - const: tbu # PCIe TBU clock + resets: + maxItems: 1 + reset-names: + items: + - const: pci # PCIe core reset + - if: properties: compatible: @@ -507,7 +534,6 @@ allOf: compatible: contains: enum: - - qcom,pcie-sc8180x - qcom,pcie-sm8150 - qcom,pcie-sm8250 then: @@ -675,6 +701,7 @@ allOf: contains: enum: - qcom,pcie-sa8540p + - qcom,pcie-sc8180x - qcom,pcie-sc8280xp then: required: @@ -717,7 +744,6 @@ allOf: enum: - qcom,pcie-msm8996 - qcom,pcie-sc7280 - - qcom,pcie-sc8180x - qcom,pcie-sdm845 - qcom,pcie-sm8150 - qcom,pcie-sm8250 @@ -746,6 +772,25 @@ allOf: - const: msi6 - const: msi7 + - if: + properties: + compatible: + contains: + enum: + - qcom,pcie-sc8180x + then: + oneOf: + - properties: + interrupts: + maxItems: 1 + interrupt-names: + items: + - const: msi + iommus: + maxItems: 1 + iommu-map: + maxItems: 2 + - if: properties: compatible: