Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E0058C7618E for ; Wed, 26 Apr 2023 15:54:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 17E728638E; Wed, 26 Apr 2023 17:53:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.b="brEjXFzc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 372D686375; Wed, 26 Apr 2023 17:53:33 +0200 (CEST) Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0912586381 for ; Wed, 26 Apr 2023 17:53:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=eugen.hristev@collabora.com Received: from eugen-station.. (unknown [82.76.24.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: ehristev) by madras.collabora.co.uk (Postfix) with ESMTPSA id 405106603276; Wed, 26 Apr 2023 16:53:28 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1682524408; bh=/KaXTKJgmNjg2/S9Y3zUg7tFSCq58WigBszQD+yzlZc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=brEjXFzciF/OVROUrwi7I+D7hVzRUoeAJo/qE56UDgWsAc2jYyatzVBucnv2ybtXp j7pGeu7GTfoWHEdiC9az5R/1T/e9wRC9An6MZhNP54j7Mnd16rKqD0hibPpPOi/7KI Jxz9GPyxAn8uwHPe+n8WFXrjzg1fDai5OVOjScI0oydKoKkdPBuVy2hVgHFbSB47UO emmKu0YeljvL+zW92afeEUBBpfrZcHEWf9IH9AI59xHLXl2PxJKxvIy/F0V0BONTlv WqAxMhkIQABHNxWId0/7OVDSuYIYYbSDmhBQvKiC2Hhn1UaRPY+7dAxhZ5X0dyeMjc SBbKWVOK25eeg== From: Eugen Hristev To: u-boot@lists.denx.de Cc: jonas@kwiboo.se, jagan@edgeble.ai, kever.yang@rock-chips.com, eugen.hristev@collabora.com, Christopher Obbard Subject: [PATCH v2 6/7] ARM: dts: rockchip: rock5b: enable pcie2x1l2 and associated combphy Date: Wed, 26 Apr 2023 18:53:18 +0300 Message-Id: <20230426155319.148707-6-eugen.hristev@collabora.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230426155319.148707-1-eugen.hristev@collabora.com> References: <20230426155319.148707-1-eugen.hristev@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: Christopher Obbard Enable the pciE 2x1l 2 device and associated combphy. On this bus, the Rock5B has an Ethernet transceiver connected. Signed-off-by: Christopher Obbard [eugen.hristev@collabora.com: minor tweaks] Signed-off-by: Eugen Hristev [jonas@kwiboo.se: add pcie pins] Signed-off-by: Jonas Karlman --- Changes in v2: - add pcie2x1l2_pins by Jonas arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi b/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi index 78ffd60aaed4..d7650b7503a5 100644 --- a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi +++ b/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi @@ -30,13 +30,35 @@ }; }; +&combphy0_ps { + status = "okay"; +}; + &fspim2_pins { bootph-all; }; +&pcie2x1l2 { + pinctrl-names = "default"; + pinctrl-0 = <&pcie2x1l2_pins &pcie_reset_h>; + reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + &pinctrl { bootph-all; + pcie { + pcie_reset_h: pcie-reset-h { + rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + pcie2x1l2_pins: pcie2x1l2-pins { + rockchip,pins = <3 RK_PC7 4 &pcfg_pull_none>, + <3 RK_PD0 4 &pcfg_pull_none>; + }; + }; + usb { vcc5v0_host_en: vcc5v0-host-en { rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; -- 2.34.1