Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2750298rwp; Fri, 14 Jul 2023 10:41:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlGCUcolxnuBtCE3tyFYXno8fqDNKAxPk7lRWcy06g7CaJMKF/hqDdDWvSqWYsaDJqZI9A7U X-Received: by 2002:a05:6870:b288:b0:1b7:2931:1088 with SMTP id c8-20020a056870b28800b001b729311088mr6310474oao.33.1689356518208; Fri, 14 Jul 2023 10:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689356518; cv=none; d=google.com; s=arc-20160816; b=cY6EsfTKIiP+diXflrQQYGVkNWIb/IIh8zLKh6pVOh1JwQ0TzPfSGz8v4YJTHE6MXs F6f28vw85D7pccogPWIwOX5feqio3SLEeY/zrCC8T5takFODeuolBADRJBi9QN/y5sqi BSWz7M9v3Vcuw43fYdOPvSZH0d0EwUy4RJMPv0mxYNySWaL1OTOtct54uZ82cTMd5qex ilqCiV1EMbKYQC79PtEs7EzAFmgKyJ8TfmT/2EeNoF2welfJ/KXFjXyB2ccRr2ZXIx8C wa17KXKu/GipspFROMkBLtmprEv685uuVjtPQMX8VQ17Sm743QejT2bW0qijuR8hCmiX ZpGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VpMFCE+Ca146c1cbtzsHnNoAmFwnj+Ac+T3KfufJ/1E=; fh=bjypG2qVZc56vTg92zVLDUfQ5XGwjfaoneBud3/FnU8=; b=BH+vWJQ6giWzfVsLXClO2e8GyWlC4Sfwiv3ZbC5DSs09oy5zu+wXqASSC18dIvi1Pz XjPH9gZA92olWBNVY4o5Sv4JJ45kAglWSSsWvd/f8XFwOfbT5Vsc4PoAKV5pIYuBsdnl p6VY8FkViUKOPDM5EUPjZzOm1qZxtEJdZx8lwR37iMcBCbYBjM6vQcsPhAgLROHmo/yM +jlppvWgrlXXbLHajyjBq/rt/5MrY/qlJojFYlZ7kjVXZUszQpWMn0X1XwftfG+/6V5c hTGy2UMvwJu+JDwXR9yCdA5rDe/T9NHJG8QgDCh7xloC5Urc5uhGleMAYcYpuP7bbmNz oPvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=p+1k1JvM; 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 h190-20020a6383c7000000b0055c826f2bd4si1582389pge.77.2023.07.14.10.41.46; Fri, 14 Jul 2023 10:41:58 -0700 (PDT) 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=20221208 header.b=p+1k1JvM; 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 S236018AbjGNRbD (ORCPT + 99 others); Fri, 14 Jul 2023 13:31:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235811AbjGNRbB (ORCPT ); Fri, 14 Jul 2023 13:31:01 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A1BD113; Fri, 14 Jul 2023 10:31:00 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4fbaef9871cso3679219e87.0; Fri, 14 Jul 2023 10:31:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689355858; x=1691947858; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=VpMFCE+Ca146c1cbtzsHnNoAmFwnj+Ac+T3KfufJ/1E=; b=p+1k1JvMlq0J5cumGBWyOL8kGH0TmUDQ+aN0Vgij/N+H202thGb5vzpfTtQN/oiFt+ Lq/4TEEM7BNVO7wOxOFfHUSsBiAb/H/V8xnreA8oEsEnzY/A1Uh5V9ahm24mzTD04EMG lnsjE2zTqZYuAEHkU/J5v/VrgJ0qE6Nyd3i7/B03tz4erwtCBg7om3Ipl50BZeKRUq9F xX3j8esQOvxgAWfpn7uOb6MJy9usJ3S+xN7oJ5/wf1pV42bZhhV2//6HnoVyEM2UO8V0 Sxt2cvnaPj0qylHZT/JuOE/kRXw98j5cKFbh8RM+pzsxllqZ43jlAlpHzUGbAOKhSiZ8 ik8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689355858; x=1691947858; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VpMFCE+Ca146c1cbtzsHnNoAmFwnj+Ac+T3KfufJ/1E=; b=iG6kcnXDiamW3BymNJbkKNRyOiwYaThj0lVpf+K/5nWWYgWd7UKZWID3lF+wOuermP x9o4+lma7Gn20NI+iYWo7Solz7+KSuCaoI0tRyNYiDtTE2WbxUL35yFBKSsQH3DOibC+ XqP4+NFU2pnOU3l4Y9fBC/rCpee3uUUjJFvlB+egztx7vX/zTHlk8KWnJb9tXvtHDceo 3/BLBOB6UEXRRN8UMaIo8CYA+KD4yXvPWqYIEBfJJxJDstIMBCkauIRJdRbQPAz43fmy YQVX1gFVaEXDEFnOMTKMF54NVsQ8c4h1B/jXWJFVjyAJQzxfE3L7D4zxHIaEgab7MtBg IUvQ== X-Gm-Message-State: ABy/qLbUbNXwCrt5z+TXNGcHTdX40vVxvO+HiUnezctOIEld2P7DhpH8 9Sj8uCoiT/oCAUuAMsmNUOY= X-Received: by 2002:a05:6512:39cf:b0:4f8:6b7f:c6d6 with SMTP id k15-20020a05651239cf00b004f86b7fc6d6mr4662367lfu.48.1689355858268; Fri, 14 Jul 2023 10:30:58 -0700 (PDT) Received: from mobilestation ([85.249.18.201]) by smtp.gmail.com with ESMTPSA id z1-20020a19f701000000b004fb78959218sm1541574lfe.200.2023.07.14.10.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:30:57 -0700 (PDT) Date: Fri, 14 Jul 2023 20:30:53 +0300 From: Serge Semin To: Sebastian Reichel Cc: linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, Jingoo Han , Gustavo Pimentel , Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Shawn Lin , Simon Xue , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com, Kever Yang Subject: Re: [PATCH v2 3/3] arm64: dts: rockchip: rk3588: add PCIe2 support Message-ID: References: <20230713171851.73052-1-sebastian.reichel@collabora.com> <20230713171851.73052-4-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230713171851.73052-4-sebastian.reichel@collabora.com> 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_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Thu, Jul 13, 2023 at 07:18:51PM +0200, Sebastian Reichel wrote: > Add all three PCIe2 IP blocks to the RK3588 DT. Note, that RK3588 > also has two PCIe3 IP blocks, that will be handled separately. > > Co-developed-by: Kever Yang > Signed-off-by: Kever Yang > Signed-off-by: Sebastian Reichel > --- > arch/arm64/boot/dts/rockchip/rk3588.dtsi | 54 +++++++++++ > arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 108 ++++++++++++++++++++++ > 2 files changed, 162 insertions(+) > > diff --git a/arch/arm64/boot/dts/rockchip/rk3588.dtsi b/arch/arm64/boot/dts/rockchip/rk3588.dtsi > index 6be9bf81c09c..4d66ca6c2e4c 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3588.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3588.dtsi > @@ -80,6 +80,60 @@ i2s10_8ch: i2s@fde00000 { > status = "disabled"; > }; > > + pcie2x1l0: pcie@fe170000 { > + compatible = "rockchip,rk3588-pcie", "rockchip,rk3568-pcie"; > + #address-cells = <3>; > + #size-cells = <2>; > + bus-range = <0x20 0x2f>; > + clocks = <&cru ACLK_PCIE_1L0_MSTR>, <&cru ACLK_PCIE_1L0_SLV>, > + <&cru ACLK_PCIE_1L0_DBI>, <&cru PCLK_PCIE_1L0>, > + <&cru CLK_PCIE_AUX2>, <&cru CLK_PCIE1L0_PIPE>; > + clock-names = "aclk_mst", "aclk_slv", > + "aclk_dbi", "pclk", > + "aux", "pipe"; > + device_type = "pci"; > + interrupts = , > + , > + , > + , > + ; > + interrupt-names = "sys", "pmc", "msg", "legacy", "err"; > + #interrupt-cells = <1>; > + interrupt-map-mask = <0 0 0 7>; > + interrupt-map = <0 0 0 1 &pcie2x1l0_intc 0>, > + <0 0 0 2 &pcie2x1l0_intc 1>, > + <0 0 0 3 &pcie2x1l0_intc 2>, > + <0 0 0 4 &pcie2x1l0_intc 3>; > + linux,pci-domain = <2>; > + num-ib-windows = <8>; > + num-ob-windows = <8>; > + num-viewport = <4>; These properties are marked as deprecated and unused by the driver anyway. You can freely drop them. > + max-link-speed = <2>; > + msi-map = <0x2000 &its0 0x2000 0x1000>; > + num-lanes = <1>; > + phys = <&combphy1_ps PHY_TYPE_PCIE>; > + phy-names = "pcie-phy"; > + power-domains = <&power RK3588_PD_PCIE>; > + ranges = <0x01000000 0x0 0xf2100000 0x0 0xf2100000 0x0 0x00100000>, > + <0x02000000 0x0 0xf2200000 0x0 0xf2200000 0x0 0x00e00000>, > + <0x03000000 0x0 0x40000000 0x9 0x80000000 0x0 0x40000000>; > + reg = <0xa 0x40800000 0x0 0x00400000>, > + <0x0 0xfe170000 0x0 0x00010000>, > + <0x0 0xf2000000 0x0 0x00100000>; > + reg-names = "dbi", "apb", "config"; > + resets = <&cru SRST_PCIE2_POWER_UP>, <&cru SRST_P_PCIE2>; > + reset-names = "pwr", "pipe"; > + status = "disabled"; > + > + pcie2x1l0_intc: legacy-interrupt-controller { > + interrupt-controller; > + #address-cells = <0>; > + #interrupt-cells = <1>; > + interrupt-parent = <&gic>; > + interrupts = ; > + }; > + }; > + > gmac0: ethernet@fe1b0000 { > compatible = "rockchip,rk3588-gmac", "snps,dwmac-4.20a"; > reg = <0x0 0xfe1b0000 0x0 0x10000>; > diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi > index c9f9dd2472f5..27d711d114d6 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi > @@ -1227,6 +1227,114 @@ qos_vop_m1: qos@fdf82200 { > reg = <0x0 0xfdf82200 0x0 0x20>; > }; > > + pcie2x1l1: pcie@fe180000 { > + compatible = "rockchip,rk3588-pcie", "rockchip,rk3568-pcie"; > + #address-cells = <3>; > + #size-cells = <2>; > + bus-range = <0x30 0x3f>; > + clocks = <&cru ACLK_PCIE_1L1_MSTR>, <&cru ACLK_PCIE_1L1_SLV>, > + <&cru ACLK_PCIE_1L1_DBI>, <&cru PCLK_PCIE_1L1>, > + <&cru CLK_PCIE_AUX3>, <&cru CLK_PCIE1L1_PIPE>; > + clock-names = "aclk_mst", "aclk_slv", > + "aclk_dbi", "pclk", > + "aux", "pipe"; > + device_type = "pci"; > + interrupts = , > + , > + , > + , > + ; > + interrupt-names = "sys", "pmc", "msg", "legacy", "err"; > + #interrupt-cells = <1>; > + interrupt-map-mask = <0 0 0 7>; > + interrupt-map = <0 0 0 1 &pcie2x1l1_intc 0>, > + <0 0 0 2 &pcie2x1l1_intc 1>, > + <0 0 0 3 &pcie2x1l1_intc 2>, > + <0 0 0 4 &pcie2x1l1_intc 3>; > + linux,pci-domain = <3>; > + num-ib-windows = <8>; > + num-ob-windows = <8>; > + num-viewport = <4>; ditto > + max-link-speed = <2>; > + msi-map = <0x3000 &its0 0x3000 0x1000>; > + num-lanes = <1>; > + phys = <&combphy2_psu PHY_TYPE_PCIE>; > + phy-names = "pcie-phy"; > + power-domains = <&power RK3588_PD_PCIE>; > + ranges = <0x01000000 0x0 0xf3100000 0x0 0xf3100000 0x0 0x00100000>, > + <0x02000000 0x0 0xf3200000 0x0 0xf3200000 0x0 0x00e00000>, > + <0x03000000 0x0 0x40000000 0x9 0xc0000000 0x0 0x40000000>; > + reg = <0xa 0x40c00000 0x0 0x00400000>, > + <0x0 0xfe180000 0x0 0x00010000>, > + <0x0 0xf3000000 0x0 0x00100000>; > + reg-names = "dbi", "apb", "config"; > + resets = <&cru SRST_PCIE3_POWER_UP>, <&cru SRST_P_PCIE3>; > + reset-names = "pwr", "pipe"; > + status = "disabled"; > + > + pcie2x1l1_intc: legacy-interrupt-controller { > + interrupt-controller; > + #address-cells = <0>; > + #interrupt-cells = <1>; > + interrupt-parent = <&gic>; > + interrupts = ; > + }; > + }; > + > + pcie2x1l2: pcie@fe190000 { > + compatible = "rockchip,rk3588-pcie", "rockchip,rk3568-pcie"; > + #address-cells = <3>; > + #size-cells = <2>; > + bus-range = <0x40 0x4f>; > + clocks = <&cru ACLK_PCIE_1L2_MSTR>, <&cru ACLK_PCIE_1L2_SLV>, > + <&cru ACLK_PCIE_1L2_DBI>, <&cru PCLK_PCIE_1L2>, > + <&cru CLK_PCIE_AUX4>, <&cru CLK_PCIE1L2_PIPE>; > + clock-names = "aclk_mst", "aclk_slv", > + "aclk_dbi", "pclk", > + "aux", "pipe"; > + device_type = "pci"; > + interrupts = , > + , > + , > + , > + ; > + interrupt-names = "sys", "pmc", "msg", "legacy", "err"; > + #interrupt-cells = <1>; > + interrupt-map-mask = <0 0 0 7>; > + interrupt-map = <0 0 0 1 &pcie2x1l2_intc 0>, > + <0 0 0 2 &pcie2x1l2_intc 1>, > + <0 0 0 3 &pcie2x1l2_intc 2>, > + <0 0 0 4 &pcie2x1l2_intc 3>; > + linux,pci-domain = <4>; > + num-ib-windows = <8>; > + num-ob-windows = <8>; > + num-viewport = <4>; ditto -Serge(y) > + max-link-speed = <2>; > + msi-map = <0x4000 &its0 0x4000 0x1000>; > + num-lanes = <1>; > + phys = <&combphy0_ps PHY_TYPE_PCIE>; > + phy-names = "pcie-phy"; > + power-domains = <&power RK3588_PD_PCIE>; > + ranges = <0x01000000 0x0 0xf4100000 0x0 0xf4100000 0x0 0x00100000>, > + <0x02000000 0x0 0xf4200000 0x0 0xf4200000 0x0 0x00e00000>, > + <0x03000000 0x0 0x40000000 0xa 0x00000000 0x0 0x40000000>; > + reg = <0xa 0x41000000 0x0 0x00400000>, > + <0x0 0xfe190000 0x0 0x00010000>, > + <0x0 0xf4000000 0x0 0x00100000>; > + reg-names = "dbi", "apb", "config"; > + resets = <&cru SRST_PCIE4_POWER_UP>, <&cru SRST_P_PCIE4>; > + reset-names = "pwr", "pipe"; > + status = "disabled"; > + > + pcie2x1l2_intc: legacy-interrupt-controller { > + interrupt-controller; > + #address-cells = <0>; > + #interrupt-cells = <1>; > + interrupt-parent = <&gic>; > + interrupts = ; > + }; > + }; > + > gmac1: ethernet@fe1c0000 { > compatible = "rockchip,rk3588-gmac", "snps,dwmac-4.20a"; > reg = <0x0 0xfe1c0000 0x0 0x10000>; > -- > 2.40.1 >