From patchwork Wed Jan 18 12:59:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Achal Verma X-Patchwork-Id: 45280 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2340993wrn; Wed, 18 Jan 2023 05:38:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXu8qdN9DKxLp/TSjVRPtNkVKaX0y9v1yDjidKEIgLtHan7P/J9wVHh2NyNMCFrbNp8Vhmvz X-Received: by 2002:a05:6402:448a:b0:472:46bf:fb3c with SMTP id er10-20020a056402448a00b0047246bffb3cmr18995993edb.35.1674049096993; Wed, 18 Jan 2023 05:38:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674049096; cv=none; d=google.com; s=arc-20160816; b=uUIAAALkNLYFyHUkVCgj7rYqchlQGq/WvUpkQZ8DrtUonMByDPfLx8ncv3dFiqTjw8 AkwQnv8zl2YDKSFK4eOXaYHI7hO2/fzUeoDrNjs++BT0JeMkgcFfYvaNHWGz4r8ziDC5 GDLiUBs1LFy9EiKkSckQtvq38RSDly/MV9XGqqyVcPHqp4679a9Rnlml9kvRcgrImmNU OtBofNwQd8l54UV0KytpFIa8J30uJefYKe6hT+iLWYIJ4DHuGGv6p9ZjOtbSZPynOyMr wofjVn+gbx5bvcaWuIbvhBXGHD4CpztkjXQrDjQ0yrKlAXCAqSpSw2vTF3tK1l85k8mw mTYg== 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=YAqElOXhzT46KPkEsmhZokUdEmoR/hwjHhCnO56UkJM=; b=HRFiQLtEiambNSftVvzKfY52DXSccKrNxdLRDx01232CGF4p6E6h6rJR/HcJihjjGP xaCYCZOOpSsYDJltF+Cx5pakmGmVQL1cAy1oR5LOP1gIZQ+LmmVbInXjlEay58Z/1gbT uGlBUqBQxPCDDkKBHlcBdovsZtoBn8rx0fu0UWDWPmmluQJE2yT/1naTcAvm1S7W9HKA Iw9asFF6GoKzxKa2OX6ipJNzys+vN/NupinNDs4EbjL+XQr/X7tVsxFnegJiazeDxFx7 VPA5WG+XT+ddn9e9RSaMWNTeqec6R2xQhKGKW7hpCJb6FBliB9Huc1KX3O4Xg/vmU7GX IwGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Dp7R+4jQ; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs12-20020a170906dc8c00b0085ca2799671si8080572ejc.136.2023.01.18.05.37.51; Wed, 18 Jan 2023 05:38:16 -0800 (PST) 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=@ti.com header.s=ti-com-17Q1 header.b=Dp7R+4jQ; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230037AbjARNdq (ORCPT + 99 others); Wed, 18 Jan 2023 08:33:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229754AbjARNc7 (ORCPT ); Wed, 18 Jan 2023 08:32:59 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3362A86EF2; Wed, 18 Jan 2023 04:59:59 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 30ICxitP042744; Wed, 18 Jan 2023 06:59:44 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1674046784; bh=YAqElOXhzT46KPkEsmhZokUdEmoR/hwjHhCnO56UkJM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Dp7R+4jQIW9e6WWWftVyi4cM321cjRQrW4R7D6v10+MAnfABll4KDePvldlHDY5NA pqUw10Olr6+4JuMG61udvqw8dItSxqjePgwVgwJuhZgqkmU9GiQi5uM/CWyh1mx/Z5 Ofmg2/jItI3eTD+dFUEahFhWE6pCZo1OCyTwdZHg= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 30ICxix2041234 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 18 Jan 2023 06:59:44 -0600 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Wed, 18 Jan 2023 06:59:43 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Wed, 18 Jan 2023 06:59:43 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 30ICxhfZ003323; Wed, 18 Jan 2023 06:59:43 -0600 From: Achal Verma To: , , , , , , , , , , , CC: , , , Subject: [PATCH v8 4/5] dt-bindings: PCI: ti,j721e-pci-*: add j784s4-pci-* compatible strings Date: Wed, 18 Jan 2023 18:29:35 +0530 Message-ID: <20230118125936.3456716-5-a-verma1@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230118125936.3456716-1-a-verma1@ti.com> References: <20230118125936.3456716-1-a-verma1@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham 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?1755367705779800799?= X-GMAIL-MSGID: =?utf-8?q?1755367705779800799?= From: Matt Ranostay Add definition for j784s4-pci-ep + j784s4-pci-host devices along with schema checks for num-lanes. Signed-off-by: Matt Ranostay Acked-by: Krzysztof Kozlowski Signed-off-by: Achal Verma --- .../devicetree/bindings/pci/ti,j721e-pci-ep.yaml | 12 ++++++++++++ .../devicetree/bindings/pci/ti,j721e-pci-host.yaml | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml b/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml index 403cd3ef1177..0c93832e381b 100644 --- a/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml +++ b/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml @@ -14,6 +14,7 @@ properties: compatible: oneOf: - const: ti,j721e-pcie-ep + - const: ti,j784s4-pcie-ep - description: PCIe EP controller in AM64 items: - const: ti,am64-pcie-ep @@ -87,6 +88,17 @@ allOf: minimum: 1 maximum: 2 + - if: + properties: + compatible: + enum: + - ti,j784s4-pcie-ep + then: + properties: + num-lanes: + minimum: 1 + maximum: 4 + required: - compatible - reg diff --git a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml b/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml index 7bd78cfca845..6b1521c6b607 100644 --- a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml +++ b/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml @@ -14,6 +14,7 @@ properties: compatible: oneOf: - const: ti,j721e-pcie-host + - const: ti,j784s4-pcie-host - description: PCIe controller in AM64 items: - const: ti,am64-pcie-host @@ -120,6 +121,17 @@ allOf: minimum: 1 maximum: 2 + - if: + properties: + compatible: + enum: + - ti,j784s4-pcie-host + then: + properties: + num-lanes: + minimum: 1 + maximum: 4 + required: - compatible - reg