Message ID | 20230619165525.1035243-7-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBHURYKSAMGQEFNS46OY@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 6AC8F3F1DB for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 19 Jun 2023 18:55:59 +0200 (CEST) Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-3ff29d0dd21sf1025201cf.3 for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 19 Jun 2023 09:55:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687193758; cv=pass; d=google.com; s=arc-20160816; b=EoSMYZaiXTzCUa0ZZfaUTspnr2X0/MRm/unhRzPpLuhhX+HyQ1dJMWasybngHjXkz1 bowNHk1HbkKvr/gWmErC+E4bdMXqu9lohaupsQbxSlECSt/Lrr7AG4W2gvx/oHZw7ge4 R5r8hBg6C4wdBRCBkveOKU5QeezXoTBV3GkpZXPhwda5uwbo8qpQbq11mHVvC4Y9zcnO gymlhJNuQNwsBOqY/nKCGN7OopXAIzZBurICiH0LmsqRmK8mKTCR9vmuMIukW2gQZcpd z7IGyxzsMt2C0CK+Q9eJQ4oob6sCBYd8tstgjkNNxBdzwQCs0oW05rFlEHcJ6jiKao7E MuHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=/TlkQl8S/hPrx3MwPOc6Y6EjuX0iuVl3+2IBTcQjNTQ=; b=e7mpJp+wngpbO3VYgJQoS2WnoB7jdgMRCBKW54GaENmcCyK60nSRGRpNBXyErK7aXs Uiw1p1vwT+GRD2vR0K3Pdw52W3nMlPIpObivPgOjyRw0iPDNi87o8Eb6zFiXyCkeySUw EXxPEnhyCE3epyI8fUBLD53K8uMZgofyy7Klk5J63plSwwkMJgHkYrgQ/HJG2CnE/taO e3hzTyD51vpP8YNZIagX+z9JjzkIoUaFXbbwlVoxrgjxZ8lQ79YB+5M4MfcgQXCo0sNJ ISarHGOAWb8EQY663oSdrRD0Y9aAtnQwWV4hRS5ZAtxP3Y3IJzWqwoLLTTyRtG0oLPyO kNyQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FZytthrb; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1687193758; x=1689785758; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=/TlkQl8S/hPrx3MwPOc6Y6EjuX0iuVl3+2IBTcQjNTQ=; b=g3yp0pBHcbZCfMs/3vFFRmcIDl9kCx/v9pejrSuL7FuozdkrrOAd3rKX5T+LJCUU5s gqd9RlCn7cifT8HJaUwvhWL/hnNxZwgD8CmrIbmDn9ANC8ntad4w6Q+yTkzEymO7XKYs VatkMSJoNGjeCQ0cLFTQAMLQnfkBKyvPuW9GA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687193758; x=1689785758; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/TlkQl8S/hPrx3MwPOc6Y6EjuX0iuVl3+2IBTcQjNTQ=; b=KEbPxmHkB6CFzCRuUNjmF46MHBAU0sjSw3lZCONvMRuwiP14Z+avEgaD5cEKKlMfF3 bTibNMzHrYOi28qU1fYOEQZgt9RXPCJPR6kYU1r0Lb7D0GwWnK7oumewp0684DlpePLE MPo4pI3NSRnQEhip7JtVPXiWp8H4E2jF7oxKuCMXgCZT9PF0IUv4ax0u4+xhh9tGfr5v hA5cQiXOXy/LT1ZiAlLqbS7ZaiKYuv7mazeHDEcOCEon8XKHn45iq298nBujX+v6uenK 8Uq2goyBgd3Yk/55e43X3c1t0tGag98VKoeAHHnGDmrNw/VdJr6LlSktLcX9NATCOryB OA1g== X-Gm-Message-State: AC+VfDyVOl6tXelLu/w+49xCX1xGK7r0rxTB5SDHsA8VjeM/9cLIcf0p Oc5MvOSOjkV1Z+YySHCdXWDd46J35n1u/u8o X-Google-Smtp-Source: ACHHUZ4edQQNufYizbnJP8A7hKBvFXaSQji0x+zvSNCwV7lyzgM6H8dWihOp4NQkuWGt9LoYXLoL4g== X-Received: by 2002:a05:622a:104b:b0:3f8:67d7:e99a with SMTP id f11-20020a05622a104b00b003f867d7e99amr13541440qte.11.1687193758569; Mon, 19 Jun 2023 09:55:58 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:ac8:5249:0:b0:3f8:3f:7349 with SMTP id y9-20020ac85249000000b003f8003f7349ls946097qtn.1.-pod-prod-08-us; Mon, 19 Jun 2023 09:55:58 -0700 (PDT) X-Received: by 2002:a05:620a:398d:b0:75b:23a1:8e6f with SMTP id ro13-20020a05620a398d00b0075b23a18e6fmr9017394qkn.64.1687193757662; Mon, 19 Jun 2023 09:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687193757; cv=none; d=google.com; s=arc-20160816; b=LBL1mnxDAqYGehRl+OIx3bAUwwaxWzud6BBk8Y2CC13Ypl/WDQS4m3Ok19a4f471fC muvTxWpSDZ/0T+dcutFZsy5noetNcLlcBTGMgTmlYIS9QUdpprHZ6asMoNLRO6GuS19A cn6I7eDaPFEbKZkxAcpMN6GrgSxD34f6/U6VXk58estCeT8BBNWI82IC9xd7BkGL5ZVL ykgO8gCtss6icr4LPPdQjW2jqEC1wbY0eZJ7lvIYtIPA30QG+D7dM2Rtef/05TOFtpN2 YAFmhBkCNajFwmPN7KtQpNjEgCCMgGPMKoDXduIKw4jDQqtvIa+7pqXOv4b1QeQCkduw 6krQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=KnZNU/I8hVx/txQg+gZcbNdILNkL1d9QJiWI/0DW9wI=; b=jDJLgeWRS5QxYXKiJLyPd0oAfTi/62ZUmSksiaqKm/rgpNNBt12wuQSLyMSHe8L0i1 PQfxpnJdpMmvHIZKc8cAexTlt9IXtxpnH2yK1YLVVe03TGs8e8qqgHkblp4fSfM4CrD3 byDROetrToTXl5i6ZvAtKd7a6MlvugGyuBZBvbTXcoDYIb/0Lf3izL9rb00jlgv5Q89l ujfj+BZicE8R7duudeyFSRco9E6dqP0L2TWW5jERcJ/cr0DxvDCcwXNTLXUQabkLm2Fa QXutPYJGCz5NrkW7F+bY9yGkctx8xmORlntUUl8q4v04H6+oinmjvSDAZGQ9o5RGswu4 ZwDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FZytthrb; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id h19-20020a05620a285300b007624d22f24dsor123600qkp.19.2023.06.19.09.55.57 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Mon, 19 Jun 2023 09:55:57 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:620a:4397:b0:762:39c:7fb3 with SMTP id a23-20020a05620a439700b00762039c7fb3mr11634709qkp.60.1687193757326; Mon, 19 Jun 2023 09:55:57 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (host-79-25-27-4.retail.telecomitalia.it. [79.25.27.4]) by smtp.gmail.com with ESMTPSA id p23-20020a05620a15f700b0075d49ce31c3sm109103qkm.91.2023.06.19.09.55.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 09:55:57 -0700 (PDT) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: linux-kernel@vger.kernel.org Cc: Philippe Cornu <philippe.cornu@foss.st.com>, Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>, Amarula patchwork <linux-amarula@amarulasolutions.com>, michael@amarulasolutions.com, Dario Binacchi <dario.binacchi@amarulasolutions.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@gmail.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Yannick Fertre <yannick.fertre@foss.st.com>, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v4 6/6] drm/stm: set framebuffer bit depth through DTS property Date: Mon, 19 Jun 2023 18:55:25 +0200 Message-Id: <20230619165525.1035243-7-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230619165525.1035243-1-dario.binacchi@amarulasolutions.com> References: <20230619165525.1035243-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FZytthrb; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/drivers/gpu/drm/stm/drv.c b/drivers/gpu/drm/stm/drv.c index 422220df7d8c..7a61a3c63469 100644 --- a/drivers/gpu/drm/stm/drv.c +++ b/drivers/gpu/drm/stm/drv.c @@ -180,7 +180,9 @@ static const struct dev_pm_ops drv_pm_ops = { static int stm_drm_platform_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; + struct device_node *np = pdev->dev.of_node; struct drm_device *ddev; + u32 fb_bpp = 16; int ret; DRM_DEBUG("%s\n", __func__); @@ -203,7 +205,9 @@ static int stm_drm_platform_probe(struct platform_device *pdev) if (ret) goto err_put; - drm_fbdev_dma_setup(ddev, 16); + of_property_read_u32(np, "st,fb-bpp", &fb_bpp); + + drm_fbdev_dma_setup(ddev, fb_bpp); return 0;
The patch, which is backwards compatible, sets the bit depth of the framebuffer using the optional property 'st,fb-bpp' in the DTS. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- Changes in v4: - Use DTS property instead of module parameter to set the framebuffer bit depth. Changes in v3: - drop [4/6] dt-bindings: display: simple: add Rocktech RK043FN48H Applied to https://anongit.freedesktop.org/git/drm/drm-misc.git (drm-misc-next): https://cgit.freedesktop.org/drm/drm-misc/commit/?id=c42a37a27c777d63961dd634a30f7c887949491a - drop [5/6] drm/panel: simple: add support for Rocktech RK043FN48H panel Applied to https://anongit.freedesktop.org/git/drm/drm-misc.git (drm-misc-next) https://cgit.freedesktop.org/drm/drm-misc/commit/?id=13cdd12a9f934158f4ec817cf048fcb4384aa9dc drivers/gpu/drm/stm/drv.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)