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=1796563802; b=uwKJfclCTYYUIeWSuPjckOIaEKgzg8Olgt+XM+zw9YpclGHleJAdbDCwX8IlmFjFYgyw i0icOPRJE+BaGTpH5evj4dqw0KMZENUYdZW+hcnQxnCiyOO1obkdLzzToKbbgeIxhoEeU Gc9T9q9dMp8Dw1B2HTxApokKYFugRKYQ28Sh9a0jrAU+v0Guph+9qmbfkD4xm3Vb+g88x 7vEdsB8ehTFloV/PNOYp4gr6ozYPc2giFDP07ZEL3+McqJSiD6nFrVKiHljsAMo/z+W+c iUODne+ASW3SMR+H/uD20XYas+kdqskD8PJaAcMIhz4tOe5n8jRYq97X/D9jqKSGBCw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796563802; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=NcBxRYHgMjrriUSjcPd9lpDtylLMAnMfXa5qdFcVufg=; b=ZfPYHrH+hnEYwnTx67HNZye4ZPxAYIWMWcwtSTsIeHkCKFN6cvHaMoLUF+CcNMpTKQkw ACUzvqoovjPV+gQTxGLjhaz00TdLmfgaa6fYX1yDs8f0HjIQnd+iJfRKc6V50Fd/rnhed sXZKmFiTX95ysfMgfMNCKEpDGY732Weji4Z5OdUqoxTWIz4zjuqxC1x0YI/lDJpCduG/V PgvqJ9CApcXLydgNtXRBiC3DL53+XtPUcEkln8KUwRcDxFPLuOJCvqqrC5M8kW8OukgpU BL+7oWLUgVbSR0qIhhU2Rfmhbe2z+Lhfrni1KP5JZBNvJ9xBWHvTGQz7DKgwoaiVmBw== 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=myZ+EkSX; 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 9E283606A31F for ; Sun, 6 Dec 2026 13:30:02 +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=myZ+EkSX Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF4501F0092B; Sun, 6 Dec 2026 13:29:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796563802; bh=NcBxRYHgMjrriUSjcPd9lpDtylLMAnMfXa5qdFcVufg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=myZ+EkSXxc92EYF5PdFClKJbiFj8vAf4BkzC1Wsmx5VQV7tK4hDHt2PRHR1bHrtI8 3rr8QiaDXJCVKqjqGn/F/Mz1wVXhI5EPbDHrN9M/hGjgEFsYyhmdLGJx47wYbvWld7 SZS5DWS5rAVO198/4/QP92F6Ju+tjwiW7+WfB5fXytM2na3xO3Rco915Z5GyR3HyXu 1fCs7bJP59emwtgdRcrfeLENp5q2QYcJiZF6eP8vtrQ8j+U0Ol9oLAND2lRAP46W+s 3sXtKvZME7BSA3/Zr/FHrmFGSWoDnJPzy/n58LwPknHAuc5NWfLVQPHSu/5D2JQxyh VyDOjcYkO+nfQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v1 1/2] dt-bindings: display: sitronix,st75256: Add DT schema Reply-To: sashiko-reviews@lists.linux.dev To: "Cyril Hrubis" , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Cc: robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261206131330.1754178-2-chrubis@suse.cz> References: <20261206131330.1754178-1-chrubis@suse.cz> <20261206131330.1754178-2-chrubis@suse.cz> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 06 Dec 2026 13:29:59 +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 5 potential issues to consider: - [Medium] dt-bindings: sitronix,st75256: raw register value in sitronix,vop - [Medium] dt-bindings: sitronix,st75256: driver-derived portrait axes and 160-line cap - [Medium] dt-bindings: sitronix,st75256: unspecified defaults and scale in gray-levels - [Low] dt-bindings: display: commit message cites nonexistent ST75156 controller - [Low] dt-bindings: display: sitronix,st75256: redundant panel-common properties -- commit b5f4d738753e02b2804aea36991971dc76f3065b Author: Cyril Hrubis dt-bindings: display: sitronix,st75256: Add DT schema This commit adds a Devicetree binding schema for the Sitronix ST75256 monochrome and 4-level grayscale SPI LCD controller. > The panel is described the same way as for the Sitronix ST75156 and > ST7571 controllers, the resolution with panel-timing and the physical > size with width-mm and height-mm. [Severity: Low] This isn't a bug, but there is no Sitronix ST75156 binding in the tree; this looks like a typo for ST7567 (sitronix,st7567.yaml). Unlike ST7567 and ST7571, this binding also swaps the axes into portrait orientation, which would be worth noting here if that convention stays. > diff --git a/Documentation/devicetree/bindings/display/sitronix,st75256.y= aml b/Documentation/devicetree/bindings/display/sitronix,st75256.yaml > new file mode 100644 > index 0000000000000..a4486507f774c > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/sitronix,st75256.yaml [ ... ] > + reset-gpios: > + maxItems: 1 > + > + dc-gpios: > + maxItems: 1 > + description: Data/command selection (A0) line. > + > + backlight: true > + width-mm: true > + height-mm: true [Severity: Low] Are reset-gpios, backlight, width-mm, and height-mm redundant here? Because this schema references panel/panel-common.yaml# and uses unevaluatedProperties: false, all four (including maxItems: 1 on reset-gpios) are already inherited. They can be dropped from properties: while keeping reset-gpios, width-mm, and height-mm required. > + panel-timing: > + description: > + Only hactive and vactive are used and describe the panel resolutio= n. > + The hactive has to be a multiple of 8 up to 160, the vactive up to > + 256. The remaining timings are not applicable and should be zero. [Severity: Medium] Should the binding describe the hardware's native axes and 162-line limit instead of a driver-specific portrait layout and 160-line cap? The description mandates portrait orientation (width along common lines, height along segment lines), swapping width-mm/height-mm and hactive/vactive relative to landscape panels like JLX256128 and sibling Sitronix bindings (ST7567 and ST7571 map hactive to segment columns). Capping hactive in prose to a multiple of 8 up to 160 also excludes valid 161-162 common-line panels and leaves the resolution bounds unenforced by dtschema. Scan-order and byte-alignment constraints belong in the driver rather than the DT ABI. > + sitronix,vop: > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 0x55 > + maximum: 0x168 > + description: > + LCD operating voltage (contrast) setting, V0 =3D 3.6V + vop * 0.04= V. The > + optimal value depends on the panel. It is added to the panel speci= fic > + offset programmed into the controller OTP by the panel manufacture= r. [Severity: Medium] Should sitronix,vop use standard voltage units (-microvolt) instead of a raw controller register value? Exposing a raw register encoding locks controller arithmetic into the DT ABI instead of using standard units per writing-bindings.rst. Because 3.6V is an exact multiple of 0.04V, sitronix,vop-microvolt (7000000 to 18000000, multipleOf: 40000) maps one-to-one to the register without rounding error. > + sitronix,gray-levels: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + items: > + - description: Light gray level > + maximum: 0x1f > + - description: Dark gray level > + maximum: 0x1f > + description: > + Gray levels used in the 4-level grayscale mode. If not present, va= lues > + calibrated for the JLX256128 and JLX256160 panels are used. [Severity: Medium] Does sitronix,gray-levels leave the default values and the 0x00..0x1f scale direction unspecified? A generic controller binding shouldn't rely on undisclosed defaults calibrated for two third-party panels, and without stating whether 0x00 is lightest or darkest, DTS authors can easily invert the two levels without reading the driver. Specifying explicit numeric defaults and the scale polarity would make the ABI self-contained. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261206131330.1754= 178-1-chrubis@suse.cz?part=3D1