Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1254967rwb; Wed, 16 Nov 2022 14:41:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf5iiqmEGda/OXGwvgj/Vf1veSZkepHv2g/oD6XM/heQzLwxfTcc5qG1hzEhwk2pEu/cp6uw X-Received: by 2002:a17:906:13d3:b0:7b2:8a70:8fb7 with SMTP id g19-20020a17090613d300b007b28a708fb7mr3558600ejc.163.1668638502823; Wed, 16 Nov 2022 14:41:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668638502; cv=none; d=google.com; s=arc-20160816; b=oQZvwaQn+9ZEOnTixq0oSJOv8fv4SrNJfTEHmi4w6pnhPwpB+u2OxtWAlQoEi1R2ui KSOmKAYtm1Q9cmFDQwILuzTokcm8NDc27jiKNTdmpqz++lj9dNcaZ9Z5qqZH0FpczvSx 4p+q6hzgPuRc0q3OVVFhd6u8I/K2XYV2UD2lgL7MKzfH7ZJKybZsKRdAuUyc9o/sItVb Hofpknf+ZWIVJBCPZMnijtSGNVqbJfqEm4uQ4JrBvyh99VxHH45UiyC/k2iPBJ7bYnW6 J03IuYqRwBbPq5BWNmUvcwn8CxpyA/LXEbs0Mne6byXYRTaOohWP43W7/yZSGYLuxZAe qO6w== 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=oqP3TbX6KVo39b2lQABBBQ0jY7NpQinCFYzDvvPTOAQ=; b=VYirf9JMoEgzYJ7mHcODFViSsuSa3459yw2xozTL9xb9mdsakKuSy0hl+B+UowicFP O7WkiNHse1TPrI1FPvsODZLAATVtdkQrj9sGhYhrkN8AQiZBLGF8F/+doGaCPmssfdQt 5XLQweUsV05AR2pGV8J2dqxODeNieoMiVbIkFjN8zJOaVNr2e+fjqcKxOW4sYyXj/omy R2hWM1gtYFeWojkkAsFhtymN+7V3KU6Dwt+asfAA1/HCnzSC2yG9Iyp1iUCmwlvo4Fnb Q2uAAjL9rzrZaXhNG80WKKQKAdg07OqQ68WPJuEefOhdCyEdghH1p/FhUGyjGo/httmJ 01yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mdrUYfp7; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k4-20020a1709063e0400b0078d4ba46622si13017601eji.616.2022.11.16.14.41.21; Wed, 16 Nov 2022 14:41:42 -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=@gmail.com header.s=20210112 header.b=mdrUYfp7; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234444AbiKPVuS (ORCPT + 90 others); Wed, 16 Nov 2022 16:50:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234176AbiKPVt0 (ORCPT ); Wed, 16 Nov 2022 16:49:26 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 831FA654D8; Wed, 16 Nov 2022 13:48:54 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id f27so451992eje.1; Wed, 16 Nov 2022 13:48:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=oqP3TbX6KVo39b2lQABBBQ0jY7NpQinCFYzDvvPTOAQ=; b=mdrUYfp7OS+HCloH6RN4Nr7RqUwamklaQqaWCmtGE22adN4F/lJv/EHcrJTF8F6NaX nGxL1Oa+zTfV8Zk2shVdd1LtChW89F/xX35q0u54Ij5GYa+eI1QQUvpgRYy2q988aRh8 7PxTB9nzFDt7oOMNJN4R6xftLQ+wb7cqxjpwta2d3UOuayXxuDiM9GHFzXi2/W07ktGR 0kZDWJ65XwR0Bo2jkGKLkqnzN0eCSnyim+xRoGU3YxyIiYCBuVG86P1fBn4DItbN7zgE /q6MXH9ALNY93P/2TAaw6+8FgSAiiYdw+uueF8hwxzb4GEnmozYurzswMjQwAIjHk+A9 QjFQ== 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=oqP3TbX6KVo39b2lQABBBQ0jY7NpQinCFYzDvvPTOAQ=; b=TRN3OdqMyZ8zU/LwZcUJdPqDn/DAmudep4/yOpYlEry0vKwPcBoOR9CwX79EPvjQUp UMSIDxQexTv2xiKumkT6iK0MxRqsIZliyW/y4ayeUbFxXGgiyTqh5qla/qb6CYCH+4fT 0CN/LT5mcC5C8IwyFIWNF7koCOiZnQ4+P+uzZhrIFZ7gbvQb1iW+uLd0PvcHfLd56JBB b4jxHd3yC7Mrkx/t33j2cbcIld+Ji+6gnANZv+/ms2ill8QSL4wB4biqlrd7jzevviOJ NtlEO5teFTWi9zQmLnbg9kStuas25S2pU9Ro0pfYqDO03phzmOGdRaPAXDdxu6++jfVx aCKQ== X-Gm-Message-State: ANoB5pnpakeJnPWF0Qj44+PhF8RM14BcOOpH03X+LoFK+Ar7fGtD0ac+ gXtsFWfXFKrOByVgX4xgj+w= X-Received: by 2002:a17:906:5fcd:b0:78d:4cb3:f65d with SMTP id k13-20020a1709065fcd00b0078d4cb3f65dmr19785456ejv.79.1668635333734; Wed, 16 Nov 2022 13:48:53 -0800 (PST) Received: from fedora.. (dh207-99-145.xnet.hr. [88.207.99.145]) by smtp.googlemail.com with ESMTPSA id b14-20020aa7dc0e000000b00462e1d8e914sm7931341edu.68.2022.11.16.13.48.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 13:48:53 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, bhelgaas@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, lpieralisi@kernel.org, kw@linux.com, svarbanov@mm-sol.com, shawn.guo@linaro.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko Subject: [PATCH 8/9] arm64: dts: qcom: ipq8074: fix Gen3 PCIe node Date: Wed, 16 Nov 2022 22:48:40 +0100 Message-Id: <20221116214841.1116735-8-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116214841.1116735-1-robimarko@gmail.com> References: <20221116214841.1116735-1-robimarko@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 IPQ8074 comes in 2 silicon versions: * v1 with 2x Gen2 PCIe ports and QMP PHY-s * v2 with 1x Gen3 and 1x Gen2 PCIe ports and QMP PHY-s v2 is the final and production version that is actually supported by the kernel, however it looks like PCIe related nodes were added for the v1 SoC. Finish the PCIe fixup by using the correct compatible, adding missing ATU register space, declaring max-link-speed, use correct ranges, add missing clocks and resets. Fixes: 33057e1672fe ("ARM: dts: ipq8074: Add pcie nodes") Signed-off-by: Robert Marko --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 30 +++++++++++++++------------ 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 585e5f0a139d..c76c6ee9acb6 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -854,16 +854,18 @@ IRQ_TYPE_LEVEL_HIGH>, /* int_c */ }; pcie0: pci@20000000 { - compatible = "qcom,pcie-ipq8074"; + compatible = "qcom,pcie-ipq8074-gen3"; reg = <0x20000000 0xf1d>, <0x20000f20 0xa8>, - <0x00080000 0x2000>, + <0x20001000 0x1000>, + <0x00080000 0x4000>, <0x20100000 0x1000>; - reg-names = "dbi", "elbi", "parf", "config"; + reg-names = "dbi", "elbi", "atu", "parf", "config"; device_type = "pci"; linux,pci-domain = <0>; bus-range = <0x00 0xff>; num-lanes = <1>; + max-link-speed = <3>; #address-cells = <3>; #size-cells = <2>; @@ -871,9 +873,9 @@ pcie0: pci@20000000 { phy-names = "pciephy"; ranges = <0x81000000 0 0x20200000 0x20200000 - 0 0x100000 /* downstream I/O */ - 0x82000000 0 0x20300000 0x20300000 - 0 0xd00000>; /* non-prefetchable memory */ + 0 0x10000>, /* downstream I/O */ + <0x82000000 0 0x20220000 0x20220000 + 0 0xfde0000>; /* non-prefetchable memory */ interrupts = ; interrupt-names = "msi"; @@ -891,28 +893,30 @@ IRQ_TYPE_LEVEL_HIGH>, /* int_c */ clocks = <&gcc GCC_SYS_NOC_PCIE0_AXI_CLK>, <&gcc GCC_PCIE0_AXI_M_CLK>, <&gcc GCC_PCIE0_AXI_S_CLK>, - <&gcc GCC_PCIE0_AHB_CLK>, - <&gcc GCC_PCIE0_AUX_CLK>; - + <&gcc GCC_PCIE0_AXI_S_BRIDGE_CLK>, + <&gcc GCC_PCIE0_RCHNG_CLK>; clock-names = "iface", "axi_m", "axi_s", - "ahb", - "aux"; + "axi_bridge", + "rchng"; + resets = <&gcc GCC_PCIE0_PIPE_ARES>, <&gcc GCC_PCIE0_SLEEP_ARES>, <&gcc GCC_PCIE0_CORE_STICKY_ARES>, <&gcc GCC_PCIE0_AXI_MASTER_ARES>, <&gcc GCC_PCIE0_AXI_SLAVE_ARES>, <&gcc GCC_PCIE0_AHB_ARES>, - <&gcc GCC_PCIE0_AXI_MASTER_STICKY_ARES>; + <&gcc GCC_PCIE0_AXI_MASTER_STICKY_ARES>, + <&gcc GCC_PCIE0_AXI_SLAVE_STICKY_ARES>; reset-names = "pipe", "sleep", "sticky", "axi_m", "axi_s", "ahb", - "axi_m_sticky"; + "axi_m_sticky", + "axi_s_sticky"; status = "disabled"; }; }; -- 2.38.1