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: 13529215 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 AAF4AC48285 for ; Wed, 24 Jan 2024 12:46:10 +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=dRqbc7QVjlGptdpSgIQQZqtoc84WcB35shwXI/t4RNg=; b=iAH4n838d0nich rThJoadUJccPEZHheFdtfCr+x53ygrIksz5xvmFpja5V/Wv6Rnx86YavJj8L5zdjaaqVwmwsFJTJS EMexvosi8JL+MDk8yH+KlAsg+OqdrJLbntskfYWBFCuFDct+Rzn9urr4DcTdX5k4PkWUtXX3BKDay DIJ7xxO2GVeDAIbw1IV/8aZYHgjnKuTPh+tGb9s2fjiyKSu9qy79UK6cGN1MgyammMsK3GtbtS2bQ sKTTykbrrnPsKOoem7dZ9dEfLWHFRRjzLkB+TtV/4CyDsw2xfE6qqPAvv6JPywo9yRZfCQL3Lqmnr hRvN+ZejRTRtj+zeA9LQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rScdU-003Ish-1k; Wed, 24 Jan 2024 12:45:44 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSbVw-002nF0-0p for linux-arm-kernel@bombadil.infradead.org; Wed, 24 Jan 2024 11:33:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=n4WZCMaxTTTK5Kb267g6Dn7+KP5+NrOJpg31LGj1mtM=; b=I1mDViU+KjYjxj2R1Zu3Fl0DXr n2BtOkDv6gEVO9vfZ+zaLzI7dTyt3PUB+rjKVspBH1IDD+ALKWgoI6a7/d38EmWNUttGkasZdGohu cwOR4XZJ4RzyK9dE2MOC7MAUqbBedumP9HHYMFAgHtgE3IKsJPRRdRc5gZKeY5S1PhgWqmFbz4vjN ubDEv4PmJ40M9ihovzLPH2Y73RTcCd7GLGqT7z9gFUsl3Dc/rtBQZkkDlQIFgq5ZwvvvrVbRkV4YL EMP1Vq/e08Yfvk40n7unLBOiDzRKx1Kv9lI8bNyusPCSmV2QOAvJQjj0X34J5Cq2b4qc90rsM1SyU +zSKKCCQ==; Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rSbVt-00000004R22-1DtM for linux-arm-kernel@lists.infradead.org; Wed, 24 Jan 2024 11:33:51 +0000 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-3394b892691so476592f8f.1 for ; Wed, 24 Jan 2024 03:33:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1706096027; x=1706700827; 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=n4WZCMaxTTTK5Kb267g6Dn7+KP5+NrOJpg31LGj1mtM=; b=ngHe4YyY7sfO580SJhw3W6bOnSZE0jEWcsrZPkltj9f3P02GMnksM/bS284Pt2bS5Z LlKAVUkTWOtgxMJZKCYcNvYIBBRNG2oQM2HvqTCvpLH4Cgd9z2jl9dpsATzPbmOUbx2+ ODlxq7mnIgxfN/uuj3Rdm36V4ta5IvTYAZwzU= 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=hg1UOeHfqrbK/i+oqvn1jHMmldQRX9Td6fYrvkzo3l9WDIwIAsNcrXIgZ+S+m2W1xx gNzQSXJwpoXArisV8tSuz3QFInnjqSo3/Z6S1rw3UDP2ektl5Sa37BTaT7XwnricZbp5 /iYZ8i0uFvf6XQ9jqqrRqPRKeoEn+1PuBZNH12pQGlJzhCV53qSCen8DH/WjvVoWKkyO 1Sq820axullNQjoOmMvVEQJjasRxU93N0Y09AMZwblr7AMBE58e4gpUIWKGgubBkhf+P gyNtPCUWmZoAsLwA/maw5d+FnmkPE81BhabBmGSYRG3kZVEyZDJF50yj87N+ZtK/V7pQ WBhA== X-Gm-Message-State: AOJu0YxuBdUqlD2zMrsBFrC6rgAEVP1MtGDoahrXbNubNWni0u4ZTDnk yWNgJOL2ieyavLztjQx2uPIe7lbwuBc/1HaEX0chDLOz9188vniyaU5PfluSBaU= X-Google-Smtp-Source: AGHT+IHURO/tYhzfPC+IgWh67nNUSW55NggO77fT58jLSJX4dJeQmpyxblqNyMGzgHtbUJl5bEXA3A== 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240124_113349_420535_6C34F71F X-CRM114-Status: GOOD ( 13.98 ) 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 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"; };