From patchwork Thu Dec 24 11:56:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 351908 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp6956613jai; Thu, 24 Dec 2020 03:59:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQ5RhRcqWsm9wEfVd0PudE4hADN+ZxDC2qViAJj8t7HI1dFDcLC7L1SqKzhFz3XNYjxYLS X-Received: by 2002:a17:906:1741:: with SMTP id d1mr17762204eje.182.1608811159731; Thu, 24 Dec 2020 03:59:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608811159; cv=none; d=google.com; s=arc-20160816; b=Yd+r7EVNwZyURzqp9K3aTZ8f9fjj1vdIvBC75YHvnU9sbpCNxcJbFeMyhSzU2xq8PB ipP5r9ZoZCji+oTsmPkayXBtVaPHLVwwoRSEgGJSt6xItHW+BO9EVIGwhS7ydQU5Owa0 mpwxlHI7g3sKE1i6aDcXtM6OSjSi2JCJeSPD110Y3W0dmot1uiUegBMeW2YLq23dN4DS 0fFgLSJsbco91QlDQOoFBz3l/w7EBWOJoGG0LjuVK30v1D7G5vqhX40Bx+SA+nNJwyLh 1iv4qyFX27JNRTtxAd8awmtXxx4MzO67ktH/oFJQ32MG4IzqtIdVOiCEPPYc3GKYvjXL a1Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=5LOsNk+DfZ3KJX3uwomu6Vnma6rc/1g2DMZdSRAxi8s=; b=syIv6V2hTbZ0TUB0iSenp2++SFED2ZCEK20MnHQBOXrhqBiTrnNB7291upW6Mf1b9X N8SspslQgUmR+9uwCkr7RbPYOYqu4tvLkhOzfJ/iilaAsQkh2PxHp9LLvv8iljX4wAT0 vgrsvKFyqbRgNlGRhPgZeUBL4jYVmky/LLsnwsHB4IgRZoFc6eB1DqH/lv7q4WFK14Y5 fcdSwuJZpoup1/N46v+vHSNuH1+l/WKUB4rYnAho6tVZtkGxGGaaxeV2LYrXw6irwDEE pckXTIB4WaGOz6aqkSE1K+2qRNR6MJI3WRhHaVYO4TTPZOF3sJj640wQP/SSY2r9thqU o95w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tGydbZys; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si13152054ejc.50.2020.12.24.03.59.19; Thu, 24 Dec 2020 03:59:19 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tGydbZys; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1728365AbgLXL65 (ORCPT + 7 others); Thu, 24 Dec 2020 06:58:57 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:41556 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726746AbgLXL64 (ORCPT ); Thu, 24 Dec 2020 06:58:56 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0BOBvCrD086849; Thu, 24 Dec 2020 05:57:12 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1608811032; bh=5LOsNk+DfZ3KJX3uwomu6Vnma6rc/1g2DMZdSRAxi8s=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=tGydbZysrBUh3mESmaR7CxQsvo9rm1NXXlHyEHU2YdPr1bK4i288o54WjUiE7MbFP 5l69rNOLRJ67hyLaX82kd651vj7WA2eQPsWg8UKVNqs8D4SBBcwLZIMlUj4elq5g0m 4dOXCCKlgcIcaBNn0VkLQUdr37VWlLRpDTGX+ELo= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0BOBvCWE117324 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Dec 2020 05:57:12 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 24 Dec 2020 05:57:11 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Thu, 24 Dec 2020 05:57:11 -0600 Received: from a0393678-ssd.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0BOBv0Hr006549; Thu, 24 Dec 2020 05:57:07 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Bjorn Helgaas , Rob Herring , Tom Joseph , Lorenzo Pieralisi CC: , , , , Subject: [PATCH 1/4] dt-bindings: PCI: ti, j721e: Add binding to represent refclk to the connector Date: Thu, 24 Dec 2020 17:26:55 +0530 Message-ID: <20201224115658.2795-2-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201224115658.2795-1-kishon@ti.com> References: <20201224115658.2795-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add binding to represent refclk to the PCIe connector. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/pci/ti,j721e-pci-host.yaml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml b/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml index 0880a613ece6..7607018a115b 100644 --- a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml +++ b/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml @@ -46,12 +46,21 @@ properties: maxItems: 1 clocks: - maxItems: 1 - description: clock-specifier to represent input to the PCIe + minItems: 1 + maxItems: 2 + description: clock-specifier to represent input to the PCIe for 1 item. + 2nd item if present represents reference clock to the connector. clock-names: - items: - - const: fck + oneOf: + - description: Represent input clock to the PCIe + items: + - const: fck + - description: Represent input clock to the PCIe and reference clock to + the connector. + items: + - const: fck + - const: pcie_refclk vendor-id: const: 0x104c From patchwork Thu Dec 24 11:56:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 351909 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp6956625jai; Thu, 24 Dec 2020 03:59:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMAccCHO1+RBshWb108jdw+TZqVi14Pic5Z1Uojyzb/q91KTLsx0BbJspUg1kb6jjymCOt X-Received: by 2002:a17:906:4756:: with SMTP id j22mr28511437ejs.353.1608811161394; Thu, 24 Dec 2020 03:59:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608811161; cv=none; d=google.com; s=arc-20160816; b=eq+4wYlS0mw2xBvErOWFU3AuuJr2M4SUBryJ52+qyPFx4MFNYNJLZy1/AaYzC86r/c vmQH/IOx6sFZVIvwTQyQnI+/KFGm4T26RY/ata2pJoO7i28rRZ6qjm2+wvTkgEyRgF/s a8nDl2saR5cpURKM3PzsidH26oNnYTwg04AMvVt8awvo83nZ4x1sgmv9Tn5/FeK4QbCS 8dH09X3qxxJKg2ERq7HedxVwyGSAb7CaLXndYkxZ9o2IqQKqNcAVGQLysGXAghMghcZy 6ZIcO90HMhsPJDplDgZbeyDT/w4BmY1Mes7/IsCz0k/Fc6DmtPju+REkHS70nT93Zaty o7ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=pW+3Nkkfv15OxmYOKkSjlpKQ8IkjEw2ZblHzX+3dit8=; b=oSLEtFa6YaOYBFEQZhOJToBvdp8/tZmg9DqXGgeoMzQFH/K6vqa6jgWsUqivqA8vrZ HUPcB7kPy+70txHGIL7fkU+Fjq2OK1mVE+coSUxaQziAwSrKcEQePzTIs9xrKc6w+jX7 ihRizdMF56f4PIFyfmI+b4kPxMGhCL3DnZXPnFlNYST5w8v7XiTTeAliUQBZzZZXu0fT YEWb9lM8K9cn+hKTdz90VLxcuqj9oVdUU149mQoii7IBuFE3fZr2lagdyLHOwvFWVdEy 4ijsKAHxLhhHEFCFsbHi4R3JysGR+JIespW1Z6Us/VZ9XINu2ArUTMiTkq8mNf8+PjCY EcvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Vgh61y9w; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si13152054ejc.50.2020.12.24.03.59.21; Thu, 24 Dec 2020 03:59:21 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Vgh61y9w; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1728470AbgLXL7C (ORCPT + 7 others); Thu, 24 Dec 2020 06:59:02 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:43462 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726746AbgLXL7B (ORCPT ); Thu, 24 Dec 2020 06:59:01 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0BOBvHqJ052084; Thu, 24 Dec 2020 05:57:17 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1608811037; bh=pW+3Nkkfv15OxmYOKkSjlpKQ8IkjEw2ZblHzX+3dit8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Vgh61y9w6Up/HJhhv+RJaqSuosjJRs/GtYUreT0o1vce5vWsbUYaCkc7ndYoANQuo urkG3KaWFaN3WFGb4tggjDCBo15vRYkryoqg+mtVy6bGc8QOeRUNSni62Il+ij3ZGv Kr6tSZ9peTeATB9JZWDk+5cZfkUZ6a7D6YRzrw3Y= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0BOBvH7X117455 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Dec 2020 05:57:17 -0600 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 24 Dec 2020 05:57:17 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Thu, 24 Dec 2020 05:57:17 -0600 Received: from a0393678-ssd.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0BOBv0Hs006549; Thu, 24 Dec 2020 05:57:12 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Bjorn Helgaas , Rob Herring , Tom Joseph , Lorenzo Pieralisi CC: , , , , Subject: [PATCH 2/4] dt-bindings: pci: ti, j721e: Add host mode dt-bindings for TI's AM64 SoC Date: Thu, 24 Dec 2020 17:26:56 +0530 Message-ID: <20201224115658.2795-3-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201224115658.2795-1-kishon@ti.com> References: <20201224115658.2795-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add host mode dt-bindings for TI's AM64 SoC. This is the same IP used in J7200, however AM64 is a non-coherent architecture. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/pci/ti,j721e-pci-host.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml b/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml index 7607018a115b..77118dba415e 100644 --- a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml +++ b/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml @@ -16,12 +16,17 @@ allOf: properties: compatible: oneOf: - - description: PCIe controller in J7200 + - const: ti,am64-pcie-host + - const: ti,j7200-pcie-host + - const: ti,j721e-pcie-host + - description: PCIe controller in AM64 items: + - const: ti,am64-pcie-host - const: ti,j7200-pcie-host - const: ti,j721e-pcie-host - - description: PCIe controller in J721E + - description: PCIe controller in J7200 items: + - const: ti,j7200-pcie-host - const: ti,j721e-pcie-host reg: @@ -87,7 +92,6 @@ required: - vendor-id - device-id - msi-map - - dma-coherent - dma-ranges - ranges - reset-gpios From patchwork Thu Dec 24 11:56:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 351906 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp6956579jai; Thu, 24 Dec 2020 03:59:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJygma7FYJrOQ9if9NrLq9hiCsh2GZH19XPw81vpS0jgg3cld+uPuLtVUnSS6tPhkz31617O X-Received: by 2002:aa7:c884:: with SMTP id p4mr27861132eds.72.1608811156565; Thu, 24 Dec 2020 03:59:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608811156; cv=none; d=google.com; s=arc-20160816; b=MTGTfofy67M/B6w9oUZWLyPWydB3Biiqv0UVZUGuFY1nafEMmAR9xWxseYfBZBIl6z EYZ5Ry6E9WRJfPMtQn6efl4X+UygYqHEq4ZnCtXKJCRwPGj6QWT4jUKK/dcICWWkDZvj hDk0JOSYlEIskuidTI+DOqDDJX8ISqTQ0bV2vBP10nELL0YlWSGj0ToPTcdeqXXxAwXf pFKyxt3Z3460bFQomy2kxbKzG7/ziIwKNlCHqdxQpBwkT37pOJxx1drEu54Mni2xQwmN omEBtiIdWA3ePILgtp+PmyRbI5OzAgG0AKSKfUijWVsXKxXoRwxfS+WogV5KYg9T1yIE YpPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ekIjBsGEy8ttVisERONWFmyGyUxpFsUO4LLaUm07A6A=; b=lB/q0vPWv0kQEbAOaXN7iLVYkF/oLFJMiafbIdjm8Una/8EuZ1dcnd67BPVi0sbLvY F0wqiMWWh81an6HvoqiZmU2zr3QM5+4wPsc09hLK6a0T7Y9EpRQMKdjgnc6zF1dMyuiL F2vMmkgvwTivo7+3BK7torfX/5MIvzclp2HLzwRP9N6A04CuiSlH8UqVvFoploV7YyX4 HfBv2xO8OYEZ9zB7XygSin27QDZoc2E6W7n7u0hVTGaKzxRkXhfbvq4KuYFoPtrXoXQh ggDi4y2N0MlMLEvylLbKXbTNRaJyYuXFAhrpqgrd7oHBW2MhJoIj+DGgrmev8dYnRtyz w7rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="p6nk/JL/"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si13152054ejc.50.2020.12.24.03.59.16; Thu, 24 Dec 2020 03:59:16 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="p6nk/JL/"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1726839AbgLXL6L (ORCPT + 7 others); Thu, 24 Dec 2020 06:58:11 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:43472 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726746AbgLXL6L (ORCPT ); Thu, 24 Dec 2020 06:58:11 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0BOBvMlM052125; Thu, 24 Dec 2020 05:57:22 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1608811042; bh=ekIjBsGEy8ttVisERONWFmyGyUxpFsUO4LLaUm07A6A=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=p6nk/JL/5qWdqdkMT3uZ1EPdm9BDQrfpwb4hGQX1cGDUcywFWtAUDTi0fDDxNsse6 GqutUzh/JAPxe6lYYhZqlNJUOdafFQ7VOeWmu54q5upgBiv9rzia11ngZGJbTPs+YO wwFeeJ6v66anRm7FQekO9YcxFB9LuCnKirOZPcmY= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0BOBvMBO109218 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Dec 2020 05:57:22 -0600 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 24 Dec 2020 05:57:22 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Thu, 24 Dec 2020 05:57:22 -0600 Received: from a0393678-ssd.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0BOBv0Ht006549; Thu, 24 Dec 2020 05:57:17 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Bjorn Helgaas , Rob Herring , Tom Joseph , Lorenzo Pieralisi CC: , , , , Subject: [PATCH 3/4] dt-bindings: pci: ti, j721e: Add endpoint mode dt-bindings for TI's AM64 SoC Date: Thu, 24 Dec 2020 17:26:57 +0530 Message-ID: <20201224115658.2795-4-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201224115658.2795-1-kishon@ti.com> References: <20201224115658.2795-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add endpoint mode dt-bindings for TI's AM64 SoC. This is the same IP used in J7200, however AM64 is a non-coherent architecture. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/pci/ti,j721e-pci-ep.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml b/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml index d06f0c4464c6..447c8fe0f09e 100644 --- a/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml +++ b/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml @@ -16,12 +16,17 @@ allOf: properties: compatible: oneOf: - - description: PCIe EP controller in J7200 + - const: ti,am64-pcie-ep + - const: ti,j7200-pcie-ep + - const: ti,j721e-pcie-ep + - description: PCIe EP controller in AM64 items: + - const: ti,am64-pcie-ep - const: ti,j7200-pcie-ep - const: ti,j721e-pcie-ep - - description: PCIe EP controller in J721E + - description: PCIe EP controller in J7200 items: + - const: ti,j7200-pcie-ep - const: ti,j721e-pcie-ep reg: @@ -66,7 +71,6 @@ required: - power-domains - clocks - clock-names - - dma-coherent - max-functions - phys - phy-names From patchwork Thu Dec 24 11:56:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 352000 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2235CC4332B for ; Thu, 24 Dec 2020 11:58:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E81F3224B0 for ; Thu, 24 Dec 2020 11:58:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728233AbgLXL6Q (ORCPT ); Thu, 24 Dec 2020 06:58:16 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:41600 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726746AbgLXL6Q (ORCPT ); Thu, 24 Dec 2020 06:58:16 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0BOBvRIA086889; Thu, 24 Dec 2020 05:57:27 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1608811047; bh=wQTq7FhKu7M5hoDmCgbENkxGmB7RVPt1BHM/ptKQwmE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=r7FACEs8Zjnm425OkXaQfsJUUH1T8nNYXh1Hgho4RW/s4hSSEQ2ZNBKiLMbK+iz8O 84dsiv9oxy8FFtqfv0jJjoSVBhD9U09gAf9mwrf7yucbXErUTQgp+oNnIf5tv5YvmH d8GfCgHzGlSdie6PJmguR5NZjevJOnTa3xqA70xY= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0BOBvROX117625 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Dec 2020 05:57:27 -0600 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 24 Dec 2020 05:57:27 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Thu, 24 Dec 2020 05:57:27 -0600 Received: from a0393678-ssd.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0BOBv0Hu006549; Thu, 24 Dec 2020 05:57:22 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Bjorn Helgaas , Rob Herring , Tom Joseph , Lorenzo Pieralisi CC: , , , , Subject: [PATCH 4/4] PCI: j721e: Add support to provide refclk to PCIe connector Date: Thu, 24 Dec 2020 17:26:58 +0530 Message-ID: <20201224115658.2795-5-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201224115658.2795-1-kishon@ti.com> References: <20201224115658.2795-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support to provide refclk to PCIe connector. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/cadence/pci-j721e.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c index dac1ac8a7615..8ec6d9c3e164 100644 --- a/drivers/pci/controller/cadence/pci-j721e.c +++ b/drivers/pci/controller/cadence/pci-j721e.c @@ -6,6 +6,7 @@ * Author: Kishon Vijay Abraham I */ +#include #include #include #include @@ -50,6 +51,7 @@ enum link_status { struct j721e_pcie { struct device *dev; + struct clk *refclk; u32 mode; u32 num_lanes; struct cdns_pcie *cdns_pcie; @@ -310,6 +312,7 @@ static int j721e_pcie_probe(struct platform_device *pdev) struct cdns_pcie_ep *ep; struct gpio_desc *gpiod; void __iomem *base; + struct clk *clk; u32 num_lanes; u32 mode; int ret; @@ -408,6 +411,19 @@ static int j721e_pcie_probe(struct platform_device *pdev) goto err_get_sync; } + clk = devm_clk_get_optional(dev, "pcie_refclk"); + if (IS_ERR(clk)) { + dev_err(dev, "failed to get pcie_refclk\n"); + goto err_pcie_setup; + } + + ret = clk_prepare_enable(clk); + if (ret) { + dev_err(dev, "failed to enable pcie_refclk\n"); + goto err_get_sync; + } + pcie->refclk = clk; + /* * "Power Sequencing and Reset Signal Timings" table in * PCI EXPRESS CARD ELECTROMECHANICAL SPECIFICATION, REV. 3.0 @@ -476,6 +492,7 @@ static int j721e_pcie_remove(struct platform_device *pdev) struct cdns_pcie *cdns_pcie = pcie->cdns_pcie; struct device *dev = &pdev->dev; + clk_disable_unprepare(pcie->refclk); cdns_pcie_disable_phy(cdns_pcie); pm_runtime_put(dev); pm_runtime_disable(dev);