From patchwork Fri Jun 2 10:21:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2889 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 00B4B3F1F4 for ; Fri, 2 Jun 2023 12:21:40 +0200 (CEST) Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2b1b554e946sf317591fa.2 for ; Fri, 02 Jun 2023 03:21:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685701299; cv=pass; d=google.com; s=arc-20160816; b=e3ZIkz9oduv03yVGuND+o6EonRxOayvOTTs0XSSkhUyyqz2+JyIHaTwMqFNb3j8nzF APpCUc4dmWLrCqSWZiRqi1kHY9Ml9FxnGCbIQKkqarFfCeqrvkcWmXd7BrOgQi4rl8ZA fDEOgxsGvsSB4v9dHGQ7AMhBpCVAOyw/1nAw2SuInuxZvfvGb95BbXUuJF7meU5HY3UA vJzpYTLEw07D+b3ei3OYqysCCE1EOyQlYSWRfqhAC3MR0SGyBUE/kPGdGplE/Ja7zfjf ssbDRX6k/EnzmUwsTJyP8o9rC+myyo6JsCgiEUIHWpjSH4ImbCkz5vOeEQ70l9gu3r6Z OJkA== 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=d+0TcadFlRGQ4JA8v3XODmPXU8cOvstApylXoRNLO1g=; b=HVvfZkE6Hl7P9h0wRWLDGk9CS9QTiXMkvQJ/T+LFhEa5RS17V/6VLTILF3dM0ZjBHZ 5YrxiVgeqr+0gs9LF8w7XDaHasE1g5pdGf6gQCaVz+bMHE7D+ZtvHUjw79VZXrmuMTj3 zFcx2GxS63p6xMBJ1zsEqN9T90QTWpfjaGAzjEjmv6a4m2olqtdyfnJUmVtVI5q/pB1J N53F9aotopHxNNKv+WZQzhjh0nyGH4lf0ORXIU6PrlBpzOhfhxcnrqUcxK8Dy2nfie8+ IOrC2WqOgZgubwy8YQOA0TEquXNiq6GwKKQ8ke7NiuaoEmwkgunCsoYAODs7rQI8bcRk RfdA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dKNDTUc5; 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=1685701299; x=1688293299; 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=d+0TcadFlRGQ4JA8v3XODmPXU8cOvstApylXoRNLO1g=; b=iPJrZbz4VFtm1t+M/kBRaCaCfhYkq1T42le5ob0Hj/P1XZESjFoZHzVM+UqRVGE3WV hkEx8R8sqirhrS51zm2tu1UO6L0dw1dhTHWJ7gn8VdbzOIEMED8xeZ7WluZ9gQgUVmXG ySJx3wm6wCdUp/vg5Vci5Hflr378j3+Mj5xLI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685701299; x=1688293299; 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=d+0TcadFlRGQ4JA8v3XODmPXU8cOvstApylXoRNLO1g=; b=Z7GylIF1x1iKmLoYMWvLooqLwhHjjwf6k4niSYFdPQNSsTSZoSu6WtBMobDJFVVGiy lNDnZILWJMRekou11FdMMu6g1ubH+oxgrhBAAQWSPOhbJtpkKqk9ypUwi3v6tBHUozsT XxkRoiXlfI6eeLMbVxpVtQpBwxmBNVGpwDKY334kvhvcQHbcfnOUTHVvnCSiVt+t9Vyi CZsbP5KN06yrwFbMrGOpYYr9dLj0Wxtj1z4WgcCZBcNWYh+4nT/L4E+5OcANkzdykl94 6dKasF6BreactBLwQ9qiHGzLyycRpZYBe+2ByzOyQygNHlgkb3nuDETBOrVVAZMIg7/t mrjw== X-Gm-Message-State: AC+VfDxGw3Oe+B7cUjYodnkdCOmtVRgWw313Y3k+WoTAApX4jJt1jhT0 JHB962oaBhjzHUztJbMogqgO5ZgB X-Google-Smtp-Source: ACHHUZ6oV5QVoIOfkShihH9bgTP713sGn2kG2pwm2QDAKmmwZnjFLpeePdEBqVeo+ZVII04q4DHXPQ== X-Received: by 2002:a2e:844e:0:b0:2a9:b6fe:18b3 with SMTP id u14-20020a2e844e000000b002a9b6fe18b3mr1351364ljh.19.1685701299349; Fri, 02 Jun 2023 03:21:39 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:c74c:0:b0:50b:c8bf:7aa6 with SMTP id c12-20020aa7c74c000000b0050bc8bf7aa6ls27828eds.0.-pod-prod-08-eu; Fri, 02 Jun 2023 03:21:38 -0700 (PDT) X-Received: by 2002:aa7:d693:0:b0:516:2fa6:74ef with SMTP id d19-20020aa7d693000000b005162fa674efmr1666461edr.14.1685701297810; Fri, 02 Jun 2023 03:21:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685701297; cv=none; d=google.com; s=arc-20160816; b=OkR3OrpeD9dQWGNGzVBmUM1+WRv8KuyfVIK8G7qYKdHy80n42g9h34FCsEzKOdzQh3 bhePnxha6RQBiQyQSu5NwlSJivpMx1jTVMhYRwTfLMaId74fvERSgQsEilIHtb4IHFrJ lUe9ZNKlS4f96UBmoPGw88mEiYJgSBOYbqKuEuTaNDuOOVVPTZ0QDwVl7UwJrgVzBDFB 6/rbQo8lm4WF+Pv/K3RKx4i8bzLXXfdILJCt0kKna8AKzIjHiKJzJUx4t6cWxqSnfb2F qEnACtq+cPqCrC9IX/99jmySbSX/8GG36y6Mpvm5YBncsQH8C9+Ve7aY92WKOInMQpQR FA+w== 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=tlm5X0f1SJIUHEa+Ch7CRBAmlhS5LXsyaOP8GZ1/KKI=; b=uhy+crP8KfKv0La5D2xLYnb1npIdsi43mO5d6vaesXUaoHzSBgVn1HpnwOyMfqGttp tsLckaiMKdWgQP+p+n4qs0DHqrYNP6XWZsPZYyyCPCgLIEnVWYMJxY95MYbF4wqcbOCz gADUUUFayl3KdQcjHJX8ZxWVweLUdmoi+XlLmqT/kD3MNc4bCQExZjXKLe/bPECGnSlB 8Oda3/aftKSohqfEJWfrTmZzPlWaTx8+vcw1B4uzNhXRbkqxAfVFycCRfXtVbYKtxOsD bEGGSRcwyHGAOIUwYt0tPl2Nglx14M+cYa4OkX9wOwVdC4dV/9zUoB5lvIcQWxFFXY/m YNfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dKNDTUc5; 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 f5-20020a50a6c5000000b00514bacca9e7sor442538edc.5.2023.06.02.03.21.37 for (Google Transport Security); Fri, 02 Jun 2023 03:21:37 -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:aa7:c997:0:b0:50b:c630:a956 with SMTP id c23-20020aa7c997000000b0050bc630a956mr1635028edt.17.1685701297624; Fri, 02 Jun 2023 03:21:37 -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 x24-20020aa7d398000000b0051499320435sm528887edq.14.2023.06.02.03.21.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jun 2023 03:21:37 -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 v2 3/6] ARM: dts: stm32: support display on stm32f746-disco board Date: Fri, 2 Jun 2023 12:21:19 +0200 Message-Id: <20230602102123.3345587-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230602102123.3345587-1-dario.binacchi@amarulasolutions.com> References: <20230602102123.3345587-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=dKNDTUc5; 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 --- (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>;