From patchwork Wed Mar 8 08:24:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 66085 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp208250wrd; Wed, 8 Mar 2023 00:29:29 -0800 (PST) X-Google-Smtp-Source: AK7set/8g92xV4fpm2cfLzS5EpHWCP0157eyEqPDmx2UEp9F6QKtMDKs4xLYR0seshdbe4q365dD X-Received: by 2002:a17:90b:3891:b0:234:7ccf:3c7c with SMTP id mu17-20020a17090b389100b002347ccf3c7cmr17178698pjb.9.1678264169421; Wed, 08 Mar 2023 00:29:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678264169; cv=none; d=google.com; s=arc-20160816; b=PYAawHgMvq4NVfzEKdmMLboCDfFzZPsf5hLUmDN0WlO+cLxk6XU6nTaTHqjsCUPbjM 2+RrDCBufYXg4KjVrPpqgokW+pExvrBL2HLAHdIZoZpVOLcBR4KzoQpY5WRPYIKcQaCg mIoq4GJsnLFhS8PGDPY6GgCmK3yN/aumrYt0b4hfX9wFrmAmZJjhAQ56Ny5Uc8njhfrf va/6e0o4YGm/8URhMbx56OO0Haxtv8noW68X96iahBXC/Nbcd9QrUCO15crDHKjelgkj Rd4XTMKd9JvpZQLL1XVmpLR31t8di6985sbDDlwkvOd34dmfKkbE+2MYAhznyhltVwp/ grxA== 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=AfPfJbuBCr/z6UPf30LbgTiprhegyjugmOR3U4nPOZw=; b=FEsoLMS8yJ4iQ6NalX8LmAiL4kUEf83GB1vUzgJG/f42lO7CXzNy0ZhBv5qm8Dyrqj zNAHF5PJOrCpx8IW4WvvnihFkDFSrGtux2WDfxfJ0mAZ39oIhbHDWX3bUPvDty6D7/MI g1HhgE5QdSGRK9VlEqj64d1bRUk9/fAr9FIXVuEJ7QR5mkXnErc5kMqKIWEKU4HPsesw JFC6EhQPHU34FerAMii4IkPtnflbdlfMur9HqEOWexp0odc///HP0W2N1uzgiizxjGga llMui8IoQGGiQOMg+/HBgH3eWo+H+yWSiWO1hTpBPSKz1hEG+f7guQcOjzczV7nP1DZq 6teA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JzrgFsMk; 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 gq1-20020a17090b104100b00235563071d3si16601816pjb.75.2023.03.08.00.29.16; Wed, 08 Mar 2023 00:29:29 -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=JzrgFsMk; 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 S230139AbjCHI0L (ORCPT + 99 others); Wed, 8 Mar 2023 03:26:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230145AbjCHIZV (ORCPT ); Wed, 8 Mar 2023 03:25:21 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 817BCB1A4E for ; Wed, 8 Mar 2023 00:25:12 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id 6-20020a17090a190600b00237c5b6ecd7so1495333pjg.4 for ; Wed, 08 Mar 2023 00:25:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678263912; 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=AfPfJbuBCr/z6UPf30LbgTiprhegyjugmOR3U4nPOZw=; b=JzrgFsMkZEbo/x9XSaSLYAe3Xh0Ys+qsISvV8tYJb1YGAkQL1+CAgyekEEDsUIsPI6 iaegsZRji2odfHxrMAnzaRtslPruxPs/i3tMqJoMrKFfL6ADGXfB5UvR80s6BXm8tK7U CjNyNJdShcE0omGpLz+KWJPgCaGD1Rvn5fmd3PEYED9ZSrr7sGaLvpl/D/hB5HHEDNvz Kxtu6WNVa0GjT3O4TtJP59xFfzguORhj2CzPWkLxhYmHTph8qGeH+uPRMsKF58SyHDbC yG7tpeWMzXzcT3Tx7GKIFC0kSL4FfmMbnXJG71GP6oQIZ+8sffc9ykpKGql0zCiBN0NR a9fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678263912; 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=AfPfJbuBCr/z6UPf30LbgTiprhegyjugmOR3U4nPOZw=; b=WRIZSUZSME/aNNQr2PmCNHrdtKneFsr2HJDXn/7ak2lMPq1h9ApwJyzHsIzq/MvRZd NjTxAvaccJGfRDTR3PM4nH343WtlPXi/4vQYExiosEjZBF/2YZxmr64fwewtwX6kIBr4 huKPkCKrdIG3VADgtbuyCOTeNtn7Yo3AIvBhbVBOm/H0EvZoz35zfBFtI+BHJW9eDvYe ftZ+q0dbse9yb4ZM9CmbJYGQ7gHtECxrbiT6N5rvHuw3fRSDH3HVa3NJWKGySdBVfivN YrMzv51s7sczA6i8j6j8xwOivNBJwpgjTZ9Ab1w1GaCvgCim2qRatrBb9a/lzCFhgjAu YOTQ== X-Gm-Message-State: AO0yUKV2bHT4CvsJTdQzNmkVTl8OSm8cAz1Jj+18Oog7aotinBqupX6B wO8B+fvS355kyj+v+zyHyKrtP9b/nf0R92ywXA== X-Received: by 2002:a17:903:441:b0:19a:b5cd:6e73 with SMTP id iw1-20020a170903044100b0019ab5cd6e73mr13939201plb.3.1678263911955; Wed, 08 Mar 2023 00:25:11 -0800 (PST) Received: from localhost.localdomain ([59.97.52.140]) by smtp.gmail.com with ESMTPSA id s10-20020a170902ea0a00b0019aaab3f9d7sm9448086plg.113.2023.03.08.00.25.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 00:25:11 -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 v3 09/13] ARM: dts: qcom: sdx55-t55: Enable PCIe RC support Date: Wed, 8 Mar 2023 13:54:20 +0530 Message-Id: <20230308082424.140224-10-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230308082424.140224-1-manivannan.sadhasivam@linaro.org> References: <20230308082424.140224-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,URIBL_BLOCKED autolearn=unavailable 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?1759787529760550463?= X-GMAIL-MSGID: =?utf-8?q?1759787529760550463?= Enable PCIe RC support on Thundercomm T55 board. Reviewed-by: Konrad Dybcio Signed-off-by: Manivannan Sadhasivam --- 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 d5343bb0daee..5edc09af8e0d 100644 --- a/arch/arm/boot/dts/qcom-sdx55-t55.dts +++ b/arch/arm/boot/dts/qcom-sdx55-t55.dts @@ -242,6 +242,23 @@ &ipa { status = "okay"; }; +&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 = "okay"; }; @@ -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>;