From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 D6856D2FB for ; Thu, 25 Sep 2025 00:05:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758758727; cv=none; b=dwdkT7Rq80Gm0rfjiKOcqM2mOF/nP3gNUOHQhCOWkMbO+Hn0mG9hey7ngnIQwdvAHgwObMCL7nMPHP97TcSVoD/xtuU0f/dTWdv7hLeMyQ9PMHK0HPhjlDCoFBb55/JcT6ZNZSlzjF2MLmf+OQcyMwh/J7qirYAgAy6gY/EagYg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758758727; c=relaxed/simple; bh=Yjeo/kxzLvJO2MQlk4TZVIyVLUXf4NIEiJXkBmyt40M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MpmBOsgb4wm5bDBMIevJOLlK3ZNgCB9A18B+cGV2rgPP0zu5hFuAqTnW2fFqZoxmN9qIwYuMJ6Qwzt4LG22t0F5bH4/qUN5vjwoGZ9ajaS1vONQO8/9dNYaBu0dHFLxlA8AKftiVpwL5XcxrcUUkJdj/ms8yvRNxleqXW8pxxSo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C24DD3F532; Thu, 25 Sep 2025 00:05:18 +0000 (UTC) Authentication-Results: smtp-out1.suse.de; none Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id B8F7613A6B; Thu, 25 Sep 2025 00:05:17 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id ACrxKj2H1GgdNQAAD6G6ig (envelope-from ); Thu, 25 Sep 2025 00:05:17 +0000 From: Stanimir Varbanov To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, Broadcom internal kernel review list , linux-hwmon@vger.kernel.org Cc: Jean Delvare , Guenter Roeck , Rob Herring , Florian Fainelli , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Stefan Wahren , Saenz Julienne , Andrea della Porta , Phil Elwell , Jonathan Bell , Dave Stevenson , Stanimir Varbanov Subject: [PATCH 1/4] dt-bindings: Add Raspberry Pi's RP1 ADC Date: Thu, 25 Sep 2025 03:04:13 +0300 Message-ID: <20250925000416.2408457-2-svarbanov@suse.de> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20250925000416.2408457-1-svarbanov@suse.de> References: <20250925000416.2408457-1-svarbanov@suse.de> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Action: no action X-Spam-Flag: NO X-Spam-Level: X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[]; TAGGED_RCPT(0.00)[dt] X-Rspamd-Queue-Id: C24DD3F532 X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spam-Score: -4.00 Document dt-bindings for Raspberry Pi's RP1 ADC. Signed-off-by: Stanimir Varbanov --- .../bindings/hwmon/raspberrypi,rp1-adc.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/raspberrypi,rp1-adc.yaml diff --git a/Documentation/devicetree/bindings/hwmon/raspberrypi,rp1-adc.yaml b/Documentation/devicetree/bindings/hwmon/raspberrypi,rp1-adc.yaml new file mode 100644 index 000000000000..5266b253fd2b --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/raspberrypi,rp1-adc.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/raspberrypi,rp1-adc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rasberry Pi RP1 ADC device + +maintainers: + - Stanimir Varbanov + +description: | + The RP1 ADC is a five input successive-approximation ADC with 12-bit + resolution (ENOB 9.5-bit) at 500kSPS. It has four external inputs + and one internal temperature sensor. + +properties: + compatible: + const: raspberrypi,rp1-adc + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + vref-supply: + description: + Reference voltage regulator 3.3V. + +required: + - compatible + - reg + - clocks + - vref-supply + +additionalProperties: false + +examples: + - | + adc@400c8000 { + compatible = "raspberrypi,rp1-adc"; + reg = <0x400c8000 0x4000>; + clocks = <&rp1_clocks 30>; + vref-supply = <&rp1_vdd_3v3>; + }; -- 2.47.0