From patchwork Wed Jun 7 06:31:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2912 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E2FD33F080 for ; Wed, 7 Jun 2023 08:31:50 +0200 (CEST) Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-3f7678c74besf19780395e9.3 for ; Tue, 06 Jun 2023 23:31:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686119510; cv=pass; d=google.com; s=arc-20160816; b=zs+WbyMomGMEA/abAko9Y4Xj3TrHMiY1pbS8jURmcMbfeWtXAiHObNdeAHtrqATO8l 4q7egQ+7NOik3+ugs4o4RKEGwjU12znyiFQUclKbfR1HiAUUTe2a/nLHULkdrbMNyU2S yxBQ6CffeY107s7+uqJmiBkz5ao8aDFzTh4Ioz2TAl9pe0njzZGbaBr5zkT+HvpNkjMk m6Wk7OCK/s2l9y6zYQDg3p6YwMM+i4ugndOY7OOBskXsHGodBvDUUd3XNpTXv0w9anMe 0xveUIQ2M5LUO70RRpCbcGm53H/eoGNocvWvFufUuEX8lSPe3bANMgJBA/2VCwxCwCNj AnvA== 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=RI2rLro+Q+BE6GUh1r8U37Fq+fF590bWKeC0VWTJv7MAvTTAdSwErVEPuENqKRR+iC hQUjtG19Bnd7Ah2EFfH1mYd4Bp8bituK4tyeC6UQ37FFPUjG7mWBqTKSHEkN1mPdf561 0oaJqj/7eAKinXfYA9Ilk1hbl7S74fvyInnHvKrU6P0/nCOJvL9FptLfE8cf7mmpNseE vdBZjP/nh1AvgXK9rfsgxhT8vfvZoBUZA562reBFBLZ+l6OHjF5oL6EF3BL0gffx0TDp Moz4WY47Z7cBPCJlIswL20u/PfHtrgaYjWCIxgV5ICh5ytexmdtkF1QLhJKp9SQ3Rsmf ubcg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bzMNTxZK; 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=1686119510; x=1688711510; 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=lygnpZXVh6NW/A/dDgDD6AHx+j+W7XnRjdSsX4wwmRXhf9Xxd77Y33SYXE+IF0Osoa 3rAji9ef6IdDiBvPkYmYDmgJsB9KVSHqvftFdoxI9LlipjCoRGijjGMxs+2Snzc/q0cR gye2pI5ci1WwZHBd8Yqyuat1qpgedh2fqCw20= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686119510; x=1688711510; 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=F8BYijpJX6HlZ4IdOI8vFzUm3c+wMIlHDoYd2jo4J40hSls9OnttbgQp38toy00UsA yNDlAJOlAfXbf2wc8ol4eGLasOE9hJTW4kDf9X0hfCUto/BfgLla22mi+QvtR/PCHLZk mP14LhioOwNYLjqA/89KlgoVT/3nJQeLF2hr+LRw8lS29JRkeOCLos4wFuiU7HoN7JJf co7VvWJQZVPFmv2t7UvRbyfsvnEGtNYRg20DHzI/v3//ORhC+KVNF1TOoLLxFwO74vxP yctVMMnmTeVwD1VbuVNIfhR0UTE1qr4Qg+n89269CFLqy3H3ahuIy5tq9VAJgD7IeuvQ b+ew== X-Gm-Message-State: AC+VfDx/0DBeiIFz2w1qIw26aLxiVIOv0nUpVKg5Md6kBC+zS6gGY7a4 cQuED5MYDbvaxsEcyRnrwq8RqvYp X-Google-Smtp-Source: ACHHUZ6qCl7mRACMbOwSH3Vp+68li1Z9giWvZRkaWQWjE3ocLYb5AE15vLY3h+jEQm3SENiZKI5y7A== X-Received: by 2002:a05:600c:401:b0:3f7:bce9:b259 with SMTP id q1-20020a05600c040100b003f7bce9b259mr3767959wmb.11.1686119510685; Tue, 06 Jun 2023 23:31:50 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:1d1e:b0:3f6:77a:31b0 with SMTP id l30-20020a05600c1d1e00b003f6077a31b0ls2275186wms.1.-pod-prod-05-eu; Tue, 06 Jun 2023 23:31:49 -0700 (PDT) X-Received: by 2002:a05:6000:1010:b0:309:4358:5afd with SMTP id a16-20020a056000101000b0030943585afdmr3668372wrx.54.1686119509116; Tue, 06 Jun 2023 23:31:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686119509; cv=none; d=google.com; s=arc-20160816; b=ZR4nvrUadrHk/PHnZ5JbG8/5X+5Byzn4ngwzbGG+f391k2h2ktQ74Pyuwhwo5fpwI1 0C6uIrmgyY9L0kFHbpgnhzpY8BmsnQSfDF+xyc3xAN3PP5Zyg/wrZQ9AUI2gYycXZ4PU mIP6q4Skc/xumUKkA/dHlqSkuBi5Gj23TgdMRtj2XM09tt87swQzTD5ijL6fDhsWAgF1 pS5/KxEbVlYeuC0HOeK8SxM1IUYKeDRxDG+HFgREfCZOw6f25DS5JiyvRrnhrD/Y5CLH LJmBrD4k0ZBT39KclQH02/DL16l9v/icMhVThyJHFtA1VyprrYbf942FmoB3zTStUKj0 9SXg== 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=05D4HPKpS5csAs4RXNZbAkWNY/T5yyKIgimbBT1AN0aZjSxQtjCWuyn293xQe8ZggD a++NTHL6NzwSj/Sgd5JogRXzm9lZqzqFQz+laEW8uN658SF/cwz3DdXYjLSkeFGCRFu6 CU/wElulMWwE8mjHqjbxXdEs1D3zJAr/8LO+Chb4ZoPlY8sTd+VE11YhT3UTEtNJ6w6D OfETcIQDUTmL6D2TvzB1b5iiNA6ZkN8dTCSCOQg2XdAiNVnIPl112UWPBYGbHthGrf7G ajCuBclReXaOsqZhMIz92tBJiLHV9ghlaBdOi3vNRjKtcFdPa2xSJ8ilf13/7SlReRKF sBtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bzMNTxZK; 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 d2-20020adff842000000b0030e53a57f30sor966603wrq.0.2023.06.06.23.31.49 for (Google Transport Security); Tue, 06 Jun 2023 23:31: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:adf:eac1:0:b0:30e:5729:b5a5 with SMTP id o1-20020adfeac1000000b0030e5729b5a5mr1086540wrn.38.1686119508799; Tue, 06 Jun 2023 23:31:48 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([37.159.114.163]) by smtp.gmail.com with ESMTPSA id m6-20020adff386000000b0030630120e56sm14385127wro.57.2023.06.06.23.31.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 23:31:48 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Raphael Gallais-Pou , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Philippe Cornu , Amarula patchwork , Maxime Coquelin , michael@amarulasolutions.com, linux-stm32@st-md-mailman.stormreply.com, Alexandre Torgue , Dario Binacchi , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org Subject: [RESEND PATCH v2 3/6] ARM: dts: stm32: support display on stm32f746-disco board Date: Wed, 7 Jun 2023 08:31:36 +0200 Message-Id: <20230607063139.621351-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230607063139.621351-1-dario.binacchi@amarulasolutions.com> References: <20230607063139.621351-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=bzMNTxZK; 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 --- (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>;