Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp458012lqb; Wed, 29 May 2024 00:07:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXpFa5bkG0e8sn/E6X51pJDzUZ+LGzPPGp0cuRIwDSm6Eidv1/HAkPqbfuAlFqBk4pdM0/G5LF4Mkz3vMrauciXTPaqBODenUB8BJ+Tgg== X-Google-Smtp-Source: AGHT+IElwDgyyttfU3ieaIniQm9SWa2Knn5NMjdN4ER/QYnKzjd1q6Y82UeLFmkvHLnmVgZKQzSk X-Received: by 2002:a05:6214:20ce:b0:6ad:7a01:1980 with SMTP id 6a1803df08f44-6ad9f9365ecmr20348676d6.2.1716966467059; Wed, 29 May 2024 00:07:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716966467; cv=pass; d=google.com; s=arc-20160816; b=oZ6l61kqaU8l/Zr8K81XCygDn3ci/T9/4eV34nhoVs4VdgrIi16bYshTcKzBll//nI Egf6SJ2GndJVsHTN+hU80JpfIUIZk8RMZhPB/bRenkRTTk1YRnG3TMNZsZXtmrLWg4KF qdc+cpVwIMA5tZgPe29NTKph+4n+gaOyGcCPns+qPHuRLmc4V4M3koAMEWfo08/d8KyO HGw5TOQkE3qBG4T8bZDLt7/rW5gaTnvOdrYFufLyqKtqoVgn3TNks4aQFg4V7v8SFdgg G4turxPy0T4qmcEVJAyg5tgy4B/cCdEi98dwNg4Ps9if/kOqdmbvcXGnkJxUxp+aejlA g7SA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=/kULvZEIsXH29GNrNuh+0bmBVCx70h2/tOKut798wCw=; fh=oTz0KMt9aE8PTy/+WBvmbT5yLjvoAhBSJT7P7/ACB5s=; b=LnjZGUZyJs7ej9//mPeL4iA1CNketYUO1gu9tnTlhlYmEHjBgPZ+ktKTyYOQYF1YbI n5CBcE2SHKJWj15xRagZKDoLRAcTcFnLZj3XTwuQCVKsJwtwU7jOWHKOj3E09zL+pI6b SAZdQoaxKCYUYFFZp1g/Efb6e0a1x/KV2acNzxoC5W9JflNuUOPTldAFiNnc/DQInXfZ 9ZZnkEkN0zZp7YaelmcarrlLxiZMkmxscHmx3yyMZvyJNvUZtV8/YrynaWxKtA7qJAiK ooV7cTpx2MDvwZ2MKLg7YWU2MypAXgYlfTyBfdJzg/Gd+FZue+WsuwTY82GBJ7DHomhI xfuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bbRvsLBt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-193560-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193560-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac1133174csi123434266d6.348.2024.05.29.00.07.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 00:07:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193560-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bbRvsLBt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-193560-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193560-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3E6081C22E7C for ; Wed, 29 May 2024 07:07:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 05E1D161B43; Wed, 29 May 2024 07:07:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bbRvsLBt" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 162E915FA8A; Wed, 29 May 2024 07:07:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716966443; cv=none; b=oAERIW18Ci11qXzjCjMH4NafOx+ApIoZ+gKKUuS76WJwEgYG9XbQ09LgXtIV8xz/clW/6oaZc5JY0TAAX5zuYR0Ltv2m987GXkOUgJBmCWcRv8sTWxjANrtrBNigDrvrG3EN73eHRBvhbJyA0DlphCHVA4JGPeTCkuw/4cnjlBM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716966443; c=relaxed/simple; bh=7XlnxYk3BD60vR+RT2oOGeO/o/5OVYZX2jQ5GdTYpfg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MBUCZtUs46TZqv3jv/arl1w2a7Xhz6aJeli8/R+1nClIGBVC83jhr1QgimSaMtCTUZU4H88jrZH3NoealcvdNEanfWswt52KyN71kVJw/f7OherHzOf9PuI265D7qGxfRuiOObZbIZKygjGktxq812iD4w3NByby7mv9mItRHr4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bbRvsLBt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D031C32781; Wed, 29 May 2024 07:07:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716966442; bh=7XlnxYk3BD60vR+RT2oOGeO/o/5OVYZX2jQ5GdTYpfg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=bbRvsLBtOSrJOMVA71FDoJqOigCxPooIDeBgHHnMsEltMtqi9+XkpZ79p7d0U5cXI 072Hcnnoqj6ZiZtfq3QitF6okhckcEKy4XlxDTwhuivWXjhT/y/9URTkwmeXuhoCfn Tl1qvY4N0mAJmOtakxDRYCY4cjKTTIGH4pTjTr/bhClxSuNpPg8CTlzPLvJDwcwHk8 qfqBmm+a3flj805zI7xp5v6UCNWCfjY1emHXwZf1VJKx1AVxwxzXnKaGexg31VQtZV KkfFFDnh2gvPk3JVpZnMf7aSsP+MUpcBvEwdKl+EgZdW8LYQFQoqZSDSMoLUIk8E8Y qxzQtTp9hEBBg== Message-ID: <1ae97b90-ff20-4238-abe2-f2e5d87fc344@kernel.org> Date: Wed, 29 May 2024 09:07:17 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] dt-bindings: hwmon: ti,ina2xx: Add alert-polarity property To: Amna Waseem , Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@axis.com References: <20240529-apol-ina2xx-fix-v1-0-77b4b382190f@axis.com> <20240529-apol-ina2xx-fix-v1-1-77b4b382190f@axis.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC0LDqrsWhAH5TYeTVXGSyDsuZjH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77b4b382190f@axis.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 29/05/2024 08:07, 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. To configure it to active high, set > alert-polarity property value to 1. > > Signed-off-by: Amna Waseem > --- > 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..a3f0fd71fcc6 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. > > + alert-polarity: Missing vendor prefix. > + description: | Do not need '|' unless you need to preserve formatting. > + Alert polarity bit value of Mask/Enable register. Alert pin is asserted > + based on the value of Alert polarity Bit. Default value is active low. > + 0 selects active low, 1 selects active high. Just use string, easier to read. But for sure do not introduce different values than we already have - GPIO HIGH is 0, not 1. Best regards, Krzysztof