Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1001307rwe; Thu, 25 Aug 2022 13:18:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR7zR0WZfPq4d1KMSD9HLDmzrtpnrnf8csAih3E03+yectKGILeCmmBhTkKr9tyOR+SmNylp X-Received: by 2002:a17:902:8309:b0:170:8c4e:e2c3 with SMTP id bd9-20020a170902830900b001708c4ee2c3mr592164plb.171.1661458732470; Thu, 25 Aug 2022 13:18:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661458732; cv=none; d=google.com; s=arc-20160816; b=zhT27oMpkLMm8ubJjbtBcAgaiJ81xsjTUnybFZL54aV+eJO2J2KcbDCgwwYtk95YvC +Yd5F6CZJSFM/2+XXZBRWqCmzEQ93lKIMuNAPt+tdXyHiq2vHyZ4p17k30ZLsVqdgtI9 jvsTnJKvnAhyRyxNKy2tNLxcU+tqVAGj8mulgpchAZbkLnhbx+S2PUB6M35LpdVh5cj4 X0M8ANrF1zbyp1DWz4HAjIaDD0flufJEIMC5R255d3ZqyWiNaPTAJ+RLkSgdMBdz320+ V3qagpwVoZSN8hSzU5YBKk4XIKuDfGTd4u3pBaEHJcwfXu9b8XN12HdPnrXYSAR3ABlc ztPA== 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=BjCaPS3Ls4OcThfe6JXlBlmUcyFt3U2x6sPSAzYayAE=; b=fBwop18TVojBYpg/P9IkuEEEdnknmy6EKDuF3AVWenIUOW6pWaEU9ASf3PBLIDDXGL 1wtfu7ua+8ljpnVu3udzIEUA+S9fyJRVTOP0jivF2kvR8MzUlgAQUJ/p0uDIZaP6ayH8 xelLv50EteFPamDsLJ+/asEvyDIWfFVTRJtoEm2bqPOd47iIKb9rvjKcZM++P0yWrxuU 5G9uLBZXNWPjYi/36MnP5Up91s8WL2iiN6D1yUi3Y/U9B9PqhmSrqeuVd5wlVoYvEwYt 15A862Pqg4nICH3s06Z+ihcSw+0eOowx0jKizP90BA/NYJqbTf+02K52pdzHwkCT7rC8 20UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=RZHrhso7; 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 ls6-20020a17090b350600b001fa9cc845c7si261177pjb.160.2022.08.25.13.18.17; Thu, 25 Aug 2022 13:18:52 -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=RZHrhso7; 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 S243686AbiHYTjM (ORCPT + 99 others); Thu, 25 Aug 2022 15:39:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237678AbiHYTjE (ORCPT ); Thu, 25 Aug 2022 15:39:04 -0400 Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D914BFA84; Thu, 25 Aug 2022 12:38:59 -0700 (PDT) Received: from mxbox1.masterlogin.de (unknown [192.168.10.88]) by mxout1.routing.net (Postfix) with ESMTP id 6516B40666; Thu, 25 Aug 2022 19:38:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1661456336; 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=BjCaPS3Ls4OcThfe6JXlBlmUcyFt3U2x6sPSAzYayAE=; b=RZHrhso7bq5krHTSILI+Du8+jJ4NY2btosRsojMruDhy8p3HV9L4CrZKxe5FdB54E8t4EP 57d/mZgmm2+oY2EoIZB7Xay7O2Oqen4mLCuwN+1+pZipAE7funuSgJQYuyjyFM6f0EsIjl 41i3HdpbyI5buN2CNR1NRTRKMAT0sAM= Received: from frank-G5.. (fttx-pool-80.245.75.185.bambit.de [80.245.75.185]) by mxbox1.masterlogin.de (Postfix) with ESMTPSA id 3206B402A9; Thu, 25 Aug 2022 19:38:55 +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 , Yifeng Zhao , Johan Jonker , Peter Geis , Simon Xue , Liang Chen , Shawn Lin , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 0/5] RK3568 PCIe V3 support Date: Thu, 25 Aug 2022 21:38:31 +0200 Message-Id: <20220825193836.54262-1-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: ec59aa3d-efac-4485-ba71-0bdc305891d2 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,URIBL_BLOCKED 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 | 117 +++++++ 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 | 319 ++++++++++++++++++ include/linux/phy/pcie.h | 12 + 8 files changed, 663 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