From patchwork Sat Jan 27 15:28:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13534111 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9C8CEC47DDF for ; Sat, 27 Jan 2024 15:29:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mNqRgx8iiqiiyZHbZiMkpVRld6Bs72l3UPnoMYgySH8=; b=tfcU+rcWnGsbmw KHS1IR2sIKAjPazO3SVSLbNkz1ZeZ3x+XiAhLuWZITKRBorY74NRmE3zhHIhDIPXqFLvhLiHMNkYp q5Np4oUGE+eCz1q05G2eJE+FEbFeBbV+rdAS1j9NcvodtTZV6FYo545ED9ZfPu556uEB/9eUzYGZS IEA63Qk2qCjmk4Ln5YfiolJMI2XkcUmHPZdqJ4hlcIN18C7L/kwOXfpHwEO/4SXiA7TMPQDRpQJuF 0wCR0FWFQ38A7lcb0dgSTDYeb61jNOJ9abB0CsUHCoOmQGZZCMcIcjgGMw8ULWh5Ko+y5dVdFzBPR Uh25RFV9LYMFVYosXzXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTkcP-00000007fiZ-3gm8; Sat, 27 Jan 2024 15:29:17 +0000 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTkcC-00000007feO-0WHL for linux-arm-kernel@lists.infradead.org; Sat, 27 Jan 2024 15:29:05 +0000 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2cf1fd1cc5bso14491031fa.3 for ; Sat, 27 Jan 2024 07:29:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1706369341; x=1706974141; darn=lists.infradead.org; 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=rQ9PYTfLUcfjyRJqgcRWuTdkFl4CeqFScaddJa4Lyi0=; b=Nfh/nh+iwGcl31b76LNwH3cAq4EvJRs14ymcTBHPsLanUNIbnA7MT8QsntOZX4E4xV PBmmPMLKI27n+QVd3d8c0udqbUuYEm3PRpvhuMU7jyDIltF+1DJA0pY65qtxoo7fxR7b sENBg9ynLNpjyWIvrnuUW4m+1zbGn+ht37tJc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706369341; x=1706974141; 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=rQ9PYTfLUcfjyRJqgcRWuTdkFl4CeqFScaddJa4Lyi0=; b=EzfvzsmzSE9BoJHwY4HdCt+1brgP65KbyYRIALPZE249hA3xv5IXffR9wAfqrUOxiO x/aDGA2E9+duTQccmaatm6LBhjZ2y2SdUoOl7zmk8N6PDfv8NLVaZq8R4Pw/sNDU+TNA 4YH0/HbPS0l4JWQt7B++ULasua13rsY6xk6r87yK8sI+Fs968nEpeRNlZqtCNgminSuV j31IYxX2NxrX15sndP0jwmV+K6ztVBVHXnjf0atx6kHAO6GmaGiexJ9++PWS0E62UgAe xYcA4qk/ODXSnv9dcRUxXmAeSvG41CuDentDoeB8oBevkd2y8y1wdd79zbsAGWXNr81j ffGg== X-Gm-Message-State: AOJu0Yyj12bTv+Unp2Te+LjEYhmOYE7SOFmCIOqSaC5Y2voDG+tGgIgv ZQDaaI3cg32a9qo/+j7F99xUvzuH91qmdU8nU97Xv9T59IB5S+21WyTz8R6aiRI= X-Google-Smtp-Source: AGHT+IFbqC5mI6d85g/WTmEICTQPFRXc2Q3MZ26rVAnIhbQylAq8FLk78zQxkd8AP9QrJIUphT0u1g== X-Received: by 2002:a2e:965a:0:b0:2cd:143c:9283 with SMTP id z26-20020a2e965a000000b002cd143c9283mr1436284ljh.27.1706369341158; Sat, 27 Jan 2024 07:29:01 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-21-103-141.retail.telecomitalia.it. [79.21.103.141]) by smtp.gmail.com with ESMTPSA id l5-20020a056402344500b0055974a2a2d4sm1745220edc.39.2024.01.27.07.29.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 07:29:00 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Raphael Gallais-Pou , Lee Jones , Alexandre Torgue , Dario Binacchi , 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 v10 4/5] ARM: dts: stm32: add display support on stm32f769-disco Date: Sat, 27 Jan 2024 16:28:48 +0100 Message-ID: <20240127152853.65937-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240127152853.65937-1-dario.binacchi@amarulasolutions.com> References: <20240127152853.65937-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240127_072904_189631_6A1079B2 X-CRM114-Status: GOOD ( 14.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The patch adds display support on the stm32f769-disco board. Signed-off-by: Dario Binacchi --- Changes in v10: - Drop backlight. From a closer analysis of the schematics en.MB1225-F769I-B01_Schematic.pdf and en.mb1166-default-a09-schematic.pdf, it is noticed that the GPIO I14 is connected to an unmounted resistor (n/a), making the backlight functionality via GPIO unusable. Changes in v9: - Rename panel-dsi@0 to panel@0 to fix yaml warnings Changes in v8: - Remove unit name from 'ltdc/port/endpoint@0' to fix the compiling warning: ../arch/arm/boot/dts/st/stm32f769-disco.dts:189.28-191.5: Warning (unit_address_vs_reg): /soc/display-controller@40016800/port/endpoint@0: node has a unit name, but no reg or ranges property arch/arm/boot/dts/st/stm32f769-disco.dts | 64 +++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/st/stm32f769-disco.dts b/arch/arm/boot/dts/st/stm32f769-disco.dts index 660f85984164..52c5baf58ab9 100644 --- a/arch/arm/boot/dts/st/stm32f769-disco.dts +++ b/arch/arm/boot/dts/st/stm32f769-disco.dts @@ -41,7 +41,7 @@ */ /dts-v1/; -#include "stm32f746.dtsi" +#include "stm32f769.dtsi" #include "stm32f769-pinctrl.dtsi" #include #include @@ -60,6 +60,19 @@ memory@c0000000 { reg = <0xC0000000 0x1000000>; }; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + linux,dma { + compatible = "shared-dma-pool"; + linux,dma-default; + no-map; + size = <0x100000>; + }; + }; + aliases { serial0 = &usart1; }; @@ -114,6 +127,45 @@ &clk_hse { clock-frequency = <25000000>; }; +&dsi { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dsi_in: endpoint { + remote-endpoint = <<dc_out_dsi>; + }; + }; + + port@1 { + reg = <1>; + dsi_out: endpoint { + remote-endpoint = <&dsi_panel_in>; + }; + }; + }; + + panel0: panel@0 { + compatible = "orisetech,otm8009a"; + reg = <0>; /* dsi virtual channel (0..3) */ + reset-gpios = <&gpioj 15 GPIO_ACTIVE_LOW>; + power-supply = <&vcc_3v3>; + status = "okay"; + + port { + dsi_panel_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; +}; + &i2c1 { pinctrl-0 = <&i2c1_pins_b>; pinctrl-names = "default"; @@ -122,6 +174,16 @@ &i2c1 { status = "okay"; }; +<dc { + status = "okay"; + + port { + ltdc_out_dsi: endpoint { + remote-endpoint = <&dsi_in>; + }; + }; +}; + &rtc { status = "okay"; };