From patchwork Fri Aug 2 08:44:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Simion X-Patchwork-Id: 13751259 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 1FAB4C3DA4A for ; Fri, 2 Aug 2024 08:46:05 +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: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:In-Reply-To:References:List-Owner; bh=067Onq5FBp92X1SeBttfCEZ2s8qHArLgf7PLF4Uqft8=; b=2gLsWw2xZXkMeWcI0BHw7w3Hq/ 9G67NDYvHCmmX7ySd7tHXtKuUclpKpcC+6h15t7S5WAn2b5xRFnmGGEidUDa7CthkGqhqUqsvKcBg zzOWUtwnOjtufwx9IICgM/pna7yqDwyOZMu0M+m7Ad6xk2ddJeJb6xCUaI7nnVerHGpazhLl0eHBL YFGShUnOZ5sjujQ2lha/kEDxOeRE7UQtizwbU4XyIDdE98exxBmvsuOgM07GcUGm7FEezoO/v75C6 5lh6Eo59tIg4cm+KW6FOIQkDIkEWp7UqJCJh6utinohMevr+K9qtlmg6KiJA8o5cf1vLGimvKYPyX Yop+a2xw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZnv7-000000089Ap-0kOm; Fri, 02 Aug 2024 08:45:53 +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 1sZnuI-000000088vk-3lFu for linux-arm-kernel@lists.infradead.org; Fri, 02 Aug 2024 08:45:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1722588302; x=1754124302; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=RzA9EAC+zlXRtUH3OSMIWI1zKwAxArhQ4+AfIrzFlWk=; b=DNS5vdWG+XmvGnEpqISpeGw/XbJUE9DKkQozmGSW6I3LiRnd0xI0CBbu K222WzZ3ybVuoPnYerR6INtFachBmsb1caZo+qdk5ra09NdZAPo58ZT2R Qd2Azb35eaqu41/+FCwftXpptZwozDKgr+y+H7Pm44yvG0sLnlWa/NfO1 8ugf1dBH//lunJLpuTiTh/eNYV/BQWHaKdNq3EWpRmRs+iA4bub0cCG4T 4hbqyXuAzrR2vLOshD5ToEBZCWmZ7d1GNBuMsBBF0u0lbz/qDSuWIYLNT Sfcp4skbhXPGsX6JC2VpCoXXiYoXTbue4pVqCRH1jeif8A3x2duljwWsS w==; X-CSE-ConnectionGUID: bDN14xVARKiI6VnRY/1j6Q== X-CSE-MsgGUID: EYLwDr7YRqi2SpYb9oVYRQ== X-IronPort-AV: E=Sophos;i="6.09,257,1716274800"; d="scan'208";a="30677931" 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:45:01 -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:44:44 -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:41 -0700 From: Andrei Simion To: , , , , , , , CC: , , , Andrei Simion Subject: [PATCH 0/6] Add input voltage suppliers for PMIC MCP16502 regulators Date: Fri, 2 Aug 2024 11:44:27 +0300 Message-ID: <20240802084433.20958-1-andrei.simion@microchip.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240802_014503_417862_D3AE76B7 X-CRM114-Status: UNSURE ( 8.37 ) 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 In this series of patches, support for the *-supply property [1] is added (correlated with supply_name [2]) from the core regulator. Link [1]: https://github.com/torvalds/linux/blob/master/drivers/regulator/core.c#L471 Link [2]: https://github.com/torvalds/linux/blob/master/drivers/regulator/core.c#L2064 I modified the mcp16502.c driver and the dts that use this PMIC. We added these improvements to provide a complete description of the board power scheme. Snippet (as an example) from /sys/kernel/debug/regulator/regulator_summary (for at91-sama7g5ek): # cat regulator_summary regulator use open bypass opmode voltage current min max --------------------------------------------------------------------------------------- regulator-dummy 1 0 0 unknown 0mV 0mA 0mV 0mV 5V_MAIN 6 6 0 unknown 5000mV 0mA 5000mV 5000mV VDD_IO 5 4 0 normal 3300mV 0mA 3300mV 3300mV e1208000.mmc-vqmmc 1 0mA 0mV 0mV e1208000.mmc-vmmc 1 0mA 3300mV 3400mV e1204000.mmc-vmmc 1 0mA 3300mV 3400mV VDDOUT25 3 2 0 unknown 2500mV 0mA 2500mV 2500mV e1000000.adc-vref 1 0mA 0mV 0mV e1000000.adc-vddana 1 0mA 0mV 0mV VDD_DDR 1 0 0 normal 1350mV 0mA 1350mV 1350mV VDD_CORE 1 0 0 normal 1150mV 0mA 1150mV 1150mV VDD_OTHER 2 1 0 normal 1050mV 0mA 1050mV 1250mV cpu0-cpu 1 0mA 1050mV 1225mV LDO1 2 1 0 unknown 1800mV 0mA 1800mV 1800mV e1204000.mmc-vqmmc 1 0mA 0mV 0mV LDO2 ------------------------------------------------------------------------------------------- Andrei Simion (6): regulator: mcp16502: Add supplier for regulators ARM: dts: microchip: at91-sama7g5ek: Add reg_5v to supply PMIC nodes ARM: dts: microchip: at91-sama7g54_curiosity: Add reg_5v to supply PMIC nodes ARM: dts: microchip: at91-sama5d2_icp: Add reg_5v to supply PMIC nodes ARM: dts: microchip: at91-sama5d27_wlsom1: Add reg_5v to supply PMIC nodes ARM: dts: microchip: sama5d29_curiosity: Add reg_5v to supply PMIC nodes .../dts/microchip/at91-sama5d27_wlsom1.dtsi | 14 ++++++++++++++ .../dts/microchip/at91-sama5d29_curiosity.dts | 14 ++++++++++++++ .../arm/boot/dts/microchip/at91-sama5d2_icp.dts | 14 ++++++++++++++ .../dts/microchip/at91-sama7g54_curiosity.dts | 14 ++++++++++++++ arch/arm/boot/dts/microchip/at91-sama7g5ek.dts | 14 ++++++++++++++ drivers/regulator/mcp16502.c | 17 +++++++++-------- 6 files changed, 79 insertions(+), 8 deletions(-) base-commit: f524a5e4dfb75b277c9a5ad819ca5f035f490f14