From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796225376; b=ijTFh3zKAeDM90nwAsolorDeiZ8WYx0T2x1uScyCyELFU5ZH+LFreQZ7ZMpE7sQuuRFH iFhNamkSI1SDzmHAzAXDwXBzBNhMyiRleazCtlIEY1VquTCBYCEZlpcHAWG2Amxnbrcsy UQoKs5lpPqqv+JaYXVcDR3JPoTGK6GC5VH2LfHU4DJ2CdzfM5cnU+DrH77MY/CbngNYWd ueDWz3HGS20IUqNh8niCp77c1vqeHuKG+0u3tPWYwVX0Ig8ueBZGcx8mjnqEPqWplbsit q83YvYcvtD1LOXhf23q2vv1V97M0io+YmQ6Z05nHCWvGxqgTz7lWRcICWOsDFUGIYpQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796225376; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=THRYKRH6ig1FN2vqLOSGpWTRobpTwfDX4rn7eT7l06U=; b=DpFkzPC4z0rYwrmaNN/WF6TEkEurthN7IfvR7NidUMr1bOoXq7AxGwK9SiOII/02zFC3 jqUMSmRsXT2BNN1UfktXwFIW1D3BNGZUb1XHlBGUOL/Ke8ORXbDcXdsYUYvizlGEZy5l0 ZSu1kJLW7IT2OThS+WuoF72XHLyM4uVNvZOD1JGcZxVAlc5AJVEJajTk5iDQuWUyoVvQ6 eIUBz84BFMCpPziIDpPsLdT4pgsi/4P1998t5KT5drkWYq/Iz5ueJr9Ski8M4GYlL+EJh eUQBkwSPyZjGG3IZVMdhK4XZ3664txBvla5GCR91UkpQ7jeYVa29AguOHGehYJLFmfQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CbO9iqk6; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B7720606A322; Wed, 2 Dec 2026 15:29:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CbO9iqk6 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FA161F00897; Wed, 2 Dec 2026 15:29:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796225376; bh=THRYKRH6ig1FN2vqLOSGpWTRobpTwfDX4rn7eT7l06U=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=CbO9iqk6kNFChQQwneQS0UQSEWCa6W5JfmpPCrMBSXpP6Y6BfkvKxq5ti6lLMEWUX nTpw9b1VAHEJ9D0XmFnHmf+938kA9jhzkZhQMDP5WXLb6kYr23/9Uil+sjrEJzEpfg 9xErLZSYddBgc9XK2H+wI1CxeBW6amvU3u8AnLbRmOX9daN3Td//vnUF+xpI2qouzE H0sFCiXKOVKEjOogjWnVHfr/eU9+M4ZY3jLUNujUNoME4HCutXJsfLYcJfDzh3OLP2 u0p09x7T/O/XM1coi6TiZODxwTKJR/DahNf1nqeQYCEk9YuarnWpxkm239SW9ALvlp 9O75JIE0yshtA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 1/2] dt-bindings: leds: Add synology disk led controller Reply-To: sashiko-reviews@lists.linux.dev To: "Markus Probst" Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org, lee@kernel.org, ojeda@kernel.org, gary@garyguo.net In-Reply-To: <20261202-synology_disk_leds-v1-1-53249fd3a2ad@posteo.de> References: <20261202-synology_disk_leds-v1-0-53249fd3a2ad@posteo.de> <20261202-synology_disk_leds-v1-1-53249fd3a2ad@posteo.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 15:29:35 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 3 potential issues to consider: - [Medium] dt-bindings: leds: disk-[0-9]+ node pattern conflicts with multicolor schema - [Medium] dt-bindings: leds: led@[0-9]+ pattern rejects hex unit addresses 0xa to 0xf - [Low] dt-bindings: leds: sub-LED node redefines color instead of common.yaml ref -- commit e8aa6261363feedc9e09aa356cf6da1d57e34dcb Author: Markus Probst dt-bindings: leds: Add synology disk led controller This commit adds a devicetree binding schema for the I2C-connected Atmega16= 08 disk LED controller used in Synology devices. > diff --git a/Documentation/devicetree/bindings/leds/synology,disk-leds.ya= ml b/Documentation/devicetree/bindings/leds/synology,disk-leds.yaml > new file mode 100644 > index 0000000000000..e9a8df77c8b42 > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/synology,disk-leds.yaml > @@ -0,0 +1,151 @@ [ ... ] > +patternProperties: > + "^disk-[0-9]+$": > + type: object > + $ref: leds-class-multicolor.yaml# > + unevaluatedProperties: false [Severity: Medium] Can a child node satisfy both "^disk-[0-9]+$" and leds-class-multicolor.yam= l#? Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml enforces $nodename matching "^multi-led(@[0-9a-f]|-[0-9]+)?$". Because the two patterns are disjoint, dt_binding_check fails on the disk-1 through disk-4 nodes in the example and rejects any node written against this binding. > + > + properties: > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 > + > + patternProperties: > + "^led@[0-9]+$": > + type: object > + additionalProperties: false > + > + properties: > + reg: > + description: Index of the LED. > + minimum: 0 > + maximum: 23 [Severity: Medium] Does "^led@[0-9]+$" reject valid hexadecimal unit addresses for LEDs 10 through 15? Since reg permits indices up to 23 (0x17), sub-LEDs at indices 10 through 15 must use unit addresses led@a through led@f to avoid dtc unit_address_vs_reg warnings, which this pattern does not allow. Should this match hex unit addresses such as "^led@([0-9a-f]|1[0-7])$"? > + > + color: > + description: Color of the LED. > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 0 > + maximum: 14 [Severity: Low] This isn't a bug, but redefining color here with additionalProperties: false duplicates common.yaml and prevents sub-LED nodes from using standard properties such as default-intensity. Could the sub-LED schema reference common.yaml# with unevaluatedProperties: false instead? --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202-synology_d= isk_leds-v1-0-53249fd3a2ad@posteo.de?part=3D1