From nobody Tue Dec 2 01:25:49 2025 Received: from mail-ua1-f47.google.com (mail-ua1-f47.google.com [209.85.222.47]) (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 A5F4F26D4C3 for ; Fri, 21 Nov 2025 17:16:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763745402; cv=none; b=Ia9laaOC07mZJxPa5AKXtT34r+sNdIHjBKKseR/svI+y+ilbTOl96QS0kgjgOU7Sm4YFe4k1THF30WYo8I+mMolcxel1qm5a0nATNkufApv+Me7JVdVcmESPgPrfGgJFU5i8JTe1/+x6Wb+das88UR9J5nYGAj3uEXrGodB6KvM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763745402; c=relaxed/simple; bh=ehm4ws2yMf2rLsIV55CO1QANq8wV/IBX6JJ6WdGosVY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Imjw5yVCAusSE3ymCmcgYEYRNe/q+56T2xq8YxPZvvwdiahUpSCD3FZfdm15dV4HDE+z3nI9efRAOe5Ckpsl71NuYOf+sjTmGSv7kIdz0ZRNKb0fjxdCK189ILkL+qMTZUTkXSWJRK5ahyQquNRi790kvAhwm80LBDqd1UbTrEc= 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=XBMSB7Wq; arc=none smtp.client-ip=209.85.222.47 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="XBMSB7Wq" Received: by mail-ua1-f47.google.com with SMTP id a1e0cc1a2514c-93725308c15so1331373241.1 for ; Fri, 21 Nov 2025 09:16:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763745399; x=1764350199; 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=3Z6055fPh7kB7snV4QcgA3fj8wpQZDtBh6CugABtOxU=; b=XBMSB7Wq+dxTwxiW3EYO7SHxsN6/LPj8A9dHyWDhD0WL2mcnoWny/Womz/m+sVMADy 5UAAh0Wr2jlTj8FnUu6ozXJaA04T66MjpHAGBZnewZmA6zCqcY23OWJ9lTR6oAq+1/jm /E6Br709AJTxVaG+fJkJR+BKaAGQA3oIJDTzKe8sV5SjCBSLtjommY28WJ8elJa7zFbg heLysnCTbRyGBn61is+WXFMvkvV4khULdfMwHeQDFAYAbAGecLAufTcJlEDAQ+yFbHf8 Zdl/2qL3H0Yp0C96nFb0QQHOp95XBqI3kFnVpAKEK1q7L2VHZchXG/vIPIq2fQwT+8W8 Utxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763745399; x=1764350199; 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=3Z6055fPh7kB7snV4QcgA3fj8wpQZDtBh6CugABtOxU=; b=hrie20n73gbXjMWGCEV7v2dC0/u6WruaVM6qC1RmYkwE1dYL9KkMoM+QjJqbzCuMuQ MbVpLP66AkVDVxtBlwBERLJZgrc7kqBe5SC/92/SswP6SJ0me5XvPJR4h2LhecVLDwvT vGQC1euuM3kxXZZF5NpmiYvj9a/uELXAvx4UjO6gDv5MoqRCfdfmRK7CBgHOsvYRONR+ ie8sTxKMmz824GFh13xzeVaUMUmv8I4ZAJziYdZ+9EQdKiM07EXNe3mLT/NAT9uFyTX6 ORA0S6+RCjehOdqEux3VKfIsO1860aHmbH3PtRScNVgrY7DcejxwdcuSA1shh1PCUfUO Ffiw== X-Forwarded-Encrypted: i=1; AJvYcCXR17gaTVMTHhjKev7wjThYK8rcGW3nzgRDSDpym8gkFyHUYuvM92QjCFmXp+cAt5sHVbXcAQB3Z80NF5U=@vger.kernel.org X-Gm-Message-State: AOJu0YyccQ0eLdSkFcpA3l8js7o1PMrsBeM/jhwDdcIapYUQcBSz2+Ty SfxkOYqTki3H3fgWhvAOC5SMkpD5VAk2JNhvKe/WibipHSKIuLGgODIU X-Gm-Gg: ASbGncvcnhB4zZSz25J7R0sRNROL8oeo+xmMwjS4djfZxaPdhitRF89NWC9gByauNvz KM2vFKNUgzS6smNduU4m+Jjh9nxjKWyxcXHj7vvwBUO5tsa0OVxpO/KFrFoXsAaia9FXiyEAgDv B+oZ0NfcJrLjzEAWb+R2wEDhq8WsJh1l4bsuuDuMvf5Rl89J7iAH237AIljIZdQvfR80PXwV+DO xEErYKJW7pqq4iq8TnXM/CuM+AzyTaAJZRmvT+k1WLIvtFQIFsFGyiuLa1Rv9prnXjNVA1/bFDe fuJ51cP857a2kRZM+WR0Sm6XCiBQ7YhGlcqAChdlGSEJMtJ2alNDZQnRQ5UeWqiyOP3fAScaHuB Lq8461gVn8/zYYYsJPOan4z6xNqY2spNslejnel+z7NIu8TnS0Mkm0qKqu6bWCDYAntYlmJ9OUl sGCIgspuV7kk1a X-Google-Smtp-Source: AGHT+IEfi8liiww2gOeL0LR2tzYWdsW6iCYd283+pkcr7skpg77hS2K2UbiAfPjBof34fVdlgv5H/g== X-Received: by 2002:a05:6102:424b:b0:5dd:c53b:75cc with SMTP id ada2fe7eead31-5e1dcf41d12mr1343612137.13.1763745399592; Fri, 21 Nov 2025 09:16:39 -0800 (PST) Received: from [192.168.100.70] ([2800:bf0:82:3d2:875c:6c76:e06b:3095]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-93c562728fdsm2554368241.7.2025.11.21.09.16.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Nov 2025 09:16:39 -0800 (PST) From: Kurt Borja Date: Fri, 21 Nov 2025 12:16:14 -0500 Subject: [PATCH 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: <20251121-ads1x18-v1-1-86db080fc9a4@gmail.com> References: <20251121-ads1x18-v1-0-86db080fc9a4@gmail.com> In-Reply-To: <20251121-ads1x18-v1-0-86db080fc9a4@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 X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3845; i=kuurtb@gmail.com; h=from:subject:message-id; bh=ehm4ws2yMf2rLsIV55CO1QANq8wV/IBX6JJ6WdGosVY=; b=owGbwMvMwCUmluBs8WX+lTTG02pJDJkK84rZI985W77sTwyJeH1Fk7uSsyT7kHT21ZbWAo03S qYPlrl2lLIwiHExyIopsrQnLPr2KCrvrd+B0Pswc1iZQIYwcHEKwETE2RgZPta6G15OFc4+Krl/ qo2Hu613n9Ab1zOzn/9T4N6zWqw3ieG/21u2H7PSeX41KJ7/xzR1rpWlcYXlqWmWxRe+nnrcqlP DBAA= X-Developer-Key: i=kuurtb@gmail.com; a=openpgp; fpr=54D3BE170AEF777983C3C63B57E3B6585920A69A Add documentation for Texas Instruments ADS1018 and ADS1118 analog-to-digital converters. Signed-off-by: Kurt Borja --- .../devicetree/bindings/iio/adc/ti,ads1118.yaml | 132 +++++++++++++++++= ++++ 1 file changed, 132 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads1118.yaml b/Do= cumentation/devicetree/bindings/iio/adc/ti,ads1118.yaml new file mode 100644 index 000000000000..eb7228ed6ddb --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads1118.yaml @@ -0,0 +1,132 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,ads1118.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 + + 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 latched and real DRDY IRQs. + maxitems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + '#io-channel-cells': + const: 1 + +required: + - compatible + - reg + - drdy-gpios + - '#address-cells' + - '#size-cells' + +patternProperties: + "^channel@[0-7]$": + type: object + $ref: /schemas/iio/adc/adc.yaml# + description: Properties for a single ADC channel. + + properties: + reg: + minimum: 0 + maximum: 7 + description: The channel index (0-7). + + ti,gain: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 5 + description: + Programmable gain amplifier configuration, as described in the P= GA + Config Register Field description. If not present, the default is + used. + + ti,datarate: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 7 + description: + Data rate configuration, as described in the DR Config Register = Field + description. If not present, the default is used. + + required: + - reg + + additionalProperties: false + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + + - if: + properties: + compatible: + contains: + const: ti,ads1018 + then: + patternProperties: + "^channel@[0-7]$": + properties: + ti,datarate: + maximum: 6 + +unevaluatedProperties: false + +examples: + - | + spi0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + + ads1118@0 { + compatible =3D "ti,ads1118"; + reg =3D <0>; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + spi-max-frequency =3D <4000000>; + spi-cpha; + + interrupts-extended =3D <&gpio 14 IRQ_TYPE_EDGE_FALLING>; + drdy-gpios =3D <&gpio 14 GPIO_ACTIVE_LOW>; + + channel@4 { + reg =3D <4>; + ti,gain =3D <0>; + ti,datarate =3D <7>; + }; + }; + }; --=20 2.52.0