Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37902022rwd; Tue, 11 Jul 2023 23:30:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlEsi3pUEJZKKtAwQTM40Y7IqiZmxxUV9xfSoNG88LRm9vN5aexxtW43OVaKmaD4VlVfZYbo X-Received: by 2002:a17:907:2991:b0:969:e95e:e4f3 with SMTP id eu17-20020a170907299100b00969e95ee4f3mr15920341ejc.55.1689143403231; Tue, 11 Jul 2023 23:30:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689143403; cv=none; d=google.com; s=arc-20160816; b=Hl5Ij0gSaqoGeLEAvTH68pSQ0YTaxEX5+nbrLtoBHuUpwgK65Ljf/IGzhVvCVtpLbn olMQQHK6uk4GA3zdsx0dHBltztkQJbJ+XNgSHiKnrrxDqqZCScZVynfrc1ctdWRxPNCA p1PnvtuH1YnUXomoFJLKOYkJGlPTWWMiiwOdvxOVAalcRYpaKH+Dm0Lq2SpOl8ATiF8A YsuLiD74WXhBMcm+WGgxcOt9KGOoYrIgAxe9TdAMQdv2J9+05/9FwndiWe+n47CbjZco Mv8FhYcvhzqytYxdhlyXeERih5rptgRmsYywcLyPfCvItRQ0Rs6VaAzuW0JVnwTOY9Ic aYyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=3UcQnC6XJzlnBm/ohIqlFQ7AujbAuynZNi/RKUXh2qI=; fh=smBQfUSCUIwpFphPSiucB+hT+7MnzwK+S+Ge5tJ9BZI=; b=h57kAo8L2iYzOenJduAQMBQdo81GpRgkjmoHuDYmflclEKk1XdNvAsKRjJo51/XEhe usTd8S6oCmgXytIn1ZOI7FYhvIC/UJtEVHPJ9ZkceQTksbZr2ic/H6x5Jwg//fU4OPK1 uCxH4HPdoTtUbxb9uJot40LyTLCnf8dYlYPzpp8VsNlbbZ1FrQu00lAoDd7AjOHlwevt +dOzC2VJ5IsFLPX99MI3wsJ75mnShkr76CowF0dXrdQFkEbUs06oc47qur8JTHnydLrI t8ZygZcME4moEhNGef5n+SwQltzjG6URA/ivDrXI7Dm4DC1NQrzfWc5mtEOZ8C1x0VId esMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VtqX1eUc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mj11-20020a170906af8b00b00992bdcb72f0si3359231ejb.339.2023.07.11.23.29.38; Tue, 11 Jul 2023 23:30:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VtqX1eUc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231874AbjGLGSo (ORCPT + 99 others); Wed, 12 Jul 2023 02:18:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229928AbjGLGSn (ORCPT ); Wed, 12 Jul 2023 02:18:43 -0400 Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCE3E10CB for ; Tue, 11 Jul 2023 23:18:41 -0700 (PDT) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-5703d12ab9aso76899937b3.2 for ; Tue, 11 Jul 2023 23:18:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1689142721; x=1691734721; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3UcQnC6XJzlnBm/ohIqlFQ7AujbAuynZNi/RKUXh2qI=; b=VtqX1eUcALhqoeJ19D0Agh84NQLT8VLTnTTh6WuOE4FSY5WZOT2y9ENKXIY0cL0fi7 Hw94ksyrq+f1ItUFA5cbM1IV+ztHYhPF078lCznoJwCEnJcmeTJ3VGyPT00OD49rHCXh dFmZOI9XNJZkRaZJiEqyEQZVnI8LJ53267v+Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689142721; x=1691734721; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3UcQnC6XJzlnBm/ohIqlFQ7AujbAuynZNi/RKUXh2qI=; b=Pjn0wY1G78Vglv7/IPwxQX1bfd7onmpAMJDN/6bDyVKXoHy0E7HVQgePx0lf2/JE7k 64Ddm/cwbasyXPh9Xd6RsTYzVEqiSxoOUwHeMqgjp/HQQqDtj6i1cLQ6bMF9CPyp0P3f hTamsF5UbTqhVBkCSKVhZ+D45KRilNQvb7gDR5ytMvobt/+KF35FSufnplWxqVbONJp+ MDwuPvhN8G7kldHwsSV6YE8cDTqcW0xrBbkd5LT1Kc8pqvX+cE9mY+b35lGwlp+8s8XL 5P1+JWjnASCwUQa5umtK89oxeOKAXXFp7K+wFyWH9QC5cUqnxv/gLJd2DBIhKRtfxOSt XSGw== X-Gm-Message-State: ABy/qLaR8FIiQhCiQGjvuUTw3A8mAGfd+2V6FuuP3G7bxAf81FWzLnWV O6Inw9m6HvYDH2K8ccFftg2lcxh+pVSq2+ls7JiyGA== X-Received: by 2002:a0d:dcc4:0:b0:55a:8c02:c00b with SMTP id f187-20020a0ddcc4000000b0055a8c02c00bmr18097989ywe.25.1689142720925; Tue, 11 Jul 2023 23:18:40 -0700 (PDT) MIME-Version: 1.0 References: <20230629083726.84910-1-dario.binacchi@amarulasolutions.com> <20230629083726.84910-4-dario.binacchi@amarulasolutions.com> In-Reply-To: From: Dario Binacchi Date: Wed, 12 Jul 2023 08:18:29 +0200 Message-ID: Subject: Re: [PATCH v5 3/3] ARM: dts: stm32: support display on stm32f746-disco board To: Alexandre TORGUE Cc: linux-kernel@vger.kernel.org, michael@amarulasolutions.com, Amarula patchwork , Philippe Cornu , Raphael Gallais-Pou , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexandre, On Tue, Jul 11, 2023 at 2:13=E2=80=AFPM Alexandre TORGUE wrote: > > Hi Dario > > On 6/29/23 10:37, Dario Binacchi wrote: > > Add support to Rocktech RK043FN48H display on stm32f746-disco board. > > > > Signed-off-by: Dario Binacchi > > > > --- > > > > 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 functio= nality. > > 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 prop= erty > > - [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 b= it 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=3Dc42a37a27c777= d63961dd634a30f7c887949491a > > - drop [5/6] drm/panel: simple: add support for Rocktech RK043FN48H pan= el > > Applied to https://anongit.freedesktop.org/git/drm/drm-misc.git (drm= -misc-next) > > https://cgit.freedesktop.org/drm/drm-misc/commit/?id=3D13cdd12a9f934= 158f4ec817cf048fcb4384aa9dc > > > > 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 =3D <0xC0000000 0x800000>; > > }; > > > > + reserved-memory { > > + #address-cells =3D <1>; > > + #size-cells =3D <1>; > > + ranges; > > + > > + linux,cma { > > + compatible =3D "shared-dma-pool"; > > + no-map; > > + size =3D <0x80000>; > > + linux,dma-default; > > + }; > > + }; > > + > > aliases { > > serial0 =3D &usart1; > > }; > > > > + backlight: backlight { > > + compatible =3D "gpio-backlight"; > > + gpios =3D <&gpiok 3 GPIO_ACTIVE_HIGH>; > > + status =3D "okay"; > > + }; > > + > > + panel_rgb: panel-rgb { > > + compatible =3D "rocktech,rk043fn48h"; > > + backlight =3D <&backlight>; > > + enable-gpios =3D <&gpioi 12 GPIO_ACTIVE_HIGH>; > > + status =3D "okay"; > > + port { > > + panel_in_rgb: endpoint { > > + remote-endpoint =3D <<dc_out_rgb>; > > + }; > > + }; > > + }; > > + > > usbotg_hs_phy: usb-phy { > > #phy-cells =3D <0>; > > compatible =3D "usb-nop-xceiv"; > > @@ -99,6 +130,26 @@ &i2c1 { > > status =3D "okay"; > > }; > > > > +&dma1 { > > + status =3D "okay"; > > +}; > > + > > +&dma2 { > > + status =3D "okay"; > > > Why do you enable DMAs ? It seems not used by LTDC. You're right, I'll send version 6 shortly with the removal of DMA. Thanks and regards, Dario > > > +<dc { > > + pinctrl-0 =3D <<dc_pins_a>; > > + pinctrl-names =3D "default"; > > + status =3D "okay"; > > + > > + port { > > + ltdc_out_rgb: endpoint { > > + remote-endpoint =3D <&panel_in_rgb>; > > + }; > > + }; > > +}; > > + > > &sdio1 { > > status =3D "okay"; > > vmmc-supply =3D <&mmc_vcard>; > --=20 Dario Binacchi Senior Embedded Linux Developer dario.binacchi@amarulasolutions.com __________________________________ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 info@amarulasolutions.com www.amarulasolutions.com