From patchwork Wed Sep 23 15:53:09 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4850 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id CEAF740C9F for ; Wed, 23 Sep 2026 17:53:40 +0200 (CEST) Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-49e65bee41asf84165e9.0 for ; Wed, 23 Sep 2026 08:53:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1790178820; cv=pass; d=google.com; s=arc-20260327; b=GvmlefZct7FVVaI2RHEaz11Fyafg3TrDtbRtHr0FrGumQsjrn46PhPLT5WiI/PZ5We 5a5nlcMfOcoDg3ME7VXPGUMAZspUYmJ1WTqkrq4ttQilI/Ew76HAzIRKR+pxin4vzUBu GSCkG3QSzIXP1zSdweBQWq+SAgheRqdBFd2YcrH1n4hsrKYzOD//Ku/j1q4xM/vRwiJd rmsewLcZEGRYiPUbzyfJ9GAx3DJwKjwCsGq1dZfIZZDGX5TQK4k9kMyzu/oxh5uS2Bmp 1ZUnif69KwqbXqyFYYswdf+KRDoIsON84d2shpq9LnX5su1rkYpzOeCYmTQt0CelXN5Q ql9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; 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=zAtlfIxpbpiOMcFe3W0I6gNdIsgSum9vdbd8eaPlnVI=; fh=vOlO8j13/zbdmMWSxZmx89Nk2aDdtoZSLoE4keyib3o=; b=LcpWAxUsWTnuBEo6GdoaSkVuFhVVVfPFoQnI1la2UIwvRHI64fMiVTbIAeCYQFcs8a UAaO/sUKeQUqxSR61zGGvs/3W8UIwkS8psmgF7IDh39ZzE64rOwwhSJU1xh5XIQGMDpE 3HuZYXVERiavgvWhTz2OFlXwRZunQ9vuTkRL5l2hJg6Cd7uo/LTcHklJQ/QliDEx9iqm s5zEr5mVUS6oB8wbgrr7kmdHg4XfAtmOZsB3J9GEqQxuu9lxbqC56hMn+xRlNyHCcDvu a77yhMeLGvuUivbnjMDI9L7kNvZ+C4A7wug4CjMe2zJZ9Ty/acKCgku4pWLc3+jhIXmG moSA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=adp4BzbP; 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; dara=neutral header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1790178820; x=1790783620; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-type :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:content-type; bh=zAtlfIxpbpiOMcFe3W0I6gNdIsgSum9vdbd8eaPlnVI=; b=r5U7Fnu2IOBpUse2005SPJtSHTFUgmX+p6Gy3t5n/G77u3xFokkzQE1rQQViy/7jtF 2+nZ41B9VYU345bPo7CdNOx6lPiTQhKFW+VqPAnYiKGBgV+8h+6Y1Atdvd1hBNagcHJx ciDbd986VHzocAVxRwEJ0HB7tiRZvgxnLISEw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790178820; x=1790783620; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :content-type:x-original-authentication-results:x-original-sender :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-gg:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=zAtlfIxpbpiOMcFe3W0I6gNdIsgSum9vdbd8eaPlnVI=; b=JNiY2ds1to6QLoAoODqEdnm8LAr7e7XNrbPZ6i6fzh5Y7214psanJIguQuunJQ0bya /teUMgpx+NZebqoTsRz7yP+JClngpmdnyCayB2cHKqadYDnV81YaicH6MWKEry2ZXPj1 oT196KPn7LuS8tapIydYfOw2WR4Wn3UwFCGRu33uQOrpMdE8lFcZlsf5ueNDdhlY9TWU 4FO3hoYRIBNKWDaaZ7vyWGKjqbO9r/owhb+YhCpBTc7J81uKBl1gg5SkF2YJjBQz8zke v3f3wyZd1KdxkqykWlamKTUx91dlA4ER4bvuNWwCiUGkEc0NCRH/loyoiA0afADrpD8q 5R4A== X-Forwarded-Encrypted: i=2; AKwUvBzPS7RV8qW2LZiKUT6+4JuQF+MnnaW5PdU2FQqeWBF1CcWffnowrVSlk6lXLV+K5v+7H7jcW9jRzWvt7Kzg@patchwork.amarulasolutions.com X-Gm-Message-State: AFuF++ko9WcMLF9MWDkE2y+BcpYsJcG9ejq2AMC++0MwP+GJrPx6xJaj dInc9wKFAXccGVP1fvLU3SbUA1V5/rzY85fmlejv+E/GAp/kAvEt0He02X7mt3pxGEOXCg== X-Received: by 2002:a05:600c:1910:b0:49f:c5aa:9ef4 with SMTP id 5b1f17b1804b1-49fde374f6cmr49720215e9.8.1790178820436; Wed, 23 Sep 2026 08:53:40 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h="ATskLdcMfrkhk/+j/V58+SlKp2gpDK9a5ADbSHuBlQl5uL0ASQ==" Received: by 2002:a05:600c:3584:b0:49f:c0e9:8976 with SMTP id 5b1f17b1804b1-49fe585f96fls282095e9.1.-pod-prod-00-eu; Wed, 23 Sep 2026 08:53:39 -0700 (PDT) X-Forwarded-Encrypted: i=2; AKwUvBzKUbBv52iTENgGAFZnkuZw0E0B9daggjLcd2M0tseqbKAHnzt6SiI1HPXb6/y3Ic514LRNh8NKXVGSn/Dx@amarulasolutions.com X-Received: by 2002:a05:600c:6087:b0:49d:2936:8ad1 with SMTP id 5b1f17b1804b1-49fde360163mr57393705e9.1.1790178818841; Wed, 23 Sep 2026 08:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1790178818; cv=none; d=google.com; s=arc-20260327; b=BKj6D8SjtMsEz6kf5CCWkCYXxfDpPuGHF7O0v121DJDEN8bvr/ie4ba9/X3uthwWqH l/suhzNr0HZkHaKS5rulV/yLfrstm7MDODt/aJ9S9nV63JpQrLfCsiYmw7y4j2U8WR7q UykC9tBm/8Rqj912J4yx78HBLow8Vc4L0m0du37Vuh3tXxGuQZjcizkB+L799czx0f8r ry8lOhuSa9pD5sVzmnRqcAK1/XIJtL2x1QOWqEmcqCNk1q4oIjYI8fY2uwOZPdoniKVD t9ywJyWEGNw7xIz9fHp++diFoz7KIEl4kfHWiDfalHtllKkFnFzgyFoHVsDri3UF2QOM 8XaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Ogzk1zAksC1p2lO2lX+ildRtH5U/X0N5sk/kFhqIelM=; fh=Aj7nSLsejRDYQ0nMGXy2+vzZZtjI0Mwerdbc318QTRE=; b=fSEzBRSCCUprPcF2P7z6C8u4nA4a2BWJSXnp65kiRnbC9doxQQH/sqUuDQX/E0miFv amSpKq+5KnJAajzkCIsTibI4Ud5yOMLYCwHfy4Bw64jvniPEWQ4rb/D6XjVCJLPX9oqm b5lUUTDJqIKIsjiY+hPCIEpq5BaFRQUT4YbUBDdVls+B9fL0X6RzlO4D6895HlmSRHO+ xvTwh6eN/mx+f3+1Prug8Kye6au0IgJiyolnBpjTv6iaG0jCrTcYCNSVSyCxlKpfVEXg Cw8R+j3hgXSRn7TspluoM72Lr0vHAFb7To/WDTBe5sjl9ZjvSAIWKDJLJ4CWmX10hmKn H0XQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=adp4BzbP; 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; dara=neutral header.i=@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 5b1f17b1804b1-49fde1f3204sor5238175e9.1.2026.09.23.08.53.38 for (Google Transport Security); Wed, 23 Sep 2026 08:53:38 -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-Forwarded-Encrypted: i=1; AKwUvBzREJ4hqJbmuyZyCN0QV8T1imSyGzEfLDJxFTzSMyIzXV0vb08u2GcViQKeAvUjWWqTdeKB+44EvADdDVPy@amarulasolutions.com X-Gm-Gg: AYBFou0i/PBmYmquvMQkgoEeYQr7mQVRpRjdGPeap1m5sZqGGgXB896oJtJ3bqDcoei /EmFfhnitNMEPCUBe9u9e4dkIXq0aGECFeLiTUuIfzO6Z193FBQ8QAo+z2m2UhYjza4KZcjWIZ4 NudOWjlf3hpFSQAaR0hsT7OTdy/2XMC5/jw3YY12Bpu10jyDs2tM4WOu6kDvUb3eMN2O6PLu9ZO qKUrPbOfzYygGQxhId0AIq7oOLSS3ffqBkmSWg2ccg4plQE1+bQ89I6fSkaMxmdMcZIyeQ9ZO+S L6IgrzTgCjMHm/vWV4a5BxtCMn0/Ya0D/PJ8zZ7PPYh7rIz2LQazf3OjJ4JnI8LSLwA9c09ofvc XmJj8hjLs5i5ULXYKUPYpaRzShbBU+T3bC/PqYvpZgDoOs91wWQtuTaKPgBgJIQ29baqAU8xZWR ERWWAJexRH3f3nJlzIhhkM8nuv1BeYoPXGHzAfNyuVEVxiM2ixRJRBRvJPkPh9zn8UBNT8tz4xZ PqWL3hIBw5QemzvPNSkpm+C3Lv8EZeo/A+WUxAjPQfY+HtnRcFG6mbkMGf9EnBE0/A= X-Received: by 2002:a05:600c:1988:b0:49b:8f5e:51fb with SMTP id 5b1f17b1804b1-49fdf3571f9mr41898745e9.3.1790178818353; Wed, 23 Sep 2026 08:53:38 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:6474:ebbf:12f8:fcfa:728a:2514]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fde1d5f10sm81858555e9.8.2026.09.23.08.53.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Sep 2026 08:53:37 -0700 (PDT) From: Dario Binacchi To: Alexandre Torgue , Maxime Coquelin Cc: michael@amarulasolutions.com, domenico.acri@engicam.com, linux-arm-kernel@lists.infradead.org, Marek Vasut , francesco.utel@engicam.com, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, devicetree@vger.kernel.org, Conor Dooley , Rob Herring , Krzysztof Kozlowski , linux-amarula@amarulasolutions.com, Dario Binacchi Subject: [PATCH v2 1/2] arm64: dts: st: move Engicam MicroGEA-STM32MP257D-RMM display to an overlay Date: Wed, 23 Sep 2026 17:53:09 +0200 Message-ID: <20260923155333.610134-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260923155333.610134-1-dario.binacchi@amarulasolutions.com> References: <20260923155333.610134-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=adp4BzbP; 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; dara=neutral header.i=@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: , The board is fitted with different displays depending on the product variant. Keep in the board dts only what is common to all variants and move the RK050HR345-CT106A RGB panel and its touchscreen to an overlay. Signed-off-by: Dario Binacchi --- Changes in v2: - Keep the full cs-gpios in the board dts, the overlay only adds the panel node. Suggested by Sashiko. arch/arm64/boot/dts/st/Makefile | 6 ++ ...icrogea-rmm-overlay-rk050hr345-ct106a.dtso | 68 +++++++++++++++++++ .../st/stm32mp257d-engicam-microgea-rmm.dts | 46 +------------ 3 files changed, 75 insertions(+), 45 deletions(-) create mode 100644 arch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm-overlay-rk050hr345-ct106a.dtso diff --git a/arch/arm64/boot/dts/st/Makefile b/arch/arm64/boot/dts/st/Makefile index 6cbccfd50993..218ff7fdf576 100644 --- a/arch/arm64/boot/dts/st/Makefile +++ b/arch/arm64/boot/dts/st/Makefile @@ -1,7 +1,13 @@ # SPDX-License-Identifier: GPL-2.0-only +stm32mp257d-engicam-microgea-rmm-overlay-rk050hr345-ct106a-dtbs := \ + stm32mp257d-engicam-microgea-rmm.dtb \ + stm32mp257d-engicam-microgea-rmm-overlay-rk050hr345-ct106a.dtbo + dtb-$(CONFIG_ARCH_STM32) += \ stm32mp215f-dk.dtb \ stm32mp235f-dk.dtb \ stm32mp257d-engicam-microgea-rmm.dtb \ + stm32mp257d-engicam-microgea-rmm-overlay-rk050hr345-ct106a.dtb \ + stm32mp257d-engicam-microgea-rmm-overlay-rk050hr345-ct106a.dtbo \ stm32mp257f-dk.dtb \ stm32mp257f-ev1.dtb diff --git a/arch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm-overlay-rk050hr345-ct106a.dtso b/arch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm-overlay-rk050hr345-ct106a.dtso new file mode 100644 index 000000000000..f89641bdb23b --- /dev/null +++ b/arch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm-overlay-rk050hr345-ct106a.dtso @@ -0,0 +1,68 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2026 Amarula Solutions, Dario Binacchi + * Copyright (C) 2026 Engicam srl + * + * Rocktech RK050HR345-CT106A 5" 480x854 RGB panel with EDT FT5306 + * I2C touchscreen controller. + */ + +/dts-v1/; +/plugin/; + +#include +#include + +&i2c1 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2c1_pins_a>; + pinctrl-1 = <&i2c1_sleep_pins_a>; + i2c-scl-rising-time-ns = <185>; + i2c-scl-falling-time-ns = <20>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + touchscreen@38 { + compatible = "edt,edt-ft5306"; + reg = <0x38>; + interrupt-parent = <&gpiob>; + interrupts = <0 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpiod 1 GPIO_ACTIVE_LOW>; + touchscreen-size-x = <480>; + touchscreen-size-y = <854>; + }; +}; + +<dc { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <<dc_pins_a>; + pinctrl-1 = <<dc_sleep_pins_a>; + status = "okay"; + + port { + ltdc_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; +}; + +&spi1 { + #address-cells = <1>; + #size-cells = <0>; + + display@0 { + compatible = "rocktech,rk050hr345-ct106a", "ilitek,ili9806e"; + reg = <0>; + vdd-supply = <®_3v3>; + spi-max-frequency = <10000000>; + reset-gpios = <&gpiob 6 GPIO_ACTIVE_LOW>; + backlight = <&backlight>; + + port { + panel_in: endpoint { + remote-endpoint = <<dc_out>; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm.dts b/arch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm.dts index f5af0913bf1b..faedddc2c914 100644 --- a/arch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm.dts +++ b/arch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm.dts @@ -116,25 +116,9 @@ &arm_wdt { }; &i2c1 { - pinctrl-names = "default", "sleep"; - pinctrl-0 = <&i2c1_pins_a>; - pinctrl-1 = <&i2c1_sleep_pins_a>; - i2c-scl-rising-time-ns = <185>; - i2c-scl-falling-time-ns = <20>; - status = "okay"; - /* spare dmas for other usage */ + /* dt overlays don't support /delete-property/ */ /delete-property/dmas; /delete-property/dma-names; - - touchscreen@38 { - compatible = "edt,edt-ft5306"; - reg = <0x38>; - interrupt-parent = <&gpiob>; - interrupts = <0 IRQ_TYPE_EDGE_FALLING>; - reset-gpios = <&gpiod 1 GPIO_ACTIVE_LOW>; - touchscreen-size-x = <480>; - touchscreen-size-y = <854>; - }; }; &i2c2 { @@ -179,19 +163,6 @@ sgtl5000_rx_endpoint: endpoint@1 { }; }; -<dc { - pinctrl-names = "default", "sleep"; - pinctrl-0 = <<dc_pins_a>; - pinctrl-1 = <<dc_sleep_pins_a>; - status = "okay"; - - port { - ltdc_out: endpoint { - remote-endpoint = <&panel_in>; - }; - }; -}; - &m_can1 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&m_can1_pins_a>; @@ -259,21 +230,6 @@ &spi1 { #size-cells = <0>; cs-gpios = <&gpioh 8 GPIO_ACTIVE_LOW>, <&gpioh 3 GPIO_ACTIVE_HIGH>; status = "okay"; - - display: display@0 { - compatible = "rocktech,rk050hr345-ct106a", "ilitek,ili9806e"; - reg = <0>; - vdd-supply = <®_3v3>; - spi-max-frequency = <10000000>; - reset-gpios = <&gpiob 6 GPIO_ACTIVE_LOW>; - backlight = <&backlight>; - - port { - panel_in: endpoint { - remote-endpoint = <<dc_out>; - }; - }; - }; }; &timers2 {