From nobody Tue Dec 2 02:29:51 2025 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 AB1632DCBFC for ; Wed, 19 Nov 2025 19:15:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763579758; cv=none; b=fKDI8vQDA7vA+Q0x8bHCOWYMK7fTeDGUDK20zrzwPHOMM+jkDWksnmX/ZkajCEtqFTTCp7yKij42RGzF94/6c3Gu4oxqHXha5TbQ6GtMsP/8gRg+L/YphMqfFGsnmyA5l2EZTcx8Th8CIbl037Gtf8z5KZm/XYJI5/hE5jVkGo8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763579758; c=relaxed/simple; bh=OhAPqaXLXCmsNIfo7/tILARHNy+GrLJldAAVbkxmaW8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=e46wbxEaFdaBHma88i2emLH4ZRB0ZbvtVWJaDoUqjy+/sGwYkJDJhwf2ZdxXY12588YWG5i3vi2EwRuWB4ZNn8SUowHSp9iGDA1nVNkc4zWLMfUD6Dzt8ZgW7E7Uae91vlq6g7isOPNgFiWzuJcmZl4ussQNA6ank6qR8wJnlJc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=GmR/5M8h; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GmR/5M8h" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-42b3720e58eso62569f8f.3 for ; Wed, 19 Nov 2025 11:15:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1763579750; x=1764184550; 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=tZahglen05z3CRdzByKKHS/uCh35Ibd/55Vn0qmvXT0=; b=GmR/5M8hKGcY/fmoclyUwornqytGUr+nWy4thm6HDc86qBtUDO/E08PDJCqRmG1Kbc TRSOKCz9GfI6E1ZTQqXPWInacqctUxzjBzNVHZuqfcQZdqzOScdLfzJ97IAiXy3V2yEE oI5fp2vIJZqF5UfRbmKm6jDZLlA7DJuVNQZNUr/Dfqet6n3nv55aY1e89EBXS6Ed9k2c +QGDtyF5A8Un8Vtz87iGeFRQm93twjtEfsPUQ3DYAGLgp4SuuqwZ0X1SXOlytJ+eOrYc WabArJqzXzjQnd1E6Hckf6u0DkmufpadnyBfWiaAO6a8ifkmaXbmVsfthBv6VzZrmWXz 4k0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763579750; x=1764184550; 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=tZahglen05z3CRdzByKKHS/uCh35Ibd/55Vn0qmvXT0=; b=nZZJ8prMksrWxHatZbIq84bajB+/V+cHEsKgZP65Pi2t7qq4xL5YPvZfgQkCT0l97r 7nXdDJJiZiiPuoysgIync8E5UP5Vt4NHG22NKByOFqOssAljzd5r4eMg8RUNTSaG0+2d Ylvt/Qeq+O238bGRh8aYhlnieqErwNgd9nREXI2GuQmOWOPuSJ9tC3YQ5543kpgt+5is mDgO63R4x0VcLy2dM4VIWRivfFivngi0/Nc62ctWAcXThM63KQdLxaaKEegU1zGe/5KK JLXWHiKqCaQNJywhbHwz9TdRT0hJAYFVw6kFd1GJyk4cIw4lNNXvOvRC9agwe9RTdycV PgLQ== X-Forwarded-Encrypted: i=1; AJvYcCUYi+q20JuVt8VLKyWcun4xbxL2M5ZHekeZ5WoUbvB9SJU3v1uPPzskUC86RPfaZFNaTw/NNFmyK0iayNw=@vger.kernel.org X-Gm-Message-State: AOJu0Yw4T4pgvucQ1iUleMtuq3XS1jYhfEzAOqKEEfJTjQEVgU4Z9mpk KTlbobEWbVmBUILTsAAunwBJt77UIRc9inImCoqEyR4xOub64RHF+2O3srlusFRM0Y8= X-Gm-Gg: ASbGncsunZbXa6kdQOQW0sh2Ehr76jU9ifRHf6M7E/sXQZmi8iHwyete5I+p1bb2cvn eXF6GtEDQXb4Nvaq34g+KvkungwBq0ttwk+n7V9rt7f55IRqLo6HhnTenY2F9j5G7eSoaeZ93qJ xarUoYaVR5s3aDrLUUQhz2qFAluREtGoAbNValf/EmTw2seT/6dFGMPPkH6MG+BFMi6joz1ePD6 yyiLk/D1CbooYrVyu2iImq812flWuIcb0p66UeqWr8oQ2kAX1rO4o6Lvu0D93koiNKZo9jG9Rkm f8NZ69wj4FaNbPL54D86C6zcgz5/ElfdzomrMmT8GR4svhJwtTxmssnkPnaMuZcheTORC2zNGD3 pUcKoTlJ2R1LUa1RfItqMxHUWR16UTJSn3kO0EzfwBctYoK/ol8b/cuS05JPhMR9N8/iWDN+RbP 3bJMfbPnw2O4no+DaE591YKVW52gpdo27qXR4CjoDXnQ== X-Google-Smtp-Source: AGHT+IFKE+Ky/K++z5OHPA04EVmi5tIsUEcEojQOiVrA+eQqY31INhQV7qHFlCCEBZCKCcJw0G3bFw== X-Received: by 2002:a05:6000:3106:b0:429:8d0f:ebf with SMTP id ffacd0b85a97d-42b5938fad5mr21012521f8f.42.1763579750166; Wed, 19 Nov 2025 11:15:50 -0800 (PST) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:37e6:ed62:3c8b:2621]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42cb7fd9061sm788246f8f.41.2025.11.19.11.15.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Nov 2025 11:15:49 -0800 (PST) From: Daniel Lezcano To: jic23@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, robh@kernel.org, conor+dt@kernel.org, krzk+dt@kernel.org Cc: linux-iio@vger.kernel.org, s32@nxp.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, chester62515@gmail.com, mbrugger@suse.com, ghennadi.procopciuc@oss.nxp.com, vkoul@kernel.org Subject: [PATCH v7 1/2] dt-bindings: iio: adc: Add the NXP SAR ADC for s32g2/3 platforms Date: Wed, 19 Nov 2025 20:15:44 +0100 Message-ID: <20251119191545.46053-2-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251119191545.46053-1-daniel.lezcano@linaro.org> References: <20251119191545.46053-1-daniel.lezcano@linaro.org> 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" The s32g2 and s32g3 NXP platforms have two instances of a Successive Approximation Register ADC. It supports the raw, trigger and scan modes which involves the DMA. Add their descriptions. Signed-off-by: Daniel Lezcano Reviewed-by: Rob Herring (Arm) --- .../bindings/iio/adc/nxp,s32g2-sar-adc.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/nxp,s32g2-sar= -adc.yaml diff --git a/Documentation/devicetree/bindings/iio/adc/nxp,s32g2-sar-adc.ya= ml b/Documentation/devicetree/bindings/iio/adc/nxp,s32g2-sar-adc.yaml new file mode 100644 index 000000000000..ec258f224df8 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/nxp,s32g2-sar-adc.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/nxp,s32g2-sar-adc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP Successive Approximation ADC + +description: + The NXP SAR ADC provides fast and accurate analog-to-digital + conversion using the Successive Approximation Register (SAR) method. + It has 12-bit resolution with 8 input channels. Conversions can be + launched in software or using hardware triggers. It supports + continuous and one-shot modes with separate registers. + +maintainers: + - Daniel Lezcano + +properties: + compatible: + oneOf: + - const: nxp,s32g2-sar-adc + - items: + - const: nxp,s32g3-sar-adc + - const: nxp,s32g2-sar-adc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + dmas: + maxItems: 1 + + dma-names: + const: rx + +required: + - compatible + - reg + - interrupts + - clocks + - dmas + - dma-names + +additionalProperties: false + +examples: + - | + #include + + adc@401f8000 { + compatible =3D "nxp,s32g2-sar-adc"; + reg =3D <0x401f8000 0x1000>; + interrupts =3D ; + clocks =3D <&clks 0x41>; + dmas =3D <&edma0 0 32>; + dma-names =3D "rx"; + }; --=20 2.43.0