From patchwork Mon Jun 19 16:55:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 110118 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3137798vqr; Mon, 19 Jun 2023 10:03:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ocCUazLaWRccovHFhcndknHIcuvm1ciYsyi5cQGhG8BfytcqYlmMtMbRld9BJaOP14cAV X-Received: by 2002:a05:6a00:1152:b0:62d:8376:3712 with SMTP id b18-20020a056a00115200b0062d83763712mr7032607pfm.28.1687194198467; Mon, 19 Jun 2023 10:03:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687194198; cv=none; d=google.com; s=arc-20160816; b=q7o9l4J7PdpWvs5BluE/c49LMZK1IKs8snqVkyAF695FsRooxCs7psMHWJr5m1p+j8 UJf7R7ps4lvaM9Jwou+jYWRSTbqALF+0Y7izIV7NIeZsaDWfoH6BqPC15T4Egl3HcUwI u+8S2eE28g1nHGHEnc7n0W66pNDuRJP40tFY5z/7bIwCRyOGEOxXS+OCK1GvttG8eFCO TLMLCGaa7k6xKik06UD5GAbjy0IQdnFNp3KibsdxJ+O7Wl9yW/FbqrKCkW68I0gTSMzA zFbiqhsFFFsEgZVt/Q8tp+m4eV8ZwV7m4WmWbyN1Hl+UKlYbcfQV4xS4s3bpmtMByOca 8e4A== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l2-20020a633e02000000b00553b512d1f0si3376786pga.433.2023.06.19.10.03.04; Mon, 19 Jun 2023 10:03:18 -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 S230325AbjFSQz5 (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769151343687562294?= X-GMAIL-MSGID: =?utf-8?q?1769151343687562294?= 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>;