From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yx2-f12.google.com (mail-yx2-f12.google.com [74.125.224.140]) (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 410EA33F368 for ; Sat, 12 Sep 2026 01:39:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.224.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789177167; cv=none; b=FkyxjzaisBOf6p4u8IDD+c8mfwm+OUKqYB94flp8W0JyAgHpIxKPbfZlQaq9/5xwWSLprZC1zDCgqaeT06H+AsBs4tcGWAMWFsWHzLnxJmhsm5hFLVtMJa2/NZ0+gtP2d1PRlE1+OpNrYrj8Pg7QsDhkDadi7zukAu+a5jNEP0s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789177167; c=relaxed/simple; bh=JLLXSvZCKraVQIIXIuTkcWyIgBFVni2Obqjb6K0W0u0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bmsTsELnIM6Wej/3QHCIUWqn9wL19gfXeWd7AWWDff/YscNORD/6DBMqOBsgwy9qCXab80NYa2bqQE7aBdxxiBP3FZPs372kFi8BZVfI46cmqf461UPvNQ8Qf8RF3zmvpzfwkeTS4iDyWls+0KKwd6gfWVMMP99j+yq2CYfHUo8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JpaGvR+U; arc=none smtp.client-ip=74.125.224.140 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JpaGvR+U" Received: by mail-yx2-f12.google.com with SMTP id 00721157ae682-85d43da99easo6269537b3.1 for ; Fri, 11 Sep 2026 18:39:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789177163; x=1789781963; 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:content-type; bh=j5UQFfztvZOCjQN7oLrmWgKlycY6XtxKRBgU4jQ0rVk=; b=JpaGvR+UwdxB+HKQA0zujuigXoLPPmIQqQiU57zZwUygEQwY5NxnSBcKby7hocV6ga mlb9AsM/WaVS+2ryBUBjxBys54Zm0Jh9BG7bMenDza0j8aE5kaWpxoBxB/2rJsR5+lMA IOwxiklQqDmh2pGdVNtmxF3MAJqBPb7/MOqAEGPIyxoEvRtB6bhGWdgoFlPl0jMloVjG Mx6osrz9dyq43a67+15l2L4DhL1ARDCWB5ra55Q5zE2LTsQlwUH+HR/TdJIa2D6nV5Cd 0siYRHM5J1C7b+9BgD8t70f2HXgOdcml5TzuYneQL/gWM7R/lQwnPGdDjpx8fA99GggW ht8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789177163; x=1789781963; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=j5UQFfztvZOCjQN7oLrmWgKlycY6XtxKRBgU4jQ0rVk=; b=gxrMx7ZVgAXj/JrlBHyp6tmQ07hrRCb5+pDvq2IW5tAxnx5RnvSs7Vlbr+WM19DdXO qzUwG7phvK1OtGb3de1TvtrVhW5vodGHtoWRLBfKyRqhp9cmPmda82s0Gb2YXnXgmoEE aZGAjWtdHgdWqgMT2TNpp/HHTrmaZf3buNcqug/jD76Z7XoRzPpqQFBaEI/JbBFb9Dwb uEdc6KHmTm4iz3vOCwAxhEOfK1sGbBlEg9Eh6ls34mHeEgIS18BE4OqK3GqWcUANMPzx 23cJkqaUgLMAW3ZvJedDzS4Nrd5twd/iwiO71fHXNy902ILuLwJANH4dxjLioDF/qNVE FLiw== X-Forwarded-Encrypted: i=1; AKwUvByhTE5JvrI4SEhatUd2fSX2axozInULdSc80oEBT8xMolSWAt4J1G1c2X6O5pzS+gzL8iy6rTI19lWQmz4=@vger.kernel.org X-Gm-Message-State: AFuF++lf+0OGLgEu/S47v1JDp5dauILWL2VkfjpOiBj0MjkvOCLa2c6J umasU3XBtk4NorSODUG4oXwqeh7lvIwIwgepErZ+1uq7OADSW/ZmWwiU X-Gm-Gg: AYBFou091vwyTV8gY8fn5AcCXhg1muxMqaHMbbzsWbMM3UZuhLqByKxnE7y/jVb8LCf pJPd+ALlCKhe5SieWO+jpUUo7jNsao4vAZNBwXFSw1O3M+Z4HLnth+/Qc5A86uHvVGCmvRWdhnw jKZPe3JyW6V3UroeM1H/od+/Sd3arkRMGvgXTFo2o8UWCCOJCkVgCDgJoRfYD74b+bHQs3uGiaV J9mzWivIZliq0xykQTexFcGYI23uhdPcd1SrkUzVfsAQptLwHav1RcBZesRUuao8MRhGQdsWE80 xG+JRD9vR5C7UhL1WEP1P33UHiBeJJomm2AtChGKR324FP14sicaYT3h5Ez+Q9u0SUf4HkG9Ejy sWqeTTwNGGk0zr0nPlFS3J9SNroyd/YOGNFccB9oLElaqP02pMyWSUU0sZAeVE3Pc9MDKr84TxD J1S6/zKTIN0IaJylHj+lgneFrLjAl35T1oWsiU+owzveti9XXFI5XyLw== X-Received: by 2002:a05:690c:319:b0:887:1704:be8a with SMTP id 00721157ae682-8871704c8e3mr9286207b3.8.1789177163260; Fri, 11 Sep 2026 18:39:23 -0700 (PDT) Received: from localhost ([2600:1700:5431:250::3e]) by smtp.gmail.com with ESMTPSA id 00721157ae682-884894fd624sm17098387b3.46.2026.09.11.18.39.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2026 18:39:22 -0700 (PDT) From: Chang Yu To: Andy Shevchenko Cc: Chang Yu , Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shi Hao , "Jose A. Perez de Azpillaga" , Joshua Crofts , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/2] dt-bindings: iio: light: add as7343 Date: Fri, 11 Sep 2026 18:39:11 -0700 Message-ID: <20260912013912.51887-2-marcus.yu.56@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912013912.51887-1-marcus.yu.56@gmail.com> References: <20260912013912.51887-1-marcus.yu.56@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add binding for AMS AS7343 which is a 14-channel multi-spectral sensor with i2c address of 0x39. Datasheet: https://look.ams-osram.com/m/5f2d27fff9a874d2/original/AS7343-14-Channel-Multi-Spectral-Sensor.pdf Signed-off-by: Chang Yu --- Changes in v4: - Fix led-max-microamp property name. Changes in v3: - Add missing include for gpio. - Expand GPIO descrption to include hardware synchronization. - Use led-max-microamp instead of led-current-microamp for the LDR pin. Changes in v2: - Add the LDR, the interrupt pin, and the GPIO pin to the bindings. - Fix node name and unit address mismatch. - Include MAINTAINERS changes. .../bindings/iio/light/ams,as7343.yaml | 72 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/ams,as7343.yaml diff --git a/Documentation/devicetree/bindings/iio/light/ams,as7343.yaml b/Documentation/devicetree/bindings/iio/light/ams,as7343.yaml new file mode 100644 index 000000000000..d963832fb413 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/ams,as7343.yaml @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/ams,as7343.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AMS AS7343 14-Channel Multi-Spectral Sensor + +maintainers: + - Chang Yu + +description: | + The AMS AS7343 is a 14-channel multi-spectral sensor with i2c address of 0x39. + https://look.ams-osram.com/m/5f2d27fff9a874d2/original/AS7343-14-Channel-Multi-Spectral-Sensor.pdf + +properties: + compatible: + enum: + - ams,as7343 + + reg: + description: + I2C address of the device (0x39). + maxItems: 1 + + interrupts: + description: + Open drain output active low interrupt pin. + maxItems: 1 + + vdd-supply: true + + led-max-microamp: + description: + The driver current for the external LED connected to the LDR pin. + minimum: 4000 + maximum: 258000 + multipleOf: 2000 + default: 12000 + + sync-gpios: + description: | + Optional GPIO pin that can be used either as a synchronization input to + start/stop measurement or as an external start/stop signal for + synchronizing with the connected LED. + maxItems: 1 + +required: + - compatible + - reg + - vdd-supply + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + multispectral-sensor@39 { + compatible = "ams,as7343"; + reg = <0x39>; + interrupts = <7 IRQ_TYPE_LEVEL_LOW>; + vdd-supply = <&vdd_regulator>; + led-max-microamp = <14000>; + sync-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 04fa5322d9f7..8cf4e1635053 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1430,6 +1430,12 @@ S: Maintained F: Documentation/devicetree/bindings/iio/light/ams,as73211.yaml F: drivers/iio/light/as73211.c +AMS AS7343 DRIVER +M: Chang Yu +L: linux-iio@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/iio/light/ams,as7343.yaml + AMT (Automatic Multicast Tunneling) M: Taehee Yoo L: netdev@vger.kernel.org -- 2.55.0