From patchwork Fri Jun 9 06:20:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2919 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 45F163F9E8 for ; Fri, 9 Jun 2023 08:21:08 +0200 (CEST) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-5161e17f374sf3051913a12.0 for ; Thu, 08 Jun 2023 23:21:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686291668; cv=pass; d=google.com; s=arc-20160816; b=dm3ILJkiDkTrUnPz5zcX1AZfMlV2zNR3SKd3DXZO1VX4mbZojEo+W38I+urjIbu43K 06cBIjFVp+66krQPQDuJT2nDfcT1Nh1kuDmEmAt4orHSWZCYiE6AmR4hjiPmgoMLMMt9 7L7oCv7DBhXbncmwLH/CfLoRNFbZrol4sQViv9SpLL5JuQU2yco2BPHiOz6AchAg00v0 taNdDSU88c0SjSBPr9goZCH3yeC4+OV8DERwuIV4LYbL7EjO2Bww4EDzmbdnTXtXOP+h k0oR1JCO7s7xDDHR5T6M9kAhwwVc5J91M39F/ie0n0yp6klKfoYSd0IHC1y/DLT09Woi JPrg== 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=d+0TcadFlRGQ4JA8v3XODmPXU8cOvstApylXoRNLO1g=; b=xPGZmZociVQS6hOR43PkAbGqvLmjEXClRwifKT5xtbOwZQ8L5Yvm3SplzY1Ke/AUxM /geCE4YdoJEQZWqvXmjmmxNG6IUH42DdvkGGoc7z2s6tfdJtSVdhQtxeM1qX1TuD3GIi 5QPr1TOA0bVqDn83npbDuqBZQPU0msn7XIGpufCCmsMgln7VxjHPtOZXF4LIAKMCFFwo 0s2nLCUfkEzIR5TwthhzN/bRoIUcEqD6X22u/uNDjIBnKoMo2j5bo4/GaCMJ3BwbzEH/ IaLfPg1tlC7q2t16dym49v6FvG0PKpa1ZQZWDdu7qAyMBYuuA3VDfPoLl+4kbs/ZMZ1s /7Xg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Zn2wbcwo; 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=1686291668; x=1688883668; 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=d+0TcadFlRGQ4JA8v3XODmPXU8cOvstApylXoRNLO1g=; b=PxZeNZ7LXJ3GXEuXdTEwYSHzbyGj+AXrYkSdBjuGQVcTb2y8iz6z5//sLL4NzH19zy bMMk31bHkMHIF6m+IpNIMcJulUJ56Qj4DAF9ERrwp4kzIRE1XdFl3SqxlRwNmF3jhvdu 9n01kCb3LGyKK+gbijqI5nJzlaIniJJ+0UOtg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686291668; x=1688883668; 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=d+0TcadFlRGQ4JA8v3XODmPXU8cOvstApylXoRNLO1g=; b=luVsrCip8hX/iZbMr+CPCh9tNcPAM8q5+j9+5tyO1cDaOLP1jTmJLD8jT0kbx7YBRZ qTIAbz5TG6HnsWTqb7LviTjyg78CrcfxWA6UlUVFFDfrckq/6x0xIsJ4RjAo2Iivu8g7 EzeUqY91oPNUbMmETGSvgGS6jN0zcXSiPqni3i7joUgRhLVjdZ5/Xt1L5raJmVX02hs4 KGtQkTftvu91JaOpmAOT4O+WlsKoYhgrjljm4YtGTMRRALq4clO9x/ulkrH5eKEN9/9t kbgrp0hzP2bsZtFe39QjiQRhV+xoVh4+7lxFBnwwKIUk69SD8qtD7x2x2IXdl+fqg+NB 28Yw== X-Gm-Message-State: AC+VfDxR9EomrV1ik3dlIE/n6XS2r1ZDmUWKcQzXfGjTRXnHWK+K5z2E F/zCi5r1/NkYqW8uIJXuhFbGvV3+KLSO7NKT X-Google-Smtp-Source: ACHHUZ6lDjlmU+bhR/DWYkkFc99H/gtEfgH9c/b7EtDhKGL/rWAt5wWbzMTqeEy7Pnwbt3gYXka9pg== X-Received: by 2002:aa7:d68e:0:b0:50b:c456:a72a with SMTP id d14-20020aa7d68e000000b0050bc456a72amr762470edr.19.1686291667980; Thu, 08 Jun 2023 23:21:07 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:d503:0:b0:516:64b2:cc8a with SMTP id y3-20020aa7d503000000b0051664b2cc8als1073941edq.0.-pod-prod-00-eu; Thu, 08 Jun 2023 23:21:06 -0700 (PDT) X-Received: by 2002:a05:6402:789:b0:50b:c56c:43d0 with SMTP id d9-20020a056402078900b0050bc56c43d0mr865151edy.1.1686291666421; Thu, 08 Jun 2023 23:21:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686291666; cv=none; d=google.com; s=arc-20160816; b=UXt5UK5iKfql2NAjnwDMkJ4x5j23OI1Jt0MIy5iyf7VdX9HzvXuYWLAMw3i5mcNB3O 63Y900GADEfW+HOFkcR8N9W7xfcKrhgUdYEeGybiqVx6p8X0vveqp5hiKSMueS8FGYDV LXsSrLPC5+vNhPo/jK+abnJHTIKU8O4p0wW96C8yayA5amWFS/WYTKN0ARs7ANVUsUO1 3zRqOanvLyMebX+o//VclGPpNlrF2L8ooJQsapaSPtn5inK5sQXNVRj8qKzdwphXlbL1 lRWhXABf8BGcejUh+yitbr3oxtqroabhnmu9iHb7Rz48FUsUk0ToYvS/HSBH59jkHAty vpAQ== 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=tlm5X0f1SJIUHEa+Ch7CRBAmlhS5LXsyaOP8GZ1/KKI=; b=GNhZAEMgJMjgo1PtucfYqSW3M50vDJorlNpbYrGFj3wSIAnppPeDHZBzADQOHa3OsB VHlJ+6XoOi6G2c6dPg9RtIMmkE90jRY8hEsCr3fNMiqJU0BMeEAEwsyMpyitosRZfbim cWf1gR2OhdqYwipk4fMVjHpvXsSCiRYtPGhP/46ODcCYFsfBzCglDGO7IFTBZqk/PvFs KfQChHf2LQ/4GexopZACtd3kZUc0BTa8y4p3BUo0jKDkb5sV+THfJEy4HtWDLd/T6zj2 f/CxZqv/6zsoeu5xQQ+W9OGH6PSX0s/EYMXNZlfB657Jv3FReGLGqXqSaPli/H7mvL4x jZHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Zn2wbcwo; 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 21-20020a508e15000000b005164b5f4766sor770610edw.3.2023.06.08.23.21.06 for (Google Transport Security); Thu, 08 Jun 2023 23:21:06 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6402:270e:b0:514:9e81:6185 with SMTP id y14-20020a056402270e00b005149e816185mr4277430edd.16.1686291666238; Thu, 08 Jun 2023 23:21:06 -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 m7-20020aa7d347000000b005149461b1e0sm1380058edr.25.2023.06.08.23.21.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 23:21:05 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: michael@amarulasolutions.com, Amarula patchwork , 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 v3 3/4] ARM: dts: stm32: support display on stm32f746-disco board Date: Fri, 9 Jun 2023 08:20:49 +0200 Message-Id: <20230609062050.2107143-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230609062050.2107143-1-dario.binacchi@amarulasolutions.com> References: <20230609062050.2107143-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=Zn2wbcwo; 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 Reviewed-by: Raphaƫl Gallais-Pou --- (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>;