From mboxrd@z Thu Jan 1 00:00:00 1970 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 4097A171AD; Sat, 30 Sep 2023 15:33:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37246C433C7; Sat, 30 Sep 2023 15:33:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696087999; bh=eSAPVmpMsnO0oz6bOiAtbQ81h57LmzjT+oOEAB6nLUQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DxCpeIC+XOiE1L256j03FUSFj0ZTLejjqGL8lwHBFZIWyggmPVzV3wXXj/99TXLzh 2wpsjVGC/VQYtnM/Vu/VLzUpdAfZJnOlQTr12lmpuqSChHGfW7N0Fg3/MgfnJ2CnEK NZkoZBTrNeXXHrUJsd42+XLRsMUYe8sYoiWkN3E77Zq1WLIoTYxslAocDrhOq5coai /Fn8tv6DLeoyhXiqJQp6uv5ggn81wh3OgLqgmNtyxJXpCLIJhJ9bzzrOXOYnAveoyp qM8ja44USZeWqXyLboesglUgFtmBKxfYrsj/goUeGhlOdjLsSm/PR66Hc31QkVMcj0 wdPHd4ErQ3Z5w== Date: Sat, 30 Sep 2023 16:33:18 +0100 From: Jonathan Cameron To: David Lechner Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, David Lechner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Hennerich , Nuno =?UTF-8?B?U8Oh?= , Axel Haslam , Philip Molloy , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 23/27] staging: iio: resolver: ad2s1210: convert DOS overrange threshold to event attr Message-ID: <20230930163318.7b9d6181@jic23-huawei> In-Reply-To: <20230929-ad2s1210-mainline-v3-23-fa4364281745@baylibre.com> References: <20230929-ad2s1210-mainline-v3-0-fa4364281745@baylibre.com> <20230929-ad2s1210-mainline-v3-23-fa4364281745@baylibre.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 29 Sep 2023 12:23:28 -0500 David Lechner wrote: > From: David Lechner > > From: David Lechner > > The AD2S1210 has a programmable threshold for the degradation of signal > (DOS) overrange fault. This fault is triggered when either the sine or > cosine input rises the threshold voltage. rises above the threshold voltage. > > This patch converts the custom device DOS overrange threshold attribute > to an event rising edge threshold attribute on the monitor signal > channel. > > The attribute now uses millivolts instead of the raw register value in > accordance with the IIO ABI. > > Emitting the event will be implemented in a later patch. > > Signed-off-by: David Lechner