From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.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 30BF41F1515 for ; Sat, 14 Jun 2025 09:15:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749892519; cv=none; b=YIy1jxmz+ndJGD4X1nWl3wbQruNNftkRhyhcTVoZ9fIfBdxrTAjOlQ1Jm2aF2OaS8bBYY6tlQRxalRVM6B37LxvpB9QUNZYsK7I7vyjRsekdHnUh+8Td3rWtDehWhRlisj0MX1UAamq6UwLfl4JiSHcAPDK4PHqjAR6nTucdJiw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749892519; c=relaxed/simple; bh=O+kW0dEk97iE7ihlWeRUku6iBnu/KXC8Ng3kX0sCUJo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dLyiL7f6o75JQ9sP96JCu3AA5ERpr9kuoy6Dspw1xZq1sNX0WFCzR0wTFoh0EWN6x0YRez9P+sOnuJIBta8CY1Ts7xGplCB/WtOB3+CmRlBYY/mDRiSYKGcDmGuz7D07/q8mZn6XDf08oYckb74mwkKqJKhQH/qNIwrWlXH3jkw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=U1+j0zPI; arc=none smtp.client-ip=209.85.210.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="U1+j0zPI" Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-747fc77bb2aso2417228b3a.3 for ; Sat, 14 Jun 2025 02:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1749892517; x=1750497317; 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=xAvD+1q8T/M24rLYq6SsWUhjFGHiNFVDMXIDxaXAbBM=; b=U1+j0zPIqa2W68t4Zg2P1y0XWCjozo+lt2EaV0yTv8SWLXKk+jPA4RbKC/hNapVdRp wJFP0c2Qk1vWHmshsosAmomF9dgz/730MKB5yOhSLaV6igBG5dsciPahMT3Vtmn9qiY9 S25YIZ8FlpYteDOPgx8org8LhOiLv6aLEY30dmwoSglYYL/R05ZEB0Pn00LzY8V7eWNN p9lCeegG7CfWbUVzvbCcrEVl6/yQsLO0pDnTBLC+Odk02ASx5n8ScvxihJ+7UHMhT4WG FCl4+yaX0VFuSraxtVBCxRcZP9ff6GweNGRHzBuD+MgiGLlT7Zg2ZizIjHtU+9di5yIL Eqbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749892517; x=1750497317; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xAvD+1q8T/M24rLYq6SsWUhjFGHiNFVDMXIDxaXAbBM=; b=bFPdnPJ7uelXODbwAkYcRJYBIB1NqNDTZpQ46ERTIkOOckJlzdAWB/FAueUehbjyWn WW07/vb8b1nNhlgCkDB/dfxZwTwFke3/Z0qGKzv37kwVP4Wq1vVSywl9UHKZXF8qRVKG EdHlFVGDQomhWLxXMA9FhabUcHFvTsU00buu5G9DpZZmMgVANnd6/FEpJLUh71brATxL CwC6y2gWal05jTU97PHUn3v+3wxzPw9p52JlOKqRlQH+Mwo1CRAR1U7eGm/a+zX1/Si4 lcgmsvVOc1E0OqPxG795QC1CNUetNmRekERg0UECwYYh9D1gev72FNe2ITbTJBGJfi81 U2ZA== X-Forwarded-Encrypted: i=1; AJvYcCUQt751zVtiLu1PwD707kw7DND8H9r8DFDTGJHD1WT/mwMKDax7dCouLedwIHX/n7Pp+p9cEipzE4c=@vger.kernel.org X-Gm-Message-State: AOJu0YwQM1lTePaCKuQVqLfwOdS88pjdix/ueqT6HPOxiYz2WAbXSXBl x6ZvtJjkbj03uUY8jc3itZ4lea+kaKbctpzKFQ57dHwYKGNNVUCJRvhONDNOO5lDenM= X-Gm-Gg: ASbGncuRzpglijmBsgybXfrJodugfEvRBlT9UZHFVDduaxl0wbpmTByubMV5yPj1ie7 Nnrelq78rr9QoBp1fOiGuEuypBDxeEOJ7Ibu91mYgXqsKHHmFDwo4g/RFOrpjskR0OFgZf3aVyu ulOKdp+5H0CYRQyR84iUcW94a0WjKQMhg57mZqZFuuHQahXI1YfLdnHzm5ebsc9miySbXm8PxPC pwt0+bWST76QMdOD+xHvd/wuAhlIO1k+7P9f9zldEZQ/lNQKBTL5Ga3IQu1XbOfHVcdyQ/R71p+ aF2aFeCY+eO4T5b+DOZhu9vRjRcX+DahPMt8vc/MedhH+mr7iaqgVNR9C5sWRi8rp51eBMkDh0o kuC6l0yimf9BKC2KsbrKNJuUq X-Google-Smtp-Source: AGHT+IGOG9HBWv3d+gV+f7KJlI3h3z4Kx/asseIF/i31+VU/itnDpzuPq3XTnisDhRpUkZh6dsrzow== X-Received: by 2002:a05:6a21:348b:b0:21f:8d4f:9e3b with SMTP id adf61e73a8af0-21fbd495049mr3668790637.7.1749892517466; Sat, 14 Jun 2025 02:15:17 -0700 (PDT) Received: from dev-linux.. (syn-076-088-115-008.res.spectrum.com. [76.88.115.8]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7488ffeca93sm2969630b3a.20.2025.06.14.02.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Jun 2025 02:15:16 -0700 (PDT) From: Sukrut Bellary To: Jonathan Cameron , David Lechner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matti Vaittinen , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Angelo Compagnucci Cc: Sukrut Bellary , Nishanth Menon , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v4 1/5] dt-bindings: iio: adc: ti,adc128s052: Add adc08c and adc10c family Date: Sat, 14 Jun 2025 02:15:00 -0700 Message-Id: <20250614091504.575685-2-sbellary@baylibre.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250614091504.575685-1-sbellary@baylibre.com> References: <20250614091504.575685-1-sbellary@baylibre.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The adcxx4s communicates with a host processor via an SPI/Microwire Bus interface. The device family responds with 12-bit data, of which the LSB bits are 0 for the lower resolution devices. The unavailable bits are 0 in LSB. Shift is calculated per resolution and used in scaling and raw data read. I have been able to test adc102s051, hence adding just the missing ones in that family. Lets reuse the binding to support the family of devices with name ADCS, where * bb is the resolution in number of bits (8, 10, 12) * c is the number of channels (1, 2, 4, 8) * sss is the maximum conversion speed (021 for 200 kSPS, 051 for 500 kSPS and 101 for 1 MSPS) Complete datasheets are available at TI's website here: https://www.ti.com/lit/ds/symlink/adcs.pdf Co-developed-by: Nishanth Menon Signed-off-by: Nishanth Menon Signed-off-by: Sukrut Bellary Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/iio/adc/ti,adc128s052.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/ti,adc128s052.yaml b/Documentation/devicetree/bindings/iio/adc/ti,adc128s052.yaml index 775eee972b12..392b4a3e867c 100644 --- a/Documentation/devicetree/bindings/iio/adc/ti,adc128s052.yaml +++ b/Documentation/devicetree/bindings/iio/adc/ti,adc128s052.yaml @@ -16,6 +16,12 @@ description: | properties: compatible: enum: + - ti,adc082s021 + - ti,adc082s051 + - ti,adc082s101 + - ti,adc102s021 + - ti,adc102s051 + - ti,adc102s101 - ti,adc122s021 - ti,adc122s051 - ti,adc122s101 -- 2.34.1