From nobody Mon Jun 8 09:49:29 2026 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.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 71F933A9612 for ; Sat, 30 May 2026 10:58:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780138726; cv=none; b=eeKfjouCSzVY+JXvNNTvInjEj9FGml7/sX+c9dKvQtsN716t+tGtkHptcL9GDOmr71hhyJQRsKgpm6RHIvN9V00vkMpE8ItjuxknBPhIE3l3ld4UfE/UU/LZmr7+EpWZ2a9S6vrc0pyn7S/H0uwDLHgLkHz7sqjfcBZUB1qLYGk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780138726; c=relaxed/simple; bh=YT8mvnkk2uYolxFaRtXhF8hze7MQ+eLcZ13FI2O6eB8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IsLP3QLpSjqCr71ii3TI1rj/delhXboGRglBhDTzPm9NYYOz9Q86lcw5YO9X0boDrF01vrQP28mTUJL8UkgCC4gsmQBe9nsqbi/Qk5N3aqamnk5Lv7G4XqadD3j2ZZTtA4Jh1TSPofeUfsFzWbcjszQUlewSIT8jdgD36e3raaA= 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=Ua2Jby85; arc=none smtp.client-ip=209.85.167.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="Ua2Jby85" Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-5aa6091635aso96108e87.1 for ; Sat, 30 May 2026 03:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780138720; x=1780743520; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=E5pD8Xbzo0jMdeHguX3rWZL0ZKKQW0EJedb+G014+CI=; b=Ua2Jby85HEoNHmAPsi65E6K5l/HpI1tp1fgKuWle6UfkP+KhDeEt9TIrtqCMBXl6VH 7y4eXrgRFjrEO2aB1Qi6Q3u0cW8jBdmZYMkiK4idK/epXyXPz+p5WjZPdKe6D7HBvNdh SgvorultNIjSorK/GY9rPA35mvXv+mr2HYQllDsK0ALLbVbKDL5juLhmu6ulcApBCxXi 8i+3MW9fmxSLe9gjIN/WtGyiF//oJD44jtWEpdL/2GSQO8Mh02o3JRpeH5jsANhHuil2 OyZpz8t2IF0gcblX07NKdKdVa1e2nmY7bE5HKrrIBO7ZLUXsqUMXDtAY7KsTt0tDwyC5 29mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780138720; x=1780743520; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=E5pD8Xbzo0jMdeHguX3rWZL0ZKKQW0EJedb+G014+CI=; b=sQwq9dlJBJQaLntetD2encOIV5+I7qbF2Z/FmEPHRurl9Z6BlmyW8uc8MC7n2BECDh IdLhgYABCmP1lyenmclVbG5xnpx1cuGPfVsCPaC7MAis8BozvKHHmylBPCoThW6v6p2Z ZjqCE7bhdPqgHzCUMULfOfuDrUdbuF6Sbc+U2rJ5imJ5qsKBJTTzg77mwmYa7Z/nnJEg pVaSeQDVazzzVWDEE7mje/3g39zf3P72RY9oyVSiFbYyqlorQAPq3zQ9T6i0D99i5XXe M9dkAc6uVUQJPfy/vlc08mxLAoFp2L+k6Ip0wHC/qdaTZcID0OEj73cmDmuwS/B3NaLi BWLw== X-Forwarded-Encrypted: i=1; AFNElJ+DdWmOkY4H8NQfZ1A9i+raOBS8id71PfsxagX4Ex+1MpdMNvdzvp2J1S23ZTAMvmNbgoqqZJ96LmQU2kQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yyfoua7YydqB3c1WDA3XkCtgEvvMOvjusHxDfexmb/QnhpQrdlN gCuSWuN2RReEwfimHXmOSOU3mc2p+fRxjAqW9t+4ukm22U8Ot5ZlIVx9 X-Gm-Gg: Acq92OGIBiQiYdPVo0CbkXXZGD2O6GwvwWYDQFhBNuVtK1Z5BNRWZQw/Pgu0oY0pFbr Z9bilZEEob2be8ffH8ZF91zSLY1uqYxV6tbpJMSXTPrc5PtZppf2RIDJsUvQ+5Od09ZuHAlnqHz mxRy/nsQfy11G5pppLIpIrRdnebZq3F5OZkXSX/0LQyP9dsXI1xLHwzDrBgpQEm8Zi5XU/jZu2H n8ZpbmDg5DT5A5RqmYhQKf85I5D5qHdE1b0eq61F7QX+JNreYJ+MsZXvZtiAGAmokmycGcs2rL1 67242alOXvOp4aQ+9kBb5dlAqzvmiISWugcmYFtHGBZdDnhqobn6Z8hiKLKXS/ugcGu4N4ALzxD UgcuGzhKBkKNSNrPKRjTjawzBU9g1kyYxQ3g8tgsN0O+IFlJAf9O2OljBuUu5spZVkcaozB+SDC LvtEDMGwE1jNZ1oSl7SyD6VOGoKpmSHq7WfL0F2bqFwcLyKMCR4KwKlnXy X-Received: by 2002:a05:6512:400c:b0:5a8:fbe0:bc61 with SMTP id 2adb3069b0e04-5aa5fe81b29mr569956e87.0.1780138720231; Sat, 30 May 2026 03:58:40 -0700 (PDT) Received: from localhost ([5.123.22.254]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5aa5b596d5asm919454e87.40.2026.05.30.03.58.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 May 2026 03:58:39 -0700 (PDT) From: Taha Narimani To: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Taha Narimani , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Cc: linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] dt-bindings: iio: adc: Add schema for AD7816/7/8 digital temperature sensor Date: Sat, 30 May 2026 13:53:00 +0000 Message-ID: <20260530135302.54688-1-tahanarimani3443@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260530133126.54460-1-tahanarimani3443@gmail.com> References: <20260530133126.54460-1-tahanarimani3443@gmail.com> 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" Document the Analog Devices AD7816, AD7817, and AD7818 digital temperature sensor and ADC bindings in YAML format. This resolves the checkpatch.pl warnings regarding undocumented DT compatible strings for 'adi,ad7816', 'adi,ad7817', and 'adi,ad7818'. Signed-off-by: Taha Narimani --- v2: Added conditional schema constraints for busy-gpios as suggested by Sas= hiko AI. --- .../bindings/iio/adc/adi,ad7816.yaml | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7816.ya= ml diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7816.yaml b/Do= cumentation/devicetree/bindings/iio/adc/adi,ad7816.yaml new file mode 100644 index 0000000..74008c1 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7816.yaml @@ -0,0 +1,87 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,ad7816.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD7816/7/8 digital temperature sensor and ADC + +maintainers: + - Taha Narimani + +description: | + Analog Devices AD7816, AD7817, and AD7818 10-Bit temperature sensor and = ADC. + The device communicates via an SPI interface. + +properties: + compatible: + enum: + - adi,ad7816 + - adi,ad7817 + - adi,ad7818 + + reg: + maxItems: 1 + + spi-max-frequency: true + + rdwr-gpios: + maxItems: 1 + description: GPIO connected to the RD/WR pin. + + convert-gpios: + maxItems: 1 + description: GPIO connected to the CONVST (Convert Start) pin. + + busy-gpios: + maxItems: 1 + description: GPIO connected to the BUSY pin. + + interrupts: + maxItems: 1 + description: OTI (Over Temperature Indicator) interrupt. + +required: + - compatible + - reg + - rdwr-gpios + - convert-gpios + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + - if: + properties: + compatible: + contains: + enum: + - adi,ad7816 + - adi,ad7817 + then: + required: + - busy-gpios + else: + properties: + busy-gpios: false + +unevaluatedProperties: false + +examples: + - | + #include + #include + + spi { + #address-cells =3D <1>; + #size-cells =3D <0>; + + adc@0 { + compatible =3D "adi,ad7816"; + reg =3D <0>; + spi-max-frequency =3D <1000000>; + rdwr-gpios =3D <&gpio 5 GPIO_ACTIVE_HIGH>; + convert-gpios =3D <&gpio 6 GPIO_ACTIVE_HIGH>; + busy-gpios =3D <&gpio 7 GPIO_ACTIVE_HIGH>; + interrupts =3D <20 IRQ_TYPE_LEVEL_LOW>; + interrupt-parent =3D <&gpio>; + }; + }; --=20 2.53.0