From patchwork Wed Feb 14 09:25:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naresh Solanki X-Patchwork-Id: 13556116 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 18E2412B6F for ; Wed, 14 Feb 2024 09:25:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707902717; cv=none; b=pr4XeqiREuukDyuawEKYGbWRujwhb0VNN6cgDK+HrhOF5DlQL+VzG7sSipLtw1V7X9LWh5aHWp9Emsw1cHa6BVb4Uvz/qLj9bxrU1EpHTiHXMHxEZcCXzqwBluous/Kb0JAmQooFO61k3zUUNfkWeXOk5qfJSm6yqTBQ/6SLK6Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707902717; c=relaxed/simple; bh=TLbgnEAQe8QDK0qYRbwk6kDfqKEpbc9popgQQqa1quc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XDnCk5oge6QL/Tnt/cnq8qGw6OrVdkKpCttu9z/UnD+gePHOu0UBXfWAeDr0Wc6+rpTyqqm2rJdRYPhsrKlYbWCsEDLV9673LzYsoB1wej/ypVvxD3+l+cmElcOmSFNNq7HDU/rZRAwV3qM+nbkJAwX13UQ57oF5aIOgxv4EvDU= 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=K9+wPc5O; arc=none smtp.client-ip=209.85.221.47 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=9elements.com header.i=@9elements.com header.b="K9+wPc5O" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-33b0e5d1e89so3391093f8f.0 for ; Wed, 14 Feb 2024 01:25:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1707902714; x=1708507514; 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=y041iHqKwu8te/0ASvv6dCCwr8Scx9NdIC+ftOWbyRk=; b=K9+wPc5OG/5e5hKH+3L+NHXEIysK4FDawD86LzWMeGXdd/hVglUUyQC0qMdAVgeILC jy+iEMKChSBhYGpUUPQ+cXzYCdL7CPLgBepRmpqoNyOu7+aOzfW5c9v/mkH+TMxkOnEK p0Rzxyd2PmiQ7QJlmubY/N4x1uSYp0eHL1LyL51WULHCF8HAq0cos1/9DSAQ2ymdqAXu 5UpQDSCVzmFXe6+ty6foSiPN1WyItALurOuzz87QGgEVuN1L1Vq1SUAzN9gvcfmPVG/i 7aJnbsVJgFtsF0kX/+VOx25ed/piZJNk4tHl7d11oPeywPLso1fbM2fTlr/XTBMQd9tl zoxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707902714; x=1708507514; 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=y041iHqKwu8te/0ASvv6dCCwr8Scx9NdIC+ftOWbyRk=; b=AbJtFBiUKlMsQL2rFxZraR/4lNJeJDI1zRfrRYahRALXHOmYCpumXy4pS2sJLN/IF8 UEv7zvtFUPJV13dZg9oP+QqbkPlhjXv8xzAS1tgJWutWJCjn/+Uu3PaVHzxeAWLrdLjT dDKAk3t6J3KfVIXjh7ui+Mwx7rAZnrCbUiup0HBZMzzzs+eZYThwS4Psj9VBgrnT2yIu rC7AN81GjI8sWWu7Lb5F9P8lCEqoPujDQNGIAMYHaxHILorS8x3tivNzkz+ucsaetF3m tiL7af8Tg6dJ6dGpdprJ5bCv5eNQi9fDK/yfWYTSp5amo26fDVLrdBLW8HrL/UlHkNbR u0IQ== X-Forwarded-Encrypted: i=1; AJvYcCUPAO7w9cTHSIDHoyEYp5iKdLiWsvUwtHz3YzdHNM2q4WLVOB50TC3swrj3eu6mYPnBgjDK0dDCqNN0bq2JJcPepGdJT5awWNSqXko= X-Gm-Message-State: AOJu0Yyp6Zxr2c9F08HLa4XOVWDACWBmUdj2FlY7/TTnsETEIt5l5+ah 9JLLnZsfTGkxWgULmzqghTEg4vjIOuaN8Pcu/cOnx6x/eEzHeP+n9t+6GfEN6I+oB8LfWlrKIQo OI/Y= X-Google-Smtp-Source: AGHT+IEKJ1XboS81qrP+3LVVvBXCy+KpFsGJPMfWQvy5h2Q3RzLja7VykOaVmkjjZHC9fvSxpbnTGw== X-Received: by 2002:a5d:51c7:0:b0:33b:5f40:323 with SMTP id n7-20020a5d51c7000000b0033b5f400323mr1101863wrv.51.1707902714217; Wed, 14 Feb 2024 01:25:14 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUWFyWps/fHcpSSH0HQANSkGfvWsqyVSJ9Q7MtVLH+UpedJsKJn1mpMI8+0buoRgMBl5hkD/N7xMLb0c4pzRk7lFUl/rCu+SUXWJxAdIFR4qB9CWgrXvs6h/lwzlizPzUoVBX5gnE4er6oaiQnd/LwuJHLoFXY5W2af2mRwsGtMFDYFTxGJwelRur3m8E7ERQwdHPhZgApFJVakP8OpL7dI4wfzzaP5ZJUWOPw3zIG6AMNfNxe7VLTXv/grKY56+KDSxj/SR9tdXT94mmaSm6GB9mKJn/sjzUbPPTkhXpD/xfgrcwvOssDfwzjISs/XlW/d2ZoxofHEzHSRYXXd74BvWzwx 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 en8-20020a056000420800b0033b7d9c14desm9114882wrb.5.2024.02.14.01.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 01:25:13 -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 v2] dt-bindings: hwmon: tda38640: Add interrupt & regulator properties Date: Wed, 14 Feb 2024 14:55:03 +0530 Message-ID: <20240214092504.1237402-1-naresh.solanki@9elements.com> X-Mailer: git-send-email 2.42.0 Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add properties for interrupt & regulator. Also update example. Signed-off-by: Naresh Solanki --- 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(+) base-commit: 7e90b5c295ec1e47c8ad865429f046970c549a66 diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml index ded1c115764b..a93b3f86ee87 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: + vout0: + $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: vout0 { + regulator-name = "pvnn_main_cpu0"; + regulator-enable-ramp-delay = <200>; + }; + }; }; };