From nobody Mon Feb 9 21:03:26 2026 Received: from mail-vk1-f171.google.com (mail-vk1-f171.google.com [209.85.221.171]) (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 158213570AF for ; Thu, 4 Dec 2025 17:56:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764870982; cv=none; b=rMIQ3QYT3n7+NreoJF1g3gEOmObSKCnn5yUpsXPUzh88ozE8izDmw04TKLivFnlaxBZva3XI5FLXcoFgfi7J4WoEjOrqrjR0TyAnXLZb8F6vgbnuNP5nHtG9yWTT4kPBvpry0aahde/bZF9xnWzhfqEEwkK2i5fxm5C2Z5ar2LM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764870982; c=relaxed/simple; bh=VsKMfePN7JjgmEwgQW457cXjo1Jn7sfHu3mU8ne1Azc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ALmYHgsfBqAFKkO282txkZum4weErKrPxK2byfoSRoOak1++Yl7O/oVQMXb11rUjPD/+BuCibZvn0oUdm1Awq5aUX1CwSqtL+vjkeDGGGbiKCbeCei5rQ4Dk5e1VGibG7rR2XfeDXNMVLN64HQJMNe9vaC5krU9xouXNtEsj2dM= 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=GC2A73zZ; arc=none smtp.client-ip=209.85.221.171 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="GC2A73zZ" Received: by mail-vk1-f171.google.com with SMTP id 71dfb90a1353d-5598b58d816so903315e0c.3 for ; Thu, 04 Dec 2025 09:56:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764870980; x=1765475780; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ZuTJZHMKnIcIArrJzXvUtr+o32DOHjdpg8jFv9iZGuU=; b=GC2A73zZEBQ8iGMqIQ2bEO87Us4VDHna1I7bmL4IO1/BPkRNVpw2haw3SqfmIhvL1r ngxoz16XUOonCRtcU6z9XbGHB+cEuJHKR+3XoNcEdJnH/yefLIy5Go3vJZja+D4BVEoP aSGY5uHGn9Rl3yjYNmKzag26CB+mFVaQIOJixLaAhHZgxUSWbVuDCKdiMo3fM0VU/mdZ VGs82Ffb+BdCx5F5KrkQydV+Q0+Iuh2RgVDnh82W7W2giuizRAh8wbHZGDMIUXGOvffc MW2purPAMsOkGkIihZL5g22DLOs7uYRFE/CTGjMwZP9DphnEnRsMtIWcxsoacFTVUOtu RAJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764870980; x=1765475780; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=ZuTJZHMKnIcIArrJzXvUtr+o32DOHjdpg8jFv9iZGuU=; b=pWuy8vzF7bF8jkTsaSg0rCsvRxoZqpJMJ2LryxjapwTVTiQpPvSfPbK5Y0q16uSblB wrJoV6RHGGkOhUWzf2wfS8A0Rypr1sVOgwBffD4dR77+h+I0f9Fzlj4QKobUSBaLKtNp xepI3hcj0zFCFCKqyguD6aaPCO6UW5/Mn9yvoSt4gx90sA5sByx1dNpAXV5cA1T+B/+p /PochaLD1dTE0VNiAsGY4P2p1c0Y54g0Cj+fnQwaoBMwFoGQDH2cJ8TwNJ5MfxOKe9DM V0bSj+dPwqB/TC0Zydvzij8hHsKkzUgNhco0uaqj3obCvTUz+Rpbhy3iVzS3pjccgJhq eIcA== X-Forwarded-Encrypted: i=1; AJvYcCXbrY78w/546NqdfUAEO51ChZMgzzx/WXgqmT4gL8hPHmXkZY1w5kAQTPXJMc5YxRDbJM008Uwev02oWBY=@vger.kernel.org X-Gm-Message-State: AOJu0YxCXMIUFFFzEXN0f1T5lS+8y+bZThAk/vWkcllaqvmNx322Tk4w g1LolrjajG0t71Rmt3mwh4bbU18DMJVc8+53eNt6irN2sq9gwlMSIUjTJ7tJZg== X-Gm-Gg: ASbGncuiRJiZmZGTppXZey03lKX4CcKSWJvFL68IuVs0KmcUrwQ8EwSZ9ee25z95Sow nO2fFK8bD7ZaqpJ5DwfwIyNlBg5gudBke2St82GXlAc70S3Og1NtWjGlKERGO8hU6Kaaj7UGs8f tLi6HAdretb2FHeAs19nScQPQWAQD/muXo50LUt9QHVEWMp1mHJ7f0xa/vMQaegKAAhrRxn3OBG qFJL1ARpFE9C4cR42yFHXO+vq06go2Cm0PL/XXskJvpmZBm3O6v+79QtFAPsaIipihNS/ecgy/D h6HsXqfJrfBpUX7LqzWF/TfsNtCpG40dj51BOYfTWc1Eprd6MOzvun+61LJZ/apjrVLtym3ugux p6vevwiDyPklWM/pjJ0IN9O/WCGGpd+nOZh1tHeF+T2JN4f5gVDKnCNiFhoLosEoDAZmfiG+0T0 +YARgIsw0hfZvKRvywNyQfMvGxrw== X-Google-Smtp-Source: AGHT+IEBYz6Ptvq7oAJo1RbJPG/cMIJwkXR5nGzD5jFubyG3aAZLAGKUMrQpgqep5ih3OLVh+d8GXA== X-Received: by 2002:a05:6122:2221:b0:55a:e007:4c7e with SMTP id 71dfb90a1353d-55e5be6cc4emr3007058e0c.6.1764870979714; Thu, 04 Dec 2025 09:56:19 -0800 (PST) Received: from [192.168.100.61] ([2800:bf0:4580:3149:7d4:54b1:c444:6f2f]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-55e6c97cea1sm921105e0c.17.2025.12.04.09.56.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Dec 2025 09:56:19 -0800 (PST) From: Kurt Borja Date: Thu, 04 Dec 2025 12:55:41 -0500 Subject: [PATCH v5 1/2] dt-bindings: iio: adc: Add TI ADS1018/ADS1118 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-Transfer-Encoding: quoted-printable Message-Id: <20251204-ads1x18-v5-1-b6243de766d1@gmail.com> References: <20251204-ads1x18-v5-0-b6243de766d1@gmail.com> In-Reply-To: <20251204-ads1x18-v5-0-b6243de766d1@gmail.com> To: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Tobias Sperling Cc: David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron , Kurt Borja , Krzysztof Kozlowski X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3280; i=kuurtb@gmail.com; h=from:subject:message-id; bh=VsKMfePN7JjgmEwgQW457cXjo1Jn7sfHu3mU8ne1Azc=; b=kA0DAAoWFmBDOPSf1GYByyZiAGkxyz+iN6LNvge40UWneTNJCw9XghMCo2eOqXqumFjuppK/t 4h1BAAWCgAdFiEEh2Ci9uJabu1OwFXfFmBDOPSf1GYFAmkxyz8ACgkQFmBDOPSf1GYv4gD/dHJM Hq2hd0Kf8SdVrWnQFGaPE0u5b/ewEE8ERQQZQVIA/RsO+c/NX1DxdcnQQc6Nu5jXDYA00joxhmN pjxx0F+UE X-Developer-Key: i=kuurtb@gmail.com; a=openpgp; fpr=54D3BE170AEF777983C3C63B57E3B6585920A69A Add documentation for Texas Instruments ADS1018 and ADS1118 analog-to-digital converters. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Kurt Borja --- .../devicetree/bindings/iio/adc/ti,ads1018.yaml | 82 ++++++++++++++++++= ++++ MAINTAINERS | 6 ++ 2 files changed, 88 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads1018.yaml b/Do= cumentation/devicetree/bindings/iio/adc/ti,ads1018.yaml new file mode 100644 index 000000000000..93c9b2921a54 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads1018.yaml @@ -0,0 +1,82 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,ads1018.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI ADS1018/ADS1118 SPI analog to digital converter + +maintainers: + - Kurt Borja + +description: | + The ADS1018/ADS1118 is a precision, low-power, 12-bit or 16-bit, noise-f= ree, + analog-to-digital converter (ADC). It integrates a programmable gain amp= lifier + (PGA), voltage reference, oscillator and high-accuracy temperature senso= r. + + Datasheets: + - ADS1018: https://www.ti.com/lit/ds/symlink/ads1018.pdf + - ADS1118: https://www.ti.com/lit/ds/symlink/ads1118.pdf + +properties: + compatible: + enum: + - ti,ads1018 + - ti,ads1118 + + reg: + maxItems: 1 + + vdd-supply: true + + spi-max-frequency: + maximum: 4000000 + + spi-cpha: true + + interrupts: + description: DOUT/DRDY (Data Out/Data Ready) line. + maxItems: 1 + + drdy-gpios: + description: + Extra GPIO line connected to DOUT/DRDY (Data Out/Data Ready). This a= llows + distinguishing between interrupts triggered by the data-ready signal= and + interrupts triggered by an SPI transfer. + maxItems: 1 + + '#io-channel-cells': + const: 1 + +required: + - compatible + - reg + - vdd-supply + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + + spi { + #address-cells =3D <1>; + #size-cells =3D <0>; + + adc@0 { + compatible =3D "ti,ads1118"; + reg =3D <0>; + + spi-max-frequency =3D <4000000>; + spi-cpha; + + vdd-supply =3D <&vdd_3v3_reg>; + + interrupts-extended =3D <&gpio 14 IRQ_TYPE_EDGE_FALLING>; + drdy-gpios =3D <&gpio 14 GPIO_ACTIVE_LOW>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 31d98efb1ad1..3d5295b5d6eb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -25646,6 +25646,12 @@ S: Maintained F: Documentation/devicetree/bindings/iio/adc/ti,ads1119.yaml F: drivers/iio/adc/ti-ads1119.c =20 +TI ADS1018 ADC DRIVER +M: Kurt Borja +L: linux-iio@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/iio/adc/ti,ads1018.yaml + TI ADS7924 ADC DRIVER M: Hugo Villeneuve L: linux-iio@vger.kernel.org --=20 2.52.0