From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793109244; b=kQuGVovsOvptcVY/nHRO0Yt5v9Wai5jBtiHp+pyTPK9aw6zYCPCu4HwDN1sCofEZrSeT c8FYI5q45DR3ZJNlZiGye+VPvuuRMxVL9bycYbD/lS3Pgf6rvAVLd3M8OM8gYG12NLs1O /8FllbBVXrTjMWZcS/I0TPdzTTf2hgDUGvKBzSQx/5IH+slfNKGEggF/XSNy18BrESWPz 8x/GEyMKe+Agz/IOS4xZrULfUACChLdEvf7g3zS9A8PxcEO1lsk3yqTJKrhon5wxBch+o eF6kfytdqG8V7rJyYGkRTGHdGmD2if43cgv/Tf8GYPuZGmIT9E3TPqQeJUJVH9Eb9ag== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793109244; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=CNwiH8WXKlzRpf9XA93ERiKn3IeKgsDSdg+szp0134I=; b=QE/Cl7MSH+TYWyv3Qx1bBz+nO4/X7kzxFbkzxlSIQkE8V2Gp0JpiqsMwqUSl7KBDPLwE PgswJCUHGB7bCXE5uhRFcgMDDmUltF0vWj+6csc41dGEk39kqDpqjgZJWbU5/YJe5wHZk mc17opNhRzCARPfeat+Iu6hV6+icrHxlwOwwH+CfUe5dd0Db2NM/8X48IWhj7uLhdcRYb KeA4t4lJMXygD70UTdSHSpf4drA6hBWE6D1p9aWD+c+3ZsT3p0/n+0HyOrgZWTMJbZXI3 G8lVlaTyqy3ikf5+hi9YBm77bFUwXCLZVFJQfEqe/ymdLx32LVODMDaJj7GpIb5r98g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=fj4wjdw0; arc=none smtp.remote-ip=209.85.221.41 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE4CF60A2616 for ; Tue, 27 Oct 2026 13:54:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DE4CF60A2616 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, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=fj4wjdw0 Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-48af4d4e61fso2666300f8f.2 for ; Tue, 27 Oct 2026 06:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1793109242; x=1793714042; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=CNwiH8WXKlzRpf9XA93ERiKn3IeKgsDSdg+szp0134I=; b=fj4wjdw0D3xlsVKH89Axah6M1qST+GP/oHhvyXcuwD6enLr+rUKo2loUa8YsrcI0R7 wXT1e3nmLGw/mBrIq7Q4WzEGXqzaHDgmr98+K+ECoFxnYZYOEfSm/pz5X5n0PuBHU3ao BK7B1QZPO6DDZVd0h8KKTDh13A0X2+sJKWZKGb07oSaQlTI+xhDefU+4S644vpB45WLd L75VURnLN9vNsKLqr/+LrMNFsZUpW3plvCZM/vBOR+r+Aj6SGHhrLDG6QK09xgfHzliV JXjUlSFRJ1v12/LgnfZfbt7YN803n7kHe+OwlhLCN3jI6YbDThgrHE+tLciU1lXcgtKz PDPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793109242; x=1793714042; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=CNwiH8WXKlzRpf9XA93ERiKn3IeKgsDSdg+szp0134I=; b=SSPWMelAocjjpIHgWQ06BMEow5ppbUCbbRTwO22ZQxj7vYscKBPFumL6FWxXnb2XRO SF/7IrBONEgQNKhybCUnoISX+B6+tfy+rkuv4grxPwd2APN0Ay/QiFJMWmyEjvN61k+W vbY+EhfOdUYxrpD2P+yWXmhMdsOhLtnJPYyr+eRo5fWyuONEg87iPuzkpMAZiiaUfV1T I8cTXzVNBXTOOeObvmGG+iQmgqeX2yoJ8e72w6qEtUZl050CWWvhDvoyIiIyRkyppHmt bPMMexmVVh4A8yHMfUAlGwR4sqlzXvfkWD5cHebiiHL+p3mFlsE7ttiJXrJhwfvXsb3D yNIQ== X-Forwarded-Encrypted: i=1; AKwUvBwwbqgHSnNxOWfTZjDCW7Y6VGQorULDxWpYtKArU2TlAD//ZfYzC7fEVz75I6vzgZzx15/y4FKmK+U=@vger.kernel.org X-Gm-Message-State: AFq9FYJNRO6t2Kqf/s+v6BgevJCduih+4A7/u5IOlHlsDvYAO2FjzJPT ovQ7vu1MpLtT4bK19OB9o7HjR+Ny5GPZ0HOamE/zay0ue2je0ytLbyh4 X-Gm-Gg: AYBFou0aEpaGWJ+P8eQaVRrIyeADDzvwjoeGm01+wIADW3X91Qobjxm/lunvbwvSHZe 3khbZq8LNFr1e29Vw487cW8oMtoCzTZvejdSNx+bRvzXcfgT7Lvj1OVOeuX3P1QOGhiM8t9zcIq k0mahmvvUMEtHg5RrNUkaYJGVddRbS1qUxUOkRPHd966+dgxaxqK/01hYvkqelZAW5QCvb26vja /Qo+tysm2HwMcJtigqXXR6CnS/oJG3y3Uep/ixauaUECUV8Lbdo7MIt54KY1F8ZS5v+/1mpYZcQ DbJ27MF50n9eWKbV+TIxawkAU+jkk13BqbGsqxIjrwEx9i16RZvaK2a0v5ihTZub+tPopEc2k0F nKL6HuaKR7pZpUcocLDUI439Ibc+VEogJXIAGxceKBKwYfptQp6SGktho0B7iu4ZvEDNBMHAY0J 9YI5bTufUK8q2GsB/GauFjv9KZVE7j7CqFGl4YVgNSQxkjeVMO6w7O4B/gQBoUIV7XVHH7OrX6i sYUmyvRWHREFJbp6WYbAYwfRWi9Xd/F/a771P1k5V01nM7p9Mp/yTSAX3Opv5GiJ6z8ihGpqxq7 nSDmS3w= X-Received: by 2002:a05:6000:29d5:b0:48e:3d35:a18a with SMTP id ffacd0b85a97d-48e3eb98289mr9620502f8f.49.1793109242138; Tue, 27 Oct 2026 06:54:02 -0700 (PDT) Received: from ingenieria31.oficinasStQ.local ([79.117.46.175]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e3ebcb846sm23128058f8f.25.2026.10.27.06.54.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2026 06:54:01 -0700 (PDT) From: =?UTF-8?q?M=C3=A0xim=20Pedraza=20Padilla?= To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ard Biesheuvel , Jonathan Corbet , Helge Deller , Peter Jones Cc: Francesco Valla , Jani Nikula , Mario Limonciello , Javier Martinez Canillas , Jocelyn Falempe , Sam Ravnborg , Ilias Apalodimas , Shuah Khan , Randy Dunlap , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-efi@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-embedded@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 07/15] dt-bindings: display: add a boot logo node under /chosen Date: Tue, 27 Oct 2026 14:53:34 +0100 Message-Id: <20261027135342.2003632-8-maximpedraza@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20261027135342.2003632-1-maximpedraza@gmail.com> References: <20261027135342.2003632-1-maximpedraza@gmail.com> X-Mailing-List: linux-efi@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Products built on the same board often differ only in branding. On UEFI systems the firmware hands the operating system its boot logo through the ACPI BGRT; a device tree system has no such table, so today the logo is built into the kernel, and each product needs its own kernel image. With U-Boot's Falcon mode the device tree is the only thing that reaches the kernel, so it is also the only place the logo can come from. Add a "logo" node, compatible "boot-logo", under /chosen. It lives there because a logo is configuration handed over by firmware rather than a description of the hardware, as simple-framebuffer nodes already are. The image is a BMP with 24 bits per pixel and no compression, the format of the BGRT image, so that one file serves the firmware splash, a BMP loaded as firmware and this node alike. It is carried either in a "logo-image" property, which dtc fills in from the file with /incbin/, or in a reserved memory region the bootloader loaded it into, named by "memory-region". Exactly one of the two must be present. "logo-position" takes -1 on an axis to mean centre on that axis, which is the only way to say it when the device tree does not know the image size, and "logo-offset" is added afterwards. "rotation" is the one of panel-common.yaml, degrees counter clockwise, but turns the image rather than the screen, so position and offset stay in screen pixels. The optional "background-color" goes with the image, since a logo designed for one background looks wrong on another. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Màxim Pedraza Padilla --- .../bindings/display/boot-logo.yaml | 156 ++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 157 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/boot-logo.yaml diff --git a/Documentation/devicetree/bindings/display/boot-logo.yaml b/Documentation/devicetree/bindings/display/boot-logo.yaml new file mode 100644 index 000000000000..9cd4b2565112 --- /dev/null +++ b/Documentation/devicetree/bindings/display/boot-logo.yaml @@ -0,0 +1,156 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/boot-logo.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Boot logo supplied by the device tree + +maintainers: + - Francesco Valla + - Màxim Pedraza Padilla + +description: | + An image for the operating system to show on the display while it boots, + handed over by the firmware together with where and how to show it. + + Products built on the same board often differ only in branding. Carrying + the logo in the device tree lets a single kernel image serve all of them, + each booting with its own device tree, and it works where the device tree + is the only thing that reaches the kernel, as with U-Boot's Falcon mode. + It plays the part the ACPI BGRT plays on UEFI systems. + + Since a logo is configuration rather than a description of the hardware, + the node lives under /chosen, next to the other things firmware hands to + the operating system. + + The image is a BMP file with a 40 byte BITMAPINFOHEADER, 24 bits per pixel + and no compression, the format of the BGRT image. It is carried either in + the node itself or in a reserved memory region the bootloader loaded it + into, never both. + +allOf: + - $ref: panel/panel-common.yaml# + +properties: + $nodename: + const: logo + + compatible: + const: boot-logo + + logo-image: + $ref: /schemas/types.yaml#/definitions/uint8-array + description: + The BMP file itself, byte for byte, which dtc can fill in from the file + with /incbin/. The device tree stays in memory for as long as the + system runs, and some architectures limit its size (arm64 to 2 MB), so + this is meant for small images; at three bytes per pixel, larger ones + belong in a reserved memory region. + + memory-region: + maxItems: 1 + description: | + Reserved memory region the bootloader loaded the BMP file into, starting + at the beginning of the region. The BMP header says how much of the + region is image. + + This keeps the image out of the device tree, so that it can be changed + without rebuilding the device tree, for instance by loading it from a + partition of its own that userspace can update. + + Memory keeps its contents across a reset, and may even across a short + power cycle, and the operating system cannot tell a stale image from a + fresh one. A bootloader that loads no image into the region therefore + disables the node (status = "disabled") or removes it. + + logo-position: + $ref: /schemas/types.yaml#/definitions/int32-array + description: + X and Y coordinates, in screen pixels, of the top left corner of the + image once it has been rotated. A value of -1 on an axis centres the + image on that axis instead, which is the only way to say it when the + device tree does not know the image size, as with a memory region. + Defaults to centring on both axes. + default: [-1, -1] + items: + - description: X coordinate, or -1 to centre horizontally + minimum: -1 + maximum: 65535 + - description: Y coordinate, or -1 to centre vertically + minimum: -1 + maximum: 65535 + + logo-offset: + $ref: /schemas/types.yaml#/definitions/int32-array + description: + X and Y displacement, in screen pixels, applied after the image has been + placed. Mostly useful together with a centred axis, to land the image + somewhere other than the middle of a panel whose visible area is not + the middle of the mode. Defaults to no displacement. + default: [0, 0] + items: + - description: X displacement + minimum: -65535 + maximum: 65535 + - description: Y displacement + minimum: -65535 + maximum: 65535 + + rotation: + description: + Rotation applied to the image as the screen is seen, in degrees counter + clockwise, as for the rotation property of panels. It turns the image + and not the screen; a panel mounted turned is described by its own + rotation property, which is made up for first, so this means the same + whichever way the panel is mounted. A quarter turn swaps how much room + the image takes up, but logo-position and logo-offset stay in pixels of + the screen as seen either way. Defaults to 0. + + background-color: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Colour of the rest of the screen, as 0xRRGGBB. When absent, the + operating system uses its own default. + maximum: 0xffffff + +required: + - compatible + +# The image lives either in the node or in a reserved memory region, +# never both and never neither. +oneOf: + - required: + - logo-image + - required: + - memory-region + +additionalProperties: false + +examples: + - | + // A 2x1 image, red and blue, centred and 120 pixels below the middle + / { + compatible = "foo"; + model = "foo"; + #address-cells = <1>; + #size-cells = <1>; + + chosen { + logo { + compatible = "boot-logo"; + /* Normally: logo-image = /incbin/("logo.bmp"); */ + logo-image = /bits/ 8 <0x42 0x4d 0x3e 0x00 0x00 0x00 0x00 0x00 + 0x00 0x00 0x36 0x00 0x00 0x00 0x28 0x00 + 0x00 0x00 0x02 0x00 0x00 0x00 0x01 0x00 + 0x00 0x00 0x01 0x00 0x18 0x00 0x00 0x00 + 0x00 0x00 0x08 0x00 0x00 0x00 0x13 0x0b + 0x00 0x00 0x13 0x0b 0x00 0x00 0x00 0x00 + 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 + 0xff 0xff 0x00 0x00 0x00 0x00>; + logo-position = <(-1) (-1)>; + logo-offset = <0 120>; + background-color = <0x1e1e28>; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 321ecb9f5b5b..0d1decaedde0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9174,6 +9174,7 @@ M: Màxim Pedraza Padilla L: dri-devel@lists.freedesktop.org S: Maintained T: git https://gitlab.freedesktop.org/drm/misc/kernel.git +F: Documentation/devicetree/bindings/display/boot-logo.yaml F: drivers/gpu/drm/clients/drm_splash.c DRM TTM SUBSYSTEM -- 2.39.5