From patchwork Thu Nov 10 18:31:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 623385 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36E5AC433FE for ; Thu, 10 Nov 2022 18:32:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229932AbiKJScE (ORCPT ); Thu, 10 Nov 2022 13:32:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231932AbiKJScD (ORCPT ); Thu, 10 Nov 2022 13:32:03 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42E3F4B981 for ; Thu, 10 Nov 2022 10:32:02 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id b3so4856958lfv.2 for ; Thu, 10 Nov 2022 10:32:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=z/is0taNXLslowunLGClJmRq4bGkunbgWU7W/P30/eU=; b=QLcHEj8tmldSMsk/xD24UrMK9a7oBI0QD81Lb7DRhio4Bq9+sev6S9cYliQkZi9IZJ A9LeCM0F8uHoSqHbAc1Ljs6XAkA6qtEeq9jCnJn6HxOdtmelKpGo/whY7X+XPsCnGQZQ rZZ3Ght1t9tvoyGUI0T8NrILngxwf1gkEbLrZV+A2LKo/4ZW8sWAg6SKp3SnxTYWsKUE J9nfihYuBB/Lurb+0g+4vNhP96ADQ2vBV1+tyks84QNllXrRwl24Smb1Nz2HBSU3ICNS rCbQM6hJGBdxDWAsIUK8vrJwAWHkdOpF/UPNs+t6Q+AmePZXo1dgF3zbdgoQr+L76dGF uiHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z/is0taNXLslowunLGClJmRq4bGkunbgWU7W/P30/eU=; b=aM4AsQjOGwHLVySkM18es+T/oN9BdNSNZRGvTpPMgwIsw95lPnomvCS0fJ+vV4bSn0 SWV7SoNMWDyN6j7OXi79NDSS1feE/6QXoc7FAkI9Z4FceJPgf8H6qDH1xBdTWw3Qmu/V pGIzhPAUTp8/8N3Aqt6eYgHIr0V5l/65cZzIg15rCWlhmwtaCctpK7EBlyLNUlQDj5A+ lEp9RvSEg64fb2VWaVJrsLP03exxpJ5dtd/nIy84WrQzjYKGlzIZiaBw7gKaxFfjpbTD 1ZBnt/OT48Q2JFCtMGb54yK/wQb6ot3BW+dTV7RbOHjboG6+uRY40XYcFije/tthRLUv vfbA== X-Gm-Message-State: ACrzQf31W73lgp4LBHFkjhRKGs88uHCPK9nlpmJ1E5OWKuNx3Z2aV4fr y3F4rOvIe9O+Z3FoIQia/NEhAQ== X-Google-Smtp-Source: AMsMyM7opwENk69nQT6Sh/+9iZQMq3uo2+A+baUuYbxu/3Zee88ILJtAneYkibZ6izkX9PgzoE93ig== X-Received: by 2002:a05:6512:3093:b0:4b0:2457:f1e9 with SMTP id z19-20020a056512309300b004b02457f1e9mr1824201lfd.58.1668105120634; Thu, 10 Nov 2022 10:32:00 -0800 (PST) Received: from eriador.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id m18-20020a197112000000b004a2550db9ddsm2837087lfc.245.2022.11.10.10.31.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Nov 2022 10:32:00 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , Bjorn Helgaas , Stanimir Varbanov , Manivannan Sadhasivam Cc: Vinod Koul , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 1/8] dt-bindings: PCI: qcom: Add sm8350 to bindings Date: Thu, 10 Nov 2022 21:31:51 +0300 Message-Id: <20221110183158.856242-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221110183158.856242-1-dmitry.baryshkov@linaro.org> References: <20221110183158.856242-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add bindings for two PCIe hosts on SM8350 platform. The only difference between them is in the aggre0 clock, which warrants the oneOf clause for the clocks properties. Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/pci/qcom,pcie.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml index 54f07852d279..502c15f7dd96 100644 --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml @@ -32,6 +32,7 @@ properties: - qcom,pcie-sdm845 - qcom,pcie-sm8150 - qcom,pcie-sm8250 + - qcom,pcie-sm8350 - qcom,pcie-sm8450-pcie0 - qcom,pcie-sm8450-pcie1 - qcom,pcie-ipq6018 @@ -185,6 +186,7 @@ allOf: - qcom,pcie-sc8180x - qcom,pcie-sc8280xp - qcom,pcie-sm8250 + - qcom,pcie-sm8350 - qcom,pcie-sm8450-pcie0 - qcom,pcie-sm8450-pcie1 then: @@ -540,6 +542,49 @@ allOf: items: - const: pci # PCIe core reset + - if: + properties: + compatible: + contains: + enum: + - qcom,pcie-sm8350 + then: + oneOf: + # Unfortunately the "optional" aggre0 clock is used in the middle of the list + - properties: + clocks: + maxItems: 9 + clock-names: + items: + - 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: tbu # PCIe TBU clock + - const: ddrss_sf_tbu # PCIe SF TBU clock + - const: aggre0 # Aggre NoC PCIe0 AXI clock + - const: aggre1 # Aggre NoC PCIe1 AXI clock + - properties: + clocks: + maxItems: 8 + clock-names: + items: + - 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: tbu # PCIe TBU clock + - const: ddrss_sf_tbu # PCIe SF TBU clock + - const: aggre1 # Aggre NoC PCIe1 AXI clock + properties: + resets: + maxItems: 1 + reset-names: + items: + - const: pci # PCIe core reset + - if: properties: compatible: @@ -670,6 +715,7 @@ allOf: - qcom,pcie-sdm845 - qcom,pcie-sm8150 - qcom,pcie-sm8250 + - qcom,pcie-sm8350 - qcom,pcie-sm8450-pcie0 - qcom,pcie-sm8450-pcie1 then: