Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp246845ybx; Wed, 6 Nov 2019 16:26:07 -0800 (PST) X-Google-Smtp-Source: APXvYqyn3di0TNFQGVrMTIWbzJqEkMt/DyIBgz/FaRj+FC454RFD+LX6AkVRcWVf/PG1xYyusLS7 X-Received: by 2002:a17:906:770c:: with SMTP id q12mr388807ejm.75.1573086367818; Wed, 06 Nov 2019 16:26:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573086367; cv=none; d=google.com; s=arc-20160816; b=CyR1AdoW7/URQZ76pMZ44c+U+2Vo+R8CV51FwHm2iMPQszMouhhHELRVKAaYUxKnfP zJnEJpooXZAPMuJgV4yLPc1RVX6T2SXIBxoC6aRuPGwaThwgiMY28IhzNBt8ZSBE32yZ T70di5zLDU/mzoo+yaakB73RfjLjRfOSOyvkfwoj00+vR6Eyw5gvR7UOV5dZMHDlBfp0 dbmcKGKEBd8Afow3kwMshI2dkkpFHAtoFe9dx3ISWKl40zQbfeppkvKn95CMP/XHWHrS NPkQ7mqoFoL+0PVwCWPixaBhOCqbOrZ9wmp6sINwV1Bw90/4j+DWwb52gmfdxeMto118 7b9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DeQmt4uNFQlcdJU+lnHrpKJXh0m7NA3EyMol7F5dCYM=; b=Hq3EcNf0zMz/B38/XFq0k2UWOl/Nw6Nx24KvdC58Ulcmw88LHkSfyflGpvyYufAORU u93q8s0dKVhQLfGq9hb+8arV0n+jAYW4gbUZGA+k+tIb0W0rS+sVo/WIqfFG5UksIM4y IkjHRyb4jxgXD1en3JNqhLQH9kH8geYXfiIDMY+nZKgFlk+b1kWqscTF2PZ5yKm/xYck 3/7u8hFf7KGGrMHfulgj7Hvj/WSTfIixCrD4D/4TJ1cAr5QcZNKnG/QAgng9H5iOKx0B AHl06B1UZxD+ootAEumtgoEUR6C0lG7YnCAcza2G2WQoFoZXovvjQc0bYftOvZequpbE /oEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=giGLYDsp; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si201908edk.122.2019.11.06.16.25.44; Wed, 06 Nov 2019 16:26:07 -0800 (PST) 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=@linaro.org header.s=google header.b=giGLYDsp; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732614AbfKGAW4 (ORCPT + 99 others); Wed, 6 Nov 2019 19:22:56 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:41980 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732452AbfKGAWz (ORCPT ); Wed, 6 Nov 2019 19:22:55 -0500 Received: by mail-pg1-f195.google.com with SMTP id h4so397677pgv.8 for ; Wed, 06 Nov 2019 16:22:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DeQmt4uNFQlcdJU+lnHrpKJXh0m7NA3EyMol7F5dCYM=; b=giGLYDsp5nBEBpAmVbLK6sFyoxa5/UJ50tE8VoCfPrp6W3M/UEiX2KvdIeLEJ2pbEq rqmChMG2jWXKMEGjGYb38PCDIBQtczjqxf7xMLdCaAxl1XCgnvZS82lnXyOYv0h7ZRNS dg3kA6sRy2wiHGJjn9Tw9Ow5ZpTJZLdCaQ3CvoZXGzODnkyhFk2KRsiDGB6NyDV4FV5K v8Y/iB6QWdFj/ObvfItlW9S433OjBXvJyigpI6uzjL4yhyETF+cS9yUuGlb9nga5u+Bu xtkP8RKhDxFA9O8y0j/ImYgUOV45yyR85um6frL1KUZN20RK607Eb/IR2RaFFDfsi8iq Mv6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DeQmt4uNFQlcdJU+lnHrpKJXh0m7NA3EyMol7F5dCYM=; b=jnPdTCzgUF10QNM3lL7mvdtiTS6k1k/bIjalku6sqtiCMbaMQ9Y9xBdSyOFHZeuBLj 8I9J8/uXEBhX45blCiI9WlLSjcr83BeMOhLo26Z13hhnQzjZUleRPikivBl4CzS/bLzf OAZekg5sL/ScwWkT40zPI9xb+L3bRAVQ9ltfWebT5KSBaq8ICdTmbdkUNfGf2g1+CJ45 dEG27yy/yH3pESpZsKuI6PwZQqaq1MWec0Ch3KGDdvQ4/kfroHC8h1speHJI5ArNXxUa QjwzCjHCpECqJRkVJe5EcTZ/WH+zNrLw42A4G9Ed6mwvjjy6I2RgMeN08GUsYidl8RXc e71g== X-Gm-Message-State: APjAAAUEJu6FAoZFFzZBIeERcik0fdPDeF5qYCX3500LuUzRlEBBggYL eAMoLeRDywknUhXwY9gDIwQVMA== X-Received: by 2002:a63:4622:: with SMTP id t34mr778490pga.359.1573086174966; Wed, 06 Nov 2019 16:22:54 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id i13sm155272pfo.39.2019.11.06.16.22.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2019 16:22:54 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson Cc: Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vinod Koul Subject: [PATCH v2 3/3] arm64: dts: qcom: db845c: Enable PCIe controllers Date: Wed, 6 Nov 2019 16:22:47 -0800 Message-Id: <20191107002247.1127689-4-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191107002247.1127689-1-bjorn.andersson@linaro.org> References: <20191107002247.1127689-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable the two PCIe controllers found on the Dragonboard845c. Reviewed-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Changes since v1: - Picked up Vinod's R-b arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 91 ++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index f5a85caff1a3..c314b5d55796 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -340,6 +340,39 @@ ; }; +&pcie0 { + status = "okay"; + perst-gpio = <&tlmm 35 GPIO_ACTIVE_LOW>; + enable-gpio = <&tlmm 134 GPIO_ACTIVE_HIGH>; + + vddpe-3v3-supply = <&pcie0_3p3v_dual>; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie0_default_state>; +}; + +&pcie0_phy { + status = "okay"; + + vdda-phy-supply = <&vreg_l1a_0p875>; + vdda-pll-supply = <&vreg_l26a_1p2>; +}; + +&pcie1 { + status = "okay"; + perst-gpio = <&tlmm 102 GPIO_ACTIVE_LOW>; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie1_default_state>; +}; + +&pcie1_phy { + status = "okay"; + + vdda-phy-supply = <&vreg_l1a_0p875>; + vdda-pll-supply = <&vreg_l26a_1p2>; +}; + &pm8998_gpio { vol_up_pin_a: vol-up-active { pins = "gpio6"; @@ -382,6 +415,31 @@ }; &tlmm { + pcie0_default_state: pcie0-default { + clkreq { + pins = "gpio36"; + function = "pci_e0"; + bias-pull-up; + }; + + reset-n { + pins = "gpio35"; + function = "gpio"; + + drive-strength = <2>; + output-low; + bias-pull-down; + }; + + wake-n { + pins = "gpio37"; + function = "gpio"; + + drive-strength = <2>; + bias-pull-up; + }; + }; + pcie0_pwren_state: pcie0-pwren { pins = "gpio90"; function = "gpio"; @@ -390,6 +448,39 @@ bias-disable; }; + pcie1_default_state: pcie1-default { + perst-n { + pins = "gpio102"; + function = "gpio"; + + drive-strength = <16>; + bias-disable; + }; + + clkreq { + pins = "gpio103"; + function = "pci_e1"; + bias-pull-up; + }; + + wake-n { + pins = "gpio11"; + function = "gpio"; + + drive-strength = <2>; + bias-pull-up; + }; + + reset-n { + pins = "gpio75"; + function = "gpio"; + + drive-strength = <16>; + bias-pull-up; + output-high; + }; + }; + sdc2_default_state: sdc2-default { clk { pins = "sdc2_clk"; -- 2.23.0