From nobody Sat Nov 30 16:35:21 2024 Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) (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 49A251BA893 for ; Mon, 9 Sep 2024 14:30:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725892259; cv=none; b=sBKqtn1hP8ZzeqJme61lb9/OyyZtGn8r2zFFkbbIMC1L3yP6Yao9L19RlpWaTClUHhpYRGXjahjmk0K055C8wvbcDHDDUsRp2vHibifyAzBZnqv62UhCgzdz87H4he/rgdPoYvia+9O8d7YMhfJEoXP9ADMomIRIAYZNWkUV4CM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725892259; c=relaxed/simple; bh=cJz56MhvoNRwns9QCgPwKIZJcbJaF4abAjFyuzcpJww=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=R76a/Cc3YOOfQlDY5kwZt+zMmQL3zEmhLonjFMSGlokPivjUmppm9o/UMJB3gbZT5wGuR4dXbX/cpV7RfxvPGcrivke9KDcLj+Wc9zDioMnldTZbA5yAQWHndmDzfQeIZaObzgf91h96a7ZgnCnYFlucIFNtvInGZijEEfdhH9U= 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=gvLs64Re; arc=none smtp.client-ip=209.85.219.45 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="gvLs64Re" Received: by mail-qv1-f45.google.com with SMTP id 6a1803df08f44-6c159150ff4so25410946d6.2 for ; Mon, 09 Sep 2024 07:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1725892255; x=1726497055; 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=UfPN/kQIrUKqIq5jWFNbRckbkKsrSVmrNfpeCh4QqdA=; b=gvLs64ReJXAZdXKnWT9TJ/OHuuFY+cm8E2234EQP7HYNvz5vFVbsnbtaY7q6sreh3q W11uvR2k7398QntIoSkcqMeSvwqftXZ2x54VqKTyU1ji45xD+MFuXQy8t9gS0ucd3vtn BMZ2u9aSqhpg0H8HROrla7BjzOTspHRgb3irMN4Sfg70NyIInRO+31K28JXAarJXSewC C7M9o41cguaNbqCeXvK6DKQv3UzNA3q3EK2H0uKse+rvf0U7+150x4vp1h58jv6y7B20 JeF47y/QUfPC78oYIDv2Ri9RliXAZGZEnLv6B1itXmsFugmqfzUc6dHTdDc24wgs5h6U QG1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725892255; x=1726497055; 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=UfPN/kQIrUKqIq5jWFNbRckbkKsrSVmrNfpeCh4QqdA=; b=jSJ8gYXZzNDCzrHXsHl1GMhjKzMYSi/9amwoRPrG2A6uEpFvatY7/ktZjRl+y3jT3C Yms/oh1U1ciwstzZY70ORK5jgI5Qg7MeeaEClcvjkZZnydV8sQM6PlwTw9J5BtDaPuS1 IkvBXY79agOKM27C9KK13Q2fG+y9xLNE8BBclflOXtMyrLdEZaZHwL+7lXVimltEh9K5 12rhRuIhz7ny+Kc+IDbt9rmuGYSQyfbSVHW/g1Kz3srqtqzF3BMrJggAlMoVn9s5laO0 btE5jaISBu7AnAqwXeofAJR2Y+IKh0lUTa+buruHONVuoNjGiIq9LziUae/cHJyA1sFw dPsQ== X-Forwarded-Encrypted: i=1; AJvYcCWSTYTaFANnoqLbHqTfqeNMEnRzHDpJjVInAKI1dy869TwaSFlfhy75FRCZ7rUdewRypdNxI9BCqUyRJW4=@vger.kernel.org X-Gm-Message-State: AOJu0YwduFqcqs3yBkByhSwxG5rvFEO8n/Ys1k8i2MYJ8p1NKVellfcy mqS5Onk0Dx+3XjDHK8qR1SC/DVZkcPT2STP5qO7eXjxzloEfi/vZwM7Jt1Do3oo= X-Google-Smtp-Source: AGHT+IEwA7628dgDEojrPJKZcaWRkdXDMVfcaEMwo0MQ841nvQOXVWQHiOcW2yix4wc6h6yEoh7L0A== X-Received: by 2002:a05:6214:aaf:b0:6c5:194a:4d7b with SMTP id 6a1803df08f44-6c52851138emr135105726d6.33.1725892254983; Mon, 09 Sep 2024 07:30:54 -0700 (PDT) Received: from [127.0.1.1] (d24-150-219-207.home.cgocable.net. [24.150.219.207]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6c534339987sm21385406d6.33.2024.09.09.07.30.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 07:30:54 -0700 (PDT) From: Trevor Gamblin Date: Mon, 09 Sep 2024 10:30:47 -0400 Subject: [PATCH v5 1/3] dt-bindings: iio: adc: add AD762x/AD796x ADCs 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: <20240909-ad7625_r1-v5-1-60a397768b25@baylibre.com> References: <20240909-ad7625_r1-v5-0-60a397768b25@baylibre.com> In-Reply-To: <20240909-ad7625_r1-v5-0-60a397768b25@baylibre.com> To: Lars-Peter Clausen , Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , David Lechner , Uwe Kleine-Konig Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Trevor Gamblin , Conor Dooley X-Mailer: b4 0.14.1 Add a binding specification for the Analog Devices Inc. AD7625, AD7626, AD7960, and AD7961 ADCs. Reviewed-by: Conor Dooley Signed-off-by: Trevor Gamblin --- .../devicetree/bindings/iio/adc/adi,ad7625.yaml | 176 +++++++++++++++++= ++++ MAINTAINERS | 9 ++ 2 files changed, 185 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7625.yaml b/Do= cumentation/devicetree/bindings/iio/adc/adi,ad7625.yaml new file mode 100644 index 000000000000..8848562af28f --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7625.yaml @@ -0,0 +1,176 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,ad7625.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices Fast PulSAR Analog to Digital Converters + +maintainers: + - Michael Hennerich + - Nuno S=C3=A1 + +description: | + A family of single channel differential analog to digital converters. + + * https://www.analog.com/en/products/ad7625.html + * https://www.analog.com/en/products/ad7626.html + * https://www.analog.com/en/products/ad7960.html + * https://www.analog.com/en/products/ad7961.html + +properties: + compatible: + enum: + - adi,ad7625 + - adi,ad7626 + - adi,ad7960 + - adi,ad7961 + + vdd1-supply: true + vdd2-supply: true + vio-supply: true + + ref-supply: + description: + Voltage regulator for the external reference voltage (REF). + + refin-supply: + description: + Voltage regulator for the reference buffer input (REFIN). + + clocks: + description: + The clock connected to the CLK pins, gated by the clk_gate PWM. + maxItems: 1 + + pwms: + items: + - description: PWM connected to the CNV input on the ADC. + - description: PWM that gates the clock connected to the ADC's CLK i= nput. + + pwm-names: + items: + - const: cnv + - const: clk_gate + + io-backends: + description: + The AXI ADC IP block connected to the D+/- and DCO+/- lines of the + ADC. An example backend can be found at + http://analogdevicesinc.github.io/hdl/projects/pulsar_lvds/index.htm= l. + maxItems: 1 + + adi,no-dco: + $ref: /schemas/types.yaml#/definitions/flag + description: + Indicates the wiring of the DCO+/- lines. If true, then they are + grounded and the device is in self-clocked mode. If this is not + present, then the device is in echoed clock mode. + + adi,en0-always-on: + $ref: /schemas/types.yaml#/definitions/flag + description: + Indicates if EN0 is hard-wired to the high state. If neither this + nor en0-gpios are present, then EN0 is hard-wired low. + + adi,en1-always-on: + $ref: /schemas/types.yaml#/definitions/flag + description: + Indicates if EN1 is hard-wired to the high state. If neither this + nor en1-gpios are present, then EN1 is hard-wired low. + + adi,en2-always-on: + $ref: /schemas/types.yaml#/definitions/flag + description: + Indicates if EN2 is hard-wired to the high state. If neither this + nor en2-gpios are present, then EN2 is hard-wired low. + + adi,en3-always-on: + $ref: /schemas/types.yaml#/definitions/flag + description: + Indicates if EN3 is hard-wired to the high state. If neither this + nor en3-gpios are present, then EN3 is hard-wired low. + + en0-gpios: + description: + Configurable EN0 pin. + + en1-gpios: + description: + Configurable EN1 pin. + + en2-gpios: + description: + Configurable EN2 pin. + + en3-gpios: + description: + Configurable EN3 pin. + +required: + - compatible + - vdd1-supply + - vdd2-supply + - vio-supply + - clocks + - pwms + - pwm-names + - io-backends + +allOf: + - if: + required: + - ref-supply + then: + properties: + refin-supply: false + - if: + required: + - refin-supply + then: + properties: + ref-supply: false + - if: + properties: + compatible: + contains: + enum: + - adi,ad7625 + - adi,ad7626 + then: + properties: + en2-gpios: false + en3-gpios: false + adi,en2-always-on: false + adi,en3-always-on: false + + - if: + properties: + compatible: + contains: + enum: + - adi,ad7960 + - adi,ad7961 + then: + # ad796x parts must have one of the two supplies + oneOf: + - required: [ref-supply] + - required: [refin-supply] + +additionalProperties: false + +examples: + - | + #include + adc { + compatible =3D "adi,ad7625"; + vdd1-supply =3D <&supply_5V>; + vdd2-supply =3D <&supply_2_5V>; + vio-supply =3D <&supply_2_5V>; + io-backends =3D <&axi_adc>; + clocks =3D <&ref_clk>; + pwms =3D <&axi_pwm_gen 0 0>, <&axi_pwm_gen 1 0>; + pwm-names =3D "cnv", "clk_gate"; + en0-gpios =3D <&gpio0 86 GPIO_ACTIVE_HIGH>; + en1-gpios =3D <&gpio0 87 GPIO_ACTIVE_HIGH>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index fa2c8d902122..77557e85220e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1271,6 +1271,15 @@ F: Documentation/devicetree/bindings/iio/addac/adi,a= d74413r.yaml F: drivers/iio/addac/ad74413r.c F: include/dt-bindings/iio/addac/adi,ad74413r.h =20 +ANALOG DEVICES INC AD7625 DRIVER +M: Michael Hennerich +M: Nuno S=C3=A1 +R: Trevor Gamblin +S: Supported +W: https://ez.analog.com/linux-software-drivers +W: http://analogdevicesinc.github.io/hdl/projects/pulsar_lvds/index.html +F: Documentation/devicetree/bindings/iio/adc/adi,ad7625.yaml + ANALOG DEVICES INC AD7768-1 DRIVER M: Michael Hennerich L: linux-iio@vger.kernel.org --=20 2.39.2