Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9766CA0EFF for ; Sat, 30 Aug 2025 14:45:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4AB56836B2; Sat, 30 Aug 2025 16:45:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=rock-chips.com header.i=@rock-chips.com header.b="dFLSVvDS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 922158380E; Sat, 30 Aug 2025 16:45:12 +0200 (CEST) Received: from mail-m4921.qiye.163.com (mail-m4921.qiye.163.com [45.254.49.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0BFDB8341A for ; Sat, 30 Aug 2025 16:45:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kever.yang@rock-chips.com Received: from [192.168.1.64] (unknown [121.204.19.91]) by smtp.qiye.163.com (Hmail) with ESMTP id 21239877f; Sat, 30 Aug 2025 22:45:05 +0800 (GMT+08:00) Message-ID: Date: Sat, 30 Aug 2025 22:45:05 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/6] arm64: dts: rockchip: Add rk3576 pcie nodes To: Jonas Karlman , Simon Glass , Philipp Tomsich , Tom Rini , Sumit Garg Cc: Nicolas Frattaroli , u-boot@lists.denx.de, Shawn Lin , Heiko Stuebner References: <20250711224446.211511-1-jonas@kwiboo.se> <20250711224446.211511-2-jonas@kwiboo.se> Content-Language: en-US From: Kever Yang In-Reply-To: <20250711224446.211511-2-jonas@kwiboo.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HM-Tid: 0a98fb706bc303afkunm923ecf29409e56 X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZQk8YVh1JH01KThhKSkhLS1YVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlKSUpVSUtPVUpCVUJKWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09IVUpLS1 VKQktLWQY+ DKIM-Signature: a=rsa-sha256; b=dFLSVvDSJ9QNir5wlsKUq/OACrU2SqRNkO2VYUXkEVHigMfKktVR4UO2fa3CetdZVpVGAHKBOZlRgq5FigQZTDD3wcRqzgTLQzqVApaLO98Wyufa+lyeFUoCznFB/k/S2SxX1zDQwvLDh+8aLAq1lLmNFFM3VXfOvr5guSnj5OY=; s=default; c=relaxed/relaxed; d=rock-chips.com; v=1; bh=i0h6E5ANGZUybujb5ejnpocHcgHhfcJqL/jnZw2OKy8=; h=date:mime-version:subject:message-id:from; X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 2025/7/12 06:44, Jonas Karlman wrote: > From: Kever Yang > > rk3576 has two pcie controllers, both are pcie2x1 work with > naneng-combphy. > > Signed-off-by: Kever Yang > Tested-by: Shawn Lin > Reviewed-by: Nicolas Frattaroli > Tested-by: Nicolas Frattaroli > Link: https://lore.kernel.org/r/20250414145110.11275-3-kever.yang@rock-chips.com > Signed-off-by: Heiko Stuebner > > [ upstream commit: d4b9fc2af45d2b91b1654c4aaa1edcb4dd8f4918 ] > > (cherry picked from commit 44fcfeee7cf3a9da6cf2b909805da1cf33b228bc) > Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever > --- > v2: New patch > --- > dts/upstream/src/arm64/rockchip/rk3576.dtsi | 108 ++++++++++++++++++++ > 1 file changed, 108 insertions(+) > > diff --git a/dts/upstream/src/arm64/rockchip/rk3576.dtsi b/dts/upstream/src/arm64/rockchip/rk3576.dtsi > index 50332ec6e0de..ce8bcab215c0 100644 > --- a/dts/upstream/src/arm64/rockchip/rk3576.dtsi > +++ b/dts/upstream/src/arm64/rockchip/rk3576.dtsi > @@ -1240,6 +1240,114 @@ > reg = <0x0 0x27f22100 0x0 0x20>; > }; > > + pcie0: pcie@2a200000 { > + compatible = "rockchip,rk3576-pcie", "rockchip,rk3568-pcie"; > + reg = <0x0 0x22000000 0x0 0x00400000>, > + <0x0 0x2a200000 0x0 0x00010000>, > + <0x0 0x20000000 0x0 0x00100000>; > + reg-names = "dbi", "apb", "config"; > + bus-range = <0x0 0xf>; > + clocks = <&cru ACLK_PCIE0_MST>, <&cru ACLK_PCIE0_SLV>, > + <&cru ACLK_PCIE0_DBI>, <&cru PCLK_PCIE0>, > + <&cru CLK_PCIE0_AUX>; > + clock-names = "aclk_mst", "aclk_slv", > + "aclk_dbi", "pclk", > + "aux"; > + device_type = "pci"; > + interrupts = , > + , > + , > + , > + , > + ; > + interrupt-names = "sys", "pmc", "msg", "legacy", "err", "msi"; > + #interrupt-cells = <1>; > + interrupt-map-mask = <0 0 0 7>; > + interrupt-map = <0 0 0 1 &pcie0_intc 0>, > + <0 0 0 2 &pcie0_intc 1>, > + <0 0 0 3 &pcie0_intc 2>, > + <0 0 0 4 &pcie0_intc 3>; > + linux,pci-domain = <0>; > + max-link-speed = <2>; > + num-ib-windows = <8>; > + num-viewport = <8>; > + num-ob-windows = <2>; > + num-lanes = <1>; > + phys = <&combphy0_ps PHY_TYPE_PCIE>; > + phy-names = "pcie-phy"; > + power-domains = <&power RK3576_PD_PHP>; > + ranges = <0x01000000 0x0 0x20100000 0x0 0x20100000 0x0 0x00100000 > + 0x02000000 0x0 0x20200000 0x0 0x20200000 0x0 0x00e00000 > + 0x03000000 0x9 0x00000000 0x9 0x00000000 0x0 0x80000000>; > + resets = <&cru SRST_PCIE0_POWER_UP>, <&cru SRST_P_PCIE0>; > + reset-names = "pwr", "pipe"; > + #address-cells = <3>; > + #size-cells = <2>; > + status = "disabled"; > + > + pcie0_intc: legacy-interrupt-controller { > + interrupt-controller; > + #address-cells = <0>; > + #interrupt-cells = <1>; > + interrupt-parent = <&gic>; > + interrupts = ; > + }; > + }; > + > + pcie1: pcie@2a210000 { > + compatible = "rockchip,rk3576-pcie", "rockchip,rk3568-pcie"; > + reg = <0x0 0x22400000 0x0 0x00400000>, > + <0x0 0x2a210000 0x0 0x00010000>, > + <0x0 0x21000000 0x0 0x00100000>; > + reg-names = "dbi", "apb", "config"; > + bus-range = <0x20 0x2f>; > + clocks = <&cru ACLK_PCIE1_MST>, <&cru ACLK_PCIE1_SLV>, > + <&cru ACLK_PCIE1_DBI>, <&cru PCLK_PCIE1>, > + <&cru CLK_PCIE1_AUX>; > + clock-names = "aclk_mst", "aclk_slv", > + "aclk_dbi", "pclk", > + "aux"; > + device_type = "pci"; > + interrupts = , > + , > + , > + , > + , > + ; > + interrupt-names = "sys", "pmc", "msg", "legacy", "err", "msi"; > + #interrupt-cells = <1>; > + interrupt-map-mask = <0 0 0 7>; > + interrupt-map = <0 0 0 1 &pcie1_intc 0>, > + <0 0 0 2 &pcie1_intc 1>, > + <0 0 0 3 &pcie1_intc 2>, > + <0 0 0 4 &pcie1_intc 3>; > + linux,pci-domain = <0>; > + max-link-speed = <2>; > + num-ib-windows = <8>; > + num-viewport = <8>; > + num-ob-windows = <2>; > + num-lanes = <1>; > + phys = <&combphy1_psu PHY_TYPE_PCIE>; > + phy-names = "pcie-phy"; > + power-domains = <&power RK3576_PD_SUBPHP>; > + ranges = <0x01000000 0x0 0x21100000 0x0 0x21100000 0x0 0x00100000 > + 0x02000000 0x0 0x21200000 0x0 0x21200000 0x0 0x00e00000 > + 0x03000000 0x9 0x80000000 0x9 0x80000000 0x0 0x80000000>; > + resets = <&cru SRST_PCIE1_POWER_UP>, <&cru SRST_P_PCIE1>; > + reset-names = "pwr", "pipe"; > + #address-cells = <3>; > + #size-cells = <2>; > + status = "disabled"; > + > + pcie1_intc: legacy-interrupt-controller { > + interrupt-controller; > + #address-cells = <0>; > + #interrupt-cells = <1>; > + interrupt-parent = <&gic>; > + interrupts = ; > + }; > + }; > + > gmac0: ethernet@2a220000 { > compatible = "rockchip,rk3576-gmac", "snps,dwmac-4.20a"; > reg = <0x0 0x2a220000 0x0 0x10000>;