From patchwork Thu Jan 11 10:53:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13517159 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 914F3C4707B for ; Thu, 11 Jan 2024 10:54:12 +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=PRtM0HdtdxgzHazkKIlfNnbQIV9GoDKfPbY93kVE3Fc=; b=1Dw5hZwnuwHUh9 G/sq50o6JfLiKY/X/7M84ZacPDQ1xq7BN8rm5HLpJ98+iHJZLKTA+yMeLRngrpZOcDFqqHhDpOQLo 3WfN3S2JMj4PEf3cGhtFz5PZjtyS30uyH9cFrGi+5vgY4RJ4+ylZfzdzSK15LZVyKLxRppHKMYUIN qBA0V5Vurs8JllslEf52Pr4wbICgmUGXOJMQfs/H8vyF/8Q+4vcz0qiHgr+GTzbtLCma5BgIQMQot HJvVQZ25XUoAmSV5yLMEVj8Q/GxZck+3Nv70LF5koJAdsanjJCUOKGs9uNeqqcxjrfcibHtp8e3z5 y0gZwwRCc4K88Xv1eXsA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rNsh1-00H6h3-03; Thu, 11 Jan 2024 10:53:47 +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 1rNsgs-00H6Wy-0G for linux-arm-kernel@bombadil.infradead.org; Thu, 11 Jan 2024 10:53:38 +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=c6lTYGwOZkH/q3mVT10Wfxgf2APvMbHICMTqCuHaYlQ=; b=BUzLf99T9yuCtoNv8Lldo4PkwI qpsQYs2YIgyUvdq34OuvXwqf08Yic7v34df3CVa8g7jwElXW0ooa/8AsbAaTWMhxp9T+ua4M5AUfk IIWN6iIGVCfW1odsOvTADh2oFnvEytxE530Gz2BWkKqkwsKKg+LzYvd5tnxISkrUAa7hY6E0hdRwV DX+XfBBG+zYvYogOYHM+Aj4JT52BIwEqkpwwJFnrnsM29hlrsCCdDEYKmdA8L9HO7HrwcaIKt9GpR byHOUJxpeo/TkCdnYMBGzMy1q6m6QX7wkDzhm72xAQatEx6E2ztj6dy4Hu5g3RyfEgBK28uDmeIWi N/j1e9QQ==; Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rNsgn-00AH7S-1d for linux-arm-kernel@lists.infradead.org; Thu, 11 Jan 2024 10:53:36 +0000 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2cd703e9014so30538071fa.1 for ; Thu, 11 Jan 2024 02:53:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704970403; x=1705575203; 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=c6lTYGwOZkH/q3mVT10Wfxgf2APvMbHICMTqCuHaYlQ=; b=KOdIjmd06gJslFmkxQuz2zM9uII8kgwL3JsqCLqTYypej7lEBUIXHAaYYAjqFFW1q1 Asf8Acz2/oJdcLYK76vv9ltCc91iEInXtnA/fQsfcjkLLVA0TAMhWCokNqAKa8M30NPO 6r7FJolZYIEnWVDESBIwRHoBmmymk381REcNQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704970403; x=1705575203; 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=c6lTYGwOZkH/q3mVT10Wfxgf2APvMbHICMTqCuHaYlQ=; b=ZFbwHDjh8EcL0HYnJaGyo64sCXH35L+PXj53tPs38eWWT2g8pSrpXfzEDyF3S7Wa9u UNj+pnGFEpvIM/wr1oFh5aVBO7g+6oHxFtw4ACYg01lMwds/JXQ8nUuO4KqUq+PYv3lY XwJ4ZQNGK97vrtepXejaQcBvZxjnqN7CKkjUVLhbWD6wvxGEMdL21Djg+o1OndoHSn8w l0plkgh/jOdHK49RM9Lv+ArEY0rGrjIsh6DtuIts89WBAVvswGbDh/qKeCgg9dk0GQZv NGMwdtbf+hyb48jtESceu9l/83JH0toGu92VpeHbSCLgwO7tLBr5y5xl2Add3FMozMol t8rQ== X-Gm-Message-State: AOJu0Yy7QkfuwXrvxjq8tQYljSGfz7+hJGHBpQmTBBY/aNtGgXLSRpiC cn15wrvr3YsDG6xjdNNQARPwukHuk/8O3g== X-Google-Smtp-Source: AGHT+IE1HKcG66xzhedJzYZxl313ZtU0FtvPMZKoDArJOHYOCPj+6qDMc+3XAcw/hed8iod9lUmPpQ== X-Received: by 2002:a2e:b1c7:0:b0:2cc:8545:d6f9 with SMTP id e7-20020a2eb1c7000000b002cc8545d6f9mr329576lja.15.1704970403355; Thu, 11 Jan 2024 02:53:23 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it ([95.236.91.90]) by smtp.gmail.com with ESMTPSA id eo9-20020a056402530900b00557b0f8d906sm459774edb.70.2024.01.11.02.53.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:53:23 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Alexandre Torgue , Lee Jones , 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: [RESEND PATCH v6 4/5] ARM: dts: stm32: add display support on stm32f769-disco Date: Thu, 11 Jan 2024 11:53:10 +0100 Message-ID: <20240111105314.8186-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240111105314.8186-1-dario.binacchi@amarulasolutions.com> References: <20240111105314.8186-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-20240111_105333_811490_518178AE X-CRM114-Status: GOOD ( 12.29 ) 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 --- (no changes since v1) 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 8632bd866272..d1eb5f9c78bf 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-dsi@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@0 { + remote-endpoint = <&dsi_in>; + }; + }; +}; + &rtc { status = "okay"; };