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=1796387743; b=QYNAT7DdIcbiAPtfDziT+bwK6E+Pq8a6Qy2o8OKaEEnlt1shwrSjcX8/fFnGCBo4cjkw LIyQSCd8jLDgVH18m8AFJ1EDNxe32GjU/MpTB30clzDgHiqh+w87ieE6QVjvnGa3LZZZy UPEa86viiZ2a90F6nn7TPr5bl2+3angpcrsJ8oTMJSgz8TS139BMJEkuLO3TAgrZcmA2P FAF+tW63aEvsIGzT1c2BmBvNzlLpFou2nnTkENPSlpZkg63sgTW1qOUyz3NfoJ70xi9+V 5tuvmB2OPDU59d57QPJB3299X3mtXKy8SBjyzRolNxMZITlRWDk0N18+/VXdy4riR6Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387743; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=6AhtMD0uYsoalxn2z7FeXVpH9satWCs9CDlfy2KNX9k=; b=Jxrrg7YJV/4Kjd+6TzfPyK+PigqzXob89RsZm5uLFCCOzgn7JHNOEgjYDld03qAkBK55 O5Bl+qzeEKxMayEioGguTmn/rqRo7BHvUpAR5jK1C4om6e8mY5aqQ0oFbU/3uxin5x7E5 CkYK+64sZm7H3NlS6nnoqpsEqL4WfUltJ0UYFdQoKrsgFtGA0uwHzE135jFUce+fmFXat 4lITI8+1XB47mQJtmewD12KLu/6f0BnuSANzP8yFJ5OTPAkKXJdZ5pu0HAqg+tasjxWjs rb3zIfLNi1Ufz16d6zLNnvfVRxdeNqaGN+uLjd25MJ8OB4Cmc5GUsoFcuEHStAChKxQ== 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=PlwenoNY; 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 BCDC8606A32C; Fri, 4 Dec 2026 12:35:43 +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=PlwenoNY Received: by smtp.kernel.org (Postfix) with ESMTPSA id 575291F00897; Fri, 4 Dec 2026 12:35:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796387743; bh=6AhtMD0uYsoalxn2z7FeXVpH9satWCs9CDlfy2KNX9k=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=PlwenoNYQLLrTJWgXRG4on0QMxnMc3uThKXJ9ZwZvrSRz1FQUad+h3phXCrR1dopK vNOdVl82td2b8DcJgncEKNA934SlZUn5n8FN85Fmtf8kuenN2JK1qTyTBcOnERF6Eh GXpUq2LA2z8jayXUc2oLAnAj/tC4brAgvePFvlJ6si8fgGTJjvf0Eo5BbYJXQUUmec S2LyPALWxsAbRzPEsjVp/kCO1GW/rs5jP21B++15QuKtNP8rBoLgY2vEae6Pi/CvsB ChKJ3ln10Syy26lWR0bwExPCC/AkufV4SlBuVk3s9rchMKh2nNHXe0jELPOUNSUxA/ mx5QnYUxTa9Iw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 1/4] 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: <20261204-synology_disk_leds-v2-1-12815785ff8b@posteo.de> References: <20261204-synology_disk_leds-v2-0-12815785ff8b@posteo.de> <20261204-synology_disk_leds-v2-1-12815785ff8b@posteo.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 12:35:43 +0000 X-Mailing-List: linux-leds@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]+ pattern conflicts with multicolor schema - [Low] dt-bindings: leds: sub-LED schema redefines color instead of common.yaml - [Low] dt-bindings: leds: compatible string synology,disk-leds is overly generic -- commit 8267366bd846e6cdfc61f3502ed024437f23e40c Author: Markus Probst dt-bindings: leds: Add synology disk led controller This commit adds a Devicetree binding schema for the Synology ATmega1608 I2C disk LED controller. > 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..2c2e1e35c265b > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/synology,disk-leds.yaml > @@ -0,0 +1,151 @@ [ ... ] > +properties: > + compatible: > + const: synology,disk-leds [Severity: Low] Is synology,disk-leds too generic for a compatible string? Other Synology models already use different disk LED hardware, so an unqualified compatible risks ABI collisions across hardware generations or ATmega1608 firmware variants. Should this identify a specific model or controller implementation (like cznic,turris-omnia-leds)? > + > + reg: > + maxItems: 1 > + > +patternProperties: > + "^disk-[0-9]+$": > + type: object > + $ref: leds-class-multicolor.yaml# > + unevaluatedProperties: false [Severity: Medium] Does the "^disk-[0-9]+$" node name pattern conflict with leds-class-multicolor.yaml#? leds-class-multicolor.yaml# requires $nodename to match "^multi-led(@[0-9a-f]|-[0-9]+)?$". Because the two patterns are disjoint and the controller sets additionalProperties: false, make dt_binding_check fails on the examples and no DTS node can validate. Renaming the pattern and example nodes to match "^multi-led-[0-9]+$" would satisfy the multicolor schema, since function and function-enumerator already identify the disk slot. [ ... ] > + patternProperties: > + "^led@[0-9a-f]+$": > + type: object > + additionalProperties: false > + > + properties: > + reg: > + description: Index of the LED. > + minimum: 0 > + maximum: 23 > + > + color: > + description: Color of the LED. > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 0 > + maximum: 14 [Severity: Low] Can "^led@[0-9a-f]+$" reference common.yaml# with unevaluatedProperties: false instead of redefining color inline? Hardcoding color with maximum: 14 duplicates common.yaml and will drift when new LED_COLOR_ID_* values are added. Setting additionalProperties: false also prevents boards from specifying standard multicolor sub-LED properties from common.yaml such as default-intensity. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-synology_d= isk_leds-v2-0-12815785ff8b@posteo.de?part=3D1