From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-vk1-f179.google.com (mail-vk1-f179.google.com [209.85.221.179]) (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 D70E41F30BB for ; Sun, 21 Jun 2026 23:44:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782085446; cv=none; b=AiL6ersj0DtppklNFyyRmNqnKicwXYW21TITM2D/hKJL/c5fimEWS5UHAntEn/kR88MEQaybwIF4X7d2nl/5Fim1ijnnjhQJslhG2AGNHCn745b0lSiT5PeiJ9aekV65PHB9FQOXnXgHmbtL6ejrcDrJ+XTeun0uy4jdD66FE6s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782085446; c=relaxed/simple; bh=qC4ItL5aFduGXaZLJdmviE/chPrLA9OluRNtb03xoBM=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=sqdWLvAsHKBfxCsFc1OJsvO/qkzSBVp+KLvuF1miVUN1379pyGjSu+O1DNFjT/CKVif75uGHcTyFHs2EZRP6CBHGucA/I7Upz/rbg3ZxQIFIM3hNthfipwe6fbl4MvqszZSTa/TLkj8idND8JFRvnkwcMtRhhC6JRJTzlLsLedg= 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=MdBDrtA7; arc=none smtp.client-ip=209.85.221.179 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="MdBDrtA7" Received: by mail-vk1-f179.google.com with SMTP id 71dfb90a1353d-5bbcc159a0fso1308018e0c.3 for ; Sun, 21 Jun 2026 16:44:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782085444; x=1782690244; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=rMTEZuuJVYsmFX5xK+dFlO+dYqsMUYWoJOQqbQ9vGyA=; b=MdBDrtA7yti3wdyYxt358jnfjrl3ONeaSjROjPbBzqrpOrfmAyui46fPFzJW3D7unD 4i2+NphgSzfUMeeL3gDy5lIPxNfSju1NXgcd2X4FXQrFsr1dAy2/+tVzpamQT0WgECQF Z5OwtXdUyEDaHxg47ywJyDKUInj0hYcNThwUmdcIfo6SAnihIpjjIQoFT3CI+PQEi6so /Uo0fgQjRvCxfkI69dYP2hkq7InxsVw0F0tzpEm/9k8fhhbQ1stICEj3cJ6MRNZUtEdx b7nu+4Vk763OWYpBRqhKZXkaqkNSJDH7ZNJ7FHUNlOipr8U8J/piRST/2Bv+2WihT9aV oU8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782085444; x=1782690244; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=rMTEZuuJVYsmFX5xK+dFlO+dYqsMUYWoJOQqbQ9vGyA=; b=Ve23KVmtxDPZlfrwO50TrtIl74+5QefQ7F7IfRDstOkD1jSg9LW4dMvxQ0d0Cifvjt 4CMXFmOvmaTwla+ZoQZGtzd3jCM2pbnBs8xDiD4EuSwE5Rb0/7txuer3Mfm7sR3e6Lwh PrsBhs6RrpNXxLU64ik6zatyfDj3Hw5+PyXi5Y/yrhzk5SpARJH+WLAWBC7674Te90Ge IMmW4ObQtJUSA/TaBVDJsnshoNEasapFojJnXf+4c7i9JRj7F9to3eSzu9OCqFMoXJkh WBBqKtPiVSRirD4WgVqKRGXX3lgAqc95HFZTSrMT3fD996cL42lqG3KnypAoFk9ZHxez by9w== X-Forwarded-Encrypted: i=1; AFNElJ9Iwk4Z0D08Xfg51ILNNI+G9Gz814n5UlmOg7i/L8JJrTr9yd3GS1VXFJ+sBeTUwt7CdfzZJRe2nIrxwP4=@vger.kernel.org X-Gm-Message-State: AOJu0Yxiq5fYY7rVVeKeIkZMsW/AALjK5cx4i9bMgs2VknJCJVyxN0P4 WJ1N/wTkSbdTXSwmw0B64345/vcr6iWRfgdEOj0KRO+oWFVbThNdjGlK X-Gm-Gg: AfdE7cnKf/Edw6qoROvvzXDZ8+MPY+LjBpvTtAN6W+oS753wwxl0tuP5VRGRTfwm02R s6UEuBtIfn+xwbemIl/y+AfpbpJ5eTO99HpbtzRG7RhBhDwpGUZc8DwPC5+h18iOIhaxuhDazmS /kLQrQdi7qH8AJVQXXYG6zOrhTiaYrHoTVuoscOf1juSWdEAu7VBHNu/W6fNqJY7/QQFr3MaD/5 JEPIfhKs/vNy4BDY6JkG/xwd78pSw3VQV27PnQMOXDOTl4/lKWM6ebr3XdrrxuOOF00uT0efbdi zB342o4LKaP9dWnzdOvMJGxhz7xnhd1ZvgqsUwTjlCT/iDBMHsVFunk3GNfKR8PXEzVnsFXFPAm KUsivoXMl5leOY+iO9tsl6RnU/aGnzRxOLAFIIN8Ihse4+7bqZq2XDyJQEctiHgpY4oVEogDFse 9INE8= X-Received: by 2002:a05:6122:d22:b0:575:352f:eac0 with SMTP id 71dfb90a1353d-5bbebb8debcmr5801964e0c.7.1782085443832; Sun, 21 Jun 2026 16:44:03 -0700 (PDT) Received: from localhost ([2800:bf0:82:11a2:7ac4:1f2:947b:2b6]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5bbfb7d30besm5441275e0c.2.2026.06.21.16.44.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Jun 2026 16:44:02 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sun, 21 Jun 2026 18:43:55 -0500 Message-Id: Cc: =?utf-8?q?Nuno_S=C3=A1?= , "Andy Shevchenko" , , , Subject: Re: [PATCH RFC 3/3] dt-bindings: iio: adc: Add burn-out current properties From: "Kurt Borja" To: "David Lechner" , "Kurt Borja" , "Jonathan Cameron" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" X-Mailer: aerc 0.21.0-0-g5549850facc2 References: <20260618-new-channel-props-v1-0-963c1b5cf40a@gmail.com> <20260618-new-channel-props-v1-3-963c1b5cf40a@gmail.com> <0831356f-76ff-4eed-befa-7a35ffce921d@baylibre.com> <38c5e5eb-2113-4a5c-ad14-348dc7966a1c@baylibre.com> In-Reply-To: <38c5e5eb-2113-4a5c-ad14-348dc7966a1c@baylibre.com> Hi David, On Sat Jun 20, 2026 at 10:57 AM -05, David Lechner wrote: > On 6/19/26 11:46 AM, Kurt Borja wrote: >> On Fri Jun 19, 2026 at 9:28 AM -05, David Lechner wrote: >>> On 6/18/26 7:33 PM, Kurt Borja wrote: >>>> Some ADCs incorporate burn-out current sources that provide current to >>>> the channel's input pins for open-circuit or short-circuit detection. >>>> >>>> Signed-off-by: Kurt Borja >>>> --- >>>> Documentation/devicetree/bindings/iio/adc/adc.yaml | 14 +++++++++++++= + >>>> 1 file changed, 14 insertions(+) >>>> >>>> diff --git a/Documentation/devicetree/bindings/iio/adc/adc.yaml b/Docu= mentation/devicetree/bindings/iio/adc/adc.yaml >>>> index 106b1e317411d5..6b63aac9ac04dd 100644 >>>> --- a/Documentation/devicetree/bindings/iio/adc/adc.yaml >>>> +++ b/Documentation/devicetree/bindings/iio/adc/adc.yaml >>>> @@ -106,6 +106,20 @@ properties: >>>> This array describes the current configuration of the excitatio= n current >>>> sources or the single matched current for all sources. >>>> =20 >>>> + burn-out-current-microamp: >>>> + description: >>>> + Burn-out current sources provide current to the channel's input= pins for >>>> + open-circuit or short-circuit detection. >>>> + >>>> + burn-out-current-polarity: >>>> + $ref: /schemas/types.yaml#/definitions/string >>>> + description: >>>> + Burn-out current sources provide current to the channel's input= pins for >>>> + open-circuit or short-circuit detection. >>>> + enum: >>>> + - pull-up >>>> + - pull-down >>>> + >>>> anyOf: >>>> - oneOf: >>>> - required: >>>> >>> >>> This doesn't really work with chips that just have and enable bit to >>> enable or disable the feature. >>=20 >> Maybe those devices can use burn-out-current-microamp with a const >> value? Is that okay or should another approach be taken? >>=20 > > Maybe better to just leave this one out of the common file? IMO burn-out-current-microamp would be nice to have. I don't know how common it is for bindings to describe this kind of properties with a single const value though. On the other hand I do think we should drop burn-out-current-polarity, maybe it's too specific. --=20 Thanks, ~ Kurt