From patchwork Mon Feb 22 11:40:27 2021 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: 385764 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp1194192jap; Mon, 22 Feb 2021 03:41:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8t3TIvNkHax4UHavWVqMjjtJnFd2zWIEamweu6BVPXUSQcJ0RPDRVKdPMz6wZUuUiCG18 X-Received: by 2002:a05:6402:10c8:: with SMTP id p8mr21314088edu.144.1613994098312; Mon, 22 Feb 2021 03:41:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613994098; cv=none; d=google.com; s=arc-20160816; b=CVNaUnsSj9eXtSXzvhEO2erNIaKk11bIUKevtHjpWvtiG/DrmLRacVzT2gdaec3o+y WMyEUfd8TbPxFLJWs/VIvIMFArCQniNTp3IqVEHLqq/Dz20Hxsjnci/gA709cqjY4Zlg 7z//cJgT607B78C5kDxpAdhKEb0htV6CU7O0+4KNFGdGBuw82Jq1p6i2NcQXgchrY6Q6 7dcZ1uasetOZshlSnxffokl7NwZmxNZ4MRDKrAbCHngqnzQYBP9Uk9iKR/lyvFL1RCWz WEuqboBtoobNZnGK5ijKdmdbL3xi50k4mhlDr28XBQoCqevHrX6enmA3l4WS+8mJz6Dv Bcnw== 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=sv41bFmsIQ5l8K6JKG3/WVdhmrOx55wRVtUJF/MisCU=; b=Z2FSDadgKBhDS05se4hgsGpgJX6hzYa7H+b2DJIUYvm1oV60pHJIWyBqDdisstKt5E U6Fdj6TdP4rv0CEMzVkvxDFdwKryUqc1O7j3fYpvUQCd/bI8NB8JhPGDYD1jDeVZwEYI 1CKEcsKFoGMtG6izRW6fSb//o4w6reEKyygtg/UFbNBrar4My1m9iRm2RNIjYFUxM2ix nb22iL77QNvKhwunXD/CI8/v22SuPRqc8wbJI76SKXTcR5RVn02Cf1f6iLYeeLccBZQ3 lxpDFfKxWHRgxrqGhXzz+Ca61cFGi6ERK2bdsaoCVe4UqbFIpksfVFCpciWjqJzfnDED m1NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=hhCGoSFH; 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 y25si11763002edt.601.2021.02.22.03.41.38; Mon, 22 Feb 2021 03:41:38 -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=hhCGoSFH; 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 S230299AbhBVLlh (ORCPT + 6 others); Mon, 22 Feb 2021 06:41:37 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:60568 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229995AbhBVLlg (ORCPT ); Mon, 22 Feb 2021 06:41:36 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 11MBecwP012521; Mon, 22 Feb 2021 05:40:38 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1613994038; bh=sv41bFmsIQ5l8K6JKG3/WVdhmrOx55wRVtUJF/MisCU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=hhCGoSFH0+iO87IOP56zIXEKRM+LXuM2ytWrcY2wPhf5YnG9yJQeTyi9LGQGrDI83 Hm0nQlGSQgv5rKDk6UdfsV0bSj1OaJ0sJnCJqbSvEDS5rLxqrDzG9s35zKnLhCTPys HE4pzz4i3WWD8VMulxZzsQcyljLZGDjv3aFE8CUs= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 11MBec8E062286 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 22 Feb 2021 05:40:38 -0600 Received: from DFLE102.ent.ti.com (10.64.6.23) 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; Mon, 22 Feb 2021 05:40:37 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE102.ent.ti.com (10.64.6.23) 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; Mon, 22 Feb 2021 05:40:37 -0600 Received: from a0393678-ssd.dhcp.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 11MBeVjn105473; Mon, 22 Feb 2021 05:40:34 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Bjorn Helgaas , Rob Herring , Tom Joseph , Lorenzo Pieralisi CC: , , , Subject: [PATCH v3 1/4] dt-bindings: PCI: ti, j721e: Add binding to represent refclk to the connector Date: Mon, 22 Feb 2021 17:10:27 +0530 Message-ID: <20210222114030.26445-2-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210222114030.26445-1-kishon@ti.com> References: <20210222114030.26445-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 --- .../devicetree/bindings/pci/ti,j721e-pci-host.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 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..50dc99ac35d9 100644 --- a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml +++ b/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml @@ -46,12 +46,16 @@ 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: + minItems: 1 items: - const: fck + - const: pcie_refclk vendor-id: const: 0x104c From patchwork Mon Feb 22 11:40:28 2021 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: 385765 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp1194985jap; Mon, 22 Feb 2021 03:43:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyz28TCCt37x9StYOvqUIRtzuGMjId6Qz6uhdggEDG1r5I0P6Wqawx5x6jEhhg3m3eO/y2N X-Received: by 2002:a05:6402:1113:: with SMTP id u19mr21669927edv.205.1613994185896; Mon, 22 Feb 2021 03:43:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613994185; cv=none; d=google.com; s=arc-20160816; b=xx/zKhkOuzcb49WwbBQ5z3haUPeBxrqzEE+pYPp1GeHYNsRcDKU8MT0aTG3eFV9BGJ mTQLL0U+UhGQYDsPNZPZUkPbgnEG/dD46K/F9XqA5PL6R1w2VHzQ14UtJG4TavqGCOfx HP/I52rcr6hGNUrA4JHFTecNMS4RPyCMRKR/KKX+hp+GBdpqdcLe/W0YeTk5Sf0kQrg4 UcQp4xqJfViXhF4RDxTo+2UpA+A19VEwQ0xp1r6vluR41GgOwFeWktkHMdQkDwt/grmr ya1nCaCUGt/3/l86jlXA05cZK3A0KZmkswtDlAsz+tYcOAy87uwROwfgU1HydfDwyVu6 w5uA== 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=fbKMDGrEvUOo980qTvG1SNIpxoodpmicyqIGKvKGGEg=; b=Z0jotfrhPEe6C8i5DDUx/vSOyppR4GzVz9CwS6LBgGR6ThAL3i7JLDNCsvoRoiG8vF rmh0JnNb4fmBZJlCYhOgMdpUwfqzbAIu+AwiVKznMVaY0BTPjWa69b1STezP+c12AqHS ahCgN48I+8ZgXtjRjlyibCZZAmxULXv/seqQSTsSea4EtKRU2t1o+aZaBoAWStSaPU4A XLTh9/JJK1R9SL260em8o0bYENjHkvYG5+5qC4p0jh2TAkl9udQQ/0ZJ4jFmezu4Q/H9 N2hlSECe8+pfbL1hRbPAnIFimLHVXQDB/oFH2gplD3uhqF5zC5s1zHC3coRJpN1VEH6b Yb6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=HV1CEGFm; 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 w5si10570251edd.350.2021.02.22.03.43.05; Mon, 22 Feb 2021 03:43:05 -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=HV1CEGFm; 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 S229995AbhBVLlm (ORCPT + 6 others); Mon, 22 Feb 2021 06:41:42 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:33804 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230399AbhBVLll (ORCPT ); Mon, 22 Feb 2021 06:41:41 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 11MBefUM040401; Mon, 22 Feb 2021 05:40:41 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1613994041; bh=fbKMDGrEvUOo980qTvG1SNIpxoodpmicyqIGKvKGGEg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=HV1CEGFmMunvCJWu22TeXr5IYkecKQcAGaxzJyVtG7G3sYJDJyQZ4fySDFsabCLxr 54BReqVx2qBU3sXXxVGtNtOngGszqkTHnHtPcsrY6KYmnKGoiOzDYnSVaSF6+Kup2L I+gXPgx5nmwIHGChjBoZYEyM33r6KkDuoNy/WCq0= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 11MBefQu126125 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 22 Feb 2021 05:40:41 -0600 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 22 Feb 2021 05:40:40 -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; Mon, 22 Feb 2021 05:40:40 -0600 Received: from a0393678-ssd.dhcp.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 11MBeVjo105473; Mon, 22 Feb 2021 05:40:38 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Bjorn Helgaas , Rob Herring , Tom Joseph , Lorenzo Pieralisi CC: , , , Subject: [PATCH v3 2/4] dt-bindings: PCI: ti, j721e: Add host mode dt-bindings for TI's AM64 SoC Date: Mon, 22 Feb 2021 17:10:28 +0530 Message-ID: <20210222114030.26445-3-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210222114030.26445-1-kishon@ti.com> References: <20210222114030.26445-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 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) -- 2.17.1 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml b/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml index 50dc99ac35d9..05aeb1aa362a 100644 --- a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml +++ b/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml @@ -16,12 +16,14 @@ allOf: properties: compatible: oneOf: - - description: PCIe controller in J7200 + - const: ti,j721e-pcie-host + - description: PCIe controller in AM64 items: - - const: ti,j7200-pcie-host + - const: ti,am64-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: @@ -66,6 +68,8 @@ properties: - const: 0xb00d - items: - const: 0xb00f + - items: + - const: 0xb010 msi-map: true @@ -82,7 +86,6 @@ required: - vendor-id - device-id - msi-map - - dma-coherent - dma-ranges - ranges - reset-gpios From patchwork Mon Feb 22 11:40:29 2021 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: 385766 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp1194991jap; Mon, 22 Feb 2021 03:43:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcqTZ3Tro2WvaZKxjLWZVOZa/kpqu+ZWb8/5IDtUVWQTcu+Sf4Sde7STGED0tjPtRqjLRn X-Received: by 2002:aa7:d64f:: with SMTP id v15mr6087884edr.358.1613994186585; Mon, 22 Feb 2021 03:43:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613994186; cv=none; d=google.com; s=arc-20160816; b=dGaZOGMklaxzHqLpLLXAgKDrUafbXTmpbReBzO5P/TKv43+31o5PBgxu9Vw+YTRkQ/ kqBpi7jRt6Rr7CCPj6ArHmu8oSOo2sWlj5rcBevgowuanfRFGr7XXLABh6vRE5iisIrx IbUF47fos53BbyiuDoul36IGHHtBaYSU0Na8vy6nc70UbT6FbggJTUkP99fNAfYOA6pc 1u6Ls9kBLqRyBu7D2awA6uwPEpygSMZXcoJUKQVyNUll1x9WTUctLuRJxQH7rv0PNOgV 22/LUHTiV9ymEdIY7XjYOHQgO4/XkwDjHkuDOffi9aWY1LE19OZmK94b3801Tm5k9Vhf 8atA== 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=Pcl0cNkSiAoXrLJE0OaBaMIABa9FilDYBc6nx3LEFeA=; b=JYFAsXOZhUVB/p/oADJ2LAkR4RD5UGT+UqIgypJ4E6f8M53rh4IzUnX7Ud7ZDsj6qW Cwl13Bg2VXT0g1ZR3RjK4MTU7yTNp9QIWk2kTzS8dxcltPkbiKIew0QNPfWx2O49sYxd HnC/USwSC14/l+RWRUCBV9vhaMhPvpxs/LyMAKxKfGqxwDUi6hp+KHG6NasVD7nTPO6r 0vZu3GLDQGotTPEx0vvT86Tc/3dgM76TuDjnqa5/mqt3F3kkhhaB+ylHaMIQtuX0FuIm WCQ7oDcvIJRhBLfgKrj0IOSzCPO9Zayfx1YtambAJSnCv6LC2LFXdOSWx+s+lEmqZp5h Igig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dv3LADmz; 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 w5si10570251edd.350.2021.02.22.03.43.06; Mon, 22 Feb 2021 03:43:06 -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=dv3LADmz; 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 S230455AbhBVLlp (ORCPT + 6 others); Mon, 22 Feb 2021 06:41:45 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:60596 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230452AbhBVLlo (ORCPT ); Mon, 22 Feb 2021 06:41:44 -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 11MBei2k012555; Mon, 22 Feb 2021 05:40:44 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1613994044; bh=Pcl0cNkSiAoXrLJE0OaBaMIABa9FilDYBc6nx3LEFeA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=dv3LADmzLtOIngiicxtl21dF80qQ3bD2v48b2Z1bw6vH6/mzR/bQ+/Wlf2ap7eWJA TpWwKfNBKETJ5SKap5cb49/cL4tuzygvALygMCOZ/kjdmhN4GCgsjDLcGQAklmaGO0 rdZIPo8lidSAZUKkdFOIJOHOgcgZOEmlNTCMANIo= 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 11MBeiZ1010755 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 22 Feb 2021 05:40:44 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) 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; Mon, 22 Feb 2021 05:40:44 -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; Mon, 22 Feb 2021 05:40:44 -0600 Received: from a0393678-ssd.dhcp.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 11MBeVjp105473; Mon, 22 Feb 2021 05:40:41 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Bjorn Helgaas , Rob Herring , Tom Joseph , Lorenzo Pieralisi CC: , , , Subject: [PATCH v3 3/4] dt-bindings: PCI: ti, j721e: Add endpoint mode dt-bindings for TI's AM64 SoC Date: Mon, 22 Feb 2021 17:10:29 +0530 Message-ID: <20210222114030.26445-4-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210222114030.26445-1-kishon@ti.com> References: <20210222114030.26445-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 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) -- 2.17.1 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml b/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml index d06f0c4464c6..aed437dac363 100644 --- a/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml +++ b/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml @@ -16,12 +16,14 @@ allOf: properties: compatible: oneOf: - - description: PCIe EP controller in J7200 + - const: ti,j721e-pcie-ep + - description: PCIe EP controller in AM64 items: - - const: ti,j7200-pcie-ep + - const: ti,am64-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 +68,6 @@ required: - power-domains - clocks - clock-names - - dma-coherent - max-functions - phys - phy-names From patchwork Mon Feb 22 11:40:30 2021 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: 385768 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp1195013jap; Mon, 22 Feb 2021 03:43:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzNKC8XC4JHftNVOrQnnnPamJ9iVxPLj5c7iWtUkxiZPDKfFmsu3dEEZAtnO7L3cUhEzTQ X-Received: by 2002:a17:906:c1ca:: with SMTP id bw10mr3030117ejb.510.1613994188847; Mon, 22 Feb 2021 03:43:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613994188; cv=none; d=google.com; s=arc-20160816; b=cfTzUHrXP75QHG1SCSkDTHjNuFuFWNlW+FAsKaodJP2SQl+eMWCwxydPqjCzd8sO6k WNlznrVm5V9foVTpWj1C6H9sqL9OIOpGKdXICx5UDyJR5/0rvceTT2vnErSS1KFgon3T wARLZOrZpIDKwwxX0UY8ttbsG5TyQF9nhNrGbphwayWHWr160pTVUZMHwVmvXjGXer+2 tBJHpwnXu1fLxzeI7JT51Pf82IWIGBo+oveFLLcKpPFg39VFPpuBNHg+KWt+Hu/jO7gy BfNOKHcJUqfZhZNPFeU9GjbBFVcVBE4QShTQ5KXBx/5Jtb8vVOQUc2lhG/VAOgcXk8Tk Joiw== 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=nleILobfMKrszZKPLki70KC/+TSFlp8Thy//aVVnqQ8=; b=0Rfv+DT7C4bsQRaA8omNXdUv8vnlON+aNNGqr+YV5BN7GhLEWH0ct0C1Rfhuy2NQa3 S+mNAhhLP/qshHCkswmSBzgZ3vuZpIPP1yRO07U43nV2EsY8komMVhSD5Gj7Y+LRzTGr RfiAPDG+xAPvsCz2m5W+yxbATZvcDfQpzmY5QvV8CQSYdjUB5oyKZ4RmMPIleA9AUKQB J/gInG1001oXkhFrTYmbzwNYD//gIA8EDjDM981STi6UKzBkKnqjnp91+Q3kkW6QUB0N KV7YjSZhhjArqmNZWAspo7beClpXpMx4xHZLU17HfS4OfxTy9XDCOQgb7F+d5DJH/a6u 0neg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ogDe6+kF; 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 w5si10570251edd.350.2021.02.22.03.43.08; Mon, 22 Feb 2021 03:43:08 -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=ogDe6+kF; 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 S230331AbhBVLmk (ORCPT + 6 others); Mon, 22 Feb 2021 06:42:40 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:60602 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230375AbhBVLmb (ORCPT ); Mon, 22 Feb 2021 06:42:31 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 11MBelgK012592; Mon, 22 Feb 2021 05:40:47 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1613994047; bh=nleILobfMKrszZKPLki70KC/+TSFlp8Thy//aVVnqQ8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ogDe6+kFgPit6OqfNMQZbNHDEVQ6xyutHVgouQMw+eZ+yZ4LV+liqYFa9+roIegfD euHevik/TgkF19DW3e6L2P4N0yqso77AapXrPSJqCpSFhDTAH7nxmeEk0+mbNIQtC3 flS5+5vrSYC42YheyQyqKCjUmjKvdY6NPedk1SY4= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 11MBel63126196 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 22 Feb 2021 05:40:47 -0600 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 22 Feb 2021 05:40:47 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE109.ent.ti.com (157.170.170.41) 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; Mon, 22 Feb 2021 05:40:47 -0600 Received: from a0393678-ssd.dhcp.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 11MBeVjq105473; Mon, 22 Feb 2021 05:40:44 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Bjorn Helgaas , Rob Herring , Tom Joseph , Lorenzo Pieralisi CC: , , , Subject: [PATCH v3 4/4] PCI: j721e: Add support to provide refclk to PCIe connector Date: Mon, 22 Feb 2021 17:10:30 +0530 Message-ID: <20210222114030.26445-5-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210222114030.26445-1-kishon@ti.com> References: <20210222114030.26445-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 | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) -- 2.17.1 Reported-by: kernel test robot Reported-by: Dan Carpenter diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c index dac1ac8a7615..f99af98ab7d1 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 @@ -422,8 +438,10 @@ static int j721e_pcie_probe(struct platform_device *pdev) } ret = cdns_pcie_host_setup(rc); - if (ret < 0) + if (ret < 0) { + clk_disable_unprepare(pcie->refclk); goto err_pcie_setup; + } break; case PCI_MODE_EP: @@ -476,6 +494,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);