From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.179 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793260157; b=aNDcxzVezxMYCxPiVHL0NWKK7mDqBcilhhUfnwN2Kc6qmYoE3RGwZdwA9nLTRKgPbxmS iuDZUkh4Tsm4JVHZRD+7+ANuH2cmLm5SU+V+dR1EX/yj53d6w81jYscrigz4qbOOj0FnJ 58N4q79jTIS8+Zk7rJrSllRkVvUMSopltBLLhe8c5hkgfBb5A1HWF1c8eUtEDKRvNP4HQ NlfnEBFf5O8vQdIvSicDReJIy48BjgKEfRnCxDQ5LvPDQR8uyvE08Poqr5rH6KrgonBdf ZY1zEdxm/1CTksB0eJYoIf8tSieo0/QVm9I+pw85jsJZF9v73ifxl18r6abvc0DuuEQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793260157; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=7IN2ZZeCgcwCvS2txh5dZSlnQHrz7HH/k4+ry9PPBlM=; b=kDJtzkT7sibDxn4LYUfvqcRvFFRrWwCbEMBhlHbRODQ/g8cPV57+ThKMB9tDf7mZmvPA GU5PX9ZolmFMjIxVOZY27YS9FVIHBmtOHr5PCNJlMgvbUufTcNKuV8+ELTNuRAdryChy6 J/z9GFP8X5Uy7q79sNDZIUrdQ2QDw3NfLWt2+RHKHE/TxC1wFH8yyBXJrQt3zoVbhg6Cq ugNVlYV4H3WlioP6WdQhM80HDZlvywvDpwQ1jQWmA9qvwmB3rVPPkIQfJzjIKBRJsldge Y/6fDqBclmoXnIhFGWpN1uWRYrYnLn5NMweaZmLWP2gtclAXnEF3BWWq2cVXS7sTMWA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ND9YmuvI; arc=none smtp.remote-ip=74.125.82.179 Received: from mail-dy1-f179.google.com (mail-dy1-f179.google.com [74.125.82.179]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2701A606A31C for ; Thu, 29 Oct 2026 07:49:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2701A606A31C 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, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ND9YmuvI Received: by mail-dy1-f179.google.com with SMTP id 5a478bee46e88-3645f0f3fcdso3367696eec.0 for ; Thu, 29 Oct 2026 00:49:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793260156; x=1793864956; 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=7IN2ZZeCgcwCvS2txh5dZSlnQHrz7HH/k4+ry9PPBlM=; b=ND9YmuvI+s5qL4svijWrxXoigMp9/Sd2qGNSXgfwZEIpwpmtXfX1YGpVAsH8C7qLP7 bgKRrcEkB9aexHpHgPGV/DJXu25Eb7nBymol76uogfwk+S8afgkbJVA6q//pzQtgSVAZ HSN31GHY87lEMX4m6ChJBy8qyCRoMd5rxe5o+juHiRktTDW++2HHKZPYmCnuCx9GY7gY yrYYjDrD8k7hzk9YOsAdKKgRGmQxa4n/xrc/Uq15TW4Iozgs25i18Ox/uM9pOxEZdEcz ILmPMoL+enigdLboeW4VEm33vzE/yFvuEgM0i1VsgMZTxrcPt6x+Wq83tloASR5mfP+t R47A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793260156; x=1793864956; 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=7IN2ZZeCgcwCvS2txh5dZSlnQHrz7HH/k4+ry9PPBlM=; b=hzLYEpU5FQfco/OQ7Q/MR1NNen5Pww7sO8lVRay/9TAkB4lWMq141zeEHcSH2/OnuN d5pKKSQdRDe9/Jnpv/RnC52v0kcxCXcYCBLjfXlrAdxajL8flOJI14cVYCJEKHcf0FVX UianS2Ik1f1Sy+i+9Urdo1/ue0wRtg6Y/e0C3NL+jRJaNbpMqR+3qtBlaEIwXD00Nje8 ivNxVhJ65DSK24RNFC8FvbmNJH6ivgymq4nhdrgQJZ3sYoB/B7hn0IiyzmIV5ZBeK2n2 FxIkxv1vO48AZV1iFsS/yj0YkhQ41W45xmfK/1hY3/aa2AYoaihELOmidNgc4lFoeSvv tZJQ== X-Forwarded-Encrypted: i=1; AKwUvBxSDBEzkdikA0Qjqnu3otn59hKO+3o5WsD+A+2ThWfYJWv3d+L2D9oQDs2Ua5Y7lyx7GAiXIS6BChe/JVk=@vger.kernel.org X-Gm-Message-State: AFq9FYJR0R+koBIZzLNQzAjKvAM9Ep9rVX5E49L3egKCNJGr0eUWdE/X 4SuhOTCW27blHyQ1SeNxpoW2VVQZZQi4m+bh2dwoDhBtmz6zUxaxSJPQ X-Gm-Gg: AYBFou09sY25sHitf9vfu3Hlr+xGi/rsi+b9Ea4thgFUU8FjAPfY8Qoh6XIoKM+4ceS w6zX+FDKff3A/xNbAGPq9xPoiDE4lek7F6UswZT3hfF8JG37GtULX1ERvuEy0UZzI2sDIHeVt6G If1PXEWMVc3Gv2DyABqD7CR6KHnHK3AAEWC19h0wrrISPG8N+4h/m3f0Z6Kt9cBfteMdsg6Kk39 bi1FEjqe32HcRTMozvdBkQiULvrIepU3kFNfTuxhHd1RU4QA1FC1GM21IKlZ+5PHmoWH/0Yul1r jg+po5q3cXAqd1wbYB6x62uFFxd8Crm6H/uF/E96TGnciDtX2v5UoMv6YvNWPsNvrY3tIsab8xD pdX3YmOCBmvyeAwSkM1N/rVkPIOHJK3luXpGCm1Zp362N4z/gHR3yJPxMNju9UKnmC8mWu34lZh qk6RsHs1l0f1XxM5oVjzcSCrk60fhl6xBsNslNi+znw1EmUaWM9+vDf8TSN41JbGqaoG1fhPfbu jJPgIn+QX1jq1acxccnL+F77HJaBGXwIbhi9ugl3WWeF3LbHhYPH6yIlfnsGEn9IqrQ+BQaOA0m Etl3Ua2jvp8PUqKSoTt2TvSlKtoM X-Received: by 2002:a05:693c:62d2:b0:368:40c6:3a01 with SMTP id 5a478bee46e88-36a1ffc5574mr7347926eec.2.1793260155911; Thu, 29 Oct 2026 00:49:15 -0700 (PDT) Received: from localhost ([149.28.89.224]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-36a23908449sm15539704eec.11.2026.10.29.00.49.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2026 00:49:15 -0700 (PDT) From: Chang Yu To: Jonathan Cameron Cc: Chang Yu , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joshua Crofts , "Jose A. Perez de Azpillaga" , Shi Hao , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v7 1/2] dt-bindings: iio: light: add as7343 Date: Thu, 29 Oct 2026 15:48:50 +0800 Message-ID: <20261029074851.216029-2-marcus.yu.56@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261029074851.216029-1-marcus.yu.56@gmail.com> References: <20261029074851.216029-1-marcus.yu.56@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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. The GPIO pin is not described because the datasheet does not document how to use it for hardware synchronization at all. The GPIO register also has no mode-select bit to isolate the pin from the chip's internal control logic. Exposing it as a generic GPIO could result in kernel writes being overwritten by internal logic. Datasheet: https://look.ams-osram.com/m/5f2d27fff9a874d2/original/AS7343-14-Channel-Multi-Spectral-Sensor.pdf Reviewed-by: Krzysztof Kozlowski Signed-off-by: Chang Yu --- Changes in v7: - Specify reg as a const. - Move additionalProperties after allOf block. Changes in v6: - Add a ref to leds/common.yaml for the LDR pin. Changes in v5: - Remove the GPIO pin. 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 | 64 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 70 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..8379f913138c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/ams,as7343.yaml @@ -0,0 +1,64 @@ +# 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: + const: 0x39 + + interrupts: + description: + Open drain output active low interrupt pin. + maxItems: 1 + + vdd-supply: true + + led-max-microamp: + description: + The maximum current for the external LED connected to the LDR pin. + minimum: 4000 + maximum: 258000 + multipleOf: 2000 + default: 12000 + +required: + - compatible + - reg + - vdd-supply + +allOf: + - $ref: /schemas/leds/common.yaml# + +additionalProperties: false + +examples: + - | + #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>; + }; + }; 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.56.0