From patchwork Wed Nov 15 12:58:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshul Dalal X-Patchwork-Id: 1864244 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=ibN7e/0C; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=147.75.199.223; helo=ny.mirrors.kernel.org; envelope-from=devicetree+bounces-15886-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [147.75.199.223]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SVjvJ3BxKz1yRG for ; Thu, 16 Nov 2023 00:00:28 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3FA5C1C20912 for ; Wed, 15 Nov 2023 13:00:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6992E182C1; Wed, 15 Nov 2023 13:00:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ibN7e/0C" X-Original-To: devicetree@vger.kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 CAF08179AC; Wed, 15 Nov 2023 13:00:16 +0000 (UTC) Received: from mail-oa1-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6F0F109; Wed, 15 Nov 2023 05:00:15 -0800 (PST) Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-1e9bb3a0bfeso4176835fac.3; Wed, 15 Nov 2023 05:00:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700053214; x=1700658014; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=wDT3a72/4EK2RXUg+bwJp3dxgNq1+ZbWNBolGSQCq8U=; b=ibN7e/0CnUF46/PfOZy6paIxeUlRCoWjZy9wlCAzkiWJDrWEl5VV87vMjXEDwdHPV/ WxRyTBoIRuhyBbg58gGx5BObPvCo/w1Ey/jdolGlTjhcrLrqMDQab+N9Wgt/rJbbIcYW jhRg7k78zvNBCC7TMmAd8pKfXD3xZYIT4iDBK/LeBTWkfTlnTJC3biId/NBztVIWQRuE UClg2IXW2piS6KEtdf8Kta1lWZaOR8ILYbiBdwf4qUq9/tu3uKS6ywg0rvmRdrYCKK5l YsZZR45PCKKoOBoxfbAPr6wM1a78c+1xfEuS91jkwBg/vUcuV2M2CVjwDANRdPNJauYt JqBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700053214; x=1700658014; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wDT3a72/4EK2RXUg+bwJp3dxgNq1+ZbWNBolGSQCq8U=; b=ESbXCbdhXFj+67y5o440jwxlv18NPnG6W1qUiwpE3LnmuCUM5NDHquLHfT0viyM+WI 7EtcQdT30e3lbnFNbfNXtSqPWQedIG5xWNeOqVlf7rlSYcw73HIctQfAT/bnQGc25gpV d9yaO2qylz3yUUgzIdQBSNM6tPxkeZr2k3YgAU9GC+4uLPXpZFGcIgWzLgukrPuY6FKw zs5UMoGAMt33y7Y8qCcCDy4JkefiU6MNJGZpS4S5+SnVER/kJDGuCCHmbNvuWNEUKTCi LLNwUeGX+AvTBN/W7gmWCw9xMLcfyE0piTXEi1atOttVWdCui0IoB6o6pKu7FGrEJMlw ZtoQ== X-Gm-Message-State: AOJu0YxVB9riD1SBlrfY3xC2lBFcLE0ss7ROBxqpwN36U4tZVohKmuSy 2td2kMSrFCKIQzFvSlofHJpeq5xQBl1x2w== X-Google-Smtp-Source: AGHT+IEPrIUX6ZzViiJXg+HhiZ1aUAYZpbVsJ3LLGoCj+Ba6zvmxvqFqsdgCHXtK315N6GkzpKzK2Q== X-Received: by 2002:a05:6870:f14d:b0:1d5:b2ba:bc93 with SMTP id l13-20020a056870f14d00b001d5b2babc93mr15039104oac.13.1700053203762; Wed, 15 Nov 2023 05:00:03 -0800 (PST) Received: from localhost.localdomain ([2401:4900:2353:8963:b940:1ac0:2fbc:6b6]) by smtp.gmail.com with ESMTPSA id fh42-20020a056a00392a00b006c4d128b71esm2812867pfb.98.2023.11.15.05.00.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 05:00:03 -0800 (PST) From: Anshul Dalal To: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org Cc: Anshul Dalal , Conor Dooley , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , linux-kernel-mentees@lists.linuxfoundation.org, Jonathan Cameron Subject: [PATCH v2 1/3] dt-bindings: vendor-prefixes: add aosong Date: Wed, 15 Nov 2023 18:28:06 +0530 Message-ID: <20231115125810.1394854-1-anshulusr@gmail.com> X-Mailer: git-send-email 2.42.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Aosong Electronic Co., LTD. is a supplier for MEMS sensors such as AHT20 temperature and humidity sensor under the brand name Asair Signed-off-by: Anshul Dalal --- Changes for v2: - Changed vendor prefix from asair to aosong --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 573578db9509..48d4ff635562 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -117,6 +117,8 @@ patternProperties: description: Andes Technology Corporation "^anvo,.*": description: Anvo-Systems Dresden GmbH + "^aosong,.*": + description: Guangzhou Aosong Electronic Co., Ltd. "^apm,.*": description: Applied Micro Circuits Corporation (APM) "^apple,.*": From patchwork Wed Nov 15 12:58:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshul Dalal X-Patchwork-Id: 1864245 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=LafvcVFT; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:4601:e00::3; helo=am.mirrors.kernel.org; envelope-from=devicetree+bounces-15887-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [IPv6:2604:1380:4601:e00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SVjvN4TYpz1yRG for ; Thu, 16 Nov 2023 00:00:32 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D6C541F237D5 for ; Wed, 15 Nov 2023 13:00:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 888F318B0C; Wed, 15 Nov 2023 13:00:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LafvcVFT" X-Original-To: devicetree@vger.kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 8444518031; Wed, 15 Nov 2023 13:00:22 +0000 (UTC) Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1124211D; Wed, 15 Nov 2023 05:00:19 -0800 (PST) Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-517ab9a4a13so5306397a12.1; Wed, 15 Nov 2023 05:00:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700053218; x=1700658018; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TSgLEiacSTK1nlXU5ESAjkt0zHh/T+kLWeSwZ58MCmk=; b=LafvcVFTtt4spzSgWfxS/+65CZaY3NsO1pQg1AVi5TbCY9Mi0jW6hxovib3BQ4AUeX c5C/tpMEownjHe9pFGtQOuXFDzn8TmM8RWLBPqD9lRHBoPpl1R5kemkFD/dx/bPTQtCN PUEZgFa+vkYBp6cp1feBsYKdI5G7vpEZbzQx/huKK5Xb0cgiw6wxxEe2JCd5BYprWlLh aQJ4C58ixJ3Z4agSZFXYlyaTJqF+IouIQfgezVQnB3vIjdhbiAxZorhg/TmYn1iEbXZU GIxZQWN9FeJjzImDoF/MJl44p8paJabmbEQ3Zoelwp1ijCo7Zst3S7jDpZgxnD5u6mVd zpMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700053218; x=1700658018; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TSgLEiacSTK1nlXU5ESAjkt0zHh/T+kLWeSwZ58MCmk=; b=gi+HKpYy1Pi8rh2gQgVcMNT/J+HsFHeUoeKV6jAeY3j5IwArQ9/izBKrlV0wk0kb69 83cJl8Y8ZYJxoZ8b+PKf+uT2QM2pXU8opmkloF8ZqsUyJ1RBLZ9WVLnzeoaMcVBtnbzb GaFW4rIND0GoNdL2fP4nUKIqeY9HYuMlZgAfg+I3yXbqdN5TFFc/AJNHh0rmWrFtupZi 365fua29Oh78m6TcfZ1WgbsatJBOSco2RKxIp5EK1IWr3tU1BSQ7/ZMajkSIKBH4Y8NN UxiQsnzjc5HqZlsvs2OHD++XSZSgpMr6UTJJ6LoLCrtxM7N09v8ikMaeGgaT1KbUlIQQ vbvQ== X-Gm-Message-State: AOJu0YyHZCUzVslNJyLdHDFQK1jNHe5oN00YfunF29OTe4dKUEuwVH6B biu+t8gV77fS77GW+ddi7WU3UoghJNTW7A== X-Google-Smtp-Source: AGHT+IEB3HkUt0kuClIyGcyxmuuwyVWGHuf6jlIwovd8wEjdCAC4O6BE3n+d1PDNS9dMndhgntvhsg== X-Received: by 2002:a05:6a20:158c:b0:15d:e68d:a850 with SMTP id h12-20020a056a20158c00b0015de68da850mr14124970pzj.29.1700053217925; Wed, 15 Nov 2023 05:00:17 -0800 (PST) Received: from localhost.localdomain ([2401:4900:2353:8963:b940:1ac0:2fbc:6b6]) by smtp.gmail.com with ESMTPSA id fh42-20020a056a00392a00b006c4d128b71esm2812867pfb.98.2023.11.15.05.00.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 05:00:17 -0800 (PST) From: Anshul Dalal To: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org Cc: Anshul Dalal , Conor Dooley , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , linux-kernel-mentees@lists.linuxfoundation.org, Jonathan Cameron Subject: [PATCH v2 2/3] dt-bindings: trivial-devices: add aosong,ags02ma Date: Wed, 15 Nov 2023 18:28:07 +0530 Message-ID: <20231115125810.1394854-2-anshulusr@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231115125810.1394854-1-anshulusr@gmail.com> References: <20231115125810.1394854-1-anshulusr@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add bindings for Aosong AGS02MA TVOC sensor. The sensor communicates over i2c with the default address 0x1a. TVOC values can be read in the units of ppb and ug/m^3 at register 0x00. Datasheet: https://asairsensors.com/wp-content/uploads/2021/09/AGS02MA.pdf Product-Page: http://www.aosong.com/m/en/products-33.html Signed-off-by: Anshul Dalal --- Changes for v2: - Removed device from trivial-devices - Added standalone binding with vdd-supply property --- .../bindings/iio/chemical/aosong,ags02ma.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/chemical/aosong,ags02ma.yaml diff --git a/Documentation/devicetree/bindings/iio/chemical/aosong,ags02ma.yaml b/Documentation/devicetree/bindings/iio/chemical/aosong,ags02ma.yaml new file mode 100644 index 000000000000..4a0278c6318c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/chemical/aosong,ags02ma.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/chemical/aosong,ags02ma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Aosong AGS02MA VOC Sensor + +description: | + AGS02MA is an TVOC (Total Volatile Organic Compounds) i2c sensor with default + address of 0x1a. + + Datasheet: + https://asairsensors.com/wp-content/uploads/2021/09/AGS02MA.pdf + +maintainers: + - Anshul Dalal + +properties: + compatible: + enum: + - aosong,ags02ma + - asair,ags02ma + + reg: + maxItems: 1 + + vdd-supply: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@1a { + compatible = "aosong,ags02ma"; + reg = <0x1a>; + vdd-supply = <&vdd_regulator>; + }; + };