From patchwork Thu Jun 1 17:03:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2878 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3A4D63F076 for ; Thu, 1 Jun 2023 19:03:49 +0200 (CEST) Received: by mail-lj1-f199.google.com with SMTP id 38308e7fff4ca-2b168e97cdfsf9066781fa.2 for ; Thu, 01 Jun 2023 10:03:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685639028; cv=pass; d=google.com; s=arc-20160816; b=IpHYZPXwIYdcrVCmI4xPXnjvzsNVTrpgnbG3PIkinPit6mA9wLCG9artxl+7NbSNrc j9zjpA5ITLV5+qXqny3p9eBpgW/OLl/UUV/v4fpEyzrR1BMGevTzhV3ev0bjNwTWowxF fcsBo1GWLznr/zd4PE/ERvmyoWoCq124klhvFmXe7AMh8LrpgEDsW2GbmzaSeknkAkeC S9MmtQ/SMCqyxrwKSI3cwL5CpQ6Py5tnFql1ODFLBKZaSoYLGtyIQevQYS72B5qV/O5b iMo9ze7VMGOzjaDch+xazMVcRLKD3rIxWtALC6frf5GeCNnUtbxki4cauqXtt9qzTxGz vtpw== 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=agcA6E5UYdQ8XirRA5qCLpoQCpBQQBQU9NS/vIM6BRU=; b=j4Le8Mr7Ps0sVSxLXJPN7OZH/Nipk2b8XppaPfRmahc4v9+kvtWYr2jTN0zaDs0oRW sMa9UHrsmVPz2tBs35Ojdmyo44g5D7wFRNZ3N3JcgtlAfZa5O8xUcHxjXw7qdTjspsxV RJ+eVXvux8woP7kirSbtv8i15U9mZjMhgHrdt7fViCJYltyb1rtt90g/czXJ52BLqlwP Ss5lCcCkrSZ6oOKXgaB74fDJlTRYUilkZPzymgON+h2NUuC+prqFY5vezUWqgkUF9K6+ 6IaJJ+NUlK+F+R9fk1QY9ZpLLpkS+sr5sXA4Hio2tCDsCTKJMlRjuhMYX3rKoS1RkQwY fBLQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YEyE4Mpl; 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=1685639028; x=1688231028; 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=agcA6E5UYdQ8XirRA5qCLpoQCpBQQBQU9NS/vIM6BRU=; b=TiAnPuOcyVcq7Cgl9seMYGKDixRxiou1P5aPKaGvuqmmUfuqw2+ThUMuH0yntzDj1Z oa/mPIO1WasYB5mrgYT0ERFd0ZAtqSoctAaZHqmZaHP063HVZtsOD3d8NzYlYl8N3sS0 zaptecJZxo3eTM/aBMOhZOHANgyKNjoAVDUVE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685639028; x=1688231028; 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=agcA6E5UYdQ8XirRA5qCLpoQCpBQQBQU9NS/vIM6BRU=; b=Hs/5Q+51nQbu/O9S9vukPU1goJyDokAXPEx8ashyEdl9lz+N5oTy5oWumbW06j5oC6 DJiVhmJgkWn1rW1GAqUl3AHbmvpK+vRNYiHY9maTdA/zYvgZNdO7g2syiGmLP7LXXh0l Lv9ElKCHdjnHU4UYDU1vDg6wpkttPMFB+8JkbyDwloABFHqtnHBn9hWCQI0Ap4z79xEV X2X2dd549YY5gWPoB4xFfcGpMA2p8aA/PzIISI/4SnUOAt9Wq7rjZXm6tCzpajmhbXtU 2zFHm0i9CvCYJEwza2HkDsC4ZptZlaH5dX3Kz7aPgVR1/F/Q5bg4OqxRKPVuByBEn28/ vpeg== X-Gm-Message-State: AC+VfDxrS0kfYLL0soRWiDUkh3lMHWjYLq11BdoPBI9ov53F0QN3yOw9 1t7kk2EUqWpQsPtmdI1GsTrrdMxGI0u4HBQ4 X-Google-Smtp-Source: ACHHUZ48EKp0UJ9tCQeaFmrJIJwFp8jD14Em1d/F3S3K/NxEyLiejAuN8qCWyyWyC4hFlW3eeZheNQ== X-Received: by 2002:a2e:7c01:0:b0:2ad:9c36:d4aa with SMTP id x1-20020a2e7c01000000b002ad9c36d4aamr63830ljc.17.1685639028377; Thu, 01 Jun 2023 10:03:48 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:651c:512:b0:2ad:a1e5:c894 with SMTP id o18-20020a05651c051200b002ada1e5c894ls116076ljp.1.-pod-prod-06-eu; Thu, 01 Jun 2023 10:03:47 -0700 (PDT) X-Received: by 2002:a05:651c:101:b0:2ad:8380:770d with SMTP id a1-20020a05651c010100b002ad8380770dmr56650ljb.21.1685639026566; Thu, 01 Jun 2023 10:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685639026; cv=none; d=google.com; s=arc-20160816; b=dBougTGCFmPPfpzAYaG7MV41JiZ8ACbHVTo99THRU2pBAuy+xDmsL+RcNjmmT/BuzC hWwMxAtOv0PbebrmETq2lIIPUJE8MKurryRRNe+NPoT6I0eaB1/tc/IAUCU5nupgMTB8 /QJV9HZerS3mPLHIwz+wJiNK+e+6uA9N1vRX+eXPe9kr+PNSQwNK2rUbfz3VEgWInANn xgts6cjyQ6TAjAU582ZOi0RB2PmEYqu2i7UPjZTcAlgrhf0U5bChedCNq4uqUw3E2Vct ct/6lKvY8MdCa4OEqY0nNNj9vBMSUsq57hPxg0hysiHycylfT2jW8xrfk5UFDW9LztAN eenA== 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=AYXAD9NgGprUIQkhXdsDo3LP+5BIf2ORjzEhEoh2Q0k=; b=WiU2DPnUMVCZjtsUmyDy1LU+IrQrx8tT8eFBKqKmbvR5zxuqkqvlL4qjcsSC3lrQrl eNm3XeTIgqZrRCEctjIO1hd1BgvjAIJxyZ/KkY8MsoLMbftk5vjrMgvGeDTzxw2tHF9b fWble8gqPS5RZXWnSRJjoPrG0SBAnSrQxaj2iT/0Pu2GPK2tPvPIbu2Xsjfu0hqCjEfk ic9UYonKSF4uHzQzsCPRzlv4xgqdyp9NhXjlCnW/x8+QkwxKYiDAOmxaU78h7evdSyz1 0Tf7x9hpkIlz364Qa+hvfk5wPmf/FyLf/FmNP177sKqSs7VoEvpHz6GBdHKdtPM7T7Jr k7Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YEyE4Mpl; 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 g23-20020a2ea4b7000000b002a8d01c3007sor2248753ljm.3.2023.06.01.10.03.46 for (Google Transport Security); Thu, 01 Jun 2023 10:03:46 -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:a2e:8eca:0:b0:2b0:5a04:a5b6 with SMTP id e10-20020a2e8eca000000b002b05a04a5b6mr69305ljl.8.1685639026117; Thu, 01 Jun 2023 10:03:46 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-248-31-20.retail.telecomitalia.it. [95.248.31.20]) by smtp.gmail.com with ESMTPSA id bh25-20020a170906a0d900b0096165b2703asm10658522ejb.110.2023.06.01.10.03.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 10:03:45 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: 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 1/6] ARM: dts: stm32: add ltdc support on stm32f746 MCU Date: Thu, 1 Jun 2023 19:03:15 +0200 Message-Id: <20230601170320.2845218-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230601170320.2845218-1-dario.binacchi@amarulasolutions.com> References: <20230601170320.2845218-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=YEyE4Mpl; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add LTDC (Lcd-tft Display Controller) support. Signed-off-by: Dario Binacchi --- 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 Thu Jun 1 17:03:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2879 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A510B3F076 for ; Thu, 1 Jun 2023 19:03:50 +0200 (CEST) Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2af1589c75asf9668071fa.2 for ; Thu, 01 Jun 2023 10:03:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685639030; cv=pass; d=google.com; s=arc-20160816; b=JUZQt9/p5mzackb9hKXjbzBf/odO7K0XbBOohjyATsQo04ejgOAlTgAuyPHstndGyh KVIoI0Cio4/MEAl7Y5zt9a4aZIBOx5tEADiVWqRQf8cXiAYp7F4GdtZIae4oKPbDC3zp oNDAv5+cnn4paaOt/vs5dbjqqDO1o42JeHD56iZLWTg1PFvrVi1xywzLxcaHOzHYA2iD hL/OyShgjMTySafl3OSdOLlABBTjVUUxkg3X3jQEHsxJg4ppdaCD5ZDtA1CMldWRgtMN AwXgNKx3qfaN5UemItwxAAhH+3TejgP4buUTdVoSqxsOEHabByQfI2d6cmj+R/MFXWOP lvQA== 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=hiUv8+5yv1X9p0fyksQ1ih2JPQLVzVeCZTVnlzJqWcQ=; b=zlucEjYhLtj3QYJvx1MFueVeQLwdHnifsUxh0RpI4cMDNjrs3+v0JngfOL/ufFsEme LyybFCHs20LfoymPlee7UZ+sOrlXzb41K5vFUajtxUxl0/OByLsRWzKL93zNlBUrFSQn t2tGGoFv7X8WpvCUMPAIm920+n0eoRV88PGWcmAzycL7tV5t9rKlWR5Jr43W/DnNlAYd iMveQQbTyFc3u7a0LOa/k7u/SasudmBPboyrSLpCfnYZ+9HUtnv43//eWQ/XqE0ZsaW6 IKiXPIUii5ufkGa6p0+VSlhtIcxxiRu6bsg7r0F+cGEre5eQPho8tZrD7CYVl039q5pu Y3WQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ONctjRxH; 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=1685639030; x=1688231030; 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=hiUv8+5yv1X9p0fyksQ1ih2JPQLVzVeCZTVnlzJqWcQ=; b=FbrcGQujUw2ejOpglaSKhGbn03s1MW1v2D5kFeRYqsrniRwItMyVrPFatfYQJUXIka WQ64AJH1vwIkshjh6V32zmcg/pYScZgpPUmnvyMBk+2qJfdyIwKAXjjixzPewHFEaxW3 S4daQ3ZNDY1IPEwzOgyU3o56sVdasHB8POviI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685639030; x=1688231030; 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=hiUv8+5yv1X9p0fyksQ1ih2JPQLVzVeCZTVnlzJqWcQ=; b=MiaWcX7RVUZnitB/kQA6eg86tudPxZMPyZ9XnRZUyOZWQaINKYYBT4jyKcEFqrqu2O QFzd+rab93oJLzrR2jgYVxv813+teM76EWCh+rPmK1DwlPo2OOYK5ZaT0x5xmiMmTIBI WofYImeRMTVqLJWOwAV2Lr3XcG6KTnoicCBHvFdY7Jg3AnN/x9r49sxbFf+ixCRl0Vth XJutJgfKIpfwYgTW56CmNPsBmCj8OQCb2TUiGXQpWwYTd62KfCqG34pretpAv8p2cC1k YjC4v8+O2oLEQDnVmhoDK8aih3yfR5DvlHoFpEWrFTXJyz0X8GU6v+V6NfoVLIXswfzo b18A== X-Gm-Message-State: AC+VfDwS/rga2zTAnwmnHenWLOlxVtAjq7v9/kfCmd2qcOQQH1I01FHB 7UdENwNrvqDVO+izg7iPrxDBH8Ph X-Google-Smtp-Source: ACHHUZ76BIYJqkhqy50hXOgvQLcwS6attpnaUg21bbkYNNl+W2aiR4hHD6LE5zW34mUpmZNIPeuH7A== X-Received: by 2002:a2e:b60e:0:b0:2aa:3cee:c174 with SMTP id r14-20020a2eb60e000000b002aa3ceec174mr67910ljn.13.1685639029833; Thu, 01 Jun 2023 10:03:49 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a2e:b892:0:b0:2af:3051:12ed with SMTP id r18-20020a2eb892000000b002af305112edls435864ljp.1.-pod-prod-01-eu; Thu, 01 Jun 2023 10:03:48 -0700 (PDT) X-Received: by 2002:a2e:988a:0:b0:2af:2b8c:3455 with SMTP id b10-20020a2e988a000000b002af2b8c3455mr45195ljj.32.1685639028166; Thu, 01 Jun 2023 10:03:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685639028; cv=none; d=google.com; s=arc-20160816; b=sE/NxMZ+OE314Lz6zj07QN8r5GMMeiaRgiHlsfF4JixbCBrQcCWJrQHze5mhkkv2Y0 BaCKd/fZEhqGrN495KNWqmxO4bk2sELU6F6wAx1eQVu3EynMB97R67lC4kxIeLRyZv64 SsaBrUnnjj6lrMIvF7cZiZyH/2UzepJD1m17lD4DZf5e6TUNKD/N60Owk4AOck3SFx61 GJvCEsLNxJJ85b1rxiWKqyTDGqJi/FRdVKAoGCeS4x0G8VpFPAJvj9gGVIi7JlujcUsr c9CufMb6zTUQcqzZl4VXYLVjzs/qE+angWfLY0HNUWhBt0sOHP44zmwAJ2DgCVGYhRzs Ubhw== 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=mcKcmUUCIxd110zie+CjXE9D2AXIydaNegCcV+6SNq0=; b=uV71Uq97QpKdZQ8IISaWB8QMl3Awyi0aTOj/00BIoMk+vboZI5K2quoJ6xe5n1dgbA GUm1sQDYY1kaJjjY0+aJvKcJdH52pGzt3rykfIB4nFInJe0D3SpiF2iU77cu0+TW08Ss 0ohx0IyuDZ6EIdKfrT4k0JZcSKEZhFykyRPw+psGRMTMgxnFebMiKRKV4R2qRGKYFfj+ gbid/yO0WuE70aSNOYJujAk1EEj+/bMSiYEgGe8jhPrYQ4UikLUvppzUjBo2urBaY5GA omW6kHZfaEyASWf9oHMFeJ46D4jMJ2Cw8wH/CmpL3T50opo1lNfb0ytEfIWo+PHV2Ot4 F6QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ONctjRxH; 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 vw7-20020a170907058700b009701a1562c5sor5602651ejb.2.2023.06.01.10.03.48 for (Google Transport Security); Thu, 01 Jun 2023 10:03:48 -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:a17:907:ea4:b0:94f:2852:1d2b with SMTP id ho36-20020a1709070ea400b0094f28521d2bmr9669112ejc.72.1685639027798; Thu, 01 Jun 2023 10:03:47 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-248-31-20.retail.telecomitalia.it. [95.248.31.20]) by smtp.gmail.com with ESMTPSA id bh25-20020a170906a0d900b0096165b2703asm10658522ejb.110.2023.06.01.10.03.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 10:03:47 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: 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 2/6] ARM: dts: stm32: add pin map for LTDC on stm32f7 Date: Thu, 1 Jun 2023 19:03:16 +0200 Message-Id: <20230601170320.2845218-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230601170320.2845218-1-dario.binacchi@amarulasolutions.com> References: <20230601170320.2845218-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=ONctjRxH; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add pin configurations for using LTDC (LCD-tft Display Controller) on stm32f746-disco board. Signed-off-by: Dario Binacchi --- 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..f3f90b9bcd61 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-pins-a-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 Thu Jun 1 17:03:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2880 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id EE54C3F076 for ; Thu, 1 Jun 2023 19:03:51 +0200 (CEST) Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2b05b5a8c19sf9735251fa.3 for ; Thu, 01 Jun 2023 10:03:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685639031; cv=pass; d=google.com; s=arc-20160816; b=AgJyZIqiOVUFqmrQVp5Amyi+7qbl8HPCsCGT8HVvDWFKzu5qBzgKBkjej0XqCa/CjN KDsYJ4xlwjgVuFIYl6QBkW7rWQwjIaTVF50k3ZVUQuMtsU9kvu3193eOD/8nci+SB3mT urSaApOq+tovnCcIoEuRKdES+E5+EHDvwTRa93fI+GzVJunb3gDkEKdaJmFsqpvArkZz ClL14jI9iVhaE2gHH9Wj5WYhloOxQiGitSuIL2zTUJDFBE8Hg0t93IVPNalXp+eGZEyd NiDjvx8kWnyyGzqQNJ3TJH3ZGuOctsCgW/+HsTyOk+0hYA7kkzjSA1sTxs+HMwMcMOyg I2vA== 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=qanmtYQDvJuB6VywBbWIg1uiu8yY0ofreKEQTpWhZD8=; b=Ndst/tPHbFdvo2pKW2eFJQgArbqpS25+zuu5gCNlvrRFK62fqpUmChBgpki2WtYieu 0QchPM49VW/k0EbBPZ4Ut42mvR5/3yEV0xEq9W9cU4gcP0mCvOHLKzX9XhiGN/mgbEf1 BZmzVoReR0xEUqNqMWN1WYMakcTP8Ll0sUC+thhCKvOvi9WRvBhTk3Vx7Xh5biH5dTEY U/fPKuqfPjnn2TepvUvtHbq0nCGd+c99JEFy5xugWgkDsdv9pw+KIibwN8TnaDsmelk/ JqXXUkqNiGHFwYjGdv00uD0J3CfYejsOt0Af8wqCYANl8LNlrloF7SfBU4NEPO0+VvF1 p12g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=UnYYUWSC; 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=1685639031; x=1688231031; 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=qanmtYQDvJuB6VywBbWIg1uiu8yY0ofreKEQTpWhZD8=; b=MbJEjq18Ab8+WW/rUHiwhyUoN0I0tWRGLCmEJBr32HKOH/FuWS2RmUCRmKLFyW6r8k W6MvdR0i5Dw1RRwoZwev/1HNiUqUrOjn37zucNTNECuVm2E8qpApqY42RWzep5anbBoP q78+p0gw3JYrvArmGoq+u1cZKOgITMrodRD3k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685639031; x=1688231031; 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=qanmtYQDvJuB6VywBbWIg1uiu8yY0ofreKEQTpWhZD8=; b=TwfH7P4KpyugDgH0ioKO04oV7a44aXPlqu4wrlJEYUYTrNDqD6KjifDstgkQ1MNAdX hU057/4ulex1KjNco7KvEW32umIbH5Na+L5HCuWHL/dptnZ3n7D7DbM8ma2x8+fekbC7 /vDwUd/7BkE2JA2MfBQoaFi4Hy4N0hAUzYqWm31YJBi/vxHJ+aK2dOdnsF0vd4TzN23p vWhdmtpo8XX5YvNYKuuaEJQJlflsP7UUoSdueR5norrS7RIe/ocLjxOd0ijziqDxJ3Z7 L7MdUYUC7Es4jdjzP4x263Z+issnzmR1sqM85yPAedbS3KMpd4vKoo+nsuZyVvRRdIOo gGvA== X-Gm-Message-State: AC+VfDwkYCp+dKiRftIeMvv6VtDTUhuVOdT6ZI2Jy6vwtqjYXibTRRTN 2yIyWqAnzP4PsWj+4aeICMVS16gb X-Google-Smtp-Source: ACHHUZ5nAL98eJHaqeZNg2IDQHfWc9ZO1B+JfBzHQW3bJF8K2bUCOI6oOcDz5xJ/CqKV4N5e/VYQ2Q== X-Received: by 2002:a2e:9c5a:0:b0:2ac:bd28:d457 with SMTP id t26-20020a2e9c5a000000b002acbd28d457mr44995ljj.14.1685639031388; Thu, 01 Jun 2023 10:03:51 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:31ef:b0:50b:c3b9:c10a with SMTP id dy15-20020a05640231ef00b0050bc3b9c10als608454edb.0.-pod-prod-05-eu; Thu, 01 Jun 2023 10:03:50 -0700 (PDT) X-Received: by 2002:a17:907:6d16:b0:96f:b6bb:6e4b with SMTP id sa22-20020a1709076d1600b0096fb6bb6e4bmr8599892ejc.12.1685639029751; Thu, 01 Jun 2023 10:03:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685639029; cv=none; d=google.com; s=arc-20160816; b=QLwbS81n5oamNmTJlEbKyV8kLUSEhE7DoEoxl0I6hvEYmeGIDb7wjKjC/iyJdzZGrB kdOIM91aqlplNX1buWaZPIMY1DBW9AXB0Lb+4KB7byxaUGP/vjx/9EonrWOsH/ezMLyp Mcw0G3E5EC0SNzSKttF5UnN/8ra9BLA3flr59+HWks/q/UI19Y88kZiuAGgY5k0YBzGr UY890RHD2KbxyxCCF9j8LUDXcZVglzZBR8MkKU802va9V6ja/ZEufZOFg8FyPRa0cUTy 0WYqbu7DBCGs1gyTXtNElM5jrXeWxO4YKM9ZXg4noyxycRlQUfHG4Mu6AIeRyJnRccJc j1yg== 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=UONz0K3nwm2zifFBUhCTgrepWK1oSDUw2LPUignW7i8=; b=08Cu1eS/mdpqeoib5F2xtag0f5NvFMJ7oEKew7C0IrFOZSKmAv8wFGixUrJ4AgOaHc LITD7+UNuTzvxpLCxncctHTcO1/t6Ibb+bCrWjF8ZBeRitvXvRL9V5nsLCkQHkGsCeiv FiRoyOBiryoptYFVQr2FyHqs2oXDbi+8zqO78MQIJvhy7YF5Ly90C3874zugfi6CSI2T Ui69ZNgsXkVoImaltUf1/zO2QkpCKNQFTdgzcq9gmo/aLApJzdGhiNS3dsEBDY6xNHFb cKh3ryMfPigYnx3qWJQREhurYLlYeCTxVr4wZ758w7xgWskMYrkREE8Bywdw4AC6cU5g LXgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=UnYYUWSC; 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 wc7-20020a170907124700b0096f55552af0sor8529850ejb.5.2023.06.01.10.03.49 for (Google Transport Security); Thu, 01 Jun 2023 10:03:49 -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:a17:907:9495:b0:94e:43ce:95f6 with SMTP id dm21-20020a170907949500b0094e43ce95f6mr7856974ejc.47.1685639029478; Thu, 01 Jun 2023 10:03:49 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-248-31-20.retail.telecomitalia.it. [95.248.31.20]) by smtp.gmail.com with ESMTPSA id bh25-20020a170906a0d900b0096165b2703asm10658522ejb.110.2023.06.01.10.03.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 10:03:48 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: 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 3/6] ARM: dts: stm32: support display on stm32f746-disco board Date: Thu, 1 Jun 2023 19:03:17 +0200 Message-Id: <20230601170320.2845218-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230601170320.2845218-1-dario.binacchi@amarulasolutions.com> References: <20230601170320.2845218-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=UnYYUWSC; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add support to Rocktech RK043FN48H display on stm32f746-disco board. Signed-off-by: Dario Binacchi --- 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 Thu Jun 1 17:03:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2881 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 87DD23F076 for ; Thu, 1 Jun 2023 19:03:53 +0200 (CEST) Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2af27fa8bf2sf9880721fa.2 for ; Thu, 01 Jun 2023 10:03:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685639033; cv=pass; d=google.com; s=arc-20160816; b=h2p6c7wcz2BDl8aXNxpM5Zh5HQ9xVYVIPJ64cOKxReU/Q/JNR99YJkbCRodAIAS+Xj 3ssm243DUyozXNl8e86mn8cFiw7OvQ6l27OcUWGOTfKq4X6q1o0XsZbPdWfP4dJm+vwh 3pPXR9t6CmgoMDclRoRS6GykNE4urt91SKWeuZ/41Jf9FXbDSa8mKkemujZ5cLZclrBZ tfjgLjX2uhxHp4h6LWhVMWk9Phg+ApXTN/w448TSuMBK2qeFjZ9WSGeetKH77dm5asaP Dn1F1SVHKvxnmIbBKEs4VUv+32W3k0TcPm57TcBvTrAReYTzxp7AUc1AQhXaZCxLm5rD dtrA== 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=M6h2QdTTrs3NlMqDTkLNOEXYxghaD/G8fJJR9a4TwbQ=; b=0Frm70adaBM/vlE0x9Y/by/xIw11Vp78WwVDoOw9TiA7v03mqTgpdKSkxlggulbriA cFuNyO2o3TFbfR57n9/BnDjM9OJwsfC2KZSfZpo7vwQFPVzVWwzJNYOmtNSCCi7MEXOn kYDJySjwoh+J3P4sO4fRVaoYrqISmoW7Ny9eFnI0DSFgMz9oRMWxIZv86xuFyxWEPsRb M9G64hMc+ENaR4XHhxkcQJ2cpbmJqYIaJjFY59M+QQFk0oaLzsH/LT+5FAMoob1BfqeM f3WU2PCQA8s9PmmOkYYhwDx2XM7n55uQf1xC5MtwPBS6eC+C5lHnwWGMcX678qeEirST 5Fag== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=n7Sl+iCP; 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=1685639033; x=1688231033; 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=M6h2QdTTrs3NlMqDTkLNOEXYxghaD/G8fJJR9a4TwbQ=; b=Uw/EQHkbfqMvsi8XFzlqsenupWZAgbjbaIi8k4VKv45ZRuH5G3+JAayVhDbNJiBMEX GHfEpgpzZIXUxpmYaKEUMThoOwkwHvVLIHFDZug9p9f+wblLwDAOVD/cQxuUMlC1/RBp jGgd13SQsqGmWPSdx8y5VVSKnYluib3SK432Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685639033; x=1688231033; 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=M6h2QdTTrs3NlMqDTkLNOEXYxghaD/G8fJJR9a4TwbQ=; b=irjx1i7kQikeACYQ28HEq/6UFE4zr4U8Gq0bUcSxSbH4iMgBTicuItTZaFyPPbgby9 yd/bovJf9iX5Hi+AGF3FI2Ok+RIDrKPh9vgsU6eTECHGn5zv8Nhb1+IMRr4aUC39GNu3 mfiI5rQ8IXtmYFPxMU+8JfWHD1x6koT8xzr6yG/ow8ztTMSflCuCA0BFFgixm1lz1xTI rTakNgGglQBea+50bCUD2n6zfOci6hyI9y3/oKxSmsNNbf6a3eBGqRQjBAVZOLIb3GHW L6/tkoPaOwOYKdSOI1rHmdOtolsw9/I5hKRkIG/7xJwy0gPfaDjUaMwAKLWuMAg9uW4E vGDw== X-Gm-Message-State: AC+VfDyGQWpaZHIcyh8ds1N4yzHdXOvCUBsUOizOVeN8h2NheI8hOt0k qJjET6ZRMm7CAeJBeEge6Tbn9RMr X-Google-Smtp-Source: ACHHUZ6KuWrcbfYHkbQQJ+42kR9ERM3ppfwRdRbf3KxDrohuirAMgXudxhIfk2CdgcNi2a7zSVWRZw== X-Received: by 2002:a2e:8899:0:b0:2b0:486c:3102 with SMTP id k25-20020a2e8899000000b002b0486c3102mr59685lji.10.1685639032982; Thu, 01 Jun 2023 10:03:52 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:651c:1a28:b0:2ac:81ce:1bc1 with SMTP id by40-20020a05651c1a2800b002ac81ce1bc1ls58916ljb.0.-pod-prod-04-eu; Thu, 01 Jun 2023 10:03:51 -0700 (PDT) X-Received: by 2002:a2e:80d7:0:b0:2ad:c1ec:fa3 with SMTP id r23-20020a2e80d7000000b002adc1ec0fa3mr53497ljg.20.1685639031331; Thu, 01 Jun 2023 10:03:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685639031; cv=none; d=google.com; s=arc-20160816; b=tuDV0Vm2Ru17le8xvmNUa7IdevfkEnMnIv9mvnao1FVBPKHRkRgEdtGiJ+QJL8sh22 OvJ9KL+b6RosvzS430nk6yWsxAmUq2vYC9PWPL80aJrSFqY8m/3WSmjkShCnqrDBd2Xh lF0tSYKZ0CaCQUWfTH3qdO/HRBcYgp7HiyxZKGg1vpuRLM/9wfleeyGcA3Fsv4JK0dFH 2VsFtrsYN7aSRorIxj2g9tF0aXJ0Il3aOXht/ysIzB+5eiGan46cHUfCOzwb9x/OQ1AC N7GCpgUAFUa0R8B1JmLGRaPmH7QakOI9KmWgPHi1hOKIf8VURHMO30Mj5Oy6jfN2x9at Ao7A== 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=TTcjRJtvmJkq+LZbJsn7Ql99XlhQeL7VF1cYGLTbIN0=; b=c4qQvn3t2ViYTbuZGCodbRKEpTuwHI0sV0bkA4OaIITbp7Iuh5ty/WZGscxhBv6vYg xByEufcjRZVSi+5xsR2hSWayO6H9kSBhyQgrU8nqOq5p14ahIfMkW/JNi8hMGt1f4KiG Dz2SW+Fqc2GmCkfVoQM6dCqfbKMLkgiI3z3naPmAznV3ffToAjmrOo6Amanv6QlqD3Q7 /dbl+qNwq2IKWZn2cfmh4A1qoo76ztusOxHoL1nclqvi3w+e6tQMrAZ9A66C8pRc9jf8 6pMGm6qptgSdQztAfb38V3QM+U6oOUoEEnDQMQVi1cEgVsQab4NWWPoGKI1lDmSPTxuU f5Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=n7Sl+iCP; 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 fc17-20020a1709073a5100b009745123af03sor468017ejc.0.2023.06.01.10.03.51 for (Google Transport Security); Thu, 01 Jun 2023 10:03:51 -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:a17:906:ee87:b0:96f:781e:a4d5 with SMTP id wt7-20020a170906ee8700b0096f781ea4d5mr7658970ejb.77.1685639031091; Thu, 01 Jun 2023 10:03:51 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-248-31-20.retail.telecomitalia.it. [95.248.31.20]) by smtp.gmail.com with ESMTPSA id bh25-20020a170906a0d900b0096165b2703asm10658522ejb.110.2023.06.01.10.03.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 10:03:50 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , michael@amarulasolutions.com, Dario Binacchi , Conor Dooley , Daniel Vetter , David Airlie , Krzysztof Kozlowski , Neil Armstrong , Rob Herring , Sam Ravnborg , Thierry Reding , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH 4/6] dt-bindings: display: simple: add Rocktech RK043FN48H Date: Thu, 1 Jun 2023 19:03:18 +0200 Message-Id: <20230601170320.2845218-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230601170320.2845218-1-dario.binacchi@amarulasolutions.com> References: <20230601170320.2845218-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=n7Sl+iCP; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add compatible to panel-simple for Rocktech Displays Limited RK043FN48H 4.3" 480x272 LCD-TFT panel. Signed-off-by: Dario Binacchi Acked-by: Conor Dooley --- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml index 01560fe226dd..bd6a92d2b41c 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml @@ -280,6 +280,8 @@ properties: - rocktech,rk101ii01d-ct # Rocktech Display Ltd. RK070ER9427 800(RGB)x480 TFT LCD panel - rocktech,rk070er9427 + # Rocktech Display Ltd. RK043FN48H 4.3" 480x272 LCD-TFT panel + - rocktech,rk043fn48h # Samsung 13.3" FHD (1920x1080 pixels) eDP AMOLED panel - samsung,atna33xc20 # Samsung 12.2" (2560x1600 pixels) TFT LCD panel From patchwork Thu Jun 1 17:03: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: 2882 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 66BC33F076 for ; Thu, 1 Jun 2023 19:03:55 +0200 (CEST) Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2af2790f4a2sf9992121fa.1 for ; Thu, 01 Jun 2023 10:03:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685639035; cv=pass; d=google.com; s=arc-20160816; b=wtY+BKJRMdz+2XCi8ojrkqVuCxC3XLQHqVPniszmGH4cVtdcCJmpXyuqfMv35/0gt4 HGO9/fpPl8APyyfa0n7sX1JvcgVDsPfnFuQBhu97MehwVWn+NwigwioIqL3UJtTc6IlX q0PiQ6ZfU4nXM8r5gs0G4r4enXsISbLd+z7qmKGRnKP0hrXXjziOpEmnq0FShA8zWlkR BqXgs2hWohHg3ke/x+noy3bPTfqOs0rIpQ+gpe3Q1apkEOQoQfL0l0Xnxw64V6KBrk+j xIkK+n5aCJy4dygp5/Q3saVj7Fho77mBAMe6+yDDb1+y3HjSTQShW0AvlUwRybIcLf+L WO6Q== 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=fH2fGb4g9A38OprvHBOsB2RIrIckkC8/axlzX304g94=; b=NfCIcWL7kLY9EO0MRYaL2qMnBdLD4eTMIuGn6+/XE4T3whooby1pz9Sb5BKfdPntYo XKiof6/AHABAJI813aZPvt9qVUebvKEX7vYRgabavyhrBbx6WSZgfAGveOJrBxFddr6h Woz0qTiXnM61Tij1bSd2NIcPb8upPT2/bQ8aityAX7ac3WYxYw2QsR07m18FlxR3EB9C 57WjxPiZRZorsqq3hODhRJReR22/Q9DGJVi9Ejmqd97rG6Kv5qR14ddgUrTR/5V+w8nU /JrsDq8gELnpW/CAYudzquRON6tG2nNmHcROBNFRT5H8jWeNhZvHz0U9Qnk4yRCqFfeE kYmA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hMITaXHx; 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=1685639035; x=1688231035; 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=fH2fGb4g9A38OprvHBOsB2RIrIckkC8/axlzX304g94=; b=awUNf8AJec+10OoBWX9ciGxKFotoDYOqsrEmuVAUqthZOvQ/P0t89YCUxCAMh+axs2 WcYsX58Qz2HR7ZePyFy3lgKG/2+XFaTaDxWdxDXodagieIyDSw5btDdqNKNGzV3oavaG LxsK37CVEbivjM9r58LWdJsPv63gV6VZZrBs0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685639035; x=1688231035; 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=fH2fGb4g9A38OprvHBOsB2RIrIckkC8/axlzX304g94=; b=cuM2N3z+eSTYj0G4aOOkkJxpg0A56QRMl950dRqqg0bvu9kfeK3E9g2Osh4DNFbX4+ gfLbWOcgdohtv6etYWiDTETpCXtk96k/ldCPbkIZmOis4VnRlg4kfVcYYm39AtMfgwaY gpd/OfXSFzZRJJ1206cCyoFuN7Wj1fz4JnqFMl3M7+9SXD0SRw5Z8SBg5doGNv3iIWh+ ukfIbLJNHDmSParJOST3NWJ6n9iUtLvt1KKYWZFoV8tMOoLQdOBctyw5AD/8WDs207ec avq29FaDtAa5d41k405SvId14uC+4aEsAL5p8d6FUuSo+SWi4Y5QznTjbCZ+H0yij0au elPw== X-Gm-Message-State: AC+VfDzFGIW976b4th/emVRwHJ+aC6hCdQPgMv9nQf8cCQthH/AnuDQx YV8Kll/HbAPyght9ga6dYF9RlunB X-Google-Smtp-Source: ACHHUZ56IYV0Rzp5biCbqpAnKDI/sxmfo9J7SphrC4/mw2Dy9bNBDIbHYiNUwkcsgZw7KKoIu+lK/w== X-Received: by 2002:a05:651c:1032:b0:2aa:474f:16e with SMTP id w18-20020a05651c103200b002aa474f016emr40506ljm.30.1685639034830; Thu, 01 Jun 2023 10:03:54 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a2e:be1a:0:b0:2b0:5257:58f with SMTP id z26-20020a2ebe1a000000b002b05257058fls115295ljq.0.-pod-prod-06-eu; Thu, 01 Jun 2023 10:03:53 -0700 (PDT) X-Received: by 2002:a2e:9608:0:b0:2ac:8090:630e with SMTP id v8-20020a2e9608000000b002ac8090630emr40915ljh.28.1685639032860; Thu, 01 Jun 2023 10:03:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685639032; cv=none; d=google.com; s=arc-20160816; b=UZZco/v5o8KBgS0mvWi6zs+gvMxHtKHzPHtjXZPpSqQ94twhgQVZe4iQefe2iJIU/c T7XQ2oVCGf3+0TBf5TvPCse3nnTSGuHL8feZUiCfl7+g746bGXifpoFC4ZQaqz0DdAIy LG8LVTn4bXpujsceqxRVjJxiyczR8D6kBY0snwf/eINzgQaoLKJKy/yLkIiOCERJOf7a nulEXfwJPUaOEJp1FJoE/rUSLKqjRk5UodIETu98Uc14UMiEFfmb4BhHr6OqD3YnN8E1 MuQAqv5wNdJvLs9mteP2iDgd+tmk2DPA1i7F9QQU7M3Ot09C7NNxWesMf3p53dH2hHum 8www== 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=NdElKIu+1cRclMUkHfLP6gJRhgH3ar2X29sNtbMoMuI=; b=wQ5843niuFs4hbFLw/2i52h3dBpzRvbSAKgVhOohbpBSuhHamKeBxYJQX5oPJiEqdY xSG+34dqttzcuOtXjmO1Uh3jTBIw/oArd05mBMBaJRUafO+f2strHl604ptiC1/WPAqi 9/LmKuFm6fnTVm+k7NRyjsrLAvosP6EcCtQkXffhyMWF/6z0a2wuNXHqbPqtkuIGkcv/ wYfQxvmWlxSbS//sUWnIOH2tozjQjn/6TVC6UDnvLuX658xFVWFq0qiVPufXylOcn/2I Yw6p/f7SOs9IreuNMQ53qqQ5i5jNQnsGlv+o1vb2SzbEy4I0/St3HJAJFIoFAPtTa6mk 813w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hMITaXHx; 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 l3-20020a170907914300b0097374e50e20sor910589ejs.7.2023.06.01.10.03.52 for (Google Transport Security); Thu, 01 Jun 2023 10:03:52 -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:a17:907:2d9f:b0:94e:e97b:c65 with SMTP id gt31-20020a1709072d9f00b0094ee97b0c65mr9290200ejc.60.1685639032574; Thu, 01 Jun 2023 10:03:52 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-248-31-20.retail.telecomitalia.it. [95.248.31.20]) by smtp.gmail.com with ESMTPSA id bh25-20020a170906a0d900b0096165b2703asm10658522ejb.110.2023.06.01.10.03.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 10:03:52 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , michael@amarulasolutions.com, Dario Binacchi , Daniel Vetter , David Airlie , Neil Armstrong , Sam Ravnborg , dri-devel@lists.freedesktop.org Subject: [PATCH 5/6] drm/panel: simple: add support for Rocktech RK043FN48H panel Date: Thu, 1 Jun 2023 19:03:19 +0200 Message-Id: <20230601170320.2845218-6-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230601170320.2845218-1-dario.binacchi@amarulasolutions.com> References: <20230601170320.2845218-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=hMITaXHx; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add support for Rocktech RK043FN48H 4.3" (480x272) LCD-TFT panel. Signed-off-by: Dario Binacchi --- drivers/gpu/drm/panel/panel-simple.c | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 065f378bba9d..e8e2b2a55f37 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -3188,6 +3188,32 @@ static const struct panel_desc qishenglong_gopher2b_lcd = { .connector_type = DRM_MODE_CONNECTOR_DPI, }; +static const struct display_timing rocktech_rk043fn48h_timing = { + .pixelclock = { 6000000, 9000000, 12000000 }, + .hactive = { 480, 480, 480 }, + .hback_porch = { 8, 43, 43 }, + .hfront_porch = { 2, 8, 8 }, + .hsync_len = { 1, 1, 1 }, + .vactive = { 272, 272, 272 }, + .vback_porch = { 2, 12, 12 }, + .vfront_porch = { 1, 4, 4 }, + .vsync_len = { 1, 10, 10 }, + .flags = DISPLAY_FLAGS_VSYNC_LOW + DISPLAY_FLAGS_HSYNC_LOW | + DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE, +}; + +static const struct panel_desc rocktech_rk043fn48h = { + .timings = &rocktech_rk043fn48h_timing, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 95, + .height = 54, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .connector_type = DRM_MODE_CONNECTOR_DPI, +}; + static const struct display_timing rocktech_rk070er9427_timing = { .pixelclock = { 26400000, 33300000, 46800000 }, .hactive = { 800, 800, 800 }, @@ -4218,6 +4244,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "qishenglong,gopher2b-lcd", .data = &qishenglong_gopher2b_lcd, + }, { + .compatible = "rocktech,rk043fn48h", + .data = &rocktech_rk043fn48h, }, { .compatible = "rocktech,rk070er9427", .data = &rocktech_rk070er9427, From patchwork Thu Jun 1 17:03: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: 2883 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B31A13F076 for ; Thu, 1 Jun 2023 19:03:56 +0200 (CEST) Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-4f60dd5ab21sf29843e87.3 for ; Thu, 01 Jun 2023 10:03:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685639036; cv=pass; d=google.com; s=arc-20160816; b=jmOxksRw+O5xKGSTYAar+Xq/SF2AI9h1qRGytWRSI9It6C41izjiIWa/5GGEJphh+H saspOedxv4LxHFYZeHkNz3CX1C53MyHzUbbicrfZUy9ZkvObhm6gclaYMcasnQMz1PIm gryV39UIY5v6TcR8D9zLYT9EdLqrOXOnQl8B8CqpMjnJkf8zYD4nBvFsKb5FA8QAk6mk x/vyTmgbo/u8T31oFjEfw3QUyOAi1r/f8hGHN8Ritjz8qsGNc4ItQtq0JmE3PofL45Kn RXqgcG96wbpZKty7BOJ6FknskN81RwCLgGIR6skTWyPp5dmI+5esFzqipD9pemXz6p+q tUDw== 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=9myp3d2o+mlvwOWGi23yRhEt80v1tb//aBNjBvkL6wE=; b=0oZJEAk69dZai0AUQLEDH9M5lUCeC4sDdTLkCYEpGQhU1qUc7PnBGLPPmSFsJXLkNo tI0W2P8V6y1Yk5wZReMkjOMDWzaNCn3MeL+i4pnU2ozPOShWbmFyGKxBHKjyZHAfINoQ 8/XAKbZVaaL+erm/MrzrglSa1lEVFil4F7Gl+WsagtxT4A+hHUu+MSn9CFNSy6/RL/yU YjYQ1iUB5J24u967RdHpNBJtUOiVX/XNLtG3BcOiL6WOUyomPmJ6ML4/CzkiC8C/o2s2 3RE58ZQ0iDWBfqkLT+GGO4FejcCsYeCFT6ivXBzwo5t8hv67Bnl7idk4AmFenh2RxMIs O3ig== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RXpREj32; 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=1685639036; x=1688231036; 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=9myp3d2o+mlvwOWGi23yRhEt80v1tb//aBNjBvkL6wE=; b=WFvdvJcEExqoHyrbB6/2glmdC0ToHO/pyeSaTqiHXlDxtlO/yG6o35q8i43VG783pF RSEwCEE5E8oJIKYCye3aeH00hKquAc1H1JrvsTmoXZzZVUdZefoKt4QAzgU4KXDuXkY+ yZ12dBojufdNyheKq2h9tweu21uGKr3qY8qXM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685639036; x=1688231036; 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=9myp3d2o+mlvwOWGi23yRhEt80v1tb//aBNjBvkL6wE=; b=Kthv00ntEywAShx8/zDcYQFDazRUkDIBLzqboJV+nOzk6pcd2XSZUb60S1h+7t0olq D6MejIn6gPnko+QqDxwr91t3TqqP9Cjq3yInqnMt/qB3xMKEnfRemYHB0Q00j504jPft xLeyIf/Y/p8r03HoZHxQ3f80cwb7ekB4GH39SUzzm0+VI0ESy6tLdLTt2FMPboIiiTKL uGbqaiTVU7Zx5h/pGohsg71O+4j2qwfb1qRwi8u9+H3sbiXnJKT52fyDoYsu/eTR1R8q ENxG97jjqK4WNmUKZowXBF/TIoi7+5DM9CbPtkshZpI8gcik2xIf5YeaG+wUoPRDxbRZ h5VQ== X-Gm-Message-State: AC+VfDxksx3+N2uff1GC5eCqrv/JjweFdS7JsOsEvJaXdiyALjMIyuDc sygUMCGGSvY8Ml0YfJEY5JtqbVGH X-Google-Smtp-Source: ACHHUZ7Z3NZxA71ZnYJ/ZqmfvtgtczfIYW9fIsqSJ9y5vJyeI1WRBrYWlVVsX3Fy5KwxPKbbnvIv/A== X-Received: by 2002:ac2:4558:0:b0:4f4:d9da:2c1d with SMTP id j24-20020ac24558000000b004f4d9da2c1dmr386490lfm.22.1685639036191; Thu, 01 Jun 2023 10:03:56 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:c74c:0:b0:513:f87a:ef6 with SMTP id c12-20020aa7c74c000000b00513f87a0ef6ls570970eds.0.-pod-prod-06-eu; Thu, 01 Jun 2023 10:03:55 -0700 (PDT) X-Received: by 2002:a17:907:3e1d:b0:961:2956:2ed9 with SMTP id hp29-20020a1709073e1d00b0096129562ed9mr9249812ejc.25.1685639034585; Thu, 01 Jun 2023 10:03:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685639034; cv=none; d=google.com; s=arc-20160816; b=vCpGBRfEDP80KZRcPApAe+QdG5BZCLzj2z0UcYpCk06m8T71/hFmLJi12RahHdfKbu rXPXQdFO0nlRUemxLo9t276c0LadgMNEFi59JkSjrf2YGrMuek8ulTx0us+8+QxjGYHc AVNXhdqOVNndQMVIzO/QhPxdhCbKVKpwq5EF2uYg0qikom7Z32rFoNAt3Xxfq8MV7bGS +pKtDpdxHpKmpB2oZKzn7NHvGPi8kjic+a7nU7yDZm2hD4dtKIIo2d7lDK6K4vjPwtaP nfP+v/GOXPqPZ53MeMNzaodvVaBC2gQ+6TXP4hG+SNagVNPHlR0CDnz2lOnuL7DshjdJ Dshw== 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=Ftjev7ny28lvJRfWKN2KXX1gaG/LDneackQ782m2++c=; b=xP5Zb3jHrbtxfHz3+nyvMjoGapJQXxSrhbN6fFxrsGKSXxzhMaf1vRceUxDzjD+1TY +lKnl/HKHj8qK0gr7YBzhuMQnT3PJP6Uuy5Uy++rbBO1U6Sb5cyAplIFAD8b+NkMH7nQ mwazQeCevaiGKiVoJj5C5LfVdM7knaNZEbZ2Qcmw2MBt5UWqw83ZHBsg0NtpRakLGsZw gdw8wfwUpLO6VFWhb1DDo0gZM1RoWh9FMVa9hHwJBQnvpMZ6p5yBHFzf7/qZRcMHEsO5 Ia4rbLFjxyMZS5iG4HvAKi1vLWSKazNw1hUj/4ugwIR1KhmyXFbD68FALALkwS47zT1s Ct1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RXpREj32; 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 eu19-20020a170907299300b0096fad3bb65bsor3413358ejc.2.2023.06.01.10.03.54 for (Google Transport Security); Thu, 01 Jun 2023 10:03:54 -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:a17:907:da3:b0:973:d2b6:f536 with SMTP id go35-20020a1709070da300b00973d2b6f536mr9135641ejc.21.1685639034375; Thu, 01 Jun 2023 10:03:54 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-248-31-20.retail.telecomitalia.it. [95.248.31.20]) by smtp.gmail.com with ESMTPSA id bh25-20020a170906a0d900b0096165b2703asm10658522ejb.110.2023.06.01.10.03.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 10:03:54 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , michael@amarulasolutions.com, Dario Binacchi , Alexandre Torgue , Daniel Vetter , David Airlie , Maxime Coquelin , Philippe Cornu , Raphael Gallais-Pou , Yannick Fertre , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH 6/6] drm/stm: add an option to change FB bpp Date: Thu, 1 Jun 2023 19:03:20 +0200 Message-Id: <20230601170320.2845218-7-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230601170320.2845218-1-dario.binacchi@amarulasolutions.com> References: <20230601170320.2845218-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=RXpREj32; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Boards that use the STM32F{4,7} series have limited amounts of RAM. The added parameter allows users to size, within certain limits, the memory footprint required by the framebuffer. Signed-off-by: Dario Binacchi --- drivers/gpu/drm/stm/drv.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/stm/drv.c b/drivers/gpu/drm/stm/drv.c index 422220df7d8c..65be2b442a6a 100644 --- a/drivers/gpu/drm/stm/drv.c +++ b/drivers/gpu/drm/stm/drv.c @@ -30,6 +30,11 @@ #define STM_MAX_FB_WIDTH 2048 #define STM_MAX_FB_HEIGHT 2048 /* same as width to handle orientation */ +static uint stm_bpp = 16; + +MODULE_PARM_DESC(bpp, "bits-per-pixel (default: 16)"); +module_param_named(bpp, stm_bpp, uint, 0644); + static const struct drm_mode_config_funcs drv_mode_config_funcs = { .fb_create = drm_gem_fb_create, .atomic_check = drm_atomic_helper_check, @@ -93,6 +98,7 @@ static int drv_load(struct drm_device *ddev) ddev->mode_config.min_height = 0; ddev->mode_config.max_width = STM_MAX_FB_WIDTH; ddev->mode_config.max_height = STM_MAX_FB_HEIGHT; + ddev->mode_config.preferred_depth = stm_bpp; ddev->mode_config.funcs = &drv_mode_config_funcs; ddev->mode_config.normalize_zpos = true; @@ -203,7 +209,7 @@ static int stm_drm_platform_probe(struct platform_device *pdev) if (ret) goto err_put; - drm_fbdev_dma_setup(ddev, 16); + drm_fbdev_dma_setup(ddev, stm_bpp); return 0;