Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6637730rwd; Mon, 19 Jun 2023 09:59:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4vgZ3Ym68uI8KzRjwDfx1+h50nSUI6043rAZLXC8C4W4DGBTTZ0m9lvpFoV7ZB78IOhajD X-Received: by 2002:a05:6808:10d0:b0:39e:cb0e:99da with SMTP id s16-20020a05680810d000b0039ecb0e99damr7714417ois.13.1687193995640; Mon, 19 Jun 2023 09:59:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687193995; cv=none; d=google.com; s=arc-20160816; b=idvhfl9MUpwgilUXsKfKbmUUZumWLuIQdodF8bKQp0SDQWmBA9QVYf0+AbRNi4erq4 gNk0yqEdSNUZj637zfXyZiRF1AboFWshk82uYXpThOEQEq7vNpbCD3sBW5vINd1oprUJ Csl3KYO0fd9dMK2h0XIk1o5NyNhLdnCscElgV0ReA+NI+0WjlpjK04lCWJE2Y1IzKrb/ /nfhPJdLqtY0bkG3IHbroFTjgBBk/N+qfEUz77Lu2KR7SoP6CKUiQ7KQmUjDX9pH/air 3bfWXDJsJo0wFX3seYEM7YUHd7Acv3Jr97JuiqeiEKMbbRjU7LZe55YaxFawoQoSo0L9 krmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tlm5X0f1SJIUHEa+Ch7CRBAmlhS5LXsyaOP8GZ1/KKI=; b=y57w8/QCs7W33z+v4S14EIjxTs9oZgNwb2ZS6JBwUQvYBGaJEFwy4LiOyzX2a+rSbh btKGVM86yGmTvTxweT83Wc2GSg/cN06Ldz57YdYlRUNVNemdwEQSi1F4LQgdAnZkWTii 1kTmoht89tgdd8vBD2vZIaAwvEw+QjaxoCQhLaQzo+GdMG3z//oxQ6SDrHRx79wSUVGO 0d4Bfp7jOybE9TnkqD6sZPp4awKDUjGkWsRZPV3xw0i91+Dz1+UgWG9CAfo8Ubu8SuI5 oRjasd2UJrrvZLWsolSsV+SsiVQ2sCCtY2pVK86G1OjJhWYX2nLk49aFpjslUUwtCkvs 3TBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SbYaNKhZ; 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 t22-20020a17090a1c9600b0025677f1197asi7715294pjt.12.2023.06.19.09.59.39; Mon, 19 Jun 2023 09:59:55 -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=SbYaNKhZ; 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 S230270AbjFSQz5 (ORCPT + 99 others); Mon, 19 Jun 2023 12:55:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbjFSQzy (ORCPT ); Mon, 19 Jun 2023 12:55:54 -0400 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7244FE79 for ; Mon, 19 Jun 2023 09:55:46 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id af79cd13be357-763a2e39b88so63212485a.1 for ; Mon, 19 Jun 2023 09:55:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1687193745; x=1689785745; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tlm5X0f1SJIUHEa+Ch7CRBAmlhS5LXsyaOP8GZ1/KKI=; b=SbYaNKhZPSx1sEjz/QOmKUpfVdd4KYPGpnFG5o2FjQoLIdAKa/JtEsZyqqQqKAnzk4 ZmKpBIt7MoAo9tgpvbeV2PRVwqZHASQIuz747g1ZEkSlH503cifT+6L+NLoaYUbMGItT lh1ITnNB5CHjf2eheHdqIKGta6wxVFcWREhxI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687193745; x=1689785745; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tlm5X0f1SJIUHEa+Ch7CRBAmlhS5LXsyaOP8GZ1/KKI=; b=AclWNavpV05mSdWzDe1iBEBSFP6W9B6ct6QTA+N3qJyAm5Z+qr3rhp+ETCzDsoR1ti F8AUQfm1zQ2OQRJHL1aw2Ycxwj7lS11b4n8D+YIESclw9ZOnLuWQzgQFhtdwhAxuLgGj 1Ms2EprQuaxpZcm/4AweVI9zYWy2G3H55Ecbf+48R0TnuA9G6X87hJ6CvVF0Sftij754 v0ToBtfRiVpMJJqQMdIFinckFfbErzAV2MgG+v/TgFxdNkdjfyrSbjk79MTYCMO0iiou tHFlFHlCKFfQeNQ11F+NXzjq4PLM67CP/dU/J76TmYsnSQUyyIb/DfWmMhjxW8aemL+d p1Jg== X-Gm-Message-State: AC+VfDwHOvYk6rEpe28JAi+6Wxue5+ctfOunBok2IPAclvyoRtV0baFx Kld4++2EwVIx9xZiZ3IMqod/VERZ2oaztAeoZY0= X-Received: by 2002:a05:620a:20c9:b0:763:a671:b983 with SMTP id f9-20020a05620a20c900b00763a671b983mr1285107qka.11.1687193745422; Mon, 19 Jun 2023 09:55:45 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (host-79-25-27-4.retail.telecomitalia.it. [79.25.27.4]) by smtp.gmail.com with ESMTPSA id p23-20020a05620a15f700b0075d49ce31c3sm109103qkm.91.2023.06.19.09.55.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 09:55:45 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Philippe Cornu , Raphael Gallais-Pou , 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 v4 3/6] ARM: dts: stm32: support display on stm32f746-disco board Date: Mon, 19 Jun 2023 18:55:22 +0200 Message-Id: <20230619165525.1035243-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230619165525.1035243-1-dario.binacchi@amarulasolutions.com> References: <20230619165525.1035243-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 autolearn=unavailable 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 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>; -- 2.32.0