From patchwork Wed Nov 16 13:04:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 21053 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp127697wru; Wed, 16 Nov 2022 05:05:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf5YCsPRwYxCbinjOh4QGcbS77c9XGJzVvmuqoIXt0wGapnHbk8IzVapdem93A/rjoYm64CT X-Received: by 2002:a17:90b:b0f:b0:213:d08f:a483 with SMTP id bf15-20020a17090b0b0f00b00213d08fa483mr3658209pjb.21.1668603924288; Wed, 16 Nov 2022 05:05:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668603924; cv=none; d=google.com; s=arc-20160816; b=pn71XdhrVj+vvDY6ZRZcQcMeDh9pUv7oAAKWOdw6bjDHag3xSbZ00HEM1shIwY5PcW LZWgfl1SamrBWtLcsOYcOBLjS9Hut2zJb4Nwd4HAOWXFa8FVi+8oS6VfHE51D4WJnjO2 VjauIextB6Nen11HjWh3ozCVzRLPubbEHT28+C1VvWUvMrTW74O2lEIOjTV7sDSONGDX 2ut0L6LA/FGl3EsKInkSw1xvhI8NsKwEduC8aFHOAzRyS+S6f3vOJetsuFQ3aSvlgpvK pjdWKR9B+AUcuEatJqlMjJxnFa/qxdKLF5accVjl9MuHbrpvr1D0x2cV6KojTExkKhov obvg== 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=PDPHEEaVB0ByL1QejxhqdfYXs09dfDHsAgFha8KgtL4=; b=es2qEcgu9KTBzxiAoUwEiUDmSWYHSRf0xMWog22SGpHrtx00GZJ86pfZSHdaca+ywJ IXW3/7vozXd7NVw/96Iq1GYEIOoEeUlriGk5TyhSrG2Ezb+h6bN2z4D4gAr5KmvOWrru ynWZ6K7HZPCKdWSFpwOb4B2qR5SKXXIAjIBIYjEMRBegLDCkRAMVyVEb1Qir2ujNLQSa vHAR7DM8NxcouMw5uDx1yojLOtluzHs3/5xRGt02elChgNaHRLquM6JySeNnd8U4ZvV/ Sl6cyI4Gk4bcwZbrVvc/a+rvx35VKjPPrrhqKeFtFOLlFc/TxycIiav2wRrpGl3fV5CU Ln6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t1tN4b5+; 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 s2-20020a63ff42000000b0043aebb63fc6si15931058pgk.81.2022.11.16.05.05.02; Wed, 16 Nov 2022 05:05:24 -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=t1tN4b5+; 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 S233697AbiKPNEv (ORCPT + 99 others); Wed, 16 Nov 2022 08:04:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233451AbiKPNEl (ORCPT ); Wed, 16 Nov 2022 08:04:41 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7747519C20 for ; Wed, 16 Nov 2022 05:04:40 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id cl5so29806753wrb.9 for ; Wed, 16 Nov 2022 05:04:40 -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=PDPHEEaVB0ByL1QejxhqdfYXs09dfDHsAgFha8KgtL4=; b=t1tN4b5+HteefnAyzuoMnRbHP/OKr+FhL2R3KrmGshvdO/2yOAC5L1nunApO9Ug1CJ 2pikDz2YiTIx/n0ZOqQPCIR9zmr3kqiisohrfkrXXHaHAT2qBzoNYG7liVCJKj1zpqO6 +VTUqlhs//vB6ca2tNOcVodRsOCBFIxA/2HVKUsKE51nFgxGfUzBr692uEwPXVvBkSSO l/SDmavmp+2Q6q4F0WYlpEYfxZMCBRevn01opjSevsUQ9ryjpYuNITtyCjKg6OGPT9fI pJudUCdB02K3IaylmbiiYL5nH7xeYPEfuPCqp126ZogbZ/JzxHT9mytA6A6ygtHg0B0I pBJQ== 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=PDPHEEaVB0ByL1QejxhqdfYXs09dfDHsAgFha8KgtL4=; b=7FYoybaAdtVa7MEH4xkw8w6VNguJdNQTZ5rRir0dZaqBbNnhlpCka6y9GoZui2YOFb 8L/ypQ+98fM/CX27tfuBon3C40VTsVR4VGup3dQHrgJvZMWzkBgFO/JWYaKBx+tafH5G Sto2op5IE6vFY5DZU+uxkWfcIlAL4Gr/cE7IJQWQ1lysQfq2YKUMr9s51+N0Dm9ARJSp D5RPZRT7wHjuH+KWVDnr9W1reDkMjtKlLN3PkUTBGsMiPOxcjyDMz5mMmkYQVTe0g34I iCrIxhYhgw2xb3uescVlOHuD422DpI41CyYifCMV36wucS8TkQYm8B+fsRReMIMyAcRX DGUA== X-Gm-Message-State: ANoB5pnhSmelc1TwSUj+y0/buM4oBbH+lo2oH3isjVlCGWkv4bHEFWhr rvhTChmT0fSzshtSdhp5tA/Jr3AcA5HXSA== X-Received: by 2002:a5d:56cb:0:b0:236:d611:84e1 with SMTP id m11-20020a5d56cb000000b00236d61184e1mr13891246wrw.328.1668603878999; Wed, 16 Nov 2022 05:04:38 -0800 (PST) Received: from localhost.localdomain ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id co19-20020a0560000a1300b0022e66749437sm15130613wrb.93.2022.11.16.05.04.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 05:04:38 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: qcom: sm8550: Add PCIe PHYs and controllers nodes Date: Wed, 16 Nov 2022 15:04:29 +0200 Message-Id: <20221116130430.2812173-2-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221116130430.2812173-1-abel.vesa@linaro.org> References: <20221116130430.2812173-1-abel.vesa@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?1749658028338632912?= X-GMAIL-MSGID: =?utf-8?q?1749658028338632912?= Add PCIe controllers and PHY nodes. Signed-off-by: Abel Vesa --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 245 +++++++++++++++++++++++++++ 1 file changed, 245 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index 07ba709ca35f..5c274d0372ad 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -648,12 +648,16 @@ gcc: clock-controller@100000 { #reset-cells = <1>; #power-domain-cells = <1>; clock-names = "bi_tcxo", "sleep_clk", + "pcie_0_pipe_clk", + "pcie_1_pipe_clk", "pcie_1_phy_aux_clk", "ufs_phy_rx_symbol_0_clk", "ufs_phy_rx_symbol_1_clk", "ufs_phy_tx_symbol_0_clk", "usb3_phy_wrapper_gcc_usb30_pipe_clk"; clocks = <&rpmhcc RPMH_CXO_CLK>, <&sleep_clk>, + <&pcie0_lane>, + <&pcie1_lane>, <&pcie_1_phy_aux_clk>, <&ufs_phy_rx_symbol_0_clk>, <&ufs_phy_rx_symbol_1_clk>, @@ -1372,6 +1376,247 @@ mmss_noc: interconnect@1780000 { qcom,bcm-voters = <&apps_bcm_voter>; }; + pcie0: pci@1c00000 { + compatible = "qcom,pcie-sm8550-pcie0"; + reg = <0 0x01c00000 0 0x3000>, + <0 0x60000000 0 0xf1d>, + <0 0x60000f20 0 0xa8>, + <0 0x60001000 0 0x1000>, + <0 0x60100000 0 0x100000>; + reg-names = "parf", "dbi", "elbi", "atu", "config"; + device_type = "pci"; + linux,pci-domain = <0>; + bus-range = <0x00 0xff>; + num-lanes = <2>; + + #address-cells = <3>; + #size-cells = <2>; + + ranges = <0x01000000 0x0 0x60200000 0 0x60200000 0x0 0x100000>, + <0x02000000 0x0 0x60300000 0 0x60300000 0x0 0x3d00000>; + + interrupts = ; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &intc 0 0 0 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */ + <0 0 0 2 &intc 0 0 0 150 IRQ_TYPE_LEVEL_HIGH>, /* int_b */ + <0 0 0 3 &intc 0 0 0 151 IRQ_TYPE_LEVEL_HIGH>, /* int_c */ + <0 0 0 4 &intc 0 0 0 152 IRQ_TYPE_LEVEL_HIGH>; /* int_d */ + + interconnect-names = "icc_path"; + interconnects = <&pcie_noc MASTER_PCIE_0 0 &mc_virt SLAVE_EBI1 0>; + + clocks = <&gcc GCC_PCIE_0_PIPE_CLK>, + <&gcc GCC_PCIE_0_PIPE_CLK_SRC>, + <&pcie0_lane>, + <&rpmhcc RPMH_CXO_CLK>, + <&gcc GCC_PCIE_0_AUX_CLK>, + <&gcc GCC_PCIE_0_CFG_AHB_CLK>, + <&gcc GCC_PCIE_0_MSTR_AXI_CLK>, + <&gcc GCC_PCIE_0_SLV_AXI_CLK>, + <&gcc GCC_PCIE_0_SLV_Q2A_AXI_CLK>, + <&gcc GCC_DDRSS_PCIE_SF_QTB_CLK>, + <&gcc GCC_AGGRE_NOC_PCIE_AXI_CLK>; + clock-names = "pipe", + "pipe_mux", + "phy_pipe", + "ref", + "aux", + "cfg", + "bus_master", + "bus_slave", + "slave_q2a", + "ddrss_sf_tbu", + "aggre0"; + + iommus = <&apps_smmu 0x1400 0x7f>; + iommu-map = <0x0 &apps_smmu 0x1400 0x1>, + <0x100 &apps_smmu 0x1401 0x1>; + + resets = <&gcc GCC_PCIE_0_BCR>; + reset-names = "pci"; + + power-domains = <&gcc PCIE_0_GDSC>; + power-domain-names = "gdsc"; + + phys = <&pcie0_lane>; + phy-names = "pciephy"; + + perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie0_default_state>; + + status = "disabled"; + }; + + pcie0_phy: phy@1c06000 { + compatible = "qcom,sm8550-qmp-gen3x2-pcie-phy"; + reg = <0 0x01c06000 0 0x200>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + clocks = <&gcc GCC_PCIE_0_AUX_CLK>, + <&gcc GCC_PCIE_0_CFG_AHB_CLK>, + <&tcsr TCSR_PCIE_0_CLKREF_EN>, + <&gcc GCC_PCIE_0_PHY_RCHNG_CLK>; + clock-names = "aux", "cfg_ahb", "ref", "refgen"; + + resets = <&gcc GCC_PCIE_0_PHY_BCR>; + reset-names = "phy"; + + assigned-clocks = <&gcc GCC_PCIE_0_PHY_RCHNG_CLK>; + assigned-clock-rates = <100000000>; + + power-domains = <&gcc PCIE_0_PHY_GDSC>; + power-domain-names = "gdsc"; + + status = "disabled"; + + pcie0_lane: phy@1c06200 { + reg = <0 0x1c06e00 0 0x200>, /* tx0 */ + <0 0x1c07000 0 0x200>, /* rx0 */ + <0 0x1c06200 0 0x200>, /* pcs */ + <0 0x1c07600 0 0x200>, /* tx1 */ + <0 0x1c07800 0 0x200>, /* rx1 */ + <0 0x1c06600 0 0x200>; /* pcs_pcie */ + clocks = <&gcc GCC_PCIE_0_PIPE_CLK>; + clock-names = "pipe0"; + + #clock-cells = <0>; + #phy-cells = <0>; + clock-output-names = "pcie_0_pipe_clk"; + }; + }; + + pcie1: pci@1c08000 { + compatible = "qcom,pcie-sm8550-pcie1"; + reg = <0x0 0x01c08000 0x0 0x3000>, + <0x0 0x40000000 0x0 0xf1d>, + <0x0 0x40000f20 0x0 0xa8>, + <0x0 0x40001000 0x0 0x1000>, + <0x0 0x40100000 0x0 0x100000>; + reg-names = "parf", "dbi", "elbi", "atu", "config"; + device_type = "pci"; + linux,pci-domain = <1>; + bus-range = <0x00 0xff>; + num-lanes = <2>; + + #address-cells = <3>; + #size-cells = <2>; + + ranges = <0x01000000 0x0 0x40200000 0 0x40200000 0x0 0x100000>, + <0x02000000 0x0 0x40300000 0 0x40300000 0x0 0x1fd00000>; + + interrupts = ; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &intc 0 0 0 434 IRQ_TYPE_LEVEL_HIGH>, /* int_a */ + <0 0 0 2 &intc 0 0 0 435 IRQ_TYPE_LEVEL_HIGH>, /* int_b */ + <0 0 0 3 &intc 0 0 0 438 IRQ_TYPE_LEVEL_HIGH>, /* int_c */ + <0 0 0 4 &intc 0 0 0 439 IRQ_TYPE_LEVEL_HIGH>; /* int_d */ + + clocks = <&gcc GCC_PCIE_1_PIPE_CLK>, + <&gcc GCC_PCIE_1_PIPE_CLK_SRC>, + <&pcie1_lane>, + <&rpmhcc RPMH_CXO_CLK>, + <&gcc GCC_PCIE_1_AUX_CLK>, + <&gcc GCC_PCIE_1_CFG_AHB_CLK>, + <&gcc GCC_PCIE_1_MSTR_AXI_CLK>, + <&gcc GCC_PCIE_1_SLV_AXI_CLK>, + <&gcc GCC_PCIE_1_SLV_Q2A_AXI_CLK>, + <&gcc GCC_DDRSS_PCIE_SF_QTB_CLK>, + <&gcc GCC_AGGRE_NOC_PCIE_AXI_CLK>, + <&gcc GCC_CNOC_PCIE_SF_AXI_CLK>; + clock-names = "pipe", + "pipe_mux", + "phy_pipe", + "ref", + "aux", + "cfg", + "bus_master", + "bus_slave", + "slave_q2a", + "ddrss_sf_tbu", + "aggre1", + "cnoc_pcie_sf_axi"; + + interconnect-names = "icc_path"; + interconnects = <&pcie_noc MASTER_PCIE_1 0 &mc_virt SLAVE_EBI1 0>; + + iommus = <&apps_smmu 0x1480 0x7f>; + iommu-map = <0x0 &apps_smmu 0x1480 0x1>, + <0x100 &apps_smmu 0x1481 0x1>; + + resets = <&gcc GCC_PCIE_1_BCR>, + <&gcc GCC_PCIE_1_LINK_DOWN_BCR>; + reset-names = "pci", + "pcie_1_link_down_reset"; + + power-domains = <&gcc PCIE_1_GDSC>; + power-domain-names = "gdsc"; + + phys = <&pcie1_lane>; + phy-names = "pciephy"; + + perst-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>; + enable-gpios = <&tlmm 99 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie1_default_state>; + + assigned-clocks = <&gcc GCC_PCIE_1_AUX_CLK>; + assigned-clock-rates = <19200000>; + + status = "disabled"; + }; + + pcie1_phy: phy@1c0f000 { + compatible = "qcom,sm8550-qmp-gen4x2-pcie-phy"; + reg = <0x0 0x01c0f000 0x0 0x200>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + clocks = <&gcc GCC_PCIE_1_AUX_CLK>, + <&gcc GCC_PCIE_1_PHY_AUX_CLK>, + <&gcc GCC_PCIE_1_CFG_AHB_CLK>, + <&tcsr TCSR_PCIE_1_CLKREF_EN>, + <&gcc GCC_PCIE_1_PHY_RCHNG_CLK>; + clock-names = "aux", "aux_phy", "cfg_ahb", "ref", "refgen"; + + resets = <&gcc GCC_PCIE_1_PHY_BCR>, + <&gcc GCC_PCIE_1_NOCSR_COM_PHY_BCR>; + reset-names = "phy", + "pcie_1_nocsr_com_phy_reset"; + + assigned-clocks = <&gcc GCC_PCIE_1_PHY_RCHNG_CLK>; + assigned-clock-rates = <100000000>; + + power-domains = <&gcc PCIE_1_PHY_GDSC>; + power-domain-names = "phy_gdsc"; + + status = "disabled"; + + pcie1_lane: phy@1c0e000 { + reg = <0x0 0x1c0e000 0x0 0x200>, /* tx */ + <0x0 0x1c0e200 0x0 0x300>, /* rx */ + <0x0 0x1c0f200 0x0 0x200>, /* pcs */ + <0x0 0x1c0e800 0x0 0x200>, /* tx */ + <0x0 0x1c0ea00 0x0 0x300>, /* rx */ + <0x0 0x1c0f400 0x0 0xc00>, /* pcs_pcie */ + <0x0 0x1c0ee00 0x0 0x0a0>; /* ln_shrd */ + clocks = <&gcc GCC_PCIE_1_PIPE_CLK>; + clock-names = "pipe0"; + + #clock-cells = <0>; + #phy-cells = <0>; + clock-output-names = "pcie_1_pipe_clk"; + }; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x20000>; From patchwork Wed Nov 16 13:04:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 21054 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp127786wru; Wed, 16 Nov 2022 05:05:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf7EL4oYvHIKkkAy72dLYP6akkl5sXtcfvWwTO47PccgZwpyKmr8eRntAbV8hZ0jBYfz8BpE X-Received: by 2002:a62:1757:0:b0:557:ef5e:6db3 with SMTP id 84-20020a621757000000b00557ef5e6db3mr23340011pfx.13.1668603927032; Wed, 16 Nov 2022 05:05:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668603926; cv=none; d=google.com; s=arc-20160816; b=VJL8Dg+rI56VUhFNVJ2z8+Idlyd7pg55F7Lso+L9rlD3ZbduM3D0of3qZXqnLlQEH+ 5laG2USNDQwp25Ak2DPBlGFJCcn3/Rxv7YfLEE7YgUo/94RyAzWltoi/5O5rtNTHgH1k l0DpCHuYvwclB3fR3Kr8wBKbadnYX+AtRZZC5pw217xxhMaxM3c2PVj4+e3pYNMNOf3j E837bmk8WP3ghxpOwUJGs16wWyC+45EW8iaLqsTbb7p5Tv/3P7YCWjeGbR3vSodWDQl4 Nwuu35tgVocZJq9mu5D054ksykZ+0WqSEXZbU5ni42RafA6NuT6hc3liemE8XSaqM2Bz uHHQ== 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=K59h3chldv659kO/hvYsDP3wmikzxtwg4m9ZJi+0ejg=; b=M0VIjA7ZBbFdxL/zDOvcx2rXYD27v5u9OBkB5T+qLHGbTYJwdK37R4DVXQEwpsJ/1G mhnatwToZBYZEPuY9+QS4c50jwLnmNMoCx0asCit1HX9n0N8Em9jNwHS7cwmPcgTWbxz RzuCXUKHthhvFRg4TaB4JBWPaXXgIWc++FstEoWHDsCp/VkjDiNHpqMAfdWSWk7kUPhw gO0NxHKVPaYC+ptsOSQ1PvN+f0vVGFnwrh6KLOEkq/Sjai9n0jxa77FBI7B/G3UL6aNK b3gIHyOm6t/GPhuBdGu1d6xJQJPucnO4AJvGeUnPPQ3Thotr1c4Bjxr8zaG1izezTO+6 ZeBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X+USBc8E; 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 e2-20020a637442000000b004750a252a56si13133820pgn.330.2022.11.16.05.05.08; Wed, 16 Nov 2022 05:05:26 -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=X+USBc8E; 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 S233806AbiKPNEz (ORCPT + 99 others); Wed, 16 Nov 2022 08:04:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233330AbiKPNEl (ORCPT ); Wed, 16 Nov 2022 08:04:41 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8221D275D4 for ; Wed, 16 Nov 2022 05:04:40 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id a11-20020a05600c2d4b00b003cf6f5fd9f1so1415241wmg.2 for ; Wed, 16 Nov 2022 05:04:40 -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=K59h3chldv659kO/hvYsDP3wmikzxtwg4m9ZJi+0ejg=; b=X+USBc8Eamwf136iZ6dntFbPgOVBA28cWlFQwARCClPCDige3uxV7yb+YNH8z263S3 qFVDcUJqomCh3EvAuQI/+0kA8WpliCJwRT16nbQGJIM7CGHCB/PfcQYpW9XSLy1M/87d qLLDcnIfgmp1IdHwGBabgc0kkxpLeFZaXCdpciXTmeV1CNdOxcdx0Im/bez+9WemQrtY IJQIqJ0ZabN/fW/6h3eprecl+/PqKR8ze0I1YfrbZfwC7GI+5uWcgeTVVc6KfRPOfD/u hTPrhFTnQkzzk0RB2lpvzcChgMLDDBI9nuxa0/NOWYsurTzzwOUE10JsgVsEvGOvn7fC 8ytQ== 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=K59h3chldv659kO/hvYsDP3wmikzxtwg4m9ZJi+0ejg=; b=3QUZKsFhaoA3ZwASgYo4pUYK83XiMXS4yR2sbnyuD3K+9S5h3wGKV+KVxLWfqI+HGb TuSVM3qy36eAT+DWg3KxJqaz5ybxPmpxbbwg9lyA2szAC14y5vgf0cLL82JwV9MdlsXM MGxX0nIeC8NelijTZ4VkJd154sm1HavhjtgIlkW/d98cmjfp6/W9WAUM5tETHVMUgbxj tacDiYz/8QChkAcUhIfQaCUknU3CEF23f0pwIWEU2qvvwnivCIIIpxEWJS7xCXQOfHD0 yvxyefi4TTe53TKZRQk6c0DnONs30WgzCdNskbw6HcNNj//uxEmZrdfLz+KsBJQoUBNl Or7A== X-Gm-Message-State: ANoB5pkKh/rIZVqoLf6V4kYChWdwD8dSEReUqKAbAFAUcpcy7fjIZ2+u RXIOYXTru4dgPbZ9BdMQ2uLKFQ== X-Received: by 2002:a05:600c:5014:b0:3cf:72d9:10b0 with SMTP id n20-20020a05600c501400b003cf72d910b0mr2115770wmr.26.1668603880109; Wed, 16 Nov 2022 05:04:40 -0800 (PST) Received: from localhost.localdomain ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id co19-20020a0560000a1300b0022e66749437sm15130613wrb.93.2022.11.16.05.04.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 05:04:39 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Neil Armstrong Subject: [PATCH 2/2] arm64: dts: qcom: sm8550-mtp: Add PCIe PHYs and controllers nodes Date: Wed, 16 Nov 2022 15:04:30 +0200 Message-Id: <20221116130430.2812173-3-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221116130430.2812173-1-abel.vesa@linaro.org> References: <20221116130430.2812173-1-abel.vesa@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?1749658031158215774?= X-GMAIL-MSGID: =?utf-8?q?1749658031158215774?= Enable PCIe controllers and PHYs nodes on SM8550 MTP board. Co-developed-by: Neil Armstrong Signed-off-by: Neil Armstrong Signed-off-by: Abel Vesa --- arch/arm64/boot/dts/qcom/sm8550-mtp.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550-mtp.dts b/arch/arm64/boot/dts/qcom/sm8550-mtp.dts index d4c8d5b2497e..93a676754666 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-mtp.dts @@ -414,6 +414,31 @@ data-pins { }; }; +&pcie0 { + wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; + status = "okay"; +}; + +&pcie0_phy { + vdda-phy-supply = <&vreg_l1e_0p88>; + vdda-pll-supply = <&vreg_l3e_1p2>; + status = "okay"; +}; + +&pcie1 { + wake-gpios = <&tlmm 99 GPIO_ACTIVE_HIGH>; + perst-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>; + status = "okay"; +}; + +&pcie1_phy { + vdda-phy-supply = <&vreg_l3c_0p91>; + vdda-pll-supply = <&vreg_l3e_1p2>; + vdda-qref-supply = <&vreg_l1e_0p88>; + status = "okay"; +}; + &uart7 { status = "okay"; };