From patchwork Mon Jul 22 16:58:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Felmeden X-Patchwork-Id: 13738967 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 DAD4516EBE8 for ; Mon, 22 Jul 2024 16:58:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721667532; cv=none; b=f1DOi9TgAafI9Le/8xvhdAFQa1F4Y/4/2xoW9ambNnP9gTKRfqECzRyMZO5YiSqV5MXdkxNr73v3/fTlyRrkYjzPEs/SJi77WPxSnA1+cnJ1vnS6+5VILn4xERzmkF1u4eKZQSSsMawORWTUZYRHDkYvtD+45L5+FlvRMiMJkfQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721667532; c=relaxed/simple; bh=7duusC5QL4D7e3OKwUsKMAterf36R2wP+wBL9KtuQo4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ksgT+E9n5I00+r+MQHiIqqmGRwsBP8dJCPIxBW1Pr852sPC3VoIaSFzgcMFCAqmy8MrZry2SSYNiXt7eAyVxCjzDjkVer/2+UdzerjdabfNEb8dWaotMZ4U6qDEY2CjEV39hn/7e3NASs8HDMFyqy6nWAZ1tE1T3/5s1r++HaaQ= 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=oao6zy8r; arc=none smtp.client-ip=209.85.128.41 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="oao6zy8r" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-426636ef8c9so32210015e9.2 for ; Mon, 22 Jul 2024 09:58:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thegoodpenguin-co-uk.20230601.gappssmtp.com; s=20230601; t=1721667529; x=1722272329; 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=oao6zy8rCQHvPuTli1m1kb1OD8MO1i9mj4D0hcr3ppPfQ8nJtrHFPl1jPbqwAaLOq+ kNcbfcgRAuVujNFx4XiRuE6ggLlrrt3nTM4KfQ0AjjQmAEB6g1vRNPnXnSXWsv6uFcw5 si96wf62FLjffaNoIg3NWou7acOQ6Ulyx43wo/zH2rAd5EeqihSL4V4qYC+naAee2Fs3 adjlHNFMjxdtr2qAgIzGStZWmiExG+ZKZci8+HqhG9pkRVzcYlf5plDxKQGY5KB5Sv+1 W68ZRM2NVtFmk6bItMs3J3JJjJMfVKX0T5QqqZdiiRuB8iEDIK4vNXHD3L1SjAofwOYU StsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721667529; x=1722272329; 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=q9rvc6K279/XpPtfyx2jbBi6MykUzS+6BdWH3pfOSqOkDVPR1iuq3NV/rtOdv7Q2dd vZJvzYu92KHld5Y/+G2DcXX3urI0a1+pHzJGKs2g1tJYo8MPwqgXRuRa1PwgsKoLnAVB y252/B+is5lqbtgsAJdMV8LV1i86MgqkY1RipQjmpQMalMKTQNHBKLBCJ7sz38arGCU0 0tzNpkR33WyG0jSE8Z2hXMpFQBLTDXmg4fMa18+DbC8LzlIaIQksDoT8HE9VWseq5jXu f7qyCCFAZ594dm10jkdrDKE8q10or17bLCFnF7OeubGXsM4W2bJ6YCKuhMcsezTP+sB6 0fEg== X-Forwarded-Encrypted: i=1; AJvYcCV3dZzjBo4n3b1tjkmMmaEBK5Gj1oDkrL173Q7JuRIGNZ/ZQERZrwDpSHdz76Pd35qP9KlmjsYBasTVdWCvPBGNIZ/fvje7eQ89 X-Gm-Message-State: AOJu0Yx82HRFx1N6i70viTGBnV2Z09ZYElbOxvMxzOaoGAv0H8giZjQ9 WV+judAwyLXDefI0h8lZ/WX+8T3wgWtX/Eh6dEYwuebaMizIPZJ/Oxi9sZKNheM= X-Google-Smtp-Source: AGHT+IHoJ1ox2rHRGtjks/hF7bJbL9LkM2r/LomFDmJIvUY3fXiQV5+nkoKXs0oeAUyKjEr63N+H+Q== X-Received: by 2002:a05:600c:1d04:b0:426:62c5:4742 with SMTP id 5b1f17b1804b1-427dc5153ccmr49800685e9.7.1721667529178; Mon, 22 Jul 2024 09:58:49 -0700 (PDT) Received: from carbon.local (aztw-29-b2-v4wan-166913-cust1764.vm26.cable.virginm.net. [82.37.38.229]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-427d2a8e436sm161660055e9.33.2024.07.22.09.58.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jul 2024 09:58:48 -0700 (PDT) From: Joshua Felmeden Date: Mon, 22 Jul 2024 17:58:42 +0100 Subject: [PATCH v5 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: <20240722-ens21x-v5-1-cda88dce100e@thegoodpenguin.co.uk> References: <20240722-ens21x-v5-0-cda88dce100e@thegoodpenguin.co.uk> In-Reply-To: <20240722-ens21x-v5-0-cda88dce100e@thegoodpenguin.co.uk> To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Joshua Felmeden , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Conor Dooley X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1721667526; l=1982; i=jfelmeden@thegoodpenguin.co.uk; s=20240709; h=from:subject:message-id; bh=7duusC5QL4D7e3OKwUsKMAterf36R2wP+wBL9KtuQo4=; b=WtEwcGBCOyAJaAV826W2c/TzftVDSaOi0gVV+sow0O43Rh4OPl1qOWPGNGNMiVDRyoj36TcnK JoS4cbU4EtIC2mqxgOqv6JPs5KHwC2czxC7tF3qrI/BbuBuqOu04QGC 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>; + }; + }; +... +