From patchwork Mon Aug 12 13:52:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Simion X-Patchwork-Id: 13760634 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 3F6C0C3DA7F for ; Mon, 12 Aug 2024 13:53:48 +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=Xq+KfEC8MUM63O26mzi//9ACPsD7R+fTTw6127ahgMw=; b=wFOa54JumqRI5+dq+6kQsAuaIP xiZR49i+I4X/2WUHHGFh4iCNUoxoKQY88emYrEfebhWVqyRv4jHQz4xCfLKuEgzfIUPRS5g+fIZpV Kcp+ENJawX4qvSkatIPhtc6nidUH/LE1sl/Gd4Y+YIU16kSEt5JoDQt3Z6EHrpunErcWlyEigT8AS 2yGWTzosy9V5y2lXxc9WHqdOEgvFzGOTiz8RVCrfKuD6vMPUc8uRhVa/e9Wv6NsJpe+zWh8ieLomE y6pTqRaHNYQJrLFVe1nGhqCAM6b3VDDM2DoVaw2pkLE5Gg72OBlImdQ/PMSLb4PfeVeh6G7DzEp4l DPY6AXaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdVUO-00000000Ubn-2a4b; Mon, 12 Aug 2024 13:53:36 +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 1sdVTl-00000000UPG-1Pyy for linux-arm-kernel@lists.infradead.org; Mon, 12 Aug 2024 13:52:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1723470777; x=1755006777; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=HX8L5Xz5+6AFfuzNrgZvttKdITdkSvfTq8Y7KblzC1Q=; b=CBMeUKCIdf1oD/f7asW5u+rtKpl666RxrRb09y+yZ5bYgF+sA1EtCw6R 41Q19DEPCXkwoEK7Ca7qGMGLJazNCVEvoaXiZXxe9u9eCig+Mq/svYuhT 3qawCi/I+ePPAkzFWHvLjNelmOAjen0IdM3bUwITTeSk5B9D2Pi/2ZIF2 81ZHelPV8qo6ntmFl0UAjP93MkNRgzhrPz+RvibzlIo7/Ng6WuKSQRSt+ jhgx8qXS4RERow7JT/7rFjOzfs0+7F2qTjj3louGWBBy/X+Ak9KxHoGKq FfxIh/8IheojvRGm3oUy6KbU0GG5I4ZKB6Nr/lJJkf409+kiviZ9FJQDB w==; X-CSE-ConnectionGUID: PBrTB/MiTDi13LaLj3S1lQ== X-CSE-MsgGUID: cNWintu3SVyu3OAkIhnpKQ== X-IronPort-AV: E=Sophos;i="6.09,283,1716274800"; d="scan'208";a="33289887" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 12 Aug 2024 06:52:55 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 12 Aug 2024 06:52:37 -0700 Received: from ROB-ULT-M76677.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Mon, 12 Aug 2024 06:52:35 -0700 From: Andrei Simion To: , , , , , , , CC: , , , Andrei Simion Subject: [PATCH v2 0/7] Add input voltage suppliers for PMIC MCP16502 regulators Date: Mon, 12 Aug 2024 16:52:24 +0300 Message-ID: <20240812135231.43744-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-20240812_065257_519868_9C8D7598 X-CRM114-Status: UNSURE ( 9.73 ) 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 ------------------------------------------------------------------------------------------- Changelog: v1 -> v2: - drop (lvin|pvin[1-4])-supply from each regulators sub-node - add voltage input supply documentation in the yaml schema - add lvin-supply, pvin[1-4]-supply to PMIC node Andrei Simion (7): regulator: mcp16502: Add supplier for regulators regulator: dt-bindings: microchip,mcp16502: Add voltage input supply documentation 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 .../regulator/microchip,mcp16502.yaml | 20 +++++++++++++++++++ .../dts/microchip/at91-sama5d27_wlsom1.dtsi | 13 ++++++++++++ .../dts/microchip/at91-sama5d29_curiosity.dts | 13 ++++++++++++ .../boot/dts/microchip/at91-sama5d2_icp.dts | 13 ++++++++++++ .../dts/microchip/at91-sama7g54_curiosity.dts | 13 ++++++++++++ .../arm/boot/dts/microchip/at91-sama7g5ek.dts | 13 ++++++++++++ drivers/regulator/mcp16502.c | 17 ++++++++-------- 7 files changed, 94 insertions(+), 8 deletions(-) base-commit: 9e6869691724b12e1f43655eeedc35fade38120c