Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1916466iog; Sun, 19 Jun 2022 02:14:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sw2hsTkZgafIxR+MbUx2MLrMzK8mldMsTcEaJC34/u1FdqYrU1IGgV+63M6yIARu9A81Cy X-Received: by 2002:a17:90b:1d04:b0:1e8:64e2:38c6 with SMTP id on4-20020a17090b1d0400b001e864e238c6mr20356028pjb.238.1655630081649; Sun, 19 Jun 2022 02:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655630081; cv=none; d=google.com; s=arc-20160816; b=Ve8czm3ozcxVANC4/M/Ed/zUp2hjQkkNDRJp3jVDCWmdCvNMrZM0EzcJbKx8lOoVh2 54q2M8hDRsEiadiQXeVMp2Piyy9CCpjtImL7ffDOt+fH0CIBp0oK+UCnHOLrLNucwk0r C+wL3mnuCOqTqaELxUsa73mxdlWo8Oqr2I8VK1T0B24RWNh6kUusORodoxX4pmaTypOv WXhO/Vv5XW7eRiUCSIS9Yqb34lWiSE2g9SRfpbg6jQRaakMJpvWQNjgiMzqo5ZcNMp/x gxDnnkI9ufDxc4ejaI55JOmCFFmoTpS8iUZ0wDBYgmGV0VuWkqxrtL0jaaBZYQMQ2MNv fnxQ== 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=El3eiqyJe3YtA9IE7kBZL0i2kK4Uj0j7O55/zFr8ZLU=; b=C9jcLzG3zpyZJTmFyNKXCcv8WB/L24OQnl3YNd5nT6QZmwq3dr0CB9p+P3O5Zthu6Z PmGwu1p4OEAX1CEIxZx3o6GOpBzILLiWgnxHcLdZVVevOjukHxNDY/ENWVTLSqaCn/BT PAr1R7a83Mwk9OyGZOxiOz5l5UwtSi+24XSHuxmnfkOuBOkoGn/DDnNce5s9HYFAQlKP mUN5V2TuCeTcFEHDs+lGjaNkbNJ60ttLl6BHCOwVaeP46NVqm8h5nAe5f7Mm/+IkbAXR IiEXjYXF31flrsLnL34AJykXP9Iyuy744Fx0tkwq3jgEa5k0cO5iS7pHlk3/rOu0ZCm1 nPpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=ADrErCZh; 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 k38-20020a63ff26000000b00408c5943dfesi12367722pgi.504.2022.06.19.02.14.26; Sun, 19 Jun 2022 02:14:41 -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=ADrErCZh; 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 S234831AbiFSI0Y (ORCPT + 99 others); Sun, 19 Jun 2022 04:26:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbiFSI0V (ORCPT ); Sun, 19 Jun 2022 04:26:21 -0400 Received: from mxout4.routing.net (mxout4.routing.net [IPv6:2a03:2900:1:a::9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E21BBEE0E; Sun, 19 Jun 2022 01:26:18 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout4.routing.net (Postfix) with ESMTP id 1B9861005EE; Sun, 19 Jun 2022 08:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1655627176; 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=El3eiqyJe3YtA9IE7kBZL0i2kK4Uj0j7O55/zFr8ZLU=; b=ADrErCZhcAqvjuy8n/SQ/YGx6mGDEZEwIkwvwI7RZsGRwXOegwn4Mm9CQs5zFrdzDkWw0d W82WX7cZIk9v6foxd0gvYJQ7rPyuVkGIX9I/uMPX5nLYWzYkHPDhUerM0AwCwgdtAJ1hga IaMww8wfvino7oIxLfb3stHTi2pq61s= Received: from frank-G5.. (fttx-pool-157.180.227.195.bambit.de [157.180.227.195]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id DF4AA10054D; Sun, 19 Jun 2022 08:26:14 +0000 (UTC) From: Frank Wunderlich To: linux-rockchip@lists.infradead.org Cc: Frank Wunderlich , Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Philipp Zabel , Johan Jonker , Yifeng Zhao , Peter Geis , Michael Riesch , Liang Chen , Simon Xue , Shawn Lin , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/5] RK3568 PCIe V3 support Date: Sun, 19 Jun 2022 10:26:00 +0200 Message-Id: <20220619082605.7935-1-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: 43d1a18b-a719-4417-955d-f644080d9cf4 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. Compared to PCIeV2 which uses the Naneng combphy, PCIe v3 uses a dedicated PCI-phy. 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 | 80 +++++ .../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, 634 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.34.1