From patchwork Wed Jul 12 06:29: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: 2939 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5912640F4A for ; Wed, 12 Jul 2023 08:29:28 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-51a38fb9dc8sf4132460a12.0 for ; Tue, 11 Jul 2023 23:29:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689143368; cv=pass; d=google.com; s=arc-20160816; b=0aqbHEaORpgU3/x9l6ThchZO5dALw7DhF2DGbwev4q9mb1SGQ3WXzhVn0UKLWy1D1m fdUy0aJ5T8rnA/th/h1YjFMZlnPhwuPNFb27ozldxOlWFBIkcuRwuZvFsC6t2uSla3Hm AW9uqq3UGNw4mNdqk60eCXzicYg3zCZWWk8MaAMTgMTToY1VS5AKGyL+h1Hz5m0KqC0p ooibACPT8wTExwX7ndSlNulFovWQUJq4BvELLHTZDOtfLQez251nsWvZI5Ci1rz+w+KG iq8qFK+CKV/O1sIag0ULyyYl2cWqwJuBPfu+OakKFbgJjWc7dfNtKk3dXptpyy7HO2o4 oXhQ== 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=7GthZH0C52ytA+eNmCwpiMtW5oiSGRqtQGLrVRK5PZE=; fh=tzbQPq+N7grO1gGa+bAwyFl2D209FzUnZRd8HGB+Xqs=; b=U5bYc0JGOi43c1OSRjc1RBa07jC9Cfou57iuqNYEIiu7IXRsu0C1G5d0Q9Q2rcHKd9 UR+FRTPtrdNBVkxo5IpT5f7AHjl7YcOxd1i9WXfbs8D8NVbHaHqMKfADp/JQkuN/NrLD rHXNQbslPfXA3luP2EPSDV3XtDe8I9WkAujY2/Bg5gsybBn+W3CCusm8R+0x0tsUKhKC E8jkWug21c/vNbc/9iIgZg9QJtc49mk4zumicm8ep8vnYX2YkjfZ8Oz7a7JI/drGd43p EQwmISQgHpCCTrq/kob6jVems96sbny5MOPd5gP5SkF5VdnTgl3Qkkx6NxnUG6YEDjGl ChCQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HEETYVF3; 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=1689143368; x=1691735368; 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=7GthZH0C52ytA+eNmCwpiMtW5oiSGRqtQGLrVRK5PZE=; b=dn0S/NKr9epbXdfDOuuwiXP7FOhpT/NuX434bcF1PhVkA79QYT+x5xsmrCTDQzQp4e sKePkaiu6sKehu07jPhcSAZBPJ1nrhj3SQ0HExkPqwXbtaF6aB1uhTkPYPgPuxicebO8 Qs3vhPgEJgzb6Dl0gQs6zm14QmtBKSMcreIo0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689143368; x=1691735368; 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=7GthZH0C52ytA+eNmCwpiMtW5oiSGRqtQGLrVRK5PZE=; b=Nt+wOrgkmqat3bZFLuZj13I49o9vMk98H2anNJQgzuAA50HcSmYT/1+WEIQ/ItlOdF ruS1LbLwUzfBRG+XLYLds26zRblMiGU7wGnNgltgmGeq/HXYq3NjsKSbG9NQPYHWA73F vRaQ/mNuOIzX9W/NHOVbGbCA0jD492Nd1pRw10/v6pGR7v7GPX4+6gfZxnhfVSAkA4tD xLDvPQ2cg8W0th4vqm8olv+4KqKlX8WqXtUX+RTEa/ii33c9fxwom6m9HDAPaY7UegJm So9fDXFZZyL/9WBpZh+jBB428XMDNylJGCJDGn5ajq0E9nP+SfQrdznBUzcXor/YeA4j +Hvw== X-Gm-Message-State: ABy/qLaUHfADvnayXIQXjHW1IpVLzzKQEsD2LvgCXpcUgA4IC+vvKCXh 8pVkYQfv4PfC/gu1tUUsrUVXO0o5 X-Google-Smtp-Source: APBJJlFylQD+odx6QClHI+ldxHJqQkmeBz/pqJ0Du83MpghzFzbRdNgSsTfltTIks36GvnKNRHqwEA== X-Received: by 2002:a05:6402:7cd:b0:51e:587c:9a2a with SMTP id u13-20020a05640207cd00b0051e587c9a2amr10235913edy.17.1689143368142; Tue, 11 Jul 2023 23:29:28 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:1a57:b0:514:a0b8:647d with SMTP id bf23-20020a0564021a5700b00514a0b8647dls1638188edb.0.-pod-prod-02-eu; Tue, 11 Jul 2023 23:29:27 -0700 (PDT) X-Received: by 2002:a17:906:259:b0:993:d5bd:a757 with SMTP id 25-20020a170906025900b00993d5bda757mr18585746ejl.19.1689143366571; Tue, 11 Jul 2023 23:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689143366; cv=none; d=google.com; s=arc-20160816; b=P0PNcVB6K8GwCjZiPi1jRwB9HDpuywP7AuU3Eu6l+qeqcyDa0EPt5qe9I5AeKyvW4/ YtpNRBmdtuYiMOJzJ+hfaPdxti2jo+on3uIZE3K1qVwr29Kd1R5UYhLpAd9Y6VbWkEx4 WpMzmV5hzPmruMdGaVJMLTNN7fNJhwSA8LIQant9sWyNMk7r2JAAmQuYc1OvAZhpxql9 JqikYwJGC1xyCKbwfbWfNApDeL3kj0L2OyGBE0ojk96OjYh09u5eXRt/SEsAw6lLOfTf mEMUpIxagCe6Xfa0oCugG2Mr35wxe53igCstVnszzRny+7G8xzlSonDo/FsoNCo8UP6s n8bg== 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=YGihCxuuhTbmdH2hnVIgkw0LhiTdDuWDElMvl2JmI2g=; fh=tzbQPq+N7grO1gGa+bAwyFl2D209FzUnZRd8HGB+Xqs=; b=ZWY2LoUy9lVaqHYhTTLZrmkv+Zv0QTJnE0M018KbEVRz2vBnc6pTrGapeBRasQ3ZfR hIcOhib8u1016lMg5yxAoRtIUPOpmdCtl1fh/dMhy6VCkJ0jPWTjpvkfxq9xPm5N3631 RETYunZNa2a+uiYu5lMi8rtxFWsGbZdqMhN0Ro0wz6f1+pBcuOR3kdYqd6go41BJbU7m CM53TaKdo6iUv0Pgqv4NHW2pYPpNVTVT8QaFb1arpooIMvVMsEMbtJl7gApE8dAqVWbx bfTN5nZb+Iu9Lmv03IRIYW41HdQTGJbmrRwYqoRlHdypMqq9i5ur90q+ZCM9OKXquYPA 9cbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HEETYVF3; 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 e22-20020a170906249600b0098d66f0d6d2sor1387399ejb.1.2023.07.11.23.29.26 for (Google Transport Security); Tue, 11 Jul 2023 23:29:26 -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:15:b0:993:f611:7c95 with SMTP id 21-20020a170906001500b00993f6117c95mr12384538eja.39.1689143366256; Tue, 11 Jul 2023 23:29:26 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com (host-82-58-49-236.retail.telecomitalia.it. [82.58.49.236]) by smtp.gmail.com with ESMTPSA id d21-20020a170906371500b009890e402a6bsm2065390ejc.221.2023.07.11.23.29.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 23:29:25 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , Raphael Gallais-Pou , Philippe Cornu , 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 v6 3/3] ARM: dts: stm32: support display on stm32f746-disco board Date: Wed, 12 Jul 2023 08:29:18 +0200 Message-Id: <20230712062918.2248573-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230712062918.2248573-1-dario.binacchi@amarulasolutions.com> References: <20230712062918.2248573-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=HEETYVF3; 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 --- Changes in v6: - Remove dma nodes from stm32f746-disco.dts, they are not used by LTDC, so there is no need to enable them. Changes in v5: I am confident that framebuffer sizing is a real requirement for STM32 boards, but I need some time to understand if and how to introduce this functionality. Therefore, I drop the following patches to allow the series to be fully merged: - [4/6] dt-bindings: display: stm32-ltdc: add optional st,fb-bpp property - [5/6] ARM: dts: stm32: set framebuffer bit depth on stm32f746-disco - [6/6] drm/stm: set framebuffer bit depth through DTS property 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 arch/arm/boot/dts/st/stm32f746-disco.dts | 43 ++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32f746-disco.dts b/arch/arm/boot/dts/st/stm32f746-disco.dts index c11616ed5fc6..c00d34179e2e 100644 --- a/arch/arm/boot/dts/st/stm32f746-disco.dts +++ b/arch/arm/boot/dts/st/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,18 @@ &i2c1 { 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>;