Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2624503iob; Mon, 16 May 2022 02:25:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBncZ/MY6bKG6BhKuw1VcrcmvaJKQkPRAK8p8kpiK6HFxe4YrEpIP8iDo40C/tQ2P72X+2 X-Received: by 2002:a5d:6701:0:b0:20c:dc44:f7e7 with SMTP id o1-20020a5d6701000000b0020cdc44f7e7mr13062866wru.484.1652693113321; Mon, 16 May 2022 02:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652693113; cv=none; d=google.com; s=arc-20160816; b=EVkoTl9cgrW/u71KR5W5FZW/ZtzHpqBw9bcJwI+9jzG6+8dJNVr8O7nQbUgmvjE0FF E0CS4vBwDL7PGACKhXMKzu8XWtBQzsx2Rva0a+c1TTcpZ25kvIju0YhUPwTgi+tI38jY atDSkZE4ofM0078E5GToNf6CcWs31rGHQuudKFHDS/FmxZIFFXpH4T1ho3NiWfPSklg6 itsrSsIwNvoSFIMJ9Th4q/mZ69CoHsg++wGZjmnTOfiMPXlrhxKoErd/hF3WnfutTbqF mDh6q0VRS/mcdZUx8bkLHxsNwbqUQu59ij3nb+SBE9LBezM6v79PX/sJ5W3wIZrAwQy9 Cq0g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Jp8Teq4Isc+9gmZReRzppDgzK1yE9IJ/3uRsTw6ryLw=; b=bCBn/77AwM2xkFECZ+sWR/mLiIrjKSqTTGGPKj2bO5OrNwdVBluoV20mJ6mWq2GcI3 mXTQJpnV4N+yC6wR4kuNpRDYiS73jUFJNtkAOuQ9eHPsLpAs69kHtK0nx4j/Tims4CYn FvOQjqQuwijuukHckLNe9CLxSHlBICDOdxFAYmJLei0t1iSrDTxCu1zmhkLQM66EmAqM v9J5hPbMiTtYfib0HVkcYRvWdhrlpBiSoTFtyaPHBB0X5ocF/BO5edh05haZeeWhPTBU deyTsw4JkEwkDNj+2EXiozojJecPnE+iSe63sn0ODrLG+Ptw36Wwn5d4IxJwb0V7/F2h /h9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=oCp832NT; 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 b3-20020a056000054300b0020ad2bae479si9531048wrf.114.2022.05.16.02.24.47; Mon, 16 May 2022 02:25:13 -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=@mailerdienst.de header.s=20200217 header.b=oCp832NT; 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 S232067AbiENMAF (ORCPT + 99 others); Sat, 14 May 2022 08:00:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231640AbiENMAB (ORCPT ); Sat, 14 May 2022 08:00:01 -0400 Received: from mxout4.routing.net (mxout4.routing.net [IPv6:2a03:2900:1:a::9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A740983; Sat, 14 May 2022 04:59:58 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout4.routing.net (Postfix) with ESMTP id F10191007E5; Sat, 14 May 2022 11:59:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1652529596; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Jp8Teq4Isc+9gmZReRzppDgzK1yE9IJ/3uRsTw6ryLw=; b=oCp832NTVPSaEBRhBlPm8aZYMaEUSpQPU/3kx6pVPlYzmwxzuydQkVam2N3UHmA7WayaLP 386fK61d5ybZKWQhuwRJCw6PQnrjGPWO1rVJNW169kEYrOA2UhSI+6vmcW2QzTkGXKt9Nr 3yaSAdNYIG7ojFg4fXLYuLl69NgLFRc= Received: from localhost.localdomain (fttx-pool-217.61.148.252.bambit.de [217.61.148.252]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id B4D82360502; Sat, 14 May 2022 11:59:54 +0000 (UTC) From: Frank Wunderlich To: linux-rockchip@lists.infradead.org Cc: Frank Wunderlich , Bjorn Helgaas , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Kishon Vijay Abraham I , Vinod Koul , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Philipp Zabel , Johan Jonker , Peter Geis , Michael Riesch , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Subject: [RFC v3 0/5] RK3568 PCIe V3 support Date: Sat, 14 May 2022 13:59:41 +0200 Message-Id: <20220514115946.8858-1-linux@fw-web.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: c0d866d5-96cb-4e67-abe9-7c9f9293d3cc X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 From: Frank Wunderlich This series adds Rockchip PCIe V3 support found on rk3568 SOC. It is based on "Enable rk356x PCIe controller" series of Peter Geis v9: https://patchwork.kernel.org/project/linux-rockchip/list/?series=636944 Compared to PCIeV2 which uses the Naneng combphy, PCIe v3 uses a dedicated PCI-phy. New in this version is that lane-map is no separate patch and moved from PCIe- to phy-driver. Peter has tested m2-slot too and so the bifurcation. The Phy-Patch is now changed to original author, but our changes are squashed in. Frank Wunderlich (4): dt-bindings: phy: rockchip: add PCIe v3 phy dt-bindings: soc: grf: add pcie30-{phy,pipe}-grf arm64: dts: rockchip: rk3568: Add PCIe v3 nodes arm64: dts: rockchip: Add PCIe v3 nodes to BPI-R2-Pro Shawn Lin (1): phy: rockchip: Support PCIe v3 .../bindings/phy/rockchip,pcie3-phy.yaml | 82 +++++ .../devicetree/bindings/soc/rockchip/grf.yaml | 3 + .../boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 90 +++++ arch/arm64/boot/dts/rockchip/rk3568.dtsi | 122 +++++++ drivers/phy/rockchip/Kconfig | 9 + drivers/phy/rockchip/Makefile | 1 + .../phy/rockchip/phy-rockchip-snps-pcie3.c | 317 ++++++++++++++++++ include/linux/phy/pcie.h | 12 + 8 files changed, 636 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/rockchip,pcie3-phy.yaml create mode 100644 drivers/phy/rockchip/phy-rockchip-snps-pcie3.c create mode 100644 include/linux/phy/pcie.h -- 2.25.1