From patchwork Sun Jan 22 12:21:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Achal Verma X-Patchwork-Id: 46941 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1128906wrn; Sun, 22 Jan 2023 04:25:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXuo4fIxzDKhp+phbE+yiEViNkBG9kSXwbVlDE1yfoKP+erCqdMJnY5RSY2FKln4Ljl2mjxp X-Received: by 2002:a05:6a20:3820:b0:b8:5eb4:a817 with SMTP id p32-20020a056a20382000b000b85eb4a817mr19305169pzf.44.1674390314073; Sun, 22 Jan 2023 04:25:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674390314; cv=none; d=google.com; s=arc-20160816; b=jq7xMzDvDm1NN0fwEb1u6+SIoN7hHtcfUJ6iwSoYGAsSX4o9FJGSN/MILTJWpAW4QF cULRzj+ygHyCXgpbMadUj6q4jj5U1ON/T0amA12bnmfrrbtCGKszW2yO2fb+2hFEpW0f KzRty5z77UBI1LdgMzDII0zOmVJ5xrvsUeIh0nwNvFRYaFxTPr91lcU2DoXxSnhg7K3B nJ4USTzHPugCAMzF/iCXFxeVUKKAzjNo8GKU8Jq5lkBhOVwgAxQt+7v5QYQegR6dlZ/n RWXOORbr/xTVK/LMEz212TDmazMbUXNZxAwIq8NzCK4O5ReMhT8DC6+pbkjjTPAGiiQ3 wt/Q== 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=fRSHuSmZfTiBYZk4PRNH9gbEGntiiMWgmXGkY1eFdQQ=; b=r1pzlasSR6Y/HapKDnLmPoRhlbbSDhHHfECNnDm3JhVw0HuIec5gWsKhRahKiToMQh 5LIkmBDoodu0orhtUsuP8A1mQ4d1OkC54xRZRW2qPa6ArowEi3ZHARcqIXt+Qtp+h28V tv2YVWf+sf1MRrDKC0H1JdQkFs2h4SmRcCNPJR9tMLnYvpc+O3/p+5ibQ2I5JVRpIt90 jJxfqwE+nAy2cgLUbY/mKjyHdCbm3VnnUhIHvC75HJ2GHMb3CZBKk0SuNnvDNEzsfBpK FCSQPKVLT5Y6ERkRsWds1YH3bdWMm+5x8Vud0XoesiKtDaVygqlTFYTasrMT5RRTAEni /DCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YN9Ap80v; 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 g32-20020a632020000000b004a5f0b510d2si49022125pgg.258.2023.01.22.04.25.01; Sun, 22 Jan 2023 04:25:14 -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=YN9Ap80v; 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 S230127AbjAVMVq (ORCPT + 99 others); Sun, 22 Jan 2023 07:21:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230005AbjAVMVj (ORCPT ); Sun, 22 Jan 2023 07:21:39 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 309194ECF; Sun, 22 Jan 2023 04:21:38 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 30MCLTgN106747; Sun, 22 Jan 2023 06:21:29 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1674390089; bh=fRSHuSmZfTiBYZk4PRNH9gbEGntiiMWgmXGkY1eFdQQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=YN9Ap80vwY+HOduvdurX1Qiaew3l7YQ+jag7FKouXhlUo2JAdCjWUdfIiswxrzVnX jISgbNjqXsPjZC7vHcWNfwh5iRaCgi7lu7tBMU9MKVy8ClpbM61Pj8ZVscou4O8f6R CkPhHWDiVSqCQ/JyI8vAe6OeYfo3DytQORPJO8SI= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 30MCLTk3102331 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 22 Jan 2023 06:21:29 -0600 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Sun, 22 Jan 2023 06:21:28 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE105.ent.ti.com (10.64.6.26) 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; Sun, 22 Jan 2023 06:21:28 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 30MCLSLR076479; Sun, 22 Jan 2023 06:21:28 -0600 From: Achal Verma To: , , , , , , , , , , , CC: , , , Subject: [PATCH v9 4/5] dt-bindings: PCI: ti,j721e-pci-*: add j784s4-pci-* compatible strings Date: Sun, 22 Jan 2023 17:51:20 +0530 Message-ID: <20230122122121.3552375-5-a-verma1@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230122122121.3552375-1-a-verma1@ti.com> References: <20230122122121.3552375-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,URIBL_BLOCKED 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?1755725498081894747?= X-GMAIL-MSGID: =?utf-8?q?1755725498081894747?= 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 32e0c70ed801..d2fbf1f7aa54 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 @@ -86,6 +87,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 9d4611387387..6522daf1f89c 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 @@ -119,6 +120,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