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: 110116 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3134739vqr; Mon, 19 Jun 2023 09:59:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4n7xO7a/ITwRYBcuVrCesQmcnq7/F41qsMp4JDYMl/xvGtfQRN56TDlaswApTc1P+CeG1F X-Received: by 2002:a05:6a00:1a4e:b0:653:a90e:b63e with SMTP id h14-20020a056a001a4e00b00653a90eb63emr7065300pfv.21.1687193983993; Mon, 19 Jun 2023 09:59:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687193983; cv=none; d=google.com; s=arc-20160816; b=aksbf9eliT9aEHjQjnQUQWx0c52iHt8tP6NkvbE3BjJI41FOhZg6CKMgAHIICCYPlc UKT97cknvMgT3ueyS5uwDQZySaRoU9bh9bq7oj8X5kwFn4uq1j3fatjBO5sVTJjWYNn8 SWAWeVTmjOOTlg9laQNIqRNG5Hz5RMXa/TcbUbG5SuvB5blibUqg3enuD17bx+Rhq2Fw 25uTfhDzwoqAFLh62gf79PG7uzQsP0QsvXFdERbF8472uuNwdfokw+pbUU8P34EhrLwt mdl4bM471Fs4x5mmzAqxVSWsdWxS3rdiSidugZs3RXQaoVwlAlZ9eDe+VuTke+KoFTXj PmDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2jBqOeBntw2+ThpWf4KE8BMuMRq2HYj3RR0u0oHiddc=; b=v61qa4r1Zey/7xJNwPPabU6P3xq23n5edaj1gqQ0ZFCDZJeYpXOQdS3vttDJdeU5ve LkucuRLUu0AhaOu1jF9jK862efOOJcmo5qGdC8ttmMwIHk4VCIOIi6sBk8JJbJfr7OAu QuZtWO7pUSYTHG511mpjhht+FKvc6KkNAibb/BExeZ/fyIlSQ9fym1yNhSt3lR53udq8 ALjrOn8lYh4HFH4wXhp67T8d76RD0m5mb/9nw6CjxrC8ZevWd96waADLq7Sff8q9jrNc PK5IEZglHUtohd0Z0CyY/EBInMLcTscLYJ69ggYxxpGQILCyd2XJvY4BsNqQwBjmBU0P NpWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fbehQPIE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k5-20020aa79985000000b00666e788d8fcsi1403312pfh.57.2023.06.19.09.59.24; Mon, 19 Jun 2023 09:59:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fbehQPIE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230000AbjFSQzo (ORCPT + 99 others); Mon, 19 Jun 2023 12:55:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229942AbjFSQzk (ORCPT ); Mon, 19 Jun 2023 12:55:40 -0400 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D407127 for ; Mon, 19 Jun 2023 09:55:39 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id af79cd13be357-76257c11363so191404085a.3 for ; Mon, 19 Jun 2023 09:55:39 -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=SfNbNDfdVV977F2pPQUNoW6w6L9FxPu+fUDvq1uVvW+ocRb6lNzuzTzOeJx9Y1Ya6g r2f+GGVF/PN7Hq/zXo5ZxIuW11zwxiZ/0WfEA5Qh7NPiSEhr7cZdoYFv5HKQ4OUQEvGP fTkcTJDHSLYcJsV+IGiHrL3gAvDxeelXsZqSRRytn5taRPlalUzfcYRchz3Yp6rm+aB1 gmTQZ6rQHQEi7FO7lunkQPSMdW28nVJJmF4Li3BT5tU98IV8ks7Rjd/Qup9QlGr15JHx SuvRs3rU2WObM2/qZmw2Q9bip31PNYZWNaXydjbKg+ALNWjvzBhHsa2R2PR7VlHWKWGO +nAQ== X-Gm-Message-State: AC+VfDxAo6hayGmnXL4Bd6ng/sXj1DvGGCEaAYjPYA64um5UUv0yWe/O QFeswfLP39J8P3nWYrVBi5cGT+mItL3SIODps44= 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769151118590112124?= X-GMAIL-MSGID: =?utf-8?q?1769151118590112124?= 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: 110119 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3137840vqr; Mon, 19 Jun 2023 10:03:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6GJVTmfqMi/9/OPlBtnPOnAzSrC+MwpUYYwZxk2bKG2jqJzPmOAKNDEWOmm2TWtJoHYRnE X-Received: by 2002:a05:6a20:7f99:b0:10b:4539:fa0a with SMTP id d25-20020a056a207f9900b0010b4539fa0amr14137954pzj.1.1687194202180; Mon, 19 Jun 2023 10:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687194202; cv=none; d=google.com; s=arc-20160816; b=ZbhZfHA1IDJPbYnQob2eb7y2ahH0dQX+6jw8O9zRFTLXshxQw6wqYzWxgLAFs6iZel wZZQ8eKeXOCJ73IdfgHr3y9kfuPc3F45QgJpSo0abjUFGJY6ghJaHuMhPVHNTWURLi6Z 1SEz1hjWbr89GuZG7IxLQ4J3Tt2TPOtsxbgajAFOLMRh4aWe4bpUIRjNsyYL2874tPMt ZfcE6MMRyWY5SMbGUAOrsXZP4zpDmiCerxaEJzh/xOxkuih68heNkU7K3DYw9EvHGh5i LiVYMF9/nce2mlfvWI+Xj2nwBl7t1D+Zk73zzM6oV+7UaBho/VcNGZ5XEastywT0VRqF 7AKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VnEheSovvunB6I3AktXE1UaU+sD3f90l2AKOrWC4PB8=; b=XbLsSXSf6kch2sjyk+LfGZHXezudqc1RqfMw870u8PRBl69GDqSCfdawvfpon3b91S QVIeRyW9KdZLXjOgK3Mygi1tqhfUazD4qNTjOvwaAnKv9Y5y97GVcmp64k6YCaPvjlqA pl5n91F9Q+EPEBOo0rsqHLr8UtDSzsa/T2S90EbDzFef6SL3kxFGLwl7Uc0O392Ysub7 NXi1Ft/ajuoDZJ05xb7RzE0RMtD0b/k5zLU3ODt6VHIzEfIzOo1WDHk0DGnZ+mAP206E 38wj/J/9h221HuxVRtrg+WMNUlBTJM/j9xY7eUf3kLnlXNP5FTkjrMTBUgN4XNunGd6V blkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CUYIrt5p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y26-20020a63b51a000000b00553867efc1bsi6463871pge.636.2023.06.19.10.03.08; Mon, 19 Jun 2023 10:03:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CUYIrt5p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231129AbjFSQzr (ORCPT + 99 others); Mon, 19 Jun 2023 12:55:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230253AbjFSQzo (ORCPT ); Mon, 19 Jun 2023 12:55:44 -0400 Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA0239E for ; Mon, 19 Jun 2023 09:55:42 -0700 (PDT) Received: by mail-qk1-x731.google.com with SMTP id af79cd13be357-7639688c2c7so133907285a.3 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=eIkqgr/7JFUCHRMlqy3qoXCe/lRnO6aaTnmYgxdY8UfoaFr3x5gwsFpCqCtLKn5arD PrCPqyOoUquY+G5j0KS9Mq6oLfC9/fwCLYxO33s0y/R+s06CQf09XBE5a1z3U6zBzHSv 4wmAkN7iPT45tAOw5oyF6G/hAH54PY2N85+ALTLMvU7UdzqfPY3kKIUTBZgl8v8qx1g9 sSt9ws4c473Wtc0agO4GpFcBtjZTNhX/IKhoDTCOgkMHyGpGNHnJ2U7JQSgmGlr0Fz3v hOHVBUqqWzIneHHvS5Q/MBl9b7UpxyDUw+QxBZfOq9oSZUu6E0PUxb2C8h/qEJPcB9Od YyOg== X-Gm-Message-State: AC+VfDxJgtPsKQsn65pqi5bBdpvUqclVn3b2/jK1xrXNTyq8L2XzDf6+ waqABB5tA4U4tSWLxQcCdhOcnqGa/vs1ds6XoHA= 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769151348172392697?= X-GMAIL-MSGID: =?utf-8?q?1769151348172392697?= 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: 110118 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3137798vqr; Mon, 19 Jun 2023 10:03:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ocCUazLaWRccovHFhcndknHIcuvm1ciYsyi5cQGhG8BfytcqYlmMtMbRld9BJaOP14cAV X-Received: by 2002:a05:6a00:1152:b0:62d:8376:3712 with SMTP id b18-20020a056a00115200b0062d83763712mr7032607pfm.28.1687194198467; Mon, 19 Jun 2023 10:03:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687194198; cv=none; d=google.com; s=arc-20160816; b=q7o9l4J7PdpWvs5BluE/c49LMZK1IKs8snqVkyAF695FsRooxCs7psMHWJr5m1p+j8 UJf7R7ps4lvaM9Jwou+jYWRSTbqALF+0Y7izIV7NIeZsaDWfoH6BqPC15T4Egl3HcUwI u+8S2eE28g1nHGHEnc7n0W66pNDuRJP40tFY5z/7bIwCRyOGEOxXS+OCK1GvttG8eFCO TLMLCGaa7k6xKik06UD5GAbjy0IQdnFNp3KibsdxJ+O7Wl9yW/FbqrKCkW68I0gTSMzA zFbiqhsFFFsEgZVt/Q8tp+m4eV8ZwV7m4WmWbyN1Hl+UKlYbcfQV4xS4s3bpmtMByOca 8e4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tlm5X0f1SJIUHEa+Ch7CRBAmlhS5LXsyaOP8GZ1/KKI=; b=y57w8/QCs7W33z+v4S14EIjxTs9oZgNwb2ZS6JBwUQvYBGaJEFwy4LiOyzX2a+rSbh btKGVM86yGmTvTxweT83Wc2GSg/cN06Ldz57YdYlRUNVNemdwEQSi1F4LQgdAnZkWTii 1kTmoht89tgdd8vBD2vZIaAwvEw+QjaxoCQhLaQzo+GdMG3z//oxQ6SDrHRx79wSUVGO 0d4Bfp7jOybE9TnkqD6sZPp4awKDUjGkWsRZPV3xw0i91+Dz1+UgWG9CAfo8Ubu8SuI5 oRjasd2UJrrvZLWsolSsV+SsiVQ2sCCtY2pVK86G1OjJhWYX2nLk49aFpjslUUwtCkvs 3TBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SbYaNKhZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l2-20020a633e02000000b00553b512d1f0si3376786pga.433.2023.06.19.10.03.04; Mon, 19 Jun 2023 10:03:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SbYaNKhZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230325AbjFSQz5 (ORCPT + 99 others); Mon, 19 Jun 2023 12:55:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbjFSQzy (ORCPT ); Mon, 19 Jun 2023 12:55:54 -0400 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7244FE79 for ; Mon, 19 Jun 2023 09:55:46 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id af79cd13be357-763a2e39b88so63212485a.1 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=AclWNavpV05mSdWzDe1iBEBSFP6W9B6ct6QTA+N3qJyAm5Z+qr3rhp+ETCzDsoR1ti F8AUQfm1zQ2OQRJHL1aw2Ycxwj7lS11b4n8D+YIESclw9ZOnLuWQzgQFhtdwhAxuLgGj 1Ms2EprQuaxpZcm/4AweVI9zYWy2G3H55Ecbf+48R0TnuA9G6X87hJ6CvVF0Sftij754 v0ToBtfRiVpMJJqQMdIFinckFfbErzAV2MgG+v/TgFxdNkdjfyrSbjk79MTYCMO0iiou tHFlFHlCKFfQeNQ11F+NXzjq4PLM67CP/dU/J76TmYsnSQUyyIb/DfWmMhjxW8aemL+d p1Jg== X-Gm-Message-State: AC+VfDwHOvYk6rEpe28JAi+6Wxue5+ctfOunBok2IPAclvyoRtV0baFx Kld4++2EwVIx9xZiZ3IMqod/VERZ2oaztAeoZY0= 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769151343687562294?= X-GMAIL-MSGID: =?utf-8?q?1769151343687562294?= 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: 110127 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3146814vqr; Mon, 19 Jun 2023 10:17:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6LUCCTg3N9ljaM1aAoHeraKvLfGYsFqAjlZ3e3ZlxLdjqdsr6+nmXre1AkTl9mtYr2ROnX X-Received: by 2002:a17:90a:55c7:b0:25b:b88b:bd41 with SMTP id o7-20020a17090a55c700b0025bb88bbd41mr5395474pjm.43.1687195037648; Mon, 19 Jun 2023 10:17:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687195037; cv=none; d=google.com; s=arc-20160816; b=WiMCYAfOB7QGENcVN6S5N5Ki8X9ZLEN9TA+eUTYuBE7faDLyQZqWJikiaoozEY3aRi /g3TWhE6Z0sK74senk2B7vUQ5J6gyraVfKpxDba1nW7Hadi2yztvj9CcIpoeOQzO4JFw vINElFYgSIhlfOtIGa09QzxcUR9KySQZQxtMCl9lgoDQuSlMMvNCA0xtv+N1EdowKr2l fqKe3dHPXn2fhUaM78i0gle0X6fDU1Oy/RuqD02ccX9ISXdOL2VGGmJ7PBrHXLK/h0RI h+R9r4cfthbjqBdm18el2AjwfcUHrVXK9oDBlzIJSVc5Ce5UjwiXTKtoPL6oGNNN8ece YnmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HXhpNMq77ixD+XgN0GcYbuylNiGuY9CxnraNzjgz9ZY=; b=E//76fCMyuphE3IhyEUuLqf6fHngi23CfvY6re4hBEqIEglCSWlaQhosergejJLvdn FKu/f9De4b5kkZKpGt0fjXnKl/AdjKfS7UwW8S3PP5bFJtAR5Q68YYkuNm2CrnlUOtjJ Feqntv+x07lsFdezmXhZK53rNU43si72K+O54oH5hL5QyMMvuNlQ7lUO/5HDJcG9DBt2 xe0A91y8egADDEpRv/UZs2GTM625A1vDCbksgORc2f5wblm4Hgg4RZvLQj5oreKgs+Sf XzLOJy5UCwhxWxspzozWFFKmGoQb6nKqaJ1vXLRJZjN0bNBGdFAw8BetQaLST9BYYs2/ 7oLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PouTpA+2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w26-20020a637b1a000000b00543a6ce8c34si6866057pgc.463.2023.06.19.10.17.04; Mon, 19 Jun 2023 10:17:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PouTpA+2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231466AbjFSQ4B (ORCPT + 99 others); Mon, 19 Jun 2023 12:56:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230147AbjFSQz4 (ORCPT ); Mon, 19 Jun 2023 12:55:56 -0400 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB2A710D9 for ; Mon, 19 Jun 2023 09:55:50 -0700 (PDT) Received: by mail-qk1-x72e.google.com with SMTP id af79cd13be357-76241c98586so282347585a.0 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=Pynv83PSAsvhBVJOa0G2MTw1aU/7KB8mPlBzMPgAMVPS/Sy0N4RdTqhWRrmOvs0k3t uZbSjl6yoBmwOfgU6Ara5rnfaU4IpvAt4VaSKZCeKR6EywFMlIimJxvQ3V3ceomFTm/V MPtzRigopzWe138joSXBJXPv9xWM2s6lDGCIpSxAsJK+ei0us9wINQiYP5zW934mKM+p aa7E5pxwf6oHN5o5k043P5DRKw2teGW7jsvA4h4cGDhBalECUQuPDWUFCGhuDpgDZcLr qxQXnolsfx3Tz9FWmGHaCyOMu1Fc7k1dCzsMtb2uJu6XB4wE+OkIp7aQWezeoWf89Z63 d7pA== X-Gm-Message-State: AC+VfDwAyEIv+BNjcA+SLS9TzX9Ll+eiUQt3heGxuNGTeyvtZpwY7YNU k98TBu907oJ+lOR+k9jJBlMpf7QR1nz3E68TaP4= 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769152223778625435?= X-GMAIL-MSGID: =?utf-8?q?1769152223778625435?= 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: 110125 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3145915vqr; Mon, 19 Jun 2023 10:15:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7juitCI3EFbTG3a5eDUHD0Dv9Swxl/QW61/w1GmAuvgrkT++TPro4cSwHf9LowmuHcBiEs X-Received: by 2002:a05:6359:638f:b0:130:e596:7fa4 with SMTP id sg15-20020a056359638f00b00130e5967fa4mr1284647rwb.17.1687194941895; Mon, 19 Jun 2023 10:15:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687194941; cv=none; d=google.com; s=arc-20160816; b=y8VSx91ln9TPQAjvrYPZbDwKzcwmPoZ6eAM2wFoIlhkiQB3+6r2q8Wi7DqsM9PwAov FYXPw2zoaVvsYE1dKkw3c3gWhwqLF858BPOga2f7OMtfscV2riTiXMpcJBpN6M8TieU+ j9jUUCIAbdJV1PiSsGqz2Va7tknMwKoH7GgfcdYZ7sdEGgy1x9sfKTo6PmcsAO855rmV L8Xr785UWXplzKlVs1yxvavzPlFx/qYhkTDx1kAyl0O9AVa9hhAMjAfXrehEeWxKRnDm Tc9NoSFwDhvYkFj7ZaWBLH9dM1aiAfTuTUU2Qc6Ew07Ky2/K5MCxpSQq8vdWZC7Y0iHe r+Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=02ex9dynad7/XUY+dlyZ9Dy+Ty8yFfkoa+wDDDcORT4=; b=0lixp+6U/VtwakYpIvBqkiPT3WCPCDaE3dkNp6bZ5gnF975moRhoMvKDuyGt6xpHas hZCoFql5kNOvDs7LKLmAep1c1HGg3eyBD7GZ+sEbfNnJG6qjPL4jTH1Dqaxl4DV3vIZG iOsZ5YtcV1A78V6z9sO/BX5sHakCJAPhFtX4m2bHLjAl8900N34PWsw7ms/SLcxNOkyV c38xrLm8V4CoOKqTRQSOYd0oPb+o+hSXRflFhXb+IgczFvHAGS3h84XLAwjKGM88ktm5 aktGvef+BZ0zv8r3UvGcbBdayOMNVbE6INsv5lbQ4ydZ+TCIbDbSh12yl1grY4AB71+3 ak+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YzxNxTeb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a656687000000b00528d1d9c7b3si18036582pgw.732.2023.06.19.10.15.29; Mon, 19 Jun 2023 10:15:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YzxNxTeb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231513AbjFSQ4g (ORCPT + 99 others); Mon, 19 Jun 2023 12:56:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231820AbjFSQ4H (ORCPT ); Mon, 19 Jun 2023 12:56:07 -0400 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58456134 for ; Mon, 19 Jun 2023 09:55:55 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id af79cd13be357-763a2e46992so65374885a.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=Jr0ZjlI5QUJ5kDS0Rmmi39D0HLmVqztEr2+X6ek1C3E7mWUUiq3+Lv9S3KwBINDNGc 9IGeE/QOtUlQLyXV1fjToUBvjwQQh14fs9aGH/q8MnsKn89e8opJ3fSbMqFV9aQXccSE 1RaCnLFSeeeravIQVKW1dLQa/k+FPqGG0b7y1vTMRo8DMCA+afvnukHq0ElKLpa5SXpg gxalbKAZLEAS8XbUkakAF/op5s7PNq2JukpQS3DcRWvOU7mvIYfLdtaOPkEnfxDfMf4F JXjNnQCK5Q+oUz2l3H5Nn/O1ZC+qANKPkrwSQZUyx9K8rhbm/tCCpX+ZJ/DVbjNeevnO 7dgg== X-Gm-Message-State: AC+VfDyg2oC6Mu3kw8Cdn5LNwg44lm+CHJ++5dJDe7ScQGvQeNLjp/M9 zkc5VEDSpo2dxUY+QbJXj9KVbaSAJcEo57Yk+4c= 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769152123095056458?= X-GMAIL-MSGID: =?utf-8?q?1769152123095056458?= 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: 110120 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3138620vqr; Mon, 19 Jun 2023 10:04:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5+jlPyqCTn3ZNLHxwDClzv/ch3TWnm9BiklhFVsRcQ4h0wjXlLCp3/iAwzM5RQR3BOQgWQ X-Received: by 2002:aca:d0a:0:b0:3a0:30e8:f069 with SMTP id 10-20020aca0d0a000000b003a030e8f069mr1500001oin.30.1687194267592; Mon, 19 Jun 2023 10:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687194267; cv=none; d=google.com; s=arc-20160816; b=nThv49Vc4y11D9qRZG+kNcbV98vPlm6WSpPAkmtIHzyq0WrjsN0QhS/Efux/OpFkGI I6yGhodDobdaJ4JPC0+RxKEGt+UKnylgINeGnUFcxB/pok+lszujIECIKJqrA38c9xCd r174isQ7DQzAck+AiGWhUtFlZ+Y+iLCAlnfD8oXlIpcqG/2scxabGhruc/yTCuszHVBt 7O8Ic/xdGTxy9arZUpKxmhKUuCsOsfNxfcwTWabTX5KuMXJV1BTzzBuZhSUlm4cZSnMh jCHQ59SRHjXtaZiffVx9k+ZQYw5YNSvARep0HYgAZC256I20Oks9Eisu2B74gF6dKtGp /3gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence: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=EEjYEVJ8w4FMPAgS/gzpn7ZXj9YdS/MSCSgH0G1hRUPc8txr4rQrT815z7T/ZeJPmF ICnL80qGi7u9xFFVo9p0SYoU91Zz5ty5kMx5TvjHL/a0l5/OO8gjbfH8mWJ1yapakvos 8lS9MHDNpFiv6nH+dSD64ALLEjuoFw0zM14sQmDgYGtoaObAlgKFv6E5pbsfjS/RfMjw 8+HM9IzrKRbhuQMiKLLwL110SMcvNYdvk9NsXya5uOwE0SBeuSQNZYGa3zbS3RChyk2n rMFCFhzjwAePtpGFpo5gttMxnuZ+wlmqfw4hgmR37vAUZuaq8vP6OwysMFbYmdteUHMW 03TQ== 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 linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm2-20020a17090afa0200b0025bafac22e9si123863pjb.157.2023.06.19.10.04.14; Mon, 19 Jun 2023 10:04:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FZytthrb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230077AbjFSQ4d (ORCPT + 99 others); Mon, 19 Jun 2023 12:56:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232047AbjFSQ4N (ORCPT ); Mon, 19 Jun 2023 12:56:13 -0400 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B8F9E6E for ; Mon, 19 Jun 2023 09:55:58 -0700 (PDT) Received: by mail-qk1-x72b.google.com with SMTP id af79cd13be357-763aba07271so2404385a.2 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=c70y0DCxCmFxNaEAk8Q/FjCfiN08hVAyI+MAzdI0i8V87rnzqYAl5w7+fBOrrcjkr7 p4or43blR+tfnVGqrBiuvz/xvvxktCEl6OanELXyvK+JkbUJyJUjjcH/4GplSV7fEXHv ZV4lR4ESwuGWFPeE8bpNjXQgJQU4Edhng8S9acO6IIK4xFAq7PxwDQfjy7Bvpmutgq7B fi0r/dD+8C5zO1EkTyOVAwHbMTILPHgVNjybuRW81POTXyfV4TOuEESzXsq80oPvexVM p0DDrOU0hcVRUpW52VUqGeKsTlMydQ4STgtbn4n7bGJqnaBC3Cru356PQI6mEajcwWm3 1mNw== X-Gm-Message-State: AC+VfDzcxNVL1mNJpH1Ut6oJfCV7G1Ix6aYr+aoJRI7o3dyke2JLA3ly dbVkHtbGr2QOu0lbWaaO94Cbucot2tfZOTmeaDw= 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769151416383992709?= X-GMAIL-MSGID: =?utf-8?q?1769151416383992709?= 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;