From patchwork Fri Feb 23 16:21:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 205502 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp692064dyb; Fri, 23 Feb 2024 08:23:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUGyK/Ks/hgFiK/QK+V5YiFX/f42P1dpx33HDwSpUr3xW4cewpYNasiZqbsUI1ceumMJG/quEZW7B/R4QSEtOuWwHMSyw== X-Google-Smtp-Source: AGHT+IF+RZjEJ+h75pEYo1KXbj/4KDYCuDbcuPz2QIiiVHJXVRlCm7cDR/dDv7gAIQdQixshmFmU X-Received: by 2002:a17:906:a98:b0:a3e:5c67:2883 with SMTP id y24-20020a1709060a9800b00a3e5c672883mr273529ejf.22.1708705423167; Fri, 23 Feb 2024 08:23:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708705423; cv=pass; d=google.com; s=arc-20160816; b=mNgHM3FtpbhIXVhzbVdBDDJBbmTwBM5blpFz8QDif3ubCKMlaZStYLpzjndds9HXX0 HE/vyStE3X8M3VYrz0DogYRknY/VV+f+r4J4q2rY3kOKHshKvqupmxKuDrccsWyy9W4B 0Tf1fKApjA+ZtDice1XcNzqPEvl4cI+uq2OxC4NS4JplS/+wDzJ68S7ILAGrt6ueejXW GCdCdywGIWJe2qnw0JVASb9YxU/KCdQE5t+ODZ0CXeUCH3mDL5v5+SJ0rVhQtpS4yFgA Tp6N0wtuugVmuuqjnjS9iynfnil6X+M7q2p7hjymYpmQErJit0sPWgCDPMJf6Nle/OQZ MdTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=F4SpMbkQ5H/y44duo/iwzf025e8d5Wij1aH3z8YY/W4=; fh=6ukZQ6ZjJs6juvFWIJbF0d70thoDQs1Z7OSv/8Dh7jI=; b=aq+uj/i/O7MyNVJjgY/8U1HR5+5+M2Mllz5xvKlo7f57mg48K2/kDU9b5vr7G2Gdee Wei+JlyMnIJAQI8PJMyMz2Dkz9p1iMbtwtC9ivHtrhl7Wu4Qkh1FvW3Wat818k7cAR7l CYC44InWIbBVgLFkdO2z8/KzP8q5B5jvF6L6g1RAR8o/8fDeDv/XnFZWcFeFmAAuSa2a Vv+5vwSxX0TO9jyNUwYezyGsgFxR3cwy3tg8Yymqu5Fgdz95LkLxrc/eYPzVFOTr9lkT pXo1C7zAdCA8kS8L5CrXq5D+nQ8oh+Zwqq0igVSkyOtPnJk5XWf+t/OcodZ2QE7rH5t9 wodg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CaLfWowF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78714-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78714-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id nb14-20020a1709071c8e00b00a3ec2dd8e25si4243102ejc.187.2024.02.23.08.23.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 08:23:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78714-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CaLfWowF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78714-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78714-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C2CD31F21E10 for ; Fri, 23 Feb 2024 16:23:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE64B12B155; Fri, 23 Feb 2024 16:21:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CaLfWowF" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54E90128830; Fri, 23 Feb 2024 16:21:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705299; cv=none; b=PA+bTBeqd1nW5uwO1kyFjEmYj3y+c2LtX3n7GMMFbOE3uT52sbM8C5+3f8LSu5aGUoMArdG/ecDEIjpphPWgvOjDANMN53Jr76CerCDYaaTAh2799XdF9ai9ldGpMPA4a51w9HHxgz4MtglFN4cyZ/j3ZpEmaAssDmulHpuQB5A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705299; c=relaxed/simple; bh=e35n+V+KJ6GOR5w3FZqinp9ivKeGJSYSJSqC9t8Lvbk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FBBC0UmFpGpKiIp1jx9WUFL/gKkTx+JGTKRRUXZaNXoDcaS8e5ij6iEoT0IPQgnedCrszicqMJKKEdXBNhZfmQ8/kgbP14ffOFGIpn8ObaEF4l4p//k2kEJdDVDgFDrVUlud/hqoxQjtAM/6XBiISkN/9IhBkPvo1TztNynDTOM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CaLfWowF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4D52C433C7; Fri, 23 Feb 2024 16:21:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708705298; bh=e35n+V+KJ6GOR5w3FZqinp9ivKeGJSYSJSqC9t8Lvbk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CaLfWowFUAZvfg7KCh0JXisHPeSYqM338HrkS/XYrcIY13yKcumLHFAfQKBVQsnB2 YPFKTRgIgWHlu6eq5OFROubL95AnmGfyu5Hb6B78a66rf+iTP4p2CJl2XuNMvUqSrj Nvd09NUwaRyqKBhHdkIAzevtwLNlpDObHLAAR/zISzGvC4v6gJr+J2plrob+qBgxyj KU7HcZehOV1EaNm0ylEiFRYV6conFlj5EoF0EnOfvj5zrvDLud/lqulqGuv4PYU6tY ZP/sd4PBvK4WjiyKTnOIq/2y8f2wTz8NaMvPnjNHj493GVG7gJN5jLpx0bW5rjuQrG khkUHdC0yHrag== From: Conor Dooley To: linux@roeck-us.net Cc: conor@kernel.org, Conor Dooley , Jean Delvare , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Zev Weiss , Patrick Rudolph , Peter Yin , Alexander Stein , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/5] dt-bindings: hwmon/pmbus: ti,lm25066: document regulators Date: Fri, 23 Feb 2024 16:21:05 +0000 Message-ID: <20240223-tingling-mutt-dd55dd87ff5e@spud> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240223-moonrise-feminist-de59b9e1b3ba@spud> References: <20240223-moonrise-feminist-de59b9e1b3ba@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1342; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=joH1ld+xUmYlj/ECTPEZz+fzAg0PtsSN+LgfoDkIwW0=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDKk3jn7nWd7eUn3owuY+e62Kdzs6XDeGFlgv7fjd/JRl2 QMBwXvWHaUsDGIcDLJiiiyJt/tapNb/cdnh3PMWZg4rE8gQBi5OAZiIliYjw+fgLx1Pbl/g+/hp iZ55w3L3GJXmVZH3HH1qvTamVt68fo/hn8l3qZ6exAnP7pzveydiz9z4bqVtqMNqvUo+R0YjvWW 2/AA= X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791707497737125010 X-GMAIL-MSGID: 1791707497737125010 From: Conor Dooley All devices documented in the lm25066 binding are intended for use with a regulator, be that for purely monitoring purposes (lm25056) or, for the other devices, as the controller of that regulator. The binding does not currently allow regulator child nodes, so add one. Each of these devices interacts with only a single regulator and documentation refers to it as "Vout", hence the choice of child node name. Acked-by: Zev Weiss Signed-off-by: Conor Dooley Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml index da8292bc32f5..4373e9c86e54 100644 --- a/Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml +++ b/Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml @@ -34,6 +34,18 @@ properties: Shunt (sense) resistor value in micro-Ohms default: 1000 + regulators: + type: object + + properties: + vout: + $ref: /schemas/regulator/regulator.yaml# + type: object + + unevaluatedProperties: false + + additionalProperties: false + required: - compatible - reg From patchwork Fri Feb 23 16:21:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 205503 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp692185dyb; Fri, 23 Feb 2024 08:23:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVk842DbZtkcO9amcPsvEpd7TmqfY4B/BAz4Rv4PdIj8b7kKGYCM466/97D+S+k9FIt+LgF/AVjJz0NEeEoOtZSdoTwCA== X-Google-Smtp-Source: AGHT+IGzqqIUPbmb4zsb97VhrW7XZ9dhlIeB49nMNqU/oTOeRXuDTGYL4972JferPsSp2yIqhB3g X-Received: by 2002:a05:6122:4e8f:b0:4c8:df97:139d with SMTP id gf15-20020a0561224e8f00b004c8df97139dmr561849vkb.2.1708705438117; Fri, 23 Feb 2024 08:23:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708705438; cv=pass; d=google.com; s=arc-20160816; b=Il9b8O2N0RO1vrXz+qars+Ow31ArR84qzOhESFA71WOucJmUo6lyT0aM3aPoIeMwyT 1vBPax84TRcjjSqh7j5WrRPzDPbc60PriUb42Tp8dC7qPFCpjlr2DvoEWPpbj7bTgnKJ DXUf/vFvlTylTkvl78bWB/DfP1OJh808GkXycCX3ke5MtFCzshk6WLnhnrC4kP1k/hFU Gumfux2C7inhZDBSxqv4Zyry9jn27yMbX3oOFVZEKw7oEt3EIb9DGefuV7zCJSr1tNHj 6s8clULAktwy1Ta/f16RtkXW/t1vY3AfepIqfIA6toR4HfsBhsn58+2QIOD4HBYcLezc HQAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=DTx9YLYcuon20QoWcgr9C9uUxgtvkeA2itbkuTSyba4=; fh=6ukZQ6ZjJs6juvFWIJbF0d70thoDQs1Z7OSv/8Dh7jI=; b=wQRaEzfSIx5r+MwaY5YmkQN1GcVSNupq6MuowScIn5i0fHMDqtWhGkBVtLlI+rCknL xGTPmBBpqL5P5A2/s2t/VAzOvaOvTxpRnbW/NQ/jXJMkU0IvowDvYNjxvViHYPNF6iM7 bxUU3cPAyw+W7/AtXl8JDnD/FNeJ1PLdfkhY9GRSpG56ptiOtNiEZ2QoU6anz/9xKyYM NCB0L/4owtIGECAX6SLEVVA2alz2Lpr/Nb0ilOLdVbKfj4SxnOeOSsDLR5XWUwv8uG4g DU2HP/fCP9r3UKFsie9sMKK9WBjoiNRm8KgJEje9e8LOLvkwRn4bnriPl8XziswI7yuz w5ww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g5YuVDCL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78715-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78715-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j32-20020a056122092000b004c880ce9caasi2321720vka.47.2024.02.23.08.23.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 08:23:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78715-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g5YuVDCL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78715-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78715-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B22201C24B60 for ; Fri, 23 Feb 2024 16:23:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB12712BF0E; Fri, 23 Feb 2024 16:21:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="g5YuVDCL" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B29B12CD90; Fri, 23 Feb 2024 16:21:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705302; cv=none; b=GxXKLPe5OnkVr4tR/Q2KUuU617tO7PQ2SJtmvV/ebdibTPpm+YMhXExnHcy0CSK5/FPkJlzFDsITsPlgrhZBC8et6ei8t+GcJg+sqhATWaDDG056Txfw+CHtAhVfOugyX7ulKV/8yYN1lgHOhDdPkmuUZG/Kdk8dWv25CQHFIeM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705302; c=relaxed/simple; bh=0X7Yo77IwoX+OlGIjRRgP1KpwS96thIJDoZvlw0AoCs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PFOSls9jx7TTXZGcOAmacDPq4QC3rFRqTHr0xc4a5LKivSzD4yIbOt0yHJKGsF2sWGtXxLmurWRttOmWRwaEnhMTXPrY2B0wYUZxEiQaElptcXvdgjZgwbd3XkvUBd5covaYxX5N1r/KzdSdYhhoo3147aEVvPNXIm030o71x5A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=g5YuVDCL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AFBAC43390; Fri, 23 Feb 2024 16:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708705302; bh=0X7Yo77IwoX+OlGIjRRgP1KpwS96thIJDoZvlw0AoCs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g5YuVDCLN/T/KWUpCn5FpVgVR14S+/1nnajs9jAVZ9CUpLRBrXklv+SLFZFH4cX1r ACYjSrcyLQm3V2GPbiaKC9uW3y47pStQS5ssywWEVZqoXiUIsyW8jWRuE51E0M0Izf SrsemgXcHSokFakkV6kG4a9GiQ+VexBsuCCq4Ehx4swq+POZ2jNWb5Q5TtbR0Fh4d7 egmLQkNjCUcOPIYjVTfzXpTwNctKfwLQeFeLKPeRdhEjS8XusR+093QMUXAzLF79ml 8Isxt9eYebwzizrwHrQjpQPSPrSrpOSvCTKNtwjTUx/oO/gta/2XJ5lCXCJ/5YJhSj HjUWNhcLR6feQ== From: Conor Dooley To: linux@roeck-us.net Cc: conor@kernel.org, Conor Dooley , Jean Delvare , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Zev Weiss , Patrick Rudolph , Peter Yin , Alexander Stein , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/5] regulator: dt-bindings: promote infineon buck converters to their own binding Date: Fri, 23 Feb 2024 16:21:06 +0000 Message-ID: <20240223-blabber-obnoxious-353e519541a6@spud> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240223-moonrise-feminist-de59b9e1b3ba@spud> References: <20240223-moonrise-feminist-de59b9e1b3ba@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2647; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=u1pFfi4y8oia/3MILbtpYBE5pLdSu5ZPbthI3AYMSvI=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDKk3jv5YdUj93sezWrMyVONvtd/51rnmYaPx0o25tQ1xm W7Cwe6cHaUsDGIcDLJiiiyJt/tapNb/cdnh3PMWZg4rE8gQBi5OAZjIgwJGhtkaCfmGmwJ5zDad nvdj0tIDS1W23j/1OnPr9m/JL+dFbzRk+J9yY7/blLcGCfcc3v08ervovfCsuo4Hx0sEGsXE5ib +9GUEAA== X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791707513056114709 X-GMAIL-MSGID: 1791707513056114709 From: Conor Dooley These devices are regulators may need to make use of the common regulator properties, but these are not permitted while only documented in trivial-devices.yaml Signed-off-by: Conor Dooley Reviewed-by: Krzysztof Kozlowski Reviewed-by: Mark Brown --- .../bindings/regulator/infineon,ir38060.yaml | 46 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 8 ---- 2 files changed, 46 insertions(+), 8 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/infineon,ir38060.yaml diff --git a/Documentation/devicetree/bindings/regulator/infineon,ir38060.yaml b/Documentation/devicetree/bindings/regulator/infineon,ir38060.yaml new file mode 100644 index 000000000000..bb0114f7e13f --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/infineon,ir38060.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/infineon,ir38060.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Infineon Buck Regulators with PMBUS interfaces + +maintainers: + - Not Me. + +allOf: + - $ref: regulator.yaml# + +properties: + compatible: + enum: + - infineon,ir38060 + - infineon,ir38064 + - infineon,ir38164 + - infineon,ir38263 + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + regulator@34 { + compatible = "infineon,ir38060"; + reg = <0x34>; + + regulator-min-microvolt = <437500>; + regulator-max-microvolt = <1387500>; + }; + }; + diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 9cdd5a534120..e07be7bf8395 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -130,14 +130,6 @@ properties: - infineon,dps310 # Infineon IR36021 digital POL buck controller - infineon,ir36021 - # Infineon IR38060 Voltage Regulator - - infineon,ir38060 - # Infineon IR38064 Voltage Regulator - - infineon,ir38064 - # Infineon IR38164 Voltage Regulator - - infineon,ir38164 - # Infineon IR38263 Voltage Regulator - - infineon,ir38263 # Infineon IRPS5401 Voltage Regulator (PMIC) - infineon,irps5401 # Infineon TLV493D-A1B6 I2C 3D Magnetic Sensor From patchwork Fri Feb 23 16:21:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 205504 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp692332dyb; Fri, 23 Feb 2024 08:24:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU5KzWOUEesVZOR7SFtR2XOI9WSuVr16Hl4txSoaW28VTqLA/AiwITYzqS7XNh6MdetZxfa1MlebP7/aMyg9JmdhAhBaw== X-Google-Smtp-Source: AGHT+IEHlhTrQCqzY1ahqiGuJcbmqJKVh6Kysl6CndVGVY4a5r4QTkbq8xE+Qg+DxdVta5a8VV/t X-Received: by 2002:a17:906:6cb:b0:a3e:45c6:9f9d with SMTP id v11-20020a17090606cb00b00a3e45c69f9dmr197659ejb.6.1708705454245; Fri, 23 Feb 2024 08:24:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708705454; cv=pass; d=google.com; s=arc-20160816; b=tmL99z/wXw6xeYinDVyeIhKr6LyBnwiKvS5dig1fnDJMZUyNzj268Yu/L9m9HIKf4G RgaekTXU12dT13OdHUefd2Aef3cu6rR/TKR+Jkxums5dS9ai0mlrBhYwW/jELulYnpTA MpuVbj4jD2MTerCnP7MK8johKRfFC+5WxOV0rwcopnzK1nC/ptAM768uDoRJ/UjyAf2p r4TrVfeuoSshrlPayQ04Fank5O6n7kn9szJqDRN4M5RFqzQbUJDbsRwr7rbRebIdcHeS 98SopnaXkC1wams5nYdmuSLp2jzwIW6VChC5x2j/NI8J60MHr0YmvcZqRbTQ5G466fKi 8LCw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=2sfy43RC9DSZ/YVGJtLndC1rVoZDDQ7IWLB8myJoMUs=; fh=x7BZgx5LKkWFLAFoe9p/O54YK0XTo1QETE/K7fPNxJ0=; b=KJuj5DuKQrTlsql78n+T3bZ9ZsgqcwbeGtIRgf0s/uwZZVPcRc04nzu7dYKCy7kniF gv9hMeuClQqi/fBQhZC0tnVFTEHcBV6hSA+1lV6mR3hMwPOSCPuDTt/Zj8Aj7yq23pRL lj3SuxOFq8lSxt9UPVokRo/Ipa9lSBC7Ld7lw5lPN9I2uRGDWph72D2rqZcd5P5ISyKL jnp65lJTZAYnBwFQByjQMsyOWRMW028/VzsOsnIeAezz/AH2LCc/giWaWwwzrHuOI+EV UBzZQr8wRThY4YTJLUdDyueGcBUU6X90KvdHG1G9HJamSlC+tMUq22xv6TM+1NRuV9sO c4Ug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nEGjQbLT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78716-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78716-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id kv8-20020a17090778c800b00a3fb14ee844si902885ejc.682.2024.02.23.08.24.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 08:24:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78716-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nEGjQbLT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78716-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78716-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D3F741F232DA for ; Fri, 23 Feb 2024 16:24:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A5A3130E33; Fri, 23 Feb 2024 16:21:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nEGjQbLT" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D2F612E1FC; Fri, 23 Feb 2024 16:21:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705306; cv=none; b=BMx5jWSx1sq/gHyEyCQ9joUeX2CkunDlJVyIzgxA5575C7DVKMk3ne7+JRbHj2Oy7HYXEY4IpjzBTrkT7LuBT/1jSpbaRA4fXuZ1dMfsgEZXuxZJ+ZisHpy0BAb3TJN70NOjfoaAv56RNPmntbrJPFIkgdc02+Nas4hgiLSqiVU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705306; c=relaxed/simple; bh=xpFapP+t1GY5qR3wsOV3Nl7p1ssqEBrzSJNPZBMtc1s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cFI/fH2J9L6lrHvDw4evAMNEStBs44EjjdJi5yEbVnVozLJWzzF0h6qIglo28+V4ozpLnnS0QP599ENMczuOr3XDGgkO+SWQn0tIGYOFqkHSgmAPb+Jp7rN+62V5UFLPIHQLgLE8YJFXqSsJTIgFrVCbZbqcHX0voChg2qj752w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nEGjQbLT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5718C433C7; Fri, 23 Feb 2024 16:21:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708705306; bh=xpFapP+t1GY5qR3wsOV3Nl7p1ssqEBrzSJNPZBMtc1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nEGjQbLTNrvj5xvemmvu7cU++u5DUAhThDVhFtJAbvNhZh52GS0dWxyDGbNRWF87n HUEZZ0CYQelFRrFeco9tC0pUYsbfvHrGeINupOZ4RbLwjB64cafgQK80qN2WNFRiy+ LtjVnEKE08bclZyqYV7k/tE/myoP8NSF+grve0Chg0R99hyUUO+U56UQcD06eOVKeP oD9XQ4jpIrzi/VwbkEiGpJ/zCAarWralV7pF9zv8pnmG9wj7zpt9RMx+3s1vt2OOHr DjAB5xcgFcZIQ3BtK0QCN5/YZzIDwmRphV+zNXl0t+z44W1t58QtHDnHMyQipchf2q WWWXnG41ER2rw== From: Conor Dooley To: linux@roeck-us.net Cc: conor@kernel.org, Conor Dooley , Jean Delvare , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Zev Weiss , Patrick Rudolph , Peter Yin , Alexander Stein , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Naresh Solanki Subject: [PATCH v2 3/5] hwmon: (pmbus/tda38640) Use PMBUS_REGULATOR_ONE to declare regulator Date: Fri, 23 Feb 2024 16:21:07 +0000 Message-ID: <20240223-catnap-companion-c42fdd8ad110@spud> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240223-moonrise-feminist-de59b9e1b3ba@spud> References: <20240223-moonrise-feminist-de59b9e1b3ba@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=927; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=1ZtfL4H/Opueo+tkLhUryZdEDy0uFp+4wOJDc4cuTnE=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDKk3jv6QmRr4IpfD1GNPlhl7Sechbpbey7VHl657v/pEP esyjUWNHaUsDGIcDLJiiiyJt/tapNb/cdnh3PMWZg4rE8gQBi5OAZjI0XqG//6vT5qbeOaEFHX0 H2d9cPjxYteDcba/Gi7dfzh33x7HgAqG/z77DgnPX/j+RRTXP/VFv3h7ui5nr7+8Nmb9S2ET/qv +h9kB X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791707530445824960 X-GMAIL-MSGID: 1791707530445824960 From: Guenter Roeck If a chip only provides a single regulator, it should be named 'vout' and not 'vout0'. Declare regulator using PMBUS_REGULATOR_ONE() to make that happen. Cc: Conor Dooley Cc: Naresh Solanki Cc: Patrick Rudolph Signed-off-by: Guenter Roeck Signed-off-by: Conor Dooley --- drivers/hwmon/pmbus/tda38640.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/tda38640.c b/drivers/hwmon/pmbus/tda38640.c index 09cd114b1736..c31889a036f0 100644 --- a/drivers/hwmon/pmbus/tda38640.c +++ b/drivers/hwmon/pmbus/tda38640.c @@ -15,7 +15,7 @@ #include "pmbus.h" static const struct regulator_desc __maybe_unused tda38640_reg_desc[] = { - PMBUS_REGULATOR("vout", 0), + PMBUS_REGULATOR_ONE("vout"), }; struct tda38640_data { From patchwork Fri Feb 23 16:21:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 205505 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp692485dyb; Fri, 23 Feb 2024 08:24:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWslPxtczl95s5TivQJUHoRiaAuv6pADHUwwhxo5ENDuWI5h9NDYg4cx7A608TcdYUS7LVZ2hoALKYGFB7mpqLdhmzUNQ== X-Google-Smtp-Source: AGHT+IFnkfhERxwxewDkfCyd6/Xw3L6BXMQ/y5y2wrepnfI9JLrZxpzeMWSfh62HUhb0QkZDRisw X-Received: by 2002:a17:906:1310:b0:a3d:a63f:2db0 with SMTP id w16-20020a170906131000b00a3da63f2db0mr231415ejb.28.1708705470300; Fri, 23 Feb 2024 08:24:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708705470; cv=pass; d=google.com; s=arc-20160816; b=SC1hanq3sjs4kglc9I2qMc/vF+yG3WjBjGrz9fal2VlqjtxsQabqhaPKMSepuCZuJe qwEOkiuPl+QFpaGpuFigiHkJDmlSe0Ap4TZ+KXvok7OzL6KuK8eucypmJKK//QvEGySM /HT0jbFi/7e67N+TRzn0itdhTOJ1i3U7w6guluTeVIdIzcxJhHqCUFfrqX95+4wgFzgC t25lGlc4esh7crfRwgjuysXKWwC2YXW5b6R4vMx7Y1T3kCFIQXcNirQ7fy1AVyJBEuf0 UZVvIX9wcWjfTLbAa5OLY7KBSeoUR+TF0vEX0lNkCrdUMug6Cb/9mMu6w0d3nnolqD7V WTJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=HfDdP3Bmn0II9UZYIe+loD2p1pk90upOrXHbdfrJ+/o=; fh=x7BZgx5LKkWFLAFoe9p/O54YK0XTo1QETE/K7fPNxJ0=; b=CAeGhhU3N/OcDFRuOpF7KKkjLXnzftIl1IAetwkuUIDgNPsgDI3JKL2nHyLxKR8bO+ 4nTZlIv89OL/FhbrILnWdoCCqH9NPWayM7pJ7h4gU9Jv3cCPxCE8SyWgF215TpxhbXUq Ch0KIZ1TYMYCC2NF2nyBx/k5Oi1rMrhlzx9xZtIeZGEnnPrw7GEAT362MmPygegjy0MV hiXOiwJAOfnB1HHqoehR4j+1RiaCLij6Yk5EDuP6OPGCS89Fuesmj2tNcs0Xufsx41yd 8dk0uSiDR4Op+hOMX+LZIahV4Ns+FVQmDippy020wK4qTfkPdVRpL3WFRDVGxPYitfAv TpZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dTIvL9xA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78717-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78717-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k16-20020a17090627d000b00a3e5de68f28si5376442ejc.855.2024.02.23.08.24.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 08:24:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78717-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dTIvL9xA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78717-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78717-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DFF931F21CE0 for ; Fri, 23 Feb 2024 16:24:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0C69134CD9; Fri, 23 Feb 2024 16:21:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dTIvL9xA" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 249C912E1FC; Fri, 23 Feb 2024 16:21:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705310; cv=none; b=kCaT2ZCeSis/XTV+BY0810a3lTlWR706gABmv3RAj+No9p9LYfd9WQXqtoc/Q3OxxkWGFssHlwiNiqWb/6AJWyCwtw2Nl2SgrLc4XWjpNBILHimX+prgO1EQqKfpS93lywYOd8XMZM8GMPnRgkkYtg/RK67NDcDmuNo6d2GB2lw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705310; c=relaxed/simple; bh=jbwiQKAcTZW+OF+UocDdv05N53uW5wLX6hkKOMBTcOM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jUzpBxmEe0bfPxFMpVdyH7pSLDtKzzHxaYpMHFq/IUtgZ+2BuBIMprOwnKU4a6YmQLBDere7dIoQDwrGk8PDGwDJOQm0FT0sgJtfxvckhGkc8ozPCRsRct/RFGyrT8sgVuE87Bjq0lnGCMQm3EZfDZIEGzF//ZyQPs3FMSqhOxk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dTIvL9xA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65F04C43390; Fri, 23 Feb 2024 16:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708705309; bh=jbwiQKAcTZW+OF+UocDdv05N53uW5wLX6hkKOMBTcOM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dTIvL9xAKYzJdtJJl+Ix/2HOVcMOsQU7G28axnq7a+CL65sIgFuZsJIlluGUeIkWM ZtpLCZJbcaMFmJgHNX3Whbu6pnP/3ophsAP2Y/82Mcnt6LfGUO7tcizXvVp4c2R5gA OQ2DryRFGSfsQWLZfJJ/DtQKHuc/aQmswPsTnlwOac/5/fNaModp2T8DBy7QXgmmQ5 o/c4YRSGshfFBRoUHJh4MymSHJy1A4+qKa4d/h6E+RBTcJAyvPMEGlgfyVQS+PGq6A 4Auiq06PqG9UpocQ69cVdr1gKGBo/IKIrCs87IPysVAFEPURO14EbuIeSpAHz7yN4D i7BtcwpSEjo4w== From: Conor Dooley To: linux@roeck-us.net Cc: conor@kernel.org, Conor Dooley , Jean Delvare , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Zev Weiss , Patrick Rudolph , Peter Yin , Alexander Stein , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Naresh Solanki Subject: [PATCH v2 4/5] hwmon: (pmbus/lm25066) Use PMBUS_REGULATOR_ONE to declare regulator Date: Fri, 23 Feb 2024 16:21:08 +0000 Message-ID: <20240223-player-buckskin-01405c5889c4@spud> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240223-moonrise-feminist-de59b9e1b3ba@spud> References: <20240223-moonrise-feminist-de59b9e1b3ba@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=989; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=pvEzR+gA96CLf2ByeujTgLZ57PfkfC8+QPdFFNSWXgs=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDKk3jv7gz06I0cheuEdus3LXUs8VHOcbHY3E2+fbzz/8K MS5rnxSRykLgxgHg6yYIkvi7b4WqfV/XHY497yFmcPKBDKEgYtTACbCrMnI0DVRsNCUvTao7sf2 mos/klY288iwVgWHCPJfMjqwP1jtDMN/p2exUl/Z/R38lhRLrjlzI32jzbo/33cnSvKnz2Kom9H PAwA= X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791707546887579983 X-GMAIL-MSGID: 1791707546887579983 From: Guenter Roeck If a chip only provides a single regulator, it should be named 'vout' and not 'vout0'. Declare regulator using PMBUS_REGULATOR_ONE() to make that happen. Cc: Conor Dooley Cc: Naresh Solanki Cc: Zev Weiss Signed-off-by: Guenter Roeck Signed-off-by: Conor Dooley --- drivers/hwmon/pmbus/lm25066.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/lm25066.c b/drivers/hwmon/pmbus/lm25066.c index 3a20df5a43ec..cfffa4cdc0df 100644 --- a/drivers/hwmon/pmbus/lm25066.c +++ b/drivers/hwmon/pmbus/lm25066.c @@ -437,7 +437,7 @@ static int lm25066_write_word_data(struct i2c_client *client, int page, int reg, #if IS_ENABLED(CONFIG_SENSORS_LM25066_REGULATOR) static const struct regulator_desc lm25066_reg_desc[] = { - PMBUS_REGULATOR("vout", 0), + PMBUS_REGULATOR_ONE("vout"), }; #endif From patchwork Fri Feb 23 16:21:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 205506 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp692658dyb; Fri, 23 Feb 2024 08:24:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUPwzSdPmwqXrXVzXMABhN94ckWUcsZwGyRM+gEBF80e6XEBK4vlUdCsyf793RmMuAfdpTNVQSSrHff7DK4jkU6C4EJOQ== X-Google-Smtp-Source: AGHT+IEwpDIFYRY9JvFJdR8jLiV1GHSoreipFs0gijhZ8YwMjivDNBrpXVH7wofyypvQZsikuPm0 X-Received: by 2002:a62:f948:0:b0:6e3:caa7:3038 with SMTP id g8-20020a62f948000000b006e3caa73038mr329927pfm.0.1708705485737; Fri, 23 Feb 2024 08:24:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708705485; cv=pass; d=google.com; s=arc-20160816; b=YziYcNEm4DWl9Rz42DzbE4A90MlTRkY2UrM+phZRs7kSGhArhtgz+qLzmM3cdyn/Bp ZLjHD6qogGdUNkURfW9RIwc/qYlQtm4Jw5G9FONs0E1jara8TpqCP9mlBzUQJlJ3bge9 puM5sCUpqQXWu1one/IGYBYq+hGFE3ADtj2kJ4wz5te9sJZIhvBlocpCQMzwAb3nZktJ 9NQiUgrKSllrcna36ykQa9kgkIVu1TIyEHlPR9TWqheiO+xtPV2ySQsnvQPeWzEjgsq5 FDn4Y1Z444yfv6r06LJQ4YMMuXoBU/c0UN3F1bfbJjcVewqmQk3lHL4WHZNiWUhQaYsB W1cA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=l+poEIVTFSXXXnFaKU8suC6uB1RyBy/fhuToia+On5Y=; fh=x7BZgx5LKkWFLAFoe9p/O54YK0XTo1QETE/K7fPNxJ0=; b=xnPrmhOPunqkLwl/Gba0zc1Sbczd7sj+ZrL6DZohbj8zB7qzK7dkQDVcFk6foucsFF pPOqrAsbC+wik+JA0AHeGUx5taGEFKgtnonr7Jm6XA3CrhxsDa57NX549ZI839ZcqAoh 64JOYw1b7eTtyMERfRA031CIJ85gD3lFhtRRy1P/BTYUf6+XMMWGuMbeww+NhpedlDZd jnJN5BCCe0/BbZFXz/gOn5cOMUsuqY6brf2FALdDKS0pmM46m9B8Mf3etd+m/xmK0ovm TLLfDvxlBukb5sYvZf67+zHh8yX+o24HEqyBDe9U+JLo38xrFXVCAVDFnCfbpKqaho7U 0B1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sqd0oMWq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78718-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78718-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z125-20020a633383000000b005cdd9963f49si12549726pgz.863.2024.02.23.08.24.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 08:24:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78718-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sqd0oMWq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78718-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78718-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 78FDD282DFF for ; Fri, 23 Feb 2024 16:24:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42BEB13A27B; Fri, 23 Feb 2024 16:21:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sqd0oMWq" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E55F12E1FC; Fri, 23 Feb 2024 16:21:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705313; cv=none; b=dUmSKX0qQOYQJdSDTk6lv2UVLlqKLRLqQBPPdHXhr1aol2vIoocHL4pvM9lEK6z0d/GZP5osnqzS9PdwMkdWUnIscREQWHrpNT++PoujOqZdWfF7dG+4vxgZVJ0TrVrKKsb8I3udWKHAG3WN4Mj5Xa/jI2uHj5ZU1KGllt7m4OM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705313; c=relaxed/simple; bh=WU89fYlzkV7iq1/qt/r+d2wUO9ZbalxxnTbNqYn/EhY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GM4uiRDSdoj67MQ/eYjT6YelBOaHbpagTqjv49w66OKPomMsurVqXknLYJjYjFD1VJSBILOmk2asbb6GjCl+QiD/yPsKNqMZw4Hrf3kAb31t290uLluLzRAOazZ9/L4GyWPEbdH1Axs5KVNkS1nk+Ibm6+78kKda+DovnphS14M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sqd0oMWq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1538EC43394; Fri, 23 Feb 2024 16:21:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708705313; bh=WU89fYlzkV7iq1/qt/r+d2wUO9ZbalxxnTbNqYn/EhY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sqd0oMWqLS9+bUOV6/JV82J9rY81dxFPJAyjU99xQkWWqoXpQsErsWkJsFHY4d896 DXFzv4CVVIppsCbdCKmU0wXHlcL+E3NqNEcuX+UTrrcEuQ7pSIziUD8wjNn02Q4QHs IQCg9jELJkmrATcWATFuHzeASjw+txxvuufNHcdvcwwUB72N7MVIzb9MfQGTagNZTu MlEM6qIMiQI3N2bl9o2ocy7y29UIop+mf+6yfGTPkMdGoWyqIbWESHxAAJN3zNyywp zFpMgq7+sKQADO5+rRHrqYWvEEyEHjssi0D8RsoJsmJwuJ2ytexvl926KND3gJ9DSC ElUADPdKC/tHA== From: Conor Dooley To: linux@roeck-us.net Cc: conor@kernel.org, Conor Dooley , Jean Delvare , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Zev Weiss , Patrick Rudolph , Peter Yin , Alexander Stein , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Naresh Solanki Subject: [PATCH v2 5/5] hwmon: (pmbus/ir38064) Use PMBUS_REGULATOR_ONE to declare regulator Date: Fri, 23 Feb 2024 16:21:09 +0000 Message-ID: <20240223-harmless-covenant-9cd3d4f1cfd2@spud> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240223-moonrise-feminist-de59b9e1b3ba@spud> References: <20240223-moonrise-feminist-de59b9e1b3ba@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=959; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=b9OMUzVMqRny91Z1AmDs/nQDPPMoHnmOADsngDqzbtU=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDKk3jv44r/LpbqP0kaSVBQfDZ2lUVPkIT7BblRLP3nCuS eOgdLd2RykLgxgHg6yYIkvi7b4WqfV/XHY497yFmcPKBDKEgYtTACZyu5Dhf+Dxv3/v1lhWaBea 1AS6vrZ9eL3p76cnJ/It53at0JxZk87wT+GosxvnIu7w9yuW+p+akTCjYFEWx/1W6TWTNsze5Bx gzQQA X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791707563264951827 X-GMAIL-MSGID: 1791707563264951827 From: Guenter Roeck If a chip only provides a single regulator, it should be named 'vout' and not 'vout0'. Declare regulator using PMBUS_REGULATOR_ONE() to make that happen. Cc: Conor Dooley Cc: Naresh Solanki Cc: Patrick Rudolph Signed-off-by: Guenter Roeck Signed-off-by: Conor Dooley --- drivers/hwmon/pmbus/ir38064.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/ir38064.c b/drivers/hwmon/pmbus/ir38064.c index 04185be3fdb6..69e18cb468f6 100644 --- a/drivers/hwmon/pmbus/ir38064.c +++ b/drivers/hwmon/pmbus/ir38064.c @@ -22,7 +22,7 @@ #if IS_ENABLED(CONFIG_SENSORS_IR38064_REGULATOR) static const struct regulator_desc ir38064_reg_desc[] = { - PMBUS_REGULATOR("vout", 0), + PMBUS_REGULATOR_ONE("vout"), }; #endif /* CONFIG_SENSORS_IR38064_REGULATOR */