Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4100139ioa; Tue, 26 Apr 2022 17:18:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjpjyxywHQ4MvW98LBdgYPpJDwJf33hrxk9fIbAVrbqoFjlZ70zbAMTCYQp9L69udZrRla X-Received: by 2002:a17:90a:6445:b0:1d6:a69e:406c with SMTP id y5-20020a17090a644500b001d6a69e406cmr32853602pjm.49.1651018717733; Tue, 26 Apr 2022 17:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651018717; cv=none; d=google.com; s=arc-20160816; b=znECgGvsslJJh1zlNySwNmectcqSvUX/rdbC4bnGuj6pZuPXr/1VtD9nwwrFhXgesB MZT+Yp9ZYlsKySU2q+iCtaRa2S8+ygAfo5TBp2quRbgTnhjoOVvlzaaV9ZRkiglW/X2M 4dREVfLeC2lgUTJts+TUMHwPbfBR/yXpFiEcfCihAzrnhMdtxllqJjmaUh/fg609UcBy 91t8xurfyzYrab3ilgXZGELRakvVUDNPGfybfQIaSYPPndWPueIf0XNWPcrKxmcCLTbe p+nHqZPR8Lyu7eiY1SzRI4FMVVyTs1VQ0s5smLKhNaS1LLPMP2YTdW7Ii1fubSXICdmS umpg== 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=3MPG+xGmR4VMjoWP9SmdGX2PEI83rfYf+MZ3I3FUJrI=; b=Z3JZpqIWIINarGAOyICiKccisXTSg9Ih9YJe8Y3Vwg5Twv8WBt/To2f9yF5z1zjbJM TQCfqdesn3NFKp2d5j3qteHQZgxL10dRdxhO++E/KHpaanbW5QLwTPPeEPPAMp4OCUmO SZlm2PacJ/BmYsDvYwvm3gSikFgqtG10ZwJvY/LlBhNOtBnG5XjXBHIE2kd9Bz40Z5md F5lwjsMX0JIc4tnl2s0T97hlaSraSWfifJUZpA/7ri3fZCoyR2MZqtCA3yf7SnkugBS2 CkMdWiejXe4SFy8cnE82Joh1ICilq+Xx5GhXLDZVaYOVwf3K3DEhnukX8+2nyMGjamJe chHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=gDHOiM3w; 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 u42-20020a056a0009aa00b0050a952467b5si22407533pfg.338.2022.04.26.17.18.20; Tue, 26 Apr 2022 17:18:37 -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=gDHOiM3w; 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 S1350860AbiDZNZJ (ORCPT + 99 others); Tue, 26 Apr 2022 09:25:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350844AbiDZNZF (ORCPT ); Tue, 26 Apr 2022 09:25:05 -0400 Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AB0F15737; Tue, 26 Apr 2022 06:21:57 -0700 (PDT) Received: from mxbox1.masterlogin.de (unknown [192.168.10.88]) by mxout2.routing.net (Postfix) with ESMTP id EFACD5FBBE; Tue, 26 Apr 2022 13:21:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1650979315; 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=3MPG+xGmR4VMjoWP9SmdGX2PEI83rfYf+MZ3I3FUJrI=; b=gDHOiM3w+YaLFxLLc1F70fyqbPq93DIDUQzzsn/TEwBbqKfZc2s1wlBSzwaR28BRe1qmSb hUBPgzGEpH+idDN1yKP5VTHdpm1l5ck2rlPlaldXQ/DtKoExmkubxJQ5WK4rBCog0ewUO0 6iRf3wiGhn+7BCRnZAASp/VZNDIJYQQ= Received: from localhost.localdomain (fttx-pool-80.245.77.37.bambit.de [80.245.77.37]) by mxbox1.masterlogin.de (Postfix) with ESMTPSA id B7B49401C9; Tue, 26 Apr 2022 13:21:53 +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/RFT v2 00/11] RK3568 PCIe V3 support Date: Tue, 26 Apr 2022 15:21:28 +0200 Message-Id: <20220426132139.26761-1-linux@fw-web.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: 6ee0f1ac-3381-46d2-9e26-38a02835f5ee 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 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 v8: https://patchwork.kernel.org/project/linux-rockchip/list/?series=634925 Compared to PCIeV2 which uses the Naneng combphy, pciev3 uses a dedicated pci-phy. This Version is still an RFC/RFT because i cannot only test PCIe-slot on R2Pro as the other is a M.2 Key-E where i don't have any Hardware. last 3 Patches show a replacement for bifurcation setting to make it more useful for vendor-indepent lane-mapping. Frank Wunderlich (11): dt-bindings: phy: rockchip: add PCIe v3 phy dt-bindings: soc: grf: add pcie30-{phy,pipe}-grf dt-bindings: phy: rockchip: add PCIe v3 constants phy: rockchip: Support PCIe v3 dt-bindings: pci: add bifurcation option to Rockchip DesignWare binding PCI: rockchip-dwc: add PCIe bifurcation arm64: dts: rockchip: rk3568: Add PCIe v3 nodes arm64: dts: rockchip: Add PCIe v3 nodes to BPI-R2-Pro dt-bindings: pci: add lane-map to rockchip PCIe binding PCI: rockchip: add a lane-map to rockchip pcie driver arm64: dts: rockchip: add basic lane-map and drop bifurcation from r2pro .../bindings/pci/rockchip-dw-pcie.yaml | 3 + .../bindings/phy/rockchip,pcie3-phy.yaml | 84 ++++++ .../devicetree/bindings/soc/rockchip/grf.yaml | 3 + .../boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 79 +++++ arch/arm64/boot/dts/rockchip/rk3568.dtsi | 122 ++++++++ drivers/pci/controller/dwc/pcie-dw-rockchip.c | 22 ++ drivers/phy/rockchip/Kconfig | 9 + drivers/phy/rockchip/Makefile | 1 + .../phy/rockchip/phy-rockchip-snps-pcie3.c | 278 ++++++++++++++++++ include/dt-bindings/phy/phy-rockchip-pcie3.h | 21 ++ include/linux/phy/pcie.h | 12 + 11 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/dt-bindings/phy/phy-rockchip-pcie3.h create mode 100644 include/linux/phy/pcie.h -- 2.25.1