From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11F2B2500BC for ; Fri, 21 Feb 2025 21:38:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740173926; cv=none; b=QnfonpWPUu0bWFwceubBqRmh11o5kYG1uXkTqZcMi6dYoVAAUANytyeBxLkJbJAwdqI75zqeSUoEeUA2lLC63qMt5Q+S3sBzELw1CUH5hm9hf+drtbXan6ECHyXXgiAxoK8dR1ea07MpbSw8bi9ncCd5csb1mGzHXaj4GHcGucU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740173926; c=relaxed/simple; bh=V2vxeqGcz6v1wBjMLxM8YUFEw0TmKZQqqqNaFB/ASIU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BwdZg4riqXOnVzg3EawIIF+YcFASqZlnrFyQVqHMcA1ejSJcIzke0eL9t4S0mGU83rUsvUQp3bQj6VSlemUVps1s7Ck/oEqP+taTqWVOpi0cu44LPNIPAsPpRy/YLOBA52cBeJEw78RE2K5sX1nXq87cENu7KXjfdHlD8JYtxwM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=9elements.com; spf=pass smtp.mailfrom=9elements.com; dkim=pass (2048-bit key) header.d=9elements.com header.i=@9elements.com header.b=eXvSFf9V; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=9elements.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=9elements.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=9elements.com header.i=@9elements.com header.b="eXvSFf9V" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4399deda4bfso18081345e9.0 for ; Fri, 21 Feb 2025 13:38:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1740173922; x=1740778722; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+FLJWEXe/gWqpKMG4WdI1PcaJ/SApfiUlaX83AGaMh4=; b=eXvSFf9V9EAs2uREzGTBpJvWOO11ZpbcvoQ1CXY+DnleyEX/nzgyLuNUIuEU03XCwC vrHi4j3NdUUTa7ABNPPYptRH2z4gt2jih5PsETJNgeB+Wd23HOqP8FPzdmCREsanOXR3 4go3PJkuL9lIU7q1abesaQyvvoTJhrHLpaiLDfqeeplnvdKLWSH0XT0WliaWn6dLpcjX bTLeo63/KIxtgCl0M6fZkcAA1gWVgo8heZ7pdrecLrxTS6LHTDOf07kaKmCqITL8nHYr bAAF/n2htPGeRcrTpbjeb2+BEEnIvg5GbVVYXJD1hwJ4DV+oUtPFSF+vncZdhgk2BDJJ 6VFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740173922; x=1740778722; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+FLJWEXe/gWqpKMG4WdI1PcaJ/SApfiUlaX83AGaMh4=; b=btOYD7H1jml15EMXZ31cjXk1FcHgz05I9uPLgQFBDpzh0BUw0JcEG+Dy/WUJlWI4D8 0Ud3UIYziPl4cRAxnPGqecVFLx44n2LWjPZowIadiK28bd4isMgyxGaqhaJiNYbfRwPf 6id+tFEOBCplVDwqpyIirMz/czpqSsn52Lq50cgs9UAxjNU4stb0n4tQOu+LNoj315nX 3C2oAwYtmqQw8eW4Eqys5+qz5eH4t+xPWPEixluFy8WIe7af4be9TarSZSiG+3eXGNv+ V67QT7y+7WoV5sUUDpJx/BY9+uR1aEiJoHC7bsq8Gpr7/mZrF+KfcjkAgZzkJz8c/Y0q Pvvg== X-Forwarded-Encrypted: i=1; AJvYcCW/plpcGFVpRPgcQCalIMPK9tcfj+pZDs4eLz5jTY95Mi9foZqNUMqmQGu7nDPb+DKkyfp2tviN6QeNE18=@vger.kernel.org X-Gm-Message-State: AOJu0Yz3/IxU8/kcS0yTdvTdz25BjEjvlLtbMb264vZdwg3mYhIwt5bk i9onQco6MWBRaVFUvb1yB8FJy7KK/wZsod+cJMb7gP9yIfZTZ9I3qkx+LqR0fEc= X-Gm-Gg: ASbGnctl5HEamAZU9xmPJZINmR/ItHy1sf8uDVl0HK1/qvKVhyiAHWKLb+SYdTATzOY iNEDnD+usyHYcd+bGNJ5z3kX4mYBvPZ6r2JurezzD8TwPIlVW8B7CC+DJflX6LgTdFckIca1psB hVXwe//WZ1wIgOLvk82Sw7nr8eDQ76rA9MijGQpfcVG2pITTwiIG6iIJ28EhA46Qup9A7xSWI/C YvkjalfeYnq4S28UGvohP/sKM8AtfGfh8AB6lOfP3mUwsGhBmze0OR/FgTTViWcKMFE6aRjD7S4 /KFVXvGXgny7PziH2Rqe/NAdkqxiM/+9NOcKZM84/k2kdhdqoZiie8A8fy41ftrD4ghb6z2nG4g XB4YphPsgXr9SatBf+LLSsA== X-Google-Smtp-Source: AGHT+IFdUP6T9iCt96pQdqThAMw82tn0jcur3WlLTZDovg9QtmKcOK4dK/9s5fTF1HR8qyXDnahPkg== X-Received: by 2002:a05:6000:1844:b0:38d:b325:471f with SMTP id ffacd0b85a97d-38f6e9474bdmr4665482f8f.15.1740173922229; Fri, 21 Feb 2025 13:38:42 -0800 (PST) Received: from stroh80.lab.9e.network (ip-078-094-000-050.um19.pools.vodafone-ip.de. [78.94.0.50]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38f25913f5asm24767461f8f.52.2025.02.21.13.38.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2025 13:38:41 -0800 (PST) From: Naresh Solanki To: Guenter Roeck , broonie@kernel.org, conor@kernel.org, Jean Delvare , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood Cc: linux-hwmon@vger.kernel.org, Naresh Solanki , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: hwmon: ir38060: Move & update dt binding Date: Sat, 22 Feb 2025 03:08:34 +0530 Message-ID: <20250221213837.1594057-1-naresh.solanki@9elements.com> X-Mailer: git-send-email 2.42.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Move dt binding under hwmon/pmbus & align accordingly. Previously the DT binding was invalid & wouldn't work with pmbus driver. Pmbus driver expects a regulator node & hence added the same. Signed-off-by: Naresh Solanki --- Changes in V2: 1. Update commit message --- .../hwmon/pmbus/infineon,ir38060.yaml | 61 +++++++++++++++++++ .../bindings/regulator/infineon,ir38060.yaml | 45 -------------- 2 files changed, 61 insertions(+), 45 deletions(-) create mode 100644 Documentation/devicetree/bindings/hwmon/pmbus/infineon,ir38060.yaml delete mode 100644 Documentation/devicetree/bindings/regulator/infineon,ir38060.yaml diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/infineon,ir38060.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,ir38060.yaml new file mode 100644 index 000000000000..e1f683846a54 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,ir38060.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/pmbus/infineon,ir38060.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Infineon Buck Regulators with PMBUS interfaces + +maintainers: + - Not Me. + +properties: + compatible: + enum: + - infineon,ir38060 + - infineon,ir38064 + - infineon,ir38164 + - infineon,ir38263 + + reg: + maxItems: 1 + + regulators: + type: object + description: + list of regulators provided by this controller. + + properties: + vout: + $ref: /schemas/regulator/regulator.yaml# + type: object + + unevaluatedProperties: false + + additionalProperties: false + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + regulator@34 { + compatible = "infineon,ir38060"; + reg = <0x34>; + + regulators { + vout { + regulator-name = "p5v_aux"; + regulator-min-microvolt = <437500>; + regulator-max-microvolt = <1387500>; + }; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/regulator/infineon,ir38060.yaml b/Documentation/devicetree/bindings/regulator/infineon,ir38060.yaml deleted file mode 100644 index e6ffbc2a2298..000000000000 --- a/Documentation/devicetree/bindings/regulator/infineon,ir38060.yaml +++ /dev/null @@ -1,45 +0,0 @@ -# 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>; - }; - }; base-commit: 8df0f002827e18632dcd986f7546c1abf1953a6f -- 2.42.0