From patchwork Fri Aug 2 08:44:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Simion X-Patchwork-Id: 13751258 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 6B373C3DA49 for ; Fri, 2 Aug 2024 08:45:37 +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=ogmijxiju1xy/Zy5vN/WwNpT8fYBj05+6omZ7tPp5IA=; b=EsC2gmzi0TB7kzKC8BtSd0zAei wzNLz3arAlWRJLgbYiPL1uvZGoXK6IGEVUvabQz5MC69yAJewsOJaJiPiU7vtx4YK3ENypUz6mGbf lz6YLlcR5tNhqcZBcmrOUzIfJ4+MgI45liwKBuX+Rbo9xVgAGIB2+8HueW4Q/bgPJl5cmbiGhEdgS 6WKTJREt24uPsSCdkbLVAMxkcRntCBQdUGEHBsJV9ZOgL1nEXlgHiecYWUyBZPnN5bZyj9H8pOtq8 mBUw6jF6YTqkjWk2Yer23fID0nOhUWNWZmLgGxaQTYgWwkHyGXZee6i/b0E4aCo6CYdjRcEZ05fSF Hv+4YGSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZnue-00000008929-1NxK; Fri, 02 Aug 2024 08:45:24 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZnu8-000000088ur-3oZS for linux-arm-kernel@lists.infradead.org; Fri, 02 Aug 2024 08:44:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1722588292; x=1754124292; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=g+4DliHdgQHpi+jWQjM0rVbgeFDgc084HE5gOfkvZM0=; b=zzdJ37AeBKFJn1pygo0lThw7Ow/4PBYPaEUcqSit/3wFrxpsFU2UQVJo BgGAtY664L2Y1b/tuJFxJ9hy9pPzIdVyvZiZA0UBCG4wNeGi3SrwPUbtV NbwvkLJii9qQ3JDJ6WbhWiUlo0RGbIe9/VO7lyk8jpq77wMaMsTehPgTn 1r6DKIj+XDMqGBtK/3nzD/RRFGuopEMjXXFUCi4xz7k831StZDHBvPlrf pi4pxIQUgj2EPBvdSujh7EF4oLbDCKnCNLkQfm1kOjvmnU55C9SfnbesU uYORbNm7szvHaxtr4jeYVJwcnZXypg+xpUYSpx6g1MH4oLZYUIT0jNVip Q==; X-CSE-ConnectionGUID: XV82H4fORUiyrVSRGyjEEA== X-CSE-MsgGUID: x9OugVOdSjWVKrjR1lgdFA== X-IronPort-AV: E=Sophos;i="6.09,257,1716274800"; d="scan'208";a="30677919" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 Aug 2024 01:44:50 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) 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:44:47 -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:44:44 -0700 From: Andrei Simion To: , , , , , , , CC: , , , Andrei Simion , Mihai Sain Subject: [PATCH 1/6] regulator: mcp16502: Add supplier for regulators Date: Fri, 2 Aug 2024 11:44:28 +0300 Message-ID: <20240802084433.20958-2-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_014453_041099_4AE8B7CF X-CRM114-Status: GOOD ( 11.47 ) 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 Based on the datasheet [1] (Block Diagram) PVIN[1-4] and LVIN represent the input voltage supply for each BUCKs respective LDOs. Update the driver to align with the datasheet [1]. [1]: https://ww1.microchip.com/downloads/en/DeviceDoc/MCP16502-High-Performance-PMIC-for-SAMA5DX-SAM9X6-MPUs-Data-Sheet-DS20006275A.pdf Co-developed-by: Mihai Sain Signed-off-by: Mihai Sain Signed-off-by: Andrei Simion --- drivers/regulator/mcp16502.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/regulator/mcp16502.c b/drivers/regulator/mcp16502.c index 5de9d4fa5113..b34ae0bbba6f 100644 --- a/drivers/regulator/mcp16502.c +++ b/drivers/regulator/mcp16502.c @@ -107,9 +107,10 @@ static unsigned int mcp16502_of_map_mode(unsigned int mode) return REGULATOR_MODE_INVALID; } -#define MCP16502_REGULATOR(_name, _id, _ranges, _ops, _ramp_table) \ +#define MCP16502_REGULATOR(_name, _id, _sn, _ranges, _ops, _ramp_table) \ [_id] = { \ .name = _name, \ + .supply_name = #_sn, \ .regulators_node = "regulators", \ .id = _id, \ .ops = &(_ops), \ @@ -467,18 +468,18 @@ static const struct linear_range b234_ranges[] = { }; static const struct regulator_desc mcp16502_desc[] = { - /* MCP16502_REGULATOR(_name, _id, ranges, regulator_ops, ramp_table) */ - MCP16502_REGULATOR("VDD_IO", BUCK1, b1l12_ranges, mcp16502_buck_ops, + /* MCP16502_REGULATOR(_name, _id, _sn, _ranges, _ops, _ramp_table) */ + MCP16502_REGULATOR("VDD_IO", BUCK1, pvin1, b1l12_ranges, mcp16502_buck_ops, mcp16502_ramp_b1l12), - MCP16502_REGULATOR("VDD_DDR", BUCK2, b234_ranges, mcp16502_buck_ops, + MCP16502_REGULATOR("VDD_DDR", BUCK2, pvin2, b234_ranges, mcp16502_buck_ops, mcp16502_ramp_b234), - MCP16502_REGULATOR("VDD_CORE", BUCK3, b234_ranges, mcp16502_buck_ops, + MCP16502_REGULATOR("VDD_CORE", BUCK3, pvin3, b234_ranges, mcp16502_buck_ops, mcp16502_ramp_b234), - MCP16502_REGULATOR("VDD_OTHER", BUCK4, b234_ranges, mcp16502_buck_ops, + MCP16502_REGULATOR("VDD_OTHER", BUCK4, pvin4, b234_ranges, mcp16502_buck_ops, mcp16502_ramp_b234), - MCP16502_REGULATOR("LDO1", LDO1, b1l12_ranges, mcp16502_ldo_ops, + MCP16502_REGULATOR("LDO1", LDO1, lvin, b1l12_ranges, mcp16502_ldo_ops, mcp16502_ramp_b1l12), - MCP16502_REGULATOR("LDO2", LDO2, b1l12_ranges, mcp16502_ldo_ops, + MCP16502_REGULATOR("LDO2", LDO2, lvin, b1l12_ranges, mcp16502_ldo_ops, mcp16502_ramp_b1l12) }; From patchwork Fri Aug 2 08:44:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Simion X-Patchwork-Id: 13751262 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 27A2CC3DA4A for ; Fri, 2 Aug 2024 08:46:32 +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=7tYxqXijbkm3a2s4einXMValzrsF4W4Arem18GxA0y8=; b=wBF1CBmKkS1q85UR4lsdXhwJzG q0kAA6BaUvg8XNAtdVdqiRKe/Al3rAIQwit3mvSpj2K289doLjzgVX2YQOiiQXE8jR1WDZyZV8gDi +2nf7Di8LdJzyfPnuZBW0PQZG264VG7SkTX+gtz18TXPLzgn0Pe6uN1kNTlIZNLGS3hkym9eyaVS8 eragetZnoJ86BzMh1iljnYES8uOLEYqlhjVhuwItQSO2HIPt5bGxRtOBTsK5Cxmkijh72D77O6U/j ltyxx31zQ2P8FB5XRwBPoPjsTI41MT41rWB51gonbMCFJIX+xfQSjtYeMLzoQikPcwSwMwAJodPS2 xpzGkaUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZnva-000000089NL-3wqF; Fri, 02 Aug 2024 08:46:22 +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 1sZnun-00000008940-3CBK for linux-arm-kernel@lists.infradead.org; Fri, 02 Aug 2024 08:45:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1722588333; x=1754124333; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Q6lmEiRmr975I1TYSOtBAxJxCGpB+TnOSXNmRDZICks=; b=ethVp+8m+xc12opiewl7DQpf36zf7OTxIRvKcXZefZGZMR6mzDKfEqK8 9XkEVxgZdvYPwidrv6r2L32o5whaT/WVYhwg+BEnkQB/7cQMmtlThrw+8 Gu0GlY8R5UHNRA6t0caAAJJsxTvA4/nkth5DiDlzMAapDvYVtl7DmZXFp J4PTm7HLgAVqk6/PjrDaa9QjwO34MKhuGiE+Bni5N6GXqr0YxMxE5WYxZ InLjgnJXiznrfhKkczTsC0ADns2GmK71FsD15zvavXPf3Ga+/8BaZC592 gZo40TYQehE+2IMDQB5Lng0fIZhfQRpDtqkfnSFquoXJscfMus/6yT9gd Q==; X-CSE-ConnectionGUID: LYEUG+dsQgOZlljD5sjyvQ== X-CSE-MsgGUID: iVEbaZ1hRVub8fnsmf6FyQ== X-IronPort-AV: E=Sophos;i="6.09,257,1716274800"; d="scan'208";a="30020950" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 Aug 2024 01:45:32 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) 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:44:51 -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:44:48 -0700 From: Andrei Simion To: , , , , , , , CC: , , , Andrei Simion , Mihai Sain Subject: [PATCH 2/6] ARM: dts: microchip: at91-sama7g5ek: Add reg_5v to supply PMIC nodes Date: Fri, 2 Aug 2024 11:44:29 +0300 Message-ID: <20240802084433.20958-3-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_014533_827231_FE7F04AF X-CRM114-Status: UNSURE ( 9.03 ) 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 --- arch/arm/boot/dts/microchip/at91-sama7g5ek.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts index 20b2497657ae..f0035b093b16 100644 --- a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts +++ b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts @@ -88,6 +88,14 @@ memory@60000000 { reg = <0x60000000 0x20000000>; }; + reg_5v: regulator-5v { + compatible = "regulator-fixed"; + regulator-name = "5V_MAIN"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + sound: sound { compatible = "simple-audio-card"; simple-audio-card,name = "sama7g5ek audio"; @@ -244,6 +252,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>; @@ -264,6 +273,7 @@ regulator-state-mem { vddioddr: VDD_DDR { regulator-name = "VDD_DDR"; + pvin2-supply = <®_5v>; regulator-min-microvolt = <1350000>; regulator-max-microvolt = <1350000>; regulator-initial-mode = <2>; @@ -285,6 +295,7 @@ regulator-state-mem { vddcore: VDD_CORE { regulator-name = "VDD_CORE"; + pvin3-supply = <®_5v>; regulator-min-microvolt = <1150000>; regulator-max-microvolt = <1150000>; regulator-initial-mode = <2>; @@ -305,6 +316,7 @@ regulator-state-mem { vddcpu: VDD_OTHER { regulator-name = "VDD_OTHER"; + pvin4-supply = <®_5v>; regulator-min-microvolt = <1050000>; regulator-max-microvolt = <1250000>; regulator-initial-mode = <2>; @@ -326,6 +338,7 @@ regulator-state-mem { vldo1: LDO1 { regulator-name = "LDO1"; + lvin-supply = <®_5v>; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; @@ -342,6 +355,7 @@ regulator-state-mem { vldo2: LDO2 { regulator-name = "LDO2"; + lvin-supply = <®_5v>; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <3700000>; From patchwork Fri Aug 2 08:44:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Simion X-Patchwork-Id: 13751263 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 C83D5C3DA4A for ; Fri, 2 Aug 2024 08:47:04 +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=WAE+pwARojGwmIOppAY7CCLPrGyJ23ZcO8qtGKupD20=; b=08RJtfKM49JeLQydHaCQSq4N/v Be46GQRUBm2+mcHMQT4jHlUBAojIUI8CS0YXaCq6T+sKX0ae4R1Qz66aWdIkIHRDK+vv5ik84aZIh /JlBAzXljfN+hpzkQ6n+zgdfFfuYvgvc0Pqg1bL7U4gz7vpncMIR/MSKwmX/L4+5NZ752NZfYdFJn S6wftDMSRU3GydPVX506W5ZXJWY2TIfoMA2obLHpeGRY2qkYQbNdqtuku7lcCVJcgQwVNhlHWm1zP hI9qegCCdpBBD7Gt2PwQtqvQI26p9Chyh17IZyAtrkDAKKa79br9l9vFfeb7xY05xui3j7bg3bUly K7sLXh1A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZnw3-000000089Xn-2ceh; Fri, 02 Aug 2024 08:46:51 +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 1sZnup-00000008940-0C9S for linux-arm-kernel@lists.infradead.org; Fri, 02 Aug 2024 08:45:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1722588335; x=1754124335; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=gbJKuHhR/KahO1qpKw2thlztzGIJzCMfBEoQ+GU4n5A=; b=RF+T/9QfZLcfVceATYgJPKTqlSa1ZT+UGyToOh0mvdbFU63+ro1C+P8i /hmSOa0ffSfC1tvNvM/NtPOehuNsMK8tQN7HV9jbfpctKBYXG2lgCte4R 8+3O7XCU0P0pC5gW7rZbWhHELbiWhCGm4ASKx3432vM5DA5aeztwL11ag VAkWA3kwql3kSIPXJUBraDmu4JcS4F78yridL5tD7fQBNY/W2o0N9FQ9J iPIlmQnfbc8/inJUk6VYofJtCrOd0waUb3gJEv9UFT3CO2VvouYqZgWWb L3L0nU3NnBKAnf8YfCX9xiqZcZwsmcc+ACXUI299FLGYcdi1Vr8evF7jS g==; X-CSE-ConnectionGUID: LYEUG+dsQgOZlljD5sjyvQ== X-CSE-MsgGUID: Kd6pJT2eShWo7n3tzbH+yg== X-IronPort-AV: E=Sophos;i="6.09,257,1716274800"; d="scan'208";a="30020952" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 Aug 2024 01:45:32 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) 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:44:55 -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:44:52 -0700 From: Andrei Simion To: , , , , , , , CC: , , , Andrei Simion , Mihai Sain Subject: [PATCH 3/6] ARM: dts: microchip: at91-sama7g54_curiosity: Add reg_5v to supply PMIC nodes Date: Fri, 2 Aug 2024 11:44:30 +0300 Message-ID: <20240802084433.20958-4-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_014535_143173_0893D16E X-CRM114-Status: UNSURE ( 9.19 ) 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-sama7g54_curiosity.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts b/arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts index 009d2c832421..b1bdfc67aa6e 100644 --- a/arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts +++ b/arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts @@ -72,6 +72,14 @@ memory@60000000 { device_type = "memory"; reg = <0x60000000 0x10000000>; /* 256 MiB DDR3L-1066 16-bit */ }; + + reg_5v: regulator-5v { + compatible = "regulator-fixed"; + regulator-name = "5V_MAIN"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; }; &adc { @@ -193,6 +201,7 @@ pmic@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>; @@ -213,6 +222,7 @@ regulator-state-mem { vddioddr: VDD_DDR { regulator-name = "VDD_DDR"; + pvin2-supply = <®_5v>; regulator-min-microvolt = <1350000>; regulator-max-microvolt = <1350000>; regulator-initial-mode = <2>; @@ -234,6 +244,7 @@ regulator-state-mem { vddcore: VDD_CORE { regulator-name = "VDD_CORE"; + pvin3-supply = <®_5v>; regulator-min-microvolt = <1150000>; regulator-max-microvolt = <1150000>; regulator-initial-mode = <2>; @@ -254,6 +265,7 @@ regulator-state-mem { vddcpu: VDD_OTHER { regulator-name = "VDD_OTHER"; + pvin4-supply = <®_5v>; regulator-min-microvolt = <1050000>; regulator-max-microvolt = <1250000>; regulator-initial-mode = <2>; @@ -275,6 +287,7 @@ regulator-state-mem { vldo1: LDO1 { regulator-name = "LDO1"; + lvin-supply = <®_5v>; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; @@ -291,6 +304,7 @@ regulator-state-mem { vldo2: LDO2 { regulator-name = "LDO2"; + lvin-supply = <®_5v>; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; From patchwork Fri Aug 2 08:44:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Simion X-Patchwork-Id: 13751264 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 2A6FCC3DA4A for ; Fri, 2 Aug 2024 08:47:32 +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=hUP+9iZBo+ZbBJcnZYzHh+o28g4xx5yoAEVPeISJFmc=; b=ZF+FbSP0+F26DoSZIKcvmUDckv ZuF2yNDwz3XB7hKOVs8PUDFvP83BJ6o5GFZpg4PCjlNI3Ud9Ct3SrRaIA8cmbaohqKwe51WxbA22Y MY14JaBuvjhe499b+jGzmKR9otWplhOCV4J7Ay6KWjt+Wd5rB0VvA3lv6/XYvcqmSjXbEqB1yl/1G XAQR7gurI5kpIWJFOYViTcJrwtkC6uur+tBg5gIxWGqiu39VyE9ZdhmYNGk5C1/yeI2sQRkGtM1K9 NcNDt6UsroF1u2eqSgPuM9L1kxCoN99TBW5ZLAOFfy0l895yBhY5ofZiAWu6MSIjIUbA36bhNdaOh lFJpotEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZnwW-000000089gY-0rlS; Fri, 02 Aug 2024 08:47:20 +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 1sZnup-0000000894K-0RTm for linux-arm-kernel@lists.infradead.org; Fri, 02 Aug 2024 08:45:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1722588335; x=1754124335; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TejsSOhsOmKqusJ8lQXtEWqTMOoMoF+0PREYZbGSir4=; b=iyQcqatpiNcb+RaCmsC0tLhDu8AKyEt8sICYvCPtXiL5CFme8192OHMp jKhMGsRKVNauIl2i/mC3H9Q3yBNYdFbGJtifdFbj63VVsjNJy3JXL76dh cuLFEngyliHpebqRRElYkrNvmD09PN+2XYRjm3FbkLa96SWd7kTOs7Pjw PyuXPeOW6UJMI/4hvmCM1ZK6k6+m6bp4dAZgn7kp34KMu11oO3rrLYEx1 x20FWrJOvTgD+NwuSrMOPkJ0AGmV4TRQIGr75ZT/JYaqTBInzrhuhXiIx o5G96d9mWo3fSfPqErb812Ous/CZv4QpuOClWVFTp92RE2+0rgD6Y2/mG A==; X-CSE-ConnectionGUID: LYEUG+dsQgOZlljD5sjyvQ== X-CSE-MsgGUID: SwBcd4ZQQwGJpAocKFfWww== X-IronPort-AV: E=Sophos;i="6.09,257,1716274800"; d="scan'208";a="30020953" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 Aug 2024 01:45:32 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) 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:44:58 -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:44:55 -0700 From: Andrei Simion To: , , , , , , , CC: , , , Andrei Simion , Mihai Sain Subject: [PATCH 4/6] ARM: dts: microchip: at91-sama5d2_icp: Add reg_5v to supply PMIC nodes Date: Fri, 2 Aug 2024 11:44:31 +0300 Message-ID: <20240802084433.20958-5-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_014535_175399_515E2762 X-CRM114-Status: UNSURE ( 9.32 ) 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 --- arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts b/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts index 999adeca6f33..20ef12a321fb 100644 --- a/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts +++ b/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts @@ -78,6 +78,14 @@ led-blue { linux,default-trigger = "heartbeat"; }; }; + + reg_5v: regulator-5v { + compatible = "regulator-fixed"; + regulator-name = "VDD_MAIN_5V"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; }; &adc { @@ -196,6 +204,7 @@ mcp16502@5b { regulators { vdd_io_reg: VDD_IO { regulator-name = "VDD_IO"; + pvin1-supply = <®_5v>; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-initial-mode = <2>; @@ -215,6 +224,7 @@ regulator-state-mem { VDD_DDR { regulator-name = "VDD_DDR"; + pvin2-supply = <®_5v>; regulator-min-microvolt = <1350000>; regulator-max-microvolt = <1350000>; regulator-initial-mode = <2>; @@ -234,6 +244,7 @@ regulator-state-mem { VDD_CORE { regulator-name = "VDD_CORE"; + pvin3-supply = <®_5v>; regulator-min-microvolt = <1250000>; regulator-max-microvolt = <1250000>; regulator-initial-mode = <2>; @@ -253,6 +264,7 @@ regulator-state-mem { VDD_OTHER { regulator-name = "VDD_OTHER"; + pvin4-supply = <®_5v>; regulator-min-microvolt = <600000>; regulator-max-microvolt = <1850000>; regulator-initial-mode = <2>; @@ -271,6 +283,7 @@ regulator-state-mem { LDO1 { regulator-name = "LDO1"; + lvin-supply = <®_5v>; regulator-min-microvolt = <2500000>; regulator-max-microvolt = <2500000>; regulator-always-on; @@ -286,6 +299,7 @@ regulator-state-mem { LDO2 { regulator-name = "LDO2"; + lvin-supply = <®_5v>; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; From patchwork Fri Aug 2 08:44:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Simion X-Patchwork-Id: 13751265 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 3BAE5C3DA49 for ; Fri, 2 Aug 2024 08:48:00 +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=JqBcktNsJVG6KX3zqqDYn+301nTgDgyIfVFGqkXR2gw=; b=au7u0UHRtFIfCt8mr8JL4q8usq iErOSIZiYOIq3qMTePX+dARkC1eiOBrnGBfXv8oE1rKb1eVB7JItvyKypfsaDqW5rdFLfNu7Uaaul 51xvLMcbofiQGMcJ888KrRhgnfKm7iV5a7NidizukKojYHUNbgDj+4AQpLLDPwTvFAaIb3VYe3RO0 fyVpxHkwLzw8WXBJutw8bS9JfXndQg1CDRS5nSJ8FDT8AubShssTYo1CRyoJgfsHrU4ibzCRvOOY4 yLDdfskrSyuQBSq0VHuh7FuoYo7spqBr6BWlvevg55T/sQG5NvFre4m6tLAlj1jEtWVFPrId5LElg GhLE5ACw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZnwy-000000089lp-2fgW; Fri, 02 Aug 2024 08:47:48 +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-00000008940-1yq8 for linux-arm-kernel@lists.infradead.org; Fri, 02 Aug 2024 08:45:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1722588336; x=1754124336; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=K29k24kzKneZWnfjHSTcWkTTvB22pIg9LKv6Kq+QW2c=; b=XSS6JL8J4haN1PBBk39HJsl1ctTBCHTqOlibD85Nqy4uKy6Cwqwv0b9v mfhmQI8Q/5EVj0ZJKA7/4ft9Ae6m0XtEKYfadNiLgVyVku6g4v1Afoifv hiTXj1ACV1Djd/eUu4xZ8HVEu6H6CXihUu4X5dFPYq3sJ89eBqWk+Ka84 pcmy6keKz32VHWOLLVZHoTVh0gZIaXonarmkMDG0brKW+U+dX3mEOJQMA 2u8pVo8+nzWxRHcvqIX1k2qSA0bXgDtNYGo0VJbzzEWWARi09QEQA3HeA FgsxYxpbm8qhNPEOA6M5oqgXIE3MCOPPkQUB+wOz43BOuzjV6vPOmqcYT Q==; X-CSE-ConnectionGUID: LYEUG+dsQgOZlljD5sjyvQ== X-CSE-MsgGUID: 2QWiiGLISm28f9hw4p1Jsg== X-IronPort-AV: E=Sophos;i="6.09,257,1716274800"; d="scan'208";a="30020954" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 Aug 2024 01:45:33 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) 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:02 -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:44:59 -0700 From: Andrei Simion To: , , , , , , , CC: , , , Andrei Simion , Mihai Sain Subject: [PATCH 5/6] ARM: dts: microchip: at91-sama5d27_wlsom1: Add reg_5v to supply PMIC nodes Date: Fri, 2 Aug 2024 11:44:32 +0300 Message-ID: <20240802084433.20958-6-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_014536_568501_92EFE46F X-CRM114-Status: UNSURE ( 9.24 ) 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-sama5d27_wlsom1.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1.dtsi b/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1.dtsi index 4617805c7748..21c6e7e645fa 100644 --- a/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1.dtsi +++ b/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1.dtsi @@ -31,6 +31,14 @@ main_xtal { }; }; + reg_5v: regulator-5v { + compatible = "regulator-fixed"; + regulator-name = "VDD_MAIN"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + wifi_pwrseq: wifi_pwrseq { compatible = "mmc-pwrseq-wilc1000"; reset-gpios = <&pioA PIN_PA27 GPIO_ACTIVE_HIGH>; @@ -76,6 +84,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>; @@ -95,6 +104,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>; @@ -118,6 +128,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>; @@ -137,6 +148,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>; @@ -160,6 +172,7 @@ regulator-state-mem { LDO1 { regulator-name = "LDO1"; + lvin-supply = <®_5v>; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; @@ -175,6 +188,7 @@ regulator-state-mem { LDO2 { regulator-name = "LDO2"; + lvin-supply = <®_5v>; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; 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;