From patchwork Fri Aug 2 08:44:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Simion X-Patchwork-Id: 13751266 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 81D36C3DA49 for ; Fri, 2 Aug 2024 08:48:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UuF5rJeldOIbjJZbpHnks2NKYVoLcEMT9le1UKb8h/M=; b=jOobgNJ0dI43hbtdFYDABeFCzW cLprgDKBRet0cBreYmCrYq3Ho/ljs4SmB3uQs3iG+Ap0FE1lYzYwUVKAUmf68/360pmeoS2EiTjIh EHGap99CFHtEEBIRviacIXyIMMxeE5gmHz4+ylN3t2a1u/STYFu5Ulkwc3ZaBD4hDY1Y56ao4I7Yv UhOO8p7kBODwNaM6oJkzJGZ9nWNtLb6Vee3Q1v+VycjzqkpbeADwkJQ8YygJ4wxfUs1JS0AdPqGVL uO+Gbm2i+x7Km++layag5HPGDZ3PF5zKyx56xGAW26DU4/aosmqerD2tYUhlSQXFUKbn0vJo1AelL 9PxRp3Iw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZnxQ-000000089r1-06Wo; Fri, 02 Aug 2024 08:48:16 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZnuq-0000000895D-3kAL for linux-arm-kernel@lists.infradead.org; Fri, 02 Aug 2024 08:45:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1722588337; x=1754124337; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=NkzjrWmY9GxHW4qybd1qDhh4ZKci0hr+K7IaFyByWAk=; b=aet3Pb+bDYEFlx1iui96twIFO3KBJW7LrBk5W8ZzNhdTaGXDKQxDdrFA T0WGVyLeSNf4+RW94MXwkIQKm98Q83aKbu85stwlxkEoEsISHJ5mw5jia bAUzAynyuew+AF4P/2Sx/b8GkXr6OIwsWiGVuzaodQzqF6iHxaUj/nTO2 FIZ3+pToW71OKx/r55MOqEz8BO/diHlIDUQSU0DTvbx+boeNt7rslS2f2 AXpvQrxpAGonZofsjb/ATQECK+dtO5xVr2dkiiFCw40cE4tGGKF6DRdGP sCmdZC4hSGXzdlCZcWUoCQ+FKj0dVW7kSArpZH6MWSZ3ja/1MybbNAcE6 Q==; X-CSE-ConnectionGUID: W9KqdMcXRKuEFdpNV+qlRg== X-CSE-MsgGUID: Yv6uE7HJQBy2b86uGBUtOA== X-IronPort-AV: E=Sophos;i="6.09,257,1716274800"; d="scan'208";a="260922556" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 Aug 2024 01:45:37 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 2 Aug 2024 01:45:05 -0700 Received: from ROB-ULT-M76677.microchip.com (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Fri, 2 Aug 2024 01:45:02 -0700 From: Andrei Simion To: , , , , , , , CC: , , , Andrei Simion , Mihai Sain Subject: [PATCH 6/6] ARM: dts: microchip: sama5d29_curiosity: Add reg_5v to supply PMIC nodes Date: Fri, 2 Aug 2024 11:44:33 +0300 Message-ID: <20240802084433.20958-7-andrei.simion@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240802084433.20958-1-andrei.simion@microchip.com> References: <20240802084433.20958-1-andrei.simion@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240802_014537_000235_B235B90B X-CRM114-Status: UNSURE ( 9.23 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Align with the datasheet by adding regulator-5v which supplies each node from the regulator using phandle to regulator-5v through pvin[1-4]-supply and lvin-supply. Co-developed-by: Mihai Sain Signed-off-by: Mihai Sain Signed-off-by: Andrei Simion --- .../boot/dts/microchip/at91-sama5d29_curiosity.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts b/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts index 6b02b7bcfd49..a9d409ad7726 100644 --- a/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts +++ b/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts @@ -84,6 +84,14 @@ memory@20000000 { device_type = "memory"; reg = <0x20000000 0x20000000>; }; + + reg_5v: regulator-5v { + compatible = "regulator-fixed"; + regulator-name = "5V_MAIN"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; }; &adc { @@ -150,6 +158,7 @@ mcp16502@5b { regulators { vdd_3v3: VDD_IO { regulator-name = "VDD_IO"; + pvin1-supply = <®_5v>; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-initial-mode = <2>; @@ -169,6 +178,7 @@ regulator-state-mem { vddio_ddr: VDD_DDR { regulator-name = "VDD_DDR"; + pvin2-supply = <®_5v>; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-initial-mode = <2>; @@ -192,6 +202,7 @@ regulator-state-mem { vdd_core: VDD_CORE { regulator-name = "VDD_CORE"; + pvin3-supply = <®_5v>; regulator-min-microvolt = <1250000>; regulator-max-microvolt = <1250000>; regulator-initial-mode = <2>; @@ -211,6 +222,7 @@ regulator-state-mem { vdd_ddr: VDD_OTHER { regulator-name = "VDD_OTHER"; + pvin4-supply = <®_5v>; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = <2>; @@ -234,6 +246,7 @@ regulator-state-mem { LDO1 { regulator-name = "LDO1"; + lvin-supply = <®_5v>; regulator-min-microvolt = <2500000>; regulator-max-microvolt = <2500000>; regulator-always-on; @@ -249,6 +262,7 @@ regulator-state-mem { LDO2 { regulator-name = "LDO2"; + lvin-supply = <®_5v>; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on;