From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f41.google.com (mail-dl1-f41.google.com [74.125.82.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 5C1094F4D0A for ; Tue, 13 Oct 2026 11:57:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791892625; cv=none; b=IyAzPKCKaZXfIuqkgiGwnAR6brYnrRJWFVnkt8H2fsRM8r3r0qLVdkQeCfkeQoIBWUJ31FyXFuMIt0xidQ0p4o9yEwxXrKJIARIt/QDmw6vASkZhJ/aE9UhdiQB49A1nOzv9/hWj+h9EtskwtrQemdICskf//+PhHW3OVIVQx4c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791892625; c=relaxed/simple; bh=X5ZU7JNnypfrB8yv3CiSgtsjeTv0kMCAa5OOfmHUqfE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Xf8y9Sh4PpxmCqU0wA3vZ0KbVQdcRSVa+Ld6PQCABL6cGcBq9GpofpDtz2GE35jNihCfEKbzSqqQW/jftZOXTzTrSFkwL3DLnBzdUPwzZhc7LNWY9Vhmc5lUWWQARR1unRBBDMBUB04b/XyVCy534pom/l4FnneqUx9Rjp6vbzk= 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=fYKfOAWy; arc=none smtp.client-ip=74.125.82.41 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="fYKfOAWy" Received: by mail-dl1-f41.google.com with SMTP id a92af1059eb24-15ea896ddc8so4040164c88.0 for ; Tue, 13 Oct 2026 04:57:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791892623; x=1792497423; 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=4kunHk2WNZFU02yT2wiYv/FHONgL2+rn9vP7+0p544w=; b=fYKfOAWyyndwCTkjHI1Rh7MDthkgkkZCFkETE6GE0C8FfLwwcI3q034NJO0tst2DnY e2uyywnpH6R2/+EcH0kDCgo8QRHGAJNHzUeGyodK3d82HjzRQPfWN/qjpscJGDpIDO97 kjpasT7l+FtMqD0hUuOB/axfDcVbpNv8ZQEImJRFHKP3OADxXdnMcMDCOv9dD+5DdoqV TS+SPbZGR1PajpIDPn8hII8nOwk6cVIR7mct8fHzmV2C/r3Aj9n7NEDvYijdOy/eMDat EZWrFdfBGm8vPXAst5YOlOv5fuiaumc0BeKo5ZAVnGOFjdwslKr6e1pqXqwXmVigShZb pzPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791892623; x=1792497423; 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=4kunHk2WNZFU02yT2wiYv/FHONgL2+rn9vP7+0p544w=; b=BCZix8CorC1aT4y7GlLLkFJNw0MZ4+Hqra6MxBkXW15X7Y1lZ6kg/7XTTBt0SIwBbv l1bRMkiofM1zHNJO4ELj3UPXIG3+xRxr/ZCFqacjLi0hcd+zilTZdRBO1OOtRecPs6pV /ewthXKZ8OycEGnY60wUlMWCSBrMyyvDa6ytWDv9NgQHCv0DNVbddUsAbL0ykXYuFnOb caDQ+fceOAmhr2YxsrgKHuJ78m10E+SU2uBE0AYENY/AOWPUNOitRR9KBn/1D8ilUjtA UG/dLF16kpG3uUzFgE6tTNn0qJG4dUi32id5FzOWOJ84U7pVqAoFI8Qxa3pc5B9Mi886 zP9g== X-Forwarded-Encrypted: i=1; AKwUvBzMaTJjY4Cf3BEtLJqTtGedFJ3UQI73xpYzUTrZoU0N/REnGICj0OXM9FX7K+TrbpH6133oaTTGWaqM@vger.kernel.org X-Gm-Message-State: AFq9FYLFozJVkPUn92KjqWeGLQr1MGMd5dmrsQPRg48scjtxL01FrhZb /krP+v8BSHy0w32GvjXWsmaKmrd2l4chBogi1eBV8t8aUpydvJm0JEHn X-Gm-Gg: AYBFou0dK1xdKoZyVxhne9Vi781IgPKtFPKGOwx6f3ur4TPXXEvTfFMlIM71g51UMSb vNjQNrE0lcQOYb0sw109BNsLhmP07DUnMVhNz2e4E5pzZthTyv53TYoH8IVCIVUKAzMk2+sweRe g/rv13w9uj6XWdmwY2soxUHz760VP3JIXgWj64it9jJXGWhRFHo13o7WBewyhUjotuiXuH1iGHX BJ9/dT3E82ZhAECh7ScWT7I/c9DlhCICzciBwqeT37r/Zram1uAKNpPcDVxWfjKUVdrXOIZau0I hvd1uZTIs1nVcJAICGbrmzNPpPj5iEACbURL0aKFBMmjLST4WlWGJQVuIwTxg8h2Cdw22UW4n/A mQ+cr9Y6ORSdmkrzI7bcYrA1ot1Gy61+5Q+gQk9iIx/KohdnV7lgTXWcIaVEUlf6nDTCFGXAZ55 9XnuPEdvG31H+AiaBWw/MvHKHBf/Tf1bU8Xvf8AArWNpi4wOv+vBYPfITO4qfnFMauAq5se+7a X-Received: by 2002:a05:701b:205c:10b0:149:49c:233 with SMTP id a92af1059eb24-16a60811394mr17959201c88.27.1791892623397; Tue, 13 Oct 2026 04:57:03 -0700 (PDT) Received: from localhost ([104.156.230.40]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3595e0858c6sm30250575eec.22.2026.10.13.04.57.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Oct 2026 04:57:02 -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 , Shi Hao , "Jose A. Perez de Azpillaga" , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 1/2] dt-bindings: iio: light: add as7343 Date: Tue, 13 Oct 2026 19:56:38 +0800 Message-ID: <20261013115639.167433-2-marcus.yu.56@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261013115639.167433-1-marcus.yu.56@gmail.com> References: <20261013115639.167433-1-marcus.yu.56@gmail.com> Precedence: bulk X-Mailing-List: devicetree@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. 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 Signed-off-by: Chang Yu --- 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 | 66 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 72 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..7fb10b0d4843 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/ams,as7343.yaml @@ -0,0 +1,66 @@ +# 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 + +required: + - compatible + - reg + - vdd-supply + +additionalProperties: false + +allOf: + - $ref: /schemas/leds/common.yaml# + +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