From patchwork Mon Jun 19 16:55:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13284829 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 452F8EB64DA for ; Mon, 19 Jun 2023 16:56:09 +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:References:In-Reply-To: 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: List-Owner; bh=ccyxSCvQhcYH0UIsTsNLTQaRFQ9e/KQctrZqXbipolQ=; b=ojyCP9RhlAzGI8 gI0VDhuP8LtdSd7yUn5BaODj5boSIjCIh5E2K2n0WSpzk0+4sENTIk7hffbfZgv76AFvCog8upvGy 8jxUxE7tMop0l96Ltv+EscTPwuhcZgoKMT3dSO5IrSE90r5hDcMR7Vo98IMo/iUtAT+xrjRnrk8/i C3kiTNEy784LvlnrXqns9+nqZVV685gKFUfEdWoBJU9HSLh+Cad6mEmtnJB/lspI1KH9NaJ54Fknq 853zY86IgYbW51CZuMQs8r75Epl8nFwoo4aWjrYaLOq4W7cvu0Fd21NYra2R8vJoNYf4+WfqffdhR OeLgTRhRfCBmdusDZSdQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBIAL-0090K4-2m; Mon, 19 Jun 2023 16:55:45 +0000 Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBIAF-0090HH-1I for linux-arm-kernel@lists.infradead.org; Mon, 19 Jun 2023 16:55:40 +0000 Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-76241c98586so282325985a.0 for ; Mon, 19 Jun 2023 09:55:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1687193738; x=1689785738; 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; bh=2jBqOeBntw2+ThpWf4KE8BMuMRq2HYj3RR0u0oHiddc=; b=fbehQPIELgMVuXKfNJ14ftlH1Mu99NGxZxmpav7OC/ejP2ZFu0DfrtcQSHiuGYciyl tH35FlqjRv13W3FryjHB+CgK9dBSRixA2OFqEyIJpPpFixhBr5rLl+n7IHU5g3U7IfSp px1owPuMpfK+cfi67OBColLfqKhxm6jvxVXoQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687193738; x=1689785738; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2jBqOeBntw2+ThpWf4KE8BMuMRq2HYj3RR0u0oHiddc=; b=iTKIbOXbbASA9qMTRYfxJ7CV16niWpd5G7N1rgqR6d4ud53FNyO9+JG3p7iRL3LciL FK0WEU2uFNEG6yhg2AI61aDI6tMhnnnFcegJsBcrZIhh8W6CCZ7YSqKdCfEATM54Al90 qJlY6Jq0Aah+oO/DGLwxEahHvRr2uZxdPBDErrtPZ1aZW+MOP4AJfVjOnjFJsVKABAkQ x+xEvKwhl8mSYjp2UxffhnMhn2mDylS586t0l9oxifGoKwn5jzgouN8F0iBu5rL6CgaZ qc0U8azqKO1S4/D4IYsv6VKIJkWoGK/3HERfg0tB6Yww5tnQbHcgsXZpedelKGb1Iqp9 LQZQ== X-Gm-Message-State: AC+VfDwkYAc3gU/p6+C8pA/m8sD1S1OzIxslcPTHiJBpPB5IjE8RmWOR R4IOgM0M7a2Bz8wn6f3hPGjXUw== X-Google-Smtp-Source: ACHHUZ7s9mMwA0UYhOrHV96GHITp2mcagElZVTFGi4BdgoRv2nHLvaYcNEfGRjJJhUoLnGeLKw344Q== X-Received: by 2002:a05:620a:4055:b0:75b:23a0:dea4 with SMTP id i21-20020a05620a405500b0075b23a0dea4mr12989246qko.34.1687193738121; Mon, 19 Jun 2023 09:55:38 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 09:55:37 -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 , Krzysztof Kozlowski , Maxime Coquelin , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v4 1/6] ARM: dts: stm32: add ltdc support on stm32f746 MCU Date: Mon, 19 Jun 2023 18:55:20 +0200 Message-Id: <20230619165525.1035243-2-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230619_095539_441809_E8DA42AD X-CRM114-Status: GOOD ( 10.34 ) 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 Add LTDC (Lcd-tft Display Controller) support. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/boot/dts/stm32f746.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/arch/arm/boot/dts/stm32f746.dtsi index dc868e6da40e..9c4ba0b7f239 100644 --- a/arch/arm/boot/dts/stm32f746.dtsi +++ b/arch/arm/boot/dts/stm32f746.dtsi @@ -507,6 +507,16 @@ pwm { }; }; + ltdc: display-controller@40016800 { + compatible = "st,stm32-ltdc"; + reg = <0x40016800 0x200>; + interrupts = <88>, <89>; + resets = <&rcc STM32F7_APB2_RESET(LTDC)>; + clocks = <&rcc 1 CLK_LCD>; + clock-names = "lcd"; + status = "disabled"; + }; + pwrcfg: power-config@40007000 { compatible = "st,stm32-power-config", "syscon"; reg = <0x40007000 0x400>; From patchwork Mon Jun 19 16:55:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13284828 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 9EE6BEB64D9 for ; Mon, 19 Jun 2023 16:56:06 +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:References:In-Reply-To: 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: List-Owner; bh=4JQrVnp5oHP1MGU080awzRUdWHJ+cH1sZ6PwMqz3IJM=; b=LR1m+nOpAlnHWo lrXYb4QZUV4PcPnxP59D6KPYd42dhE612leVjJQMvJAygUyT8Zgp+BDl2yKzSpLVlO6cAa7HeVpjt W9dRWH+5r4xbhB4/lnkMxuDdDMzalEBlCjAMmDDD/86fiOFZDGO3LO/EcGszSmcpYT0tDM5EOquMF VcJLKpMa/XkdveX7fodvPOvyws1u4sz2BCpOEtd88w2iKsRqo7zOjMCMwbHzGKZljk4VBub0Vyv3f ddEm1uBo6ILTUW++gKypFjl2YWYPckjA05tzkpjU6r8cTwac+WkehPqPhnQDyYl0THDKPQ0QchWDh Ld3dbbsKwM2AMZtiN/hQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBIAM-0090Ki-15; Mon, 19 Jun 2023 16:55:46 +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 1qBIAI-0090Ia-1b for linux-arm-kernel@lists.infradead.org; Mon, 19 Jun 2023 16:55:43 +0000 Received: by mail-qk1-x734.google.com with SMTP id af79cd13be357-76244657caeso201520085a.0 for ; Mon, 19 Jun 2023 09:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1687193742; x=1689785742; 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; bh=VnEheSovvunB6I3AktXE1UaU+sD3f90l2AKOrWC4PB8=; b=CUYIrt5pJD8ocUg/UblZUpcTf2khtpPE1DC5HM5nErE3JTidL2E20EdWfHRu1PkbOC y232O6cENRxRS7/5A6k9h8AhnQvSlgS0RZHFFNZ8FjT9pwsfOovz1MhcEoeNQEZF7rCf R0IuIy6fKKqEE9PBoAfOUBcZEIFFEc8NQ4xNw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687193742; x=1689785742; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VnEheSovvunB6I3AktXE1UaU+sD3f90l2AKOrWC4PB8=; b=ND4T2XvmB/d51guZCevEoJ/L+W8PhHmyVuOvNaLPrlU+4/GsqlsrhP2DovUUC/Pb3w fUTTKulchk0SsnvVYKMsTQqVnyp6JkhaaLattYubu7JHQSeTTP3IrYtilqt0paHtcxyZ SrZbMe/XoiQ5+VeVcYnakwMUBs6E3sNiW5wiIYWriDv4eY3lE2gVQGBlfH8dp8xRRWMn V4nN5RrUI8ow9YphBbrQzSI0ZuPIcmLXSUArtDgongwbz1ql2kNLF9v+YxsWVYkuMzcr /wIEVBPA3Zi/CckE7eajvvVnUlo6JFbvTj3wifAVleHUVwc0ay98ooo4jRF/ZNNADLuP 5Ozw== X-Gm-Message-State: AC+VfDyzlGxLcY/PX0Yzyu4DHkGO0H02ETINmpV/Xdqix1gdCDzD0REW 5NSXctNKnQlrDmpe+nH+qAtLrQ== X-Google-Smtp-Source: ACHHUZ5Qw3FzCz7c6QxZnwFjU2k9SnWpAWmpnlxNMvOdh8/rhfndeuH/24DpZKyhnThxPMdIJSRO5w== X-Received: by 2002:a05:620a:8bc2:b0:762:5965:c41d with SMTP id qy2-20020a05620a8bc200b007625965c41dmr4094805qkn.28.1687193741729; Mon, 19 Jun 2023 09:55:41 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 09:55:41 -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 , Krzysztof Kozlowski , Maxime Coquelin , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v4 2/6] ARM: dts: stm32: add pin map for LTDC on stm32f7 Date: Mon, 19 Jun 2023 18:55:21 +0200 Message-Id: <20230619165525.1035243-3-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230619_095542_532336_B3E88650 X-CRM114-Status: GOOD ( 10.82 ) 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 Add pin configurations for using LTDC (LCD-tft Display Controller) on stm32f746-disco board. Signed-off-by: Dario Binacchi --- (no changes since v3) Changes in v3: - rename ltdc-pins-a-0 to ltdc-0. arch/arm/boot/dts/stm32f7-pinctrl.dtsi | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/stm32f7-pinctrl.dtsi b/arch/arm/boot/dts/stm32f7-pinctrl.dtsi index 9f65403295ca..36dad40dd0c7 100644 --- a/arch/arm/boot/dts/stm32f7-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32f7-pinctrl.dtsi @@ -365,6 +365,41 @@ pins2 { bias-pull-up; }; }; + + + ltdc_pins_a: ltdc-0 { + pins { + pinmux = , /* LCD_B0 */ + , /* LCD_B4 */ + , /* LCD_VSYNC */ + , /* LCD_HSYNC */ + , /* LCD_CLK */ + , /* LCD_R0 */ + , /* LCD_R1 */ + , /* LCD_R2 */ + , /* LCD_R3 */ + , /* LCD_R4 */ + , /* LCD_R5 */ + , /* LCD_R6 */ + , /* LCD_R7 */ + , /* LCD_G0 */ + , /* LCD_G1 */ + , /* LCD_G2 */ + , /* LCD_G3 */ + , /* LCD_G4 */ + , /* LCD_B1 */ + , /* LCD_B2 */ + , /* LCD_B3 */ + , /* LCD_G5 */ + , /* LCD_G6 */ + , /* LCD_G7 */ + , /* LCD_B5 */ + , /* LCD_B6 */ + , /* LCD_B7 */ + ; /* LCD_DE */ + slew-rate = <2>; + }; + }; }; }; }; From patchwork Mon Jun 19 16:55:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13284832 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 00191EB64DA for ; Mon, 19 Jun 2023 16:56:21 +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:References:In-Reply-To: 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: List-Owner; bh=Fy3IfJaXMQCLrL/taAbsFfFer0zIvyUFBmWBmg9yZjo=; b=jZqqeV2Nt6geGE 9zAf+sSkw0xEMqqgV7HD31Nx/Nt2cbbt1R5Wl99Zq8vvhWQyu96KaLRjJjUgGWXznAd1L4ChhxLpj yKE34LP61kXRoubqpEr6o6Nub9Kl4BYrBa6HdZbxEwn8fpWch8WWdDbAg5jgalbUtv9jbaUVysBLJ 4NelUoZd4n0+Ema5XwXs6cVYzwNxCSngy1rvKp0HFg7Nf0CFI0o255lVbs7fxmrjIyhTj8N8iyH1k pbgRaVkY4yifeor+qdpgR7OT7JDAIR74bMxnei/f6Zoa8fdF5kwkduJqb4PYXGcvWzZClkbf6jvP2 0VsqwccR4oFeBKKJn3bA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBIAY-0090QR-2t; Mon, 19 Jun 2023 16:55:58 +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 1qBIAM-0090K3-0S for linux-arm-kernel@lists.infradead.org; Mon, 19 Jun 2023 16:55:47 +0000 Received: by mail-qk1-x734.google.com with SMTP id af79cd13be357-76241c98586so282337685a.0 for ; Mon, 19 Jun 2023 09:55:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1687193745; x=1689785745; 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; bh=tlm5X0f1SJIUHEa+Ch7CRBAmlhS5LXsyaOP8GZ1/KKI=; b=SbYaNKhZPSx1sEjz/QOmKUpfVdd4KYPGpnFG5o2FjQoLIdAKa/JtEsZyqqQqKAnzk4 ZmKpBIt7MoAo9tgpvbeV2PRVwqZHASQIuz747g1ZEkSlH503cifT+6L+NLoaYUbMGItT lh1ITnNB5CHjf2eheHdqIKGta6wxVFcWREhxI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687193745; x=1689785745; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tlm5X0f1SJIUHEa+Ch7CRBAmlhS5LXsyaOP8GZ1/KKI=; b=IxryUMwcBQhT6XYA2c4IpMsnPwmESUPEoOpxGuh3zA40AFObnjkBdIdmQEGp0nX6x7 Cwok/Ym3a6NiEGdYyAyuvclwmZUgSiV+3VIzZQCU98wE+Vp2c0ZrmO0lm7DX3SB4puSC 8BLDXQcliWsewEtviZ7afQpjmYnXoOGs1B46mjvyVJAbefjbFZVjcYM1kAxQqQtq1HsJ kuS/W5MyzgKqcQRo0MPRYPEV+6KWWbONjAHRAtFYvhVHXtmDYw85etQn5SCidgHMiz9L Dq3rsOlZ/kBWmW09PSZAm4sU7JRjl5BCypjb52XySkXLwFKBlGPqj+3b8nZMMyCkyQqE d7aw== X-Gm-Message-State: AC+VfDw55c/ZrVcqfrR0WWrVq8PBkEJN/kDd70nffaRwVywbUPl55gfa HWI7KddnWCCzn0UaCauwwkgLWL23o/lVk79/zZs= X-Google-Smtp-Source: ACHHUZ5XtYO/z/qdMae1APmugjsBTfX/hOgFeCOsZeWBWZcBbnyjdbRxpFNWkSyPbqXvArT1y6dNMA== X-Received: by 2002:a05:620a:20c9:b0:763:a671:b983 with SMTP id f9-20020a05620a20c900b00763a671b983mr1285107qka.11.1687193745422; Mon, 19 Jun 2023 09:55:45 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 09:55:45 -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 , Krzysztof Kozlowski , Maxime Coquelin , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v4 3/6] ARM: dts: stm32: support display on stm32f746-disco board Date: Mon, 19 Jun 2023 18:55:22 +0200 Message-Id: <20230619165525.1035243-4-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230619_095546_180653_AF2C731C X-CRM114-Status: GOOD ( 10.30 ) 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 Add support to Rocktech RK043FN48H display on stm32f746-disco board. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/boot/dts/stm32f746-disco.dts | 51 +++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746-disco.dts b/arch/arm/boot/dts/stm32f746-disco.dts index c11616ed5fc6..cda423b6a874 100644 --- a/arch/arm/boot/dts/stm32f746-disco.dts +++ b/arch/arm/boot/dts/stm32f746-disco.dts @@ -60,10 +60,41 @@ memory@c0000000 { reg = <0xC0000000 0x800000>; }; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + linux,cma { + compatible = "shared-dma-pool"; + no-map; + size = <0x80000>; + linux,dma-default; + }; + }; + aliases { serial0 = &usart1; }; + backlight: backlight { + compatible = "gpio-backlight"; + gpios = <&gpiok 3 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; + + panel_rgb: panel-rgb { + compatible = "rocktech,rk043fn48h"; + backlight = <&backlight>; + enable-gpios = <&gpioi 12 GPIO_ACTIVE_HIGH>; + status = "okay"; + port { + panel_in_rgb: endpoint { + remote-endpoint = <<dc_out_rgb>; + }; + }; + }; + usbotg_hs_phy: usb-phy { #phy-cells = <0>; compatible = "usb-nop-xceiv"; @@ -99,6 +130,26 @@ &i2c1 { status = "okay"; }; +&dma1 { + status = "okay"; +}; + +&dma2 { + status = "okay"; +}; + +<dc { + pinctrl-0 = <<dc_pins_a>; + pinctrl-names = "default"; + status = "okay"; + + port { + ltdc_out_rgb: endpoint { + remote-endpoint = <&panel_in_rgb>; + }; + }; +}; + &sdio1 { status = "okay"; vmmc-supply = <&mmc_vcard>; From patchwork Mon Jun 19 16:55:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13284830 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 A0385EB64D9 for ; Mon, 19 Jun 2023 16:56:18 +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:References:In-Reply-To: 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: List-Owner; bh=lkOsSkM6U+JPDjPMRNooAuEdoeclbpF3sqXf9O6s1nc=; b=KaCrnxz2T96i4T ST0cIRofcxSrNjhmQCoy8R7lNMLJWbFswBuui32mDbTkpDp6xSWVLpOFS7uZI4rGtAo6JAKyIC8ZV 2G6UM8dDV0L8DcUz+HUFn5TISQaGo8hA6Mlp5B27vzt6+WORVLBM0fG/V4nnZ9wa2x4baULxNvH7k kNFh6U0jazJcJB9arVSL8J1TOgx5dsCO+0wDPL0v9zR04T7iG01Os74+Xwyjx1gGbgwHErpmRBhFQ 64DkAt0vlpXVWls7licTpRsKgfT5nVH4w1SSYury2yV5VUEstQx66vEbMtJBRuu2JL4d3t89OKVpC y1A+/EJO0gT+ERajtN/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBIAZ-0090Qs-1C; Mon, 19 Jun 2023 16:55:59 +0000 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBIAR-0090MR-19 for linux-arm-kernel@lists.infradead.org; Mon, 19 Jun 2023 16:55:52 +0000 Received: by mail-qk1-x72d.google.com with SMTP id af79cd13be357-76243a787a7so271354285a.2 for ; Mon, 19 Jun 2023 09:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1687193749; x=1689785749; 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; bh=HXhpNMq77ixD+XgN0GcYbuylNiGuY9CxnraNzjgz9ZY=; b=PouTpA+2eidqrl2NfeWbcV1LWEd+x0sWxTYQqZBmR29e20+aBqMcRvmbdsZHxk/2Kq RlWwI7B6oc4NIV+fZrj9r54OOU1KWGPD93E/gAX81LmHhbzAz0pjOmQ9MyzQOqhaQ325 8/nMG/HMKeVZlzv/TM7cOrnvPqkTZAVZWRW5c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687193749; x=1689785749; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HXhpNMq77ixD+XgN0GcYbuylNiGuY9CxnraNzjgz9ZY=; b=Kxc0CAMfw0iQCIgAd52BVT68D7C22gHy9hQxPrcgfo1bQH0gkguZfnvPpVeIfHHot5 PqRvRvTTr2aqr8aMVSQR/ALpJZagk5spF1H8dyMxN8zVVOSwoSmH+W/S1+HAS+kJIZ0A F6XDt9b1rnrfqX7tFqaRqNhpDnyH4NBzwRwDLUAukKs++r98CFydFkO+cpAwsob0A+LC lpeSdTMxgv6LTwRwc2sBsPSVJHLMOsxgnUS6Y/bCJnZvbLMhM6q+e/15JMGJsftA/i4Z DqJ73I4ViHL+43gnsIBmRFf8LxDVKlXNmbxqSBzJvDLWCVlRYgqgyU1MMmrDtkYAXXKC aupw== X-Gm-Message-State: AC+VfDxS8osk+om3t3vT5GtfUGAugSNG3glvFBP+tirE0VRooSwWVCic gS5RH+boMmj0X5W7Wnn3ywihUg== X-Google-Smtp-Source: ACHHUZ6AP48wP9d8GIHmSV3eR8tx7WohjgeTcIWdUh34I5pP/yusbF5PhwUo6SmU/aUFLMfgqX8keg== X-Received: by 2002:a05:620a:cd2:b0:762:52a1:4687 with SMTP id b18-20020a05620a0cd200b0076252a14687mr4387025qkj.22.1687193749648; Mon, 19 Jun 2023 09:55:49 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 09:55:49 -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 4/6] dt-bindings: display: stm32-ltdc: add optional st,fb-bpp property Date: Mon, 19 Jun 2023 18:55:23 +0200 Message-Id: <20230619165525.1035243-5-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230619_095551_396770_8DADAD24 X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. 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 Boards that use the STM32F{4,7} series have limited amounts of RAM. The added property allows to size, within certain limits, the memory footprint required by the framebuffer. Signed-off-by: Dario Binacchi --- (no changes since v1) .../devicetree/bindings/display/st,stm32-ltdc.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml b/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml index d6ea4d62a2cf..1c3a3653579f 100644 --- a/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml +++ b/Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml @@ -42,6 +42,12 @@ properties: - for internal dpi input of the MIPI DSI host controller. Note: These 2 endpoints cannot be activated simultaneously. + st,fb-bpp: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + bit depth of framebuffer (8, 16 or 32) + maxItems: 1 + required: - compatible - reg From patchwork Mon Jun 19 16:55:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13284831 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 9927AEB64DB for ; Mon, 19 Jun 2023 16:56:20 +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:References:In-Reply-To: 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: List-Owner; bh=lyfYalSuO5CvMwdax39hbsWVa7cLONTIaIIvT3xJa2M=; b=yS6yAl2hovTf8J a1E6tQJnFSfzF9E6yKjIKOsfbDf0Jpwx3egvEjuDZuQR5nnDpRpYrbSkwgS9fHf+FX81XTEM8YRYR xYjDoPSLda3pfYeI6Fj5p4pTkKlXxeW5Sz77aAEH3IUJemqOguqbwFbcLrdekD++B3S8o6YnEO8iW y78Qd0TT5I/uYtkz7D9C4V7ybUrDCtjNhvayT7+pPPsueRrC2toXxtx8WdI47nD2M7NJQbir9osRd 9j+6Y0YV794J0zDLQHtF62q/TJwrL7SiLRDk9Q/TVCOMBtH+cwXMrOXpWoP1v0euQh75jOOufGMaQ 6eJw4o/TY2TLqASRJnWw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBIAZ-0090RK-2q; Mon, 19 Jun 2023 16:55:59 +0000 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBIAV-0090OY-1H for linux-arm-kernel@lists.infradead.org; Mon, 19 Jun 2023 16:55:56 +0000 Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-763a2e46992so65374685a.0 for ; Mon, 19 Jun 2023 09:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1687193753; x=1689785753; 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; bh=02ex9dynad7/XUY+dlyZ9Dy+Ty8yFfkoa+wDDDcORT4=; b=YzxNxTebOFYlTFL51X7nJT30TNgU4PiJI3oAXNKpaje/NRKO2icJqflPfMBSAZJ6i3 OHWZQODNE+AQthkwQvh6wifkeLMPNYy6DrCMxCsLI9g9I4gj5Z2cjBa9q2Z+WKRFjS/K kPKskESPfzqTnpr7Z2Q1nogXg/gayNFcIC1xs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687193753; x=1689785753; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=02ex9dynad7/XUY+dlyZ9Dy+Ty8yFfkoa+wDDDcORT4=; b=aNzpwKxnwM/CMOwPK9mbdLQh8BhH8T0Um5ZW4lUqa8NQJY3FuPqTplCHhQPOWRW8ec FNA/kpr9TLL4XiWyXOU1Msts2boGqW0t5V9UKzkxl+WnIKNTBIfkZzNBIawsIIjfSqPp zmz9yzeas4lvpJdHXu7g+hEdPTWuWe5kYO61Os3a3JqiPjGJi4sCiya1t4y0a3RLjDql iGXQMIts7s5DSfc5c5a3KO4DxGcG892p8lyMfJaZHGjkNdjK0L7lv/pClJGYDLT7fYuX r9Kp4i2iuHYbnFyQ22jcb5Sxg4VzOAKtysuJg9qpAPYRVeHn4+9x0H/N/lTdjmSb4R/1 U3LA== X-Gm-Message-State: AC+VfDyTnJmwFNPkRVmPCF77zLwae6yGGH15rMZcHpa5f+rklOXpNo33 MXZ6bz9z3b+K+JCW2uQHCKX5fw== X-Google-Smtp-Source: ACHHUZ6VMOy+ibhPH27kT6T6fKcdSaiSXMS43r0itplOStAT+QipHlyzI7gsHs5ngqrDqP1JB9G8KA== X-Received: by 2002:a05:620a:6582:b0:763:a1a9:3fb7 with SMTP id qd2-20020a05620a658200b00763a1a93fb7mr1421965qkn.26.1687193753766; Mon, 19 Jun 2023 09:55:53 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 09:55:53 -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 , Krzysztof Kozlowski , Maxime Coquelin , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v4 5/6] ARM: dts: stm32: set framebuffer bit depth on stm32f746-disco Date: Mon, 19 Jun 2023 18:55:24 +0200 Message-Id: <20230619165525.1035243-6-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230619_095555_429680_B1FD1EFF X-CRM114-Status: UNSURE ( 9.61 ) X-CRM114-Notice: Please train this message. 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 board uses a limited amounts of RAM. The added property halves the memory footprint required by the framebuffer. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/boot/dts/stm32f746-disco.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stm32f746-disco.dts b/arch/arm/boot/dts/stm32f746-disco.dts index cda423b6a874..36612b4c2504 100644 --- a/arch/arm/boot/dts/stm32f746-disco.dts +++ b/arch/arm/boot/dts/stm32f746-disco.dts @@ -142,6 +142,7 @@ <dc { pinctrl-0 = <<dc_pins_a>; pinctrl-names = "default"; status = "okay"; + st,fb-bpp = <8>; port { ltdc_out_rgb: endpoint { From patchwork Mon Jun 19 16:55:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13284833 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 B8B22EB64DA for ; Mon, 19 Jun 2023 16:56:39 +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:References:In-Reply-To: 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: List-Owner; bh=dO5pqlWjDNcMVLa94QY4DYffVMTb9X274dv6dLysfO4=; b=xJjnHNA/6a9hqP ntM9ENNttkudT+Nm+IXUxNunU6t9f+jsXI5lezrDR8QQ0NSntmC//HhJoGuuvw4tdyXst8GxhmJuI fQdYtzHgWv0HgZ7OuNXC7wVpvYkMJekRwxU4J/riB3630aHE7uF9qzBdFMcW6CAlgbQCZJuGz1xGX sVfUZawdSPJ84DI25GtRV0M6xyOLePtb61YBZR/msMAJ8YZh7WCq5LzeBBE2Pza2B4AqD5B9EiBoY uIpeiAAucEqfaB7CJo8HRAAJmsx+iQbf8XguAD9GETb/lSAX9zsOqrC0KAgW72LFWSb+1C/ZJ6fa8 QjK5eZai9IO/QLsu67pQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBIAq-0090aG-3C; Mon, 19 Jun 2023 16:56:17 +0000 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBIAa-0090Q4-2K for linux-arm-kernel@lists.infradead.org; Mon, 19 Jun 2023 16:56:02 +0000 Received: by mail-qk1-x735.google.com with SMTP id af79cd13be357-76242a24e3aso187775885a.1 for ; Mon, 19 Jun 2023 09:55:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1687193757; x=1689785757; 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; bh=KnZNU/I8hVx/txQg+gZcbNdILNkL1d9QJiWI/0DW9wI=; b=FZytthrbCYDv3RZOtaTdlEZCVgoapIc+1yj309YHwRqE+CagPIrZRG0F4niNuuyc3M wLe5zF+7iiwSyXRnaT6Y7CPeQqeymyE9pCTfaXwRIDGwIf5wx1u+z2L4eWJQ3cpboG1I Ho3OM31KAsV2ZJtI2AE5AiRcYIozPpNICyWts= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687193757; x=1689785757; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KnZNU/I8hVx/txQg+gZcbNdILNkL1d9QJiWI/0DW9wI=; b=dOAF8S+BU3ZYQERkOZrLbOmb9gzxduMyz5NlUV0xqqmlqVPdznfr8vvlCbt6ObO82A avg1acKDgNRrt7UrE74JDQbLmrmnDAAO719FAcpxrH2cjdCWH+Df44CHi7CN6DsgtElx IkiRj2Ex64XTb0aPwU4WK2L2lJKzRx7lMldHlwtirGKvokVL78LeCJFSWBWQ2zJJiNoa nRNzGFXnVrEy0Nbi7gvMxOevjtM02nsbW+avzsuyc4LR9H6WkJy0c8wiMieyq+7x2Mf4 8cDnhOiv/Vm8Pp4UJycQRqJyOp1jia4qLAHYDtHj4nDxRg8a+zlCXmMEnEij+DOM1Eao 5nrg== X-Gm-Message-State: AC+VfDxeJdDdb3hqzVO3yjZGJQG7qli7mt0MXM89LCP3tsvSgFKQ35k3 bvCXMAXx1+1IPvn1ShSVzzo24g== X-Google-Smtp-Source: ACHHUZ4seV5vQMD1B3+dqGuDxNBwJBs85xEpHLWIbXaIhwEvDfAjEJU/sT7OAfJwkc2qH0vO0JafgQ== 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 To: linux-kernel@vger.kernel.org Cc: Philippe Cornu , Raphael Gallais-Pou , Amarula patchwork , michael@amarulasolutions.com, Dario Binacchi , Alexandre Torgue , Daniel Vetter , David Airlie , Maxime Coquelin , Yannick Fertre , 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230619_095600_761470_74647DB6 X-CRM114-Status: GOOD ( 14.56 ) 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 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 --- 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(-) 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;