From nobody Sun Feb 8 22:57:32 2026 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5A6827EFEF for ; Wed, 15 Oct 2025 14:30:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760538607; cv=none; b=B0JgCjIo1UtXBMlCFx/mK21vsqB5ezOjSCMi/eXSeFr95wPYYzMQFf4jLSCXxgoJJdQaL31/9EHkd2cfWtxIjLGu18iV9niPFkEKQxBoMlKim6J4vzzrra2+pxA6/8it/a2G2C1bQXSGQoM0latm6C6owEdkqnhTV/2GIrn/t/A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760538607; c=relaxed/simple; bh=JF5d0RuqHdzuzAyczJrD8nFHVpQJnUZyIUIRam1+8Hs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VC7tcbATFn9rgtnjJub13vj5pp9wkdS/AaQa73x7ADc4BIMORbT/C7VSjiJ6nbHjdgVsJpz/m+FPkUuKfkkUZBw5G7naBWxqQZh0OD5C0OXduPqDEoQ6L08ThfHQ4aL7n9df9psXcHQwU9XsTkKbz5uR2jtjjkE0nUKM9LtJqlc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=I6smQ6fi; arc=none smtp.client-ip=185.171.202.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="I6smQ6fi" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 41A12C09FB6; Wed, 15 Oct 2025 14:29:43 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 5CD91606F9; Wed, 15 Oct 2025 14:30:02 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id C55F9102F229E; Wed, 15 Oct 2025 16:29:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1760538601; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=22T1dg1cbNfiO27ErLkrwh8WK9WMTDQ6TnjoQ7G7mW8=; b=I6smQ6fiRvw3h6Haj7ezxlNJWUUXuj20KrGzzFyZarvQRLsiF/+VGb0MIkOIPANjYK6k+3 F6KAgHv4zAnLkVxEjdSfYweAsEdz5K5C553E38Dq7ysr4dM7oywkL4rKuEmBi73VWm6xcU 7jfgzzZ/l+KyT5eQ71huXR6tom+M4Q7d0EnvW7qi4h90a7NcviSwKCpus6VTNbFFmIRsdI Usxw8duWPDXjlsEd9uYcHJQ+XTggzXQXv+908YAvhQYRMEp7FNS/2Q0+9ctUEh7HY2/yd8 +SIVXWVHLM8MGQEzub7w4TFxCy7Vu9T3orUDJDS3nOv3A6fQa0Tfwr5GDg5FZQ== From: "Herve Codina (Schneider Electric)" To: Wolfram Sang , Herve Codina , Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Liam Girdwood , Mark Brown Cc: linux-iio@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Pascal Eberhard , Miquel Raynal , Thomas Petazzoni Subject: [PATCH 1/4] dt-bindings: iio: adc: Add the Renesas RZ/N1 ADC Date: Wed, 15 Oct 2025 16:28:13 +0200 Message-ID: <20251015142816.1274605-2-herve.codina@bootlin.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251015142816.1274605-1-herve.codina@bootlin.com> References: <20251015142816.1274605-1-herve.codina@bootlin.com> 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 X-Last-TLS-Session-Version: TLSv1.3 Content-Type: text/plain; charset="utf-8" The Renesas RZ/N1 ADC controller is the ADC controller available in the Renesas RZ/N1 SoCs family. Signed-off-by: Herve Codina (Schneider Electric) --- .../bindings/iio/adc/renesas,rzn1-adc.yaml | 120 ++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/renesas,rzn1-= adc.yaml diff --git a/Documentation/devicetree/bindings/iio/adc/renesas,rzn1-adc.yam= l b/Documentation/devicetree/bindings/iio/adc/renesas,rzn1-adc.yaml new file mode 100644 index 000000000000..73a08eef28d9 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/renesas,rzn1-adc.yaml @@ -0,0 +1,120 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/renesas,rzn1-adc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/N1 Analog to Digital Converter (ADC) + +maintainers: + - Herve Codina + +description: + The Renesas RZ/N1 ADC controller available in the Renesas RZ/N1 SoCs fam= ily + can use up to two internal ACD cores (ADC1 and ADC2) those internal core= s are + handled through ADC controller virtual channels. + +properties: + compatible: + items: + - enum: + - renesas,r9a06g032-adc # RZ/N1D + - const: renesas,rzn1-adc + + reg: + maxItems: 1 + + clocks: + items: + - description: APB internal bus clock + - description: ADC clock + + clock-names: + items: + - const: pclk + - const: adc-clk + + power-domains: + maxItems: 1 + + adc1-avdd-supply: + description: + ADC1 analog power supply. + + adc1-vref-supply: + description: + ADC1 reference voltage supply. + + adc2-avdd-supply: + description: + ADC2 analog power supply. + + adc2-vref-supply: + description: + ADC2 reference voltage supply. + + '#io-channel-cells': + const: 1 + description: | + Channels numbers available: + if ADC1 is used (i.e. adc1-{avdd,vref}-supply present): + - 0: ADC1 IN0 + - 1: ADC1 IN1 + - 2: ADC1 IN2 + - 3: ADC1 IN3 + - 4: ADC1 IN4 + - 5: ADC1 IN6 + - 6: ADC1 IN7 + - 7: ADC1 IN8 + if ADC2 is used (i.e. adc2-{avdd,vref}-supply present): + - 8: ADC2 IN0 + - 9: ADC2 IN1 + - 10: ADC2 IN2 + - 11: ADC2 IN3 + - 12: ADC2 IN4 + - 13: ADC2 IN6 + - 14: ADC2 IN7 + - 15: ADC2 IN8 + +additionalProperties: false + +required: + - compatible + - reg + - clocks + - clock-names + - power-domains + - '#io-channel-cells' + +dependencies: + # None or both adc1-avdd-supply / adc1-vref-supply should be present + adc1-avdd-supply: [ adc1-vref-supply ] + adc1-vref-supply: [ adc1-avdd-supply ] + # None or both adc2-avdd-supply / adc2-vref-supply should be present + adc2-avdd-supply: [ adc2-vref-supply ] + adc2-vref-supply: [ adc2-avdd-supply ] + +# At least one of avvd/vref supplies +anyOf: + - required: + - adc1-vref-supply + - adc1-avdd-supply + - required: + - adc2-vref-supply + - adc2-avdd-supply + +examples: + - | + #include + + adc: adc@40065000 { + compatible =3D "renesas,r9a06g032-adc", "renesas,rzn1-adc"; + reg =3D <0x40065000 0x200>; + clocks =3D <&sysctrl R9A06G032_HCLK_ADC>, <&sysctrl R9A06G032_CLK_AD= C>; + clock-names =3D "pclk", "adc-clk"; + power-domains =3D <&sysctrl>; + adc1-avdd-supply =3D <&adc1_avdd>; + adc1-vref-supply =3D <&adc1_vref>; + #io-channel-cells =3D <1>; + }; +... --=20 2.51.0