Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3273445iob; Mon, 16 May 2022 17:50:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUOMvWd/SG1Dx1mTeT91/mblDFCzRjq1nqQ6yZSiYnzvcDB6K38r+geOEuFdfKcMMpN0Kz X-Received: by 2002:a63:6b82:0:b0:39d:a6ce:14dc with SMTP id g124-20020a636b82000000b0039da6ce14dcmr17406962pgc.476.1652748642545; Mon, 16 May 2022 17:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652748642; cv=none; d=google.com; s=arc-20160816; b=LHBEjUpRemgMx0xQVHdZpYbxtJ0LXalFJhreJqe3TY8aT33S6k3DwKJrWzB0Z2Ihj4 9QZ3ReDWuo+bV9YBzT480+DZLieCtTIFROZPao0vMcRbgsubBTDxEuzNPgVKOVoLSiji RPIkhMuEp3Gfxf0utnMLVE3g8rsxg6b4tnXUZMWULJADkDeDHzZ+Y0xyt4eE8yV07W/f JQJsAZj4jZRbUpiqZaOS53vmQ7cwAznggB1VZKVu1f33TPKdPBDw0xRGO5cRRYrVV9hf Rb0hesNTmhydT3T3vUSo1h9WpRp9wEmAGwFQqLXDb56YvwbPiNZn3jiV2J0NqrSQbo/q hRqg== 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; bh=8C6xhTIxAm/iGRmrmOj/Uj66+7V65fHO8hzJC1WLf5I=; b=RBLo2dhxeMUiEUvyXYWd5atrQSaPZGHpEvY2CE9pCmPNHRhCAJq9xkT20k2Zg+4xUQ An41HQvqbQRjno4MXry+jVZmKCZ7iEic0VVVaGQZ/8pYycfbL7hGJPyL/DmEOhzQBa44 3q5Et4Ps1TjDc8G9X/bBs3IanXPmfg7HXWcwy0JxrGcHx+txw86RH5j13o56TYm5v1nW JqJSoD/jrDwrMDzi5TtBuiexgxDiw4dPs3Q0N3keYpZsNK9KWaRUR/1OxkswqFAXLRku zlK35XqpRAmQUwnRDMFvm71eyW+8BD7zuSJeVH4uaOCIg9LIdCrk1ljZYS5oP/S2WgmL 0l5g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r23-20020a635157000000b003db58036fb2si4959162pgl.755.2022.05.16.17.50.29; Mon, 16 May 2022 17:50:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236588AbiEOTRd (ORCPT + 99 others); Sun, 15 May 2022 15:17:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238406AbiEOTRZ (ORCPT ); Sun, 15 May 2022 15:17:25 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 610C7120B8; Sun, 15 May 2022 12:17:22 -0700 (PDT) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nqJjs-0005vt-RK; Sun, 15 May 2022 21:17:12 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: linux-rockchip@lists.infradead.org, Rob Herring , Krzysztof Kozlowski , Peter Geis Cc: Peter Geis , Marc Zyngier , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v9 4/5] arm64: dts: rockchip: Add rk3568 PCIe2x1 controller Date: Sun, 15 May 2022 21:17:11 +0200 Message-ID: <5575428.DvuYhMxLoT@diego> In-Reply-To: <20220429123832.2376381-5-pgwipeout@gmail.com> References: <20220429123832.2376381-1-pgwipeout@gmail.com> <20220429123832.2376381-5-pgwipeout@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_NONE, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR 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 Am Freitag, 29. April 2022, 14:38:30 CEST schrieb Peter Geis: > The PCIe2x1 controller is common between the rk3568 and rk3566. It is a > single lane PCIe2 compliant controller. > > Signed-off-by: Peter Geis > --- > arch/arm64/boot/dts/rockchip/rk356x.dtsi | 52 ++++++++++++++++++++++++ > 1 file changed, 52 insertions(+) > > diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi > index 7cdef800cb3c..aea5d9255235 100644 > --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi > @@ -689,6 +689,58 @@ qos_vop_m1: qos@fe1a8100 { > reg = <0x0 0xfe1a8100 0x0 0x20>; > }; > > + pcie2x1: pcie@fe260000 { > + compatible = "rockchip,rk3568-pcie"; > + #address-cells = <3>; > + #size-cells = <2>; > + bus-range = <0x0 0xf>; > + clocks = <&cru ACLK_PCIE20_MST>, <&cru ACLK_PCIE20_SLV>, > + <&cru ACLK_PCIE20_DBI>, <&cru PCLK_PCIE20>, > + <&cru CLK_PCIE20_AUX_NDFT>; > + clock-names = "aclk_mst", "aclk_slv", > + "aclk_dbi", "pclk", "aux"; > + device_type = "pci"; > + interrupts = , > + , > + , > + , > + ; > + interrupt-names = "sys", "pmc", "msi", "legacy", "err"; > + #interrupt-cells = <1>; I guess #interrupt-cells shouldn't be necessary here, as that property is meant for interrupt-controller nodes - like the subnode here which already has its own #interrupt-cells, right? > + interrupt-map-mask = <0 0 0 7>; > + interrupt-map = <0 0 0 1 &pcie_intc 0>, > + <0 0 0 2 &pcie_intc 1>, > + <0 0 0 3 &pcie_intc 2>, > + <0 0 0 4 &pcie_intc 3>; > + linux,pci-domain = <0>; > + num-ib-windows = <6>; > + num-ob-windows = <2>; > + max-link-speed = <2>; > + msi-map = <0x0 &gic 0x0 0x1000>; > + num-lanes = <1>; > + phys = <&combphy2 PHY_TYPE_PCIE>; > + phy-names = "pcie-phy"; > + power-domains = <&power RK3568_PD_PIPE>; > + reg = <0x3 0xc0000000 0x0 0x00400000>, > + <0x0 0xfe260000 0x0 0x00010000>, > + <0x3 0x00000000 0x0 0x01000000>; > + ranges = <0x01000000 0x0 0x01000000 0x3 0x01000000 0x0 0x00100000 > + 0x02000000 0x0 0x02000000 0x3 0x01100000 0x0 0x3ef00000>; > + reg-names = "dbi", "apb", "config"; > + resets = <&cru SRST_PCIE20_POWERUP>; > + reset-names = "pipe"; > + status = "disabled"; > + > + pcie_intc: legacy-interrupt-controller { > + #address-cells = <0>; > + #interrupt-cells = <1>; > + interrupt-controller; > + interrupt-parent = <&gic>; > + interrupts = ; > + }; > + > + }; > + > sdmmc0: mmc@fe2b0000 { > compatible = "rockchip,rk3568-dw-mshc", "rockchip,rk3288-dw-mshc"; > reg = <0x0 0xfe2b0000 0x0 0x4000>; >