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>;