Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp476775imm; Fri, 21 Sep 2018 03:29:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdahwFfrQJSGg3BINdFGyQZJk4XxU9htjoxvNY/fGJ924WsnWFJd5VNd6kdh7wsgjvgfLThM X-Received: by 2002:a62:1314:: with SMTP id b20-v6mr46522177pfj.230.1537525786563; Fri, 21 Sep 2018 03:29:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537525786; cv=none; d=google.com; s=arc-20160816; b=iNhw1EM9uy5fxRNAKxxUqeM/MfqrcG3jK5l0XL7xi8v2nKsEIt6W4lUinf1+XgU9+G bK4GamnUGW82qEwFvjvUNqO/m6l0Pyp5JX6zaYto/acq70i8/3wgj0qdnNMfCNSQ4Ncu 8nQLRKoIH7PIa9i3Z63BosGFdZvgd3TFZVNZs6je/hng7HkVmpltS57vLKDH7B/oRAoY zh0dcweGPjOUzOjcBeclgzUp1pwvSWSQ1+BmHo25mI330rWKhrQMpr4S54PHeLCIkRFP Jmib1F1cwF9jnAlxfEZuD4WOL0hfXNdHCLtXLOdU0NAc/by3h3itJ7NT06Qx5oknCZuQ AmMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=G6U5swdLtcxz5b7VzXF2rNiaT43Ewb5qqlJuWNULZ/c=; b=piiTqid/b4q4hvbUx4LsjjatHJzHOnYZRJX8MfUXLfMmKrtzW9RPNSoNV5gcxTrM2X Yr7kBZJN9XZvj68OqhFbxRXy5UuU6JLpCpVSAwwuPHTx7lQlwJjRRUYcJRrVp+TyzzMR iZZ4MOute9W6e825jSub8ROayQ5ycf0DWEvX4NRIwFd2CzG6k0mIJQUZwKy39ggZEaOp boBmb3WHoYHNk+HXs6AUmIUAawddJNAKNtX2Nj3zd2QagpCFvnIWpIVbTtJBW3TF640a rboBmovtNUpaluHJd4DaGoA10bTj6H+94W8sBL2Iq5E+DAgVvBLO4il5gz8kF0SpBzW1 AVIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Vct+aCZK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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. [209.132.180.67]) by mx.google.com with ESMTP id s81-v6si27971134pfk.213.2018.09.21.03.29.30; Fri, 21 Sep 2018 03:29:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Vct+aCZK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2389764AbeIUQPj (ORCPT + 99 others); Fri, 21 Sep 2018 12:15:39 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:35388 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389559AbeIUQPi (ORCPT ); Fri, 21 Sep 2018 12:15:38 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id w8LAP2MC030867; Fri, 21 Sep 2018 05:25:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1537525502; bh=G6U5swdLtcxz5b7VzXF2rNiaT43Ewb5qqlJuWNULZ/c=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Vct+aCZK3/TP7Gy127AtJeTTOnKxpcSkLgnHhs+L6Hm3itokCGMUAILJ3lytbEkfr jZMDOd1fuTtGnicF1aaP4h5oNglLkMj+fThi/NaMEk4JJOnLximKFMmwNL9tfPbw+U 8WCV+CdgexjeiOLmKWjR9HdvYr8lNhasGioTdSeg= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8LAP2JM020796; Fri, 21 Sep 2018 05:25:02 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) 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.1466.3; Fri, 21 Sep 2018 05:25:01 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Fri, 21 Sep 2018 05:25:01 -0500 Received: from a0393678ub.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8LAMEtd032280; Fri, 21 Sep 2018 05:24:57 -0500 From: Kishon Vijay Abraham I To: Jingoo Han , Joao Pinto , Bjorn Helgaas , Rob Herring , Lorenzo Pieralisi , Murali Karicheri , Kishon Vijay Abraham I , CC: Mark Rutland , Santosh Shilimkar , Tero Kristo , Nishanth Menon , , , , , Sekhar Nori Subject: [RFC PATCH 35/40] ARM: dts: keystone-k2e: Use the updated binding to describe PCIe in k2e Date: Fri, 21 Sep 2018 15:51:50 +0530 Message-ID: <20180921102155.22839-36-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180921102155.22839-1-kishon@ti.com> References: <20180921102155.22839-1-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the updated binding to describe PCIe in k2e. (The older binding has never worked in upstream kernel since serdes driver was never upstreamed). Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- arch/arm/boot/dts/keystone-k2e.dtsi | 15 ++++++++------- arch/arm/boot/dts/keystone.dtsi | 18 ++++++++++++++---- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/arch/arm/boot/dts/keystone-k2e.dtsi b/arch/arm/boot/dts/keystone-k2e.dtsi index 085e7326ea8e..d9945d600c95 100644 --- a/arch/arm/boot/dts/keystone-k2e.dtsi +++ b/arch/arm/boot/dts/keystone-k2e.dtsi @@ -136,20 +136,21 @@ }; pcie1: pcie@21020000 { - compatible = "ti,keystone-pcie","snps,dw-pcie"; + compatible = "ti,keystone-pcie", "snps,dw-pcie"; + reg = <0x21020000 0x1000>, <0x21021000 0x1000>, <0x21022000 0x1000>; + reg-names = "app", "dbics", "config"; clocks = <&clkpcie1>; - clock-names = "pcie"; + clock-names = "fck"; #address-cells = <3>; #size-cells = <2>; - reg = <0x21021000 0x2000>, <0x21020000 0x1000>, <0x02620128 4>; - ranges = <0x82000000 0 0x60000000 0x60000000 - 0 0x10000000>; - + ranges = <0x82000000 0 0x60000000 0x60000000 0 0x10000000>; + ti,syscon-pcie-id = <&pcie_devid>; + ti,syscon-pcie-mode = <&pcie_mode>; status = "disabled"; device_type = "pci"; num-lanes = <2>; + num-viewport = <32>; bus-range = <0x00 0xff>; - /* error interrupt */ interrupts = ; #interrupt-cells = <1>; diff --git a/arch/arm/boot/dts/keystone.dtsi b/arch/arm/boot/dts/keystone.dtsi index c298675a29a5..0245fe854367 100644 --- a/arch/arm/boot/dts/keystone.dtsi +++ b/arch/arm/boot/dts/keystone.dtsi @@ -93,6 +93,16 @@ #size-cells = <1>; ranges = <0x0 0x02620000 0x1000>; + pcie_devid: pcie-devid@128 { + compatible = "syscon"; + reg = <0x00000128 0x4>; + }; + + pcie_mode: pcie-mode@14c { + compatible = "syscon"; + reg = <0x0000014c 0x4>; + }; + kirq0: keystone_irq@2a0 { compatible = "ti,keystone-irq"; reg = <0x2a0 0x4>; @@ -297,13 +307,13 @@ pcie0: pcie@21800000 { compatible = "ti,keystone-pcie", "snps,dw-pcie"; + reg = <0x21800000 0x1000>, <0x21801000 0x1000>, <0x21802000 0x1000>; + reg-names = "app", "dbics", "config"; clocks = <&clkpcie>; - clock-names = "pcie"; + clock-names = "fck"; #address-cells = <3>; #size-cells = <2>; - reg = <0x21801000 0x2000>, <0x21800000 0x1000>, <0x02620128 4>; - ranges = <0x82000000 0 0x50000000 0x50000000 - 0 0x10000000>; + ranges = <0x82000000 0 0x50000000 0x50000000 0 0x10000000>; status = "disabled"; device_type = "pci"; -- 2.17.1