From patchwork Wed Jan 24 11:33:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 191521 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp933388dyi; Wed, 24 Jan 2024 03:53:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJypCZfp498uoEHx6CRWZWCytctqsP2zML63GdMnpfWOPJ6i1WCmdnyASgfNb+asfTkt0m X-Received: by 2002:a17:903:2343:b0:1d7:6dde:ddb6 with SMTP id c3-20020a170903234300b001d76ddeddb6mr696556plh.37.1706097219968; Wed, 24 Jan 2024 03:53:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706097219; cv=pass; d=google.com; s=arc-20160816; b=WPFek/V6N5XolfzIr73RaoJjUrWXARbo1tyRyviIsjES1TfDA75YelYkWiufKhY2Zy uZz0PIxNcrUODSrwuWAtEgpHxdpC6fg08PoMInsMOiXxOziZOB+q+GEzGYG70YG5JBlh auuGt6veDOvO9IgUP5b2wjWBL9w+IXYBV8M80RmkyBg7NShVL35sCWSA7iNcU3yoh9tT rwjFbg0v+l9aA0MoVnXs4eJQN5VofeGgdR7XpsHS0LIOUyGpWwfVTcd7kZziEtO4C2fs +6jY9XoJrKU/5zUoY8yVOmZSTsn8UGCiqwe6cyvAeLj7MhOz2GSLhDvwj8o2Zd/RGQIJ FGag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=n4WZCMaxTTTK5Kb267g6Dn7+KP5+NrOJpg31LGj1mtM=; fh=UPCnQUmkbEGhzGnX2fmijssNkl3/MYm8L0o43dVaqbk=; b=O3GKkkXfel/WLnt3pBy9Z0JWp50GI1YM5xBN1YJLJJUQhTdDz4OCof/j8lATtmNOjj OMs3n7uQlcklh1T7VVwi9Ev90hXvt1lzZSCF113PJIYb0WUDmNxdDNz/ahGv8qwvm0ti fbx9vE1++IUnBvvZDfoqc8r13cr0UrJWKWfQReISuoY9ek/ZOG/InRF19Qxcas6kU/OJ EVQT4TDOX9uG3fXiZkOrPZEbxxpsP6GxdNEwmqnMLI5rNe3T0EX2E7a96mULb7+AJK51 ldwbe1qdU04JaFGgSxVeLXCmQJ0mPV3V75kYPYjY1PQsBszyuyuM91vJ1q5Pw5PjJJVc MAZQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YjYtRE30; arc=pass (i=1 spf=pass spfdomain=amarulasolutions.com dkim=pass dkdomain=amarulasolutions.com dmarc=pass fromdomain=amarulasolutions.com); spf=pass (google.com: domain of linux-kernel+bounces-36874-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36874-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g6-20020a1709026b4600b001d5f24c1792si11333109plt.367.2024.01.24.03.53.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 03:53:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36874-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YjYtRE30; arc=pass (i=1 spf=pass spfdomain=amarulasolutions.com dkim=pass dkdomain=amarulasolutions.com dmarc=pass fromdomain=amarulasolutions.com); spf=pass (google.com: domain of linux-kernel+bounces-36874-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36874-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B066529583A for ; Wed, 24 Jan 2024 11:34:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26A231B27A; Wed, 24 Jan 2024 11:33:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="YjYtRE30" Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD21020B27 for ; Wed, 24 Jan 2024 11:33:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706096031; cv=none; b=gYTcAC5xBNbPI8myrEmfzt/+LcsV9ihlXILaA4aMyZa7IoVhZjLP33yuN9qhtB/REBGuxuVuELfR6BtYmp+ov30QRDKympr5TeUhBTYqGEjobTecyhELFIgNbuLU7yf1EpMkCrkTBLPiz2oEKwahaCyFC3GvbYrLlppQ1dEAf1M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706096031; c=relaxed/simple; bh=ehzpk2SH4lnyatP6zppqCWCZjaU1XqDFcQhxQUG8cxU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C7dt3uOogw45D6niHyKIzlEvkcK52lARzRtIWwKJ9VPqgkx5wYct9VmBz61suuxadNxnhzEQnSgYZjEHMa97fWfjw+78PAsNwZBGdmySz1zyi5eWKzr2F68ap6Ecsbq4fU0zMO1bdATXKtd2PaAi4NekJ/5RZY9MTwgz7V4zIF8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com; spf=pass smtp.mailfrom=amarulasolutions.com; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b=YjYtRE30; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amarulasolutions.com Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-3394b892691so476595f8f.1 for ; Wed, 24 Jan 2024 03:33:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1706096027; x=1706700827; darn=vger.kernel.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=n4WZCMaxTTTK5Kb267g6Dn7+KP5+NrOJpg31LGj1mtM=; b=YjYtRE30R8EIrBoHNw+yX1foXrMfGlha5WnJ6gYR9W1fs6HqhWg3+BOEzrBn6n0Svg JLjW7crQZ569HaiWB/g7tT8+VjJJDCPUewxhyRCWhgxVS1cAn0IX/OhnEcSU/0c8NMrr XXeFT5JErTuYMULgPvvKmaoigan9+kqskkHvA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706096027; x=1706700827; 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=n4WZCMaxTTTK5Kb267g6Dn7+KP5+NrOJpg31LGj1mtM=; b=vLFDslf3k3oinsxl267+9mnQENIrhZ4YwgLMd3jSwJQMdOJGH8B52dfJUqENs04Ybk cMWbFrYlfmPSGsqFQb+mD5hiJ0DJerF7/8XbSfJRUQIGK5w2gtyPfwgJ7MIQF23LI/xl QRBYTznlE+els0Dnwh+ASNXfqeqTCQ773ZnSw+rSyoeFqj6Rqe1J9UW0BWzk0jxXmXTB AE6lLtc4zbWHapaCsR0Z5df5i/rWgfb9jB/Yy8PHa9i5HgQci6nAk7J1S3oXA3uhZz0d mezFNwLfv/xhslSugxyC66EkS39/q4KGuZe9pra1DYZ3pY52aUKPW/u3nBBY1w2N0lg+ zljw== X-Gm-Message-State: AOJu0YwFvSkX0p+cqZtHEeYL0cDxb7Xz9OpAc5HzBngN2Ia6iAGV4Stp 9wh2Mod5ZHH/BWxRITZjkPwMCFnAN7F6MtZWgf4OE+VksAd/AAt4YilLJ2s17sNr9NuPmwWsL5W 9 X-Received: by 2002:a5d:4c52:0:b0:339:534e:975f with SMTP id n18-20020a5d4c52000000b00339534e975fmr311120wrt.25.1706096027752; Wed, 24 Jan 2024 03:33:47 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.. (mob-5-90-60-192.net.vodafone.it. [5.90.60.192]) by smtp.gmail.com with ESMTPSA id i18-20020adffdd2000000b003393249d5dbsm8447950wrs.4.2024.01.24.03.33.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 03:33:47 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Lee Jones , Raphael Gallais-Pou , 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 v9 4/5] ARM: dts: stm32: add display support on stm32f769-disco Date: Wed, 24 Jan 2024 12:33:13 +0100 Message-ID: <20240124113336.658198-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240124113336.658198-1-dario.binacchi@amarulasolutions.com> References: <20240124113336.658198-1-dario.binacchi@amarulasolutions.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788972598277357059 X-GMAIL-MSGID: 1788972598277357059 The patch adds display support on the stm32f769-disco board. Signed-off-by: Dario Binacchi --- 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 | 72 +++++++++++++++++++++++- 1 file changed, 71 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..43479b0804c2 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; }; @@ -85,6 +98,13 @@ button-0 { }; }; + panel_backlight: panel-backlight { + compatible = "gpio-backlight"; + gpios = <&gpioi 14 GPIO_ACTIVE_HIGH>; + default-on; + status = "okay"; + }; + usbotg_hs_phy: usb-phy { #phy-cells = <0>; compatible = "usb-nop-xceiv"; @@ -114,6 +134,46 @@ &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>; + backlight = <&panel_backlight>; + status = "okay"; + + port { + dsi_panel_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; +}; + &i2c1 { pinctrl-0 = <&i2c1_pins_b>; pinctrl-names = "default"; @@ -122,6 +182,16 @@ &i2c1 { status = "okay"; }; +<dc { + status = "okay"; + + port { + ltdc_out_dsi: endpoint { + remote-endpoint = <&dsi_in>; + }; + }; +}; + &rtc { status = "okay"; };