From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB7FC334C3D for ; Fri, 31 Jul 2026 21:50:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785534650; cv=none; b=hFb+Z8L83aQBmXxdmF65GBm9tnrU5rWvEtGB1FeTttqRcKBP7xcAeNXGpqzvfPEHrHvRgZTTqFLZedm8IN7JQpXBgN2YL7/f2Z2t6CU99hFsOJljGWR6EQxcAu2T50oR6eJfaaDna75T/QzkQeML7L6oe9nISNolADVQnfzUNiA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785534650; c=relaxed/simple; bh=ZLAM9BbgNPYw/mC8BH1vW2Quj4ZGWesTFdSgyL5Rgpo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=c4H5V3CFoj7R4vxqUGt79+jCEC1FiBd90p7s3V9bxINhbkfj0zF+fL2d3238K/zbnz4LO+xZBT2NBwfwT2ADQv+fLofgsp4RQxFCDW4nlbx1fEvHG8HH3baAEYpNfxj/T10vNDb5s+oJhedpDUdqxRS/X6CEnwvsiueWXcL4dF0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=QWWO20uI; arc=none smtp.client-ip=209.85.221.54 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) header.d=gmail.com header.i=@gmail.com header.b="QWWO20uI" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-47362928f65so1543431f8f.2 for ; Fri, 31 Jul 2026 14:50:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785534647; x=1786139447; darn=vger.kernel.org; h=content-transfer-encoding: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=Ne8gXxsmxHvirJEKTA6WZrzb+m1RGc3+hgsbJk4xAkg=; b=QWWO20uIGmnoQE0eRWMAbH9X/TdGiIY6+A8MxrjXLEgBzqMQpUlDlGqK8265FpnzCg OFtscShnRcfyeW/WXQTalwbLorb5b8xhTx9yDZ7vmPmL5pJgC23j4vGJRtUPbQkgjOL+ 7in7eidEbpf9y4yv68KCANz70AB8fCOx7TXtDhDyLQwgMoslOLT3CmRXlMmligW+B3q9 wXsLvlGaujexpmDMvUNITaGIlTQW2lwTp8wrbZ70ahKL2Qvrg1LayTCJa8ameiwRAh6T hM3HZC/CaTr3OSV3Og1BTnsz4WhLX+Wzi9OPcU4dd1mnnPf4jcciBRdDQil1C9/qzWt0 QccA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785534647; x=1786139447; h=content-transfer-encoding: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=Ne8gXxsmxHvirJEKTA6WZrzb+m1RGc3+hgsbJk4xAkg=; b=erK3IWR1sz1pBT9AcF9ZAvKPHyZsmjA8wyvrmVCsPYD1u0SF/Z0ZnYXGxr2xUjUu9F vDS7QvIumO5/z8R7mQKoLdjqeTbGPqSb9gBX6dQkXhmnZ8gpV2HT71jJ48nncBKBm7+l GL60dL5wgOgqlXDl38YZaeg0lWMXFlzDo5gqn5qHTENF6/JIWIwUzHp2NcRiQ07nXmGN 14Xd8WQQnZBLrQ+w+lfuvNhZ8V/gZK4cBJHjjCXP3fSfEWqBj/S8xNSLPI29p3LCQBT7 jZ+ber+NcNc6BV9gIHt4Yn/6D5cp0x18AVbAbfKjUKppVkl4mVXFzGbvGEHjeA/Rp16y CBwg== X-Forwarded-Encrypted: i=1; AHgh+RpOgNAr4rCF0HlLnbn18eCXrKtbpdl7GgJg9YJ5adI7QTm/NDtXu+F234AHgc1p2FVwDFUGCOudnqKgaIA=@vger.kernel.org X-Gm-Message-State: AOJu0YxgLf3qNjBGYa1iC6boLC4WAPCTfB9JCvbzEtbEGkwfUe644RRY +ecVATZokSS/EyCSug/ZUq8rxC2jdwNs9O3pMlbkPqz691TKeQj1J6D6 X-Gm-Gg: AR+sD10LGbqAv9FSomf10QicpZyZuSwYX0HVzUb/l0lQ84mDIRgTcMnnFg5/4ReNKso jT1CnjFc0vT4HqSHg0EhBIJxOKk68hUchKuzIWdbIKlRqJ/usqcQzxx/B6d+27F3v967r0c0D7J +BsShUK+A5kWmbNwLb7PFoveGtVLU6O9F0XrQgLq11ajudLo3VWMaYV6RxsvDsT3OuYxsrWZEv1 Gcaz+K0/R8LxedL8m5C8YFAz+uTQwv40ftCr1KKIN5zWD63vyW6G6avGvUUN1ODTKOL6+Uyz+iD 7Dazz4IENKo2C06lwSOlHG2hibuLtlKO5qrsPrXT0MPoKM3Kh4+F7SKKSuEjLGBwS3Oq9P/hsfu 2az+iajQlWRYJfUjugz0D0aohmVDCBhyJLFSiRpccNGPV/rA+DVdCisYLvv3CYBI6QN6y8x8DcT Src0RUVN71FajTpWZnvsQ/XhoLvRpcU/dcnDLtb7hgudD91VqhCgNWXUxY0jPPcAQn7+E4gra0S oEL85SUMwuxGcwCSA7tpPlikw== X-Received: by 2002:a05:6000:607:b0:475:f0d1:eb63 with SMTP id ffacd0b85a97d-47fd7320f88mr2386045f8f.48.1785534646973; Fri, 31 Jul 2026 14:50:46 -0700 (PDT) Received: from ingenieria31.oficinasStQ.local ([79.116.62.64]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47fd41e2484sm10186342f8f.11.2026.07.31.14.50.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2026 14:50:46 -0700 (PDT) From: Max Pedraza To: Helge Deller Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Zimmermann , Maxime Ripard , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Max Pedraza Subject: [RFC PATCH 1/6] dt-bindings: display: add a device tree supplied boot logo Date: Fri, 31 Jul 2026 23:50:38 +0200 Message-Id: <20260731215043.30392-2-maximpedraza@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260731215043.30392-1-maximpedraza@gmail.com> References: <20260731215043.30392-1-maximpedraza@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Embedded products frequently need a product specific boot logo. Today the only way to get one is to replace one of the logo_*_clut224.ppm files in the kernel source tree, which bakes the image into the kernel image: a change of branding, or a second product sharing the same board support, requires a separate kernel build. Add a binding for a "linux,boot-logo-clut224" node, which carries the logo in the same paletted format the built-in CLUT224 logos already use, plus a few optional properties describing where on the screen it is drawn. The palette size is derived from the length of the "clut" property rather than spelled out separately, and "data" holds plain palette indices; the 32 entry offset the frame buffer layer reserves for the console is an implementation detail and is applied by the kernel, not by the binding. Signed-off-by: Max Pedraza --- .../display/linux,boot-logo-clut224.yaml | 108 ++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/linux,boot-logo-clut224.yaml diff --git a/Documentation/devicetree/bindings/display/linux,boot-logo-clut224.yaml b/Documentation/devicetree/bindings/display/linux,boot-logo-clut224.yaml new file mode 100644 index 000000000..10845378d --- /dev/null +++ b/Documentation/devicetree/bindings/display/linux,boot-logo-clut224.yaml @@ -0,0 +1,108 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/linux,boot-logo-clut224.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Boot logo supplied by the device tree + +maintainers: + - Max Pedraza + +description: | + Embedded systems commonly need a product specific boot logo. Today the only + way to get one is to replace one of the logo_*_clut224.ppm files in the + kernel source tree, which means the image is baked into the kernel image and + a new kernel has to be built and deployed to change it. + + This node lets the boot logo be described by the device tree instead, so that + a single kernel image can serve several products, or several revisions of the + same product, that only differ in branding. + + The image is stored in the same paletted format the in-kernel CLUT224 logos + use: a palette of at most 224 RGB entries plus one palette index per pixel. + +properties: + compatible: + const: linux,boot-logo-clut224 + + width: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Logo width in pixels. + minimum: 1 + maximum: 65535 + + height: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Logo height in pixels. + minimum: 1 + maximum: 65535 + + clut: + $ref: /schemas/types.yaml#/definitions/uint8-array + description: + Colour lookup table, as consecutive red, green and blue bytes per entry. + The number of entries is derived from the property length and must not + exceed 224. + minItems: 3 + maxItems: 672 + + data: + $ref: /schemas/types.yaml#/definitions/uint8-array + description: + One byte per pixel, left to right and top to bottom, each byte being an + index into the colour lookup table. The property length must be equal to + width multiplied by height. + + logo-position: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: + X and Y coordinates, in pixels, of the top left corner of the logo. + Defaults to the top left corner of the screen. + items: + - description: X coordinate + - description: Y coordinate + + logo-offset: + $ref: /schemas/types.yaml#/definitions/int32-array + description: + X and Y displacement, in pixels, applied after the logo has been placed. + Mostly useful together with logo-centered. + items: + - description: X displacement + - description: Y displacement + + logo-centered: + type: boolean + description: + Centre the logo on the screen, overriding logo-position. + + logo-rotation: + $ref: /schemas/types.yaml#/definitions/string + description: Rotation applied to the logo before it is drawn. + enum: [none, cw, ccw, ud] + default: none + +required: + - compatible + - width + - height + - clut + - data + +additionalProperties: false + +examples: + - | + // A 4x2 logo using three colours, centred on the screen. + logo { + compatible = "linux,boot-logo-clut224"; + width = <4>; + height = <2>; + clut = /bits/ 8 <0xff 0x00 0x00 + 0x00 0xff 0x00 + 0x00 0x00 0xff>; + data = /bits/ 8 <0x00 0x01 0x01 0x00 + 0x02 0x00 0x00 0x02>; + logo-centered; + }; diff --git a/MAINTAINERS b/MAINTAINERS index e08767323..3f0ede165 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9951,6 +9951,7 @@ L: dri-devel@lists.freedesktop.org S: Maintained Q: http://patchwork.kernel.org/project/linux-fbdev/list/ T: git git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev.git +F: Documentation/devicetree/bindings/display/linux,boot-logo-clut224.yaml F: Documentation/fb/ F: drivers/video/ F: include/linux/fb.h -- 2.39.5