From patchwork Fri Feb 24 10:59:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 61269 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp838149wrd; Fri, 24 Feb 2023 03:03:40 -0800 (PST) X-Google-Smtp-Source: AK7set+vui8FHyyHAWfzB4aW1ly4zvqLN7oFhICFVHSyEU9iM9JyxlfURe/kIGd6EGC0nVS9iLVN X-Received: by 2002:a17:907:33cc:b0:86f:d0c9:4bdd with SMTP id zk12-20020a17090733cc00b0086fd0c94bddmr20285440ejb.27.1677236620351; Fri, 24 Feb 2023 03:03:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677236620; cv=none; d=google.com; s=arc-20160816; b=HNYZaaeibhZZ6VSLlPmnawYXZt7ZIojEntIAQqf6GmIT5okAK6OiasK5Ow+gE9euDV /zslQNvhh3jvugKk+HfRrqyx42ur180vSERNc/wgOxHPoQHI8PbNGosOv/ogAQqTNd+m O0gQ2wJ6tjbTmg+TZWPSeXEhzghCPjwNO9azUYWssv8BO+R0fU0PyBrkNJPCyT/3RtOI OEDtcEzWelvECvXmoC5dvOJOj68Hp+oVvCLOxxwqG74Ow4+oYRCFHhR/7RTFoU2s4yPr AH0py13VB5ZgWp5JYoGK/NrYQy/qetxxtAmeWGVvCZvHEeM9Jo/Mm7pIha/Ey2GDZSsj vDMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iP9zGqgMaCSpCYlPZyiAEXYd/RguuzuuCZizAwTQ5gg=; b=BB2O0MWLJMWBX8O818jeiwXItOH8A49Iu+x4u/24ptbvZOokIlgUI+O0bXfiWBA/ms 8obO43wRjXGhyEB2Ay3JzhI5NkGWG1SikbkfweqF553IRaDvD64HNERAwqmDF2Yan41Z ylO2CtlPKvm1nzTwEOyNhI6I7j2t5kq8QQieTiQNS6418UKEHbw2bfB1zHmxzHzrmacN BaD9ZYhC0dJmAlFBG9ZYiUEphS4Hj8fxC+gc92tt84P17KlxXBF+1FE0Kj/MFxIbT9OZ MWR2C8zIpKJ/sJeLYmlMFTzqHkuWvMoDK94Vvj3YGt4MWgKUU4xBYnt0vdkYqeTyYLjJ sjdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J290LwTp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mv15-20020a170907838f00b008d7300083b7si12592597ejc.844.2023.02.24.03.03.15; Fri, 24 Feb 2023 03:03:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J290LwTp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229614AbjBXLBZ (ORCPT + 99 others); Fri, 24 Feb 2023 06:01:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230057AbjBXLAU (ORCPT ); Fri, 24 Feb 2023 06:00:20 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABE9A192 for ; Fri, 24 Feb 2023 02:59:57 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id nw10-20020a17090b254a00b00233d7314c1cso2457678pjb.5 for ; Fri, 24 Feb 2023 02:59:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iP9zGqgMaCSpCYlPZyiAEXYd/RguuzuuCZizAwTQ5gg=; b=J290LwTpIgWswetXj0xEmhbl8yf4qKAssmLQNkDWICvPbVim82qGquoaVCSAX4w99P yMij3+sbJdSID+dtp/Xcig6h52J05UtJDHhnQxXSGRRnrl5TNLC+AVjYiMrLD+jKHJe6 vCE0LntanXhnMa2BBF3tzIykrPBVnk/e7DYyT3s3GDzoYP1YY1ceff5qV93YMpDPX8lT JqhXqsBpko7hwrWNoahh+zPKEN3F2QLQTFdvklHehV3SlZaO/kYQ0MisMKpEZ97JxseJ XKYP6vIxTc+emFFIIl3qZxd5Hvmn//9pKB0WWe1SA5WkQjpsxu02sUlTQ4BqdDkjWg1h jxvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iP9zGqgMaCSpCYlPZyiAEXYd/RguuzuuCZizAwTQ5gg=; b=HjoD0WQnpBDYKA58B6MU2hemUF/Zow6/BUBzuePY6QcgYJbx5QDfCTeEhBTszB294i HvPdM74UJcd08Lfcau4XEeHCieGMI6cSo8zSq5KwAOgUUBaebgem9o0cW/QiIYNDS7V2 7dDpBa5G/57XzaoDwBJkD3e1RklfvHx5mtfkQ9CuV/fsMyKA/+dYMSN+BPcb2b4ikGeZ Trj5QeiP8jViGH9KVAMA9aeI1y1L9fiLLBzeHdQT8H7+Kc/oZ1APFD+NkXXSfjBdKkSo SbcfXV2bUt8oBtTI+uWax5ySkK7/jubds1XEgK+BzCELKBRmGAwamK3LajOlDmscJK0v 6DtQ== X-Gm-Message-State: AO0yUKUmnyO1Lx6pSDidFtxMRRFXLUjmSZ7C7xgJc00rock9N61ndM3f 3kJ9aXoVZ4e8YIJSzPgtZ4cm X-Received: by 2002:a17:90b:38ce:b0:232:d6d2:f847 with SMTP id nn14-20020a17090b38ce00b00232d6d2f847mr16452816pjb.17.1677236397300; Fri, 24 Feb 2023 02:59:57 -0800 (PST) Received: from localhost.localdomain ([117.217.187.3]) by smtp.gmail.com with ESMTPSA id gd5-20020a17090b0fc500b00233cde36909sm1263853pjb.21.2023.02.24.02.59.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Feb 2023 02:59:56 -0800 (PST) From: Manivannan Sadhasivam To: andersson@kernel.org, lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org Cc: konrad.dybcio@linaro.org, bhelgaas@google.com, kishon@kernel.org, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH v2 09/13] ARM: dts: qcom: sdx55-t55: Enable PCIe RC support Date: Fri, 24 Feb 2023 16:29:02 +0530 Message-Id: <20230224105906.16540-10-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230224105906.16540-1-manivannan.sadhasivam@linaro.org> References: <20230224105906.16540-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758710066595280004?= X-GMAIL-MSGID: =?utf-8?q?1758710066595280004?= Enable PCIe RC support on Thundercomm T55 board. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Konrad Dybcio --- arch/arm/boot/dts/qcom-sdx55-t55.dts | 42 ++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm/boot/dts/qcom-sdx55-t55.dts b/arch/arm/boot/dts/qcom-sdx55-t55.dts index 7ed8feb99afb..6339af791b0b 100644 --- a/arch/arm/boot/dts/qcom-sdx55-t55.dts +++ b/arch/arm/boot/dts/qcom-sdx55-t55.dts @@ -242,6 +242,23 @@ &ipa { memory-region = <&ipa_fw_mem>; }; +&pcie_phy { + vdda-phy-supply = <&vreg_l1e_bb_1p2>; + vdda-pll-supply = <&vreg_l4e_bb_0p875>; + + status = "okay"; +}; + +&pcie_rc { + perst-gpios = <&tlmm 57 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 53 GPIO_ACTIVE_HIGH>; + + pinctrl-0 = <&pcie_default>; + pinctrl-names = "default"; + + status = "okay"; +}; + &qpic_bam { status = "ok"; }; @@ -265,6 +282,31 @@ &remoteproc_mpss { memory-region = <&mpss_adsp_mem>; }; +&tlmm { + pcie_default: pcie-default-state { + clkreq-pins { + pins = "gpio56"; + function = "pcie_clkreq"; + drive-strength = <2>; + bias-pull-up; + }; + + perst-pins { + pins = "gpio57"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + wake-pins { + pins = "gpio53"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + &usb_hsphy { status = "okay"; vdda-pll-supply = <&vreg_l4e_bb_0p875>;