From patchwork Thu Jul 25 17:53:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 2833571 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 32CE69F4E2 for ; Thu, 25 Jul 2013 17:57:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F35C1203A8 for ; Thu, 25 Jul 2013 17:57:20 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E7E21203AF for ; Thu, 25 Jul 2013 17:57:19 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V2Plr-00060j-I9; Thu, 25 Jul 2013 17:56:13 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V2PlF-0000k8-1j; Thu, 25 Jul 2013 17:55:33 +0000 Received: from mail-bk0-x231.google.com ([2a00:1450:4008:c01::231]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V2PkR-0000ZM-3b for linux-arm-kernel@lists.infradead.org; Thu, 25 Jul 2013 17:54:43 +0000 Received: by mail-bk0-f49.google.com with SMTP id r7so425384bkg.36 for ; Thu, 25 Jul 2013 10:54:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=23LDt2VpL4BTndwtCz9WNz8EnLmPSmBgnH1juqVMbZ8=; b=a4jpasomUtC3tYOTO3uXVAH0QnxJ4nwON6La1LC7nDmhdHEmZ2/Z2m96YXLhqh6mBI XnSm54PjgkU7taQl1QfeibqLD6ODaVRLhFDV+T63mqIGQdcqTK2EDX3HLafZRw52ITW1 5IMWTrb3b4QHLJGGq64nZmnBZKb7kKc7bi78Kd8kE1cwlX3vCjatBJAyNAjEWMz4HJZP fcSfk/2ToXnOQJGyKEKu3uLp0hVLNdCeLPKPXAueOkmIdLAYKiaS04OxYoxT27oNFZDn p5CDDZ8vp5SSQDSeDXJrDlDv74alfbxi/Ezm8bHXXSDhHKr1lRrih/GEcN8tJ21GMjAP +uAw== X-Received: by 10.204.189.4 with SMTP id dc4mr6117177bkb.2.1374774861691; Thu, 25 Jul 2013 10:54:21 -0700 (PDT) Received: from localhost (dotsec.net. [62.75.224.215]) by mx.google.com with ESMTPSA id m6sm11377110bki.7.2013.07.25.10.54.17 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 25 Jul 2013 10:54:20 -0700 (PDT) From: Thierry Reding To: Bjorn Helgaas , Stephen Warren Subject: [PATCH v5 07/16] ARM: tegra: trimslice: Initialize PCIe from DT Date: Thu, 25 Jul 2013 10:53:21 -0700 Message-Id: <1374774810-18459-8-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1374774810-18459-1-git-send-email-thierry.reding@gmail.com> References: <1374774810-18459-1-git-send-email-thierry.reding@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130725_135443_307577_ECC936F6 X-CRM114-Status: GOOD ( 10.90 ) X-Spam-Score: -2.0 (--) Cc: Thomas Petazzoni , devicetree@vger.kernel.org, Russell King , Jason Cooper , Jay Agarwal , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thierry Reding With the device tree support in place, probe the PCIe controller from the device tree and remove the corresponding workaround in the board file. Signed-off-by: Thierry Reding Signed-off-by: Thierry Reding --- Changes in v2: - add missing dummy regulator nodes by Stephen Warren - rename port 0 DT node and disable unused port 1 arch/arm/boot/dts/tegra20-trimslice.dts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/tegra20-trimslice.dts b/arch/arm/boot/dts/tegra20-trimslice.dts index ed4b901..9f1b237 100644 --- a/arch/arm/boot/dts/tegra20-trimslice.dts +++ b/arch/arm/boot/dts/tegra20-trimslice.dts @@ -310,6 +310,16 @@ nvidia,sys-clock-req-active-high; }; + pcie-controller { + status = "okay"; + pex-clk-supply = <&pci_clk_reg>; + vdd-supply = <&pci_vdd_reg>; + + pci@1,0 { + status = "okay"; + }; + }; + usb@c5000000 { status = "okay"; nvidia,vbus-gpio = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>; @@ -413,6 +423,24 @@ enable-active-high; gpio = <&gpio 170 0>; /* PV2 */ }; + + pci_clk_reg: regulator@3 { + compatible = "regulator-fixed"; + reg = <3>; + regulator-name = "pci_clk"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + pci_vdd_reg: regulator@4 { + compatible = "regulator-fixed"; + reg = <4>; + regulator-name = "pci_vdd"; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + regulator-always-on; + }; }; sound {