Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp494638lqi; Thu, 7 Mar 2024 03:33:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVff4D5eFM8QLzySq3Ssm+5zAMvMolRGgYAgeencXwmhE3KOWIYwobByii7Tm+CEiBhPS2XWIIRwxDmTK5LLgesECpmySUFkDfYBDGEBw== X-Google-Smtp-Source: AGHT+IHfPB9i0Uts2uhxjJLyGN74r0zvkGq8VOKBX9g86yOQKoUDaeGXpv1VTLRxB4waVbGAPlku X-Received: by 2002:a05:622a:19a5:b0:42f:20b3:45af with SMTP id u37-20020a05622a19a500b0042f20b345afmr481690qtc.58.1709811225985; Thu, 07 Mar 2024 03:33:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709811225; cv=pass; d=google.com; s=arc-20160816; b=ot4WmWWn8rK2PCrw837oe+53Jyfp4ehaqpnHUI7WhfutwP6aUcJNTztCyskDA5vYAa /XOHDPxrTAHDdmxzl/cY5lmCzM7GvgsBXVQygoVQnLut1aWaBrjhoNsEOKb86r5Flo34 CVZyOMdlqquT/swI5iUGsyFgWLJ5aJP2G28+JzBSmn265HdRlSxggjvmt4yRaunarTBl qzT8ZHI+S/njzGjl552nIbOw8TibJoD50VsF5LFkm5ERbjxkvr4IWkxoWFvHCKu48fIw NTQjThbTOi66VY81w10KOYgCdEW9GdiShYMQhM4kXcL17tLk48nH+tvJ9USTXBQcR07P jIVw== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=RDRapjKGygNsR+NakDuOIL7yy4efS+lDW0N/vOIav4E=; fh=Rw8ynmkCh1TLaJtK71x6Q2uYNhdBwCjxsgZNeE1hELs=; b=R39Vy8fPRNRNgmlyNNeVC8dI3yOXqXLwcObkjVCfttQfilypj5guRcGld4o0AZmIBD M/ef4j/vfZNriUe1QOe8kqSygh3MDrk8349bbn3s0DrgnW8WCkS6hIHF7v8RsXR8depp OXG6kMEbCpsZY0v1Fbp13LD6x16P4swPmL0z2hEgMk/G9Lvg20bG5veIaNEiFRlQRzub Tx3gVbo6g1xFqFu28LiX8yPcHC7Iqu32Pxl+ZxeRUsjM1biRaIGeTUk/VvZf9NOHTdKY G/HevGsX+iiUo7XG2xB/VHttDdf7RXjY7fHANG6CntUlJJOOJ1NLOI1+yEpFViwlpEa0 oKEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=C6SYopqC; arc=pass (i=1 spf=pass spfdomain=9elements.com dkim=pass dkdomain=9elements.com dmarc=pass fromdomain=9elements.com); spf=pass (google.com: domain of linux-kernel+bounces-95422-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95422-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m17-20020a05622a055100b0042ef1c1c10fsi9259250qtx.402.2024.03.07.03.33.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 03:33:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95422-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=C6SYopqC; arc=pass (i=1 spf=pass spfdomain=9elements.com dkim=pass dkdomain=9elements.com dmarc=pass fromdomain=9elements.com); spf=pass (google.com: domain of linux-kernel+bounces-95422-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95422-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com 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 B05201C2138D for ; Thu, 7 Mar 2024 11:33:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 853771292DC; Thu, 7 Mar 2024 11:33:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=9elements.com header.i=@9elements.com header.b="C6SYopqC" Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 9764586AC0 for ; Thu, 7 Mar 2024 11:33:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709811218; cv=none; b=rFUYlDgRAx5yVHY13tLLymNhTCqbHVbCwRZ2Mja02ebmFvrr4+kpFVqSuxnkNx93lVZ/Uscww7i9i+giSwOIHv54VxIy+/oj7mzb2LIE8CP3YopWP7/hwmNbZleUVnzHfQPtcrz+Dy59NyfAupD/88hZwbbjsFsJHQStxXryJ0w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709811218; c=relaxed/simple; bh=dRJ+kAHjwTS6Xk3FNS5Z+qnro/vKxfEynKSGErBYZsw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HohBOujecRDiu8p42VkQ/CQeVMUSEUWYrlUBMyClZCfXgHguuFU3P5qR3YyvLMwVnBvjCXaEwTndP8UQorF7W9L3u5FfawVgCZSMo+0swMVl5DH4P6cfZ29/KBmWPAoC0A9GS7Rf3elYqCeGH84ELbKov/sv4e1hSyqp07s0+Ig= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none 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=C6SYopqC; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=9elements.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=9elements.com Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-41312cf36a8so1937665e9.0 for ; Thu, 07 Mar 2024 03:33:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1709811214; x=1710416014; 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=RDRapjKGygNsR+NakDuOIL7yy4efS+lDW0N/vOIav4E=; b=C6SYopqCp+bQ6WPLbfEytHwtiW6D07PdZDj1AnjZEakHmYBdlToIZAbrKCV5lkabKn X8vHuQO24/CwZH0xj3a/3PUKolf03dnDj/j7iYaaROhzUJsLHN2b7qyZT8VGFQhFOCig PxTNgec+oA7cLtjg/ZQYgJ0MrLs1V4c2h6J8qxwVOYPrEm8nFSWaPn1XasmNaQV9ActE h1NyMIKEqsSB0UYyrreDziS24Xr40xVkBuv1jb+GVHpLclCkSj5jdsP/ygCMwSdCNzIW dmrJtC4jFmzONqxsEL2R4S21+s2Uw1rLD5ujcdQd/HzZ5aoVYZwwXb/vYpGsWY0UWvau FoaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709811214; x=1710416014; 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=RDRapjKGygNsR+NakDuOIL7yy4efS+lDW0N/vOIav4E=; b=S1rb255BGEO9HS8pLkFSn5d13MdCpFZ/K1hAO5rUAZhfdzaR3FBKfVFdfxVbywU992 dKmuT/kY0yggukaW3LIUsFrqyAUp3BwupeiprFeSQlnN/xAvNSSGcTzM2sUD/VJafd20 PwZYzHtlRCQX5bChw6Ce4bBLfhYZQwCO4C7yj+ljZsXRabM+1Y1XCJ8n/wGf+G07Zhh5 fTVPgMxagvtAEAkfJlqUX/cJ7a8BzmebbSZo9GIaRRgX/6e4IxzNV5i3aJiaAvqvgYpj lQ1SMwyEGTje8Ttt9NoX4gywV+uMtS93yUmAUSTWeeu3RniDI1TDrcr8nPn/MDzuLcpo OTTg== X-Forwarded-Encrypted: i=1; AJvYcCVAM9bsZhlZHRjwf2klDxjrpndmHmUYNA4ZjtTGUlxREL1RbPEs88+vaEmMMPHfhknY8sphxUp4Qbjb9M/FG0VcuVq8LNhEs9Caa62i X-Gm-Message-State: AOJu0Yyg+2929dPXjqcD1dBh+EaD114Kt0x6jNU5lpXBRyIg+S00LcBc XIjHnuOr4u/Dn8oMZO64B0xDIYIaXt/sXrWJptPTNU0z19uDK6XEhT3I6+Q16D8= X-Received: by 2002:a05:600c:45c6:b0:412:faa6:c56e with SMTP id s6-20020a05600c45c600b00412faa6c56emr2686316wmo.14.1709811213760; Thu, 07 Mar 2024 03:33:33 -0800 (PST) Received: from stroh80.sec.9e.network (ip-078-094-000-051.um19.pools.vodafone-ip.de. [78.94.0.51]) by smtp.gmail.com with ESMTPSA id r7-20020a05600c458700b0041312bdcd6fsm887617wmo.40.2024.03.07.03.33.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 03:33:33 -0800 (PST) From: Naresh Solanki To: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Naresh Solanki Cc: mazziesaccount@gmail.com, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4] dt-bindings: hwmon: tda38640: Add interrupt & regulator properties Date: Thu, 7 Mar 2024 17:03:24 +0530 Message-ID: <20240307113325.3800181-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 tda38640 has a single regulator output along with CAT_FAULT# pin to report internal events. Hence add properties for regulator & interrupt. Signed-off-by: Naresh Solanki --- Changes in V4: 1. Update commit message. Changes in V3: 1. Update regulator node from vout0 to vout. Changes in V2: 1. Remove TEST=.. 2. Update regulator subnode property as vout0 3. Restore commented line in example 4. blank line after interrupts property in example. --- .../hwmon/pmbus/infineon,tda38640.yaml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml index ded1c115764b..5c4e52b472ad 100644 --- a/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml +++ b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml @@ -30,6 +30,23 @@ properties: unconnected(has internal pull-down). type: boolean + interrupts: + 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 @@ -38,6 +55,7 @@ additionalProperties: false examples: - | + #include i2c { #address-cells = <1>; #size-cells = <0>; @@ -45,5 +63,15 @@ examples: tda38640@40 { compatible = "infineon,tda38640"; reg = <0x40>; + + interrupt-parent = <&smb_pex_cpu0_event>; + interrupts = <10 IRQ_TYPE_LEVEL_LOW>; + + regulators { + pvnn_main_cpu0: vout { + regulator-name = "pvnn_main_cpu0"; + regulator-enable-ramp-delay = <200>; + }; + }; }; }; base-commit: 78cc80d834ed3b792605bc9c2215ed9e63825459 -- 2.42.0