From patchwork Wed Jul 31 12:24:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Bonnefille X-Patchwork-Id: 13748614 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 5800318E03E; Wed, 31 Jul 2024 12:24:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722428665; cv=none; b=GhS/xYAQLBxlfJ3nn1A2oGXS7zBdAb6QPKC28jMdP+UflMMOgliQUMHjQ2WjXigbmnGsUdmAiERmNisvwRFbVuFt1yfYQXQKhYk0UK6wu1UnpRjhQP/RYM5rzFP44RrHYfFmw75DwE1t++kL3xhzuRRxQ5FRW3AyApjVJcydoIw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722428665; c=relaxed/simple; bh=Z+N10bCG7+YiKm7h6EUMdXG5BJ+tQXs4o8Z5DSg8AaU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HiHhOmSW3BOGSuiDNJMrkERMp+unKJsvcDLs//ZsMA8zGdaF/28STfxd5+GMS7IkbeMB0BhfQ1RMEsHiRVrJ8PoQeZJwk+HvQ2sGz7D99VPAH/cawK0eO3c9D+UVHV5bjP/9bsuFLWjJ00lPqfrOaImN1pnVOygrwkkf9ywCGYA= 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=fPzfAHUN; arc=none smtp.client-ip=217.70.183.199 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="fPzfAHUN" Received: by mail.gandi.net (Postfix) with ESMTPSA id 5B4ABFF805; Wed, 31 Jul 2024 12:24:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1722428660; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WX/Hj4Pt/yRxr0nGT2LrpjQSv1HGzsNeBfY67q/Rvu4=; b=fPzfAHUNbUy5m7YrD5YmT3tsa0XZG7WXll2mNXIdKBTb4Pe7aXyJxUoaO0xJT30g8pjn4N FI4pe8Uo8eaEK3DPf47eHRGN8xtv7R9ePhekWPKX874lffXvyRIoc8VUYYLEKdckFPLY51 o5cg77Ha4B/jb3LEk5bp8g9lMCKQdbu/V/17jlP3BqC+f0FVZYqXgLvxMzcZeJNNy14apW J30aG3/JGSxY61dXkE4h8iboNSH4c3wTUYjsaaRplNklDdB5DGIXRufybZh7zUb2OCtC5h gjZc90KOthvlqIvg6JhH+LxOAIPbqakAOelbfa6MIHBJLEFctbmYYXExVmmvYA== From: Thomas Bonnefille Date: Wed, 31 Jul 2024 14:24:14 +0200 Subject: [PATCH v3 1/3] dt-bindings: iio: adc: sophgo,cv18xx-saradc.yaml: Add Sophgo SARADC binding documentation Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240731-sg2002-adc-v3-1-5ac40a518c0a@bootlin.com> References: <20240731-sg2002-adc-v3-0-5ac40a518c0a@bootlin.com> In-Reply-To: <20240731-sg2002-adc-v3-0-5ac40a518c0a@bootlin.com> To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Thomas Petazzoni , =?utf-8?q?Miqu=C3=A8l_R?= =?utf-8?q?aynal?= , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Thomas Bonnefille X-Mailer: b4 0.14.1 X-GND-Sasl: thomas.bonnefille@bootlin.com The Sophgo SARADC is a Successive Approximation ADC that can be found in the Sophgo SoC. Signed-off-by: Thomas Bonnefille --- .../bindings/iio/adc/sophgo,cv18xx-saradc.yaml | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/sophgo,cv18xx-saradc.yaml b/Documentation/devicetree/bindings/iio/adc/sophgo,cv18xx-saradc.yaml new file mode 100644 index 000000000000..79d8cb52279f --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/sophgo,cv18xx-saradc.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/sophgo,cv18xx-saradc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: + Sophgo CV18XX SoC series 3 channels Successive Approximation Analog to + Digital Converters + +maintainers: + - Thomas Bonnefille + +description: + Datasheet at https://github.com/sophgo/sophgo-doc/releases + +properties: + compatible: + oneOf: + - items: + - const: sophgo,cv1800b-saradc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - clocks + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + #include + adc@30f0000 { + compatible = "sophgo,cv1800b-saradc"; + clocks = <&clk CLK_SARADC>; + interrupts = <100 IRQ_TYPE_LEVEL_HIGH>; + reg = <0x030F0000 0x1000>; + };