Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp281924lqh; Fri, 31 May 2024 00:41:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVIAZnSZh0i+LUCDkPkKvjRdxT39Tle+oWUbiaWfP+rkUUnEtsQUeVT1CYIKT8pls7xNENr5j5aPUvJ7at473eA7pRaYOHW9KBn8tKvkA== X-Google-Smtp-Source: AGHT+IF8Q2IWn6KO1iH0I8xkzOJsz0BTHZE6FtBhNG3n4MSd0kMkYn3ciy+lwO+7KdDK2HIfR6Iw X-Received: by 2002:a9d:3e0c:0:b0:6f0:80ac:5156 with SMTP id 46e09a7af769-6f911f3257bmr1078836a34.14.1717141302805; Fri, 31 May 2024 00:41:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717141302; cv=pass; d=google.com; s=arc-20160816; b=y6+Mss1MhHWFxq/QYCc003ixxYZ2xQM98WN+F2dcjgTScTrnyJv+soUlMzJTX9PChz LTkFfly0o8qzgZ203svS7Gt40Cq6TT56Lm5e7gEzLv0LMIkOsF4accsNhieGAutShO0w kjFFzzaWvQUrhjcML731xLhZh9P1ftSwZciWkDjl+CXE+AawsGYfFZvELfmhlOgPIjPm ddR238lal0txHjpx22C1K62TP41d8dd442DPIL1YUymyQrktijj8iPsryS0nTI8C5Dcz ZswYUQTCyRdkyLKCxW26QXHJnbilDIVfxE7TDsGtoXGftFHI6gaZJcC39zSMCbYem5NJ CTew== 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=Q5EIJBMik4zw2gahSu/phFE3Dx2IaJXTnnJ34AjTGBw=; fh=1mJtuXJjrkZMErsMQyJIQHzgvE4uAQQDb4ci/1fN4So=; b=gCcMM6eE6bN1qvfgX0btquZpsIob3WD1CVFWZbJ/YRMc3SxlVxFljgDiGzX5bVIq7E 50YaHNuPN9XLoXRrvNdXqFtNwBZb0tMz5sb72apeEjSl2aLY8xJAdT1YUncfBYEGplQC yo8EicVEMyDKw5KQf3dqdU3x1u9/m+3Iiq3Zzee+gIPq6S2zc3zJ379EkW0PAw0Wn5Th tB0zMX1lN116/fFHcpzRU8+UczSSOmyQxpNLT/wgo9rRNtBmVzXKS+maEFugh6hbiMJc Ec7YGi2LcEnWgYKmtJidCbS86k4Bgn9RU9RhtDN+5/hsJNkuhmbpsqDBofTJIzxD+TyV nD3w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FOZtrgU6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-196418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196418-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c359e09795si1087928a12.390.2024.05.31.00.41.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 00:41:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FOZtrgU6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-196418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196418-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 14585B24358 for ; Fri, 31 May 2024 07:41:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E194A7407B; Fri, 31 May 2024 07:41:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FOZtrgU6" 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 E952574050; Fri, 31 May 2024 07:41:15 +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=1717141276; cv=none; b=ULH+XJGclNri1YWHswhMC/JP39wN1DgLPZTmkMYkSjOsQAJdYWcmJpMsGL2yhB5cfdj2WVEznaBUnP2HWc0PBNPfD6aI5MOSIkDpi9lL/+lGLOrv1rhcY6pn9FWFQzcFgCu+VT6JwurRLb8PNhcnRPaSU7131EIJsSvPIt+Z2co= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717141276; c=relaxed/simple; bh=CYv1E7N0xGpkGQoLFOlfMMpg3+Aegsg0Tv1Ho/8YbMc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=V3fZAkd1oFkyYvGng/bUKTm3NEPUZoaA3+SyaGDDaAYJAXILvc0wIi0mdE5avrcwpxTgeBLJVVWM8x6zE0Ifl9u4vnptY/dm9UjZimNl6y0f7xKVMNLeCYUUhODjG+GLTli3aeO5IZ3SGIgJD3nl6uivDdcgaNWUTBa6v0Zywu8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FOZtrgU6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D64D3C116B1; Fri, 31 May 2024 07:41:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717141275; bh=CYv1E7N0xGpkGQoLFOlfMMpg3+Aegsg0Tv1Ho/8YbMc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=FOZtrgU6yCLSA8zZutGOsRsSMsYQqv829H2Zmm6jet/7D32YLXZp3WVxEEgzVdsRl SPuxbY59h8LMINtsOKTPUF3BAvHORhRs8daUOj9nKtNTM1Ph5PSLyP8IvxzA7z5Z0T ZULl+cy10Jr7VEhGE3e3ztiEDT8dsQcwnvfVQdATg8eXm3Wdozs/sdTzfxmL/H1V2w aJZ6NW1GRfZhf3llslQrDY14xJ8WvDLy2kcd/2LzXauG3C30iFfH5nSLUqkk6/gd1k lBs3i+o8EbXzkkBHb9hyY7ca7WwwTao+QrGJRRQWH54N40EfIieRTr5MzFDi5lXpX6 fJ+U0d/nfs7aQ== Message-ID: <3a050921-6bf6-444e-8f61-83fcb6b9f2a5@kernel.org> Date: Fri, 31 May 2024 09:41:10 +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: Guenter Roeck , Amna Waseem , Jean Delvare , 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> <1ae97b90-ff20-4238-abe2-f2e5d87fc344@kernel.org> <76dd5c0e-cc67-4ad1-8733-d8efdb8a172b@roeck-us.net> 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+QFxwl7pDsAKR1InemMAmuykCH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= In-Reply-To: <76dd5c0e-cc67-4ad1-8733-d8efdb8a172b@roeck-us.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 29/05/2024 16:01, Guenter Roeck wrote: > On 5/29/24 00:07, Krzysztof Kozlowski wrote: >> 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. >> > > Are you sure you want a vendor prefix here ? Reason for asking is that > many hardware monitoring chips have configurable alert or interrupt polarity, > only the name is different. Some examples are the JC42.4 standard ("event > polarity"), adt7410/adt7420 "interrupt polarity", MAX31827 ("alarm polarity"), > or DS1621 ("output polarity"). We even have a vendor property, "adi,alarm-pol", > used for MAX31827. Hm, I just checked if this is already existing property, but indeed I did not check other variants. Indeed it could go to common properties - hwmon-common.yaml. But then how about using strings (as I asked before...). Best regards, Krzysztof