From patchwork Tue May 16 08:28:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diogo Ivo X-Patchwork-Id: 683678 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 9F791C77B7F for ; Tue, 16 May 2023 08:28:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231336AbjEPI2n (ORCPT ); Tue, 16 May 2023 04:28:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230527AbjEPI2m (ORCPT ); Tue, 16 May 2023 04:28:42 -0400 Received: from smtp1.tecnico.ulisboa.pt (smtp1.tecnico.ulisboa.pt [193.136.128.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3E563C01; Tue, 16 May 2023 01:28:39 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp1.tecnico.ulisboa.pt (Postfix) with ESMTP id 3A37D6004402; Tue, 16 May 2023 09:28:38 +0100 (WEST) X-Virus-Scanned: by amavisd-new-2.11.0 (20160426) (Debian) at tecnico.ulisboa.pt Received: from smtp1.tecnico.ulisboa.pt ([127.0.0.1]) by localhost (smtp1.tecnico.ulisboa.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id uknSLdMuR8gQ; Tue, 16 May 2023 09:28:35 +0100 (WEST) Received: from mail1.tecnico.ulisboa.pt (mail1.ist.utl.pt [193.136.128.10]) by smtp1.tecnico.ulisboa.pt (Postfix) with ESMTPS id C3CDF600440F; Tue, 16 May 2023 09:28:35 +0100 (WEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tecnico.ulisboa.pt; s=mail; t=1684225715; bh=OxCRSDocyyu6pmMK9pivMm1r/2v3QJFXAvDDNRdf5Kk=; h=From:To:Subject:Date:In-Reply-To:References; b=p0iEu+t93fmNEE3Pv9CuzlIgoXbaUCWOziOBObOcqb66yQgtpnpZDzbl0M1gFxddK 82SjoBrEwqKeJ0WKJHU4/2RAbl9mmjkPT0rng2I2qA2CWsEQFMIzCvoH4B4h9gnPmB jJwftAflP/eqK/02PafL6Gdt0znHGOF5Be1MbNCs= Received: from wslaptop.Home (unknown [IPv6:2001:8a0:6a1a:e700:b1f6:8e31:237e:e5dd]) (Authenticated sender: ist187313) by mail1.tecnico.ulisboa.pt (Postfix) with ESMTPSA id 986ED36007C; Tue, 16 May 2023 09:28:35 +0100 (WEST) From: Diogo Ivo To: Diogo Ivo , thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jonathanh@nvidia.com, arnd@arndb.de, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v2 1/2] arm64: dts: tegra: smaug: add GPU power rail regulator Date: Tue, 16 May 2023 09:28:28 +0100 Message-Id: <20230516082829.15326-2-diogo.ivo@tecnico.ulisboa.pt> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230516082829.15326-1-diogo.ivo@tecnico.ulisboa.pt> References: <20230516082829.15326-1-diogo.ivo@tecnico.ulisboa.pt> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the GPU power rail regulator node for the Pixel C. Signed-off-by: Diogo Ivo --- V1 -> V2: Use generic DT node name and GPIO flag defines (Krzysztof Kozlowski) arch/arm64/boot/dts/nvidia/tegra210-smaug.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts index e55bff859692..929372f24339 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts +++ b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts @@ -1406,6 +1406,23 @@ max77621_cpu: max77621@1b { maxim,externally-enable; }; + max77621_gpu: regulator@1c { + compatible = "maxim,max77621"; + reg = <0x1c>; + interrupt-parent = <&gpio>; + interrupts = ; + regulator-min-microvolt = <840000>; + regulator-max-microvolt = <1150000>; + regulator-name = "PPVAR_GPU"; + regulator-ramp-delay = <12500>; + maxim,dvs-default-state = <1>; + maxim,enable-active-discharge; + maxim,enable-bias-control; + maxim,disable-etr; + maxim,enable-gpio = <&pmic 6 GPIO_ACTIVE_HIGH>; + maxim,externally-enable; + }; + pmic: pmic@3c { compatible = "maxim,max77620"; reg = <0x3c>; From patchwork Tue May 16 08:28:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diogo Ivo X-Patchwork-Id: 683677 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 37E4FC7EE2C for ; Tue, 16 May 2023 08:28:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231400AbjEPI2o (ORCPT ); Tue, 16 May 2023 04:28:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231329AbjEPI2m (ORCPT ); Tue, 16 May 2023 04:28:42 -0400 Received: from smtp1.tecnico.ulisboa.pt (smtp1.tecnico.ulisboa.pt [IPv6:2001:690:2100:1::15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24D923C03; Tue, 16 May 2023 01:28:40 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp1.tecnico.ulisboa.pt (Postfix) with ESMTP id 2A67C6004411; Tue, 16 May 2023 09:28:39 +0100 (WEST) X-Virus-Scanned: by amavisd-new-2.11.0 (20160426) (Debian) at tecnico.ulisboa.pt Received: from smtp1.tecnico.ulisboa.pt ([127.0.0.1]) by localhost (smtp1.tecnico.ulisboa.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id 7ryfeNSuBZrZ; Tue, 16 May 2023 09:28:36 +0100 (WEST) Received: from mail1.tecnico.ulisboa.pt (mail1.ist.utl.pt [193.136.128.10]) by smtp1.tecnico.ulisboa.pt (Postfix) with ESMTPS id B8EDE6004412; Tue, 16 May 2023 09:28:36 +0100 (WEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tecnico.ulisboa.pt; s=mail; t=1684225716; bh=bL0KNlmoW6VUoAG7LAfPoCLBx/vGsSzvpVBmifOS6No=; h=From:To:Subject:Date:In-Reply-To:References; b=Gr2tH9wVZjPnRjZqV3xxDRmTXu8WP3X58SoKn47kZbTiQ1Y0G5Air+7sKfeqDocDr LxLyakIGTKj3hzuBM9CYAyBhwR3O6ATzHUAfnuo3GvGK56SWoCF4jHUT03VOk85Hm8 xUXunSpeU0eLM8qojI5XI3b5iiedM0tIiYwmOjzs= Received: from wslaptop.Home (unknown [IPv6:2001:8a0:6a1a:e700:b1f6:8e31:237e:e5dd]) (Authenticated sender: ist187313) by mail1.tecnico.ulisboa.pt (Postfix) with ESMTPSA id 662FE360076; Tue, 16 May 2023 09:28:36 +0100 (WEST) From: Diogo Ivo To: Diogo Ivo , thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jonathanh@nvidia.com, arnd@arndb.de, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v2 2/2] arm64: dts: tegra: smaug: add GPU node Date: Tue, 16 May 2023 09:28:29 +0100 Message-Id: <20230516082829.15326-3-diogo.ivo@tecnico.ulisboa.pt> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230516082829.15326-1-diogo.ivo@tecnico.ulisboa.pt> References: <20230516082829.15326-1-diogo.ivo@tecnico.ulisboa.pt> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Enable the GPU on the Pixel C. Signed-off-by: Diogo Ivo --- arch/arm64/boot/dts/nvidia/tegra210-smaug.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts index 929372f24339..db25f3ae8e0b 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts +++ b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts @@ -67,6 +67,11 @@ dpaux: dpaux@545c0000 { }; }; + gpu@57000000 { + vdd-supply = <&max77621_gpu>; + status = "okay"; + }; + pinmux: pinmux@700008d4 { pinctrl-names = "boot"; pinctrl-0 = <&state_boot>;