From nobody Wed Feb 11 14:47:28 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2115C7EE23 for ; Mon, 8 May 2023 10:46:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235079AbjEHKqv (ORCPT ); Mon, 8 May 2023 06:46:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235055AbjEHKq2 (ORCPT ); Mon, 8 May 2023 06:46:28 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C33412C3F1 for ; Mon, 8 May 2023 03:46:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=/52t7v/z2bjuNS cAobOGif1HPE5n1Q25yFrY/RjA0b0=; b=t06NfYZW23apf2nJJZd1BWICzCM3Qt DEHZxnFQB2q0GJe5q3y9reAgnUjm1pChQRAiTiAYE51UIl5QrCKIlls2c8CWf60t jEa1nVtk1umCHGjcimZKNN191UuUkoGb/pHhcZF7nqSvHe67GFMssKSl7i2uZ+Qt plOPKEqtwQwrY= Received: (qmail 1693272 invoked from network); 8 May 2023 12:46:09 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 8 May 2023 12:46:09 +0200 X-UD-Smtp-Session: l3s3148p1@x6G4WCz7noEujnsI From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , Marek Vasut , Yoshihiro Shimoda , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Conor Dooley , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 1/3] dt-bindings: PCI: rcar-pci-host: add optional regulators Date: Mon, 8 May 2023 12:45:55 +0200 Message-Id: <20230508104557.47889-2-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230508104557.47889-1-wsa+renesas@sang-engineering.com> References: <20230508104557.47889-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Support regulators found on the e.g. KingFisher board. Signed-off-by: Wolfram Sang --- Documentation/devicetree/bindings/pci/rcar-pci-host.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/rcar-pci-host.yaml b/Doc= umentation/devicetree/bindings/pci/rcar-pci-host.yaml index 8fdfbc763d70..23e44f78e62e 100644 --- a/Documentation/devicetree/bindings/pci/rcar-pci-host.yaml +++ b/Documentation/devicetree/bindings/pci/rcar-pci-host.yaml @@ -68,6 +68,12 @@ properties: phy-names: const: pcie =20 + vpcie1v5-supply: + description: The 1.5v regulator to use for PCIe. + + vpcie3v3-supply: + description: The 3.3v regulator to use for PCIe. + required: - compatible - reg @@ -121,5 +127,7 @@ examples: clock-names =3D "pcie", "pcie_bus"; power-domains =3D <&sysc R8A7791_PD_ALWAYS_ON>; resets =3D <&cpg 319>; + vpcie1v5-supply =3D <&pcie_1v5>; + vpcie3v3-supply =3D <&pcie_3v3>; }; }; --=20 2.30.2 From nobody Wed Feb 11 14:47:28 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97116C77B75 for ; Mon, 8 May 2023 10:47:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235115AbjEHKrE (ORCPT ); Mon, 8 May 2023 06:47:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234966AbjEHKqc (ORCPT ); Mon, 8 May 2023 06:46:32 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0869191D2 for ; Mon, 8 May 2023 03:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=Su+LIM099dBNN5 I/2zqemLMlE9HMV3Yah2C6jRkZbDk=; b=iyP8TDXVUIrCjCS5ppDQZq5VQ7viSa g5ULeT4CgvfOXRExfuT4YfkL4WkKrTXJbLcPTJON2Hjf1g0bNpNrJjcJQs1oC3+Y g029BS/M/mZNlBbIk6mM5zxFjMhXq4pKUU0zMZn0IHM2H6e30roEoANk8/JTucTW iAwBgNzjjAeHk= Received: (qmail 1693319 invoked from network); 8 May 2023 12:46:10 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 8 May 2023 12:46:10 +0200 X-UD-Smtp-Session: l3s3148p1@5w7EWCz7tsMujnsI From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , Marek Vasut , Yoshihiro Shimoda , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 2/3] PCI: rcar-host: add support for optional regulators Date: Mon, 8 May 2023 12:45:56 +0200 Message-Id: <20230508104557.47889-3-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230508104557.47889-1-wsa+renesas@sang-engineering.com> References: <20230508104557.47889-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The KingFisher board has regulators. They just need to be en-/disabled, so we can leave the handling to devm. Signed-off-by: Wolfram Sang --- drivers/pci/controller/pcie-rcar-host.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/pci/controller/pcie-rcar-host.c b/drivers/pci/controll= er/pcie-rcar-host.c index e80e56b2a842..b0e4834176d2 100644 --- a/drivers/pci/controller/pcie-rcar-host.c +++ b/drivers/pci/controller/pcie-rcar-host.c @@ -29,6 +29,7 @@ #include #include #include +#include =20 #include "pcie-rcar.h" =20 @@ -992,6 +993,14 @@ static int rcar_pcie_probe(struct platform_device *pde= v) pcie->dev =3D dev; platform_set_drvdata(pdev, host); =20 + err =3D devm_regulator_get_enable_optional(dev, "vpcie3v3"); + if (err < 0 && err !=3D -ENODEV) + dev_err_probe(dev, err, "error enabling 3.3V regulator"); + + err =3D devm_regulator_get_enable_optional(dev, "vpcie1v5"); + if (err < 0 && err !=3D -ENODEV) + dev_err_probe(dev, err, "error enabling 1.5V regulator"); + pm_runtime_enable(pcie->dev); err =3D pm_runtime_get_sync(pcie->dev); if (err < 0) { --=20 2.30.2 From nobody Wed Feb 11 14:47:28 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11B2FC77B75 for ; Mon, 8 May 2023 10:47:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235167AbjEHKrJ (ORCPT ); Mon, 8 May 2023 06:47:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235098AbjEHKqf (ORCPT ); Mon, 8 May 2023 06:46:35 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E2AD26E82 for ; Mon, 8 May 2023 03:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=BzUDahvBEhVYMi I5z+9pq3NWIK0k2jvHIEQ8e/rO2YY=; b=XTFDUUY+ADmZCeeL/+sN9uwj5jsoYW kCj7RdMPuJC1temr1CQMLKvUzshYoGgjyEKIOslInImCDZ5JWXY4K9SlIREc7psK /FGiU3EdnxVl/BJt8qquNTpmrTP0TNjTZISXTtnnOj7G1g2RAsOsX5JQWTzkRhej cIUih3HKkivc4= Received: (qmail 1693366 invoked from network); 8 May 2023 12:46:11 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 8 May 2023 12:46:11 +0200 X-UD-Smtp-Session: l3s3148p1@fR3RWCz7vMMujnsI From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , Geert Uytterhoeven , Magnus Damm , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 3/3] arm64: dts: renesas: ulcb-kf: add regulators for PCIe ch1 Date: Mon, 8 May 2023 12:45:57 +0200 Message-Id: <20230508104557.47889-4-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230508104557.47889-1-wsa+renesas@sang-engineering.com> References: <20230508104557.47889-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Without them, no power, so cards do not get recognized. Signed-off-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/ulcb-kf.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi b/arch/arm64/boot/dts= /renesas/ulcb-kf.dtsi index efc80960380f..ff3a9ab6e6b0 100644 --- a/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi +++ b/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi @@ -52,6 +52,24 @@ hdmi_3v3: regulator-hdmi-3v3 { regulator-max-microvolt =3D <3300000>; }; =20 + pcie_1v5: regulator-pcie-1v5 { + compatible =3D "regulator-fixed"; + regulator-name =3D "pcie-1v5"; + regulator-min-microvolt =3D <1500000>; + regulator-max-microvolt =3D <1500000>; + gpio =3D <&gpio_exp_77 15 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + pcie_3v3: regulator-pcie-3v3 { + compatible =3D "regulator-fixed"; + regulator-name =3D "pcie-3v3"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + gpio =3D <&gpio_exp_77 14 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + snd_3p3v: regulator-snd_3p3v { compatible =3D "regulator-fixed"; regulator-name =3D "snd-3.3v"; @@ -335,6 +353,9 @@ &pciec0 { =20 &pciec1 { status =3D "okay"; + + vpcie1v5-supply =3D <&pcie_1v5>; + vpcie3v3-supply =3D <&pcie_3v3>; }; =20 &pfc { --=20 2.30.2