Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp522692lqc; Fri, 8 Mar 2024 04:52:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXrFn2WHpwyquYK+jF1EvUjVXFSBd1XcdaRNjO4llxTC0qjk9lujY5bWz6EpprD0KRwFYlEiIsHDX741Cq/JFjvnkIk6/h/wR2RpGBsjg== X-Google-Smtp-Source: AGHT+IGPY6WoD7ImLqoGIlFl7edWb2XTg+GQOBxTKTKOf7mBGSfIC+HBkKVxTclpPRpsia3zYavP X-Received: by 2002:a17:90b:1d0f:b0:29b:bff0:d424 with SMTP id on15-20020a17090b1d0f00b0029bbff0d424mr262389pjb.14.1709902371243; Fri, 08 Mar 2024 04:52:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709902371; cv=pass; d=google.com; s=arc-20160816; b=JpVazockCC+9VXtzvn+iWQEDldyR02QB4hRNjtV+cNlCvtjk6G6pwBJY5Ke5jMds2I BPszx8Ps+09Rw7LWpKMQK1MhCy2wwRBxyKGU3mefhDoG+90NtmLH+5F8ixFtcnbrflZh CbPiqxVOfhG+Bud3bpRdk7jWQPEbfqRlbIBrTemfFSZjPP3IzyLOygWFxLZJXvsLoXex ARsjdRNJ9nVsA6tVV3JDASxunDrNqZ49wN6F56imXjKzv4kv+2/o3Dy1wPrC10G5Erw4 NJBkAHOQam5A4Ez3uic+aI7NtDDPh/2qUjkAgjl+FJ5zu9LnfBfYpHOVLM4QI6qa6XvT ufUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from; bh=l/f1mZR93vFfYNfBNj+Rma7VPn6gRgRwaZuxf/FlV8w=; fh=rTsj5RmERjj27sEgozrxw9HFgE0Arx8Z0LoJK8x5SA8=; b=AWarHJ8FBrVapVPh83HlX3xnnWr6LGxl8fGBNxqX06IZzgc7RQY1ncXkK9qOVTfhiR v9riIv18SCGI8MZlN1fAk7EtgKFDsPDUR9IsNptpOEgKzqUWygJ5nXkJNUcV4WA7gOvm YqhR7nrKMA+wD7pW7LtQGuzTxeittbVvoRcQKMCkOj0VR0ZX+1Z5UfhLFflIJrW3jFvk ZOxtCq/KjDXjQ1mAP6j5zCm/h2IybMctBhZdHb5L8UG04jmH8/55O/AA+J1scMHtQzy6 5xmDuZNp9rIRhMuomn+fH3Ud4+Aj5hdv09TISrIiHfdzx2xtBYwKKVgsgCMgiWL4bcdP b69Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=0leil.net); spf=pass (google.com: domain of linux-kernel+bounces-97029-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97029-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x59-20020a17090a38c100b0029ab69ea17csi3626063pjb.163.2024.03.08.04.52.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 04:52:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97029-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=0leil.net); spf=pass (google.com: domain of linux-kernel+bounces-97029-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97029-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E8749B21E50 for ; Fri, 8 Mar 2024 12:52:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A127D23767; Fri, 8 Mar 2024 12:52:27 +0000 (UTC) Received: from smtp-42af.mail.infomaniak.ch (smtp-42af.mail.infomaniak.ch [84.16.66.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F1E11B947 for ; Fri, 8 Mar 2024 12:52:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=84.16.66.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709902347; cv=none; b=ZnziGKHykXJ/4XXjwrhW9PAPqpgR/kOTddv4bUJjIs1aXHOOwfm0Toxncl0MmeDlcAZeCOL8+vV1/drn7cfeZSvjfitDuMpjhVTlK/9LpBhAZfQLWD5mf/e6I0q7kx1AEH+oNAQRdleHSK6BIvLvjGTjnsGlweZgqlFUZfNhj10= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709902347; c=relaxed/simple; bh=oO4i3HoAXE8oa/LHkMaPbOF10iI4nIvpFAYMuYeeLbM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=onrygE/WqNC4DDWS+TDPVpIvMEgEBHrSUGBHoVMJK4iMFCMWeUlFIlltr4jeqZX2tnLn9yoJ1LQ+iYlKP/HlTWrWsXZxtu/efY1DgkLDQj2wLp6YHVulqYcPxmNMtDlKJAtEMToBLMR0gFTtfMs3eieSC7IEKB0dpsKNEmNGIMo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=0leil.net; spf=pass smtp.mailfrom=0leil.net; arc=none smtp.client-ip=84.16.66.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=0leil.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=0leil.net Received: from smtp-3-0001.mail.infomaniak.ch (smtp-3-0001.mail.infomaniak.ch [10.4.36.108]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4TrmKF3HfCztpY; Fri, 8 Mar 2024 13:52:17 +0100 (CET) Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4TrmKD63f6zMppDY; Fri, 8 Mar 2024 13:52:16 +0100 (CET) From: Quentin Schulz Date: Fri, 08 Mar 2024 13:52:10 +0100 Subject: [PATCH 3/3] arm64: dts: rockchip: add regulators for PCIe on RK3399 Puma Haikou Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240308-puma-diode-pu-v1-3-2b38457bcdc0@theobroma-systems.com> References: <20240308-puma-diode-pu-v1-0-2b38457bcdc0@theobroma-systems.com> In-Reply-To: <20240308-puma-diode-pu-v1-0-2b38457bcdc0@theobroma-systems.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: Klaus Goger , Quentin Schulz , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Quentin Schulz X-Mailer: b4 0.13.0 X-Infomaniak-Routing: alpha From: Quentin Schulz The PCIe PHY requires two regulators and are present on the SoM directly, while the PCIe connector also exposes 3V3 and 12V power rails which are available on the baseboard. Considering that 3/4 regulators are always-on on HW level and that the last one depends on a regulator from the PMIC that is specified as always on, this commit should be purely cosmetic and no change in behavior is expected. Let's add all regulators for PCIe on RK3399 Puma Haikou. Signed-off-by: Quentin Schulz --- .../arm64/boot/dts/rockchip/rk3399-puma-haikou.dts | 2 ++ arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 26 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts b/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts index 18a98c4648eae..66ebb148bbc9a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts @@ -194,6 +194,8 @@ &pcie0 { num-lanes = <4>; pinctrl-names = "default"; pinctrl-0 = <&pcie_clkreqn_cpm>; + vpcie3v3-supply = <&vcc3v3_baseboard>; + vpcie12v-supply = <&dc_12v>; status = "okay"; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi index 2484ad2bd86fc..1113f57b09313 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi @@ -79,6 +79,26 @@ vcc5v0_sys: vcc5v0-sys { regulator-max-microvolt = <5000000>; }; + vcca0v9: vcca0v9-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcca0v9"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <900000>; + vin-supply = <&vcc_1v8>; + }; + + vcca1v8: vcca1v8-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcca1v8"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc3v3_sys>; + }; + vdd_log: vdd-log { compatible = "pwm-regulator"; pwms = <&pwm2 0 25000 1>; @@ -416,6 +436,12 @@ &io_domains { gpio1830-supply = <&vcc_1v8>; }; +&pcie0 { + /* PCIe PHY supplies */ + vpcie0v9-supply = <&vcca0v9>; + vpcie1v8-supply = <&vcca1v8>; +}; + &pcie_clkreqn_cpm { rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>; -- 2.44.0