Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp370513imn; Mon, 25 Jul 2022 19:51:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v8ia1KZV+sH9bWyYBpIqHz7U1P6UjDuHUlaZN5uccZApJTQn6UyQEbV4X834xh1xz2R7CS X-Received: by 2002:aa7:c0d0:0:b0:43b:b6d5:2977 with SMTP id j16-20020aa7c0d0000000b0043bb6d52977mr16134244edp.199.1658803871963; Mon, 25 Jul 2022 19:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658803871; cv=none; d=google.com; s=arc-20160816; b=FHgGsc6Tvn5zn0eRlCz1nFvdA8tTRgn9oDzsedKOv0oX2Ltj7/5MUxEdouSVOnk/Af rUDAHaJZHYvyvbK35P2zQmClhXUQiQyDl8DayCGa6NGWATv9vph1mAlP/GqrA/QecMLe T/y1VsvVqehX4wn0hj3CeSdwuJ9HZ56+fMK04pWsHnkkeJY4y6xOsBID4sHtcBWs2RRn u3DcnFnBczNsb2pU2ihafh8SzgzD52UIXNvzaemYUWGVS1AqaAQaeyP11qSbt8ocbFar YwPx065GYBmhNL7CXelKy/PfX5zWvwzaToMrUExUeg4/eEwgxvcCVE8D5V2ENvFKnNOT NpAw== 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; bh=GgXKaG3Dk3QtH0u8IHtIX/ue0AF01cLlvpT6f5+h5ec=; b=VtDNQ7JVJcKcrB3I4RhJVgJZepQtagg/d8dyvlrNRBC0qcPeFNSJyAuQE+eCo5zDdo EysRa1x+HJ5qJ8goYwEczQfPX8+Si3J7loSWzw5vKxmYNEMqr+N2f7OOqJnG59ExFtPk I2eyCSn2aSKjG+2T1EWY0d2QDlQ3dnAU9sJTl90LPV2ezNePiCzaOJNKYKoKt0n9DcEG O5s2jn3FpQKFu6NEF3W1cEnfXVETNlM8utvoqYr4jBuYPpnuRb7rCfz1I8OfQ3qsf67m THN0QShfGxQoh/4Mgx2gFFhO4hISY6ZnmIjC7SkWZHBXSxvtOciYNltNBO90P5jQxa98 cysQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a19-20020a1709062b1300b0072b5f0539f9si11430423ejg.365.2022.07.25.19.50.47; Mon, 25 Jul 2022 19:51:11 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237173AbiGZCfd (ORCPT + 99 others); Mon, 25 Jul 2022 22:35:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230489AbiGZCfc (ORCPT ); Mon, 25 Jul 2022 22:35:32 -0400 X-Greylist: delayed 230 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 25 Jul 2022 19:35:31 PDT Received: from mail-m121145.qiye.163.com (mail-m121145.qiye.163.com [115.236.121.145]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B32665F4; Mon, 25 Jul 2022 19:35:31 -0700 (PDT) Received: from amadeus-VLT-WX0.lan (unknown [113.118.189.34]) by mail-m121145.qiye.163.com (Hmail) with ESMTPA id AE788800091; Tue, 26 Jul 2022 10:35:28 +0800 (CST) From: Chukun Pan To: Heiko Stuebner Cc: Michael Riesch , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chukun Pan Subject: [PATCH] arm64: dts: rockchip: Enable PCIe controller on rock3a Date: Tue, 26 Jul 2022 10:35:16 +0800 Message-Id: <20220726023516.6487-1-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZTRoaVh1OHUgdQkMfTU4fTFUTARMWGhIXJBQOD1 lXWRgSC1lBWUpKSFVKSkNVSkNCVUhPWVdZFhoPEhUdFFlBWU9LSFVKSktISkNVS1kG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Pj46SCo5Gj0#PE4WN05DMAsC KBAKCzVVSlVKTU5DQ0tJQklCT05KVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUpK SFVKSkNVSkNCVUhPWVdZCAFZQUhLQkw3Bg++ X-HM-Tid: 0a82385bfd6eb03akuuuae788800091 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Add the nodes to enable the PCIe controller on the Radxa ROCK3 Model A board. Run test with the MT7921 pcie wireless card. Signed-off-by: Chukun Pan --- .../boot/dts/rockchip/rk3568-rock-3a.dts | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts index 0813c0c5abde..3ce7eb05defc 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -119,6 +119,18 @@ vcc5v0_usb_otg: vcc5v0-usb-otg-regulator { regulator-max-microvolt = <5000000>; vin-supply = <&vcc5v0_usb>; }; + + vcc3v3_pcie: vcc3v3-pcie-regulator { + compatible = "regulator-fixed"; + enable-active-high; + gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pcie_enable_h>; + regulator-name = "vcc3v3_pcie"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc5v0_sys>; + }; }; &combphy0 { @@ -129,6 +141,10 @@ &combphy1 { status = "okay"; }; +&combphy2 { + status = "okay"; +}; + &cpu0 { cpu-supply = <&vdd_cpu>; }; @@ -423,6 +439,14 @@ rgmii_phy1: ethernet-phy@0 { }; }; +&pcie2x1 { + pinctrl-names = "default"; + pinctrl-0 = <&pcie_reset_h>; + reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>; + vpcie3v3-supply = <&vcc3v3_pcie>; + status = "okay"; +}; + &pinctrl { ethernet { eth_phy_rst: eth_phy_rst { @@ -436,6 +460,16 @@ led_user_en: led_user_en { }; }; + pcie { + pcie_enable_h: pcie-enable-h { + rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + pcie_reset_h: pcie-reset-h { + rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pmic { pmic_int: pmic_int { rockchip,pins = -- 2.25.1