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