From patchwork Mon Jun 19 16:55:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13284827 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 48CC4C0015E for ; Mon, 19 Jun 2023 16:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JXhhBIfVT0wDq3j9q+kCArQISyEo/tfVEFbFX20uwcE=; b=G+y3rhh68blfq8 McQTc9YY5uvsmtRpmaoJe8Le11YoSCoQ4QRPzFUL51vm9cPZIeRVFOC72oT8prNm27eJ9/Xc61jrV WCxm57f4cSh9Zr3U0jVo7L34h9RgHvawQczeCPlfX1YA/J2urOMa62e9i0qWYTqkE/gO4gvIJ6XNX SNlSC3LyUfqMZrOnbEHCPtaBOdlhfhO9/0piiFhzVmsjA/q/LjoyYzNSnTy+G++NGUxozFq0ek7zA 2yjHcLxPxzbJckTW9TW7VSsP/SmirMUtwdThbMZXh+VlqD4o9JPztmFL9Xd3WLJCzL84iP8SS8l0d zz3imDFOeNTgPsK3/jaw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBIAF-0090HJ-0Z; Mon, 19 Jun 2023 16:55:39 +0000 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBIAB-0090GR-1u for linux-arm-kernel@lists.infradead.org; Mon, 19 Jun 2023 16:55:37 +0000 Received: by mail-qk1-x734.google.com with SMTP id af79cd13be357-76257c11363so191396285a.3 for ; Mon, 19 Jun 2023 09:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1687193734; x=1689785734; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7c41/bHT5/tFLz1vS2dSA0XEpnWz70oHsIq3qIfRkDg=; b=S9h89TIICRrr9urRyxkGPxg0pQMos+Ew4eyrnlhGAsTdrj9u8CsXILBMHfxlU7CPRA MlvBX16u/Pe5p+tRlks2G3BeNtr8MSkOlCdEduf+udO69nQpBqWdvZm7vfzyiJKtXCKm +m/FKU5TZTwkArCuraEa9SXh2BfvfGOdigDtQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687193734; x=1689785734; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7c41/bHT5/tFLz1vS2dSA0XEpnWz70oHsIq3qIfRkDg=; b=PDoVsBdJyRyLM/ELUNeJ11WIbvYY5mqbYQyPiXniY6gdtWnon0dyK7H1Cnss9xBnpI dE6pCPpSRrIg/4EcSdy/bTnsDGvxXsFMLKjugXdzi7aLZx5QCfq7Pmcx1/RDT5xK8otZ uDsSj8olUx5ISjl+bYynwvSWimREv/qOfa+8c7Vk92JA2fhu4x9W1AGT5cwx47dSAcrH nzB/FSK9j0ML8kn9g1T05jcBKxiaOimp7pxKcEWicdS0fMCnKHgeQutOiAJMNrBffZ12 8WZrgklB9nVN6/FvqdCjaX3q163lkX1a8o8ybdeQ4r+EvY6hWO7ENhYfYBGLe6f55lB5 7LuQ== X-Gm-Message-State: AC+VfDyNSLHdFaXM5rRjYGwtCOZFgTnfOxh7aSOs748UURq1zLrINdK3 taiZcrEa6QFEudktZJCvDAMTNg== X-Google-Smtp-Source: ACHHUZ4sTAr3fMXBOvSLg9lwFYSVkTHAYf5eM0y/vpSON2lPB1hmZtTUmjdP6o3pvxtzCVlRsK/uFA== X-Received: by 2002:a05:620a:8e04:b0:762:55f7:7105 with SMTP id re4-20020a05620a8e0400b0076255f77105mr4382806qkn.28.1687193734044; Mon, 19 Jun 2023 09:55:34 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 09:55:33 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Philippe Cornu , Raphael Gallais-Pou , Amarula patchwork , michael@amarulasolutions.com, Dario Binacchi , Alexandre Torgue , Conor Dooley , Daniel Vetter , David Airlie , Krzysztof Kozlowski , Maxime Coquelin , Rob Herring , Yannick Fertre , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v4 0/6] Add display support on the stm32f746-disco board Date: Mon, 19 Jun 2023 18:55:19 +0200 Message-Id: <20230619165525.1035243-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230619_095535_672791_6CEF64BC X-CRM114-Status: GOOD ( 12.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The series adds support for the display on the stm32f746-disco board, along with a generic patch that adds the "bpp" parameter to the stm-drm module. The intention is to allow users to size, within certain limits, the memory footprint required by the framebuffer. Changes in v4: - Use DTS property instead of module parameter to set the framebuffer bit depth. Changes in v3: - rename ltdc-pins-a-0 to ltdc-0. - 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 Dario Binacchi (6): ARM: dts: stm32: add ltdc support on stm32f746 MCU ARM: dts: stm32: add pin map for LTDC on stm32f7 ARM: dts: stm32: support display on stm32f746-disco board dt-bindings: display: stm32-ltdc: add optional st,fb-bpp property ARM: dts: stm32: set framebuffer bit depth on stm32f746-disco drm/stm: set framebuffer bit depth through DTS property .../bindings/display/st,stm32-ltdc.yaml | 6 +++ arch/arm/boot/dts/stm32f7-pinctrl.dtsi | 35 +++++++++++++ arch/arm/boot/dts/stm32f746-disco.dts | 52 +++++++++++++++++++ arch/arm/boot/dts/stm32f746.dtsi | 10 ++++ drivers/gpu/drm/stm/drv.c | 6 ++- 5 files changed, 108 insertions(+), 1 deletion(-)