Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp473718lqp; Wed, 12 Jun 2024 07:14:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU8M6Hq9X6zGkF3JCdeXE1no5zCZTdB7sultoFHN3P8AF8m60Vz96kJ+fh0JNu71o72sy5exTqSB/ojwjLoJVxB3RpjopZT+56KRWwWJQ== X-Google-Smtp-Source: AGHT+IHYiZuFdOFm+zILFTQJwkkONZ5lpgGff0azYZEbL8muTYuCheWwKCsXQi/DF7i7dU3Xe6cg X-Received: by 2002:a05:6e02:188c:b0:374:93d5:e370 with SMTP id e9e14a558f8ab-375cd196a6bmr20026035ab.23.1718201692284; Wed, 12 Jun 2024 07:14:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718201692; cv=pass; d=google.com; s=arc-20160816; b=iGRoq7jxT4uF+2ikpfObZRgzj+CySpKrGQjHGwfCFbZY5XkV1HbmchIJbwG0Ijp/oH L279wGt5Y1yCA7Dy0XGlcSeLLBW459nisO2ueiPObZsky+MkgjcpQrC4xerOl0ssl1fG qp/XcVEB1CYYLQjjebG4nqN6VRszZDZs/HJKgWBvg5DsbURI5ZKLuivg4SQaOxfUjNDc cqoD7NvUaARzwt7cgFViRC61zUrT5TltTfGcvStkql8jW74/P1FgtCTKYd40NvlwLBPa j+opfaWGNChKILLxlZ6Jt3erKncSU/tYu4F3MrFPK5AxdF6haJZ2o4Ry1KExzd34N9tA MzFA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=n3gvyllWWIRnYeJ4DjIIbMhoNnKxuOATp9pxj4Zd4Gc=; fh=Xf6RmKQgCJjGQ4LM3+NZ59gsamq0gp/YadTgVq0yY3s=; b=LEdeP0c82HXRDnGAu2HltSzOYE4MQ7BFtBaXRZzAbkeaXQAqEJ44jGgIcIZegtxG+6 WLyOq1f9oPADf21IMMxYFHWkws9dTL5ytrjq+8tDjcAB8xE8kKokMqkthzmBIUPXiEIm BzSnNfpJ6oTi7L0Qd92gEkWtmcfPbCJaojHUWMkxDkIITZ++OgCaa6UiR7+xFlOAnJAs DhgOu7/ydkAInDw5LVx/w8T5rY39W8czVB2RzE1OIIt+e3rigvWqknn+AFuofOPdztUB jttYSz6P85SmVgnfAdExxAuLTyma6DaJIwbGo4lcdsN9u3t+HpvncpFDt359K8BuZKYE mzAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OHWXG39v; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-211646-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211646-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6f3a0c91cc9si4658215a12.237.2024.06.12.07.14.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 07:14:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211646-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OHWXG39v; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-211646-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211646-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9BD002828D1 for ; Wed, 12 Jun 2024 14:14:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81E7D17DE22; Wed, 12 Jun 2024 14:14:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OHWXG39v" Received: from mail-oo1-f50.google.com (mail-oo1-f50.google.com [209.85.161.50]) (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 228F817BB23; Wed, 12 Jun 2024 14:14:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718201684; cv=none; b=gUa2J2fWgx8hoCF00SDfPrBkVO+sBjWlbcL29k4kVzvZiNapUsYWZurlKwhj6qJO8zTLaV5DNkrVSzYZs8Oq9jajBEjw0fz6ei6ofyIdIDfiNviS+2xW1t3y+Gicn4Ra6Y7rt5XqG56I2UseUDc/eJczYfPnBpKzvTM6ESVf1cQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718201684; c=relaxed/simple; bh=Wx/8/Myl4DsLtzdvgYRN+HtlVbAaQQR3l/UprCAbXt0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qChyF72rLCSQV7VEoJh1Px6kJyhWs23zJux12n4mq5Hm42u3OVnU6hxl5jErwy3iV4SmiCeGQiKDwkT3k4zMfs+yZTnqpn/NoqG8OGUbRBJdbGXcdLyKR0C/DPrYHWd6DTdcUVprwBFnaPCXcVCXWR59Fs8v+JX1AK8c5n/E+wE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=OHWXG39v; arc=none smtp.client-ip=209.85.161.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f50.google.com with SMTP id 006d021491bc7-5ba090b0336so1076760eaf.1; Wed, 12 Jun 2024 07:14:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718201682; x=1718806482; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=n3gvyllWWIRnYeJ4DjIIbMhoNnKxuOATp9pxj4Zd4Gc=; b=OHWXG39vBUWcxymMj17KNiJJ+F6B0jugF7STSxQTcUjFvUZQ69uIJCIMAUp3uj1r+/ NeBVvgH/rONSIJmictvhHvBUgqMa+q751Y6Jz7DR7NXj+xfHCbzMqqn1J7NZ21mkMtn2 Mqg66UmfjzcTddFZgLaMsdxByvNNTs+gJhrk6PKu4SCwJFumwDzFp9EJARzyRlI+k5xE E66aps+/0iTuurBYmsHg1bCVY2FbkwMimd84Klu4pb/bXgULevnc/uJ4SkYDMqzuzLxB 1zK8ndvYU5bOYdQev4oU6kQcp6tTgt0VQZgSjWwL9wjgU08gFAR0Tji0DNLczIyzD+Q5 jGbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718201682; x=1718806482; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=n3gvyllWWIRnYeJ4DjIIbMhoNnKxuOATp9pxj4Zd4Gc=; b=iXQ1DMt6MCcUFtU8DHtbH9dTiQGqf9m/92XcN9t2EzdwyKRdK5Eizdr7EkMLlhATZe mOCM/ib+BWgZflGxRUcjNOR8x2N0w/bEG9ifWZQaZgiTNlVejSRFa4lsz2u7oGlrfi+u hw+5g4YHKlYc18Fpk6eHAdHz8kaNS4fipiCgaSPd68wOxtdK1rU9Vw0iy4YPgDT+YT7r /RmhJq7xTtmNbq+jyTZrs9yU2kYGnBdqiw2fmp3bMN9n+R0EcW4pBfVeKLu8SwzRix+f fK0FlFI/dG+3NUr2ZCm0ek2aRbrWSgHGgIBvIvOOrsQT4yHcmKXY5XOk3KEm5qa0y3I4 QDWQ== X-Forwarded-Encrypted: i=1; AJvYcCVBUQZW5z/kwGMlpy9asDXVvWqzvNM2VO61NkgcYsFW2WNB7csnYRyG+fsl7Ibu0NVBTKpwRJkvlvx/o4TywSSieg/X6VrtJHYtw7kMZ29CLa7srygQP6Tw4YMxyllxhktzv23/98ImK3PY3AizTD5G5YcdRvc412QY4w4FoDMb5Mw1mm4z X-Gm-Message-State: AOJu0Yzi97YxA/pHd36mtTRbwxMdzc3HLN/LJbVS/tSYoG5XTxUMWyDm jbu7vhbFga95Z9W255D8b/9KaTsoUnd63/uTUC7Ljw4DOHR+p+sn X-Received: by 2002:a05:6358:e4a6:b0:19f:4a60:e6f4 with SMTP id e5c5f4694b2df-19f69d54bb3mr242855355d.17.1718201681857; Wed, 12 Jun 2024 07:14:41 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-6f7c4580888sm2268804a12.61.2024.06.12.07.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 07:14:40 -0700 (PDT) Sender: Guenter Roeck Date: Wed, 12 Jun 2024 07:14:39 -0700 From: Guenter Roeck To: Amna Waseem Cc: Jean Delvare , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@axis.com Subject: Re: [PATCH v3 1/2] dt-bindings: hwmon: ti,ina2xx: Add ti,alert-polarity-active-high property Message-ID: References: <20240603-apol-ina2xx-fix-v3-0-b9eff3158e4e@axis.com> <20240603-apol-ina2xx-fix-v3-1-b9eff3158e4e@axis.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240603-apol-ina2xx-fix-v3-1-b9eff3158e4e@axis.com> On Mon, Jun 03, 2024 at 12:08:34PM +0200, Amna Waseem wrote: > Add a property to the binding to configure the Alert Polarity. > Alert pin is asserted based on the value of Alert Polarity bit of > Mask/Enable register. It is by default 0 which means Alert pin is > configured to be active low open collector. Value of 1 maps to > Inverted (active high open collector). > > Signed-off-by: Amna Waseem > Reviewed-by: Rob Herring (Arm) Applied. Note this is v3 which includes the Reviewed-by: tag since v4 does not have any other changes. I removed the trailing whitespace while applying the patch. Guenter > --- > Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml > index df86c2c92037..9190ef0bda54 100644 > --- a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml > +++ b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml > @@ -66,6 +66,14 @@ properties: > description: phandle to the regulator that provides the VS supply typically > in range from 2.7 V to 5.5 V. > > + ti,alert-polarity-active-high: > + description: Alert pin is asserted based on the value of Alert polarity Bit > + of Mask/Enable register. Default value is Normal (0 which maps to > + active-low open collector). The other value is Inverted > + (1 which maps to active-high open collector). Specify this property to set > + the alert polarity to active-high. > + $ref: /schemas/types.yaml#/definitions/flag > + > required: > - compatible > - reg > @@ -88,5 +96,6 @@ examples: > label = "vdd_3v0"; > shunt-resistor = <1000>; > vs-supply = <&vdd_3v0>; > + ti,alert-polarity-active-high; > }; > };