From patchwork Tue Apr 1 22:50:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 14035397 Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.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 C83EB2144CF for ; Tue, 1 Apr 2025 22:50:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743547840; cv=none; b=MKKGy6XwpLL1G+t+1wZO01ZiTOnY06l3cXGSDtiB+h5bLhSwuBNicxnrh4m23FvE9tUTQHHgc6l/se+Jd+63ug5idOF9byqtud9TQ/q8KDjOnbtQ7elDCHajnWpz+tJn5Vx2vvmys+weKo0/j0PexHsdNNXht7kz9tp4bx00XuE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743547840; c=relaxed/simple; bh=wllrbZcObwGAw2NDOjEh96guXeIJUG4ySHs9Mzrn5qQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HB/9Lc5ZRjF2ICaUTqsh5ilZwl7cBtJ1qRIXEr2b75dKPuclmOSOZNBKkO+sgpUl7nAYIppsKpu8uUY6k5GvT/x4P/wn8iLsaEo6DS3C4ENCIUYMFDQdX/n7xKKmKpv/JLi6H2xaH/o2ZYikp59+ajP6KrjF4oZChMwkFlqUANs= 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=bCuzmVoc; arc=none smtp.client-ip=209.85.210.47 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="bCuzmVoc" Received: by mail-ot1-f47.google.com with SMTP id 46e09a7af769-72a4793d4e2so3806988a34.2 for ; Tue, 01 Apr 2025 15:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1743547837; x=1744152637; 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=uY3LwKeQSjqjV8tkE42G4HURVFmjP7EU20VDalM/2sI=; b=bCuzmVocI9E3Eq/hhATmFlmERpucWHnxqY0UqiM/EG3dxoeB6UkKqDekxdcgg0ljDR 3DikBxW7Ksh6ThBFM1OB16YeoR9E56SWFvOAHplXc13TmbswXBAK3Vld3yvJmvFzi44y EzPJf5QDBFxAL9aow0WhDODRlVWuPjo0hJYlESat9yIed6MOIP6lPOrx3Lv2wQAtBnKp 2DGZ6cARoog9yxTOA+IcIdcf73p1UAbA6NDJSBiZZlDM88Pre64CRtqxvk5VZvb0NTtN GQbQcu+hUGJtM9TLZMKP4WxIWpIiK7bHV/Nzr/KO+8ekyYdNU3k3w33JUzlz33PPfGaU lnFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743547837; x=1744152637; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uY3LwKeQSjqjV8tkE42G4HURVFmjP7EU20VDalM/2sI=; b=DDg1LBfWro35toLmIIocc1FwipYkU9CZnd4tVA8GNEmClXKOWx1gIsKSEpxqIA0ia0 J4pHz50OmBBhiWkRH9IL2o5OZjMeTCXtAaKWYEPXMIfiKWglI+6MTEUjMzGBxwVu94/g kkdleawD+ldkwnbBR5bmG4Dtue7WD12mzz4kDI+qdmFUenT6n6jW1vgqy6Y1aCJNpfwB K8TtvveSAq3aB2D4WE5vMbqHXHC+NOUcnsRKsJT9XRnZDyo3zrpoAYdTkOjyn2lr049L eW/+OKtgs1WjSD0byIXdRbhYY4GNeqPsoOIdGmeYNTsHBD7ZZmsAsQRhTExMOKWDK+yQ FCLw== X-Forwarded-Encrypted: i=1; AJvYcCW3/wHdUcJsW5YLbmnTcqlSonsfaM1+PgwLCXCVAIRR/TzCN+sKVWIbDX5HIKpfUDGSEEP/8kBDct4=@vger.kernel.org X-Gm-Message-State: AOJu0YwiRZh6ADGZpGdittjnRYG9wEBLOlxS3rh5Cluq2DQgk8cPQY73 zJYLJ1ros7ZcBQX1/xuVNDMzgKnqte05GQ3hX5wrrjYumcN4NuRnU1H+fjNx0eI= X-Gm-Gg: ASbGncuW6TwMiwW+oJYww0KUXi8IgfpCXWR2LhG55fqxPubklrGPpTfT5u+YGZwHl/z nFN45IeGuOtVmw6OgP0IdG1b+o+TvSmlnW9nS4bJ9wSGlD60jweI/vnDCifr2Q1I+YA2Uk8aRs5 bqhY1xVGJXyE3qJPm6y45zN5xd6ZETY/uxrjvUd/FKav38qc0bHYYazvPCFt08vahwqEDqwezL+ ZwlV+/P0B5xIM6xkqxU3xuX8MxfW8Iyf6wiR85sqlNAP6HhJl3PNod3YFlsfXBkp1nW3PFoZuIo 9UJ23hT0+MraYjjf5BAoGwURsx9kcIehFZTKcGzocypTLZ+4ul/ISuRtKOk6VJg9dfFKB8Al/qy / X-Google-Smtp-Source: AGHT+IFDp0AhTF61Q48nqN3yJ3kD3UvIIm3ZCEgDN5dT9w+U8dAZ7ndt8F2LawR99JrCPDj14Qxqeg== X-Received: by 2002:a05:6870:6110:b0:2c1:4e25:e67d with SMTP id 586e51a60fabf-2cc3822a497mr2416377fac.24.1743547836885; Tue, 01 Apr 2025 15:50:36 -0700 (PDT) Received: from [127.0.1.1] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2c86a860267sm2541894fac.36.2025.04.01.15.50.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Apr 2025 15:50:35 -0700 (PDT) From: David Lechner Date: Tue, 01 Apr 2025 17:50:08 -0500 Subject: [PATCH 1/5] dt-bindings: iio: adc: ad7380: add AD7389-4 Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250401-iio-ad7380-add-ad7389-4-v1-1-23d2568aa24f@baylibre.com> References: <20250401-iio-ad7380-add-ad7389-4-v1-0-23d2568aa24f@baylibre.com> In-Reply-To: <20250401-iio-ad7380-add-ad7389-4-v1-0-23d2568aa24f@baylibre.com> To: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org Cc: Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , Jonathan Corbet , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, David Lechner X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1749; i=dlechner@baylibre.com; h=from:subject:message-id; bh=wllrbZcObwGAw2NDOjEh96guXeIJUG4ySHs9Mzrn5qQ=; b=owEBgwJ8/ZANAwAKAR+K+IyC93wDAcsmYgBn7G236w79skU8tariQuUPZDNW+cVxj4WjqBK51 SAIlOIvdJuJAkkEAAEKADMWIQSKc9gqah9QmQfzc4gfiviMgvd8AwUCZ+xttxUcZGF2aWRAbGVj aG5vbG9neS5jb20ACgkQH4r4jIL3fAMwMg/9Edgch9EspXTEYY+1JOhAYpgOz7/utZQkuEugP1+ WwGFOvvz3YncY1JSOHxF1TmFSzva8wuhTzJIBcQegux/n4r3/3sx89zqemdZXUhd/HGu8C9lxg8 kUbW+hr48TcPubsoCH43NMmedD028osLHS8r9Dn70MpvCOT/rGmsCMHQjgXGKoPNeXVOmQFH2rq tOntr5Uy0Tq0QFnTUKh/WhqEiBcN8m0pp8QtHn5/b6sOkTI/2iPNFeK8TSDl2NpYZlmyqFVaHHI 7I/FDCdm7li0ksgc80/NcF686dsh2fDXTjcKJMaB0kawSXWMl1K7GfSTQJQYOxHmEr8cI1ZEKNu s66jwGniuIFVo/+oBarBcXjMtCCB5ZNvuRTHWRn4D5Ivi37y2fYK8qgWAyT4SxFdobT4VYXRj2M KtMSMoJ+F3xE9zTBbwX0kYduwfQbwjFp+X82PdGbmYXXaSOnzx5glS94Z/eLVeYRPd1FOfbQoup v7319GkkzQm6ZTd9q8yVn56dIHnPdNIFxQr9HtuQRhibTIYIoprOtFokmkDy0rWIvzDAIqfrX7w 4Dj3CNXlRjX1rG9wDsF1o+l3WZBeOH+ArChguo4PrOzybCsf0abvL5HIpNuQQ8QH8x6cWpKVUj1 LL+QynRMc1Sm7ulcHfPuGhzaiN71DRyd5rt17XvlyhKw= X-Developer-Key: i=dlechner@baylibre.com; a=openpgp; fpr=8A73D82A6A1F509907F373881F8AF88C82F77C03 Add compatible and quirks for AD7389-4. This is essentially the same as AD7380-4 but instead of having no internal reference, it has no external reference voltage supply. Signed-off-by: David Lechner --- Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml index ff4f5c21c5482b77ee2774b01ad6d426e68cf207..8dae89ecb64d723dcf2b4af1e0505fc5db49595b 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml @@ -25,6 +25,7 @@ description: | * https://www.analog.com/en/products/ad7386-4.html * https://www.analog.com/en/products/ad7387-4.html * https://www.analog.com/en/products/ad7388-4.html + * https://www.analog.com/en/products/ad7389-4.html * https://www.analog.com/en/products/adaq4370-4.html * https://www.analog.com/en/products/adaq4380-4.html * https://www.analog.com/en/products/adaq4381-4.html @@ -49,6 +50,7 @@ properties: - adi,ad7386-4 - adi,ad7387-4 - adi,ad7388-4 + - adi,ad7389-4 - adi,adaq4370-4 - adi,adaq4380-4 - adi,adaq4381-4 @@ -213,6 +215,15 @@ allOf: properties: refin-supply: false + # adi,ad7389-4 is internal reference only + - if: + properties: + compatible: + const: adi,ad7389-4 + then: + properties: + refio-supply: false + # adaq devices need more supplies and using channel to declare gain property # only applies to adaq devices - if: From patchwork Tue Apr 1 22:50:09 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 14035398 Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com [209.85.160.41]) (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 8758721A42D for ; Tue, 1 Apr 2025 22:50:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743547842; cv=none; b=K1pxFRRoLQiv7KvzUo3tDd8NM2N9v5MKfQ1C9hYlSmzsrfGOcsUuJHHXKibhLIXeXG5p2YtTJ6feETO72v2ghmjXmADdaUUfFstCnXwKE+pUPZJDRHwOFjDKa8BYL1gfGyW7G+yTybfaYwzV2fUdyphHOI4iPrusraFc9keoeZ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743547842; c=relaxed/simple; bh=TFjwmH+xYODJDHRu7+6zpGJURRvrNkpc2t3jrzy9BBE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FHRntvbe4aL4li076u5NWfjLVIGu+D6uVVjMthcoZoCFNnLFgOalSQE7WfcLjljHkA+BFnUfJ7tBacYOFQPHqGMSPCDXcbeOH5BID13pzPfMd9hoFiNSpWXYaIrUDDrgv5e10gClCVto4RaA9kA9sHW+xC2xZcQIoDo3p0lck6U= 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=IouOL8ae; arc=none smtp.client-ip=209.85.160.41 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="IouOL8ae" Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-2c1c9b7bd9aso3670793fac.0 for ; Tue, 01 Apr 2025 15:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1743547838; x=1744152638; 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=eBF8hIhV/gGGIF9CyDabCpTI9anOcgSekPdGitLDP/E=; b=IouOL8ae+gkUuB02wWJOcZGYcdMYFCWTgWOPG33AAW+egF19ZOAVYDfGMtkQgUnsBd RqljJ31XtnJ6aKIju9pzR6LjXm3nmvLXOg8/H85tpQSRefvsWambpXT2NvuEoCnAsSwV +LUXTgOMg0a/2QqnVkwcJBMMnqdFvvtML5rGW+vzNt/kpqjB1nAL0B7Fhr9oAn6FPiYf Ylq0U5J6cE6NI9vkki1y7roP7EaD5v+dHLjGc6Ue4KRTDA1IofZw+R+Z501n4pDL3lOx WmhhfAO6PY+58BB2+3sOIbaT52q+jVHoCYFVxgWEDEt3Tl1BE5/QqbiNyGHA5sHo83Kz YeiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743547838; x=1744152638; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eBF8hIhV/gGGIF9CyDabCpTI9anOcgSekPdGitLDP/E=; b=D/xS8SPeV5lsLPUI+EKgwTp/WL43gRshoOCqb838PNXM0za73eEIKbJYR+R7Szi466 4VtsneK2G5WS3gKsEKhTTAi/AZ1djx1SdZPH9WGmrWm+8AkwjDCLV6J6ULUuNquDBj9N vkhfuQjZEE5J8n9V64Q7wDAhklx1bpCs8DW+Tk52VOZXl9CXA1X5xnBhmeRGuYbQskf3 9VmkLqbVUaQ3GULaJs2IIo/FECWkDOI0Jpe3S1eWV+6LeB0z2hskORTwuI2ZBDLAgds3 ilnbe0D8Duu9xkhLc8+tdD+BP7d08QCpcxKXr750dmEX0tazByw46fRwjilXz5idYD9m LxdA== X-Forwarded-Encrypted: i=1; AJvYcCXlCY6YJvp8abaH3y5m2czHXZp3Qv8hYjHfGVJAwKHzyUtqqfY/Uk0WXufeo1WJdi3LnDWkratoD3M=@vger.kernel.org X-Gm-Message-State: AOJu0YzJj7787VNEXcpaDGHP0PDKDwjbhvuesTO9Hj94rG/ZiygyOvD7 SyG99SSrS5Puo+qwnATX+sKfEv43eS5Cp/4CgoIvZGl77KQaA6+fgijCsx7c0Fo= X-Gm-Gg: ASbGncsF0RgFCq6qCv9kpF6lNVDcKmROYnfc3FN5t17e36XeocWpYFcaFwFOCBWt8IX 4ZC8qt7d4AKh5jd49J8df1PbDhg0sL7gehVOGzmEJClYj3qGkMtcMWCsbx1UUn1I715oSEZCsnB mZzRZJ5p/GTV+zk4bHHlwSx7PQsExwPWjCIWkGp6HnoWaksE9i4eRXnV4oUFbOwsJTwSPhLQ3hg rw5Xc3FhzpQ3J6g7mNn2191YyZ1uBok63GjXULbDA20PZLYJFBYusodP4kpEOeUI+13dYDwC3OH DajY9e+FhNij0xGLzQGfXJTMqnP5SO8HKUI0dfmNWGp5VuIMdhL9Ad+Go18Qx7MSl9sfZb0Hcds C X-Google-Smtp-Source: AGHT+IESz/E4eI0MhmXQMQkBoqB2xjogbiGsCXXe0qD+Mbg5ugdkYMFO/KDTISnaHkB68zUZBZxAog== X-Received: by 2002:a05:6870:9a22:b0:2c1:3d93:c192 with SMTP id 586e51a60fabf-2cbcf7e2558mr8560619fac.37.1743547838707; Tue, 01 Apr 2025 15:50:38 -0700 (PDT) Received: from [127.0.1.1] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2c86a860267sm2541894fac.36.2025.04.01.15.50.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Apr 2025 15:50:38 -0700 (PDT) From: David Lechner Date: Tue, 01 Apr 2025 17:50:09 -0500 Subject: [PATCH 2/5] iio: adc: ad7380: rename internal_ref_only Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250401-iio-ad7380-add-ad7389-4-v1-2-23d2568aa24f@baylibre.com> References: <20250401-iio-ad7380-add-ad7389-4-v1-0-23d2568aa24f@baylibre.com> In-Reply-To: <20250401-iio-ad7380-add-ad7389-4-v1-0-23d2568aa24f@baylibre.com> To: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org Cc: Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , Jonathan Corbet , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, David Lechner X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2396; i=dlechner@baylibre.com; h=from:subject:message-id; bh=TFjwmH+xYODJDHRu7+6zpGJURRvrNkpc2t3jrzy9BBE=; b=owEBgwJ8/ZANAwAKAR+K+IyC93wDAcsmYgBn7G23egjxV4yz3dj26AK7uLICaoldkTDiVP/xg guuGaexxGSJAkkEAAEKADMWIQSKc9gqah9QmQfzc4gfiviMgvd8AwUCZ+xttxUcZGF2aWRAbGVj aG5vbG9neS5jb20ACgkQH4r4jIL3fAPr0w/9EkuROxujgEl8VHDj4h5nwtZmLdOqXy00Ra5uSIV l5d1vmMRw6yCTUAK0SPtgWfxerm/fCf+anaH0jr7QIgr3B72JZ+HIU+dY5GFyjI9hGGR+Er00qy cvkwd0EQxzV9gplODJ6+b2K2TO6OZjIyK7JH/UtxvOZb95mVEecYG1KPJmMDWw3OLXDS+xdimrF 1RuD7e/JiyX19/Bb7jgRRFWboRa83eUF3ONzDWalKc5aI+f1EcGfP47tnAwHrNUQ6qKHYlJINBg jd2Jkh1jq4lkF+OOzHRLN5MlHSqSOberl1Ws8q2EBxCH7pLaaXoySE/rORj+CJKszygf0JGvN37 AaXbvRzvDSylQRIyfzNWzaVCvkLlw7YtJbdqgz1LcWsVUkbOBi20G+hsC7mCDy/CIIxMjj5KrKO q/sc0KjzAUXoItTWgy0wyKFgQwf0LR2gfxLFK3TZPy3fhhoN02LSgwDGh6PxCxx8ipi4eWux7Ff 6CbkgVjikdPNL7/ffhwtKau2joe/7Fso0PADHTCGGd8hlYtsj5rnEjSOMt8H3QNyddd+EKdERnV WAzVzsY9yzEMJTqtaWHc5J1WqlmDliY7E4UEfIs1kbzhWwc4JVsFtbpjrYv8v+6JnWil+hQYWhm fUsFEaPYsLfQeRtc0laxu/yrJnmblapSNE3vHGW0/WtE= X-Developer-Key: i=dlechner@baylibre.com; a=openpgp; fpr=8A73D82A6A1F509907F373881F8AF88C82F77C03 Rename adaq_internal_ref_only to internal_ref_only_adaq. There are non- ADAQ chips in the family that are also internal reference only, so the adaq_ prefix is misleading. Signed-off-by: David Lechner Reviewed-by: Nuno Sá --- drivers/iio/adc/ad7380.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/iio/adc/ad7380.c b/drivers/iio/adc/ad7380.c index 4fcb49fdf56639784098f0147a9faef8dcb6b0f6..18ed07275be8e031e54f3595f70afe47514084cd 100644 --- a/drivers/iio/adc/ad7380.c +++ b/drivers/iio/adc/ad7380.c @@ -119,7 +119,7 @@ struct ad7380_chip_info { const char * const *supplies; unsigned int num_supplies; bool external_ref_only; - bool adaq_internal_ref_only; + bool internal_ref_only; const char * const *vcm_supplies; unsigned int num_vcm_supplies; const unsigned long *available_scan_masks; @@ -806,7 +806,7 @@ static const struct ad7380_chip_info adaq4370_4_chip_info = { .num_simult_channels = 4, .supplies = adaq4380_supplies, .num_supplies = ARRAY_SIZE(adaq4380_supplies), - .adaq_internal_ref_only = true, + .internal_ref_only = true, .has_hardware_gain = true, .available_scan_masks = ad7380_4_channel_scan_masks, .timing_specs = &ad7380_4_timing, @@ -821,7 +821,7 @@ static const struct ad7380_chip_info adaq4380_4_chip_info = { .num_simult_channels = 4, .supplies = adaq4380_supplies, .num_supplies = ARRAY_SIZE(adaq4380_supplies), - .adaq_internal_ref_only = true, + .internal_ref_only = true, .has_hardware_gain = true, .available_scan_masks = ad7380_4_channel_scan_masks, .timing_specs = &ad7380_4_timing, @@ -836,7 +836,7 @@ static const struct ad7380_chip_info adaq4381_4_chip_info = { .num_simult_channels = 4, .supplies = adaq4380_supplies, .num_supplies = ARRAY_SIZE(adaq4380_supplies), - .adaq_internal_ref_only = true, + .internal_ref_only = true, .has_hardware_gain = true, .available_scan_masks = ad7380_4_channel_scan_masks, .timing_specs = &ad7380_4_timing, @@ -1847,7 +1847,7 @@ static int ad7380_probe(struct spi_device *spi) "Failed to enable power supplies\n"); fsleep(T_POWERUP_US); - if (st->chip_info->adaq_internal_ref_only) { + if (st->chip_info->internal_ref_only) { /* * ADAQ chips use fixed internal reference but still * require a specific reference supply to power it. From patchwork Tue Apr 1 22:50:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 14035399 Received: from mail-oa1-f53.google.com (mail-oa1-f53.google.com [209.85.160.53]) (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 6AD9921B9C4 for ; Tue, 1 Apr 2025 22:50:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743547842; cv=none; b=dAUTdu8hXXU0yAVEzgMO6UHx8Ua/TFkm/4Tx9iHdJNzYfRVRFhs7qgX0Mpjt8Go+M9DaRPwsj4N8uGxZpu4klhbzfFTXz0PnMPjAkQhiCC3kAx9uFs8UZSVzF+THameyN1h0yxBZpETtLKtTC7ragkZm9hsfhByd5obntHWYoRo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743547842; c=relaxed/simple; bh=26skPYTIDO2AQWdbdEvqSLF0n/pqCouBi1jNjiWw2BM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cCD3Ky6YcWnHhctciVNTTWf8aa24MGGpxkEWXAHgrwidX4yUm5UyL0lxlysMHbmMelxUAngKhdk56AdDm0n0RjGDNnb31kFYzGsK8okfqYlVE3srt/crHeRyBOBD7oRT3HvJTFBzSnAw8HuqFapB71BztJ0arq7Z47PX1BhnhHc= 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=elJQnYEb; arc=none smtp.client-ip=209.85.160.53 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="elJQnYEb" Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-2cc44c72959so622598fac.0 for ; Tue, 01 Apr 2025 15:50:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1743547839; x=1744152639; 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=hAPUfVaYgqcTtf3Fw3hrd4uLShjdjkQ4JNJiBPq4EBU=; b=elJQnYEbcJIcB6janS9iukEO4PEItaxaIKgyoFLbhDoXx4RdmBbSiy4elS3DmmIPxj i0j+YEuHYUPRjBbaCaubFtTa+h383wmvA1UIyHPQOrmXSgmlHA/WiqSIRaUduZi7eRiB 1ADi5ISuUdLbfFS65q3qL9y/IABtqI5tB1kNvmiw4TUeAHZYeSsBexT4LzBBOxPTEFlm NEe4mc+JaRaNRjMq0RUiIVfiweokf8Zl6V9o651EsRsVOq5Uvnyq0jOv9FbaHdGrxYzz 9XxE1rLipuVOfAb3ld9zAWsyUhLYxc0XJJSyFyWZk9upetRxMhaNz1holDXSQSomS0D+ 6wtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743547839; x=1744152639; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hAPUfVaYgqcTtf3Fw3hrd4uLShjdjkQ4JNJiBPq4EBU=; b=aD3Fw2e4axlw6EJ1rteoOutiJ0UkfLvZl2v48SRAlIbteQM76sqEaGboJLX262/FaA qb4aPn9TkJi3eQAr0HLfH/DTZ+b0DPPeyKBt/PHqQQmcz+3Ru5hQZbWAms6nZNZx/rC0 6TyuGHOQf/u6ewgBFUNmrOq6ANctSDcJIYahNk9v+iXvicIm0suLeISOKjrAtfy3UdgC 4+uAY5raHr0trwqWuWtvmwcA7v+kBExYDMvaoIMfePpMORu6bPp+xps6cMf0pyjRxUtW IJ0bBtDl+x8hr40111BX4iBTiq185QD8qSfVfPrmtn/Mg2FI2MG+8KByPotYzxXVbYJ5 4LGQ== X-Forwarded-Encrypted: i=1; AJvYcCXRu33GR6FM1BdPlafhFVtcdO29HRf8ooP8bqusxaxY0Y3QTj2y/V+/xIacKpahmbKbZwN/9r6jKQs=@vger.kernel.org X-Gm-Message-State: AOJu0YwhOPIVRu59SDG//xLRjcgYj0GYmgrf/Sfk6dFt1EgPzU5sxrpG WglyUcyH3eLcaN3Yq0fLEwmbVDqohLnEhFweWvwWOprGVVZYrUFvf12svaHp5kA= X-Gm-Gg: ASbGncupzQpnXXJdesL7LLYPJJm+mnig9pVbgX8RqgcLhFp4lhY0C7u44yghdLU7wj3 jA8gMXmIFsIJ69ET3g+Byns3TYtbyd0LHJuXy6N469osFpaH4ilXv0yRTr3Zu7vamTaqVsxdhRG YSnzPMq9LUhQyuiyjd3ImIX4pv/OHqx7TZSuahgg2Rrc40ugtsFuNdALJ5YLP07mKG+/ZUWNZZx qPLbIQXGP6iB7H+OzCQStUw7Ylx7DTqz5tXRj8A+JjiLUfJgPWBnTslDQ0gA3bRIcyWCzDM+MqN NfP6ZRmygecYCfPgg0vFx/eD3m2Q8K5yV1h/nSpcyW3wuBYYy/HLu0+uEI5rkCI9oEar7Cewn7H b X-Google-Smtp-Source: AGHT+IEbRTcR6d9BWAkBdExOHFkXhbJTtPmUZ+c2U6r/s6m1E9zP8Pf27ssjD7x64/JheCnxNqzuYA== X-Received: by 2002:a05:6871:8917:b0:2b8:f595:2374 with SMTP id 586e51a60fabf-2cbcf743672mr9486417fac.36.1743547839561; Tue, 01 Apr 2025 15:50:39 -0700 (PDT) Received: from [127.0.1.1] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2c86a860267sm2541894fac.36.2025.04.01.15.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Apr 2025 15:50:39 -0700 (PDT) From: David Lechner Date: Tue, 01 Apr 2025 17:50:10 -0500 Subject: [PATCH 3/5] iio: adc: ad7380: move internal reference voltage to chip_info Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250401-iio-ad7380-add-ad7389-4-v1-3-23d2568aa24f@baylibre.com> References: <20250401-iio-ad7380-add-ad7389-4-v1-0-23d2568aa24f@baylibre.com> In-Reply-To: <20250401-iio-ad7380-add-ad7389-4-v1-0-23d2568aa24f@baylibre.com> To: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org Cc: Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , Jonathan Corbet , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, David Lechner X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=7559; i=dlechner@baylibre.com; h=from:subject:message-id; bh=26skPYTIDO2AQWdbdEvqSLF0n/pqCouBi1jNjiWw2BM=; b=owEBgwJ8/ZANAwAKAR+K+IyC93wDAcsmYgBn7G23+fpllnvajujdFYWvihcUAddd6/sJprX3a hDEvB4GJLeJAkkEAAEKADMWIQSKc9gqah9QmQfzc4gfiviMgvd8AwUCZ+xttxUcZGF2aWRAbGVj aG5vbG9neS5jb20ACgkQH4r4jIL3fAPB/xAAvjJQJSDg8do1V8biJzFcaoLs611q+7CHgCWI+Bu o+IR8mqnMRF35zOr+w8a89tZOg59o2Oe228AwiwFIcmLZoAAfAWEaa0dqkWza+EoX+LUDqdJ9sb T4SOdWLGX/h1g2srZvS3s0Nlth8tPhVVzTar+iyKoLJY/mShvrkltfbrvtVsEltaoe+Js0JwLx6 sUEta0istBivS0sZAqZms+ObzZkSseCCMrPrGFbe/4PuzwH9No0JWssd4+SpBmW8L1lsJUzcw4N JeDa/X63uf3LO5X6BDxu1B9vRNiw+woLvGqN2048kCn8InEBBNqb21gYvYu5fcf9DR6hVqtQ2mF 9w95KR/iXrgTD7zbSdHDxJG3WPk/IYZjYzGpp4iKwdnj7nwJD51aecmyCx3/Gbd9HZESVDn1y58 ZckRDDcwv+80JhWglv2FKAqdPOEYxlN+OQFD7awf8iiEsUSfUtb1UEl07+9jNTukKibKlOvEp9b CyfAJj1NpHj9j7gK85FHkx6CHOz0r1m97ts0xpJ9iszoyw+fqsJWTTqVyFfuKzrcbncA5NhwRzj kOp/+bb51fRRzlfJLZG17t/KHIF0x6Mw1eOcD2wiuMBOxlU1xoyjH4U1kOmT0t3knwwCnM+2u3F fKmGciKkClYuBVcRUlj7SYQ0rER8KtUrNC0ViMVtgJHw= X-Developer-Key: i=dlechner@baylibre.com; a=openpgp; fpr=8A73D82A6A1F509907F373881F8AF88C82F77C03 Move the internal reference voltage value to the chip_info structure. Before this change, only ADAQ chips could be internal_ref_only and only non-ADAQ chips could be external_ref_only. Now, this restriction is removed. Signed-off-by: David Lechner Reviewed-by: Nuno Sá --- drivers/iio/adc/ad7380.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/ad7380.c b/drivers/iio/adc/ad7380.c index 18ed07275be8e031e54f3595f70afe47514084cd..e5cd11fd7b1083af2082985f2c0226b1a97d600f 100644 --- a/drivers/iio/adc/ad7380.c +++ b/drivers/iio/adc/ad7380.c @@ -120,6 +120,7 @@ struct ad7380_chip_info { unsigned int num_supplies; bool external_ref_only; bool internal_ref_only; + unsigned int internal_ref_mv; const char * const *vcm_supplies; unsigned int num_vcm_supplies; const unsigned long *available_scan_masks; @@ -609,6 +610,7 @@ static const struct ad7380_chip_info ad7380_chip_info = { .num_simult_channels = 2, .supplies = ad7380_supplies, .num_supplies = ARRAY_SIZE(ad7380_supplies), + .internal_ref_mv = AD7380_INTERNAL_REF_MV, .available_scan_masks = ad7380_2_channel_scan_masks, .timing_specs = &ad7380_timing, .max_conversion_rate_hz = 4 * MEGA, @@ -622,6 +624,7 @@ static const struct ad7380_chip_info ad7381_chip_info = { .num_simult_channels = 2, .supplies = ad7380_supplies, .num_supplies = ARRAY_SIZE(ad7380_supplies), + .internal_ref_mv = AD7380_INTERNAL_REF_MV, .available_scan_masks = ad7380_2_channel_scan_masks, .timing_specs = &ad7380_timing, .max_conversion_rate_hz = 4 * MEGA, @@ -637,6 +640,7 @@ static const struct ad7380_chip_info ad7383_chip_info = { .num_supplies = ARRAY_SIZE(ad7380_supplies), .vcm_supplies = ad7380_2_channel_vcm_supplies, .num_vcm_supplies = ARRAY_SIZE(ad7380_2_channel_vcm_supplies), + .internal_ref_mv = AD7380_INTERNAL_REF_MV, .available_scan_masks = ad7380_2_channel_scan_masks, .timing_specs = &ad7380_timing, .max_conversion_rate_hz = 4 * MEGA, @@ -652,6 +656,7 @@ static const struct ad7380_chip_info ad7384_chip_info = { .num_supplies = ARRAY_SIZE(ad7380_supplies), .vcm_supplies = ad7380_2_channel_vcm_supplies, .num_vcm_supplies = ARRAY_SIZE(ad7380_2_channel_vcm_supplies), + .internal_ref_mv = AD7380_INTERNAL_REF_MV, .available_scan_masks = ad7380_2_channel_scan_masks, .timing_specs = &ad7380_timing, .max_conversion_rate_hz = 4 * MEGA, @@ -665,6 +670,7 @@ static const struct ad7380_chip_info ad7386_chip_info = { .num_simult_channels = 2, .supplies = ad7380_supplies, .num_supplies = ARRAY_SIZE(ad7380_supplies), + .internal_ref_mv = AD7380_INTERNAL_REF_MV, .has_mux = true, .available_scan_masks = ad7380_2x2_channel_scan_masks, .timing_specs = &ad7380_timing, @@ -679,6 +685,7 @@ static const struct ad7380_chip_info ad7387_chip_info = { .num_simult_channels = 2, .supplies = ad7380_supplies, .num_supplies = ARRAY_SIZE(ad7380_supplies), + .internal_ref_mv = AD7380_INTERNAL_REF_MV, .has_mux = true, .available_scan_masks = ad7380_2x2_channel_scan_masks, .timing_specs = &ad7380_timing, @@ -693,6 +700,7 @@ static const struct ad7380_chip_info ad7388_chip_info = { .num_simult_channels = 2, .supplies = ad7380_supplies, .num_supplies = ARRAY_SIZE(ad7380_supplies), + .internal_ref_mv = AD7380_INTERNAL_REF_MV, .has_mux = true, .available_scan_masks = ad7380_2x2_channel_scan_masks, .timing_specs = &ad7380_timing, @@ -721,6 +729,7 @@ static const struct ad7380_chip_info ad7381_4_chip_info = { .num_simult_channels = 4, .supplies = ad7380_supplies, .num_supplies = ARRAY_SIZE(ad7380_supplies), + .internal_ref_mv = AD7380_INTERNAL_REF_MV, .available_scan_masks = ad7380_4_channel_scan_masks, .timing_specs = &ad7380_4_timing, .max_conversion_rate_hz = 4 * MEGA, @@ -734,6 +743,7 @@ static const struct ad7380_chip_info ad7383_4_chip_info = { .num_simult_channels = 4, .supplies = ad7380_supplies, .num_supplies = ARRAY_SIZE(ad7380_supplies), + .internal_ref_mv = AD7380_INTERNAL_REF_MV, .vcm_supplies = ad7380_4_channel_vcm_supplies, .num_vcm_supplies = ARRAY_SIZE(ad7380_4_channel_vcm_supplies), .available_scan_masks = ad7380_4_channel_scan_masks, @@ -749,6 +759,7 @@ static const struct ad7380_chip_info ad7384_4_chip_info = { .num_simult_channels = 4, .supplies = ad7380_supplies, .num_supplies = ARRAY_SIZE(ad7380_supplies), + .internal_ref_mv = AD7380_INTERNAL_REF_MV, .vcm_supplies = ad7380_4_channel_vcm_supplies, .num_vcm_supplies = ARRAY_SIZE(ad7380_4_channel_vcm_supplies), .available_scan_masks = ad7380_4_channel_scan_masks, @@ -764,6 +775,7 @@ static const struct ad7380_chip_info ad7386_4_chip_info = { .num_simult_channels = 4, .supplies = ad7380_supplies, .num_supplies = ARRAY_SIZE(ad7380_supplies), + .internal_ref_mv = AD7380_INTERNAL_REF_MV, .has_mux = true, .available_scan_masks = ad7380_2x4_channel_scan_masks, .timing_specs = &ad7380_4_timing, @@ -778,6 +790,7 @@ static const struct ad7380_chip_info ad7387_4_chip_info = { .num_simult_channels = 4, .supplies = ad7380_supplies, .num_supplies = ARRAY_SIZE(ad7380_supplies), + .internal_ref_mv = AD7380_INTERNAL_REF_MV, .has_mux = true, .available_scan_masks = ad7380_2x4_channel_scan_masks, .timing_specs = &ad7380_4_timing, @@ -792,6 +805,7 @@ static const struct ad7380_chip_info ad7388_4_chip_info = { .num_simult_channels = 4, .supplies = ad7380_supplies, .num_supplies = ARRAY_SIZE(ad7380_supplies), + .internal_ref_mv = AD7380_INTERNAL_REF_MV, .has_mux = true, .available_scan_masks = ad7380_2x4_channel_scan_masks, .timing_specs = &ad7380_4_timing, @@ -807,6 +821,7 @@ static const struct ad7380_chip_info adaq4370_4_chip_info = { .supplies = adaq4380_supplies, .num_supplies = ARRAY_SIZE(adaq4380_supplies), .internal_ref_only = true, + .internal_ref_mv = ADAQ4380_INTERNAL_REF_MV, .has_hardware_gain = true, .available_scan_masks = ad7380_4_channel_scan_masks, .timing_specs = &ad7380_4_timing, @@ -822,6 +837,7 @@ static const struct ad7380_chip_info adaq4380_4_chip_info = { .supplies = adaq4380_supplies, .num_supplies = ARRAY_SIZE(adaq4380_supplies), .internal_ref_only = true, + .internal_ref_mv = ADAQ4380_INTERNAL_REF_MV, .has_hardware_gain = true, .available_scan_masks = ad7380_4_channel_scan_masks, .timing_specs = &ad7380_4_timing, @@ -837,6 +853,7 @@ static const struct ad7380_chip_info adaq4381_4_chip_info = { .supplies = adaq4380_supplies, .num_supplies = ARRAY_SIZE(adaq4380_supplies), .internal_ref_only = true, + .internal_ref_mv = ADAQ4380_INTERNAL_REF_MV, .has_hardware_gain = true, .available_scan_masks = ad7380_4_channel_scan_masks, .timing_specs = &ad7380_4_timing, @@ -1855,7 +1872,7 @@ static int ad7380_probe(struct spi_device *spi) * in bulk_get_enable(). */ - st->vref_mv = ADAQ4380_INTERNAL_REF_MV; + st->vref_mv = st->chip_info->internal_ref_mv; /* these chips don't have a register bit for this */ external_ref_en = false; @@ -1880,7 +1897,8 @@ static int ad7380_probe(struct spi_device *spi) "Failed to get refio regulator\n"); external_ref_en = ret != -ENODEV; - st->vref_mv = external_ref_en ? ret / 1000 : AD7380_INTERNAL_REF_MV; + st->vref_mv = external_ref_en ? ret / 1000 + : st->chip_info->internal_ref_mv; } if (st->chip_info->num_vcm_supplies > ARRAY_SIZE(st->vcm_mv)) From patchwork Tue Apr 1 22:50:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 14035400 Received: from mail-oa1-f42.google.com (mail-oa1-f42.google.com [209.85.160.42]) (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 7955421CC5F for ; Tue, 1 Apr 2025 22:50:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743547844; cv=none; b=nIiyXoDaDFF2BXunk9cgZMRAXj239bmZkluYzb8Hq8LJgqMFuITvjRoQbu0v8ic4VFBANvoMyCNzCNEJ1NSecJAIPMiQq93e0ha+wh5ePHWjV6UqRYsT+u0PpToGjY2MyALId9hzdOIs3Kfm0FTFpzNstlRJ/9zxorNV9iSmA2U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743547844; c=relaxed/simple; bh=mGgJDaH4xhv6QI9QUw9f5zQcEipBpHkkqShLk6X20A4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=s1o0/oH+Na8d86B6ytK1r5o32QR/mzcHC0JzIP2AsUWyqLqwfON4fLMMfkWwoPc/ks7f80t0O6Wf7L7UzYWCB6LysF3JAx9vOSH4vHYhXToalluGX4sbF+AjHUFX/wJzP2l5h+yIB/0krfHclMXmCitasg3bQevFgGFMn3skLrM= 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=UNik61EH; arc=none smtp.client-ip=209.85.160.42 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="UNik61EH" Received: by mail-oa1-f42.google.com with SMTP id 586e51a60fabf-2c2504fa876so1601133fac.0 for ; Tue, 01 Apr 2025 15:50:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1743547841; x=1744152641; 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=V4MrlSMQYXfqLNGmvXKKmQJWuhqWmoAxaLjy/tU8NSk=; b=UNik61EHQ5NZPdPMC8GaiVSLvMpUJRgX4SFx53zC+SXLp0IO0VG0V+IOLLFiyh1vgy G5cyMF2X8jgtXwQ5JFMq7MdS6fZg0ksvhiXg6m0W2jTwP9sUCb56nUnX1mNvWEtJwsgv WuZkleG4PxWZ2VyJG71BX7lHBJglNYzE0Idz8MZw8wzg+Z5TpQxlQVBUq8MIkV7p/Ve3 fiblhEPhQYjYJgTmNr6YOuTjinREhX3o4xAuLpe8cuzNXhgzQqsmnB1E99pm7WGva9V6 ExPElXzKZ7pI09E4m+ysxP7UpnYtleVMakxY2+VVv9uEwSf3EXKRepoEhj4oO2MJPpI6 YUVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743547841; x=1744152641; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=V4MrlSMQYXfqLNGmvXKKmQJWuhqWmoAxaLjy/tU8NSk=; b=rpb5AmwwQFiEnTKbzR1g3WJxLueu5626SihUY2N4L9C/Z1XM5Np2u7ref83SPezwPs Wev4ZL8xLsWj3jZ5ltpyAoZ/sBBQ0IZps5wh1/Ofi2g++QQG1T03IwRyodGkbVPl4m/K hUAXvhmmK3BRT3QijFRysDh1ACP7dJU+9L+C83JRTveUFBYF+J/cbN5gcsKpTxkg4uGi IiQ2umMvNs/pn12K9i3W8REzYyYDYZGDgTG0tWQVswCZj5PbOwF/rdF+Ycy0rdoqaTXW wYLRD628Z82JxfBYOgfrhwMz78xKW9ecZLIH8ElhxgyT4dcbjx2bRI9EuOnKYY9mbzDW Ju8Q== X-Forwarded-Encrypted: i=1; AJvYcCVWRkYLLigwW9NgFUg0TrCsC6x4aVvLbMoBAHu/p559FO3h7RLCZ4WFXam87VXCLTGZibnNd6FeeEE=@vger.kernel.org X-Gm-Message-State: AOJu0Yw7kzWU4L7+h7HrL/PbxcxbGVLJZPHcyZGPDvlIUzsAGRGvaB/l ZHEWcTes8UxNx534r+b2/MeRgG6mEqnTEnaQTBl49oPaDq5TRwn7et7/DuoyV8g= X-Gm-Gg: ASbGnctXzSnJjaYKS4aoQTtd9OPHPUxppTvZth8qbxtZ0cM5nZkf6Boi5eXFOpQ1/u6 6qSklb97U6MF1glfKB/4QCgxR2gh96KI0ynhpitV+tJ27maFtb7G5pR08j6Au0V/DWlL17z2mcf lnDcJnEkki9gYo8zI5ndG7TztbaUHgXgsz3R/3yAkq2NCI5fMpPxsX78CQFt2mm9vKd5YuzXssL RSwFLHs8QfKlmqVmDndunZ5FLn3MH+KrDXuMrKL84cZtIZyoFfo7l11QL07O4+enE/R+Jc3y4yF Folm1+71SzHdMOKsRoSHHlere106ECicCqpP7KG+JbBnL+K3wYfhlClyvAsvFm6HhizPek2+04w X X-Google-Smtp-Source: AGHT+IGu7cyaLTEX/wQeu6tMXf3DzRe/6ksAnZQYPaYIA2HH9zCquubtYJqZ/1DgDdD48WT4WnQv2Q== X-Received: by 2002:a05:6870:611f:b0:29e:6bdb:e362 with SMTP id 586e51a60fabf-2cbcf57b801mr8067880fac.17.1743547841563; Tue, 01 Apr 2025 15:50:41 -0700 (PDT) Received: from [127.0.1.1] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2c86a860267sm2541894fac.36.2025.04.01.15.50.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Apr 2025 15:50:41 -0700 (PDT) From: David Lechner Date: Tue, 01 Apr 2025 17:50:11 -0500 Subject: [PATCH 4/5] iio: adc: ad7380: add ad7389-4 Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250401-iio-ad7380-add-ad7389-4-v1-4-23d2568aa24f@baylibre.com> References: <20250401-iio-ad7380-add-ad7389-4-v1-0-23d2568aa24f@baylibre.com> In-Reply-To: <20250401-iio-ad7380-add-ad7389-4-v1-0-23d2568aa24f@baylibre.com> To: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org Cc: Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , Jonathan Corbet , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, David Lechner X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3143; i=dlechner@baylibre.com; h=from:subject:message-id; bh=mGgJDaH4xhv6QI9QUw9f5zQcEipBpHkkqShLk6X20A4=; b=owEBgwJ8/ZANAwAKAR+K+IyC93wDAcsmYgBn7G23eD/pse4Xmm2AiNGkH52tKH/nXHQVnFNP6 0KoQFRURyKJAkkEAAEKADMWIQSKc9gqah9QmQfzc4gfiviMgvd8AwUCZ+xttxUcZGF2aWRAbGVj aG5vbG9neS5jb20ACgkQH4r4jIL3fAN0WhAApqAFkLTSxzZWHmc2w+iuKN1dHlGzNy6Ih2pRlAI KVpH4Ueb0sP4KBcwT4CSd1CJ+ljVHzg9j1HQYCUjFFslNXJrBVXm8Wkpsv9jOO1a2Al0Lwdj2oh GFLCNy1NJpw3A4ZO1OTFyfPZGSNYX2Er+gjVl8keu8pzJiQ6RxDMwVx6TsLlBd17CVdQB5blwL5 taEwgMbIX1mZ5bbdXjktzqjgUnhSdCGW1hIF3RT7vfVEZihR1VyZ+lSSCmV47RfHZbd+cOCV3zC uAxNvArkdjQHXbw+kZ/axwluYJp0Y1hwgtY40lQOkw9qYnsONUJ8y+x96ZPM1+gaIlPCGt7JrNH aKjnC8NOzH0cBGS9Wf90lxqrEkG4FNBjBiOMY8oMHHNmqekoOIi2iUl0TWosze3L562VVRBa/eG JesB9ZDNHg6WtZJq2qWyyIB2qc92QDbkkyoF5YAHbc/423bFqiznxIrY9iidMT8j7WRw9d8y+Fl ToB/KfwGXA4OcDxqzyuh5ygJ6HMhKD8VXWAVYDr72bWT2rWmzHs0J/LR4d2vOj1mMi6POO4gs39 G7ynLvBgD1IMuF9IpWyBNiMb7ajGbIM+1UUYun+6xgdFXi9aVYLlEKRYwUeQxtwWxDnKM69undt hyJIHbiq5PEsqpuXAjJ/BtmSTy2EiEJ7rWxlzwcUm380= X-Developer-Key: i=dlechner@baylibre.com; a=openpgp; fpr=8A73D82A6A1F509907F373881F8AF88C82F77C03 Add chip info for AD7389-4 to the ad7380 driver. This is essentially the same as ad7380-4 except that it is internal- reference-only instead of external-reference-only. Signed-off-by: David Lechner Reviewed-by: Nuno Sá --- drivers/iio/adc/ad7380.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/iio/adc/ad7380.c b/drivers/iio/adc/ad7380.c index e5cd11fd7b1083af2082985f2c0226b1a97d600f..190ab411739feea32e189cb3ede925056ba4a87e 100644 --- a/drivers/iio/adc/ad7380.c +++ b/drivers/iio/adc/ad7380.c @@ -13,6 +13,7 @@ * ad7381-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7381-4.pdf * ad7383/4-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7383-4-ad7384-4.pdf * ad7386/7/8-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7386-4-7387-4-7388-4.pdf + * ad7389-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7389-4.pdf * adaq4370-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4370-4.pdf * adaq4380-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4380-4.pdf * adaq4381-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4381-4.pdf @@ -812,6 +813,21 @@ static const struct ad7380_chip_info ad7388_4_chip_info = { .max_conversion_rate_hz = 4 * MEGA, }; +static const struct ad7380_chip_info ad7389_4_chip_info = { + .name = "ad7389-4", + .channels = ad7380_4_channels, + .offload_channels = ad7380_4_offload_channels, + .num_channels = ARRAY_SIZE(ad7380_4_channels), + .num_simult_channels = 4, + .supplies = ad7380_supplies, + .num_supplies = ARRAY_SIZE(ad7380_supplies), + .internal_ref_only = true, + .internal_ref_mv = AD7380_INTERNAL_REF_MV, + .available_scan_masks = ad7380_4_channel_scan_masks, + .timing_specs = &ad7380_4_timing, + .max_conversion_rate_hz = 4 * MEGA, +}; + static const struct ad7380_chip_info adaq4370_4_chip_info = { .name = "adaq4370-4", .channels = adaq4380_4_channels, @@ -2051,6 +2067,7 @@ static const struct of_device_id ad7380_of_match_table[] = { { .compatible = "adi,ad7386-4", .data = &ad7386_4_chip_info }, { .compatible = "adi,ad7387-4", .data = &ad7387_4_chip_info }, { .compatible = "adi,ad7388-4", .data = &ad7388_4_chip_info }, + { .compatible = "adi,ad7389-4", .data = &ad7389_4_chip_info }, { .compatible = "adi,adaq4370-4", .data = &adaq4370_4_chip_info }, { .compatible = "adi,adaq4380-4", .data = &adaq4380_4_chip_info }, { .compatible = "adi,adaq4381-4", .data = &adaq4381_4_chip_info }, @@ -2072,6 +2089,7 @@ static const struct spi_device_id ad7380_id_table[] = { { "ad7386-4", (kernel_ulong_t)&ad7386_4_chip_info }, { "ad7387-4", (kernel_ulong_t)&ad7387_4_chip_info }, { "ad7388-4", (kernel_ulong_t)&ad7388_4_chip_info }, + { "ad7389-4", (kernel_ulong_t)&ad7389_4_chip_info }, { "adaq4370-4", (kernel_ulong_t)&adaq4370_4_chip_info }, { "adaq4380-4", (kernel_ulong_t)&adaq4380_4_chip_info }, { "adaq4381-4", (kernel_ulong_t)&adaq4381_4_chip_info }, From patchwork Tue Apr 1 22:50:12 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 14035401 Received: from mail-oo1-f48.google.com (mail-oo1-f48.google.com [209.85.161.48]) (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 6F02A21D3F5 for ; Tue, 1 Apr 2025 22:50:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743547846; cv=none; b=fhLI5DYosHavI22vF9lRRty2U4TyxMmZ6braTOl3UxpO7SsMGFgaFfWkpc6SynyAJGe/Ppk0h4Cvs5OQJNDDun/FxQ3RuFbeefqrjUJYuE29U4BZRvfLzWXDLILAd5LQ2i6SCH9RY0excxKQP9PKekaYeXn53Oa+JbTuok97Z9s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743547846; c=relaxed/simple; bh=l4ovhFo/GzqCAr/tJep6ZW+QzYV4DEuHtmNsouGPBYY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YcFCl1EtwRmiBCuwNQHObdUa9HRr/zj6BThM8IKWe0WpXovTul5MN4qnSRQ3XlutqR/0wsZ+f74QJPQprR41AX4zRrXXTTYdFBRLfR6JQT/oTbt9f8quH22aDX2thMvU2M/MzIybkwYA4yX1BI902zMOgWSuK7wwZCJWJXJCNyQ= 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=Ftxaf8Fu; arc=none smtp.client-ip=209.85.161.48 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="Ftxaf8Fu" Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-601a8b6c133so130284eaf.1 for ; Tue, 01 Apr 2025 15:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1743547842; x=1744152642; 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=nBCDwaIxUQd/u+f/hpgM4pDWmpkYUglr1PKpMsLAoic=; b=Ftxaf8FuQ49cmFyUjyzNc5t9IR71aC6bJ+k/VcsagAtpUWDOLkx22ArEGiEug6CHAP dEywpVTsvC5ElTsFqHrlGwbTOYM5OKi8Et+1hgqwqrtg09NKWF5Ei+cAXNoLYCFMkeS8 sV7YPT/qCWpf5gZU8PyuzoKE5/na7+ZEcIoTtatTfF3rBGXENK/VeBk5RPkxdkzooRFZ EcoM/H52az8JHBUVaaEdNWSvXLjmdgszFonU3Xp2lAuk2kY82VmdFX1HbejBHZuiMSaV DKukjbYUT0ImLHhQSumUQJ0qn/2DbNrI674DG29Tnv/ZpVKDTz+lZpTouvsqxdKhNQV1 a8BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743547842; x=1744152642; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nBCDwaIxUQd/u+f/hpgM4pDWmpkYUglr1PKpMsLAoic=; b=utf6ngcdH7Y3WomHTlIgThD2hV8C81CJ7EoOUIof9aeIjBt0eMhT0kylcLwrdbAcxl /j4QiauAZvJ76K7ayMnF2726elezLAIvsNT3F+xULI8GZIGB2QvpRUh1fQWR0uYnyJh0 9T3SiNH/od2rgYaTas8xTdm/gwgaUi6ieIvsZe7sa0ysJXddNQOdpVr9S6gMFW9Uy6D6 G5t2JUPSKpBszXhuBg365kbIyj6RThskkLuLOZLvBuuBQbmeUR1/v03DG280rRT1femn XuXGvvAiiNMtW7to8UQCZTLaSG74hf3+BFq4nSRb8k+RIhHJE860vnpuowCbQbHH8ZRF //Ug== X-Forwarded-Encrypted: i=1; AJvYcCXK4MvCR+mGfcgoSN9YFEwH//sDB1RG47s6GnnTrwA568Sw7ERnOl612JN7r+ZafcDVRTPEjS28x4s=@vger.kernel.org X-Gm-Message-State: AOJu0YwEeVu7PaqnMN82PDQVZLSirmHSxeaCFKMAvQGn/6oTaMp+j584 ydPbWMnLsCyC6DxrHgRlh3N1JMm95idts8/cH+fCJS4fobhmuhjZu/3AFN05CQU= X-Gm-Gg: ASbGnctDLW2LxcLMrhwGRhvvlWoVvGtCfSGQ02UIMRSG0kAK2SubKxYAP5FywYOKZ0H rChD4Bc5oe9TvDCXL7WZU2n6Eva11oKV7l9THCviTEjaz92jUsNGb5sbBikZYxdwL5qx9GI89Vi 8tX2uDRsTwFYrTvAZIWFhzm5LP187U7mGBWTtsw33YtPLRVKe3OC07JarYsmD2V7kgxcC7oWoEy uPbtLmqujRk657B7mDQzmTR1w/okWyDfPDstls+y6kJvOmdcC7O4/Ol/Qurb+CfONvTYhJbkL2r y6nJwOMvVvmcFfddjS0tPP/8zDxOx67razCq7JXLScvDug5gE0OQEplTHMji06fMyZpALqG9Zk6 G X-Google-Smtp-Source: AGHT+IG0RQHyDvXPFu8JV/9+WZdcEeqrgyW20fSgLeCJLHlRPKjnuoZzwGLndZZ6UfK8jDOTJsiFtA== X-Received: by 2002:a05:6871:aa0f:b0:2bd:607c:c804 with SMTP id 586e51a60fabf-2cc54fd24femr1065837fac.6.1743547842472; Tue, 01 Apr 2025 15:50:42 -0700 (PDT) Received: from [127.0.1.1] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2c86a860267sm2541894fac.36.2025.04.01.15.50.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Apr 2025 15:50:42 -0700 (PDT) From: David Lechner Date: Tue, 01 Apr 2025 17:50:12 -0500 Subject: [PATCH 5/5] Documentation: iio: ad7380: add AD7389-4 Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250401-iio-ad7380-add-ad7389-4-v1-5-23d2568aa24f@baylibre.com> References: <20250401-iio-ad7380-add-ad7389-4-v1-0-23d2568aa24f@baylibre.com> In-Reply-To: <20250401-iio-ad7380-add-ad7389-4-v1-0-23d2568aa24f@baylibre.com> To: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org Cc: Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , Jonathan Corbet , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, David Lechner X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1360; i=dlechner@baylibre.com; h=from:subject:message-id; bh=l4ovhFo/GzqCAr/tJep6ZW+QzYV4DEuHtmNsouGPBYY=; b=owEBgwJ8/ZANAwAKAR+K+IyC93wDAcsmYgBn7G23WMhCW7TbNSZvazzPiomXbl09MZazclNtB fCYnNnM1zSJAkkEAAEKADMWIQSKc9gqah9QmQfzc4gfiviMgvd8AwUCZ+xttxUcZGF2aWRAbGVj aG5vbG9neS5jb20ACgkQH4r4jIL3fAOq2g/+OjQ17WKD87fY99tB+cemDltxMECfTBSuDgl8osf /FWPmdyiaR/AWO5B9bC1JRXevV31aslR861AdpEmjzcUEEYwJaUfce7VnRFrTDB7wfz6/4m+oFA RojezRzqmUPMZjtSUhRELY6O9N9NHA3c0Im8959uL1N3RlCV4eFX6Rxv3U0I21OYTN7kutRcyqM DH7j1P6wFnBD86mVNukSIAPgy9l4iIOpfzg9Kr8B2I5GBUItHXh9YrCcKaQah3usts0UDSGNtz2 CJPOsdBJa3ccu2dlzBp81K5sL8EoavDVJYHgen3fowvsw6ypXqFw4C6N6KDmEdAXRYlnnEeQo1c zxz1lbFaoE7Cfnm9gZ/x8Sktwliobva92+S/ZEzUJhLMVXCo43STxd0n0iEP5mdsZZQVpIeeI3W JPYj4VNKj5yZILUTA+Rf3Bq1/YfKgG1E9E+OeFUCB2Qy+3HnRGmMed2lj8HJ5fqpg9ytDGjvgMl j4AOGGmmTZZ50cJxSqBji2uq3rRqetlqzAV3tmHQl/CjyfIfr8CgLhjCLdKGWaUSnptxazRP+Hu oywwWA2266i+1QH3rf+nOpP6vMGZhg1dbvPemWc7vVsEwX2y/+oSZDF8ZAKipXsluVNwrzUoJnr qGzVhyUpoFvcU0b9VcXDGokYp7hDHe1loXC+alFkhkz8= X-Developer-Key: i=dlechner@baylibre.com; a=openpgp; fpr=8A73D82A6A1F509907F373881F8AF88C82F77C03 Document support for AD7389-4 and it's quirks. Signed-off-by: David Lechner --- Documentation/iio/ad7380.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/iio/ad7380.rst b/Documentation/iio/ad7380.rst index 24a92a1c4371db6b59ef47edf06cee860641ebbf..d51f9ee3e939c9d33515ce79701fc7c89f5094f2 100644 --- a/Documentation/iio/ad7380.rst +++ b/Documentation/iio/ad7380.rst @@ -27,6 +27,7 @@ The following chips are supported by this driver: * `AD7386-4 `_ * `AD7387-4 `_ * `AD7388-4 `_ +* `AD7389-4 `_ * `ADAQ4370-4 `_ * `ADAQ4380-4 `_ * `ADAQ4381-4 `_ @@ -50,6 +51,12 @@ ad7380-4 ad7380-4 supports only an external reference voltage (2.5V to 3.3V). It must be declared in the device tree as ``refin-supply``. +ad7389-4 +~~~~~~~~ + +ad7389-4 supports only an internal reference voltage. ``refin-supply`` and +``refio-supply`` properties are both omitted in this case. + ADAQ devices ~~~~~~~~~~~~