Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp699556lqs; Tue, 5 Mar 2024 13:50:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVDZkBXm6ELooxJ1LRK0jHOQke7nw8mVC7z57Kh/VtM8tBbs7sw/TdMExd8KB9C7YstfV7wILRl2BgzVpsI27OwED5y4qZJN7rLIZjTDw== X-Google-Smtp-Source: AGHT+IHrsLYY1oGop5fZuOUI4hP+qmmExL43XcIF/Q7mQkNiWrs73EaVLOANinPhxL5L4MKHQ59+ X-Received: by 2002:a17:90a:8d86:b0:29a:f005:9ad2 with SMTP id d6-20020a17090a8d8600b0029af0059ad2mr10282642pjo.42.1709675448371; Tue, 05 Mar 2024 13:50:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709675448; cv=pass; d=google.com; s=arc-20160816; b=w8hbAv8Z4Vq3EC9Qv2+OnlJRbJUSD/1TQOdjW05jeEe6wM1mQzGYIAE+ucT2ugl1Vx xzEDQX8F1RBmsxVdG+CwNTY1RZ7j6NwmchKR/6+g6qm/VR4gtvGuPKQ6HtmTqD7vxbGl XStCndyRatPCGSpISfT26ebajlVKt0M+UVL3jsZF71PaQ0Y/ylwT4p5X+VehY4whNRoF QTuLz/RZPmyrNW7MHhc+3JEqPyxYHTvJSGHtE/ImZCz5qFHqcxPLaPmhklutnTj45mQr pF0RiVUr7vDqGIkOob9VLRMfcWAy6cQl3xjU7qwWPWb/P5Yny0fq0fYDT0tdQ+F1WcVh uuKA== 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=KUZlwMdx9trvWwV1CHNIcS1af0QbtpnuHqxTxJgHydg=; fh=G/Dg8dQhJYpf3o4KODfdolxnBb9fKR3DsvpieIA0ox4=; b=pdkzwORbXt6ggDLhW6NEk6V/XEA2lRYlWlvPM39eeyZNdd2cNWaG1wP5Zlm+Kqk0yk yvqrbZkUEPBaVoqceGjwFLI7+w0ny9avQCPuMBtMsbVA+PViTqlAOHON6tHGR5kKTROn 5inxd7Vj/jrUro4uVgLUVWvKmTKzdSKgp+rPc5jU51viNmjLQZvzWhyPqN+BtYQ6cdGp Gx4I/3vhtwFKxhbuRy1maqURNoCcy9s1aChGydQvrSFAiW6wYZWLlkB0SN4yLssjyS0Z /g0vG4BvWaSLgpQF9KWDyRILwVqWHtHfsdojSTP0a8IZHhki1Q65wu0cQet2/I6f+6GK bgoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=dPWtEVu7; 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-92990-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92990-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g8-20020a17090a708800b0029af7d746edsi10555135pjk.46.2024.03.05.13.50.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 13:50:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92990-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=dPWtEVu7; 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-92990-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92990-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E72EDB2377F for ; Tue, 5 Mar 2024 21:08:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 130F712AAE7; Tue, 5 Mar 2024 21:07:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=9elements.com header.i=@9elements.com header.b="dPWtEVu7" Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 74C5712839C for ; Tue, 5 Mar 2024 21:07:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709672874; cv=none; b=cYlbt7Xe5kluzPeu3D3rAFIzeTJ3wTxmXt2eVRZVQt7JAOfEbm+/SPk+kmygG+28vhpqcFz1SwXNMCJlTxipzs6KnSkjoXS2Nq8Aw9QWzLouSRiXYuEgo2aDDYeKHrn0jID6BFUNcFOBYf3PGKMRl1lk1VGxz5j6gclIODGsh+0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709672874; c=relaxed/simple; bh=HSIlCnw1qMgu44wxMsObqpARuyB4m2pEpfiWpv5vzoM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=I+u0+5yRotSf8qdHqI2SfFko3U5nR7nKc4dQa6Wy3YG4mRwPm/ddEhMgWBFCmIPRf1FC+v9XvTVWFCTepyWEIynY4uv+sBa7HBAcoqZ7vdia+OnHTReRZKRjJdPWmj78/3l5Qn07PCr4Rsm5mLGeB85aN/zatVCEitbENKTtg/o= 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=dPWtEVu7; arc=none smtp.client-ip=209.85.128.53 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-f53.google.com with SMTP id 5b1f17b1804b1-412e4619e5eso18425025e9.2 for ; Tue, 05 Mar 2024 13:07:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1709672871; x=1710277671; 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=KUZlwMdx9trvWwV1CHNIcS1af0QbtpnuHqxTxJgHydg=; b=dPWtEVu7LDz30cZHEDpQ36ACeaPWy+HkcfeL7yDuAgehPxPmgcm5q1vghdwRjBDQXo qq/Dk94ynfXWc/z9M38U6k+NAi6DoPGaXcL8i8H4JStdxl7VhjiEStekNXAHlK2zttHE /iLVI03vKFaOr+sW7nSfQoc3OPBBFtLYOSw+wxVIAoo7Hor31qofc87K7jFbtTC2M7DT Ewd3lBdg36ETZOzb97dtbRme8ASGwsCqqTHtW/LyS29jMs/FSv9TZB+O1sLPzya5ROtw mUaqla268NalaZ4eRAmZAglo8z4nCDOhzXfFRp0AMwb43BZjiGIZiYNcMUgXVSdcjsv9 RDGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709672871; x=1710277671; 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=KUZlwMdx9trvWwV1CHNIcS1af0QbtpnuHqxTxJgHydg=; b=WB4hImHdR7BTuocGSVa+F2rCtxL9cGuNLEQkudw2nj7SyMjg44zCkQdHset91SeAmf eBRD1kSStGA2EgXBkeHq5sfNUiJ9LEEMS9b8uSo8Ly1N/b8ovlbv5Dmy7+AG0GKoLkHk KufysDWS3flCKLHaY8BvZ4J4BknKDGqm9xYHP62e/XxAbclhsL2WHt6qTcQG3UTjpLxR HHf9HPxWlkGZ9Fta8JQAwgvJmsdlaOxiKtjOojyD+tlA6bGhHuLWFqEcDMvrUMw8HWCY GM+HWxCn31XyA821FuW3OJlbEihD2I4ES9ewVdpX8nIgqmwB4ScK0MZkh+Eaho2XvzMC Y6Ag== X-Forwarded-Encrypted: i=1; AJvYcCUGXH3alRiCBo4eC5tMl7ydV+IytMH0EsvLCaoOokNjh28TBNN0ZDco3+3ZoZxztOJLQz2q3eDfRq3jfyPUK84uO00lFaJ3ElB5ThFs X-Gm-Message-State: AOJu0YxZ3PVBuw3VTTpQeIGzAm4g+yhM+fs7H1ZT8b6wpl9Qcm+ERvhC R615gxoSK/ZXeQCSnU/H9qoXRk8YeQCxJyHPUi/zcYxWFnXSCrJ1RjYYrNmyi+w= X-Received: by 2002:a05:600c:4f4f:b0:412:b62f:2c3 with SMTP id m15-20020a05600c4f4f00b00412b62f02c3mr11487950wmq.21.1709672870672; Tue, 05 Mar 2024 13:07:50 -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 f12-20020a05600c4e8c00b00412ad64cc69sm18811777wmq.29.2024.03.05.13.07.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 13:07:50 -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 v3] dt-bindings: hwmon: tda38640: Add interrupt & regulator properties Date: Wed, 6 Mar 2024 02:37:46 +0530 Message-ID: <20240305210747.1377506-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 Add properties for interrupt & regulator. Also update example. Signed-off-by: Naresh Solanki --- 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