From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 D086C3E4C80 for ; Fri, 8 May 2026 13:43:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247812; cv=none; b=FlW4R1R55Tqs/eKKBgnh/BH1cwKdn5X3hvtuq9QlT1GhITs7QdJ6BhJUZ7E4qYjNb3JB7hRi6PSD5XlMpsHIm92a1GZ77XUhSfhC/F4jNlQZ5ytuoR843AP2izxbFKPp1o0CBnl7mvGlZ5YfPb6gB9Y0yHwOTODFQkYfmuvUr3M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247812; c=relaxed/simple; bh=vwmK+t5/0R/qMQfaEFIfrqiBe1JOEHiToQQCNOnzq4Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FlnEemrC7KnuWsgW/ZQUXuRQUFk+jVa8oB1P16nj3DuJXBjA+ZE0WJUUjlXKDkcC8a2bU0uKb5/qzGTNCDeWZOLDAlasqvj0Fu/6Lp4LofRwfl67L6MrEASOciyMkaWMzSpzsTcxBbCT2qaT6V6WYef/14upjyEhaGeXRX6bODM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JkhaPYRK; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JkhaPYRK" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-48374014a77so22384675e9.3 for ; Fri, 08 May 2026 06:43:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778247809; x=1778852609; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=vj7GjlyaIP+G5nMU9wmaTTa+4+maED9Ta/6ulqHERU8=; b=JkhaPYRKNfJv/qbPo7q2t9Lheiwd1/53yIbolYpZAbhGdmAq/JSJw/EUELfKSNBp9p 33C16l2oYOjLM5b5BkRu6VWfwFtDnRUawkt/u7/4ZK98Nx82TRTvDS/H2cB+IFQcc83n PDlXKEsi0/V9hiTEYI7g9eptswhhRxRB0eMUgf7hNOJn+aYkbogvdrKbqsN0YctDuvHj sHCv82Qj+jlcJsYP2/QQ7yoiA3+pn3eBsdDOoiWSjqARSQMRVR/2UW+xcbp10Jp9M2e6 nczPPTD5PbAELi+SKy1K0SJS7eTmUzdb/NP4t/j5u+cbb0PoXsAzVDDjo2eyHNIjrOlR qixQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778247809; x=1778852609; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vj7GjlyaIP+G5nMU9wmaTTa+4+maED9Ta/6ulqHERU8=; b=Kngodx15/1nH9ljS7safT1bDDlCQcfkLgqfE6JS5OERBTFpcPrQEvfN5PHNGN9DmyE Cz6qvU5mVzbkQfDDp2A0KAl0sllxYNetQnFT9iRibQXWWfOmr0cl2wgxrEhNz95PEgkB IKw5gyq3D7kZZaBPtKbzRtplUkHcw4+Zk3+XBMDcqmWjpjsjla2ucbE5YfGYmV/UWL+j wiS4XqwdDkzKJsiiRHKPHl/5Y36MOrfmKtNj3hCWE0OZkHnxEGsy7NFFMCc5FZ/i4q3d 9jRg/P+4FBWW/eJWDpFjexSUNOmigUE/t+k4LEtZSo22D3/2RR+Jqw6wQsmEBqOm+TIA RLRA== X-Forwarded-Encrypted: i=1; AFNElJ/ApXKPwhrsRMvGvmxKziiebZdJKfURFf+45UoxY7SILmacu6MmXFNxpJFg4U0rfxEiyWT1Esv4vmmjLJI=@vger.kernel.org X-Gm-Message-State: AOJu0YysRd6hqmR0VXaHgCKupyGwA7WQWS4rDJVd5tVFK56LXCLo47U4 Bg+gAs/X35Eyk35CBuvB8IrFUsMgZo2EBSSgf25u8RYqxqnc0IpeMa/m X-Gm-Gg: AeBDieuei3ZzkaaRVFmUSvu/dxAHPbKsucJ0mrtUppprFqlFoJ+zOJ3goUBLfzLbrHQ QjXejUOsqBwYlkm0petYFcC0+OxxUKk1OjPxx0lRPh/1YorTt44eI+7OATDuEWmg9O8Txmdx6FP YPH19t0OMYcVyhBQBUAR+il8UTfCqKR1ASeiFMp7Y1CFsgILsBOYi+54ycLLQSD5Hve8uisIe68 J+20ZZUf9ZJ8+eS5IEtYW1TLCp9ei+l0mloiO7cbVcijWAjgyGG7cahpy5ovV8tLoxekOd18XLl Pg7hXyYIaEnVKzAKPKHgiNgeTDIh2YxZLOL1bFpExKNzcvDkpYHYdT6yhpgWu7LfL+7UGPXNwnj BWWk09tXSqu1dc6jt7YCgxIhDNrb+fHtPgXNGRKvnj3yxNwRvOn/JknDe1vigweiJgwcVkt0kqE WLF0FJDhwlrNA+2IU= X-Received: by 2002:a05:600c:a118:b0:486:d76c:fa57 with SMTP id 5b1f17b1804b1-48e51f37363mr157605975e9.17.1778247809122; Fri, 08 May 2026 06:43:29 -0700 (PDT) Received: from nsa ([148.63.225.166]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e6db171c9sm144165e9.30.2026.05.08.06.43.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2026 06:43:28 -0700 (PDT) Date: Fri, 8 May 2026 14:44:22 +0100 From: Nuno =?utf-8?B?U8Oh?= To: "Stan, Liviu" Cc: Jonathan Cameron , Lars-Peter Clausen , "Hennerich, Michael" , "Sa, Nuno" , David Lechner , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "linux-iio@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 2/2] iio: temperature: ltc2983: Add support for ADT7604 Message-ID: References: <20260427132526.272716-1-liviu.stan@analog.com> <20260427132526.272716-3-liviu.stan@analog.com> <20260508121441.39ad9f65@jic23-huawei> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, May 08, 2026 at 12:46:50PM +0000, Stan, Liviu wrote: > On Fri, 8 May 2026 Jonathan Cameron wrote: > > > > As for the IIO_TEMP question, the chip's custom sensor table stores > > > > temperature in Kelvin (same as the LTC2984 custom RTD table). For the > > > > leak detector, coverage data is encoded as (P + 273.15) K, so when the > > > > chip converts Kelvin to Celsius on output, after the driver applies the > > > > 1000/1024 scale, the IIO output is P * 1000 millidegrees C - 0% reads > > > > as ~0 millidegrees, 100% reads as ~100000 millidegrees. But yes, the > > > > actual useable quantity is coverage percentage, not temperature. Is there > > > > a more suitable existing IIO channel type for coverage percentage? > > > > > > > > > > Will defer this to Jonathan but if we can have a real of the coverage > > > given the temperature, I guess this is ok. Given that I think we don't have > > > a better channel (unless we add one?) for this. Or just extended_info... > > > > > > > I have no idea what coverage percentage means in this case. > > Can you provide some more details or a reference? Google isn't giving me > > anything useful. > > A leak detector is a sensor like the raindrop detection modules, whose > resistance decreases as more of its surface is contacted by liquid. In this case, > for example, if half of the sensor's surface is in contact with a liquid, the > ADT7604 should, with an appropiate user-provided resistance-vs-coverage > table, report 50% coverage in the IIO channel. And, AFAIU, depending on the coverage the resistance changes and that's how we get into the indirect temperature variations? - Nuno Sá > > Thanks, > Liviu