From patchwork Mon Aug 5 08:12:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Felmeden X-Patchwork-Id: 13753263 Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) (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 3914014B095 for ; Mon, 5 Aug 2024 08:12:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.66 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722845578; cv=none; b=JEsmSPIfS7/uigHQtPtGLbSvHXSKTNGb1xQixU1r4hRx1MOQnO+FYXYjBqyntlqOqQfc2h7WCTOvwiBO5EyTRquzA1WRZIiGC520/PaHuI7sfB2amYNQExDI+niCLGPhwBmPIne7tiG67pUbDOqjYOIIJjstOP8ABnY6dATC4yU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722845578; c=relaxed/simple; bh=7duusC5QL4D7e3OKwUsKMAterf36R2wP+wBL9KtuQo4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Plb0ZP7FdmApyS8yrLDYOz8jII/M8vITMjAsXlxDJfyZPTLbdDTjlJpV4N41ajqsxcayciItB13Y/RsFPLIbcUn/GJOVmeJMYtlTeU0PIgjafIlRoig0+vcvNVw474vkyvoerOCbza2NDDdE97bEqESVHfmDmutYtwSXoCNRQas= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=thegoodpenguin.co.uk; spf=pass smtp.mailfrom=thegoodpenguin.co.uk; dkim=pass (2048-bit key) header.d=thegoodpenguin-co-uk.20230601.gappssmtp.com header.i=@thegoodpenguin-co-uk.20230601.gappssmtp.com header.b=x1GVZ4Cd; arc=none smtp.client-ip=209.85.208.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=thegoodpenguin.co.uk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=thegoodpenguin.co.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=thegoodpenguin-co-uk.20230601.gappssmtp.com header.i=@thegoodpenguin-co-uk.20230601.gappssmtp.com header.b="x1GVZ4Cd" Received: by mail-ed1-f66.google.com with SMTP id 4fb4d7f45d1cf-5b8c2a6135eso1576504a12.0 for ; Mon, 05 Aug 2024 01:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thegoodpenguin-co-uk.20230601.gappssmtp.com; s=20230601; t=1722845575; x=1723450375; 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=ycAh5p8k6UMqBbJt12G5mHQ7FFA/SYxcagx0+USNSNo=; b=x1GVZ4CdfgA24bnO/o7A5y51gxK2+t+tmn3JfXD54UIi6A13/wMjE0WKyA9KesUDnF s1Y4SE9sdopIWZ+vJi0B5NEoqrBlUlU0fTdxFqgS87WJiyiNuIzNLKQ6UJ1nJJuypuK8 jGyfG+TM2NItsIEbcZLu1QClxN0OGsSh/NZI8Pi3aj2q/L9NTo6Zehbj5LEWM1FIszDj 84v70tRjVnKphwzWEyX3BlWg4X/ifP06XH1e7v/aa5Lyh0WmHNiDiQ2sLLQnwX4PzEjE NxC5RmigsmS1k47v0arCLsAl2NGFfiqlqG7XoLnyJPpRQNgIVBulCpkSKJra8bnpoQxi r/Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722845575; x=1723450375; 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=ycAh5p8k6UMqBbJt12G5mHQ7FFA/SYxcagx0+USNSNo=; b=ieSCjWaz99/EVlT3leizWEdtIgxe9lPZYwG9qdZtKoZrQwoJ15NqJ6SbR/Sy50o//V X3vWNqIPlkIL254NP20IphDKCw7JqPKwGN+QPVs1JQSJ69j1EIKmUOpRIkgsVXp8KBSE 1Y8bX6v6cqc9PvNum0jJO9UeJ6/WbuEB6o+M331yU7aGeaTnn4kyLIwGmyyksbkwlkvO QdocNlkrLYCPKGcaWBd5mb+pawrmBQYEBRy/qYPk+37ruZA+RJwiMet0ec9Xab7qTdqv lSg+7lpH9Z7BvP224ZK3/9eOScPpLlmEEh4fs7e9I7DE4OBHTZk1jYWFSrFI6psxSMDX KAIg== X-Gm-Message-State: AOJu0Yz6OflSMIlYpvRkLzwGDykIiJQwMWm+wlZqCcvBJNNPSFg5uBmb PP3VD78wXjiFyNOuqlVrNngW1v9FKUFlfaCeNCUjcN0tLYG45BQaViYZFwrlbxY= X-Google-Smtp-Source: AGHT+IExS2llHL/Jf06oEQeHeQagTR3IMHmi0F9MY5S2rb/joQM6OCqnwsFiBXHvIIE54mwb+NQPGQ== X-Received: by 2002:a05:6402:26c1:b0:57d:3df:ba2d with SMTP id 4fb4d7f45d1cf-5b77bbb1365mr10128837a12.2.1722845575281; Mon, 05 Aug 2024 01:12:55 -0700 (PDT) Received: from carbon.local (catv-86-101-168-118.catv.fixed.vodafone.hu. [86.101.168.118]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bb88d1d9a3sm1231565a12.26.2024.08.05.01.12.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 01:12:54 -0700 (PDT) From: Joshua Felmeden Date: Mon, 05 Aug 2024 09:12:52 +0100 Subject: [PATCH v6 1/2] dt-bindings: iio: humidity: add ENS210 sensor family Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240805-ens21x-v6-1-5bb576ef26a6@thegoodpenguin.co.uk> References: <20240805-ens21x-v6-0-5bb576ef26a6@thegoodpenguin.co.uk> In-Reply-To: <20240805-ens21x-v6-0-5bb576ef26a6@thegoodpenguin.co.uk> To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Joshua Felmeden , Conor Dooley X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1722845573; l=1982; i=jfelmeden@thegoodpenguin.co.uk; s=20240709; h=from:subject:message-id; bh=7duusC5QL4D7e3OKwUsKMAterf36R2wP+wBL9KtuQo4=; b=OFfTTq+MbktgkMY3Lys0akTTUOukMj+klWq2n9Upx7H8At2sYhC+OdKGfInC0onmOQJiju5fX sWZsvbY8Y7sDS9br9ZqSQQEoVU8J+uyXYZTEjBlZ/ilDy0sEOr3lYGT X-Developer-Key: i=jfelmeden@thegoodpenguin.co.uk; a=ed25519; pk=tePkZ5iJ3ejQ2O3vjhsj7GrLYcyJN1o1sMT3IEXvKo0= Add device tree documentation for ENS210 family of temperature and humidity sensors Signed-off-by: Joshua Felmeden Reviewed-by: Conor Dooley Reviewed-by: Rob Herring (Arm) --- .../bindings/iio/humidity/sciosense,ens210.yaml | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/humidity/sciosense,ens210.yaml b/Documentation/devicetree/bindings/iio/humidity/sciosense,ens210.yaml new file mode 100644 index 000000000000..ed0ea938f7f8 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/humidity/sciosense,ens210.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/humidity/sciosense,ens210.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ScioSense ENS210 temperature and humidity sensor + +maintainers: + - Joshua Felmeden + +description: | + Temperature and Humidity sensor. + + Datasheet: + https://www.sciosense.com/wp-content/uploads/2024/04/ENS21x-Datasheet.pdf + https://www.sciosense.com/wp-content/uploads/2023/12/ENS210-Datasheet.pdf + +properties: + compatible: + oneOf: + - items: + - enum: + - sciosense,ens210a + - sciosense,ens211 + - sciosense,ens212 + - sciosense,ens213a + - sciosense,ens215 + - const: sciosense,ens210 + - const: sciosense,ens210 + + reg: + maxItems: 1 + + vdd-supply: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + temperature-sensor@43 { + compatible = "sciosense,ens210"; + reg = <0x43>; + }; + }; +... +