From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 0BAFC3E51F3 for ; Fri, 8 May 2026 13:43:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247813; cv=none; b=FGEAXXrEnULC8Y3EZLPvJBqg8chLddvjoqumkNNGfStNlfccpIiuABJMtf8Hqk5dJIl3J6YOwaPQzfxas9pDwuu4TKrJl/ufBKwJieXaSVZgoYvEhKE2lCz4Pbs7PrscLXeTL6YEH2tYlz6GK84Kq2HmSWQs3rzGX994cCgYr8w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247813; 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=H2nLaSEbPyVf5QiaGRl8aOMKC1vEbXDIB39TucqcbWGEf2jJnkKb7b67cwUumywi26siTUHh6FI6eR2fChXMF3lqn/gtuuMdlXPvg0VFHss2cQyNZDa0QfJw2sA69iAOBwzSnzlMhQCBo0vu/VMX/d9XNejvnCzGeaIWqUMi+4M= 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.43 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-f43.google.com with SMTP id 5b1f17b1804b1-488af96f6b2so23320085e9.0 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=QWxQtZ+NyyBoqJnpAvLIACMxCq5wwaYLx4my6Wx+H+RlELM2xL+mtAnzg0C2hr+r9J 4jgckbwFeyo0WDycfYMGcn/qVniFMFSAvLOuskwrxAa1JakEBXHXVQpmGoUBd00UlPjC sGT/lDzK82Tp9kYJVTzWe93fniKLEkS+szXCFxzD9FEev5bEQ1Ds4dmjHP+ZDrRimfXR y28Oniy9OaRYPHqXXrZvJiWNNxbJ+z77nludJ9/mCA97P5hUyhudr8K4wTMpPwjoU1rf 8iStSvi3KZXomb4rmbl4iBW5RjYmTj3HTa8NMYbVtRVRt72d8Kz0iIylYdjyNfU7ZmZQ FIyA== X-Forwarded-Encrypted: i=1; AFNElJ9OQ90rZjAaFKkxYg5g3SdYyOoi4x1AGcRgYfHvQKuQ+pWxDL/0aStfdStBiiRfe4of30rlNkTE8ek=@vger.kernel.org X-Gm-Message-State: AOJu0Yy0b/7stUuQ1wLVHWr62go/R0t17vlrigFUQSdGfNetJK/jww5z lwazG0NuxEjaGtIRVV8XIq81ZbqFXUCLKrzVwHWVCePe82Q7ZSuGzbQY X-Gm-Gg: AeBDiev0lgVr0EcCyzCU2ysuPwzPA715KJ27g6iUHNwIFlO4FPLkiFATDZ6JfpBwLCr ARPTm1YuZrvluW01sgKd/2kdJqE5f7SCpo47gERPboMn1mlsqr7JYG5vuOxQShTvSIQ48KAZXG6 U/rL99/ffnNI6b+pd0WDlix4y7yQLPOGG0Tc1iuBHlLj6zFRI0B/j9JTrICEiXkmhWoENvOwm94 OFMYmlN8v86txEM1ZBjO/CFGjEtNYvYRBSUrFk1IQhrFWc38e14HBNL4d8oBI+VMU5QJ5Q7ijsb q127lKO5HQhuCstLdmGjwZ6PpsiBR+C9mJXSJyAzDEKZZx0VXL8LXFfiyzQ8tuyLaMrVE97vvTz YuDmDHZEA4cQ5sqhsM8bsh7Ps9hQkSxPysF5PeK8JJcSN8U9yHGShLd3uHuf8PBTOCVkFxHhI9G q/H2Ts20kIMQwDIQQ= 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-iio@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