Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) (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 A08A151A155 for ; Tue, 13 Oct 2026 15:15:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791904540; cv=none; b=ImpNs4jBNVmaLhc/N4S0mhB6RehSS4yTL4A7lIyCFHMR2EQcpraKdjZNmL2hO+d4eenszKiyCY2IsTUVcnd6LdOpEZH0Z0vZnIZ3QhjvA4oTOwYlZH1LprogP4S5MBmXNqrSVgT2/K3CIjh5dEM6YA6Sh4gsn1LGc1psHXmYe2c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791904540; c=relaxed/simple; bh=NapyJptIydBk5J98yC370DZ0xJWQKRaBbCy2B6XYHdA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qSO5NsrYKeBqUnfZSPdS6jfBJ5RFmBeWuHkY3kZdlV9TERSy42rB8XV1M+sC4QBIkNXC2nZNImBuoddI17cy/kuG8SoUK2ZJ2wNs/h1dNA5v7EzI/HWHakay+pKGvY/8bwIrm7ss3nKbeUrcJqsd6JwqAH/DM1K722uF645eVYo= 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=dBR1jNe2; arc=none smtp.client-ip=209.85.215.169 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="dBR1jNe2" Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-cc4e9e56e9aso1052725a12.2 for ; Tue, 13 Oct 2026 08:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791904538; x=1792509338; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=2rkGQo5r8xJBTb8dqMKiMW12xMK6T9au6oc+12YcxIA=; b=dBR1jNe2zWAjzp5Bc6vkfwkBFJT/e/xEeahREKd0JJot7RWYmlid9VLytpa/O3jrwW P5Ptck1EnD1e8U7lCGtukjez7EDLIMYgIVSGIfCbRg5zZe2bIeLv/0yrrfpgxzweip1s R0otIA3SH4LNMPXlLyxZwpZ/F3T85Ssk0Z/3V6Yo3ESx6iTitPmD7zfxRduALS11tctY jnNMq0SVZeOzUlal2D3yFrMeycUtMFX2h+/LR910q61QM97mZz5DeCK7fefFAI9fDhAJ zXF2aP7VzDt1z1GZrVbQkZKDyFsublEff2OzotGs8KhTDvcYAoGJoPCQ1tXyIqCrmhb3 Ju3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791904538; x=1792509338; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=2rkGQo5r8xJBTb8dqMKiMW12xMK6T9au6oc+12YcxIA=; b=IH+6ktMEHigbSI4j/vtFvTW2F5nv14Xpze3RB4Xm17pN22dXFeVCOGaSvTzxbO0lb1 9u8aB/iBEeeJaFXHnky7Oxk2Rl24kf8QXLNi217Q3e3JjpM4U/m52W0+ZOprovtEXQva Zq07j3cfmGpJk0WxzNVxlKOat6lN/tQ5kEkpG6rSiAiNgGWI8tFrvbjENsWFWz+VqxUZ PCU9UScGcTlt8MB4T0uUNzjrEDpZqXgRtEA7EEwF7C1P8Wj2R/JMJs9AsDqs1tHPsZlg Vvd8cOhTjmxQTCLcKsanOFdiPwcAQCnx+T/n+5K28/6KX9F/qRhuv9wUMlRL9m8h0tLZ w6og== X-Forwarded-Encrypted: i=1; AKwUvBxI25FgM00O1lqjgFoqNX0j/sajREtzR8Oj1yRuZbSbh9CNXk8cX/MOFVdUQQ6nFEwkJOBFtDKfDEEd@vger.kernel.org X-Gm-Message-State: AFq9FYI/ifEl2MDqOczgJxNaerqFsdh7zgs+6FTFb5hNhg3h6ov0jAKe URokoaWO5iCgBF2RVBUmrBud3V3N3LWJ4bdmc5uPZT23oaOyjckK1VqN X-Gm-Gg: AYBFou3HoxM3OP/OVDts2OATmJrxcoGHmI3otaQDs8XQSSEcNFnTZ/PHomq3KZ4Lmsg fkdrG+HDfeAq0Dekj6Iay4cUtishq1co9nbYTrQ7WTJRVzH5UsVM2ENBSPRZKZ0JFYhzOm/j6zQ auf+tsccB4HQ/X9cdNIOhqnlbz2ocvpVOwq18PONjHYU0uNvIUbkbGz0r1c7VIGoP55uBbPqAoV izLV7EWj1bDArql1Eus2sJJ/iWbatVG9+TEJy3E4dw89MfJI1WorwptH6NpizAKOfIIuWxJ77sE k1vdxwZLdJXRqzBk2RFA4u39G42jTsAj4X/ygZ2ewx+0SAPMpMR7IegUIjGqAUfJxN/Kijd2fFR ps4TwY2ioZN03onEG+I409uBQ4Ww7wu+BQ+h3kZ9974WEw+t3el7e51T56DlEc2484/FfyJPygc PhYT139qrTf0W0gL9crpCQ9TC8SuROiILrO2ir/xW9H8nu1Ag4mrQL+YUvFeJkx2wF/jcAeIOuF A== X-Received: by 2002:a17:902:f54f:b0:2e6:1a1:ef63 with SMTP id d9443c01a7336-2e842cdb1e7mr112815415ad.44.1791904537778; Tue, 13 Oct 2026 08:15:37 -0700 (PDT) Received: from localhost ([104.156.230.40]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2e8422b8c4csm58698205ad.56.2026.10.13.08.15.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Oct 2026 08:15:37 -0700 (PDT) Date: Tue, 13 Oct 2026 23:15:21 +0800 From: Chang Yu To: Joshua Crofts Cc: Chang Yu , Jonathan Cameron , David Lechner , Nuno =?iso-8859-1?Q?S=E1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shi Hao , "Jose A. Perez de Azpillaga" , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 1/2] dt-bindings: iio: light: add as7343 Message-ID: References: <20261013115639.167433-1-marcus.yu.56@gmail.com> <20261013115639.167433-2-marcus.yu.56@gmail.com> <20261013143639.000017b9@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261013143639.000017b9@gmail.com> On Tue, Oct 13, 2026 at 02:36:39PM +0200, Joshua Crofts wrote: > On Tue, 13 Oct 2026 19:56:38 +0800 > Chang Yu wrote: > > > 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 > > Should be unevaluatedProperties as you're using $refs in the binding, > but Jonathan could tweak that when applying. > There was a discussion about this back in v2 in which Conor was suggesting keeping additionalProperties: false if I recall. I don't know the exact pros vs cons so I'll defer to the experts here.