From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 53CD244607B; Wed, 30 Sep 2026 07:25:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790753113; cv=none; b=h8mmIGsPTlBomHi+bJgiBUyB/vXwZaWOIh7UvVz9jpYOF3udkXMx16ueD9lXVl2J0rQeBLyglnORaNBCeHm6bH69bmDnS4lalK06lVkvbFD+s02CRwkqBeNrLkLJzWXPaM72YaX5WrJtfia5Svp//0E0k2KyAJptugyN5Cr1CNk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790753113; c=relaxed/simple; bh=LRRmeTfBkDXJcA1eNj6xNbVrawx4Ccxq4Yp8YfU317k=; h=From:Subject:To:Cc:In-Reply-To:References:Content-Type:Date: Message-Id; b=La9WkD5ElHKsLmM2W488t8UTOCu4djXmjs262Q+tEeMZDCrw7bvoIommoxihW2XmGvopIT+pFqi1+DUTE1QCGI30Tk4TBv+INn3Ki4wIYQED6eg4R/J+np2L8Qr/QpUX9VFNChn2XQYNsYtfa+zyPDfmUH1zr0J2yo55LerZQDI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PEh1wrjh; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PEh1wrjh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DB6D1F000FF; Wed, 30 Sep 2026 07:25:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790753111; bh=szEAWm8vXvUGdw5LnGMd7rh8Pq4FstLVk5HenOVxV30=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=PEh1wrjh0rxj28jxtg6Z6N3M2qDkjqA4+R+ULkzAvMrXg0z+9InMpziRx67stvjoL 5A4oNncgWCQUNb0T/3EWEU09wJIMdcyIBAOxyM8q1ULdlGpCgPZzLJzATHP0ueGsp0 CfE8Q691QcgJ3jptyY425wqANciE6HFGgc311T+ot5cCVRzXg7kqoCRfppO9lw8G9o +bRun9I9FySV/hl/uftwJCb24JP4OmwJAGA2iJfc2xCKdebQxKdCIxqfG24lqNyhOJ nobTw5TmPI51ouCZW69XLqYEvonrSmRjPdiX+Fvvj3psP6J0QcJAOjyVzAfiv6je7G YcZ0il9QVE+RA== From: sashiko-bot@kernel.org Subject: Re: [PATCH v1 1/3] dt-bindings: mfd: Document Skyworks AAT2870 Reply-To: sashiko-reviews@lists.linux.dev To: "Svyatoslav Ryhel" Cc: mfd@lists.linux.dev, lee@kernel.org, robh@kernel.org, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org In-Reply-To: <20260930071513.54697-2-clamor95@gmail.com> References: <20260930071513.54697-1-clamor95@gmail.com> <20260930071513.54697-2-clamor95@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 30 Sep 2026 07:25:10 +0000 Message-Id: <20260930072511.3DB6D1F000FF@smtp.kernel.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Thank you for your contribution! Sashiko AI review found 1 potential issue(= s) to consider: - [Medium] leds: incorrect scaling for led-max-microamp constraints -- commit 629a67ba3ff0e9f6e02a0fa733445881d67a7d0c Author: Svyatoslav Ryhel dt-bindings: mfd: Document Skyworks AAT2870 =20 Document Skyworks AAT2870 LED Backlight Driver and Multiple LDO Lighting Management Unit. > diff --git a/Documentation/devicetree/bindings/leds/skyworks,aat2870.yaml= b/Documentation/devicetree/bindings/leds/skyworks,aat2870.yaml > new file mode 100644 > index 0000000000000..6dfcd1fa399ca > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/skyworks,aat2870.yaml > @@ -0,0 +1,127 @@ [ ... ] > + backlight: > + $ref: /schemas/leds/backlight/common.yaml# > + unevaluatedProperties: false > + > + properties: > + compatible: > + const: skyworks,aat2870-backlight > + > + led-max-microamp: > + minimum: 450000 > + maximum: 27900000 > + default: 450000 [Severity: Medium] Are these constraints for led-max-microamp mathematically correct? The valu= es range from 450,000 to 27,900,000 uA, which corresponds to 450 mA to 27.9 Am= ps. Real hardware limits appear to be 0.45 mA to 27.9 mA, which would be 450 to 27,900 uA. Defining a physically correct value (e.g., <27900>) in a device tree will fail schema validation. > + > + max-brightness: > + default: 255 [ ... ] > + backlight { > + compatible =3D "skyworks,aat2870-backlight"; > + > + skyworks,channels =3D /bits/ 8 <0xff>; > + led-max-microamp =3D <27900000>; [Severity: Medium] Does this example propagate the erroneous 27.9 Amps value? The follow-up driver patch (commit mfd: aat2870: Convert to use OF bindings) propagates this incorrect scaling, meaning correct values will be wrongly clamped to minimum brightness. > + }; --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20260930071513.5469= 7-1-clamor95@gmail.com?part=3D1